@intellihr/blueberry 1.0.0-beta.93 → 1.0.0-beta.94
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/index.cjs.js +16 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +16 -16
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
* @license
|
|
287
287
|
* Copyright 2017 Google LLC
|
|
288
288
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
289
|
-
*/function n0(e){return(t,o)=>Hr(t,o,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}var Vc=Object.defineProperty,r0=Object.defineProperties,i0=Object.getOwnPropertyDescriptor,s0=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,l0=Object.prototype.hasOwnProperty,c0=Object.prototype.propertyIsEnumerable,ir=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ps=(e,t,o)=>t in e?Vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,tt=(e,t)=>{for(var o in t||(t={}))l0.call(t,o)&&Ps(e,o,t[o]);if(Is)for(var o of Is(t))c0.call(t,o)&&Ps(e,o,t[o]);return e},to=(e,t)=>r0(e,s0(t)),u=(e,t,o,a)=>{for(var n=a>1?void 0:a?i0(t,o):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(n=(a?s(t,o,n):s(n))||n);return a&&n&&Vc(t,o,n),n},d0=function(e,t){this[0]=e,this[1]=t},u0=e=>{var t=e[ir("asyncIterator")],o=!1,a,n={};return t==null?(t=e[ir("iterator")](),a=i=>n[i]=s=>t[i](s)):(t=t.call(e),a=i=>n[i]=s=>{if(o){if(o=!1,i==="throw")throw s;return s}return o=!0,{done:!1,value:new d0(new Promise(c=>{var l=t[i](s);if(!(l instanceof Object))throw TypeError("Object expected");c(l)}),1)}}),n[ir("iterator")]=()=>n,a("next"),"throw"in t?a("throw"):n.throw=i=>{throw i},"return"in t&&a("return"),n},O=class extends ya{emit(e,t){const o=new CustomEvent(e,tt({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(o),o}static define(e,t=this,o={}){const a=customElements.get(e);if(!a){customElements.define(e,class extends t{},o);return}let n=" (unknown version)",i=n;"version"in t&&t.version&&(n=" v"+t.version),"version"in a&&a.version&&(i=" v"+a.version),!(n&&i&&n===i)&&console.warn(`Attempted to register <${e}>${n}, but <${e}>${i} has already been registered.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}};O.version="0.1.0-alpha.117";O.dependencies={};u([b()],O.prototype,"dir",2);u([b()],O.prototype,"lang",2);const Ma=Math.min,so=Math.max,g0={left:"right",right:"left",bottom:"top",top:"bottom"},p0={start:"end",end:"start"};function Or(e,t,o){return so(e,Ma(t,o))}function Go(e,t){return typeof e=="function"?e(t):e}function Xt(e){return e.split("-")[0]}function Zo(e){return e.split("-")[1]}function Fc(e){return e==="x"?"y":"x"}function Vi(e){return e==="y"?"height":"width"}function $a(e){return["top","bottom"].includes(Xt(e))?"y":"x"}function Fi(e){return Fc($a(e))}function m0(e,t,o){o===void 0&&(o=!1);const a=Zo(e),n=Fi(e),i=Vi(n);let s=n==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pn(s)),[s,pn(s)]}function h0(e){const t=pn(e);return[Gr(e),t,Gr(t)]}function Gr(e){return e.replace(/start|end/g,t=>p0[t])}function f0(e,t,o){const a=["left","right"],n=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:a:t?a:n;case"left":case"right":return t?i:s;default:return[]}}function b0(e,t,o,a){const n=Zo(e);let i=f0(Xt(e),o==="start",a);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(Gr)))),i}function pn(e){return e.replace(/left|right|bottom|top/g,t=>g0[t])}function v0(e){return{top:0,right:0,bottom:0,left:0,...e}}function $c(e){return typeof e!="number"?v0(e):{top:e,right:e,bottom:e,left:e}}function mn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Vs(e,t,o){let{reference:a,floating:n}=e;const i=$a(t),s=Fi(t),c=Vi(s),l=Xt(t),d=i==="y",g=a.x+a.width/2-n.width/2,m=a.y+a.height/2-n.height/2,h=a[c]/2-n[c]/2;let p;switch(l){case"top":p={x:g,y:a.y-n.height};break;case"bottom":p={x:g,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:m};break;case"left":p={x:a.x-n.width,y:m};break;default:p={x:a.x,y:a.y}}switch(Zo(t)){case"start":p[s]-=h*(o&&d?-1:1);break;case"end":p[s]+=h*(o&&d?-1:1);break}return p}const y0=async(e,t,o)=>{const{placement:a="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:g,y:m}=Vs(d,a,l),h=a,p={},f=0;for(let v=0;v<c.length;v++){const{name:y,fn:w}=c[v],{x:C,y:x,data:k,reset:S}=await w({x:g,y:m,initialPlacement:a,placement:h,strategy:n,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});g=C??g,m=x??m,p={...p,[y]:{...p[y],...k}},S&&f<=50&&(f++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(d=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):S.rects),{x:g,y:m}=Vs(d,h,l)),v=-1)}return{x:g,y:m,placement:h,strategy:n,middlewareData:p}};async function $i(e,t){var o;t===void 0&&(t={});const{x:a,y:n,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=Go(t,e),f=$c(p),y=c[h?m==="floating"?"reference":"floating":m],w=mn(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(y)))==null||o?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:g,strategy:l})),C=m==="floating"?{...s.floating,x:a,y:n}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),k=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=mn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:x,strategy:l}):C);return{top:(w.top-S.top+f.top)/k.y,bottom:(S.bottom-w.bottom+f.bottom)/k.y,left:(w.left-S.left+f.left)/k.x,right:(S.right-w.right+f.right)/k.x}}const w0=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:a,placement:n,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:g=0}=Go(e,t)||{};if(d==null)return{};const m=$c(g),h={x:o,y:a},p=Fi(n),f=Vi(p),v=await s.getDimensions(d),y=p==="y",w=y?"top":"left",C=y?"bottom":"right",x=y?"clientHeight":"clientWidth",k=i.reference[f]+i.reference[p]-h[p]-i.floating[f],S=h[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let I=A?A[x]:0;(!I||!await(s.isElement==null?void 0:s.isElement(A)))&&(I=c.floating[x]||i.floating[f]);const V=k/2-S/2,K=I/2-v[f]/2-1,q=Ma(m[w],K),U=Ma(m[C],K),X=q,ae=I-v[f]-U,L=I/2-v[f]/2+V,ee=Or(X,L,ae),he=!l.arrow&&Zo(n)!=null&&L!==ee&&i.reference[f]/2-(L<X?q:U)-v[f]/2<0,ce=he?L<X?L-X:L-ae:0;return{[p]:h[p]+ce,data:{[p]:ee,centerOffset:L-ee-ce,...he&&{alignmentOffset:ce}},reset:he}}}),C0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,a;const{placement:n,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...y}=Go(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const w=Xt(n),C=Xt(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(d.floating)),k=h||(C||!v?[pn(c)]:h0(c));!h&&f!=="none"&&k.push(...b0(c,v,f,x));const S=[c,...k],A=await $i(t,y),I=[];let V=((a=i.flip)==null?void 0:a.overflows)||[];if(g&&I.push(A[w]),m){const X=m0(n,s,x);I.push(A[X[0]],A[X[1]])}if(V=[...V,{placement:n,overflows:I}],!I.every(X=>X<=0)){var K,q;const X=(((K=i.flip)==null?void 0:K.index)||0)+1,ae=S[X];if(ae)return{data:{index:X,overflows:V},reset:{placement:ae}};let L=(q=V.filter(ee=>ee.overflows[0]<=0).sort((ee,he)=>ee.overflows[1]-he.overflows[1])[0])==null?void 0:q.placement;if(!L)switch(p){case"bestFit":{var U;const ee=(U=V.map(he=>[he.placement,he.overflows.filter(ce=>ce>0).reduce((ce,fe)=>ce+fe,0)]).sort((he,ce)=>he[1]-ce[1])[0])==null?void 0:U[0];ee&&(L=ee);break}case"initialPlacement":L=c;break}if(n!==L)return{reset:{placement:L}}}return{}}}};async function x0(e,t){const{placement:o,platform:a,elements:n}=e,i=await(a.isRTL==null?void 0:a.isRTL(n.floating)),s=Xt(o),c=Zo(o),l=$a(o)==="y",d=["left","top"].includes(s)?-1:1,g=i&&l?-1:1,m=Go(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return c&&typeof f=="number"&&(p=c==="end"?f*-1:f),l?{x:p*g,y:h*d}:{x:h*d,y:p*g}}const _0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,a;const{x:n,y:i,placement:s,middlewareData:c}=t,l=await x0(t,e);return s===((o=c.offset)==null?void 0:o.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:s}}}}},E0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:a,placement:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:y=>{let{x:w,y:C}=y;return{x:w,y:C}}},...l}=Go(e,t),d={x:o,y:a},g=await $i(t,l),m=$a(Xt(n)),h=Fc(m);let p=d[h],f=d[m];if(i){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",C=p+g[y],x=p-g[w];p=Or(C,p,x)}if(s){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=f+g[y],x=f-g[w];f=Or(C,f,x)}const v=c.fn({...t,[h]:p,[m]:f});return{...v,data:{x:v.x-o,y:v.y-a}}}}},k0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:a,platform:n,elements:i}=t,{apply:s=()=>{},...c}=Go(e,t),l=await $i(t,c),d=Xt(o),g=Zo(o),m=$a(o)==="y",{width:h,height:p}=a.floating;let f,v;d==="top"||d==="bottom"?(f=d,v=g===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,f=g==="end"?"top":"bottom");const y=p-l[f],w=h-l[v],C=!t.middlewareData.shift;let x=y,k=w;if(m){const A=h-l.left-l.right;k=g||C?Ma(w,A):A}else{const A=p-l.top-l.bottom;x=g||C?Ma(y,A):A}if(C&&!g){const A=so(l.left,0),I=so(l.right,0),V=so(l.top,0),K=so(l.bottom,0);m?k=h-2*(A!==0||I!==0?A+I:so(l.left,l.right)):x=p-2*(V!==0||K!==0?V+K:so(l.top,l.bottom))}await s({...t,availableWidth:k,availableHeight:x});const S=await n.getDimensions(i.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},Zr=Math.min,Do=Math.max,hn=Math.round,Ya=Math.floor,Kt=e=>({x:e,y:e});function jo(e){return Rc(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Nt(e){var t;return(t=(Rc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rc(e){return e instanceof Node||e instanceof Je(e).Node}function Et(e){return e instanceof Element||e instanceof Je(e).Element}function kt(e){return e instanceof HTMLElement||e instanceof Je(e).HTMLElement}function Fs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function Ra(e){const{overflow:t,overflowX:o,overflowY:a,display:n}=ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+o)&&!["inline","contents"].includes(n)}function A0(e){return["table","td","th"].includes(jo(e))}function Ln(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ri(e){const t=Ni(),o=ft(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(o.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(o.contain||"").includes(a))}function S0(e){let t=qt(e);for(;kt(t)&&!$o(t);){if(Ln(t))return null;if(Ri(t))return t;t=qt(t)}return null}function Ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $o(e){return["html","body","#document"].includes(jo(e))}function ft(e){return Je(e).getComputedStyle(e)}function Mn(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function qt(e){if(jo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fs(e)&&e.host||Nt(e);return Fs(t)?t.host:t}function Nc(e){const t=qt(e);return $o(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Ra(t)?t:Nc(t)}function Da(e,t,o){var a;t===void 0&&(t=[]),o===void 0&&(o=!0);const n=Nc(e),i=n===((a=e.ownerDocument)==null?void 0:a.body),s=Je(n);return i?t.concat(s,s.visualViewport||[],Ra(n)?n:[],s.frameElement&&o?Da(s.frameElement):[]):t.concat(n,Da(n,[],o))}function zc(e){const t=ft(e);let o=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=kt(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:a,c=hn(o)!==i||hn(a)!==s;return c&&(o=i,a=s),{width:o,height:a,$:c}}function zi(e){return Et(e)?e:e.contextElement}function Io(e){const t=zi(e);if(!kt(t))return Kt(1);const o=t.getBoundingClientRect(),{width:a,height:n,$:i}=zc(t);let s=(i?hn(o.width):o.width)/a,c=(i?hn(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const L0=Kt(0);function Tc(e){const t=Je(e);return!Ni()||!t.visualViewport?L0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function M0(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Je(e)?!1:t}function ho(e,t,o,a){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=e.getBoundingClientRect(),i=zi(e);let s=Kt(1);t&&(a?Et(a)&&(s=Io(a)):s=Io(e));const c=M0(i,o,a)?Tc(i):Kt(0);let l=(n.left+c.x)/s.x,d=(n.top+c.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(i){const h=Je(i),p=a&&Et(a)?Je(a):a;let f=h,v=f.frameElement;for(;v&&a&&p!==f;){const y=Io(v),w=v.getBoundingClientRect(),C=ft(v),x=w.left+(v.clientLeft+parseFloat(C.paddingLeft))*y.x,k=w.top+(v.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,d*=y.y,g*=y.x,m*=y.y,l+=x,d+=k,f=Je(v),v=f.frameElement}}return mn({width:g,height:m,x:l,y:d})}function D0(e){let{elements:t,rect:o,offsetParent:a,strategy:n}=e;const i=n==="fixed",s=Nt(a),c=t?Ln(t.floating):!1;if(a===s||c&&i)return o;let l={scrollLeft:0,scrollTop:0},d=Kt(1);const g=Kt(0),m=kt(a);if((m||!m&&!i)&&((jo(a)!=="body"||Ra(s))&&(l=Mn(a)),kt(a))){const h=ho(a);d=Io(a),g.x=h.x+a.clientLeft,g.y=h.y+a.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+g.x,y:o.y*d.y-l.scrollTop*d.y+g.y}}function I0(e){return Array.from(e.getClientRects())}function Bc(e){return ho(Nt(e)).left+Mn(e).scrollLeft}function P0(e){const t=Nt(e),o=Mn(e),a=e.ownerDocument.body,n=Do(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Do(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-o.scrollLeft+Bc(e);const c=-o.scrollTop;return ft(a).direction==="rtl"&&(s+=Do(t.clientWidth,a.clientWidth)-n),{width:n,height:i,x:s,y:c}}function V0(e,t){const o=Je(e),a=Nt(e),n=o.visualViewport;let i=a.clientWidth,s=a.clientHeight,c=0,l=0;if(n){i=n.width,s=n.height;const d=Ni();(!d||d&&t==="fixed")&&(c=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:c,y:l}}function F0(e,t){const o=ho(e,!0,t==="fixed"),a=o.top+e.clientTop,n=o.left+e.clientLeft,i=kt(e)?Io(e):Kt(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=n*i.x,d=a*i.y;return{width:s,height:c,x:l,y:d}}function $s(e,t,o){let a;if(t==="viewport")a=V0(e,o);else if(t==="document")a=P0(Nt(e));else if(Et(t))a=F0(t,o);else{const n=Tc(e);a={...t,x:t.x-n.x,y:t.y-n.y}}return mn(a)}function Hc(e,t){const o=qt(e);return o===t||!Et(o)||$o(o)?!1:ft(o).position==="fixed"||Hc(o,t)}function $0(e,t){const o=t.get(e);if(o)return o;let a=Da(e,[],!1).filter(c=>Et(c)&&jo(c)!=="body"),n=null;const i=ft(e).position==="fixed";let s=i?qt(e):e;for(;Et(s)&&!$o(s);){const c=ft(s),l=Ri(s);!l&&c.position==="fixed"&&(n=null),(i?!l&&!n:!l&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ra(s)&&!l&&Hc(e,s))?a=a.filter(g=>g!==s):n=c,s=qt(s)}return t.set(e,a),a}function R0(e){let{element:t,boundary:o,rootBoundary:a,strategy:n}=e;const s=[...o==="clippingAncestors"?Ln(t)?[]:$0(t,this._c):[].concat(o),a],c=s[0],l=s.reduce((d,g)=>{const m=$s(t,g,n);return d.top=Do(m.top,d.top),d.right=Zr(m.right,d.right),d.bottom=Zr(m.bottom,d.bottom),d.left=Do(m.left,d.left),d},$s(t,c,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function N0(e){const{width:t,height:o}=zc(e);return{width:t,height:o}}function z0(e,t,o){const a=kt(t),n=Nt(t),i=o==="fixed",s=ho(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=Kt(0);if(a||!a&&!i)if((jo(t)!=="body"||Ra(n))&&(c=Mn(t)),a){const m=ho(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else n&&(l.x=Bc(n));const d=s.left+c.scrollLeft-l.x,g=s.top+c.scrollTop-l.y;return{x:d,y:g,width:s.width,height:s.height}}function sr(e){return ft(e).position==="static"}function Rs(e,t){return!kt(e)||ft(e).position==="fixed"?null:t?t(e):e.offsetParent}function Oc(e,t){const o=Je(e);if(Ln(e))return o;if(!kt(e)){let n=qt(e);for(;n&&!$o(n);){if(Et(n)&&!sr(n))return n;n=qt(n)}return o}let a=Rs(e,t);for(;a&&A0(a)&&sr(a);)a=Rs(a,t);return a&&$o(a)&&sr(a)&&!Ri(a)?o:a||S0(e)||o}const T0=async function(e){const t=this.getOffsetParent||Oc,o=this.getDimensions,a=await o(e.floating);return{reference:z0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function B0(e){return ft(e).direction==="rtl"}const an={convertOffsetParentRelativeRectToViewportRelativeRect:D0,getDocumentElement:Nt,getClippingRect:R0,getOffsetParent:Oc,getElementRects:T0,getClientRects:I0,getDimensions:N0,getScale:Io,isElement:Et,isRTL:B0};function H0(e,t){let o=null,a;const n=Nt(e);function i(){var c;clearTimeout(a),(c=o)==null||c.disconnect(),o=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const{left:d,top:g,width:m,height:h}=e.getBoundingClientRect();if(c||t(),!m||!h)return;const p=Ya(g),f=Ya(n.clientWidth-(d+m)),v=Ya(n.clientHeight-(g+h)),y=Ya(d),C={rootMargin:-p+"px "+-f+"px "+-v+"px "+-y+"px",threshold:Do(0,Zr(1,l))||1};let x=!0;function k(S){const A=S[0].intersectionRatio;if(A!==l){if(!x)return s();A?s(!1,A):a=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{o=new IntersectionObserver(k,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(k,C)}o.observe(e)}return s(!0),i}function O0(e,t,o,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,d=zi(e),g=n||i?[...d?Da(d):[],...Da(t)]:[];g.forEach(w=>{n&&w.addEventListener("scroll",o,{passive:!0}),i&&w.addEventListener("resize",o)});const m=d&&c?H0(d,o):null;let h=-1,p=null;s&&(p=new ResizeObserver(w=>{let[C]=w;C&&C.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),o()}),d&&!l&&p.observe(d),p.observe(t));let f,v=l?ho(e):null;l&&y();function y(){const w=ho(e);v&&(w.x!==v.x||w.y!==v.y||w.width!==v.width||w.height!==v.height)&&o(),v=w,f=requestAnimationFrame(y)}return o(),()=>{var w;g.forEach(C=>{n&&C.removeEventListener("scroll",o),i&&C.removeEventListener("resize",o)}),m?.(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const G0=_0,Z0=E0,j0=C0,Ns=k0,Y0=w0,W0=(e,t,o)=>{const a=new Map,n={platform:an,...o},i={...n.platform,_c:a};return y0(e,t,{...n,platform:i})};function U0(e){return X0(e)}function lr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function X0(e){for(let t=e;t;t=lr(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=lr(e);t;t=lr(t)){if(!(t instanceof Element))continue;const o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}var K0=j`
|
|
289
|
+
*/function n0(e){return(t,o)=>Hr(t,o,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}var Vc=Object.defineProperty,r0=Object.defineProperties,i0=Object.getOwnPropertyDescriptor,s0=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,l0=Object.prototype.hasOwnProperty,c0=Object.prototype.propertyIsEnumerable,ir=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ps=(e,t,o)=>t in e?Vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,tt=(e,t)=>{for(var o in t||(t={}))l0.call(t,o)&&Ps(e,o,t[o]);if(Is)for(var o of Is(t))c0.call(t,o)&&Ps(e,o,t[o]);return e},to=(e,t)=>r0(e,s0(t)),u=(e,t,o,a)=>{for(var n=a>1?void 0:a?i0(t,o):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(n=(a?s(t,o,n):s(n))||n);return a&&n&&Vc(t,o,n),n},d0=function(e,t){this[0]=e,this[1]=t},u0=e=>{var t=e[ir("asyncIterator")],o=!1,a,n={};return t==null?(t=e[ir("iterator")](),a=i=>n[i]=s=>t[i](s)):(t=t.call(e),a=i=>n[i]=s=>{if(o){if(o=!1,i==="throw")throw s;return s}return o=!0,{done:!1,value:new d0(new Promise(c=>{var l=t[i](s);if(!(l instanceof Object))throw TypeError("Object expected");c(l)}),1)}}),n[ir("iterator")]=()=>n,a("next"),"throw"in t?a("throw"):n.throw=i=>{throw i},"return"in t&&a("return"),n},O=class extends ya{emit(e,t){const o=new CustomEvent(e,tt({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(o),o}static define(e,t=this,o={}){const a=customElements.get(e);if(!a){customElements.define(e,class extends t{},o);return}let n=" (unknown version)",i=n;"version"in t&&t.version&&(n=" v"+t.version),"version"in a&&a.version&&(i=" v"+a.version),!(n&&i&&n===i)&&console.warn(`Attempted to register <${e}>${n}, but <${e}>${i} has already been registered.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}};O.version="0.1.0-alpha.118";O.dependencies={};u([b()],O.prototype,"dir",2);u([b()],O.prototype,"lang",2);const Ma=Math.min,so=Math.max,g0={left:"right",right:"left",bottom:"top",top:"bottom"},p0={start:"end",end:"start"};function Or(e,t,o){return so(e,Ma(t,o))}function Go(e,t){return typeof e=="function"?e(t):e}function Xt(e){return e.split("-")[0]}function Zo(e){return e.split("-")[1]}function Fc(e){return e==="x"?"y":"x"}function Vi(e){return e==="y"?"height":"width"}function $a(e){return["top","bottom"].includes(Xt(e))?"y":"x"}function Fi(e){return Fc($a(e))}function m0(e,t,o){o===void 0&&(o=!1);const a=Zo(e),n=Fi(e),i=Vi(n);let s=n==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pn(s)),[s,pn(s)]}function h0(e){const t=pn(e);return[Gr(e),t,Gr(t)]}function Gr(e){return e.replace(/start|end/g,t=>p0[t])}function f0(e,t,o){const a=["left","right"],n=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:a:t?a:n;case"left":case"right":return t?i:s;default:return[]}}function b0(e,t,o,a){const n=Zo(e);let i=f0(Xt(e),o==="start",a);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(Gr)))),i}function pn(e){return e.replace(/left|right|bottom|top/g,t=>g0[t])}function v0(e){return{top:0,right:0,bottom:0,left:0,...e}}function $c(e){return typeof e!="number"?v0(e):{top:e,right:e,bottom:e,left:e}}function mn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Vs(e,t,o){let{reference:a,floating:n}=e;const i=$a(t),s=Fi(t),c=Vi(s),l=Xt(t),d=i==="y",g=a.x+a.width/2-n.width/2,m=a.y+a.height/2-n.height/2,h=a[c]/2-n[c]/2;let p;switch(l){case"top":p={x:g,y:a.y-n.height};break;case"bottom":p={x:g,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:m};break;case"left":p={x:a.x-n.width,y:m};break;default:p={x:a.x,y:a.y}}switch(Zo(t)){case"start":p[s]-=h*(o&&d?-1:1);break;case"end":p[s]+=h*(o&&d?-1:1);break}return p}const y0=async(e,t,o)=>{const{placement:a="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:g,y:m}=Vs(d,a,l),h=a,p={},f=0;for(let v=0;v<c.length;v++){const{name:y,fn:w}=c[v],{x:C,y:x,data:k,reset:S}=await w({x:g,y:m,initialPlacement:a,placement:h,strategy:n,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});g=C??g,m=x??m,p={...p,[y]:{...p[y],...k}},S&&f<=50&&(f++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(d=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):S.rects),{x:g,y:m}=Vs(d,h,l)),v=-1)}return{x:g,y:m,placement:h,strategy:n,middlewareData:p}};async function $i(e,t){var o;t===void 0&&(t={});const{x:a,y:n,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=Go(t,e),f=$c(p),y=c[h?m==="floating"?"reference":"floating":m],w=mn(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(y)))==null||o?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:g,strategy:l})),C=m==="floating"?{...s.floating,x:a,y:n}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),k=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=mn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:x,strategy:l}):C);return{top:(w.top-S.top+f.top)/k.y,bottom:(S.bottom-w.bottom+f.bottom)/k.y,left:(w.left-S.left+f.left)/k.x,right:(S.right-w.right+f.right)/k.x}}const w0=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:a,placement:n,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:g=0}=Go(e,t)||{};if(d==null)return{};const m=$c(g),h={x:o,y:a},p=Fi(n),f=Vi(p),v=await s.getDimensions(d),y=p==="y",w=y?"top":"left",C=y?"bottom":"right",x=y?"clientHeight":"clientWidth",k=i.reference[f]+i.reference[p]-h[p]-i.floating[f],S=h[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let I=A?A[x]:0;(!I||!await(s.isElement==null?void 0:s.isElement(A)))&&(I=c.floating[x]||i.floating[f]);const V=k/2-S/2,K=I/2-v[f]/2-1,q=Ma(m[w],K),U=Ma(m[C],K),X=q,ae=I-v[f]-U,L=I/2-v[f]/2+V,ee=Or(X,L,ae),he=!l.arrow&&Zo(n)!=null&&L!==ee&&i.reference[f]/2-(L<X?q:U)-v[f]/2<0,ce=he?L<X?L-X:L-ae:0;return{[p]:h[p]+ce,data:{[p]:ee,centerOffset:L-ee-ce,...he&&{alignmentOffset:ce}},reset:he}}}),C0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,a;const{placement:n,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...y}=Go(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const w=Xt(n),C=Xt(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(d.floating)),k=h||(C||!v?[pn(c)]:h0(c));!h&&f!=="none"&&k.push(...b0(c,v,f,x));const S=[c,...k],A=await $i(t,y),I=[];let V=((a=i.flip)==null?void 0:a.overflows)||[];if(g&&I.push(A[w]),m){const X=m0(n,s,x);I.push(A[X[0]],A[X[1]])}if(V=[...V,{placement:n,overflows:I}],!I.every(X=>X<=0)){var K,q;const X=(((K=i.flip)==null?void 0:K.index)||0)+1,ae=S[X];if(ae)return{data:{index:X,overflows:V},reset:{placement:ae}};let L=(q=V.filter(ee=>ee.overflows[0]<=0).sort((ee,he)=>ee.overflows[1]-he.overflows[1])[0])==null?void 0:q.placement;if(!L)switch(p){case"bestFit":{var U;const ee=(U=V.map(he=>[he.placement,he.overflows.filter(ce=>ce>0).reduce((ce,fe)=>ce+fe,0)]).sort((he,ce)=>he[1]-ce[1])[0])==null?void 0:U[0];ee&&(L=ee);break}case"initialPlacement":L=c;break}if(n!==L)return{reset:{placement:L}}}return{}}}};async function x0(e,t){const{placement:o,platform:a,elements:n}=e,i=await(a.isRTL==null?void 0:a.isRTL(n.floating)),s=Xt(o),c=Zo(o),l=$a(o)==="y",d=["left","top"].includes(s)?-1:1,g=i&&l?-1:1,m=Go(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return c&&typeof f=="number"&&(p=c==="end"?f*-1:f),l?{x:p*g,y:h*d}:{x:h*d,y:p*g}}const _0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,a;const{x:n,y:i,placement:s,middlewareData:c}=t,l=await x0(t,e);return s===((o=c.offset)==null?void 0:o.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:s}}}}},E0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:a,placement:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:y=>{let{x:w,y:C}=y;return{x:w,y:C}}},...l}=Go(e,t),d={x:o,y:a},g=await $i(t,l),m=$a(Xt(n)),h=Fc(m);let p=d[h],f=d[m];if(i){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",C=p+g[y],x=p-g[w];p=Or(C,p,x)}if(s){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=f+g[y],x=f-g[w];f=Or(C,f,x)}const v=c.fn({...t,[h]:p,[m]:f});return{...v,data:{x:v.x-o,y:v.y-a}}}}},k0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:a,platform:n,elements:i}=t,{apply:s=()=>{},...c}=Go(e,t),l=await $i(t,c),d=Xt(o),g=Zo(o),m=$a(o)==="y",{width:h,height:p}=a.floating;let f,v;d==="top"||d==="bottom"?(f=d,v=g===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,f=g==="end"?"top":"bottom");const y=p-l[f],w=h-l[v],C=!t.middlewareData.shift;let x=y,k=w;if(m){const A=h-l.left-l.right;k=g||C?Ma(w,A):A}else{const A=p-l.top-l.bottom;x=g||C?Ma(y,A):A}if(C&&!g){const A=so(l.left,0),I=so(l.right,0),V=so(l.top,0),K=so(l.bottom,0);m?k=h-2*(A!==0||I!==0?A+I:so(l.left,l.right)):x=p-2*(V!==0||K!==0?V+K:so(l.top,l.bottom))}await s({...t,availableWidth:k,availableHeight:x});const S=await n.getDimensions(i.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},Zr=Math.min,Do=Math.max,hn=Math.round,Ya=Math.floor,Kt=e=>({x:e,y:e});function jo(e){return Rc(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Nt(e){var t;return(t=(Rc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rc(e){return e instanceof Node||e instanceof Je(e).Node}function Et(e){return e instanceof Element||e instanceof Je(e).Element}function kt(e){return e instanceof HTMLElement||e instanceof Je(e).HTMLElement}function Fs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function Ra(e){const{overflow:t,overflowX:o,overflowY:a,display:n}=ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+o)&&!["inline","contents"].includes(n)}function A0(e){return["table","td","th"].includes(jo(e))}function Ln(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ri(e){const t=Ni(),o=ft(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(o.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(o.contain||"").includes(a))}function S0(e){let t=qt(e);for(;kt(t)&&!$o(t);){if(Ln(t))return null;if(Ri(t))return t;t=qt(t)}return null}function Ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $o(e){return["html","body","#document"].includes(jo(e))}function ft(e){return Je(e).getComputedStyle(e)}function Mn(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function qt(e){if(jo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fs(e)&&e.host||Nt(e);return Fs(t)?t.host:t}function Nc(e){const t=qt(e);return $o(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Ra(t)?t:Nc(t)}function Da(e,t,o){var a;t===void 0&&(t=[]),o===void 0&&(o=!0);const n=Nc(e),i=n===((a=e.ownerDocument)==null?void 0:a.body),s=Je(n);return i?t.concat(s,s.visualViewport||[],Ra(n)?n:[],s.frameElement&&o?Da(s.frameElement):[]):t.concat(n,Da(n,[],o))}function zc(e){const t=ft(e);let o=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=kt(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:a,c=hn(o)!==i||hn(a)!==s;return c&&(o=i,a=s),{width:o,height:a,$:c}}function zi(e){return Et(e)?e:e.contextElement}function Io(e){const t=zi(e);if(!kt(t))return Kt(1);const o=t.getBoundingClientRect(),{width:a,height:n,$:i}=zc(t);let s=(i?hn(o.width):o.width)/a,c=(i?hn(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const L0=Kt(0);function Tc(e){const t=Je(e);return!Ni()||!t.visualViewport?L0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function M0(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Je(e)?!1:t}function ho(e,t,o,a){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=e.getBoundingClientRect(),i=zi(e);let s=Kt(1);t&&(a?Et(a)&&(s=Io(a)):s=Io(e));const c=M0(i,o,a)?Tc(i):Kt(0);let l=(n.left+c.x)/s.x,d=(n.top+c.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(i){const h=Je(i),p=a&&Et(a)?Je(a):a;let f=h,v=f.frameElement;for(;v&&a&&p!==f;){const y=Io(v),w=v.getBoundingClientRect(),C=ft(v),x=w.left+(v.clientLeft+parseFloat(C.paddingLeft))*y.x,k=w.top+(v.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,d*=y.y,g*=y.x,m*=y.y,l+=x,d+=k,f=Je(v),v=f.frameElement}}return mn({width:g,height:m,x:l,y:d})}function D0(e){let{elements:t,rect:o,offsetParent:a,strategy:n}=e;const i=n==="fixed",s=Nt(a),c=t?Ln(t.floating):!1;if(a===s||c&&i)return o;let l={scrollLeft:0,scrollTop:0},d=Kt(1);const g=Kt(0),m=kt(a);if((m||!m&&!i)&&((jo(a)!=="body"||Ra(s))&&(l=Mn(a)),kt(a))){const h=ho(a);d=Io(a),g.x=h.x+a.clientLeft,g.y=h.y+a.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+g.x,y:o.y*d.y-l.scrollTop*d.y+g.y}}function I0(e){return Array.from(e.getClientRects())}function Bc(e){return ho(Nt(e)).left+Mn(e).scrollLeft}function P0(e){const t=Nt(e),o=Mn(e),a=e.ownerDocument.body,n=Do(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Do(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-o.scrollLeft+Bc(e);const c=-o.scrollTop;return ft(a).direction==="rtl"&&(s+=Do(t.clientWidth,a.clientWidth)-n),{width:n,height:i,x:s,y:c}}function V0(e,t){const o=Je(e),a=Nt(e),n=o.visualViewport;let i=a.clientWidth,s=a.clientHeight,c=0,l=0;if(n){i=n.width,s=n.height;const d=Ni();(!d||d&&t==="fixed")&&(c=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:c,y:l}}function F0(e,t){const o=ho(e,!0,t==="fixed"),a=o.top+e.clientTop,n=o.left+e.clientLeft,i=kt(e)?Io(e):Kt(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=n*i.x,d=a*i.y;return{width:s,height:c,x:l,y:d}}function $s(e,t,o){let a;if(t==="viewport")a=V0(e,o);else if(t==="document")a=P0(Nt(e));else if(Et(t))a=F0(t,o);else{const n=Tc(e);a={...t,x:t.x-n.x,y:t.y-n.y}}return mn(a)}function Hc(e,t){const o=qt(e);return o===t||!Et(o)||$o(o)?!1:ft(o).position==="fixed"||Hc(o,t)}function $0(e,t){const o=t.get(e);if(o)return o;let a=Da(e,[],!1).filter(c=>Et(c)&&jo(c)!=="body"),n=null;const i=ft(e).position==="fixed";let s=i?qt(e):e;for(;Et(s)&&!$o(s);){const c=ft(s),l=Ri(s);!l&&c.position==="fixed"&&(n=null),(i?!l&&!n:!l&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ra(s)&&!l&&Hc(e,s))?a=a.filter(g=>g!==s):n=c,s=qt(s)}return t.set(e,a),a}function R0(e){let{element:t,boundary:o,rootBoundary:a,strategy:n}=e;const s=[...o==="clippingAncestors"?Ln(t)?[]:$0(t,this._c):[].concat(o),a],c=s[0],l=s.reduce((d,g)=>{const m=$s(t,g,n);return d.top=Do(m.top,d.top),d.right=Zr(m.right,d.right),d.bottom=Zr(m.bottom,d.bottom),d.left=Do(m.left,d.left),d},$s(t,c,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function N0(e){const{width:t,height:o}=zc(e);return{width:t,height:o}}function z0(e,t,o){const a=kt(t),n=Nt(t),i=o==="fixed",s=ho(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=Kt(0);if(a||!a&&!i)if((jo(t)!=="body"||Ra(n))&&(c=Mn(t)),a){const m=ho(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else n&&(l.x=Bc(n));const d=s.left+c.scrollLeft-l.x,g=s.top+c.scrollTop-l.y;return{x:d,y:g,width:s.width,height:s.height}}function sr(e){return ft(e).position==="static"}function Rs(e,t){return!kt(e)||ft(e).position==="fixed"?null:t?t(e):e.offsetParent}function Oc(e,t){const o=Je(e);if(Ln(e))return o;if(!kt(e)){let n=qt(e);for(;n&&!$o(n);){if(Et(n)&&!sr(n))return n;n=qt(n)}return o}let a=Rs(e,t);for(;a&&A0(a)&&sr(a);)a=Rs(a,t);return a&&$o(a)&&sr(a)&&!Ri(a)?o:a||S0(e)||o}const T0=async function(e){const t=this.getOffsetParent||Oc,o=this.getDimensions,a=await o(e.floating);return{reference:z0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function B0(e){return ft(e).direction==="rtl"}const an={convertOffsetParentRelativeRectToViewportRelativeRect:D0,getDocumentElement:Nt,getClippingRect:R0,getOffsetParent:Oc,getElementRects:T0,getClientRects:I0,getDimensions:N0,getScale:Io,isElement:Et,isRTL:B0};function H0(e,t){let o=null,a;const n=Nt(e);function i(){var c;clearTimeout(a),(c=o)==null||c.disconnect(),o=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const{left:d,top:g,width:m,height:h}=e.getBoundingClientRect();if(c||t(),!m||!h)return;const p=Ya(g),f=Ya(n.clientWidth-(d+m)),v=Ya(n.clientHeight-(g+h)),y=Ya(d),C={rootMargin:-p+"px "+-f+"px "+-v+"px "+-y+"px",threshold:Do(0,Zr(1,l))||1};let x=!0;function k(S){const A=S[0].intersectionRatio;if(A!==l){if(!x)return s();A?s(!1,A):a=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{o=new IntersectionObserver(k,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(k,C)}o.observe(e)}return s(!0),i}function O0(e,t,o,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,d=zi(e),g=n||i?[...d?Da(d):[],...Da(t)]:[];g.forEach(w=>{n&&w.addEventListener("scroll",o,{passive:!0}),i&&w.addEventListener("resize",o)});const m=d&&c?H0(d,o):null;let h=-1,p=null;s&&(p=new ResizeObserver(w=>{let[C]=w;C&&C.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),o()}),d&&!l&&p.observe(d),p.observe(t));let f,v=l?ho(e):null;l&&y();function y(){const w=ho(e);v&&(w.x!==v.x||w.y!==v.y||w.width!==v.width||w.height!==v.height)&&o(),v=w,f=requestAnimationFrame(y)}return o(),()=>{var w;g.forEach(C=>{n&&C.removeEventListener("scroll",o),i&&C.removeEventListener("resize",o)}),m?.(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const G0=_0,Z0=E0,j0=C0,Ns=k0,Y0=w0,W0=(e,t,o)=>{const a=new Map,n={platform:an,...o},i={...n.platform,_c:a};return y0(e,t,{...n,platform:i})};function U0(e){return X0(e)}function lr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function X0(e){for(let t=e;t;t=lr(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=lr(e);t;t=lr(t)){if(!(t instanceof Element))continue;const o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}var K0=j`
|
|
290
290
|
${W}
|
|
291
291
|
|
|
292
292
|
:host {
|
|
@@ -1387,7 +1387,7 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
1387
1387
|
border: var(--mgo-border-transparent);
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
-
.icon-button--ai::
|
|
1390
|
+
.icon-button--ai::after {
|
|
1391
1391
|
content: '';
|
|
1392
1392
|
position: absolute;
|
|
1393
1393
|
inset: calc(var(--mgo-border-width) * -1);
|
|
@@ -1404,7 +1404,7 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
1404
1404
|
pointer-events: none;
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
|
-
.icon-button--ai::
|
|
1407
|
+
.icon-button--ai::before {
|
|
1408
1408
|
content: '';
|
|
1409
1409
|
position: absolute;
|
|
1410
1410
|
inset: 0;
|
|
@@ -1418,22 +1418,22 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
1418
1418
|
|
|
1419
1419
|
.icon-button--ai:hover:not(.icon-button--disabled):not(
|
|
1420
1420
|
.icon-button--loading
|
|
1421
|
-
)::
|
|
1421
|
+
)::before {
|
|
1422
1422
|
opacity: var(--_mgo-iconbutton-ai-bg-hover);
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
1425
|
.icon-button--ai:active:not(.icon-button--disabled):not(
|
|
1426
1426
|
.icon-button--loading
|
|
1427
|
-
)::
|
|
1427
|
+
)::before {
|
|
1428
1428
|
opacity: var(--_mgo-iconbutton-ai-bg-active);
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
|
-
.icon-button--ai.icon-button--disabled::
|
|
1431
|
+
.icon-button--ai.icon-button--disabled::after {
|
|
1432
1432
|
background: var(--mgo-color-grey-20);
|
|
1433
1433
|
padding: var(--mgo-border-width); /* border thickness */
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
-
.icon-button--ai.icon-button--disabled::
|
|
1436
|
+
.icon-button--ai.icon-button--disabled::before {
|
|
1437
1437
|
background: var(--_mgo-iconbutton-disabled-bg);
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
@@ -1466,7 +1466,7 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
1466
1466
|
|
|
1467
1467
|
.icon-button__icon {
|
|
1468
1468
|
pointer-events: none;
|
|
1469
|
-
|
|
1469
|
+
position: relative;
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
1472
|
/*
|
|
@@ -4712,7 +4712,7 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
4712
4712
|
display: flex;
|
|
4713
4713
|
align-items: center;
|
|
4714
4714
|
pointer-events: none;
|
|
4715
|
-
|
|
4715
|
+
position: relative;
|
|
4716
4716
|
}
|
|
4717
4717
|
|
|
4718
4718
|
.button--has-leading-icon .button__leading-icon {
|
|
@@ -4725,7 +4725,7 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
4725
4725
|
|
|
4726
4726
|
.button__label {
|
|
4727
4727
|
display: inline-block;
|
|
4728
|
-
|
|
4728
|
+
position: relative;
|
|
4729
4729
|
}
|
|
4730
4730
|
|
|
4731
4731
|
/*
|
|
@@ -4920,7 +4920,7 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
4920
4920
|
color: var(--_mgo-button-ai-icon);
|
|
4921
4921
|
}
|
|
4922
4922
|
|
|
4923
|
-
.button--ai::
|
|
4923
|
+
.button--ai::after {
|
|
4924
4924
|
content: '';
|
|
4925
4925
|
position: absolute;
|
|
4926
4926
|
inset: calc(var(--mgo-border-width) * -1);
|
|
@@ -4937,7 +4937,7 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
4937
4937
|
pointer-events: none;
|
|
4938
4938
|
}
|
|
4939
4939
|
|
|
4940
|
-
.button--ai::
|
|
4940
|
+
.button--ai::before {
|
|
4941
4941
|
content: '';
|
|
4942
4942
|
position: absolute;
|
|
4943
4943
|
inset: 0;
|
|
@@ -4949,20 +4949,20 @@ below to use a reasonable system icon instead of this placeholder to appease the
|
|
|
4949
4949
|
pointer-events: none;
|
|
4950
4950
|
}
|
|
4951
4951
|
|
|
4952
|
-
.button--ai:hover:not(.button--disabled):not(.button--loading)::
|
|
4952
|
+
.button--ai:hover:not(.button--disabled):not(.button--loading)::before {
|
|
4953
4953
|
opacity: var(--_mgo-button-ai-bg-hover);
|
|
4954
4954
|
}
|
|
4955
4955
|
|
|
4956
|
-
.button--ai:active:not(.button--disabled):not(.button--loading)::
|
|
4956
|
+
.button--ai:active:not(.button--disabled):not(.button--loading)::before {
|
|
4957
4957
|
opacity: var(--_mgo-button-ai-bg-active);
|
|
4958
4958
|
}
|
|
4959
4959
|
|
|
4960
|
-
.button--ai.button--disabled::
|
|
4960
|
+
.button--ai.button--disabled::after {
|
|
4961
4961
|
background: var(--mgo-color-grey-20);
|
|
4962
4962
|
padding: var(--mgo-border-width); /* border thickness */
|
|
4963
4963
|
}
|
|
4964
4964
|
|
|
4965
|
-
.button--ai.button--disabled::
|
|
4965
|
+
.button--ai.button--disabled::before {
|
|
4966
4966
|
background: var(--_mgo-button-disabled-bg);
|
|
4967
4967
|
}
|
|
4968
4968
|
|