${(0,Bt.g)((t=>{var e;return null===(e=t.reportDialogOptions)||void 0===e?void 0:e.options}),Nt)}
{var e;return null===(e=t.reportDialogOptions)||void 0===e?void 0:e.reportDialogFeedbackInput}}
@input=${(t,e)=>t.setReportDialogFeedbackInput(e.event.target.value)}
placeholder=${t=>t.strings.reportDialogFeedbackText}
aria-required="false"
>
${(0,Bt.g)((t=>t.advancedFeatures),S.d`
{var o;return t.isDiagnosticData=null===(o=e.event.target)||void 0===o?void 0:o.checked}}"
class="input-option diagnostic-data-link"
arial-label=${t=>t.strings.includeDiagnosticData}
:defaultChecked="${t=>t.isDiagnosticData}">
{e.event.preventDefault(),e.event.stopPropagation(),t.$emit("showDiagnosticData")}}> ${t=>t.strings.includeDiagnosticData}
t.strings.pickSpecificArea}
class="question-circle"
id="pick-area-info-helper"
@click="${(t,e)=>t.pickArea()}"> ${(0,Mt.c)('')}
0} anchor="pick-area-info-helper">${t=>t.strings.pickSpecificArea}
${(0,Bt.g)((t=>t.supportScreenshot),S.d`
{var o;return(null===(o=e.event.target)||void 0===o?void 0:o.checked)?t.screenshot(e.event.target):t.screenshotUrl=""}}"
arial-label=${t=>t.strings.includeThisScreenshot}>
${t=>t.strings.includeThisScreenshot}
${(0,Mt.c)('')}
0} anchor="screenshot-info-helper">
${t=>t.strings.screenshotHelpInfo}
`)}
${(0,Bt.g)((t=>t.supportScreenshot&&t.screenshotUrl),S.d`
t.strings.corpImage}
role="button"
title=${t=>t.strings.corpImage}
appearance="stealth"tabindex="0"
@click=${t=>t.$emit("handleShowScreenshot",{screenshotUrl:t.screenshotUrlBackup,screenshotCorpCallback:e=>t.screenshotUrl=e})}
>
${(0,Mt.c)(Vt.Z)}
`)}
`)}
t.useEmailAddress}
:placeholder=${t=>t.userEmailPlaceholder}
@change=${(t,e)=>{var i;return t.useEmailAddress=null===(i=e.event.target)||void 0===i?void 0:i.checked}}
arial-label=${t=>t.strings.emailLabel}
:defaultChecked="${t=>t.useEmailAddress}">
${t=>t.strings.emailLabel}
t.userEmailValue}
:placeholder=${t=>t.strings.emailValidationLabel}
@input=${(t,e)=>{t.inputEmailHandler(e.event.target.value)}}
aria-required="false">
`,_t=S.d`
t*o));n.width=s[2],n.height=s[3],a.drawImage(e,s[0],s[1],s[2],s[3],0,0,s[2],s[3]),this.screenshotOptions.screenshotCorpCallback(n.toDataURL("image/png")),this.$emit("close")}drawSelectedArea(t,e,i,o,n=!1){const a=this.rect.width,s=this.rect.height,r=this.canvasRef.getContext("2d");r.fillStyle="rgba(0,0,0, 0.7)",r.strokeStyle=n?"#ffffff":"rgba(255,255,255,.5)",r.clearRect(0,0,a,s),r.fillRect(0,0,a,s),r.clearRect(t,e,i,o),r.setLineDash([15,3,3,3]),r.strokeRect(t,e,i,o)}};(0,h.gn)([u.LO],Zt.prototype,"screenshotOptions",void 0),(0,h.gn)([u.LO],Zt.prototype,"strings",void 0),Zt=(0,h.gn)([(0,p.M)({name:"screenshot-editor-dialog",template:Wt,styles:Kt})],Zt);const Jt=k.i`
${zt}
.feedback-text {
padding: 0 10px 0 0;
font-size: var(--type-ramp-minus-1-font-size, 10px);
}
.feedback-supportText {
display: flex;
font-size: var(--type-ramp-minus-1-font-size, 10px);
}
.feedback-supportUrl {
padding: 0 5px 0 5px;
position: relative;
top: -9px;
font-size: var(--type-ramp-minus-2-font-size, 10px);
}
.feedback-supportUrl a {
text-decoration: none;
color: ${C.goi};
}
.feedback-supportUrl a:hover {
color: ${C.D9J};
}
`,Qt=S.d`
t.strings.closeDialogHeader}
:trapFocus=${t=>!0}
modal
>
t.close()}
aria-label=${t=>t.strings.closeButtonAriaLabel}
role="button"
title=${t=>t.strings.closeDialogButtonText}
data-t="${t=>t.feedbackDialogTelemetryTags.closeButton}"
>
${(0,Mt.c)(Ut.Z)}
${t=>t.strings.closeDialogBody}
${t=>t.supportText[0]}
t.supportUrlLink}
target="_blank" >
${t=>t.strings.closeDialogSupportLinkText}
${t=>t.supportText[1]}
t.close()}
title=${t=>t.strings.closeDialogButtonText}
aria-label=${t=>t.strings.closeButtonAriaLabel}
role="button"
data-t="${t=>t.feedbackDialogTelemetryTags.submitButton}"
>
${t=>t.strings.closeDialogButtonText}
`;let te=class extends p.H{close(){this.$emit("close")}get supportUrlLink(){return this.supportUrl}get supportText(){return this.strings.closeDialogSupportText.split("{0}")}};(0,h.gn)([g.Lj],te.prototype,"supportUrl",void 0),(0,h.gn)([u.LO],te.prototype,"feedbackDialogTelemetryTags",void 0),(0,h.gn)([u.LO],te.prototype,"strings",void 0),te=(0,h.gn)([(0,p.M)({name:"close-dialog",template:Qt,styles:Jt})],te);const ee=k.i`
${zt}
msn-action-dialog::part(control) {
width: 600px;
max-width: 100%;
max-height: 800px;
padding-bottom: 60px;
overflow-y: auto;
overflow-x: hidden;
}
.pre-wrapper {
border: #e5e5e5 1px solid;
}
pre {
white-space: pre-wrap;
word-wrap: break-word;
}
svg.action-operator {
fill: transparent;
stroke: ${C.yGg};
}
fluent-accordion-item {
margin-top: var(--dialog-padding);
border-bottom: 1px solid ${C.wFS};
padding: 12px;
}
.heading {
font-size: ${C.mWK};
}
`,ie=S.d``,oe=S.d``,ne=S.d`
!1}
class="action-dialog"
headline=${t=>t.strings.diagnosticDialogHeader}
ariaLabel=${t=>t.strings.diagnosticDialogHeader}
modal
>
t.close()}
aria-label=${t=>t.strings.closeDialogButtonText}
role="button"
title=${t=>t.strings.closeDialogButtonText}
data-t="${t=>t.feedbackDialogTelemetryTags.closeButton}"
>
${(0,Mt.c)(Ut.Z)}
${t=>t.strings.diagnosticAppInfo}
${ie}
${oe}
${t=>JSON.stringify({headData:t.diagnosticData.headData,appEnvironment:t.diagnosticData.appEnvironment},null,2)}
${t=>t.strings.diagnosticSettingInfo}
${ie}
${oe}
${t=>JSON.stringify({rootConfig:t.diagnosticData.rootConfig},null,2)}
${t=>t.strings.diagnosticErrorInfo}
${ie}
${oe}
${t=>JSON.stringify({error:t.diagnosticData.error},null,2)}
${(0,Bt.g)((t=>t.diagnosticData.pickedArea),S.d`
${t=>t.strings.selectedAreaInfo}
${ie}
${oe}
${t=>JSON.stringify({pickedArea:t.diagnosticData.pickedArea},null,2)}
`)}
`;let ae=class extends p.H{constructor(){super(...arguments),this.strings={}}close(){this.$emit("close")}};(0,h.gn)([u.LO],ae.prototype,"diagnosticData",void 0),(0,h.gn)([u.LO],ae.prototype,"strings",void 0),(0,h.gn)([u.LO],ae.prototype,"feedbackDialogTelemetryTags",void 0),ae=(0,h.gn)([(0,p.M)({name:"diagnostic-data-dialog",template:ne,styles:ee})],ae);const se=S.d`
t.backgroundColor}>
${(0,Bt.g)((t=>t.visible&&t.activeDialog===Rt.ReportDialog),S.d`
t.config.includeUserEmail}
:feedbackDialogTelemetryTags=${t=>t.feedbackDialogTelemetryTags}
:strings=${t=>t.strings}
:advancedFeatures=${t=>t.config.advancedFeatures}
@hideDialog=${(t,e)=>{var i;t.hideDialog(null===(i=e.event)||void 0===i?void 0:i.detail)}}
@submit=${(t,e)=>t.handleReportDialogSubmit(e.event)}
@showDiagnosticData= ${t=>{t.showDiagnosticData=!0}}
@handleShowScreenshot =${(t,e)=>{var i;return t.handleShowScreenshot(null===(i=e.event)||void 0===i?void 0:i.detail)}}
@pickAnAreaDone =${(t,e)=>{var i;return t.diagnosticData=Object.assign(Object.assign({},t.diagnosticData),{pickedArea:null===(i=e.event)||void 0===i?void 0:i.detail})}}
@close=${t=>t.close()}
>
`)}
${(0,Bt.g)((t=>t.visible&&t.activeDialog===Rt.CloseDialog),S.d`
{var e;return null===(e=t.config.confirmationHelpAndSupport)||void 0===e?void 0:e.href}}
:feedbackDialogTelemetryTags=${t=>t.feedbackDialogTelemetryTags}
:strings=${t=>t.strings}
@close=${t=>t.close()}
>
`)}
${(0,Bt.g)((t=>t.visible&&t.showDiagnosticData),S.d`
t.showDiagnosticData=!1}
:feedbackDialogTelemetryTags=${t=>t.feedbackDialogTelemetryTags}
:diagnosticData=${t=>t.diagnosticData}
:strings=${t=>t.strings}>
`)}
${(0,Bt.g)((t=>t.visible&&t.showScreenshotEditor),S.d`
t.showScreenshotEditor=!1}
:feedbackDialogTelemetryTags=${t=>t.feedbackDialogTelemetryTags}
:screenshotOptions=${t=>t.screenshotOptions}
:strings=${t=>t.strings}
`)}
`,re={experienceConfigSchema:X};o.D.define(n.H.registry),a.D.define(n.H.registry),s.D.define(n.H.registry),r.D.define(n.H.registry),l.D.define(n.H.registry),c.D.define(n.H.registry),d.D.define(n.H.registry),I.define(n.H.registry),B.define(n.H.registry),M.D.define(n.H.registry),U.D.define(n.H.registry)},90282:function(t,e,i){i.d(e,{q:function(){return f}});var o=i(33940),n=i(28904),a=i(36585),s=i(42590);class r extends a.U{constructor(){super(...arguments),this.headinglevel=2,this.dismiss=()=>{this.$emit("action-dialog-dismiss")}}}(0,o.gn)([(0,s.Lj)({attribute:"headline"})],r.prototype,"headline",void 0);var l=i(32804),c=i(78923),d=i(27186);const h=c.i`
${(0,d.j)("flex")} :host {
--dialog-height: var(--action-dialog-height, auto);
--dialog-width: var(--action-dialog-width, auto);
--button-border-radius: 20px;
--button-min-width: 160px;
--control-corner-radius: 2px;
--dialog-padding: 24px;
--space-above-title: 20px;
--space-between-buttons: 8px;
z-index: var(--action-dialog-z-index, 0);
}
.body {
margin: 0 var(--dialog-padding) var(--dialog-padding) var(--dialog-padding);
}
.content {
display: flex;
flex-direction: column;
}
.controls {
display: grid;
grid-template-columns: auto auto;
grid-gap: var(--space-between-buttons);
justify-content: center;
}
.heading {
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: 1;
position: relative;
width: 100%;
}
.heading span {
font-size: ${l.mWK};
font-weight: 600;
line-height: ${l.ipv};
margin-inline-start: var(--dialog-padding);
margin-top: var(--space-above-title);
}
`;var p=i(49218),g=i(93703),u=i(41472);const v=p.d`
${(0,g.g)((t=>t.modal),p.d`
t.dismiss()}"
>
`)}
t.headinglevel}>${t=>t.headline}
`;var m=i(62734);const b=c.i`
:host([hidden]) {
display: none;
}
:host {
--elevation: 14;
--dialog-height: 480px;
--dialog-width: 640px;
display: block;
}
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3);
touch-action: none;
}
.positioning-region {
display: flex;
justify-content: center;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: auto;
}
.control {
${m.XC}
margin-top: auto;
margin-bottom: auto;
border-radius: calc(${l.rSr} * 1px);
width: var(--dialog-width);
height: var(--dialog-height);
background: ${l.IfY};
z-index: 1;
border: calc(${l.Han} * 1px) solid transparent;
}
`;let f=class extends r{};f=(0,o.gn)([(0,n.M)({name:"msn-action-dialog",template:v,styles:[b,h],shadowOptions:{delegatesFocus:!0}})],f)},21772:function(t,e,i){i.d(e,{D:function(){return f}});var o=i(33940),n=i(28904),a=i(58968),s=i(42590),r=i(99452),l=i(59997);const c="resize",d="scroll";var h=i(5977);class p extends n.H{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=l.N.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(p.intersectionService.requestPosition(this,this.handleIntersection),p.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&p.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,p.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&p.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&p.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>{if("string"!=typeof this.viewport||""===this.viewport)return document.documentElement;const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.viewport):document.getElementById(this.viewport)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find((t=>t.target===this)),i=t.find((t=>t.target===this.anchorElement)),o=t.find((t=>t.target===this.viewportElement));return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=(0,h.M)(this),this.startObservers())},this.updateLayout=()=>{let t,e;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=(0,h.M)(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===l.N.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,n=void 0!==this.anchorRect?this.anchorRect.right:0,a=void 0!==this.anchorRect?this.anchorRect.width:0,s=void 0!==this.viewportRect?this.viewportRect.left:0,r=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,n,a,s,r)this.getAvailableSpace(t[1],o,n,a,s,r)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,n=void 0!==this.anchorRect?this.anchorRect.bottom:0,a=void 0!==this.anchorRect?this.anchorRect.height:0,s=void 0!==this.viewportRect?this.viewportRect.top:0,r=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,n,a,s,r)this.getAvailableSpace(e[1],o,n,a,s,r)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:e.width,this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.leftthis.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:e.height,this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.topthis.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(tt?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,n,a)=>{const s=e-n,r=a-(e+o);switch(t){case"start":return s;case"insetStart":return s+o;case"insetEnd":return r+o;case"end":return r;case"center":return 2*Math.min(s,r)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener(c,this.update,{passive:!0}),window.addEventListener(d,this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(c,this.update),window.removeEventListener(d,this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),a.H.enqueue((()=>this.reset())),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}p.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{null!==this.intersectionDetector&&(this.observedElements.has(t)?this.observedElements.get(t)?.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{globalThis.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach((t=>{this.intersectionDetector?.unobserve(t.target);const o=this.observedElements.get(t.target);void 0!==o&&(o.forEach((o=>{let n=e.indexOf(o);-1===n&&(n=e.length,e.push(o),i.push([])),i[n].push(t)})),this.observedElements.delete(t.target))})),e.forEach(((t,e)=>{t(i[e])}))},this.initializeIntersectionDetector()}},(0,o.gn)([s.Lj,(0,o.w6)("design:type",String)],p.prototype,"anchor",void 0),(0,o.gn)([s.Lj,(0,o.w6)("design:type",String)],p.prototype,"viewport",void 0),(0,o.gn)([(0,s.Lj)({attribute:"horizontal-positioning-mode"}),(0,o.w6)("design:type",String)],p.prototype,"horizontalPositioningMode",void 0),(0,o.gn)([(0,s.Lj)({attribute:"horizontal-default-position"}),(0,o.w6)("design:type",String)],p.prototype,"horizontalDefaultPosition",void 0),(0,o.gn)([(0,s.Lj)({attribute:"horizontal-viewport-lock",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],p.prototype,"horizontalViewportLock",void 0),(0,o.gn)([(0,s.Lj)({attribute:"horizontal-inset",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],p.prototype,"horizontalInset",void 0),(0,o.gn)([(0,s.Lj)({attribute:"horizontal-threshold"}),(0,o.w6)("design:type",Number)],p.prototype,"horizontalThreshold",void 0),(0,o.gn)([(0,s.Lj)({attribute:"horizontal-scaling"}),(0,o.w6)("design:type",String)],p.prototype,"horizontalScaling",void 0),(0,o.gn)([(0,s.Lj)({attribute:"vertical-positioning-mode"}),(0,o.w6)("design:type",String)],p.prototype,"verticalPositioningMode",void 0),(0,o.gn)([(0,s.Lj)({attribute:"vertical-default-position"}),(0,o.w6)("design:type",String)],p.prototype,"verticalDefaultPosition",void 0),(0,o.gn)([(0,s.Lj)({attribute:"vertical-viewport-lock",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],p.prototype,"verticalViewportLock",void 0),(0,o.gn)([(0,s.Lj)({attribute:"vertical-inset",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],p.prototype,"verticalInset",void 0),(0,o.gn)([(0,s.Lj)({attribute:"vertical-threshold"}),(0,o.w6)("design:type",Number)],p.prototype,"verticalThreshold",void 0),(0,o.gn)([(0,s.Lj)({attribute:"vertical-scaling"}),(0,o.w6)("design:type",String)],p.prototype,"verticalScaling",void 0),(0,o.gn)([(0,s.Lj)({attribute:"fixed-placement",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],p.prototype,"fixedPlacement",void 0),(0,o.gn)([(0,s.Lj)({attribute:"auto-update-mode"}),(0,o.w6)("design:type",String)],p.prototype,"autoUpdateMode",void 0),(0,o.gn)([r.LO,(0,o.w6)("design:type",Object)],p.prototype,"anchorElement",void 0),(0,o.gn)([r.LO,(0,o.w6)("design:type",Object)],p.prototype,"viewportElement",void 0),(0,o.gn)([r.LO,(0,o.w6)("design:type",Boolean)],p.prototype,"initialLayoutComplete",void 0);var g=i(63070);const u=i(78923).i`
:host {
contain: layout;
display: block;
}
`;var v=i(49218),m=i(93703);const b=v.d`
${(0,m.g)((t=>t.initialLayoutComplete),v.d`
`)}
`,f=p.compose({name:`${g.H.prefix}-anchored-region`,template:b,styles:u})},94976:function(t,e,i){i.d(e,{D:function(){return C}});var o=i(33940),n=i(42590),a=i(99452),s=i(94537),r=i(28904),l=i(23526);class c extends r.H{}class d extends((0,l.V2)(c)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class h extends d{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly&&t.key===s.BI)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=t=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}(0,o.gn)([(0,n.Lj)({attribute:"readonly",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],h.prototype,"readOnly",void 0),(0,o.gn)([a.LO,(0,o.w6)("design:type",Array)],h.prototype,"defaultSlottedNodes",void 0),(0,o.gn)([a.LO,(0,o.w6)("design:type",Boolean)],h.prototype,"indeterminate",void 0);var p=i(63070),g=i(78923),u=i(27186),v=i(67739),m=i(24484),b=i(29717),f=i(22798),y=i(32804),w=i(2658);const x=g.i`
${(0,u.j)("inline-flex")} :host {
align-items: center;
outline: none;
margin: calc(${y._5n} * 1px) 0;
${""} user-select: none;
}
.control {
position: relative;
width: calc((${w.i} / 2 + ${y._5n}) * 1px);
height: calc((${w.i} / 2 + ${y._5n}) * 1px);
box-sizing: border-box;
border-radius: calc(${y.UWU} * 1px);
border: calc(${y.Han} * 1px) solid ${y.rU8};
background: ${y._Bj};
outline: none;
cursor: pointer;
}
.label__hidden {
display: none;
visibility: hidden;
}
.label {
font-family: ${y.SVJ};
color: ${y.CHi};
${""} padding-inline-start: calc(${y._5n} * 2px + 2px);
margin-inline-end: calc(${y._5n} * 2px + 2px);
cursor: pointer;
font-size: ${y.cSu};
line-height: ${y.RUt};
}
.checked-indicator {
width: 100%;
height: 100%;
display: block;
fill: ${y.CHi};
opacity: 0;
pointer-events: none;
}
.indeterminate-indicator {
border-radius: calc((${y.UWU} / 2) * 1px);
background: ${y.CHi};
position: absolute;
top: 50%;
left: 50%;
width: 50%;
height: 50%;
transform: translate(-50%, -50%);
opacity: 0;
}
:host(:enabled) .control:hover {
background: ${y.Tm7};
border-color: ${y.gKw};
}
:host(:enabled) .control:active {
background: ${y.Ium};
border-color: ${y.ekh};
}
:host(:${v.b}) .control {
box-shadow: 0 0 0 2px ${y.IfY}, 0 0 0 4px ${y.yGg};
border-color: ${y.yGg};
}
:host([disabled]) .label,
:host([readonly]) .label,
:host([readonly]) .control,
:host([disabled]) .control {
cursor: ${m.H};
}
:host([aria-checked="true"]:not([aria-checked="mixed"])) .checked-indicator,
:host([aria-checked="mixed"]) .indeterminate-indicator {
opacity: 1;
}
:host([disabled]) {
opacity: ${y.VFZ};
}
`.withBehaviors((0,b.vF)(g.i`
.control {
forced-color-adjust: none;
border-color: ${f.H.FieldText};
background: ${f.H.Field};
}
:host(:enabled) .control:hover,
.control:active {
border-color: ${f.H.Highlight};
background: ${f.H.Field};
}
.checked-indicator {
fill: ${f.H.FieldText};
}
.indeterminate-indicator {
background: ${f.H.FieldText};
}
:host(:${v.b}) .control {
border-color: ${f.H.Highlight};
box-shadow: 0 0 0 2px ${f.H.Field},
0 0 0 4px ${f.H.FieldText};
}
:host([aria-checked="true"]:${v.b}:enabled) .control {
box-shadow: 0 0 0 2px ${f.H.Field},
0 0 0 4px ${f.H.FieldText};
}
:host([aria-checked="true"]) .control {
background: ${f.H.Highlight};
border-color: ${f.H.Highlight};
}
:host([aria-checked="true"]) .control:hover,
.control:active {
background: ${f.H.HighlightText};
}
:host([aria-checked="true"]) .checked-indicator {
fill: ${f.H.HighlightText};
}
:host([aria-checked="true"]) .control:hover .checked-indicator {
fill: ${f.H.Highlight};
}
:host([aria-checked="true"]) .indeterminate-indicator {
background: ${f.H.HighlightText};
}
:host([aria-checked="true"]) .control:hover .indeterminate-indicator {
background: ${f.H.Highlight};
}
:host([disabled]) {
opacity: 1;
}
:host([disabled]) .control {
forced-color-adjust: none;
border-color: ${f.H.GrayText};
background: ${f.H.Field};
}
:host([disabled]) .indeterminate-indicator,
:host([aria-checked="true"][disabled])
.control:hover
.indeterminate-indicator {
forced-color-adjust: none;
background: ${f.H.GrayText};
}
:host([disabled]) .checked-indicator,
:host([aria-checked="true"][disabled]) .control:hover .checked-indicator {
forced-color-adjust: none;
fill: ${f.H.GrayText};
}
`));var $=i(49218),k=i(47548);const D=function(t={}){return $.d`
t.keypressHandler(e.event)}"
@click="${(t,e)=>t.clickHandler(e.event)}"
>
${t.checkedIndicator??""}
${t.indeterminateIndicator??""}
`}({checkedIndicator:$.d`
`,indeterminateIndicator:$.d`
`}),C=h.compose({name:`${p.H.prefix}-checkbox`,template:D,styles:x})},22506:function(t,e,i){i.d(e,{D:function(){return g}});var o=i(36585),n=i(63070),a=i(78923),s=i(62734),r=i(32804);const l=a.i`
:host([hidden]) {
display: none;
}
:host {
--elevation: 14;
--dialog-height: 480px;
--dialog-width: 640px;
display: block;
}
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3);
touch-action: none;
}
.positioning-region {
display: flex;
justify-content: center;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: auto;
}
.control {
${s.XC}
margin-top: auto;
margin-bottom: auto;
border-radius: calc(${r.rSr} * 1px);
width: var(--dialog-width);
height: var(--dialog-height);
background: ${r.IfY};
z-index: 1;
border: calc(${r.Han} * 1px) solid transparent;
}
`;var c=i(49218),d=i(93703),h=i(41472);const p=c.d`
${(0,d.g)((t=>t.modal),c.d`
t.dismiss()}"
>
`)}
`,g=o.U.compose({name:`${n.H.prefix}-dialog`,template:p,styles:l})},74358:function(t,e,i){i.d(e,{w:function(){return a}});var o=i(78923),n=i(32804);const a=o.i`
:host([appearance="filled"]:not([disabled]):active)::after,
:host([appearance="filled"]:not([disabled]):focus-within:not(:active))::after {
content: "";
position: absolute;
bottom: 0;
border-bottom: calc(${n.vxp} * 1px) solid ${n.Avx};
border-bottom-left-radius: calc(${n.UWU} * 1px);
border-bottom-right-radius: calc(${n.UWU} * 1px);
z-index: 2;
transition: all 300ms cubic-bezier(0.1, 0.9, 0.2, 1);
}
:host([appearance="filled"]:not([disabled]):active)::after {
left: 50%;
width: 40%;
transform: translateX(-50%);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
:host([appearance="filled"]:not([disabled]):focus-within:not(:active))::after {
left: 0;
width: 100%;
}
`},18763:function(t,e,i){i.d(e,{D:function(){return H}});var o=i(63070),n=i(33940),a=i(42590),s=i(99452),r=i(38495),l=i(31289),c=i(28904),d=i(23526);class h extends c.H{}class p extends((0,d.Um)(h)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const g="none";class u extends p{constructor(){super(...arguments),this.resize=g,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}(0,n.gn)([(0,a.Lj)({mode:"boolean"}),(0,n.w6)("design:type",Boolean)],u.prototype,"readOnly",void 0),(0,n.gn)([a.Lj,(0,n.w6)("design:type",String)],u.prototype,"resize",void 0),(0,n.gn)([(0,a.Lj)({mode:"boolean"}),(0,n.w6)("design:type",Boolean)],u.prototype,"autofocus",void 0),(0,n.gn)([(0,a.Lj)({attribute:"form"}),(0,n.w6)("design:type",String)],u.prototype,"formId",void 0),(0,n.gn)([a.Lj,(0,n.w6)("design:type",String)],u.prototype,"list",void 0),(0,n.gn)([(0,a.Lj)({converter:a.Id}),(0,n.w6)("design:type",Number)],u.prototype,"maxlength",void 0),(0,n.gn)([(0,a.Lj)({converter:a.Id}),(0,n.w6)("design:type",Number)],u.prototype,"minlength",void 0),(0,n.gn)([a.Lj,(0,n.w6)("design:type",String)],u.prototype,"name",void 0),(0,n.gn)([a.Lj,(0,n.w6)("design:type",String)],u.prototype,"placeholder",void 0),(0,n.gn)([(0,a.Lj)({converter:a.Id,mode:"fromView"}),(0,n.w6)("design:type",Number)],u.prototype,"cols",void 0),(0,n.gn)([(0,a.Lj)({converter:a.Id,mode:"fromView"}),(0,n.w6)("design:type",Number)],u.prototype,"rows",void 0),(0,n.gn)([(0,a.Lj)({mode:"boolean"}),(0,n.w6)("design:type",Boolean)],u.prototype,"spellcheck",void 0),(0,n.gn)([s.LO,(0,n.w6)("design:type",Array)],u.prototype,"defaultSlottedNodes",void 0),(0,l.e)(u,r.yd);class v extends u{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}(0,n.gn)([a.Lj,(0,n.w6)("design:type",String)],v.prototype,"appearance",void 0);var m=i(78923),b=i(29717),f=i(22798),y=i(27186),w=i(67739),x=i(24484),$=i(74358),k=i(2658),D=i(82636),C=i(32804);const E=m.i`
:host([appearance="filled"]) .control {
background: ${C.wFS};
border-color: transparent;
}
:host([appearance="filled"]:hover:not([disabled])) .control {
background: ${C.XiB};
border-color: transparent;
}
:host([appearance="filled"]:focus-within:not([disabled])) .control {
border-color: transparent;
box-shadow: none;
}
${$.w}
`.withBehaviors((0,b.vF)(m.i`
:host([appearance="filled"]:hover:not([disabled])) .control,
:host([appearance="filled"]:focus-within:not([disabled])) .control {
background: ${f.H.Field};
border-color: ${f.H.FieldText};
}
:host([appearance="filled"]:not([disabled]):active)::after,
:host([appearance="filled"]:not([disabled]):focus-within:not(:active))::after {
border-bottom-color: ${f.H.Highlight};
}
`)),S=m.i`
${(0,y.j)("inline-flex")} :host {
font-family: ${C.SVJ};
outline: none;
user-select: none;
position: relative;
flex-direction: column;
vertical-align: bottom;
}
.control {
box-sizing: border-box;
position: relative;
color: ${C.CHi};
background: ${C._Bj};
border-radius: calc(${C.UWU} * 1px);
border: calc(${C.Han} * 1px) solid ${C.akT};
height: calc(${k.i} * 2px);
font: inherit;
font-size: ${C.cSu};
line-height: ${C.RUt};
padding: calc(${C._5n} * 1.5px) calc(${C._5n} * 2px + 1px);
width: 100%;
resize: none;
}
.control:hover:enabled {
background: ${C.Tm7};
border-color: ${C.QPc};
}
.control:hover,
.control:${w.b},
.control:disabled,
.control:active {
outline: none;
}
:host(:focus-within) .control {
border-color: ${C.yGg};
box-shadow: 0 0 0 1px ${C.yGg} inset;
}
:host(.resize-both) .control {
resize: both;
}
:host(.resize-horizontal) .control {
resize: horizontal;
}
:host(.resize-vertical) .control {
resize: vertical;
}
.label__hidden {
display: none;
visibility: hidden;
}
.label {
display: block;
color: ${C.CHi};
cursor: pointer;
$font-size: ${C.cSu};
line-height: ${C.RUt};
margin-bottom: 4px;
}
:host([disabled]) .label,
:host([readonly]) .label,
:host([readonly]) .control,
:host([disabled]) .control {
cursor: ${x.H};
}
:host([disabled]) {
opacity: ${C.VFZ};
}
`.withBehaviors((0,D.H)("filled",E),(0,b.vF)(m.i`
:host([disabled]) {
opacity: 1;
}
::placeholder,
::-webkit-input-placeholder {
color: ${f.H.FieldText};
}
:host([disabled]) ::placeholder,
:host([disabled]) ::-webkit-input-placeholder,
:host([disabled]) .label {
color: ${f.H.GrayText};
}
`));var T=i(49218),L=i(47548),R=i(41472);const I=T.d`
`,H=v.compose({name:`${o.H.prefix}-text-area`,template:I,styles:S,shadowOptions:{delegatesFocus:!0}})},83480:function(t,e,i){i.d(e,{D:function(){return E}});var o=i(63070),n=i(33940),a=i(38495),s=i(42590);class r extends a.OI{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}(0,n.gn)([s.Lj,(0,n.w6)("design:type",String)],r.prototype,"appearance",void 0);var l=i(78923),c=i(29717),d=i(22798),h=i(27186),p=i(67739),g=i(24484),u=i(74358),v=i(2658),m=i(82636),b=i(32804);const f=l.i`
:host([appearance="filled"]) .root {
background: ${b.wFS};
border-color: transparent;
}
:host([appearance="filled"]:hover:not([disabled])) .root {
background: ${b.XiB};
border-color: transparent;
}
:host([appearance="filled"]:focus-within:not([disabled])) .root {
border-color: transparent;
box-shadow: none;
}
${u.w}
`.withBehaviors((0,c.vF)(l.i`
:host([appearance="filled"]) .root {
background: ${d.H.Field};
border-color: ${d.H.FieldText};
}
:host([appearance="filled"]:hover:not([disabled])) .root,
:host([appearance="filled"]:focus-within:not([disabled])) .root {
background: ${d.H.Field};
border-color: ${d.H.FieldText};
}
:host([appearance="filled"]:active:not([disabled])) .root {
background: ${d.H.Field};
border-color: ${d.H.FieldText};
}
:host([appearance="filled"]:not([disabled]):active)::after,
:host([appearance="filled"]:not([disabled]):focus-within:not(:active))::after {
border-bottom-color: ${d.H.Highlight};
}
:host([appearance="filled"][disabled]) .root {
border-color: ${d.H.GrayText};
background: ${d.H.Field};
}
`)),y=l.i`
${(0,h.j)("inline-block")} :host {
font-family: ${b.SVJ};
outline: none;
user-select: none;
position: relative;
}
.root {
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: row;
color: ${b.CHi};
background: ${b._Bj};
border-radius: calc(${b.UWU} * 1px);
border: calc(${b.Han} * 1px) solid ${b.akT};
height: calc(${v.i} * 1px);
}
.control {
-webkit-appearance: none;
background: transparent;
border: 0;
height: calc(100% - 4px);
width: 100%;
margin-top: auto;
margin-bottom: auto;
border: none;
padding: 0 calc(${b._5n} * 2px + 1px);
color: ${b.CHi};
font-family: inherit;
font-size: ${b.cSu};
line-height: ${b.RUt};
}
.control:hover,
.control:${p.b},
.control:disabled,
.control:active {
outline: none;
}
.label {
display: block;
color: ${b.CHi};
cursor: pointer;
font-size: ${b.cSu};
line-height: ${b.RUt};
margin-bottom: 4px;
}
.label__hidden {
display: none;
visibility: hidden;
}
::slotted([slot="start"]),
::slotted([slot="end"]) {
display: flex;
margin: auto;
fill: currentcolor;
}
::slotted(svg) {
${""} width: 16px;
height: 16px;
}
::slotted([slot="start"]) {
margin-inline-start: 11px;
}
::slotted([slot="end"]) {
margin-inline-end: 11px;
}
:host(:hover:not([disabled])) .root {
background: ${b.Tm7};
border-color: ${b.QPc};
}
:host(:focus-within:not([disabled])) .root {
border-color: ${b.yGg};
box-shadow: 0 0 0 1px ${b.yGg} inset;
}
:host([disabled]) .label,
:host([readonly]) .label,
:host([readonly]) .control,
:host([disabled]) .control {
cursor: ${g.H};
}
:host([disabled]) {
opacity: ${b.VFZ};
}
`.withBehaviors((0,m.H)("filled",f),(0,c.vF)(l.i`
.root {
forced-color-adjust: none;
background: ${d.H.Field};
border-color: ${d.H.FieldText};
}
:host(:hover:not([disabled])) .root {
background: ${d.H.Field};
border-color: ${d.H.Highlight};
}
::slotted([slot="start"]),
::slotted([slot="end"]) {
fill: ${d.H.ButtonText};
}
:host([disabled]) {
opacity: 1;
}
:host([disabled]) .root {
border-color: ${d.H.GrayText};
background: ${d.H.Field};
}
:host(:focus-within:enabled) .root {
border-color: ${d.H.Highlight};
box-shadow: 0 0 0 1px ${d.H.Highlight} inset;
}
.control {
color: ${d.H.ButtonText};
}
::placeholder,
::-webkit-input-placeholder {
color: ${d.H.FieldText};
}
:host([disabled]) ::placeholder,
:host([disabled]) ::-webkit-input-placeholder,
:host([disabled]) .label {
color: ${d.H.GrayText};
}
`));var w=i(49218),x=i(47548),$=i(41472),k=i(33818),D=i(86755);const C=function(t={}){return w.d`
${(0,k.m9)(t)}
t.handleTextInput()}"
@change="${t=>t.handleChange()}"
?autofocus="${t=>t.autofocus}"
?disabled="${t=>t.disabled}"
list="${t=>t.list}"
maxlength="${t=>t.maxlength}"
name="${t=>t.name}"
minlength="${t=>t.minlength}"
pattern="${t=>t.pattern}"
placeholder="${t=>t.placeholder}"
?readonly="${t=>t.readOnly}"
?required="${t=>t.required}"
size="${t=>t.size}"
?spellcheck="${t=>t.spellcheck}"
:value="${t=>t.value}"
type="${t=>t.type}"
aria-atomic="${t=>t.ariaAtomic}"
aria-busy="${t=>t.ariaBusy}"
aria-controls="${t=>t.ariaControls}"
aria-current="${t=>t.ariaCurrent}"
aria-describedby="${t=>t.ariaDescribedby}"
aria-details="${t=>t.ariaDetails}"
aria-disabled="${t=>t.ariaDisabled}"
aria-errormessage="${t=>t.ariaErrormessage}"
aria-flowto="${t=>t.ariaFlowto}"
aria-haspopup="${t=>t.ariaHaspopup}"
aria-hidden="${t=>t.ariaHidden}"
aria-invalid="${t=>t.ariaInvalid}"
aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
aria-label="${t=>t.ariaLabel}"
aria-labelledby="${t=>t.ariaLabelledby}"
aria-live="${t=>t.ariaLive}"
aria-owns="${t=>t.ariaOwns}"
aria-relevant="${t=>t.ariaRelevant}"
aria-roledescription="${t=>t.ariaRoledescription}"
${(0,$.i)("control")}
/>
${(0,k.LC)(t)}
`}(),E=r.compose({name:`${o.H.prefix}-text-field`,template:C,styles:y,shadowOptions:{delegatesFocus:!0}})},43637:function(t,e,i){i.d(e,{D:function(){return U}});var o=i(63070),n=i(33940),a=i(28904),s=i(58968),r=i(42590),l=i(99452),c=i(59997),d=i(94537),h=i(5977);const p="top",g="right",u="bottom",v="left",m="center",b="start",f="end",y="top-left",w="top-center",x="top-right",$="bottom-left",k="bottom-center",D="bottom-right",C="top-start",E="top-end",S="bottom-start",T="bottom-end";class L extends a.H{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=c.N.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=t=>{this.isRegionHovered=!0},this.handleRegionMouseOut=t=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=t=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=t=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout((()=>{this.updateTooltipVisibility()}),60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout((()=>{this.startHover()}),this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible&&t.key===d.CX)this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=(0,h.M)(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),s.H.enqueue(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach((e=>{e.id===t&&this.startShowDelayTimer()}))}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case p:case u:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case g:case v:case b:case f:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case m:this.verticalDefaultPosition="center",this.horizontalDefaultPosition="center";break;case y:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case w:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="center";break;case k:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="center";break;case x:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case $:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case D:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case C:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case E:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case S:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case T:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}(0,n.gn)([(0,r.Lj)({mode:"boolean"}),(0,n.w6)("design:type",Boolean)],L.prototype,"visible",void 0),(0,n.gn)([r.Lj,(0,n.w6)("design:type",String)],L.prototype,"anchor",void 0),(0,n.gn)([(0,r.Lj)({attribute:"delay",converter:r.Id}),(0,n.w6)("design:type",Number)],L.prototype,"delay",void 0),(0,n.gn)([r.Lj,(0,n.w6)("design:type",String)],L.prototype,"position",void 0),(0,n.gn)([(0,r.Lj)({attribute:"auto-update-mode"}),(0,n.w6)("design:type",String)],L.prototype,"autoUpdateMode",void 0),(0,n.gn)([(0,r.Lj)({attribute:"horizontal-viewport-lock"}),(0,n.w6)("design:type",Boolean)],L.prototype,"horizontalViewportLock",void 0),(0,n.gn)([(0,r.Lj)({attribute:"vertical-viewport-lock"}),(0,n.w6)("design:type",Boolean)],L.prototype,"verticalViewportLock",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",Object)],L.prototype,"anchorElement",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",Object)],L.prototype,"viewportElement",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",String)],L.prototype,"verticalPositioningMode",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",String)],L.prototype,"horizontalPositioningMode",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",String)],L.prototype,"horizontalInset",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",String)],L.prototype,"verticalInset",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",String)],L.prototype,"horizontalScaling",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",String)],L.prototype,"verticalScaling",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",Object)],L.prototype,"verticalDefaultPosition",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",Object)],L.prototype,"horizontalDefaultPosition",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",Boolean)],L.prototype,"tooltipVisible",void 0),(0,n.gn)([l.LO,(0,n.w6)("design:type",String)],L.prototype,"currentDirection",void 0);var R=i(32804);var I=i(78923),H=i(29717),O=i(62734);const A=I.i`
:host {
--elevation: 11;
position: relative;
contain: layout;
overflow: visible;
height: 0;
width: 0;
z-index: 10000;
}
.tooltip {
box-sizing: border-box;
border-radius: calc(${R.UWU} * 1px);
border: calc(${R.Han} * 1px) solid transparent;
background: ${R.IfY};
color: ${R.CHi};
padding: 4px 12px;
height: fit-content;
width: fit-content;
font-family: ${R.SVJ};
font-size: ${R.cSu};
line-height: ${R.RUt};
white-space: nowrap;
${O.XC}
}
fluent-anchored-region {
display: flex;
justify-content: center;
align-items: center;
overflow: visible;
flex-direction: row;
}
fluent-anchored-region.right,
fluent-anchored-region.left {
flex-direction: column;
}
fluent-anchored-region.top .tooltip::after,
fluent-anchored-region.bottom .tooltip::after,
fluent-anchored-region.left .tooltip::after,
fluent-anchored-region.right .tooltip::after {
content: "";
width: 12px;
height: 12px;
background: ${R.IfY};
border-radius: calc(${R.UWU} * 1px);
position: absolute;
}
fluent-anchored-region.top .tooltip::after {
transform: rotate(45deg) translateX(-50%);
bottom: 4px;
left: 50%;
}
fluent-anchored-region.top .tooltip {
margin-bottom: 12px;
}
fluent-anchored-region.bottom .tooltip::after {
transform: rotate(45deg) translateX(-50%);
top: 12px;
left: 50%;
}
fluent-anchored-region.bottom .tooltip {
margin-top: 12px;
}
fluent-anchored-region.left .tooltip::after {
transform: rotate(45deg) translateY(-50%);
top: 50%;
right: 12px;
}
fluent-anchored-region.left .tooltip {
margin-right: 12px;
}
fluent-anchored-region.right .tooltip::after {
transform: rotate(45deg) translateY(-50%);
top: 50%;
left: 4px;
}
fluent-anchored-region.right .tooltip {
margin-left: 12px;
}
`.withBehaviors((0,H.vF)(I.i`
:host([disabled]) {
opacity: 1;
}
fluent-anchored-region.top .tooltip::after,
fluent-anchored-region.bottom .tooltip::after,
fluent-anchored-region.left .tooltip::after,
fluent-anchored-region.right .tooltip::after {
content: "";
width: unset;
height: unset;
}
`));var z=i(94929),P=i(49218),F=i(93703),j=i(41472),B=i(72394);const M=function(t){const e=(0,z.c)(function(t){if("string"==typeof t)return t;if("function"==typeof t&&!(t=B.W.getByType(t)))throw new Error("Missing FASTElement definition.");return t.name}(t.anchoredRegion));return P.d`
${(0,F.g)((t=>t.tooltipVisible),P.d`
<${e}
fixed-placement="true"
auto-update-mode="${t=>t.autoUpdateMode}"
vertical-positioning-mode="${t=>t.verticalPositioningMode}"
vertical-default-position="${t=>t.verticalDefaultPosition}"
vertical-inset="${t=>t.verticalInset}"
vertical-scaling="${t=>t.verticalScaling}"
horizontal-positioning-mode="${t=>t.horizontalPositioningMode}"
horizontal-default-position="${t=>t.horizontalDefaultPosition}"
horizontal-scaling="${t=>t.horizontalScaling}"
horizontal-inset="${t=>t.horizontalInset}"
vertical-viewport-lock="${t=>t.horizontalViewportLock}"
horizontal-viewport-lock="${t=>t.verticalViewportLock}"
dir="${t=>t.currentDirection}"
${(0,j.i)("region")}
>
${e}>
`)}
`}({anchoredRegion:i(21772).D}),U=class extends L{connectedCallback(){super.connectedCallback();const t=R._Rw;R.IfY.setValueFor(this,(e=>e(t).evaluate(e,e(R.IfY)).rest))}}.compose({name:`${o.H.prefix}-tooltip`,template:M,styles:A})},36585:function(t,e,i){i.d(e,{U:function(){return x}});var o=i(33940),n=i(28904),a=i(58968),s=i(99452),r=i(42590),l=i(94537),c=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],d=c.join(","),h="undefined"==typeof Element,p=h?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,g=!h&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},u=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},v=function(t){return"INPUT"===t.tagName},m=function(t){return function(t){return v(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||g(t),o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var n=function(t,e){for(var i=0;isummary:first-of-type")?t.parentElement:t;if(p.call(n,"details:not([open]) *"))return!0;var a=g(t).host,s=(null==a?void 0:a.ownerDocument.contains(a))||t.ownerDocument.contains(t);if(i&&"full"!==i){if("non-zero-area"===i)return b(t)}else{if("function"==typeof o){for(var r=t;t;){var l=t.parentElement,c=g(t);if(l&&!l.shadowRoot&&!0===o(l))return b(t);t=t.assignedSlot?t.assignedSlot:l||c===t.ownerDocument?l:c.host}t=r}if(s)return!t.getClientRects().length}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case l.CX:this.dismiss(),t.preventDefault();break;case l.oM:this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(this.noFocusTrap||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>x.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>!this.noFocusTrap&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),a.H.enqueue((()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()}))):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=s.y$.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){if("hidden"===e)this.updateTrapFocus()}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:w(e)||x.isFocusableFastElement(e)&&x.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(x.reduceTabbableItems,[])):t}static isFocusableFastElement(t){return!!t.$fastController?.definition.shadowOptions?.delegatesFocus}static hasTabbableShadow(t){return Array.from(t.shadowRoot?.querySelectorAll("*")??[]).some((t=>w(t)))}}(0,o.gn)([(0,r.Lj)({mode:"boolean"}),(0,o.w6)("design:type",Boolean)],x.prototype,"modal",void 0),(0,o.gn)([(0,r.Lj)({mode:"boolean"}),(0,o.w6)("design:type",Boolean)],x.prototype,"hidden",void 0),(0,o.gn)([(0,r.Lj)({attribute:"no-focus-trap",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],x.prototype,"noFocusTrap",void 0),(0,o.gn)([(0,r.Lj)({attribute:"aria-describedby"}),(0,o.w6)("design:type",String)],x.prototype,"ariaDescribedby",void 0),(0,o.gn)([(0,r.Lj)({attribute:"aria-labelledby"}),(0,o.w6)("design:type",String)],x.prototype,"ariaLabelledby",void 0),(0,o.gn)([(0,r.Lj)({attribute:"aria-label"}),(0,o.w6)("design:type",String)],x.prototype,"ariaLabel",void 0)},38495:function(t,e,i){i.d(e,{yd:function(){return m},OI:function(){return v}});var o=i(33940),n=i(58968),a=i(42590),s=i(99452),r=i(33714),l=i(33818),c=i(31289),d=i(28904),h=i(23526);class p extends d.H{}class g extends((0,h.Um)(p)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const u="text";class v extends g{constructor(){super(...arguments),this.type=u}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&n.H.enqueue((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}(0,o.gn)([(0,a.Lj)({attribute:"readonly",mode:"boolean"}),(0,o.w6)("design:type",Boolean)],v.prototype,"readOnly",void 0),(0,o.gn)([(0,a.Lj)({mode:"boolean"}),(0,o.w6)("design:type",Boolean)],v.prototype,"autofocus",void 0),(0,o.gn)([a.Lj,(0,o.w6)("design:type",String)],v.prototype,"placeholder",void 0),(0,o.gn)([a.Lj,(0,o.w6)("design:type",String)],v.prototype,"type",void 0),(0,o.gn)([a.Lj,(0,o.w6)("design:type",String)],v.prototype,"list",void 0),(0,o.gn)([(0,a.Lj)({converter:a.Id}),(0,o.w6)("design:type",Number)],v.prototype,"maxlength",void 0),(0,o.gn)([(0,a.Lj)({converter:a.Id}),(0,o.w6)("design:type",Number)],v.prototype,"minlength",void 0),(0,o.gn)([a.Lj,(0,o.w6)("design:type",String)],v.prototype,"pattern",void 0),(0,o.gn)([(0,a.Lj)({converter:a.Id}),(0,o.w6)("design:type",Number)],v.prototype,"size",void 0),(0,o.gn)([(0,a.Lj)({mode:"boolean"}),(0,o.w6)("design:type",Boolean)],v.prototype,"spellcheck",void 0),(0,o.gn)([s.LO,(0,o.w6)("design:type",Array)],v.prototype,"defaultSlottedNodes",void 0);class m{}(0,c.e)(m,r.v),(0,c.e)(v,l.hW,m)},5977:function(t,e,i){i.d(e,{M:function(){return n}});var o=i(59997);const n=t=>"rtl"===t.closest("[dir]")?.dir?o.N.rtl:o.N.ltr}}]);