@penwin/discord-components-core 4.7.0 → 4.7.1
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/custom-elements.json +2 -0
- package/dist/bundle/index.mjs +10 -2
- package/dist/bundle/index.mjs.map +1 -1
- package/dist/components/discord-separator/DiscordSeparator.d.ts +4 -0
- package/dist/components/discord-separator/DiscordSeparator.d.ts.map +1 -1
- package/dist/components/discord-separator/DiscordSeparator.js +10 -1
- package/dist/components/discord-separator/DiscordSeparator.js.map +1 -1
- package/dist/components/discord-text-display/DiscordTextDisplay.d.ts.map +1 -1
- package/dist/components/discord-text-display/DiscordTextDisplay.js +9 -1
- package/dist/components/discord-text-display/DiscordTextDisplay.js.map +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -10312,6 +10312,7 @@
|
|
|
10312
10312
|
},
|
|
10313
10313
|
"privacy": "public",
|
|
10314
10314
|
"default": "true",
|
|
10315
|
+
"description": "Whether a line is drawn, as in Discord's `divider` field. It defaults to `true`, so a\nplain boolean attribute could never turn it off: `divider=\"false\"` does.",
|
|
10315
10316
|
"attribute": "divider"
|
|
10316
10317
|
},
|
|
10317
10318
|
{
|
|
@@ -10333,6 +10334,7 @@
|
|
|
10333
10334
|
"text": "boolean"
|
|
10334
10335
|
},
|
|
10335
10336
|
"default": "true",
|
|
10337
|
+
"description": "Whether a line is drawn, as in Discord's `divider` field. It defaults to `true`, so a\nplain boolean attribute could never turn it off: `divider=\"false\"` does.",
|
|
10336
10338
|
"fieldName": "divider"
|
|
10337
10339
|
},
|
|
10338
10340
|
{
|
package/dist/bundle/index.mjs
CHANGED
|
@@ -6856,7 +6856,7 @@ for(let n of t)if(n[0]===e)return(0,n[1])();return n?.()},zs=e=>F`<div class="di
|
|
|
6856
6856
|
:host([spacing='2']) {
|
|
6857
6857
|
margin: 8px 0px;
|
|
6858
6858
|
}
|
|
6859
|
-
`}render(){return F` ${q(this.divider,()=>F`<div class="discord-divider-hr"></div>`)} `}};H([B({
|
|
6859
|
+
`}render(){return F` ${q(this.divider,()=>F`<div class="discord-divider-hr"></div>`)} `}};H([B({converter:{fromAttribute:e=>e!==`false`,toAttribute:e=>e?``:`false`}}),J(`design:type`,Object)],cl.prototype,`divider`,void 0),H([B({type:Number,reflect:!0}),J(`design:type`,Number)],cl.prototype,`spacing`,void 0),cl=H([z(`discord-separator`)],cl);let ll=class extends R{constructor(...e){super(...e),this.activated=!1,this.lightTheme=!1}static{this.styles=h`
|
|
6860
6860
|
:host {
|
|
6861
6861
|
background-color: #202225;
|
|
6862
6862
|
border-radius: 3px;
|
|
@@ -7232,7 +7232,15 @@ for(let n of t)if(n[0]===e)return(0,n[1])();return n?.()},zs=e=>F`<div class="di
|
|
|
7232
7232
|
font-family: 'gg sans', 'Noto Sans', Whitney, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
|
|
7233
7233
|
justify-content: var(--justify-content, flex-start);
|
|
7234
7234
|
}
|
|
7235
|
-
`}render(){return F`<slot></slot>`}};Il=H([z(`discord-text-display`)],Il);var Ll=`bottom`,Rl=`right`,zl=`left`,Bl=`auto`,Vl=[`top`,Ll,Rl,zl],Hl=`start`,Ul=`clippingParents`,Wl=`viewport`,Gl=`popper`,Kl=`reference`,ql=/*#__PURE__*/ Vl.reduce(function(e,t){return e.concat([t+`-`+Hl,t+`-end`])},[]),Jl=/*#__PURE__*/ [].concat(Vl,[Bl]).reduce(function(e,t){return e.concat([t,t+`-`+Hl,t+`-end`])},[]),Yl=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Xl(e){return e?(e.nodeName||``).toLowerCase():null}function Zl(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ql(e){return e instanceof Zl(e).Element||e instanceof Element}function $l(e){return e instanceof Zl(e).HTMLElement||e instanceof HTMLElement}function eu(e){return typeof ShadowRoot>`u`?!1:e instanceof Zl(e).ShadowRoot||e instanceof ShadowRoot}function tu(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];$l(i)&&Xl(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function nu(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});$l(r)&&Xl(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ru={name:`applyStyles`,enabled:!0,phase:`write`,fn:tu,effect:nu,requires:[`computeStyles`]};function iu(e){return e.split(`-`)[0]}var au=Math.max,ou=Math.min,su=Math.round;function cu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function lu(){return!/^((?!chrome|android).)*safari/i.test(cu())}function uu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&$l(e)&&(i=e.offsetWidth>0&&su(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&su(r.height)/e.offsetHeight||1);var o=(Ql(e)?Zl(e):window).visualViewport,s=!lu()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function du(e){var t=uu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&eu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pu(e){return Zl(e).getComputedStyle(e)}function mu(e){return[`table`,`td`,`th`].indexOf(Xl(e))>=0}function hu(e){return((Ql(e)?e.ownerDocument:e.document)||window.document).documentElement}function gu(e){return Xl(e)===`html`?e:e.assignedSlot||e.parentNode||(eu(e)?e.host:null)||hu(e)}function _u(e){return!$l(e)||pu(e).position===`fixed`?null:e.offsetParent}function vu(e){var t=/firefox/i.test(cu());if(/Trident/i.test(cu())&&$l(e)&&pu(e).position===`fixed`)return null;var n=gu(e);for(eu(n)&&(n=n.host);$l(n)&&[`html`,`body`].indexOf(Xl(n))<0;){var r=pu(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function yu(e){for(var t=Zl(e),n=_u(e);n&&mu(n)&&pu(n).position===`static`;)n=_u(n);return n&&(Xl(n)===`html`||Xl(n)===`body`&&pu(n).position===`static`)?t:n||vu(e)||t}function bu(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function xu(e,t,n){return au(e,ou(t,n))}function Su(e,t,n){var r=xu(e,t,n);return r>n?n:r}function Cu(){return{top:0,right:0,bottom:0,left:0}}function wu(e){return Object.assign({},Cu(),e)}function Tu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Eu=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,wu(typeof e==`number`?Tu(e,Vl):e)};function Du(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=iu(n.placement),c=bu(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=Eu(i.padding,n),d=du(a),f=c===`y`?`top`:zl,p=c===`y`?Ll:Rl,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=yu(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=xu(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Ou(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||fu(t.elements.popper,r)&&(t.elements.arrow=r))}var ku={name:`arrow`,enabled:!0,phase:`main`,fn:Du,effect:Ou,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Au(e){return e.split(`-`)[1]}var ju={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Mu(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:su(n*i)/i||0,y:su(r*i)/i||0}}function Nu(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=zl,b=`top`,x=window;if(l){var S=yu(n),C=`clientHeight`,w=`clientWidth`;if(S===Zl(n)&&(S=hu(n),pu(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Ll;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Rl;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&ju),O=u===!0?Mu({x:p,y:h},Zl(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Pu(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:iu(t.placement),variation:Au(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nu(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nu(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Fu={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Pu,data:{}},Iu={passive:!0};function Lu(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=Zl(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Iu)}),s&&c.addEventListener(`resize`,n.update,Iu),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Iu)}),s&&c.removeEventListener(`resize`,n.update,Iu)}}var Ru={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Lu,data:{}},zu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Bu(e){return e.replace(/left|right|bottom|top/g,function(e){return zu[e]})}var Vu={start:`end`,end:`start`};function Hu(e){return e.replace(/start|end/g,function(e){return Vu[e]})}function Uu(e){var t=Zl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wu(e){return uu(hu(e)).left+Uu(e).scrollLeft}function Gu(e,t){var n=Zl(e),r=hu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=lu();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Wu(e),y:c}}function Ku(e){var t=hu(e),n=Uu(e),r=e.ownerDocument?.body,i=au(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=au(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Wu(e),s=-n.scrollTop;return pu(r||t).direction===`rtl`&&(o+=au(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function qu(e){var t=pu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ju(e){return[`html`,`body`,`#document`].indexOf(Xl(e))>=0?e.ownerDocument.body:$l(e)&&qu(e)?e:Ju(gu(e))}function Yu(e,t){t===void 0&&(t=[]);var n=Ju(e),r=n===e.ownerDocument?.body,i=Zl(n),a=r?[i].concat(i.visualViewport||[],qu(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Yu(gu(a)))}function Xu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zu(e,t){var n=uu(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Qu(e,t,n){return t===`viewport`?Xu(Gu(e,n)):Ql(t)?Zu(t,n):Xu(Ku(hu(e)))}function $u(e){var t=Yu(gu(e)),n=[`absolute`,`fixed`].indexOf(pu(e).position)>=0&&$l(e)?yu(e):e;return Ql(n)?t.filter(function(e){return Ql(e)&&fu(e,n)&&Xl(e)!==`body`}):[]}function ed(e,t,n,r){var i=t===`clippingParents`?$u(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Qu(e,n,r);return t.top=au(i.top,t.top),t.right=ou(i.right,t.right),t.bottom=ou(i.bottom,t.bottom),t.left=au(i.left,t.left),t},Qu(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function td(e){var t=e.reference,n=e.element,r=e.placement,i=r?iu(r):null,a=r?Au(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Ll:c={x:o,y:t.y+t.height};break;case Rl:c={x:t.x+t.width,y:s};break;case zl:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?bu(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Hl:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function nd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ul:s,l=n.rootBoundary,u=l===void 0?Wl:l,d=n.elementContext,f=d===void 0?Gl:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=wu(typeof g==`number`?Tu(g,Vl):g),v=f===`popper`?Kl:Gl,y=e.rects.popper,b=e.elements[m?v:f],x=ed(Ql(b)?b:b.contextElement||hu(e.elements.popper),c,u,o),S=uu(e.elements.reference),C=td({reference:S,element:y,strategy:`absolute`,placement:i}),w=Xu(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function rd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Jl:c,u=Au(r),d=u?s?ql:ql.filter(function(e){return Au(e)===u}):Vl,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=nd(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[iu(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function id(e){if(iu(e)===`auto`)return[];var t=Bu(e);return[Hu(e),t,Hu(t)]}function ad(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=iu(g)===g,v=c||(_||!m?[Bu(g)]:id(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(iu(n)===`auto`?rd(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=/* @__PURE__ */ new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=iu(E),O=Au(E)===Hl,k=[`top`,Ll].indexOf(D)>=0,A=k?`width`:`height`,j=nd(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?Rl:zl:O?Ll:`top`;b[A]>x[A]&&(M=Bu(M));var ee=Bu(M),N=[];if(a&&N.push(j[D]<=0),s&&N.push(j[M]<=0,j[ee]<=0),N.every(function(e){return e})){w=E,C=!1;break}S.set(E,N)}if(C)for(var te=m?3:1,ne=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},re=te;re>0&&ne(re)!==`break`;re--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var od={name:`flip`,enabled:!0,phase:`main`,fn:ad,requiresIfExists:[`offset`],data:{_skip:!1}};function sd(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function cd(e){return[`top`,Rl,Ll,zl].some(function(t){return e[t]>=0})}function ld(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=nd(t,{elementContext:`reference`}),s=nd(t,{altBoundary:!0}),c=sd(o,r),l=sd(s,i,a),u=cd(c),d=cd(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ud={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:ld};function dd(e,t,n){var r=iu(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function fd(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Jl.reduce(function(e,n){return e[n]=dd(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var pd={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:fd};function md(e){var t=e.state,n=e.name;t.modifiersData[n]=td({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var hd={name:`popperOffsets`,enabled:!0,phase:`read`,fn:md,data:{}};function gd(e){return e===`x`?`y`:`x`}function _d(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=nd(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=iu(t.placement),v=Au(t.placement),y=!v,b=bu(_),x=gd(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:zl,A=b===`y`?Ll:Rl,j=b===`y`?`height`:`width`,M=S[b],ee=M+g[k],N=M-g[A],te=p?-w[j]/2:0,ne=v===`start`?C[j]:w[j],re=v===`start`?-w[j]:-C[j],P=t.elements.arrow,ie=p&&P?du(P):{width:0,height:0},ae=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Cu(),oe=ae[k],se=ae[A],ce=xu(0,C[j],ie[j]),le=y?C[j]/2-te-ce-oe-E.mainAxis:ne-ce-oe-E.mainAxis,ue=y?-C[j]/2+te+ce+se+E.mainAxis:re+ce+se+E.mainAxis,de=t.elements.arrow&&yu(t.elements.arrow),fe=de?b===`y`?de.clientTop||0:de.clientLeft||0:0,pe=D?.[b]??0,me=M+le-pe-fe,he=M+ue-pe,ge=xu(p?ou(ee,me):ee,M,p?au(N,he):N);S[b]=ge,O[b]=ge-M}if(s){var _e=b===`x`?`top`:zl,ve=b===`x`?Ll:Rl,ye=S[x],F=x===`y`?`height`:`width`,I=ye+g[_e],be=ye-g[ve],L=[`top`,zl].indexOf(_)!==-1,xe=D?.[x]??0,Se=L?I:ye-C[F]-w[F]-xe+E.altAxis,Ce=L?ye+C[F]+w[F]-xe-E.altAxis:be,we=p&&L?Su(Se,ye,Ce):xu(p?Se:I,ye,p?Ce:be);S[x]=we,O[x]=we-ye}t.modifiersData[r]=O}}var vd={name:`preventOverflow`,enabled:!0,phase:`main`,fn:_d,requiresIfExists:[`offset`]};function yd(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bd(e){return e===Zl(e)||!$l(e)?Uu(e):yd(e)}function xd(e){var t=e.getBoundingClientRect(),n=su(t.width)/e.offsetWidth||1,r=su(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Sd(e,t,n){n===void 0&&(n=!1);var r=$l(t),i=$l(t)&&xd(t),a=hu(t),o=uu(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Xl(t)!==`body`||qu(a))&&(s=bd(t)),$l(t)?(c=uu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Wu(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Cd(e){var t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function wd(e){var t=Cd(e);return Yl.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Td(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Ed(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Dd={placement:`bottom`,modifiers:[],strategy:`absolute`};function Od(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function kd(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Dd:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Dd,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Ql(e)?Yu(e):e.contextElement?Yu(e.contextElement):[],popper:Yu(t)};var s=wd(Ed([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Od(t,n)){i.rects={reference:Sd(t,yu(n),i.options.strategy===`fixed`),popper:du(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(i.reset===!0)i.reset=!1,r=-1;else{var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Td(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Od(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Ad=/*#__PURE__*/ kd({defaultModifiers:[Ru,hd,Fu,ru,pd,od,vd,ku,ud]});function jd(){return F`<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24">
|
|
7235
|
+
|
|
7236
|
+
/* One block for all the slotted content, so text, formatting and emojis flow inline as they
|
|
7237
|
+
do in a message instead of each becoming its own flex row. */
|
|
7238
|
+
.discord-text-display-content {
|
|
7239
|
+
display: block;
|
|
7240
|
+
min-width: 0;
|
|
7241
|
+
overflow-wrap: anywhere;
|
|
7242
|
+
}
|
|
7243
|
+
`}render(){return F`<div class="discord-text-display-content"><slot></slot></div>`}};Il=H([z(`discord-text-display`)],Il);var Ll=`bottom`,Rl=`right`,zl=`left`,Bl=`auto`,Vl=[`top`,Ll,Rl,zl],Hl=`start`,Ul=`clippingParents`,Wl=`viewport`,Gl=`popper`,Kl=`reference`,ql=/*#__PURE__*/ Vl.reduce(function(e,t){return e.concat([t+`-`+Hl,t+`-end`])},[]),Jl=/*#__PURE__*/ [].concat(Vl,[Bl]).reduce(function(e,t){return e.concat([t,t+`-`+Hl,t+`-end`])},[]),Yl=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Xl(e){return e?(e.nodeName||``).toLowerCase():null}function Zl(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ql(e){return e instanceof Zl(e).Element||e instanceof Element}function $l(e){return e instanceof Zl(e).HTMLElement||e instanceof HTMLElement}function eu(e){return typeof ShadowRoot>`u`?!1:e instanceof Zl(e).ShadowRoot||e instanceof ShadowRoot}function tu(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];$l(i)&&Xl(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function nu(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});$l(r)&&Xl(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ru={name:`applyStyles`,enabled:!0,phase:`write`,fn:tu,effect:nu,requires:[`computeStyles`]};function iu(e){return e.split(`-`)[0]}var au=Math.max,ou=Math.min,su=Math.round;function cu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function lu(){return!/^((?!chrome|android).)*safari/i.test(cu())}function uu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&$l(e)&&(i=e.offsetWidth>0&&su(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&su(r.height)/e.offsetHeight||1);var o=(Ql(e)?Zl(e):window).visualViewport,s=!lu()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function du(e){var t=uu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&eu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pu(e){return Zl(e).getComputedStyle(e)}function mu(e){return[`table`,`td`,`th`].indexOf(Xl(e))>=0}function hu(e){return((Ql(e)?e.ownerDocument:e.document)||window.document).documentElement}function gu(e){return Xl(e)===`html`?e:e.assignedSlot||e.parentNode||(eu(e)?e.host:null)||hu(e)}function _u(e){return!$l(e)||pu(e).position===`fixed`?null:e.offsetParent}function vu(e){var t=/firefox/i.test(cu());if(/Trident/i.test(cu())&&$l(e)&&pu(e).position===`fixed`)return null;var n=gu(e);for(eu(n)&&(n=n.host);$l(n)&&[`html`,`body`].indexOf(Xl(n))<0;){var r=pu(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function yu(e){for(var t=Zl(e),n=_u(e);n&&mu(n)&&pu(n).position===`static`;)n=_u(n);return n&&(Xl(n)===`html`||Xl(n)===`body`&&pu(n).position===`static`)?t:n||vu(e)||t}function bu(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function xu(e,t,n){return au(e,ou(t,n))}function Su(e,t,n){var r=xu(e,t,n);return r>n?n:r}function Cu(){return{top:0,right:0,bottom:0,left:0}}function wu(e){return Object.assign({},Cu(),e)}function Tu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Eu=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,wu(typeof e==`number`?Tu(e,Vl):e)};function Du(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=iu(n.placement),c=bu(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=Eu(i.padding,n),d=du(a),f=c===`y`?`top`:zl,p=c===`y`?Ll:Rl,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=yu(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=xu(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Ou(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||fu(t.elements.popper,r)&&(t.elements.arrow=r))}var ku={name:`arrow`,enabled:!0,phase:`main`,fn:Du,effect:Ou,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Au(e){return e.split(`-`)[1]}var ju={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Mu(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:su(n*i)/i||0,y:su(r*i)/i||0}}function Nu(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=zl,b=`top`,x=window;if(l){var S=yu(n),C=`clientHeight`,w=`clientWidth`;if(S===Zl(n)&&(S=hu(n),pu(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Ll;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Rl;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&ju),O=u===!0?Mu({x:p,y:h},Zl(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Pu(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:iu(t.placement),variation:Au(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nu(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nu(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Fu={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Pu,data:{}},Iu={passive:!0};function Lu(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=Zl(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Iu)}),s&&c.addEventListener(`resize`,n.update,Iu),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Iu)}),s&&c.removeEventListener(`resize`,n.update,Iu)}}var Ru={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Lu,data:{}},zu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Bu(e){return e.replace(/left|right|bottom|top/g,function(e){return zu[e]})}var Vu={start:`end`,end:`start`};function Hu(e){return e.replace(/start|end/g,function(e){return Vu[e]})}function Uu(e){var t=Zl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wu(e){return uu(hu(e)).left+Uu(e).scrollLeft}function Gu(e,t){var n=Zl(e),r=hu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=lu();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Wu(e),y:c}}function Ku(e){var t=hu(e),n=Uu(e),r=e.ownerDocument?.body,i=au(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=au(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Wu(e),s=-n.scrollTop;return pu(r||t).direction===`rtl`&&(o+=au(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function qu(e){var t=pu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ju(e){return[`html`,`body`,`#document`].indexOf(Xl(e))>=0?e.ownerDocument.body:$l(e)&&qu(e)?e:Ju(gu(e))}function Yu(e,t){t===void 0&&(t=[]);var n=Ju(e),r=n===e.ownerDocument?.body,i=Zl(n),a=r?[i].concat(i.visualViewport||[],qu(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Yu(gu(a)))}function Xu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zu(e,t){var n=uu(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Qu(e,t,n){return t===`viewport`?Xu(Gu(e,n)):Ql(t)?Zu(t,n):Xu(Ku(hu(e)))}function $u(e){var t=Yu(gu(e)),n=[`absolute`,`fixed`].indexOf(pu(e).position)>=0&&$l(e)?yu(e):e;return Ql(n)?t.filter(function(e){return Ql(e)&&fu(e,n)&&Xl(e)!==`body`}):[]}function ed(e,t,n,r){var i=t===`clippingParents`?$u(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Qu(e,n,r);return t.top=au(i.top,t.top),t.right=ou(i.right,t.right),t.bottom=ou(i.bottom,t.bottom),t.left=au(i.left,t.left),t},Qu(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function td(e){var t=e.reference,n=e.element,r=e.placement,i=r?iu(r):null,a=r?Au(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Ll:c={x:o,y:t.y+t.height};break;case Rl:c={x:t.x+t.width,y:s};break;case zl:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?bu(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Hl:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function nd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ul:s,l=n.rootBoundary,u=l===void 0?Wl:l,d=n.elementContext,f=d===void 0?Gl:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=wu(typeof g==`number`?Tu(g,Vl):g),v=f===`popper`?Kl:Gl,y=e.rects.popper,b=e.elements[m?v:f],x=ed(Ql(b)?b:b.contextElement||hu(e.elements.popper),c,u,o),S=uu(e.elements.reference),C=td({reference:S,element:y,strategy:`absolute`,placement:i}),w=Xu(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function rd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Jl:c,u=Au(r),d=u?s?ql:ql.filter(function(e){return Au(e)===u}):Vl,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=nd(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[iu(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function id(e){if(iu(e)===`auto`)return[];var t=Bu(e);return[Hu(e),t,Hu(t)]}function ad(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=iu(g)===g,v=c||(_||!m?[Bu(g)]:id(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(iu(n)===`auto`?rd(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=/* @__PURE__ */ new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=iu(E),O=Au(E)===Hl,k=[`top`,Ll].indexOf(D)>=0,A=k?`width`:`height`,j=nd(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?Rl:zl:O?Ll:`top`;b[A]>x[A]&&(M=Bu(M));var ee=Bu(M),N=[];if(a&&N.push(j[D]<=0),s&&N.push(j[M]<=0,j[ee]<=0),N.every(function(e){return e})){w=E,C=!1;break}S.set(E,N)}if(C)for(var te=m?3:1,ne=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},re=te;re>0&&ne(re)!==`break`;re--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var od={name:`flip`,enabled:!0,phase:`main`,fn:ad,requiresIfExists:[`offset`],data:{_skip:!1}};function sd(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function cd(e){return[`top`,Rl,Ll,zl].some(function(t){return e[t]>=0})}function ld(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=nd(t,{elementContext:`reference`}),s=nd(t,{altBoundary:!0}),c=sd(o,r),l=sd(s,i,a),u=cd(c),d=cd(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ud={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:ld};function dd(e,t,n){var r=iu(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function fd(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Jl.reduce(function(e,n){return e[n]=dd(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var pd={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:fd};function md(e){var t=e.state,n=e.name;t.modifiersData[n]=td({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var hd={name:`popperOffsets`,enabled:!0,phase:`read`,fn:md,data:{}};function gd(e){return e===`x`?`y`:`x`}function _d(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=nd(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=iu(t.placement),v=Au(t.placement),y=!v,b=bu(_),x=gd(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:zl,A=b===`y`?Ll:Rl,j=b===`y`?`height`:`width`,M=S[b],ee=M+g[k],N=M-g[A],te=p?-w[j]/2:0,ne=v===`start`?C[j]:w[j],re=v===`start`?-w[j]:-C[j],P=t.elements.arrow,ie=p&&P?du(P):{width:0,height:0},ae=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Cu(),oe=ae[k],se=ae[A],ce=xu(0,C[j],ie[j]),le=y?C[j]/2-te-ce-oe-E.mainAxis:ne-ce-oe-E.mainAxis,ue=y?-C[j]/2+te+ce+se+E.mainAxis:re+ce+se+E.mainAxis,de=t.elements.arrow&&yu(t.elements.arrow),fe=de?b===`y`?de.clientTop||0:de.clientLeft||0:0,pe=D?.[b]??0,me=M+le-pe-fe,he=M+ue-pe,ge=xu(p?ou(ee,me):ee,M,p?au(N,he):N);S[b]=ge,O[b]=ge-M}if(s){var _e=b===`x`?`top`:zl,ve=b===`x`?Ll:Rl,ye=S[x],F=x===`y`?`height`:`width`,I=ye+g[_e],be=ye-g[ve],L=[`top`,zl].indexOf(_)!==-1,xe=D?.[x]??0,Se=L?I:ye-C[F]-w[F]-xe+E.altAxis,Ce=L?ye+C[F]+w[F]-xe-E.altAxis:be,we=p&&L?Su(Se,ye,Ce):xu(p?Se:I,ye,p?Ce:be);S[x]=we,O[x]=we-ye}t.modifiersData[r]=O}}var vd={name:`preventOverflow`,enabled:!0,phase:`main`,fn:_d,requiresIfExists:[`offset`]};function yd(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bd(e){return e===Zl(e)||!$l(e)?Uu(e):yd(e)}function xd(e){var t=e.getBoundingClientRect(),n=su(t.width)/e.offsetWidth||1,r=su(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Sd(e,t,n){n===void 0&&(n=!1);var r=$l(t),i=$l(t)&&xd(t),a=hu(t),o=uu(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Xl(t)!==`body`||qu(a))&&(s=bd(t)),$l(t)?(c=uu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Wu(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Cd(e){var t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function wd(e){var t=Cd(e);return Yl.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Td(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Ed(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Dd={placement:`bottom`,modifiers:[],strategy:`absolute`};function Od(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function kd(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Dd:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Dd,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Ql(e)?Yu(e):e.contextElement?Yu(e.contextElement):[],popper:Yu(t)};var s=wd(Ed([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Od(t,n)){i.rects={reference:Sd(t,yu(n),i.options.strategy===`fixed`),popper:du(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(i.reset===!0)i.reset=!1,r=-1;else{var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Td(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Od(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Ad=/*#__PURE__*/ kd({defaultModifiers:[Ru,hd,Fu,ru,pd,od,vd,ku,ud]});function jd(){return F`<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24">
|
|
7236
7244
|
<path
|
|
7237
7245
|
fill="currentColor"
|
|
7238
7246
|
fill-rule="evenodd"
|