pptb-entity-fields-analyzer 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ (function(){"use strict";var Kd=document.createElement("style");Kd.textContent=`*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%}body{font-family:Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;overflow:hidden}.efa-root{display:flex;flex-direction:column;height:100vh;background:var(--colorNeutralBackground2);color:var(--colorNeutralForeground1);position:relative}.efa-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 16px;background:var(--efa-header);color:#fff;box-shadow:0 2px 10px #0a192f40}.efa-brand{display:flex;align-items:center;gap:10px;min-width:0}.efa-logo{width:32px;height:32px;flex:none}.efa-title{font-size:17px;font-weight:600;line-height:1.2}.efa-subtitle{font-size:12px;opacity:.8}.efa-header-tools{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.efa-connection{font-size:12px;opacity:.75;margin-right:8px}.efa-connection-on{opacity:1;color:#b9f6e4}.efa-header-button.fui-Button,.efa-header-button.fui-Button:hover,.efa-header-button.fui-Button:hover:active{color:#fff}.efa-header-button.fui-Button:hover{background:#ffffff1f}.efa-header-button .fui-Button__icon{color:#fff}.efa-header-button.fui-Button:disabled{color:#ffffff73}.efa-load.fui-Button{background:#0078d4;color:#fff}.efa-load.fui-Button:hover{background:#106ebe;color:#fff}.efa-card{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke2);border-radius:12px;box-shadow:var(--efa-card-shadow);overflow:hidden}.efa-card-header{display:flex;align-items:baseline;gap:10px;padding:12px 14px 6px;min-width:0}.efa-card-header h2{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.efa-card-header p{font-size:12px;color:var(--colorNeutralForeground3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.efa-card-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:4px 14px 12px}.efa-grid-wrapper{flex:1;min-height:0;overflow:auto;border:1px solid var(--colorNeutralStroke2);border-radius:8px}.efa-grid{width:100%;border-collapse:collapse;font-size:13px}.efa-grid th{position:sticky;top:0;z-index:1;text-align:left;font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--colorNeutralForeground3);background:var(--colorNeutralBackground3);padding:7px 10px;border-bottom:1px solid var(--colorNeutralStroke2);white-space:nowrap}.efa-grid td{padding:6px 10px;border-bottom:1px solid var(--colorNeutralStroke3);max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.efa-grid td.efa-num,.efa-grid th.efa-num{text-align:right}.efa-grid td.efa-wrap{white-space:normal;word-break:break-word}.efa-empty{flex:1;min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--colorNeutralForeground3);font-size:13px;text-align:center;padding:16px 40px;white-space:pre-line}.efa-empty-title{font-size:16px;font-weight:600;color:var(--colorNeutralForeground1)}.efa-busy{position:absolute;inset:0;z-index:1000;display:grid;place-items:center;background:#0a192f4d;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}.efa-busy-box{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:340px;max-width:520px;padding:22px 26px 18px;border-radius:12px;background:var(--colorNeutralBackground1);box-shadow:var(--shadow16);text-align:center}.efa-busy-logo{width:44px;height:44px;animation:efa-pulse 1.6s ease-in-out infinite}@keyframes efa-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.9);opacity:.75}}.efa-busy-title{font-size:15px;font-weight:600}.efa-busy-text{font-size:13px;color:var(--colorNeutralForeground2);white-space:pre-line}.efa-busy-elapsed{font-size:11.5px;color:var(--colorNeutralForeground3)}:root{--efa-accent: #0f6cbd;--efa-blue: #0f6cbd;--efa-green: #1a9e6c;--efa-violet: #8455c4;--efa-orange: #ca5010;--efa-amber: #eaa33c;--efa-sky: #78aadc;--efa-deep: #0c3b5e;--efa-neutral: #b4bfcc;--efa-track: #e4e8ee;--efa-success: #107c10;--efa-danger: #c50f1f;--efa-warning: #a84308;--efa-header: linear-gradient(115deg, #0a192f 0%, #123a6b 55%, #3b2a73 100%);--efa-card-shadow: 0 1px 2px rgba(31, 41, 55, .05), 0 4px 14px rgba(31, 41, 55, .05)}:root[data-efa-theme=dark]{--efa-accent: #77b3ec;--efa-blue: #3f8fdc;--efa-green: #22a06b;--efa-violet: #a474dc;--efa-orange: #d9662b;--efa-amber: #d9a441;--efa-sky: #9cc7ee;--efa-deep: #c3e0f8;--efa-neutral: #77829a;--efa-track: #495163;--efa-success: #6fd19a;--efa-danger: #f07777;--efa-warning: #f0ad72;--efa-header: linear-gradient(115deg, #08142a 0%, #10305a 55%, #30235e 100%);--efa-card-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 0, 0, .12)}button{font:inherit;color:inherit}button:focus-visible,.efa-slice:focus-visible{outline:2px solid var(--efa-accent);outline-offset:1px}.efa-shell{flex:1;min-height:0;display:flex;flex-direction:column}.efa-load.fui-Button{margin-right:4px}.efa-main{flex:1;min-height:0;display:grid;grid-template-columns:clamp(240px,22vw,340px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:14px;padding:12px}.efa-content{min-width:0;min-height:0;display:flex;flex-direction:column;gap:6px}.efa-context{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;padding:0 4px}.efa-context h1{font-size:20px;font-weight:600}.efa-context-sub{font-size:12px;color:var(--colorNeutralForeground3)}.efa-context-hint{margin-left:auto;font-size:12px;color:var(--efa-accent)}.efa-badge{display:inline-block;padding:0 8px;border-radius:999px;border:1px solid var(--colorNeutralStroke2);background:var(--colorNeutralBackground1);color:var(--colorNeutralForeground2);font-size:11px;font-weight:400;line-height:18px;white-space:nowrap}.efa-tabs .efa-badge{margin-left:6px}.efa-tabs.fui-TabList{flex:none;flex-wrap:wrap;border-bottom:1px solid var(--colorNeutralStroke2)}.efa-page{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:6px 4px 12px}.efa-page>*{flex:none}.efa-note{padding:6px 12px;border-radius:8px;font-size:12px;color:var(--colorNeutralForeground2);background:color-mix(in srgb,var(--efa-accent) 9%,var(--colorNeutralBackground1))}.efa-note-warning{color:var(--efa-warning);background:color-mix(in srgb,var(--efa-warning) 10%,var(--colorNeutralBackground1))}.efa-entities .fui-Select,.efa-entities .fui-Input{flex:none;width:100%;min-width:0}.efa-entity-list{flex:1;min-height:60px;overflow:auto}.efa-entity{width:100%;display:flex;align-items:center;gap:10px;padding:6px 8px;border:0;border-bottom:1px solid var(--colorNeutralStroke3);border-radius:6px;background:none;text-align:left;cursor:pointer}.efa-entity:hover{background:var(--colorNeutralBackground1Hover)}.efa-entity-selected,.efa-entity-selected:hover{background:var(--colorBrandBackground2)}.efa-radio{flex:none;width:14px;height:14px;border-radius:50%;border:1px solid var(--colorNeutralStrokeAccessible)}.efa-entity-selected .efa-radio{border:4px solid var(--efa-accent)}.efa-entity-text{min-width:0;display:flex;flex-direction:column}.efa-entity-name,.efa-entity-schema{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.efa-entity-name{font-size:13px;font-weight:600}.efa-entity-schema{font-size:11.5px;color:var(--colorNeutralForeground3)}.efa-run{flex:none;display:flex;flex-direction:column;gap:6px;padding-top:6px;border-top:1px solid var(--colorNeutralStroke2)}.efa-run-warning{font-size:11.5px;color:var(--efa-warning)}.efa-analyse.fui-Button{width:100%}.efa-welcome h2{font-size:15px;font-weight:600;margin-top:6px}.efa-steps,.efa-features,.efa-tiles{display:grid;gap:12px}.efa-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.efa-features,.efa-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.efa-step{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--colorNeutralStroke2);border-radius:12px;background:var(--colorNeutralBackground1)}.efa-step h3{font-size:14px;font-weight:600}.efa-step p{font-size:12px;line-height:1.45;color:var(--colorNeutralForeground3)}.efa-step-current{border:2px solid var(--efa-accent)}.efa-step-head{display:flex;align-items:center;justify-content:space-between}.efa-step-number{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-weight:600;background:var(--colorNeutralBackground4)}.efa-step-current .efa-step-number{color:var(--colorNeutralForegroundOnBrand);background:var(--colorBrandBackground)}.efa-step-done .efa-step-number{color:var(--efa-success);background:color-mix(in srgb,var(--efa-success) 14%,transparent)}.efa-step-state{font-size:12px;color:var(--efa-accent)}.efa-step-done .efa-step-state{color:var(--efa-success)}.efa-stat{min-width:0;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--colorNeutralStroke2);border-radius:12px;background:var(--colorNeutralBackground1);box-shadow:var(--efa-card-shadow);text-align:left}button.efa-stat{cursor:pointer}button.efa-stat:hover{border-color:var(--efa-accent)}.efa-stat-icon{flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:9px;font-size:20px;color:var(--tint);background:color-mix(in srgb,var(--tint) 13%,transparent)}.efa-stat-text{flex:1;min-width:0;display:flex;flex-direction:column}.efa-stat-title,.efa-stat-caption{font-size:11.5px;color:var(--colorNeutralForeground3)}.efa-stat-line{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:6px}.efa-stat-value{font-size:22px;font-weight:600}.efa-progress{height:4px;margin-top:4px;overflow:hidden;border-radius:2px;background:var(--efa-track)}.efa-progress>span{display:block;height:100%;background:var(--tint)}.efa-page .efa-card{flex:none}.efa-overview,.efa-usage{display:grid;gap:12px}.efa-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.efa-usage{grid-template-columns:repeat(2,minmax(0,1fr))}.efa-span-2{grid-column:span 2}.efa-page .efa-card-header{flex-wrap:wrap;row-gap:0}.efa-page .efa-card-header p{white-space:normal}.efa-page .efa-card-body{min-height:120px}.efa-bars{flex:1;display:flex;flex-direction:column;justify-content:space-evenly;gap:1px;--label-width: 118px}.efa-wide-labels .efa-bars{--label-width: 230px}.efa-bar{display:grid;grid-template-columns:var(--label-width) minmax(0,1fr);align-items:center;gap:8px;padding:2px 0;border:0;border-radius:4px;background:none;cursor:pointer}.efa-bar:hover,.efa-column:hover{background:var(--colorNeutralBackground1Hover)}.efa-bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:12px;color:var(--colorNeutralForeground2)}.efa-bar-track{display:flex;align-items:center;height:16px;padding-right:52px;border-left:1px solid var(--colorNeutralStroke1)}.efa-bar-fill{flex:none;height:12px;border-radius:0 4px 4px 0}.efa-bar-value{margin-left:5px;white-space:nowrap;font-size:11.5px;color:var(--colorNeutralForeground3)}.efa-columns-chart{flex:1;display:flex;flex-direction:column;gap:6px}.efa-columns{flex:1;min-height:220px;display:flex;align-items:stretch}.efa-column{flex:1 1 0;min-width:0;display:flex;flex-direction:column;padding:0;border:0;background:none;cursor:pointer}.efa-column-plot{flex:1;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;border-bottom:1px solid var(--colorNeutralStroke1)}.efa-column-value{font-size:11.5px;color:var(--colorNeutralForeground3)}.efa-column-stack{width:60%;max-width:40px;display:flex;flex-direction:column-reverse;gap:2px;overflow:hidden;border-radius:4px 4px 0 0}.efa-column-stack>span{flex-basis:0}.efa-column-label{align-self:center;height:20px;padding-top:3px;white-space:nowrap;font-size:11px;color:var(--colorNeutralForeground3)}.efa-legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--colorNeutralForeground2)}.efa-legend-top{justify-content:flex-end}.efa-legend i,.efa-doughnut-legend i{display:inline-block;flex:none;width:11px;height:11px;margin-right:6px;border-radius:3px}.efa-doughnut{flex:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}.efa-doughnut svg{width:160px;height:160px}.efa-slice{fill:none;stroke-width:4.6;cursor:pointer;pointer-events:stroke}.efa-doughnut-total,.efa-doughnut-caption{text-anchor:middle;pointer-events:none}.efa-doughnut-total{font-size:6px;font-weight:600;fill:var(--colorNeutralForeground1)}.efa-doughnut-caption{font-size:3px;fill:var(--colorNeutralForeground3)}.efa-doughnut-legend{display:flex;flex-direction:column;gap:3px}.efa-doughnut-legend button{display:flex;align-items:center;padding:2px 4px;border:0;background:none;font-size:12px;cursor:pointer}.efa-doughnut-legend b{margin-left:auto;padding-left:12px}.efa-tip{position:fixed;z-index:3000;max-width:260px;padding:5px 9px;border-radius:6px;font:12px Segoe UI,sans-serif;color:#fff;background:#1e2433;box-shadow:0 2px 8px #00000040;pointer-events:none}.efa-headline{font-size:17px;font-weight:600}.efa-budget{display:flex;flex-direction:column;gap:6px}.efa-budget-bar{position:relative;display:flex;height:22px}.efa-budget-bar>span{flex:0 1 auto;background:var(--segment);border-right:2px solid var(--colorNeutralBackground1)}.efa-budget-bar>span.efa-budget-planned,.efa-legend i.efa-budget-planned{background:repeating-linear-gradient(135deg,var(--segment) 0 5px,color-mix(in srgb,var(--segment) 30%,var(--colorNeutralBackground1)) 5px 10px)!important}.efa-budget-limit{position:absolute;top:-4px;bottom:-4px;border-left:2px solid var(--efa-danger)}.efa-budget-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--colorNeutralForeground3)}.efa-rule{font-size:12px;color:var(--colorNeutralForeground3)}.efa-plan{display:grid;grid-template-columns:1fr 2fr 1fr;align-items:end;gap:12px}.efa-plan .fui-Input,.efa-plan .fui-Input__input{min-width:0}.efa-plan-result{font-size:13px;color:var(--colorNeutralForeground3)}.efa-plan-ok{color:var(--efa-success);font-weight:600}.efa-plan-bad{color:var(--efa-danger);font-weight:600}.efa-fields{gap:8px;padding:12px}.efa-chips,.efa-toolbar{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.efa-chip,.efa-drill{padding:3px 12px;border:1px solid var(--colorNeutralStroke1);border-radius:999px;font-size:12px;background:none}.efa-chip{cursor:pointer}.efa-chip[aria-pressed=true]{border-color:var(--efa-accent);color:var(--efa-accent);background:var(--colorBrandBackground2)}.efa-drill{display:inline-flex;align-items:center;gap:6px;border-color:transparent;color:var(--colorNeutralForegroundOnBrand);background:var(--colorBrandBackground)}.efa-drill button{display:grid;place-items:center;border:0;background:none;cursor:pointer}.efa-result{margin-left:auto;font-size:12px;color:var(--colorNeutralForeground3)}.efa-grid th button{padding:0;border:0;background:none;white-space:nowrap;cursor:pointer}.efa-grid td{max-width:300px}.efa-unused td{color:var(--colorNeutralForeground2);background:color-mix(in srgb,var(--efa-orange) 12%,var(--colorNeutralBackground1))}.efa-dialog.fui-DialogSurface{max-width:620px;width:calc(100vw - 48px)}.efa-dialog-title{display:flex;align-items:center;gap:10px}.efa-dialog-error{color:var(--efa-danger)}.efa-dialog-warning{color:var(--efa-warning)}.efa-message{white-space:pre-line;overflow-wrap:anywhere}.efa-help{display:flex;flex-direction:column;gap:6px;padding:4px 0 12px 20px}@media(max-width:1350px){.efa-tiles,.efa-features,.efa-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.efa-root{height:auto;min-height:100vh}body{overflow:auto}.efa-main,.efa-steps,.efa-overview,.efa-usage{grid-template-columns:minmax(0,1fr)}.efa-main{grid-template-rows:380px auto}.efa-span-2{grid-column:auto}}.efa-entities .efa-card-header h2{flex:none}.efa-overview .efa-bar{padding:0}.efa-overview .efa-columns{min-height:170px}.efa-overview .efa-doughnut svg{width:132px;height:132px}
2
+ /*$vite$:1*/`,document.head.appendChild(Kd);function Xd(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ll={exports:{}},Ho={},cl={exports:{}},Ne={};var Yd;function Q0(){if(Yd)return Ne;Yd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=b&&j[b]||j["@@iterator"],typeof j=="function"?j:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,w={};function _(j,K,se){this.props=j,this.context=K,this.refs=w,this.updater=se||m}_.prototype.isReactComponent={},_.prototype.setState=function(j,K){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,K,"setState")},_.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function N(){}N.prototype=_.prototype;function E(j,K,se){this.props=j,this.context=K,this.refs=w,this.updater=se||m}var z=E.prototype=new N;z.constructor=E,y(z,_.prototype),z.isPureReactComponent=!0;var P=Array.isArray,L=Object.prototype.hasOwnProperty,T={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function O(j,K,se){var re,ce={},ye=null,ve=null;if(K!=null)for(re in K.ref!==void 0&&(ve=K.ref),K.key!==void 0&&(ye=""+K.key),K)L.call(K,re)&&!D.hasOwnProperty(re)&&(ce[re]=K[re]);var me=arguments.length-2;if(me===1)ce.children=se;else if(1<me){for(var Ce=Array(me),je=0;je<me;je++)Ce[je]=arguments[je+2];ce.children=Ce}if(j&&j.defaultProps)for(re in me=j.defaultProps,me)ce[re]===void 0&&(ce[re]=me[re]);return{$$typeof:e,type:j,key:ye,ref:ve,props:ce,_owner:T.current}}function q(j,K){return{$$typeof:e,type:j.type,key:K,ref:j.ref,props:j.props,_owner:j._owner}}function Q(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function X(j){var K={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(se){return K[se]})}var $=/\/+/g;function F(j,K){return typeof j=="object"&&j!==null&&j.key!=null?X(""+j.key):K.toString(36)}function Z(j,K,se,re,ce){var ye=typeof j;(ye==="undefined"||ye==="boolean")&&(j=null);var ve=!1;if(j===null)ve=!0;else switch(ye){case"string":case"number":ve=!0;break;case"object":switch(j.$$typeof){case e:case t:ve=!0}}if(ve)return ve=j,ce=ce(ve),j=re===""?"."+F(ve,0):re,P(ce)?(se="",j!=null&&(se=j.replace($,"$&/")+"/"),Z(ce,K,se,"",function(je){return je})):ce!=null&&(Q(ce)&&(ce=q(ce,se+(!ce.key||ve&&ve.key===ce.key?"":(""+ce.key).replace($,"$&/")+"/")+j)),K.push(ce)),1;if(ve=0,re=re===""?".":re+":",P(j))for(var me=0;me<j.length;me++){ye=j[me];var Ce=re+F(ye,me);ve+=Z(ye,K,se,Ce,ce)}else if(Ce=x(j),typeof Ce=="function")for(j=Ce.call(j),me=0;!(ye=j.next()).done;)ye=ye.value,Ce=re+F(ye,me++),ve+=Z(ye,K,se,Ce,ce);else if(ye==="object")throw K=String(j),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return ve}function oe(j,K,se){if(j==null)return j;var re=[],ce=0;return Z(j,re,"","",function(ye){return K.call(se,ye,ce++)}),re}function V(j){if(j._status===-1){var K=j._result;K=K(),K.then(function(se){(j._status===0||j._status===-1)&&(j._status=1,j._result=se)},function(se){(j._status===0||j._status===-1)&&(j._status=2,j._result=se)}),j._status===-1&&(j._status=0,j._result=K)}if(j._status===1)return j._result.default;throw j._result}var G={current:null},I={transition:null},J={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:I,ReactCurrentOwner:T};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Ne.Children={map:oe,forEach:function(j,K,se){oe(j,function(){K.apply(this,arguments)},se)},count:function(j){var K=0;return oe(j,function(){K++}),K},toArray:function(j){return oe(j,function(K){return K})||[]},only:function(j){if(!Q(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Ne.Component=_,Ne.Fragment=n,Ne.Profiler=s,Ne.PureComponent=E,Ne.StrictMode=i,Ne.Suspense=f,Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Ne.act=Y,Ne.cloneElement=function(j,K,se){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var re=y({},j.props),ce=j.key,ye=j.ref,ve=j._owner;if(K!=null){if(K.ref!==void 0&&(ye=K.ref,ve=T.current),K.key!==void 0&&(ce=""+K.key),j.type&&j.type.defaultProps)var me=j.type.defaultProps;for(Ce in K)L.call(K,Ce)&&!D.hasOwnProperty(Ce)&&(re[Ce]=K[Ce]===void 0&&me!==void 0?me[Ce]:K[Ce])}var Ce=arguments.length-2;if(Ce===1)re.children=se;else if(1<Ce){me=Array(Ce);for(var je=0;je<Ce;je++)me[je]=arguments[je+2];re.children=me}return{$$typeof:e,type:j.type,key:ce,ref:ye,props:re,_owner:ve}},Ne.createContext=function(j){return j={$$typeof:c,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:l,_context:j},j.Consumer=j},Ne.createElement=O,Ne.createFactory=function(j){var K=O.bind(null,j);return K.type=j,K},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(j){return{$$typeof:d,render:j}},Ne.isValidElement=Q,Ne.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:V}},Ne.memo=function(j,K){return{$$typeof:h,type:j,compare:K===void 0?null:K}},Ne.startTransition=function(j){var K=I.transition;I.transition={};try{j()}finally{I.transition=K}},Ne.unstable_act=Y,Ne.useCallback=function(j,K){return G.current.useCallback(j,K)},Ne.useContext=function(j){return G.current.useContext(j)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(j){return G.current.useDeferredValue(j)},Ne.useEffect=function(j,K){return G.current.useEffect(j,K)},Ne.useId=function(){return G.current.useId()},Ne.useImperativeHandle=function(j,K,se){return G.current.useImperativeHandle(j,K,se)},Ne.useInsertionEffect=function(j,K){return G.current.useInsertionEffect(j,K)},Ne.useLayoutEffect=function(j,K){return G.current.useLayoutEffect(j,K)},Ne.useMemo=function(j,K){return G.current.useMemo(j,K)},Ne.useReducer=function(j,K,se){return G.current.useReducer(j,K,se)},Ne.useRef=function(j){return G.current.useRef(j)},Ne.useState=function(j){return G.current.useState(j)},Ne.useSyncExternalStore=function(j,K,se){return G.current.useSyncExternalStore(j,K,se)},Ne.useTransition=function(){return G.current.useTransition()},Ne.version="18.3.1",Ne}var Jd;function Qi(){return Jd||(Jd=1,cl.exports=Q0()),cl.exports}var Zd;function Y0(){if(Zd)return Ho;Zd=1;var e=Qi(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,h){var g,b={},x=null,m=null;h!==void 0&&(x=""+h),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(m=f.ref);for(g in f)i.call(f,g)&&!l.hasOwnProperty(g)&&(b[g]=f[g]);if(d&&d.defaultProps)for(g in f=d.defaultProps,f)b[g]===void 0&&(b[g]=f[g]);return{$$typeof:t,type:d,key:x,ref:m,props:b,_owner:s.current}}return Ho.Fragment=n,Ho.jsx=c,Ho.jsxs=c,Ho}var ef;function J0(){return ef||(ef=1,ll.exports=Y0()),ll.exports}var C=J0();const Z0=Xd({__proto__:null,default:Qd(C)},[C]);var S=Qi();const ul=Qd(S),Yi=Xd({__proto__:null,default:ul},[S]);var Ji={},dl={exports:{}},Rt={},fl={exports:{}},pl={};var tf;function e1(){return tf||(tf=1,(function(e){function t(I,J){var Y=I.length;I.push(J);e:for(;0<Y;){var j=Y-1>>>1,K=I[j];if(0<s(K,J))I[j]=J,I[Y]=K,Y=j;else break e}}function n(I){return I.length===0?null:I[0]}function i(I){if(I.length===0)return null;var J=I[0],Y=I.pop();if(Y!==J){I[0]=Y;e:for(var j=0,K=I.length,se=K>>>1;j<se;){var re=2*(j+1)-1,ce=I[re],ye=re+1,ve=I[ye];if(0>s(ce,Y))ye<K&&0>s(ve,ce)?(I[j]=ve,I[ye]=Y,j=ye):(I[j]=ce,I[re]=Y,j=re);else if(ye<K&&0>s(ve,Y))I[j]=ve,I[ye]=Y,j=ye;else break e}}return J}function s(I,J){var Y=I.sortIndex-J.sortIndex;return Y!==0?Y:I.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],g=1,b=null,x=3,m=!1,y=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(I){for(var J=n(h);J!==null;){if(J.callback===null)i(h);else if(J.startTime<=I)i(h),J.sortIndex=J.expirationTime,t(f,J);else break;J=n(h)}}function P(I){if(w=!1,z(I),!y)if(n(f)!==null)y=!0,V(L);else{var J=n(h);J!==null&&G(P,J.startTime-I)}}function L(I,J){y=!1,w&&(w=!1,N(O),O=-1),m=!0;var Y=x;try{for(z(J),b=n(f);b!==null&&(!(b.expirationTime>J)||I&&!X());){var j=b.callback;if(typeof j=="function"){b.callback=null,x=b.priorityLevel;var K=j(b.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?b.callback=K:b===n(f)&&i(f),z(J)}else i(f);b=n(f)}if(b!==null)var se=!0;else{var re=n(h);re!==null&&G(P,re.startTime-J),se=!1}return se}finally{b=null,x=Y,m=!1}}var T=!1,D=null,O=-1,q=5,Q=-1;function X(){return!(e.unstable_now()-Q<q)}function $(){if(D!==null){var I=e.unstable_now();Q=I;var J=!0;try{J=D(!0,I)}finally{J?F():(T=!1,D=null)}}else T=!1}var F;if(typeof E=="function")F=function(){E($)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,oe=Z.port2;Z.port1.onmessage=$,F=function(){oe.postMessage(null)}}else F=function(){_($,0)};function V(I){D=I,T||(T=!0,F())}function G(I,J){O=_(function(){I(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,V(L))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(I){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var Y=x;x=J;try{return I()}finally{x=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,J){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var Y=x;x=I;try{return J()}finally{x=Y}},e.unstable_scheduleCallback=function(I,J,Y){var j=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?j+Y:j):Y=j,I){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=Y+K,I={id:g++,callback:J,priorityLevel:I,startTime:Y,expirationTime:K,sortIndex:-1},Y>j?(I.sortIndex=Y,t(h,I),n(f)===null&&I===n(h)&&(w?(N(O),O=-1):w=!0,G(P,Y-j))):(I.sortIndex=K,t(f,I),y||m||(y=!0,V(L))),I},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(I){var J=x;return function(){var Y=x;x=J;try{return I.apply(this,arguments)}finally{x=Y}}}})(pl)),pl}var rf;function t1(){return rf||(rf=1,fl.exports=e1()),fl.exports}var nf;function r1(){if(nf)return Rt;nf=1;var e=Qi(),t=t1();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(r,o){c(r,o),c(r+"Capture",o)}function c(r,o){for(s[r]=o,r=0;r<o.length;r++)i.add(o[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},b={};function x(r){return f.call(b,r)?!0:f.call(g,r)?!1:h.test(r)?b[r]=!0:(g[r]=!0,!1)}function m(r,o,a,u){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function y(r,o,a,u){if(o===null||typeof o>"u"||m(r,o,a,u))return!0;if(u)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function w(r,o,a,u,p,v,k){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=p,this.mustUseProperty=a,this.propertyName=r,this.type=o,this.sanitizeURL=v,this.removeEmptyString=k}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){_[r]=new w(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];_[o]=new w(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){_[r]=new w(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){_[r]=new w(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){_[r]=new w(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){_[r]=new w(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){_[r]=new w(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){_[r]=new w(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){_[r]=new w(r,5,!1,r.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function E(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(N,E);_[o]=new w(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(N,E);_[o]=new w(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(N,E);_[o]=new w(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){_[r]=new w(r,1,!1,r.toLowerCase(),null,!1,!1)}),_.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){_[r]=new w(r,1,!1,r.toLowerCase(),null,!0,!0)});function z(r,o,a,u){var p=_.hasOwnProperty(o)?_[o]:null;(p!==null?p.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(y(o,a,p,u)&&(a=null),u||p===null?x(o)&&(a===null?r.removeAttribute(o):r.setAttribute(o,""+a)):p.mustUseProperty?r[p.propertyName]=a===null?p.type===3?!1:"":a:(o=p.attributeName,u=p.attributeNamespace,a===null?r.removeAttribute(o):(p=p.type,a=p===3||p===4&&a===!0?"":""+a,u?r.setAttributeNS(u,o,a):r.setAttribute(o,a))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),T=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),X=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),I=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=I&&r[I]||r["@@iterator"],typeof r=="function"?r:null)}var Y=Object.assign,j;function K(r){if(j===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);j=o&&o[1]||""}return`
3
+ `+j+r}var se=!1;function re(r,o){if(!r||se)return"";se=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(W){var u=W}Reflect.construct(r,[],o)}else{try{o.call()}catch(W){u=W}r.call(o.prototype)}else{try{throw Error()}catch(W){u=W}r()}}catch(W){if(W&&u&&typeof W.stack=="string"){for(var p=W.stack.split(`
4
+ `),v=u.stack.split(`
5
+ `),k=p.length-1,B=v.length-1;1<=k&&0<=B&&p[k]!==v[B];)B--;for(;1<=k&&0<=B;k--,B--)if(p[k]!==v[B]){if(k!==1||B!==1)do if(k--,B--,0>B||p[k]!==v[B]){var R=`
6
+ `+p[k].replace(" at new "," at ");return r.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",r.displayName)),R}while(1<=k&&0<=B);break}}}finally{se=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?K(r):""}function ce(r){switch(r.tag){case 5:return K(r.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return r=re(r.type,!1),r;case 11:return r=re(r.type.render,!1),r;case 1:return r=re(r.type,!0),r;default:return""}}function ye(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case D:return"Fragment";case T:return"Portal";case q:return"Profiler";case O:return"StrictMode";case F:return"Suspense";case Z:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case X:return(r.displayName||"Context")+".Consumer";case Q:return(r._context.displayName||"Context")+".Provider";case $:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case oe:return o=r.displayName||null,o!==null?o:ye(r.type)||"Memo";case V:o=r._payload,r=r._init;try{return ye(r(o))}catch{}}return null}function ve(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(o);case 8:return o===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function me(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ce(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function je(r){var o=Ce(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),u=""+r[o];if(!r.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,v=a.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return p.call(this)},set:function(k){u=""+k,v.call(this,k)}}),Object.defineProperty(r,o,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function ft(r){r._valueTracker||(r._valueTracker=je(r))}function Br(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var a=o.getValue(),u="";return r&&(u=Ce(r)?r.checked?"true":"false":r.value),r=u,r!==a?(o.setValue(r),!0):!1}function pr(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function On(r,o){var a=o.checked;return Y({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function ng(r,o){var a=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;a=me(o.value!=null?o.value:a),r._wrapperState={initialChecked:u,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function og(r,o){o=o.checked,o!=null&&z(r,"checked",o,!1)}function ru(r,o){og(r,o);var a=me(o.value),u=o.type;if(a!=null)u==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(u==="submit"||u==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?nu(r,o.type,a):o.hasOwnProperty("defaultValue")&&nu(r,o.type,me(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function ig(r,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,a||o===r.value||(r.value=o),r.defaultValue=o}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function nu(r,o,a){(o!=="number"||pr(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var di=Array.isArray;function vo(r,o,a,u){if(r=r.options,o){o={};for(var p=0;p<a.length;p++)o["$"+a[p]]=!0;for(a=0;a<r.length;a++)p=o.hasOwnProperty("$"+r[a].value),r[a].selected!==p&&(r[a].selected=p),p&&u&&(r[a].defaultSelected=!0)}else{for(a=""+me(a),o=null,p=0;p<r.length;p++){if(r[p].value===a){r[p].selected=!0,u&&(r[p].defaultSelected=!0);return}o!==null||r[p].disabled||(o=r[p])}o!==null&&(o.selected=!0)}}function ou(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function ag(r,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(n(92));if(di(a)){if(1<a.length)throw Error(n(93));a=a[0]}o=a}o==null&&(o=""),a=o}r._wrapperState={initialValue:me(a)}}function sg(r,o){var a=me(o.value),u=me(o.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),o.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),u!=null&&(r.defaultValue=""+u)}function lg(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function cg(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function iu(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?cg(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var es,ug=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,u,p){MSApp.execUnsafeLocalFunction(function(){return r(o,a,u,p)})}:r})(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(es=es||document.createElement("div"),es.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=es.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function fi(r,o){if(o){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=o;return}}r.textContent=o}var pi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},KN=["Webkit","ms","Moz","O"];Object.keys(pi).forEach(function(r){KN.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),pi[o]=pi[r]})});function dg(r,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||pi.hasOwnProperty(r)&&pi[r]?(""+o).trim():o+"px"}function fg(r,o){r=r.style;for(var a in o)if(o.hasOwnProperty(a)){var u=a.indexOf("--")===0,p=dg(a,o[a],u);a==="float"&&(a="cssFloat"),u?r.setProperty(a,p):r[a]=p}}var XN=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function au(r,o){if(o){if(XN[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function su(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lu=null;function cu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var uu=null,bo=null,yo=null;function pg(r){if(r=Mi(r)){if(typeof uu!="function")throw Error(n(280));var o=r.stateNode;o&&(o=Ss(o),uu(r.stateNode,r.type,o))}}function hg(r){bo?yo?yo.push(r):yo=[r]:bo=r}function mg(){if(bo){var r=bo,o=yo;if(yo=bo=null,pg(r),o)for(r=0;r<o.length;r++)pg(o[r])}}function gg(r,o){return r(o)}function vg(){}var du=!1;function bg(r,o,a){if(du)return r(o,a);du=!0;try{return gg(r,o,a)}finally{du=!1,(bo!==null||yo!==null)&&(vg(),mg())}}function hi(r,o){var a=r.stateNode;if(a===null)return null;var u=Ss(a);if(u===null)return null;a=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,o,typeof a));return a}var fu=!1;if(d)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){fu=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{fu=!1}function QN(r,o,a,u,p,v,k,B,R){var W=Array.prototype.slice.call(arguments,3);try{o.apply(a,W)}catch(te){this.onError(te)}}var gi=!1,ts=null,rs=!1,pu=null,YN={onError:function(r){gi=!0,ts=r}};function JN(r,o,a,u,p,v,k,B,R){gi=!1,ts=null,QN.apply(YN,arguments)}function ZN(r,o,a,u,p,v,k,B,R){if(JN.apply(this,arguments),gi){if(gi){var W=ts;gi=!1,ts=null}else throw Error(n(198));rs||(rs=!0,pu=W)}}function qn(r){var o=r,a=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(a=o.return),r=o.return;while(r)}return o.tag===3?a:null}function yg(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function xg(r){if(qn(r)!==r)throw Error(n(188))}function eB(r){var o=r.alternate;if(!o){if(o=qn(r),o===null)throw Error(n(188));return o!==r?null:r}for(var a=r,u=o;;){var p=a.return;if(p===null)break;var v=p.alternate;if(v===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===a)return xg(p),r;if(v===u)return xg(p),o;v=v.sibling}throw Error(n(188))}if(a.return!==u.return)a=p,u=v;else{for(var k=!1,B=p.child;B;){if(B===a){k=!0,a=p,u=v;break}if(B===u){k=!0,u=p,a=v;break}B=B.sibling}if(!k){for(B=v.child;B;){if(B===a){k=!0,a=v,u=p;break}if(B===u){k=!0,u=v,a=p;break}B=B.sibling}if(!k)throw Error(n(189))}}if(a.alternate!==u)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:o}function wg(r){return r=eB(r),r!==null?kg(r):null}function kg(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=kg(r);if(o!==null)return o;r=r.sibling}return null}var Sg=t.unstable_scheduleCallback,_g=t.unstable_cancelCallback,tB=t.unstable_shouldYield,rB=t.unstable_requestPaint,Je=t.unstable_now,nB=t.unstable_getCurrentPriorityLevel,hu=t.unstable_ImmediatePriority,Cg=t.unstable_UserBlockingPriority,ns=t.unstable_NormalPriority,oB=t.unstable_LowPriority,Ng=t.unstable_IdlePriority,os=null,zr=null;function iB(r){if(zr&&typeof zr.onCommitFiberRoot=="function")try{zr.onCommitFiberRoot(os,r,void 0,(r.current.flags&128)===128)}catch{}}var hr=Math.clz32?Math.clz32:lB,aB=Math.log,sB=Math.LN2;function lB(r){return r>>>=0,r===0?32:31-(aB(r)/sB|0)|0}var is=64,as=4194304;function vi(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function ss(r,o){var a=r.pendingLanes;if(a===0)return 0;var u=0,p=r.suspendedLanes,v=r.pingedLanes,k=a&268435455;if(k!==0){var B=k&~p;B!==0?u=vi(B):(v&=k,v!==0&&(u=vi(v)))}else k=a&~p,k!==0?u=vi(k):v!==0&&(u=vi(v));if(u===0)return 0;if(o!==0&&o!==u&&(o&p)===0&&(p=u&-u,v=o&-o,p>=v||p===16&&(v&4194240)!==0))return o;if((u&4)!==0&&(u|=a&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=u;0<o;)a=31-hr(o),p=1<<a,u|=r[a],o&=~p;return u}function cB(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uB(r,o){for(var a=r.suspendedLanes,u=r.pingedLanes,p=r.expirationTimes,v=r.pendingLanes;0<v;){var k=31-hr(v),B=1<<k,R=p[k];R===-1?((B&a)===0||(B&u)!==0)&&(p[k]=cB(B,o)):R<=o&&(r.expiredLanes|=B),v&=~B}}function mu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Bg(){var r=is;return is<<=1,(is&4194240)===0&&(is=64),r}function gu(r){for(var o=[],a=0;31>a;a++)o.push(r);return o}function bi(r,o,a){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-hr(o),r[o]=a}function dB(r,o){var a=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var u=r.eventTimes;for(r=r.expirationTimes;0<a;){var p=31-hr(a),v=1<<p;o[p]=0,u[p]=-1,r[p]=-1,a&=~v}}function vu(r,o){var a=r.entangledLanes|=o;for(r=r.entanglements;a;){var u=31-hr(a),p=1<<u;p&o|r[u]&o&&(r[u]|=o),a&=~p}}var Re=0;function zg(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Eg,bu,Tg,Fg,Pg,yu=!1,ls=[],cn=null,un=null,dn=null,yi=new Map,xi=new Map,fn=[],fB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rg(r,o){switch(r){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":un=null;break;case"mouseover":case"mouseout":dn=null;break;case"pointerover":case"pointerout":yi.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(o.pointerId)}}function wi(r,o,a,u,p,v){return r===null||r.nativeEvent!==v?(r={blockedOn:o,domEventName:a,eventSystemFlags:u,nativeEvent:v,targetContainers:[p]},o!==null&&(o=Mi(o),o!==null&&bu(o)),r):(r.eventSystemFlags|=u,o=r.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),r)}function pB(r,o,a,u,p){switch(o){case"focusin":return cn=wi(cn,r,o,a,u,p),!0;case"dragenter":return un=wi(un,r,o,a,u,p),!0;case"mouseover":return dn=wi(dn,r,o,a,u,p),!0;case"pointerover":var v=p.pointerId;return yi.set(v,wi(yi.get(v)||null,r,o,a,u,p)),!0;case"gotpointercapture":return v=p.pointerId,xi.set(v,wi(xi.get(v)||null,r,o,a,u,p)),!0}return!1}function jg(r){var o=Ln(r.target);if(o!==null){var a=qn(o);if(a!==null){if(o=a.tag,o===13){if(o=yg(a),o!==null){r.blockedOn=o,Pg(r.priority,function(){Tg(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function cs(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var a=wu(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var u=new a.constructor(a.type,a);lu=u,a.target.dispatchEvent(u),lu=null}else return o=Mi(a),o!==null&&bu(o),r.blockedOn=a,!1;o.shift()}return!0}function Mg(r,o,a){cs(r)&&a.delete(o)}function hB(){yu=!1,cn!==null&&cs(cn)&&(cn=null),un!==null&&cs(un)&&(un=null),dn!==null&&cs(dn)&&(dn=null),yi.forEach(Mg),xi.forEach(Mg)}function ki(r,o){r.blockedOn===o&&(r.blockedOn=null,yu||(yu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hB)))}function Si(r){function o(p){return ki(p,r)}if(0<ls.length){ki(ls[0],r);for(var a=1;a<ls.length;a++){var u=ls[a];u.blockedOn===r&&(u.blockedOn=null)}}for(cn!==null&&ki(cn,r),un!==null&&ki(un,r),dn!==null&&ki(dn,r),yi.forEach(o),xi.forEach(o),a=0;a<fn.length;a++)u=fn[a],u.blockedOn===r&&(u.blockedOn=null);for(;0<fn.length&&(a=fn[0],a.blockedOn===null);)jg(a),a.blockedOn===null&&fn.shift()}var xo=P.ReactCurrentBatchConfig,us=!0;function mB(r,o,a,u){var p=Re,v=xo.transition;xo.transition=null;try{Re=1,xu(r,o,a,u)}finally{Re=p,xo.transition=v}}function gB(r,o,a,u){var p=Re,v=xo.transition;xo.transition=null;try{Re=4,xu(r,o,a,u)}finally{Re=p,xo.transition=v}}function xu(r,o,a,u){if(us){var p=wu(r,o,a,u);if(p===null)Au(r,o,u,ds,a),Rg(r,u);else if(pB(p,r,o,a,u))u.stopPropagation();else if(Rg(r,u),o&4&&-1<fB.indexOf(r)){for(;p!==null;){var v=Mi(p);if(v!==null&&Eg(v),v=wu(r,o,a,u),v===null&&Au(r,o,u,ds,a),v===p)break;p=v}p!==null&&u.stopPropagation()}else Au(r,o,u,null,a)}}var ds=null;function wu(r,o,a,u){if(ds=null,r=cu(u),r=Ln(r),r!==null)if(o=qn(r),o===null)r=null;else if(a=o.tag,a===13){if(r=yg(o),r!==null)return r;r=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return ds=r,null}function Ig(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nB()){case hu:return 1;case Cg:return 4;case ns:case oB:return 16;case Ng:return 536870912;default:return 16}default:return 16}}var pn=null,ku=null,fs=null;function Dg(){if(fs)return fs;var r,o=ku,a=o.length,u,p="value"in pn?pn.value:pn.textContent,v=p.length;for(r=0;r<a&&o[r]===p[r];r++);var k=a-r;for(u=1;u<=k&&o[a-u]===p[v-u];u++);return fs=p.slice(r,1<u?1-u:void 0)}function ps(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function hs(){return!0}function Ag(){return!1}function $t(r){function o(a,u,p,v,k){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=v,this.target=k,this.currentTarget=null;for(var B in r)r.hasOwnProperty(B)&&(a=r[B],this[B]=a?a(v):v[B]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?hs:Ag,this.isPropagationStopped=Ag,this}return Y(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hs)},persist:function(){},isPersistent:hs}),o}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Su=$t(wo),_i=Y({},wo,{view:0,detail:0}),vB=$t(_i),_u,Cu,Ci,ms=Y({},_i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bu,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ci&&(Ci&&r.type==="mousemove"?(_u=r.screenX-Ci.screenX,Cu=r.screenY-Ci.screenY):Cu=_u=0,Ci=r),_u)},movementY:function(r){return"movementY"in r?r.movementY:Cu}}),Og=$t(ms),bB=Y({},ms,{dataTransfer:0}),yB=$t(bB),xB=Y({},_i,{relatedTarget:0}),Nu=$t(xB),wB=Y({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),kB=$t(wB),SB=Y({},wo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),_B=$t(SB),CB=Y({},wo,{data:0}),qg=$t(CB),NB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},zB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EB(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=zB[r])?!!o[r]:!1}function Bu(){return EB}var TB=Y({},_i,{key:function(r){if(r.key){var o=NB[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=ps(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?BB[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bu,charCode:function(r){return r.type==="keypress"?ps(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ps(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),FB=$t(TB),PB=Y({},ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lg=$t(PB),RB=Y({},_i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bu}),jB=$t(RB),MB=Y({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),IB=$t(MB),DB=Y({},ms,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),AB=$t(DB),OB=[9,13,27,32],zu=d&&"CompositionEvent"in window,Ni=null;d&&"documentMode"in document&&(Ni=document.documentMode);var qB=d&&"TextEvent"in window&&!Ni,Hg=d&&(!zu||Ni&&8<Ni&&11>=Ni),$g=" ",Vg=!1;function Ug(r,o){switch(r){case"keyup":return OB.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ko=!1;function LB(r,o){switch(r){case"compositionend":return Wg(o);case"keypress":return o.which!==32?null:(Vg=!0,$g);case"textInput":return r=o.data,r===$g&&Vg?null:r;default:return null}}function HB(r,o){if(ko)return r==="compositionend"||!zu&&Ug(r,o)?(r=Dg(),fs=ku=pn=null,ko=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Hg&&o.locale!=="ko"?null:o.data;default:return null}}var $B={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gg(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!$B[r.type]:o==="textarea"}function Kg(r,o,a,u){hg(u),o=xs(o,"onChange"),0<o.length&&(a=new Su("onChange","change",null,a,u),r.push({event:a,listeners:o}))}var Bi=null,zi=null;function VB(r){fv(r,0)}function gs(r){var o=Bo(r);if(Br(o))return r}function UB(r,o){if(r==="change")return o}var Xg=!1;if(d){var Eu;if(d){var Tu="oninput"in document;if(!Tu){var Qg=document.createElement("div");Qg.setAttribute("oninput","return;"),Tu=typeof Qg.oninput=="function"}Eu=Tu}else Eu=!1;Xg=Eu&&(!document.documentMode||9<document.documentMode)}function Yg(){Bi&&(Bi.detachEvent("onpropertychange",Jg),zi=Bi=null)}function Jg(r){if(r.propertyName==="value"&&gs(zi)){var o=[];Kg(o,zi,r,cu(r)),bg(VB,o)}}function WB(r,o,a){r==="focusin"?(Yg(),Bi=o,zi=a,Bi.attachEvent("onpropertychange",Jg)):r==="focusout"&&Yg()}function GB(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return gs(zi)}function KB(r,o){if(r==="click")return gs(o)}function XB(r,o){if(r==="input"||r==="change")return gs(o)}function QB(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var mr=typeof Object.is=="function"?Object.is:QB;function Ei(r,o){if(mr(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var a=Object.keys(r),u=Object.keys(o);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var p=a[u];if(!f.call(o,p)||!mr(r[p],o[p]))return!1}return!0}function Zg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function ev(r,o){var a=Zg(r);r=0;for(var u;a;){if(a.nodeType===3){if(u=r+a.textContent.length,r<=o&&u>=o)return{node:a,offset:o-r};r=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Zg(a)}}function tv(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?tv(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function rv(){for(var r=window,o=pr();o instanceof r.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)r=o.contentWindow;else break;o=pr(r.document)}return o}function Fu(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function YB(r){var o=rv(),a=r.focusedElem,u=r.selectionRange;if(o!==a&&a&&a.ownerDocument&&tv(a.ownerDocument.documentElement,a)){if(u!==null&&Fu(a)){if(o=u.start,r=u.end,r===void 0&&(r=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(r,a.value.length);else if(r=(o=a.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var p=a.textContent.length,v=Math.min(u.start,p);u=u.end===void 0?v:Math.min(u.end,p),!r.extend&&v>u&&(p=u,u=v,v=p),p=ev(a,v);var k=ev(a,u);p&&k&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==k.node||r.focusOffset!==k.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),r.removeAllRanges(),v>u?(r.addRange(o),r.extend(k.node,k.offset)):(o.setEnd(k.node,k.offset),r.addRange(o)))}}for(o=[],r=a;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)r=o[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var JB=d&&"documentMode"in document&&11>=document.documentMode,So=null,Pu=null,Ti=null,Ru=!1;function nv(r,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ru||So==null||So!==pr(u)||(u=So,"selectionStart"in u&&Fu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ti&&Ei(Ti,u)||(Ti=u,u=xs(Pu,"onSelect"),0<u.length&&(o=new Su("onSelect","select",null,o,a),r.push({event:o,listeners:u}),o.target=So)))}function vs(r,o){var a={};return a[r.toLowerCase()]=o.toLowerCase(),a["Webkit"+r]="webkit"+o,a["Moz"+r]="moz"+o,a}var _o={animationend:vs("Animation","AnimationEnd"),animationiteration:vs("Animation","AnimationIteration"),animationstart:vs("Animation","AnimationStart"),transitionend:vs("Transition","TransitionEnd")},ju={},ov={};d&&(ov=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function bs(r){if(ju[r])return ju[r];if(!_o[r])return r;var o=_o[r],a;for(a in o)if(o.hasOwnProperty(a)&&a in ov)return ju[r]=o[a];return r}var iv=bs("animationend"),av=bs("animationiteration"),sv=bs("animationstart"),lv=bs("transitionend"),cv=new Map,uv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function hn(r,o){cv.set(r,o),l(o,[r])}for(var Mu=0;Mu<uv.length;Mu++){var Iu=uv[Mu],ZB=Iu.toLowerCase(),e4=Iu[0].toUpperCase()+Iu.slice(1);hn(ZB,"on"+e4)}hn(iv,"onAnimationEnd"),hn(av,"onAnimationIteration"),hn(sv,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(lv,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),t4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fi));function dv(r,o,a){var u=r.type||"unknown-event";r.currentTarget=a,ZN(u,o,void 0,r),r.currentTarget=null}function fv(r,o){o=(o&4)!==0;for(var a=0;a<r.length;a++){var u=r[a],p=u.event;u=u.listeners;e:{var v=void 0;if(o)for(var k=u.length-1;0<=k;k--){var B=u[k],R=B.instance,W=B.currentTarget;if(B=B.listener,R!==v&&p.isPropagationStopped())break e;dv(p,B,W),v=R}else for(k=0;k<u.length;k++){if(B=u[k],R=B.instance,W=B.currentTarget,B=B.listener,R!==v&&p.isPropagationStopped())break e;dv(p,B,W),v=R}}}if(rs)throw r=pu,rs=!1,pu=null,r}function Le(r,o){var a=o[Vu];a===void 0&&(a=o[Vu]=new Set);var u=r+"__bubble";a.has(u)||(pv(o,r,2,!1),a.add(u))}function Du(r,o,a){var u=0;o&&(u|=4),pv(a,r,u,o)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Pi(r){if(!r[ys]){r[ys]=!0,i.forEach(function(a){a!=="selectionchange"&&(t4.has(a)||Du(a,!1,r),Du(a,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[ys]||(o[ys]=!0,Du("selectionchange",!1,o))}}function pv(r,o,a,u){switch(Ig(o)){case 1:var p=mB;break;case 4:p=gB;break;default:p=xu}a=p.bind(null,o,a,r),p=void 0,!fu||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),u?p!==void 0?r.addEventListener(o,a,{capture:!0,passive:p}):r.addEventListener(o,a,!0):p!==void 0?r.addEventListener(o,a,{passive:p}):r.addEventListener(o,a,!1)}function Au(r,o,a,u,p){var v=u;if((o&1)===0&&(o&2)===0&&u!==null)e:for(;;){if(u===null)return;var k=u.tag;if(k===3||k===4){var B=u.stateNode.containerInfo;if(B===p||B.nodeType===8&&B.parentNode===p)break;if(k===4)for(k=u.return;k!==null;){var R=k.tag;if((R===3||R===4)&&(R=k.stateNode.containerInfo,R===p||R.nodeType===8&&R.parentNode===p))return;k=k.return}for(;B!==null;){if(k=Ln(B),k===null)return;if(R=k.tag,R===5||R===6){u=v=k;continue e}B=B.parentNode}}u=u.return}bg(function(){var W=v,te=cu(a),ne=[];e:{var ee=cv.get(r);if(ee!==void 0){var le=Su,fe=r;switch(r){case"keypress":if(ps(a)===0)break e;case"keydown":case"keyup":le=FB;break;case"focusin":fe="focus",le=Nu;break;case"focusout":fe="blur",le=Nu;break;case"beforeblur":case"afterblur":le=Nu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=yB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=jB;break;case iv:case av:case sv:le=kB;break;case lv:le=IB;break;case"scroll":le=vB;break;case"wheel":le=AB;break;case"copy":case"cut":case"paste":le=_B;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Lg}var pe=(o&4)!==0,Ze=!pe&&r==="scroll",A=pe?ee!==null?ee+"Capture":null:ee;pe=[];for(var M=W,H;M!==null;){H=M;var ae=H.stateNode;if(H.tag===5&&ae!==null&&(H=ae,A!==null&&(ae=hi(M,A),ae!=null&&pe.push(Ri(M,ae,H)))),Ze)break;M=M.return}0<pe.length&&(ee=new le(ee,fe,null,a,te),ne.push({event:ee,listeners:pe}))}}if((o&7)===0){e:{if(ee=r==="mouseover"||r==="pointerover",le=r==="mouseout"||r==="pointerout",ee&&a!==lu&&(fe=a.relatedTarget||a.fromElement)&&(Ln(fe)||fe[Lr]))break e;if((le||ee)&&(ee=te.window===te?te:(ee=te.ownerDocument)?ee.defaultView||ee.parentWindow:window,le?(fe=a.relatedTarget||a.toElement,le=W,fe=fe?Ln(fe):null,fe!==null&&(Ze=qn(fe),fe!==Ze||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(le=null,fe=W),le!==fe)){if(pe=Og,ae="onMouseLeave",A="onMouseEnter",M="mouse",(r==="pointerout"||r==="pointerover")&&(pe=Lg,ae="onPointerLeave",A="onPointerEnter",M="pointer"),Ze=le==null?ee:Bo(le),H=fe==null?ee:Bo(fe),ee=new pe(ae,M+"leave",le,a,te),ee.target=Ze,ee.relatedTarget=H,ae=null,Ln(te)===W&&(pe=new pe(A,M+"enter",fe,a,te),pe.target=H,pe.relatedTarget=Ze,ae=pe),Ze=ae,le&&fe)t:{for(pe=le,A=fe,M=0,H=pe;H;H=Co(H))M++;for(H=0,ae=A;ae;ae=Co(ae))H++;for(;0<M-H;)pe=Co(pe),M--;for(;0<H-M;)A=Co(A),H--;for(;M--;){if(pe===A||A!==null&&pe===A.alternate)break t;pe=Co(pe),A=Co(A)}pe=null}else pe=null;le!==null&&hv(ne,ee,le,pe,!1),fe!==null&&Ze!==null&&hv(ne,Ze,fe,pe,!0)}}e:{if(ee=W?Bo(W):window,le=ee.nodeName&&ee.nodeName.toLowerCase(),le==="select"||le==="input"&&ee.type==="file")var ge=UB;else if(Gg(ee))if(Xg)ge=XB;else{ge=GB;var xe=WB}else(le=ee.nodeName)&&le.toLowerCase()==="input"&&(ee.type==="checkbox"||ee.type==="radio")&&(ge=KB);if(ge&&(ge=ge(r,W))){Kg(ne,ge,a,te);break e}xe&&xe(r,ee,W),r==="focusout"&&(xe=ee._wrapperState)&&xe.controlled&&ee.type==="number"&&nu(ee,"number",ee.value)}switch(xe=W?Bo(W):window,r){case"focusin":(Gg(xe)||xe.contentEditable==="true")&&(So=xe,Pu=W,Ti=null);break;case"focusout":Ti=Pu=So=null;break;case"mousedown":Ru=!0;break;case"contextmenu":case"mouseup":case"dragend":Ru=!1,nv(ne,a,te);break;case"selectionchange":if(JB)break;case"keydown":case"keyup":nv(ne,a,te)}var we;if(zu)e:{switch(r){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else ko?Ug(r,a)&&(_e="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(_e="onCompositionStart");_e&&(Hg&&a.locale!=="ko"&&(ko||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&ko&&(we=Dg()):(pn=te,ku="value"in pn?pn.value:pn.textContent,ko=!0)),xe=xs(W,_e),0<xe.length&&(_e=new qg(_e,r,null,a,te),ne.push({event:_e,listeners:xe}),we?_e.data=we:(we=Wg(a),we!==null&&(_e.data=we)))),(we=qB?LB(r,a):HB(r,a))&&(W=xs(W,"onBeforeInput"),0<W.length&&(te=new qg("onBeforeInput","beforeinput",null,a,te),ne.push({event:te,listeners:W}),te.data=we))}fv(ne,o)})}function Ri(r,o,a){return{instance:r,listener:o,currentTarget:a}}function xs(r,o){for(var a=o+"Capture",u=[];r!==null;){var p=r,v=p.stateNode;p.tag===5&&v!==null&&(p=v,v=hi(r,a),v!=null&&u.unshift(Ri(r,v,p)),v=hi(r,o),v!=null&&u.push(Ri(r,v,p))),r=r.return}return u}function Co(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function hv(r,o,a,u,p){for(var v=o._reactName,k=[];a!==null&&a!==u;){var B=a,R=B.alternate,W=B.stateNode;if(R!==null&&R===u)break;B.tag===5&&W!==null&&(B=W,p?(R=hi(a,v),R!=null&&k.unshift(Ri(a,R,B))):p||(R=hi(a,v),R!=null&&k.push(Ri(a,R,B)))),a=a.return}k.length!==0&&r.push({event:o,listeners:k})}var r4=/\r\n?/g,n4=/\u0000|\uFFFD/g;function mv(r){return(typeof r=="string"?r:""+r).replace(r4,`
7
+ `).replace(n4,"")}function ws(r,o,a){if(o=mv(o),mv(r)!==o&&a)throw Error(n(425))}function ks(){}var Ou=null,qu=null;function Lu(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Hu=typeof setTimeout=="function"?setTimeout:void 0,o4=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,i4=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(r){return gv.resolve(null).then(r).catch(a4)}:Hu;function a4(r){setTimeout(function(){throw r})}function $u(r,o){var a=o,u=0;do{var p=a.nextSibling;if(r.removeChild(a),p&&p.nodeType===8)if(a=p.data,a==="/$"){if(u===0){r.removeChild(p),Si(o);return}u--}else a!=="$"&&a!=="$?"&&a!=="$!"||u++;a=p}while(a);Si(o)}function mn(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function vv(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return r;o--}else a==="/$"&&o++}r=r.previousSibling}return null}var No=Math.random().toString(36).slice(2),Er="__reactFiber$"+No,ji="__reactProps$"+No,Lr="__reactContainer$"+No,Vu="__reactEvents$"+No,s4="__reactListeners$"+No,l4="__reactHandles$"+No;function Ln(r){var o=r[Er];if(o)return o;for(var a=r.parentNode;a;){if(o=a[Lr]||a[Er]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(r=vv(r);r!==null;){if(a=r[Er])return a;r=vv(r)}return o}r=a,a=r.parentNode}return null}function Mi(r){return r=r[Er]||r[Lr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Bo(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Ss(r){return r[ji]||null}var Uu=[],zo=-1;function gn(r){return{current:r}}function He(r){0>zo||(r.current=Uu[zo],Uu[zo]=null,zo--)}function Oe(r,o){zo++,Uu[zo]=r.current,r.current=o}var vn={},St=gn(vn),Mt=gn(!1),Hn=vn;function Eo(r,o){var a=r.type.contextTypes;if(!a)return vn;var u=r.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var p={},v;for(v in a)p[v]=o[v];return u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=p),p}function It(r){return r=r.childContextTypes,r!=null}function _s(){He(Mt),He(St)}function bv(r,o,a){if(St.current!==vn)throw Error(n(168));Oe(St,o),Oe(Mt,a)}function yv(r,o,a){var u=r.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return a;u=u.getChildContext();for(var p in u)if(!(p in o))throw Error(n(108,ve(r)||"Unknown",p));return Y({},a,u)}function Cs(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||vn,Hn=St.current,Oe(St,r),Oe(Mt,Mt.current),!0}function xv(r,o,a){var u=r.stateNode;if(!u)throw Error(n(169));a?(r=yv(r,o,Hn),u.__reactInternalMemoizedMergedChildContext=r,He(Mt),He(St),Oe(St,r)):He(Mt),Oe(Mt,a)}var Hr=null,Ns=!1,Wu=!1;function wv(r){Hr===null?Hr=[r]:Hr.push(r)}function c4(r){Ns=!0,wv(r)}function bn(){if(!Wu&&Hr!==null){Wu=!0;var r=0,o=Re;try{var a=Hr;for(Re=1;r<a.length;r++){var u=a[r];do u=u(!0);while(u!==null)}Hr=null,Ns=!1}catch(p){throw Hr!==null&&(Hr=Hr.slice(r+1)),Sg(hu,bn),p}finally{Re=o,Wu=!1}}return null}var To=[],Fo=0,Bs=null,zs=0,tr=[],rr=0,$n=null,$r=1,Vr="";function Vn(r,o){To[Fo++]=zs,To[Fo++]=Bs,Bs=r,zs=o}function kv(r,o,a){tr[rr++]=$r,tr[rr++]=Vr,tr[rr++]=$n,$n=r;var u=$r;r=Vr;var p=32-hr(u)-1;u&=~(1<<p),a+=1;var v=32-hr(o)+p;if(30<v){var k=p-p%5;v=(u&(1<<k)-1).toString(32),u>>=k,p-=k,$r=1<<32-hr(o)+p|a<<p|u,Vr=v+r}else $r=1<<v|a<<p|u,Vr=r}function Gu(r){r.return!==null&&(Vn(r,1),kv(r,1,0))}function Ku(r){for(;r===Bs;)Bs=To[--Fo],To[Fo]=null,zs=To[--Fo],To[Fo]=null;for(;r===$n;)$n=tr[--rr],tr[rr]=null,Vr=tr[--rr],tr[rr]=null,$r=tr[--rr],tr[rr]=null}var Vt=null,Ut=null,Ve=!1,gr=null;function Sv(r,o){var a=ar(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=r,o=r.deletions,o===null?(r.deletions=[a],r.flags|=16):o.push(a)}function _v(r,o){switch(r.tag){case 5:var a=r.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,Vt=r,Ut=mn(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,Vt=r,Ut=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=$n!==null?{id:$r,overflow:Vr}:null,r.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=ar(18,null,null,0),a.stateNode=o,a.return=r,r.child=a,Vt=r,Ut=null,!0):!1;default:return!1}}function Xu(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Qu(r){if(Ve){var o=Ut;if(o){var a=o;if(!_v(r,o)){if(Xu(r))throw Error(n(418));o=mn(a.nextSibling);var u=Vt;o&&_v(r,o)?Sv(u,a):(r.flags=r.flags&-4097|2,Ve=!1,Vt=r)}}else{if(Xu(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ve=!1,Vt=r}}}function Cv(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Vt=r}function Es(r){if(r!==Vt)return!1;if(!Ve)return Cv(r),Ve=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Lu(r.type,r.memoizedProps)),o&&(o=Ut)){if(Xu(r))throw Nv(),Error(n(418));for(;o;)Sv(r,o),o=mn(o.nextSibling)}if(Cv(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(o===0){Ut=mn(r.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}r=r.nextSibling}Ut=null}}else Ut=Vt?mn(r.stateNode.nextSibling):null;return!0}function Nv(){for(var r=Ut;r;)r=mn(r.nextSibling)}function Po(){Ut=Vt=null,Ve=!1}function Yu(r){gr===null?gr=[r]:gr.push(r)}var u4=P.ReactCurrentBatchConfig;function Ii(r,o,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var u=a.stateNode}if(!u)throw Error(n(147,r));var p=u,v=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===v?o.ref:(o=function(k){var B=p.refs;k===null?delete B[v]:B[v]=k},o._stringRef=v,o)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function Ts(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Bv(r){var o=r._init;return o(r._payload)}function zv(r){function o(A,M){if(r){var H=A.deletions;H===null?(A.deletions=[M],A.flags|=16):H.push(M)}}function a(A,M){if(!r)return null;for(;M!==null;)o(A,M),M=M.sibling;return null}function u(A,M){for(A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function p(A,M){return A=Nn(A,M),A.index=0,A.sibling=null,A}function v(A,M,H){return A.index=H,r?(H=A.alternate,H!==null?(H=H.index,H<M?(A.flags|=2,M):H):(A.flags|=2,M)):(A.flags|=1048576,M)}function k(A){return r&&A.alternate===null&&(A.flags|=2),A}function B(A,M,H,ae){return M===null||M.tag!==6?(M=Hd(H,A.mode,ae),M.return=A,M):(M=p(M,H),M.return=A,M)}function R(A,M,H,ae){var ge=H.type;return ge===D?te(A,M,H.props.children,ae,H.key):M!==null&&(M.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===V&&Bv(ge)===M.type)?(ae=p(M,H.props),ae.ref=Ii(A,M,H),ae.return=A,ae):(ae=el(H.type,H.key,H.props,null,A.mode,ae),ae.ref=Ii(A,M,H),ae.return=A,ae)}function W(A,M,H,ae){return M===null||M.tag!==4||M.stateNode.containerInfo!==H.containerInfo||M.stateNode.implementation!==H.implementation?(M=$d(H,A.mode,ae),M.return=A,M):(M=p(M,H.children||[]),M.return=A,M)}function te(A,M,H,ae,ge){return M===null||M.tag!==7?(M=Jn(H,A.mode,ae,ge),M.return=A,M):(M=p(M,H),M.return=A,M)}function ne(A,M,H){if(typeof M=="string"&&M!==""||typeof M=="number")return M=Hd(""+M,A.mode,H),M.return=A,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case L:return H=el(M.type,M.key,M.props,null,A.mode,H),H.ref=Ii(A,null,M),H.return=A,H;case T:return M=$d(M,A.mode,H),M.return=A,M;case V:var ae=M._init;return ne(A,ae(M._payload),H)}if(di(M)||J(M))return M=Jn(M,A.mode,H,null),M.return=A,M;Ts(A,M)}return null}function ee(A,M,H,ae){var ge=M!==null?M.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return ge!==null?null:B(A,M,""+H,ae);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case L:return H.key===ge?R(A,M,H,ae):null;case T:return H.key===ge?W(A,M,H,ae):null;case V:return ge=H._init,ee(A,M,ge(H._payload),ae)}if(di(H)||J(H))return ge!==null?null:te(A,M,H,ae,null);Ts(A,H)}return null}function le(A,M,H,ae,ge){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return A=A.get(H)||null,B(M,A,""+ae,ge);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case L:return A=A.get(ae.key===null?H:ae.key)||null,R(M,A,ae,ge);case T:return A=A.get(ae.key===null?H:ae.key)||null,W(M,A,ae,ge);case V:var xe=ae._init;return le(A,M,H,xe(ae._payload),ge)}if(di(ae)||J(ae))return A=A.get(H)||null,te(M,A,ae,ge,null);Ts(M,ae)}return null}function fe(A,M,H,ae){for(var ge=null,xe=null,we=M,_e=M=0,mt=null;we!==null&&_e<H.length;_e++){we.index>_e?(mt=we,we=null):mt=we.sibling;var Te=ee(A,we,H[_e],ae);if(Te===null){we===null&&(we=mt);break}r&&we&&Te.alternate===null&&o(A,we),M=v(Te,M,_e),xe===null?ge=Te:xe.sibling=Te,xe=Te,we=mt}if(_e===H.length)return a(A,we),Ve&&Vn(A,_e),ge;if(we===null){for(;_e<H.length;_e++)we=ne(A,H[_e],ae),we!==null&&(M=v(we,M,_e),xe===null?ge=we:xe.sibling=we,xe=we);return Ve&&Vn(A,_e),ge}for(we=u(A,we);_e<H.length;_e++)mt=le(we,A,_e,H[_e],ae),mt!==null&&(r&&mt.alternate!==null&&we.delete(mt.key===null?_e:mt.key),M=v(mt,M,_e),xe===null?ge=mt:xe.sibling=mt,xe=mt);return r&&we.forEach(function(Bn){return o(A,Bn)}),Ve&&Vn(A,_e),ge}function pe(A,M,H,ae){var ge=J(H);if(typeof ge!="function")throw Error(n(150));if(H=ge.call(H),H==null)throw Error(n(151));for(var xe=ge=null,we=M,_e=M=0,mt=null,Te=H.next();we!==null&&!Te.done;_e++,Te=H.next()){we.index>_e?(mt=we,we=null):mt=we.sibling;var Bn=ee(A,we,Te.value,ae);if(Bn===null){we===null&&(we=mt);break}r&&we&&Bn.alternate===null&&o(A,we),M=v(Bn,M,_e),xe===null?ge=Bn:xe.sibling=Bn,xe=Bn,we=mt}if(Te.done)return a(A,we),Ve&&Vn(A,_e),ge;if(we===null){for(;!Te.done;_e++,Te=H.next())Te=ne(A,Te.value,ae),Te!==null&&(M=v(Te,M,_e),xe===null?ge=Te:xe.sibling=Te,xe=Te);return Ve&&Vn(A,_e),ge}for(we=u(A,we);!Te.done;_e++,Te=H.next())Te=le(we,A,_e,Te.value,ae),Te!==null&&(r&&Te.alternate!==null&&we.delete(Te.key===null?_e:Te.key),M=v(Te,M,_e),xe===null?ge=Te:xe.sibling=Te,xe=Te);return r&&we.forEach(function($4){return o(A,$4)}),Ve&&Vn(A,_e),ge}function Ze(A,M,H,ae){if(typeof H=="object"&&H!==null&&H.type===D&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case L:e:{for(var ge=H.key,xe=M;xe!==null;){if(xe.key===ge){if(ge=H.type,ge===D){if(xe.tag===7){a(A,xe.sibling),M=p(xe,H.props.children),M.return=A,A=M;break e}}else if(xe.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===V&&Bv(ge)===xe.type){a(A,xe.sibling),M=p(xe,H.props),M.ref=Ii(A,xe,H),M.return=A,A=M;break e}a(A,xe);break}else o(A,xe);xe=xe.sibling}H.type===D?(M=Jn(H.props.children,A.mode,ae,H.key),M.return=A,A=M):(ae=el(H.type,H.key,H.props,null,A.mode,ae),ae.ref=Ii(A,M,H),ae.return=A,A=ae)}return k(A);case T:e:{for(xe=H.key;M!==null;){if(M.key===xe)if(M.tag===4&&M.stateNode.containerInfo===H.containerInfo&&M.stateNode.implementation===H.implementation){a(A,M.sibling),M=p(M,H.children||[]),M.return=A,A=M;break e}else{a(A,M);break}else o(A,M);M=M.sibling}M=$d(H,A.mode,ae),M.return=A,A=M}return k(A);case V:return xe=H._init,Ze(A,M,xe(H._payload),ae)}if(di(H))return fe(A,M,H,ae);if(J(H))return pe(A,M,H,ae);Ts(A,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,M!==null&&M.tag===6?(a(A,M.sibling),M=p(M,H),M.return=A,A=M):(a(A,M),M=Hd(H,A.mode,ae),M.return=A,A=M),k(A)):a(A,M)}return Ze}var Ro=zv(!0),Ev=zv(!1),Fs=gn(null),Ps=null,jo=null,Ju=null;function Zu(){Ju=jo=Ps=null}function ed(r){var o=Fs.current;He(Fs),r._currentValue=o}function td(r,o,a){for(;r!==null;){var u=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),r===a)break;r=r.return}}function Mo(r,o){Ps=r,Ju=jo=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Dt=!0),r.firstContext=null)}function nr(r){var o=r._currentValue;if(Ju!==r)if(r={context:r,memoizedValue:o,next:null},jo===null){if(Ps===null)throw Error(n(308));jo=r,Ps.dependencies={lanes:0,firstContext:r}}else jo=jo.next=r;return o}var Un=null;function rd(r){Un===null?Un=[r]:Un.push(r)}function Tv(r,o,a,u){var p=o.interleaved;return p===null?(a.next=a,rd(o)):(a.next=p.next,p.next=a),o.interleaved=a,Ur(r,u)}function Ur(r,o){r.lanes|=o;var a=r.alternate;for(a!==null&&(a.lanes|=o),a=r,r=r.return;r!==null;)r.childLanes|=o,a=r.alternate,a!==null&&(a.childLanes|=o),a=r,r=r.return;return a.tag===3?a.stateNode:null}var yn=!1;function nd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fv(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Wr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function xn(r,o,a){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(Be&2)!==0){var p=u.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),u.pending=o,Ur(r,a)}return p=u.interleaved,p===null?(o.next=o,rd(u)):(o.next=p.next,p.next=o),u.interleaved=o,Ur(r,a)}function Rs(r,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var u=o.lanes;u&=r.pendingLanes,a|=u,o.lanes=a,vu(r,a)}}function Pv(r,o){var a=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,v=null;if(a=a.firstBaseUpdate,a!==null){do{var k={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};v===null?p=v=k:v=v.next=k,a=a.next}while(a!==null);v===null?p=v=o:v=v.next=o}else p=v=o;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:u.shared,effects:u.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=o:r.next=o,a.lastBaseUpdate=o}function js(r,o,a,u){var p=r.updateQueue;yn=!1;var v=p.firstBaseUpdate,k=p.lastBaseUpdate,B=p.shared.pending;if(B!==null){p.shared.pending=null;var R=B,W=R.next;R.next=null,k===null?v=W:k.next=W,k=R;var te=r.alternate;te!==null&&(te=te.updateQueue,B=te.lastBaseUpdate,B!==k&&(B===null?te.firstBaseUpdate=W:B.next=W,te.lastBaseUpdate=R))}if(v!==null){var ne=p.baseState;k=0,te=W=R=null,B=v;do{var ee=B.lane,le=B.eventTime;if((u&ee)===ee){te!==null&&(te=te.next={eventTime:le,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var fe=r,pe=B;switch(ee=o,le=a,pe.tag){case 1:if(fe=pe.payload,typeof fe=="function"){ne=fe.call(le,ne,ee);break e}ne=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=pe.payload,ee=typeof fe=="function"?fe.call(le,ne,ee):fe,ee==null)break e;ne=Y({},ne,ee);break e;case 2:yn=!0}}B.callback!==null&&B.lane!==0&&(r.flags|=64,ee=p.effects,ee===null?p.effects=[B]:ee.push(B))}else le={eventTime:le,lane:ee,tag:B.tag,payload:B.payload,callback:B.callback,next:null},te===null?(W=te=le,R=ne):te=te.next=le,k|=ee;if(B=B.next,B===null){if(B=p.shared.pending,B===null)break;ee=B,B=ee.next,ee.next=null,p.lastBaseUpdate=ee,p.shared.pending=null}}while(!0);if(te===null&&(R=ne),p.baseState=R,p.firstBaseUpdate=W,p.lastBaseUpdate=te,o=p.shared.interleaved,o!==null){p=o;do k|=p.lane,p=p.next;while(p!==o)}else v===null&&(p.shared.lanes=0);Kn|=k,r.lanes=k,r.memoizedState=ne}}function Rv(r,o,a){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var u=r[o],p=u.callback;if(p!==null){if(u.callback=null,u=a,typeof p!="function")throw Error(n(191,p));p.call(u)}}}var Di={},Tr=gn(Di),Ai=gn(Di),Oi=gn(Di);function Wn(r){if(r===Di)throw Error(n(174));return r}function od(r,o){switch(Oe(Oi,o),Oe(Ai,r),Oe(Tr,Di),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:iu(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=iu(o,r)}He(Tr),Oe(Tr,o)}function Io(){He(Tr),He(Ai),He(Oi)}function jv(r){Wn(Oi.current);var o=Wn(Tr.current),a=iu(o,r.type);o!==a&&(Oe(Ai,r),Oe(Tr,a))}function id(r){Ai.current===r&&(He(Tr),He(Ai))}var We=gn(0);function Ms(r){for(var o=r;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ad=[];function sd(){for(var r=0;r<ad.length;r++)ad[r]._workInProgressVersionPrimary=null;ad.length=0}var Is=P.ReactCurrentDispatcher,ld=P.ReactCurrentBatchConfig,Gn=0,Ge=null,st=null,pt=null,Ds=!1,qi=!1,Li=0,d4=0;function _t(){throw Error(n(321))}function cd(r,o){if(o===null)return!1;for(var a=0;a<o.length&&a<r.length;a++)if(!mr(r[a],o[a]))return!1;return!0}function ud(r,o,a,u,p,v){if(Gn=v,Ge=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Is.current=r===null||r.memoizedState===null?m4:g4,r=a(u,p),qi){v=0;do{if(qi=!1,Li=0,25<=v)throw Error(n(301));v+=1,pt=st=null,o.updateQueue=null,Is.current=v4,r=a(u,p)}while(qi)}if(Is.current=qs,o=st!==null&&st.next!==null,Gn=0,pt=st=Ge=null,Ds=!1,o)throw Error(n(300));return r}function dd(){var r=Li!==0;return Li=0,r}function Fr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ge.memoizedState=pt=r:pt=pt.next=r,pt}function or(){if(st===null){var r=Ge.alternate;r=r!==null?r.memoizedState:null}else r=st.next;var o=pt===null?Ge.memoizedState:pt.next;if(o!==null)pt=o,st=r;else{if(r===null)throw Error(n(310));st=r,r={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},pt===null?Ge.memoizedState=pt=r:pt=pt.next=r}return pt}function Hi(r,o){return typeof o=="function"?o(r):o}function fd(r){var o=or(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var u=st,p=u.baseQueue,v=a.pending;if(v!==null){if(p!==null){var k=p.next;p.next=v.next,v.next=k}u.baseQueue=p=v,a.pending=null}if(p!==null){v=p.next,u=u.baseState;var B=k=null,R=null,W=v;do{var te=W.lane;if((Gn&te)===te)R!==null&&(R=R.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),u=W.hasEagerState?W.eagerState:r(u,W.action);else{var ne={lane:te,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};R===null?(B=R=ne,k=u):R=R.next=ne,Ge.lanes|=te,Kn|=te}W=W.next}while(W!==null&&W!==v);R===null?k=u:R.next=B,mr(u,o.memoizedState)||(Dt=!0),o.memoizedState=u,o.baseState=k,o.baseQueue=R,a.lastRenderedState=u}if(r=a.interleaved,r!==null){p=r;do v=p.lane,Ge.lanes|=v,Kn|=v,p=p.next;while(p!==r)}else p===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function pd(r){var o=or(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var u=a.dispatch,p=a.pending,v=o.memoizedState;if(p!==null){a.pending=null;var k=p=p.next;do v=r(v,k.action),k=k.next;while(k!==p);mr(v,o.memoizedState)||(Dt=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),a.lastRenderedState=v}return[v,u]}function Mv(){}function Iv(r,o){var a=Ge,u=or(),p=o(),v=!mr(u.memoizedState,p);if(v&&(u.memoizedState=p,Dt=!0),u=u.queue,hd(Ov.bind(null,a,u,r),[r]),u.getSnapshot!==o||v||pt!==null&&pt.memoizedState.tag&1){if(a.flags|=2048,$i(9,Av.bind(null,a,u,p,o),void 0,null),ht===null)throw Error(n(349));(Gn&30)!==0||Dv(a,o,p)}return p}function Dv(r,o,a){r.flags|=16384,r={getSnapshot:o,value:a},o=Ge.updateQueue,o===null?(o={lastEffect:null,stores:null},Ge.updateQueue=o,o.stores=[r]):(a=o.stores,a===null?o.stores=[r]:a.push(r))}function Av(r,o,a,u){o.value=a,o.getSnapshot=u,qv(o)&&Lv(r)}function Ov(r,o,a){return a(function(){qv(o)&&Lv(r)})}function qv(r){var o=r.getSnapshot;r=r.value;try{var a=o();return!mr(r,a)}catch{return!0}}function Lv(r){var o=Ur(r,1);o!==null&&xr(o,r,1,-1)}function Hv(r){var o=Fr();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:r},o.queue=r,r=r.dispatch=h4.bind(null,Ge,r),[o.memoizedState,r]}function $i(r,o,a,u){return r={tag:r,create:o,destroy:a,deps:u,next:null},o=Ge.updateQueue,o===null?(o={lastEffect:null,stores:null},Ge.updateQueue=o,o.lastEffect=r.next=r):(a=o.lastEffect,a===null?o.lastEffect=r.next=r:(u=a.next,a.next=r,r.next=u,o.lastEffect=r)),r}function $v(){return or().memoizedState}function As(r,o,a,u){var p=Fr();Ge.flags|=r,p.memoizedState=$i(1|o,a,void 0,u===void 0?null:u)}function Os(r,o,a,u){var p=or();u=u===void 0?null:u;var v=void 0;if(st!==null){var k=st.memoizedState;if(v=k.destroy,u!==null&&cd(u,k.deps)){p.memoizedState=$i(o,a,v,u);return}}Ge.flags|=r,p.memoizedState=$i(1|o,a,v,u)}function Vv(r,o){return As(8390656,8,r,o)}function hd(r,o){return Os(2048,8,r,o)}function Uv(r,o){return Os(4,2,r,o)}function Wv(r,o){return Os(4,4,r,o)}function Gv(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Kv(r,o,a){return a=a!=null?a.concat([r]):null,Os(4,4,Gv.bind(null,o,r),a)}function md(){}function Xv(r,o){var a=or();o=o===void 0?null:o;var u=a.memoizedState;return u!==null&&o!==null&&cd(o,u[1])?u[0]:(a.memoizedState=[r,o],r)}function Qv(r,o){var a=or();o=o===void 0?null:o;var u=a.memoizedState;return u!==null&&o!==null&&cd(o,u[1])?u[0]:(r=r(),a.memoizedState=[r,o],r)}function Yv(r,o,a){return(Gn&21)===0?(r.baseState&&(r.baseState=!1,Dt=!0),r.memoizedState=a):(mr(a,o)||(a=Bg(),Ge.lanes|=a,Kn|=a,r.baseState=!0),o)}function f4(r,o){var a=Re;Re=a!==0&&4>a?a:4,r(!0);var u=ld.transition;ld.transition={};try{r(!1),o()}finally{Re=a,ld.transition=u}}function Jv(){return or().memoizedState}function p4(r,o,a){var u=_n(r);if(a={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null},Zv(r))e0(o,a);else if(a=Tv(r,o,a,u),a!==null){var p=Pt();xr(a,r,u,p),t0(a,o,u)}}function h4(r,o,a){var u=_n(r),p={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null};if(Zv(r))e0(o,p);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var k=o.lastRenderedState,B=v(k,a);if(p.hasEagerState=!0,p.eagerState=B,mr(B,k)){var R=o.interleaved;R===null?(p.next=p,rd(o)):(p.next=R.next,R.next=p),o.interleaved=p;return}}catch{}a=Tv(r,o,p,u),a!==null&&(p=Pt(),xr(a,r,u,p),t0(a,o,u))}}function Zv(r){var o=r.alternate;return r===Ge||o!==null&&o===Ge}function e0(r,o){qi=Ds=!0;var a=r.pending;a===null?o.next=o:(o.next=a.next,a.next=o),r.pending=o}function t0(r,o,a){if((a&4194240)!==0){var u=o.lanes;u&=r.pendingLanes,a|=u,o.lanes=a,vu(r,a)}}var qs={readContext:nr,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useInsertionEffect:_t,useLayoutEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useMutableSource:_t,useSyncExternalStore:_t,useId:_t,unstable_isNewReconciler:!1},m4={readContext:nr,useCallback:function(r,o){return Fr().memoizedState=[r,o===void 0?null:o],r},useContext:nr,useEffect:Vv,useImperativeHandle:function(r,o,a){return a=a!=null?a.concat([r]):null,As(4194308,4,Gv.bind(null,o,r),a)},useLayoutEffect:function(r,o){return As(4194308,4,r,o)},useInsertionEffect:function(r,o){return As(4,2,r,o)},useMemo:function(r,o){var a=Fr();return o=o===void 0?null:o,r=r(),a.memoizedState=[r,o],r},useReducer:function(r,o,a){var u=Fr();return o=a!==void 0?a(o):o,u.memoizedState=u.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},u.queue=r,r=r.dispatch=p4.bind(null,Ge,r),[u.memoizedState,r]},useRef:function(r){var o=Fr();return r={current:r},o.memoizedState=r},useState:Hv,useDebugValue:md,useDeferredValue:function(r){return Fr().memoizedState=r},useTransition:function(){var r=Hv(!1),o=r[0];return r=f4.bind(null,r[1]),Fr().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,a){var u=Ge,p=Fr();if(Ve){if(a===void 0)throw Error(n(407));a=a()}else{if(a=o(),ht===null)throw Error(n(349));(Gn&30)!==0||Dv(u,o,a)}p.memoizedState=a;var v={value:a,getSnapshot:o};return p.queue=v,Vv(Ov.bind(null,u,v,r),[r]),u.flags|=2048,$i(9,Av.bind(null,u,v,a,o),void 0,null),a},useId:function(){var r=Fr(),o=ht.identifierPrefix;if(Ve){var a=Vr,u=$r;a=(u&~(1<<32-hr(u)-1)).toString(32)+a,o=":"+o+"R"+a,a=Li++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=d4++,o=":"+o+"r"+a.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},g4={readContext:nr,useCallback:Xv,useContext:nr,useEffect:hd,useImperativeHandle:Kv,useInsertionEffect:Uv,useLayoutEffect:Wv,useMemo:Qv,useReducer:fd,useRef:$v,useState:function(){return fd(Hi)},useDebugValue:md,useDeferredValue:function(r){var o=or();return Yv(o,st.memoizedState,r)},useTransition:function(){var r=fd(Hi)[0],o=or().memoizedState;return[r,o]},useMutableSource:Mv,useSyncExternalStore:Iv,useId:Jv,unstable_isNewReconciler:!1},v4={readContext:nr,useCallback:Xv,useContext:nr,useEffect:hd,useImperativeHandle:Kv,useInsertionEffect:Uv,useLayoutEffect:Wv,useMemo:Qv,useReducer:pd,useRef:$v,useState:function(){return pd(Hi)},useDebugValue:md,useDeferredValue:function(r){var o=or();return st===null?o.memoizedState=r:Yv(o,st.memoizedState,r)},useTransition:function(){var r=pd(Hi)[0],o=or().memoizedState;return[r,o]},useMutableSource:Mv,useSyncExternalStore:Iv,useId:Jv,unstable_isNewReconciler:!1};function vr(r,o){if(r&&r.defaultProps){o=Y({},o),r=r.defaultProps;for(var a in r)o[a]===void 0&&(o[a]=r[a]);return o}return o}function gd(r,o,a,u){o=r.memoizedState,a=a(u,o),a=a==null?o:Y({},o,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var Ls={isMounted:function(r){return(r=r._reactInternals)?qn(r)===r:!1},enqueueSetState:function(r,o,a){r=r._reactInternals;var u=Pt(),p=_n(r),v=Wr(u,p);v.payload=o,a!=null&&(v.callback=a),o=xn(r,v,p),o!==null&&(xr(o,r,p,u),Rs(o,r,p))},enqueueReplaceState:function(r,o,a){r=r._reactInternals;var u=Pt(),p=_n(r),v=Wr(u,p);v.tag=1,v.payload=o,a!=null&&(v.callback=a),o=xn(r,v,p),o!==null&&(xr(o,r,p,u),Rs(o,r,p))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var a=Pt(),u=_n(r),p=Wr(a,u);p.tag=2,o!=null&&(p.callback=o),o=xn(r,p,u),o!==null&&(xr(o,r,u,a),Rs(o,r,u))}};function r0(r,o,a,u,p,v,k){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,v,k):o.prototype&&o.prototype.isPureReactComponent?!Ei(a,u)||!Ei(p,v):!0}function n0(r,o,a){var u=!1,p=vn,v=o.contextType;return typeof v=="object"&&v!==null?v=nr(v):(p=It(o)?Hn:St.current,u=o.contextTypes,v=(u=u!=null)?Eo(r,p):vn),o=new o(a,v),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ls,r.stateNode=o,o._reactInternals=r,u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=v),o}function o0(r,o,a,u){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,u),o.state!==r&&Ls.enqueueReplaceState(o,o.state,null)}function vd(r,o,a,u){var p=r.stateNode;p.props=a,p.state=r.memoizedState,p.refs={},nd(r);var v=o.contextType;typeof v=="object"&&v!==null?p.context=nr(v):(v=It(o)?Hn:St.current,p.context=Eo(r,v)),p.state=r.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(gd(r,o,v,a),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&Ls.enqueueReplaceState(p,p.state,null),js(r,a,p,u),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function Do(r,o){try{var a="",u=o;do a+=ce(u),u=u.return;while(u);var p=a}catch(v){p=`
8
+ Error generating stack: `+v.message+`
9
+ `+v.stack}return{value:r,source:o,stack:p,digest:null}}function bd(r,o,a){return{value:r,source:null,stack:a??null,digest:o??null}}function yd(r,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var b4=typeof WeakMap=="function"?WeakMap:Map;function i0(r,o,a){a=Wr(-1,a),a.tag=3,a.payload={element:null};var u=o.value;return a.callback=function(){Ks||(Ks=!0,jd=u),yd(r,o)},a}function a0(r,o,a){a=Wr(-1,a),a.tag=3;var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var p=o.value;a.payload=function(){return u(p)},a.callback=function(){yd(r,o)}}var v=r.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(a.callback=function(){yd(r,o),typeof u!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})}),a}function s0(r,o,a){var u=r.pingCache;if(u===null){u=r.pingCache=new b4;var p=new Set;u.set(o,p)}else p=u.get(o),p===void 0&&(p=new Set,u.set(o,p));p.has(a)||(p.add(a),r=P4.bind(null,r,o,a),o.then(r,r))}function l0(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function c0(r,o,a,u,p){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=Wr(-1,1),o.tag=2,xn(a,o,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var y4=P.ReactCurrentOwner,Dt=!1;function Ft(r,o,a,u){o.child=r===null?Ev(o,null,a,u):Ro(o,r.child,a,u)}function u0(r,o,a,u,p){a=a.render;var v=o.ref;return Mo(o,p),u=ud(r,o,a,u,v,p),a=dd(),r!==null&&!Dt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,Gr(r,o,p)):(Ve&&a&&Gu(o),o.flags|=1,Ft(r,o,u,p),o.child)}function d0(r,o,a,u,p){if(r===null){var v=a.type;return typeof v=="function"&&!Ld(v)&&v.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=v,f0(r,o,v,u,p)):(r=el(a.type,null,u,o,o.mode,p),r.ref=o.ref,r.return=o,o.child=r)}if(v=r.child,(r.lanes&p)===0){var k=v.memoizedProps;if(a=a.compare,a=a!==null?a:Ei,a(k,u)&&r.ref===o.ref)return Gr(r,o,p)}return o.flags|=1,r=Nn(v,u),r.ref=o.ref,r.return=o,o.child=r}function f0(r,o,a,u,p){if(r!==null){var v=r.memoizedProps;if(Ei(v,u)&&r.ref===o.ref)if(Dt=!1,o.pendingProps=u=v,(r.lanes&p)!==0)(r.flags&131072)!==0&&(Dt=!0);else return o.lanes=r.lanes,Gr(r,o,p)}return xd(r,o,a,u,p)}function p0(r,o,a){var u=o.pendingProps,p=u.children,v=r!==null?r.memoizedState:null;if(u.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Oo,Wt),Wt|=a;else{if((a&1073741824)===0)return r=v!==null?v.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Oe(Oo,Wt),Wt|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=v!==null?v.baseLanes:a,Oe(Oo,Wt),Wt|=u}else v!==null?(u=v.baseLanes|a,o.memoizedState=null):u=a,Oe(Oo,Wt),Wt|=u;return Ft(r,o,p,a),o.child}function h0(r,o){var a=o.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function xd(r,o,a,u,p){var v=It(a)?Hn:St.current;return v=Eo(o,v),Mo(o,p),a=ud(r,o,a,u,v,p),u=dd(),r!==null&&!Dt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,Gr(r,o,p)):(Ve&&u&&Gu(o),o.flags|=1,Ft(r,o,a,p),o.child)}function m0(r,o,a,u,p){if(It(a)){var v=!0;Cs(o)}else v=!1;if(Mo(o,p),o.stateNode===null)$s(r,o),n0(o,a,u),vd(o,a,u,p),u=!0;else if(r===null){var k=o.stateNode,B=o.memoizedProps;k.props=B;var R=k.context,W=a.contextType;typeof W=="object"&&W!==null?W=nr(W):(W=It(a)?Hn:St.current,W=Eo(o,W));var te=a.getDerivedStateFromProps,ne=typeof te=="function"||typeof k.getSnapshotBeforeUpdate=="function";ne||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(B!==u||R!==W)&&o0(o,k,u,W),yn=!1;var ee=o.memoizedState;k.state=ee,js(o,u,k,p),R=o.memoizedState,B!==u||ee!==R||Mt.current||yn?(typeof te=="function"&&(gd(o,a,te,u),R=o.memoizedState),(B=yn||r0(o,a,B,u,ee,R,W))?(ne||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(o.flags|=4194308)):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=R),k.props=u,k.state=R,k.context=W,u=B):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{k=o.stateNode,Fv(r,o),B=o.memoizedProps,W=o.type===o.elementType?B:vr(o.type,B),k.props=W,ne=o.pendingProps,ee=k.context,R=a.contextType,typeof R=="object"&&R!==null?R=nr(R):(R=It(a)?Hn:St.current,R=Eo(o,R));var le=a.getDerivedStateFromProps;(te=typeof le=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(B!==ne||ee!==R)&&o0(o,k,u,R),yn=!1,ee=o.memoizedState,k.state=ee,js(o,u,k,p);var fe=o.memoizedState;B!==ne||ee!==fe||Mt.current||yn?(typeof le=="function"&&(gd(o,a,le,u),fe=o.memoizedState),(W=yn||r0(o,a,W,u,ee,fe,R)||!1)?(te||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(u,fe,R),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(u,fe,R)),typeof k.componentDidUpdate=="function"&&(o.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof k.componentDidUpdate!="function"||B===r.memoizedProps&&ee===r.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||B===r.memoizedProps&&ee===r.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=fe),k.props=u,k.state=fe,k.context=R,u=W):(typeof k.componentDidUpdate!="function"||B===r.memoizedProps&&ee===r.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||B===r.memoizedProps&&ee===r.memoizedState||(o.flags|=1024),u=!1)}return wd(r,o,a,u,v,p)}function wd(r,o,a,u,p,v){h0(r,o);var k=(o.flags&128)!==0;if(!u&&!k)return p&&xv(o,a,!1),Gr(r,o,v);u=o.stateNode,y4.current=o;var B=k&&typeof a.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,r!==null&&k?(o.child=Ro(o,r.child,null,v),o.child=Ro(o,null,B,v)):Ft(r,o,B,v),o.memoizedState=u.state,p&&xv(o,a,!0),o.child}function g0(r){var o=r.stateNode;o.pendingContext?bv(r,o.pendingContext,o.pendingContext!==o.context):o.context&&bv(r,o.context,!1),od(r,o.containerInfo)}function v0(r,o,a,u,p){return Po(),Yu(p),o.flags|=256,Ft(r,o,a,u),o.child}var kd={dehydrated:null,treeContext:null,retryLane:0};function Sd(r){return{baseLanes:r,cachePool:null,transitions:null}}function b0(r,o,a){var u=o.pendingProps,p=We.current,v=!1,k=(o.flags&128)!==0,B;if((B=k)||(B=r!==null&&r.memoizedState===null?!1:(p&2)!==0),B?(v=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),Oe(We,p&1),r===null)return Qu(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(k=u.children,r=u.fallback,v?(u=o.mode,v=o.child,k={mode:"hidden",children:k},(u&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=k):v=tl(k,u,0,null),r=Jn(r,u,a,null),v.return=o,r.return=o,v.sibling=r,o.child=v,o.child.memoizedState=Sd(a),o.memoizedState=kd,r):_d(o,k));if(p=r.memoizedState,p!==null&&(B=p.dehydrated,B!==null))return x4(r,o,k,u,B,p,a);if(v){v=u.fallback,k=o.mode,p=r.child,B=p.sibling;var R={mode:"hidden",children:u.children};return(k&1)===0&&o.child!==p?(u=o.child,u.childLanes=0,u.pendingProps=R,o.deletions=null):(u=Nn(p,R),u.subtreeFlags=p.subtreeFlags&14680064),B!==null?v=Nn(B,v):(v=Jn(v,k,a,null),v.flags|=2),v.return=o,u.return=o,u.sibling=v,o.child=u,u=v,v=o.child,k=r.child.memoizedState,k=k===null?Sd(a):{baseLanes:k.baseLanes|a,cachePool:null,transitions:k.transitions},v.memoizedState=k,v.childLanes=r.childLanes&~a,o.memoizedState=kd,u}return v=r.child,r=v.sibling,u=Nn(v,{mode:"visible",children:u.children}),(o.mode&1)===0&&(u.lanes=a),u.return=o,u.sibling=null,r!==null&&(a=o.deletions,a===null?(o.deletions=[r],o.flags|=16):a.push(r)),o.child=u,o.memoizedState=null,u}function _d(r,o){return o=tl({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Hs(r,o,a,u){return u!==null&&Yu(u),Ro(o,r.child,null,a),r=_d(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function x4(r,o,a,u,p,v,k){if(a)return o.flags&256?(o.flags&=-257,u=bd(Error(n(422))),Hs(r,o,k,u)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(v=u.fallback,p=o.mode,u=tl({mode:"visible",children:u.children},p,0,null),v=Jn(v,p,k,null),v.flags|=2,u.return=o,v.return=o,u.sibling=v,o.child=u,(o.mode&1)!==0&&Ro(o,r.child,null,k),o.child.memoizedState=Sd(k),o.memoizedState=kd,v);if((o.mode&1)===0)return Hs(r,o,k,null);if(p.data==="$!"){if(u=p.nextSibling&&p.nextSibling.dataset,u)var B=u.dgst;return u=B,v=Error(n(419)),u=bd(v,u,void 0),Hs(r,o,k,u)}if(B=(k&r.childLanes)!==0,Dt||B){if(u=ht,u!==null){switch(k&-k){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(u.suspendedLanes|k))!==0?0:p,p!==0&&p!==v.retryLane&&(v.retryLane=p,Ur(r,p),xr(u,r,p,-1))}return qd(),u=bd(Error(n(421))),Hs(r,o,k,u)}return p.data==="$?"?(o.flags|=128,o.child=r.child,o=R4.bind(null,r),p._reactRetry=o,null):(r=v.treeContext,Ut=mn(p.nextSibling),Vt=o,Ve=!0,gr=null,r!==null&&(tr[rr++]=$r,tr[rr++]=Vr,tr[rr++]=$n,$r=r.id,Vr=r.overflow,$n=o),o=_d(o,u.children),o.flags|=4096,o)}function y0(r,o,a){r.lanes|=o;var u=r.alternate;u!==null&&(u.lanes|=o),td(r.return,o,a)}function Cd(r,o,a,u,p){var v=r.memoizedState;v===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:p}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=a,v.tailMode=p)}function x0(r,o,a){var u=o.pendingProps,p=u.revealOrder,v=u.tail;if(Ft(r,o,u.children,a),u=We.current,(u&2)!==0)u=u&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&y0(r,a,o);else if(r.tag===19)y0(r,a,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}if(Oe(We,u),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(a=o.child,p=null;a!==null;)r=a.alternate,r!==null&&Ms(r)===null&&(p=a),a=a.sibling;a=p,a===null?(p=o.child,o.child=null):(p=a.sibling,a.sibling=null),Cd(o,!1,p,a,v);break;case"backwards":for(a=null,p=o.child,o.child=null;p!==null;){if(r=p.alternate,r!==null&&Ms(r)===null){o.child=p;break}r=p.sibling,p.sibling=a,a=p,p=r}Cd(o,!0,a,null,v);break;case"together":Cd(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function $s(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function Gr(r,o,a){if(r!==null&&(o.dependencies=r.dependencies),Kn|=o.lanes,(a&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,a=Nn(r,r.pendingProps),o.child=a,a.return=o;r.sibling!==null;)r=r.sibling,a=a.sibling=Nn(r,r.pendingProps),a.return=o;a.sibling=null}return o.child}function w4(r,o,a){switch(o.tag){case 3:g0(o),Po();break;case 5:jv(o);break;case 1:It(o.type)&&Cs(o);break;case 4:od(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,p=o.memoizedProps.value;Oe(Fs,u._currentValue),u._currentValue=p;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(Oe(We,We.current&1),o.flags|=128,null):(a&o.child.childLanes)!==0?b0(r,o,a):(Oe(We,We.current&1),r=Gr(r,o,a),r!==null?r.sibling:null);Oe(We,We.current&1);break;case 19:if(u=(a&o.childLanes)!==0,(r.flags&128)!==0){if(u)return x0(r,o,a);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Oe(We,We.current),u)break;return null;case 22:case 23:return o.lanes=0,p0(r,o,a)}return Gr(r,o,a)}var w0,Nd,k0,S0;w0=function(r,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Nd=function(){},k0=function(r,o,a,u){var p=r.memoizedProps;if(p!==u){r=o.stateNode,Wn(Tr.current);var v=null;switch(a){case"input":p=On(r,p),u=On(r,u),v=[];break;case"select":p=Y({},p,{value:void 0}),u=Y({},u,{value:void 0}),v=[];break;case"textarea":p=ou(r,p),u=ou(r,u),v=[];break;default:typeof p.onClick!="function"&&typeof u.onClick=="function"&&(r.onclick=ks)}au(a,u);var k;a=null;for(W in p)if(!u.hasOwnProperty(W)&&p.hasOwnProperty(W)&&p[W]!=null)if(W==="style"){var B=p[W];for(k in B)B.hasOwnProperty(k)&&(a||(a={}),a[k]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(s.hasOwnProperty(W)?v||(v=[]):(v=v||[]).push(W,null));for(W in u){var R=u[W];if(B=p?.[W],u.hasOwnProperty(W)&&R!==B&&(R!=null||B!=null))if(W==="style")if(B){for(k in B)!B.hasOwnProperty(k)||R&&R.hasOwnProperty(k)||(a||(a={}),a[k]="");for(k in R)R.hasOwnProperty(k)&&B[k]!==R[k]&&(a||(a={}),a[k]=R[k])}else a||(v||(v=[]),v.push(W,a)),a=R;else W==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,B=B?B.__html:void 0,R!=null&&B!==R&&(v=v||[]).push(W,R)):W==="children"?typeof R!="string"&&typeof R!="number"||(v=v||[]).push(W,""+R):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(s.hasOwnProperty(W)?(R!=null&&W==="onScroll"&&Le("scroll",r),v||B===R||(v=[])):(v=v||[]).push(W,R))}a&&(v=v||[]).push("style",a);var W=v;(o.updateQueue=W)&&(o.flags|=4)}},S0=function(r,o,a,u){a!==u&&(o.flags|=4)};function Vi(r,o){if(!Ve)switch(r.tailMode){case"hidden":o=r.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function Ct(r){var o=r.alternate!==null&&r.alternate.child===r.child,a=0,u=0;if(o)for(var p=r.child;p!==null;)a|=p.lanes|p.childLanes,u|=p.subtreeFlags&14680064,u|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)a|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=u,r.childLanes=a,o}function k4(r,o,a){var u=o.pendingProps;switch(Ku(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(o),null;case 1:return It(o.type)&&_s(),Ct(o),null;case 3:return u=o.stateNode,Io(),He(Mt),He(St),sd(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(Es(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,gr!==null&&(Dd(gr),gr=null))),Nd(r,o),Ct(o),null;case 5:id(o);var p=Wn(Oi.current);if(a=o.type,r!==null&&o.stateNode!=null)k0(r,o,a,u,p),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(n(166));return Ct(o),null}if(r=Wn(Tr.current),Es(o)){u=o.stateNode,a=o.type;var v=o.memoizedProps;switch(u[Er]=o,u[ji]=v,r=(o.mode&1)!==0,a){case"dialog":Le("cancel",u),Le("close",u);break;case"iframe":case"object":case"embed":Le("load",u);break;case"video":case"audio":for(p=0;p<Fi.length;p++)Le(Fi[p],u);break;case"source":Le("error",u);break;case"img":case"image":case"link":Le("error",u),Le("load",u);break;case"details":Le("toggle",u);break;case"input":ng(u,v),Le("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!v.multiple},Le("invalid",u);break;case"textarea":ag(u,v),Le("invalid",u)}au(a,v),p=null;for(var k in v)if(v.hasOwnProperty(k)){var B=v[k];k==="children"?typeof B=="string"?u.textContent!==B&&(v.suppressHydrationWarning!==!0&&ws(u.textContent,B,r),p=["children",B]):typeof B=="number"&&u.textContent!==""+B&&(v.suppressHydrationWarning!==!0&&ws(u.textContent,B,r),p=["children",""+B]):s.hasOwnProperty(k)&&B!=null&&k==="onScroll"&&Le("scroll",u)}switch(a){case"input":ft(u),ig(u,v,!0);break;case"textarea":ft(u),lg(u);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(u.onclick=ks)}u=p,o.updateQueue=u,u!==null&&(o.flags|=4)}else{k=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=cg(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=k.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof u.is=="string"?r=k.createElement(a,{is:u.is}):(r=k.createElement(a),a==="select"&&(k=r,u.multiple?k.multiple=!0:u.size&&(k.size=u.size))):r=k.createElementNS(r,a),r[Er]=o,r[ji]=u,w0(r,o,!1,!1),o.stateNode=r;e:{switch(k=su(a,u),a){case"dialog":Le("cancel",r),Le("close",r),p=u;break;case"iframe":case"object":case"embed":Le("load",r),p=u;break;case"video":case"audio":for(p=0;p<Fi.length;p++)Le(Fi[p],r);p=u;break;case"source":Le("error",r),p=u;break;case"img":case"image":case"link":Le("error",r),Le("load",r),p=u;break;case"details":Le("toggle",r),p=u;break;case"input":ng(r,u),p=On(r,u),Le("invalid",r);break;case"option":p=u;break;case"select":r._wrapperState={wasMultiple:!!u.multiple},p=Y({},u,{value:void 0}),Le("invalid",r);break;case"textarea":ag(r,u),p=ou(r,u),Le("invalid",r);break;default:p=u}au(a,p),B=p;for(v in B)if(B.hasOwnProperty(v)){var R=B[v];v==="style"?fg(r,R):v==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&ug(r,R)):v==="children"?typeof R=="string"?(a!=="textarea"||R!=="")&&fi(r,R):typeof R=="number"&&fi(r,""+R):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(s.hasOwnProperty(v)?R!=null&&v==="onScroll"&&Le("scroll",r):R!=null&&z(r,v,R,k))}switch(a){case"input":ft(r),ig(r,u,!1);break;case"textarea":ft(r),lg(r);break;case"option":u.value!=null&&r.setAttribute("value",""+me(u.value));break;case"select":r.multiple=!!u.multiple,v=u.value,v!=null?vo(r,!!u.multiple,v,!1):u.defaultValue!=null&&vo(r,!!u.multiple,u.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=ks)}switch(a){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Ct(o),null;case 6:if(r&&o.stateNode!=null)S0(r,o,r.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(n(166));if(a=Wn(Oi.current),Wn(Tr.current),Es(o)){if(u=o.stateNode,a=o.memoizedProps,u[Er]=o,(v=u.nodeValue!==a)&&(r=Vt,r!==null))switch(r.tag){case 3:ws(u.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&ws(u.nodeValue,a,(r.mode&1)!==0)}v&&(o.flags|=4)}else u=(a.nodeType===9?a:a.ownerDocument).createTextNode(u),u[Er]=o,o.stateNode=u}return Ct(o),null;case 13:if(He(We),u=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ve&&Ut!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Nv(),Po(),o.flags|=98560,v=!1;else if(v=Es(o),u!==null&&u.dehydrated!==null){if(r===null){if(!v)throw Error(n(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(317));v[Er]=o}else Po(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ct(o),v=!1}else gr!==null&&(Dd(gr),gr=null),v=!0;if(!v)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(u=u!==null,u!==(r!==null&&r.memoizedState!==null)&&u&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(We.current&1)!==0?lt===0&&(lt=3):qd())),o.updateQueue!==null&&(o.flags|=4),Ct(o),null);case 4:return Io(),Nd(r,o),r===null&&Pi(o.stateNode.containerInfo),Ct(o),null;case 10:return ed(o.type._context),Ct(o),null;case 17:return It(o.type)&&_s(),Ct(o),null;case 19:if(He(We),v=o.memoizedState,v===null)return Ct(o),null;if(u=(o.flags&128)!==0,k=v.rendering,k===null)if(u)Vi(v,!1);else{if(lt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(k=Ms(r),k!==null){for(o.flags|=128,Vi(v,!1),u=k.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=a,a=o.child;a!==null;)v=a,r=u,v.flags&=14680066,k=v.alternate,k===null?(v.childLanes=0,v.lanes=r,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=k.childLanes,v.lanes=k.lanes,v.child=k.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=k.memoizedProps,v.memoizedState=k.memoizedState,v.updateQueue=k.updateQueue,v.type=k.type,r=k.dependencies,v.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Oe(We,We.current&1|2),o.child}r=r.sibling}v.tail!==null&&Je()>qo&&(o.flags|=128,u=!0,Vi(v,!1),o.lanes=4194304)}else{if(!u)if(r=Ms(k),r!==null){if(o.flags|=128,u=!0,a=r.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),Vi(v,!0),v.tail===null&&v.tailMode==="hidden"&&!k.alternate&&!Ve)return Ct(o),null}else 2*Je()-v.renderingStartTime>qo&&a!==1073741824&&(o.flags|=128,u=!0,Vi(v,!1),o.lanes=4194304);v.isBackwards?(k.sibling=o.child,o.child=k):(a=v.last,a!==null?a.sibling=k:o.child=k,v.last=k)}return v.tail!==null?(o=v.tail,v.rendering=o,v.tail=o.sibling,v.renderingStartTime=Je(),o.sibling=null,a=We.current,Oe(We,u?a&1|2:a&1),o):(Ct(o),null);case 22:case 23:return Od(),u=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==u&&(o.flags|=8192),u&&(o.mode&1)!==0?(Wt&1073741824)!==0&&(Ct(o),o.subtreeFlags&6&&(o.flags|=8192)):Ct(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function S4(r,o){switch(Ku(o),o.tag){case 1:return It(o.type)&&_s(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Io(),He(Mt),He(St),sd(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return id(o),null;case 13:if(He(We),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Po()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return He(We),null;case 4:return Io(),null;case 10:return ed(o.type._context),null;case 22:case 23:return Od(),null;case 24:return null;default:return null}}var Vs=!1,Nt=!1,_4=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Ao(r,o){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(u){Xe(r,o,u)}else a.current=null}function Bd(r,o,a){try{a()}catch(u){Xe(r,o,u)}}var _0=!1;function C4(r,o){if(Ou=us,r=rv(),Fu(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var p=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{a.nodeType,v.nodeType}catch{a=null;break e}var k=0,B=-1,R=-1,W=0,te=0,ne=r,ee=null;t:for(;;){for(var le;ne!==a||p!==0&&ne.nodeType!==3||(B=k+p),ne!==v||u!==0&&ne.nodeType!==3||(R=k+u),ne.nodeType===3&&(k+=ne.nodeValue.length),(le=ne.firstChild)!==null;)ee=ne,ne=le;for(;;){if(ne===r)break t;if(ee===a&&++W===p&&(B=k),ee===v&&++te===u&&(R=k),(le=ne.nextSibling)!==null)break;ne=ee,ee=ne.parentNode}ne=le}a=B===-1||R===-1?null:{start:B,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(qu={focusedElem:r,selectionRange:a},us=!1,ue=o;ue!==null;)if(o=ue,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ue=r;else for(;ue!==null;){o=ue;try{var fe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var pe=fe.memoizedProps,Ze=fe.memoizedState,A=o.stateNode,M=A.getSnapshotBeforeUpdate(o.elementType===o.type?pe:vr(o.type,pe),Ze);A.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var H=o.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ae){Xe(o,o.return,ae)}if(r=o.sibling,r!==null){r.return=o.return,ue=r;break}ue=o.return}return fe=_0,_0=!1,fe}function Ui(r,o,a){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var p=u=u.next;do{if((p.tag&r)===r){var v=p.destroy;p.destroy=void 0,v!==void 0&&Bd(o,a,v)}p=p.next}while(p!==u)}}function Us(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&r)===r){var u=a.create;a.destroy=u()}a=a.next}while(a!==o)}}function zd(r){var o=r.ref;if(o!==null){var a=r.stateNode;r.tag,r=a,typeof o=="function"?o(r):o.current=r}}function C0(r){var o=r.alternate;o!==null&&(r.alternate=null,C0(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Er],delete o[ji],delete o[Vu],delete o[s4],delete o[l4])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function N0(r){return r.tag===5||r.tag===3||r.tag===4}function B0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||N0(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Ed(r,o,a){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(r,o):a.insertBefore(r,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(r,a)):(o=a,o.appendChild(r)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=ks));else if(u!==4&&(r=r.child,r!==null))for(Ed(r,o,a),r=r.sibling;r!==null;)Ed(r,o,a),r=r.sibling}function Td(r,o,a){var u=r.tag;if(u===5||u===6)r=r.stateNode,o?a.insertBefore(r,o):a.appendChild(r);else if(u!==4&&(r=r.child,r!==null))for(Td(r,o,a),r=r.sibling;r!==null;)Td(r,o,a),r=r.sibling}var yt=null,br=!1;function wn(r,o,a){for(a=a.child;a!==null;)z0(r,o,a),a=a.sibling}function z0(r,o,a){if(zr&&typeof zr.onCommitFiberUnmount=="function")try{zr.onCommitFiberUnmount(os,a)}catch{}switch(a.tag){case 5:Nt||Ao(a,o);case 6:var u=yt,p=br;yt=null,wn(r,o,a),yt=u,br=p,yt!==null&&(br?(r=yt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):yt.removeChild(a.stateNode));break;case 18:yt!==null&&(br?(r=yt,a=a.stateNode,r.nodeType===8?$u(r.parentNode,a):r.nodeType===1&&$u(r,a),Si(r)):$u(yt,a.stateNode));break;case 4:u=yt,p=br,yt=a.stateNode.containerInfo,br=!0,wn(r,o,a),yt=u,br=p;break;case 0:case 11:case 14:case 15:if(!Nt&&(u=a.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){p=u=u.next;do{var v=p,k=v.destroy;v=v.tag,k!==void 0&&((v&2)!==0||(v&4)!==0)&&Bd(a,o,k),p=p.next}while(p!==u)}wn(r,o,a);break;case 1:if(!Nt&&(Ao(a,o),u=a.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=a.memoizedProps,u.state=a.memoizedState,u.componentWillUnmount()}catch(B){Xe(a,o,B)}wn(r,o,a);break;case 21:wn(r,o,a);break;case 22:a.mode&1?(Nt=(u=Nt)||a.memoizedState!==null,wn(r,o,a),Nt=u):wn(r,o,a);break;default:wn(r,o,a)}}function E0(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new _4),o.forEach(function(u){var p=j4.bind(null,r,u);a.has(u)||(a.add(u),u.then(p,p))})}}function yr(r,o){var a=o.deletions;if(a!==null)for(var u=0;u<a.length;u++){var p=a[u];try{var v=r,k=o,B=k;e:for(;B!==null;){switch(B.tag){case 5:yt=B.stateNode,br=!1;break e;case 3:yt=B.stateNode.containerInfo,br=!0;break e;case 4:yt=B.stateNode.containerInfo,br=!0;break e}B=B.return}if(yt===null)throw Error(n(160));z0(v,k,p),yt=null,br=!1;var R=p.alternate;R!==null&&(R.return=null),p.return=null}catch(W){Xe(p,o,W)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)T0(o,r),o=o.sibling}function T0(r,o){var a=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(yr(o,r),Pr(r),u&4){try{Ui(3,r,r.return),Us(3,r)}catch(pe){Xe(r,r.return,pe)}try{Ui(5,r,r.return)}catch(pe){Xe(r,r.return,pe)}}break;case 1:yr(o,r),Pr(r),u&512&&a!==null&&Ao(a,a.return);break;case 5:if(yr(o,r),Pr(r),u&512&&a!==null&&Ao(a,a.return),r.flags&32){var p=r.stateNode;try{fi(p,"")}catch(pe){Xe(r,r.return,pe)}}if(u&4&&(p=r.stateNode,p!=null)){var v=r.memoizedProps,k=a!==null?a.memoizedProps:v,B=r.type,R=r.updateQueue;if(r.updateQueue=null,R!==null)try{B==="input"&&v.type==="radio"&&v.name!=null&&og(p,v),su(B,k);var W=su(B,v);for(k=0;k<R.length;k+=2){var te=R[k],ne=R[k+1];te==="style"?fg(p,ne):te==="dangerouslySetInnerHTML"?ug(p,ne):te==="children"?fi(p,ne):z(p,te,ne,W)}switch(B){case"input":ru(p,v);break;case"textarea":sg(p,v);break;case"select":var ee=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!v.multiple;var le=v.value;le!=null?vo(p,!!v.multiple,le,!1):ee!==!!v.multiple&&(v.defaultValue!=null?vo(p,!!v.multiple,v.defaultValue,!0):vo(p,!!v.multiple,v.multiple?[]:"",!1))}p[ji]=v}catch(pe){Xe(r,r.return,pe)}}break;case 6:if(yr(o,r),Pr(r),u&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,v=r.memoizedProps;try{p.nodeValue=v}catch(pe){Xe(r,r.return,pe)}}break;case 3:if(yr(o,r),Pr(r),u&4&&a!==null&&a.memoizedState.isDehydrated)try{Si(o.containerInfo)}catch(pe){Xe(r,r.return,pe)}break;case 4:yr(o,r),Pr(r);break;case 13:yr(o,r),Pr(r),p=r.child,p.flags&8192&&(v=p.memoizedState!==null,p.stateNode.isHidden=v,!v||p.alternate!==null&&p.alternate.memoizedState!==null||(Rd=Je())),u&4&&E0(r);break;case 22:if(te=a!==null&&a.memoizedState!==null,r.mode&1?(Nt=(W=Nt)||te,yr(o,r),Nt=W):yr(o,r),Pr(r),u&8192){if(W=r.memoizedState!==null,(r.stateNode.isHidden=W)&&!te&&(r.mode&1)!==0)for(ue=r,te=r.child;te!==null;){for(ne=ue=te;ue!==null;){switch(ee=ue,le=ee.child,ee.tag){case 0:case 11:case 14:case 15:Ui(4,ee,ee.return);break;case 1:Ao(ee,ee.return);var fe=ee.stateNode;if(typeof fe.componentWillUnmount=="function"){u=ee,a=ee.return;try{o=u,fe.props=o.memoizedProps,fe.state=o.memoizedState,fe.componentWillUnmount()}catch(pe){Xe(u,a,pe)}}break;case 5:Ao(ee,ee.return);break;case 22:if(ee.memoizedState!==null){R0(ne);continue}}le!==null?(le.return=ee,ue=le):R0(ne)}te=te.sibling}e:for(te=null,ne=r;;){if(ne.tag===5){if(te===null){te=ne;try{p=ne.stateNode,W?(v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(B=ne.stateNode,R=ne.memoizedProps.style,k=R!=null&&R.hasOwnProperty("display")?R.display:null,B.style.display=dg("display",k))}catch(pe){Xe(r,r.return,pe)}}}else if(ne.tag===6){if(te===null)try{ne.stateNode.nodeValue=W?"":ne.memoizedProps}catch(pe){Xe(r,r.return,pe)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===r)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===r)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===r)break e;te===ne&&(te=null),ne=ne.return}te===ne&&(te=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:yr(o,r),Pr(r),u&4&&E0(r);break;case 21:break;default:yr(o,r),Pr(r)}}function Pr(r){var o=r.flags;if(o&2){try{e:{for(var a=r.return;a!==null;){if(N0(a)){var u=a;break e}a=a.return}throw Error(n(160))}switch(u.tag){case 5:var p=u.stateNode;u.flags&32&&(fi(p,""),u.flags&=-33);var v=B0(r);Td(r,v,p);break;case 3:case 4:var k=u.stateNode.containerInfo,B=B0(r);Ed(r,B,k);break;default:throw Error(n(161))}}catch(R){Xe(r,r.return,R)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function N4(r,o,a){ue=r,F0(r)}function F0(r,o,a){for(var u=(r.mode&1)!==0;ue!==null;){var p=ue,v=p.child;if(p.tag===22&&u){var k=p.memoizedState!==null||Vs;if(!k){var B=p.alternate,R=B!==null&&B.memoizedState!==null||Nt;B=Vs;var W=Nt;if(Vs=k,(Nt=R)&&!W)for(ue=p;ue!==null;)k=ue,R=k.child,k.tag===22&&k.memoizedState!==null?j0(p):R!==null?(R.return=k,ue=R):j0(p);for(;v!==null;)ue=v,F0(v),v=v.sibling;ue=p,Vs=B,Nt=W}P0(r)}else(p.subtreeFlags&8772)!==0&&v!==null?(v.return=p,ue=v):P0(r)}}function P0(r){for(;ue!==null;){var o=ue;if((o.flags&8772)!==0){var a=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Nt||Us(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!Nt)if(a===null)u.componentDidMount();else{var p=o.elementType===o.type?a.memoizedProps:vr(o.type,a.memoizedProps);u.componentDidUpdate(p,a.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var v=o.updateQueue;v!==null&&Rv(o,v,u);break;case 3:var k=o.updateQueue;if(k!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}Rv(o,k,a)}break;case 5:var B=o.stateNode;if(a===null&&o.flags&4){a=B;var R=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&a.focus();break;case"img":R.src&&(a.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var W=o.alternate;if(W!==null){var te=W.memoizedState;if(te!==null){var ne=te.dehydrated;ne!==null&&Si(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Nt||o.flags&512&&zd(o)}catch(ee){Xe(o,o.return,ee)}}if(o===r){ue=null;break}if(a=o.sibling,a!==null){a.return=o.return,ue=a;break}ue=o.return}}function R0(r){for(;ue!==null;){var o=ue;if(o===r){ue=null;break}var a=o.sibling;if(a!==null){a.return=o.return,ue=a;break}ue=o.return}}function j0(r){for(;ue!==null;){var o=ue;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{Us(4,o)}catch(R){Xe(o,a,R)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var p=o.return;try{u.componentDidMount()}catch(R){Xe(o,p,R)}}var v=o.return;try{zd(o)}catch(R){Xe(o,v,R)}break;case 5:var k=o.return;try{zd(o)}catch(R){Xe(o,k,R)}}}catch(R){Xe(o,o.return,R)}if(o===r){ue=null;break}var B=o.sibling;if(B!==null){B.return=o.return,ue=B;break}ue=o.return}}var B4=Math.ceil,Ws=P.ReactCurrentDispatcher,Fd=P.ReactCurrentOwner,ir=P.ReactCurrentBatchConfig,Be=0,ht=null,it=null,xt=0,Wt=0,Oo=gn(0),lt=0,Wi=null,Kn=0,Gs=0,Pd=0,Gi=null,At=null,Rd=0,qo=1/0,Kr=null,Ks=!1,jd=null,kn=null,Xs=!1,Sn=null,Qs=0,Ki=0,Md=null,Ys=-1,Js=0;function Pt(){return(Be&6)!==0?Je():Ys!==-1?Ys:Ys=Je()}function _n(r){return(r.mode&1)===0?1:(Be&2)!==0&&xt!==0?xt&-xt:u4.transition!==null?(Js===0&&(Js=Bg()),Js):(r=Re,r!==0||(r=window.event,r=r===void 0?16:Ig(r.type)),r)}function xr(r,o,a,u){if(50<Ki)throw Ki=0,Md=null,Error(n(185));bi(r,a,u),((Be&2)===0||r!==ht)&&(r===ht&&((Be&2)===0&&(Gs|=a),lt===4&&Cn(r,xt)),Ot(r,u),a===1&&Be===0&&(o.mode&1)===0&&(qo=Je()+500,Ns&&bn()))}function Ot(r,o){var a=r.callbackNode;uB(r,o);var u=ss(r,r===ht?xt:0);if(u===0)a!==null&&_g(a),r.callbackNode=null,r.callbackPriority=0;else if(o=u&-u,r.callbackPriority!==o){if(a!=null&&_g(a),o===1)r.tag===0?c4(I0.bind(null,r)):wv(I0.bind(null,r)),i4(function(){(Be&6)===0&&bn()}),a=null;else{switch(zg(u)){case 1:a=hu;break;case 4:a=Cg;break;case 16:a=ns;break;case 536870912:a=Ng;break;default:a=ns}a=V0(a,M0.bind(null,r))}r.callbackPriority=o,r.callbackNode=a}}function M0(r,o){if(Ys=-1,Js=0,(Be&6)!==0)throw Error(n(327));var a=r.callbackNode;if(Lo()&&r.callbackNode!==a)return null;var u=ss(r,r===ht?xt:0);if(u===0)return null;if((u&30)!==0||(u&r.expiredLanes)!==0||o)o=Zs(r,u);else{o=u;var p=Be;Be|=2;var v=A0();(ht!==r||xt!==o)&&(Kr=null,qo=Je()+500,Qn(r,o));do try{T4();break}catch(B){D0(r,B)}while(!0);Zu(),Ws.current=v,Be=p,it!==null?o=0:(ht=null,xt=0,o=lt)}if(o!==0){if(o===2&&(p=mu(r),p!==0&&(u=p,o=Id(r,p))),o===1)throw a=Wi,Qn(r,0),Cn(r,u),Ot(r,Je()),a;if(o===6)Cn(r,u);else{if(p=r.current.alternate,(u&30)===0&&!z4(p)&&(o=Zs(r,u),o===2&&(v=mu(r),v!==0&&(u=v,o=Id(r,v))),o===1))throw a=Wi,Qn(r,0),Cn(r,u),Ot(r,Je()),a;switch(r.finishedWork=p,r.finishedLanes=u,o){case 0:case 1:throw Error(n(345));case 2:Yn(r,At,Kr);break;case 3:if(Cn(r,u),(u&130023424)===u&&(o=Rd+500-Je(),10<o)){if(ss(r,0)!==0)break;if(p=r.suspendedLanes,(p&u)!==u){Pt(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Hu(Yn.bind(null,r,At,Kr),o);break}Yn(r,At,Kr);break;case 4:if(Cn(r,u),(u&4194240)===u)break;for(o=r.eventTimes,p=-1;0<u;){var k=31-hr(u);v=1<<k,k=o[k],k>p&&(p=k),u&=~v}if(u=p,u=Je()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*B4(u/1960))-u,10<u){r.timeoutHandle=Hu(Yn.bind(null,r,At,Kr),u);break}Yn(r,At,Kr);break;case 5:Yn(r,At,Kr);break;default:throw Error(n(329))}}}return Ot(r,Je()),r.callbackNode===a?M0.bind(null,r):null}function Id(r,o){var a=Gi;return r.current.memoizedState.isDehydrated&&(Qn(r,o).flags|=256),r=Zs(r,o),r!==2&&(o=At,At=a,o!==null&&Dd(o)),r}function Dd(r){At===null?At=r:At.push.apply(At,r)}function z4(r){for(var o=r;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var u=0;u<a.length;u++){var p=a[u],v=p.getSnapshot;p=p.value;try{if(!mr(v(),p))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Cn(r,o){for(o&=~Pd,o&=~Gs,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var a=31-hr(o),u=1<<a;r[a]=-1,o&=~u}}function I0(r){if((Be&6)!==0)throw Error(n(327));Lo();var o=ss(r,0);if((o&1)===0)return Ot(r,Je()),null;var a=Zs(r,o);if(r.tag!==0&&a===2){var u=mu(r);u!==0&&(o=u,a=Id(r,u))}if(a===1)throw a=Wi,Qn(r,0),Cn(r,o),Ot(r,Je()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Yn(r,At,Kr),Ot(r,Je()),null}function Ad(r,o){var a=Be;Be|=1;try{return r(o)}finally{Be=a,Be===0&&(qo=Je()+500,Ns&&bn())}}function Xn(r){Sn!==null&&Sn.tag===0&&(Be&6)===0&&Lo();var o=Be;Be|=1;var a=ir.transition,u=Re;try{if(ir.transition=null,Re=1,r)return r()}finally{Re=u,ir.transition=a,Be=o,(Be&6)===0&&bn()}}function Od(){Wt=Oo.current,He(Oo)}function Qn(r,o){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,o4(a)),it!==null)for(a=it.return;a!==null;){var u=a;switch(Ku(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&_s();break;case 3:Io(),He(Mt),He(St),sd();break;case 5:id(u);break;case 4:Io();break;case 13:He(We);break;case 19:He(We);break;case 10:ed(u.type._context);break;case 22:case 23:Od()}a=a.return}if(ht=r,it=r=Nn(r.current,null),xt=Wt=o,lt=0,Wi=null,Pd=Gs=Kn=0,At=Gi=null,Un!==null){for(o=0;o<Un.length;o++)if(a=Un[o],u=a.interleaved,u!==null){a.interleaved=null;var p=u.next,v=a.pending;if(v!==null){var k=v.next;v.next=p,u.next=k}a.pending=u}Un=null}return r}function D0(r,o){do{var a=it;try{if(Zu(),Is.current=qs,Ds){for(var u=Ge.memoizedState;u!==null;){var p=u.queue;p!==null&&(p.pending=null),u=u.next}Ds=!1}if(Gn=0,pt=st=Ge=null,qi=!1,Li=0,Fd.current=null,a===null||a.return===null){lt=1,Wi=o,it=null;break}e:{var v=r,k=a.return,B=a,R=o;if(o=xt,B.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var W=R,te=B,ne=te.tag;if((te.mode&1)===0&&(ne===0||ne===11||ne===15)){var ee=te.alternate;ee?(te.updateQueue=ee.updateQueue,te.memoizedState=ee.memoizedState,te.lanes=ee.lanes):(te.updateQueue=null,te.memoizedState=null)}var le=l0(k);if(le!==null){le.flags&=-257,c0(le,k,B,v,o),le.mode&1&&s0(v,W,o),o=le,R=W;var fe=o.updateQueue;if(fe===null){var pe=new Set;pe.add(R),o.updateQueue=pe}else fe.add(R);break e}else{if((o&1)===0){s0(v,W,o),qd();break e}R=Error(n(426))}}else if(Ve&&B.mode&1){var Ze=l0(k);if(Ze!==null){(Ze.flags&65536)===0&&(Ze.flags|=256),c0(Ze,k,B,v,o),Yu(Do(R,B));break e}}v=R=Do(R,B),lt!==4&&(lt=2),Gi===null?Gi=[v]:Gi.push(v),v=k;do{switch(v.tag){case 3:v.flags|=65536,o&=-o,v.lanes|=o;var A=i0(v,R,o);Pv(v,A);break e;case 1:B=R;var M=v.type,H=v.stateNode;if((v.flags&128)===0&&(typeof M.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(kn===null||!kn.has(H)))){v.flags|=65536,o&=-o,v.lanes|=o;var ae=a0(v,B,o);Pv(v,ae);break e}}v=v.return}while(v!==null)}q0(a)}catch(ge){o=ge,it===a&&a!==null&&(it=a=a.return);continue}break}while(!0)}function A0(){var r=Ws.current;return Ws.current=qs,r===null?qs:r}function qd(){(lt===0||lt===3||lt===2)&&(lt=4),ht===null||(Kn&268435455)===0&&(Gs&268435455)===0||Cn(ht,xt)}function Zs(r,o){var a=Be;Be|=2;var u=A0();(ht!==r||xt!==o)&&(Kr=null,Qn(r,o));do try{E4();break}catch(p){D0(r,p)}while(!0);if(Zu(),Be=a,Ws.current=u,it!==null)throw Error(n(261));return ht=null,xt=0,lt}function E4(){for(;it!==null;)O0(it)}function T4(){for(;it!==null&&!tB();)O0(it)}function O0(r){var o=$0(r.alternate,r,Wt);r.memoizedProps=r.pendingProps,o===null?q0(r):it=o,Fd.current=null}function q0(r){var o=r;do{var a=o.alternate;if(r=o.return,(o.flags&32768)===0){if(a=k4(a,o,Wt),a!==null){it=a;return}}else{if(a=S4(a,o),a!==null){a.flags&=32767,it=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{lt=6,it=null;return}}if(o=o.sibling,o!==null){it=o;return}it=o=r}while(o!==null);lt===0&&(lt=5)}function Yn(r,o,a){var u=Re,p=ir.transition;try{ir.transition=null,Re=1,F4(r,o,a,u)}finally{ir.transition=p,Re=u}return null}function F4(r,o,a,u){do Lo();while(Sn!==null);if((Be&6)!==0)throw Error(n(327));a=r.finishedWork;var p=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var v=a.lanes|a.childLanes;if(dB(r,v),r===ht&&(it=ht=null,xt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Xs||(Xs=!0,V0(ns,function(){return Lo(),null})),v=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||v){v=ir.transition,ir.transition=null;var k=Re;Re=1;var B=Be;Be|=4,Fd.current=null,C4(r,a),T0(a,r),YB(qu),us=!!Ou,qu=Ou=null,r.current=a,N4(a),rB(),Be=B,Re=k,ir.transition=v}else r.current=a;if(Xs&&(Xs=!1,Sn=r,Qs=p),v=r.pendingLanes,v===0&&(kn=null),iB(a.stateNode),Ot(r,Je()),o!==null)for(u=r.onRecoverableError,a=0;a<o.length;a++)p=o[a],u(p.value,{componentStack:p.stack,digest:p.digest});if(Ks)throw Ks=!1,r=jd,jd=null,r;return(Qs&1)!==0&&r.tag!==0&&Lo(),v=r.pendingLanes,(v&1)!==0?r===Md?Ki++:(Ki=0,Md=r):Ki=0,bn(),null}function Lo(){if(Sn!==null){var r=zg(Qs),o=ir.transition,a=Re;try{if(ir.transition=null,Re=16>r?16:r,Sn===null)var u=!1;else{if(r=Sn,Sn=null,Qs=0,(Be&6)!==0)throw Error(n(331));var p=Be;for(Be|=4,ue=r.current;ue!==null;){var v=ue,k=v.child;if((ue.flags&16)!==0){var B=v.deletions;if(B!==null){for(var R=0;R<B.length;R++){var W=B[R];for(ue=W;ue!==null;){var te=ue;switch(te.tag){case 0:case 11:case 15:Ui(8,te,v)}var ne=te.child;if(ne!==null)ne.return=te,ue=ne;else for(;ue!==null;){te=ue;var ee=te.sibling,le=te.return;if(C0(te),te===W){ue=null;break}if(ee!==null){ee.return=le,ue=ee;break}ue=le}}}var fe=v.alternate;if(fe!==null){var pe=fe.child;if(pe!==null){fe.child=null;do{var Ze=pe.sibling;pe.sibling=null,pe=Ze}while(pe!==null)}}ue=v}}if((v.subtreeFlags&2064)!==0&&k!==null)k.return=v,ue=k;else e:for(;ue!==null;){if(v=ue,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:Ui(9,v,v.return)}var A=v.sibling;if(A!==null){A.return=v.return,ue=A;break e}ue=v.return}}var M=r.current;for(ue=M;ue!==null;){k=ue;var H=k.child;if((k.subtreeFlags&2064)!==0&&H!==null)H.return=k,ue=H;else e:for(k=M;ue!==null;){if(B=ue,(B.flags&2048)!==0)try{switch(B.tag){case 0:case 11:case 15:Us(9,B)}}catch(ge){Xe(B,B.return,ge)}if(B===k){ue=null;break e}var ae=B.sibling;if(ae!==null){ae.return=B.return,ue=ae;break e}ue=B.return}}if(Be=p,bn(),zr&&typeof zr.onPostCommitFiberRoot=="function")try{zr.onPostCommitFiberRoot(os,r)}catch{}u=!0}return u}finally{Re=a,ir.transition=o}}return!1}function L0(r,o,a){o=Do(a,o),o=i0(r,o,1),r=xn(r,o,1),o=Pt(),r!==null&&(bi(r,1,o),Ot(r,o))}function Xe(r,o,a){if(r.tag===3)L0(r,r,a);else for(;o!==null;){if(o.tag===3){L0(o,r,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(kn===null||!kn.has(u))){r=Do(a,r),r=a0(o,r,1),o=xn(o,r,1),r=Pt(),o!==null&&(bi(o,1,r),Ot(o,r));break}}o=o.return}}function P4(r,o,a){var u=r.pingCache;u!==null&&u.delete(o),o=Pt(),r.pingedLanes|=r.suspendedLanes&a,ht===r&&(xt&a)===a&&(lt===4||lt===3&&(xt&130023424)===xt&&500>Je()-Rd?Qn(r,0):Pd|=a),Ot(r,o)}function H0(r,o){o===0&&((r.mode&1)===0?o=1:(o=as,as<<=1,(as&130023424)===0&&(as=4194304)));var a=Pt();r=Ur(r,o),r!==null&&(bi(r,o,a),Ot(r,a))}function R4(r){var o=r.memoizedState,a=0;o!==null&&(a=o.retryLane),H0(r,a)}function j4(r,o){var a=0;switch(r.tag){case 13:var u=r.stateNode,p=r.memoizedState;p!==null&&(a=p.retryLane);break;case 19:u=r.stateNode;break;default:throw Error(n(314))}u!==null&&u.delete(o),H0(r,a)}var $0;$0=function(r,o,a){if(r!==null)if(r.memoizedProps!==o.pendingProps||Mt.current)Dt=!0;else{if((r.lanes&a)===0&&(o.flags&128)===0)return Dt=!1,w4(r,o,a);Dt=(r.flags&131072)!==0}else Dt=!1,Ve&&(o.flags&1048576)!==0&&kv(o,zs,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;$s(r,o),r=o.pendingProps;var p=Eo(o,St.current);Mo(o,a),p=ud(null,o,u,r,p,a);var v=dd();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,It(u)?(v=!0,Cs(o)):v=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,nd(o),p.updater=Ls,o.stateNode=p,p._reactInternals=o,vd(o,u,r,a),o=wd(null,o,u,!0,v,a)):(o.tag=0,Ve&&v&&Gu(o),Ft(null,o,p,a),o=o.child),o;case 16:u=o.elementType;e:{switch($s(r,o),r=o.pendingProps,p=u._init,u=p(u._payload),o.type=u,p=o.tag=I4(u),r=vr(u,r),p){case 0:o=xd(null,o,u,r,a);break e;case 1:o=m0(null,o,u,r,a);break e;case 11:o=u0(null,o,u,r,a);break e;case 14:o=d0(null,o,u,vr(u.type,r),a);break e}throw Error(n(306,u,""))}return o;case 0:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:vr(u,p),xd(r,o,u,p,a);case 1:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:vr(u,p),m0(r,o,u,p,a);case 3:e:{if(g0(o),r===null)throw Error(n(387));u=o.pendingProps,v=o.memoizedState,p=v.element,Fv(r,o),js(o,u,null,a);var k=o.memoizedState;if(u=k.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){p=Do(Error(n(423)),o),o=v0(r,o,u,a,p);break e}else if(u!==p){p=Do(Error(n(424)),o),o=v0(r,o,u,a,p);break e}else for(Ut=mn(o.stateNode.containerInfo.firstChild),Vt=o,Ve=!0,gr=null,a=Ev(o,null,u,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Po(),u===p){o=Gr(r,o,a);break e}Ft(r,o,u,a)}o=o.child}return o;case 5:return jv(o),r===null&&Qu(o),u=o.type,p=o.pendingProps,v=r!==null?r.memoizedProps:null,k=p.children,Lu(u,p)?k=null:v!==null&&Lu(u,v)&&(o.flags|=32),h0(r,o),Ft(r,o,k,a),o.child;case 6:return r===null&&Qu(o),null;case 13:return b0(r,o,a);case 4:return od(o,o.stateNode.containerInfo),u=o.pendingProps,r===null?o.child=Ro(o,null,u,a):Ft(r,o,u,a),o.child;case 11:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:vr(u,p),u0(r,o,u,p,a);case 7:return Ft(r,o,o.pendingProps,a),o.child;case 8:return Ft(r,o,o.pendingProps.children,a),o.child;case 12:return Ft(r,o,o.pendingProps.children,a),o.child;case 10:e:{if(u=o.type._context,p=o.pendingProps,v=o.memoizedProps,k=p.value,Oe(Fs,u._currentValue),u._currentValue=k,v!==null)if(mr(v.value,k)){if(v.children===p.children&&!Mt.current){o=Gr(r,o,a);break e}}else for(v=o.child,v!==null&&(v.return=o);v!==null;){var B=v.dependencies;if(B!==null){k=v.child;for(var R=B.firstContext;R!==null;){if(R.context===u){if(v.tag===1){R=Wr(-1,a&-a),R.tag=2;var W=v.updateQueue;if(W!==null){W=W.shared;var te=W.pending;te===null?R.next=R:(R.next=te.next,te.next=R),W.pending=R}}v.lanes|=a,R=v.alternate,R!==null&&(R.lanes|=a),td(v.return,a,o),B.lanes|=a;break}R=R.next}}else if(v.tag===10)k=v.type===o.type?null:v.child;else if(v.tag===18){if(k=v.return,k===null)throw Error(n(341));k.lanes|=a,B=k.alternate,B!==null&&(B.lanes|=a),td(k,a,o),k=v.sibling}else k=v.child;if(k!==null)k.return=v;else for(k=v;k!==null;){if(k===o){k=null;break}if(v=k.sibling,v!==null){v.return=k.return,k=v;break}k=k.return}v=k}Ft(r,o,p.children,a),o=o.child}return o;case 9:return p=o.type,u=o.pendingProps.children,Mo(o,a),p=nr(p),u=u(p),o.flags|=1,Ft(r,o,u,a),o.child;case 14:return u=o.type,p=vr(u,o.pendingProps),p=vr(u.type,p),d0(r,o,u,p,a);case 15:return f0(r,o,o.type,o.pendingProps,a);case 17:return u=o.type,p=o.pendingProps,p=o.elementType===u?p:vr(u,p),$s(r,o),o.tag=1,It(u)?(r=!0,Cs(o)):r=!1,Mo(o,a),n0(o,u,p),vd(o,u,p,a),wd(null,o,u,!0,r,a);case 19:return x0(r,o,a);case 22:return p0(r,o,a)}throw Error(n(156,o.tag))};function V0(r,o){return Sg(r,o)}function M4(r,o,a,u){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(r,o,a,u){return new M4(r,o,a,u)}function Ld(r){return r=r.prototype,!(!r||!r.isReactComponent)}function I4(r){if(typeof r=="function")return Ld(r)?1:0;if(r!=null){if(r=r.$$typeof,r===$)return 11;if(r===oe)return 14}return 2}function Nn(r,o){var a=r.alternate;return a===null?(a=ar(r.tag,o,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=o,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,o=r.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function el(r,o,a,u,p,v){var k=2;if(u=r,typeof r=="function")Ld(r)&&(k=1);else if(typeof r=="string")k=5;else e:switch(r){case D:return Jn(a.children,p,v,o);case O:k=8,p|=8;break;case q:return r=ar(12,a,o,p|2),r.elementType=q,r.lanes=v,r;case F:return r=ar(13,a,o,p),r.elementType=F,r.lanes=v,r;case Z:return r=ar(19,a,o,p),r.elementType=Z,r.lanes=v,r;case G:return tl(a,p,v,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Q:k=10;break e;case X:k=9;break e;case $:k=11;break e;case oe:k=14;break e;case V:k=16,u=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=ar(k,a,o,p),o.elementType=r,o.type=u,o.lanes=v,o}function Jn(r,o,a,u){return r=ar(7,r,u,o),r.lanes=a,r}function tl(r,o,a,u){return r=ar(22,r,u,o),r.elementType=G,r.lanes=a,r.stateNode={isHidden:!1},r}function Hd(r,o,a){return r=ar(6,r,null,o),r.lanes=a,r}function $d(r,o,a){return o=ar(4,r.children!==null?r.children:[],r.key,o),o.lanes=a,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function D4(r,o,a,u,p){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gu(0),this.expirationTimes=gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.identifierPrefix=u,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Vd(r,o,a,u,p,v,k,B,R){return r=new D4(r,o,a,B,R),o===1?(o=1,v===!0&&(o|=8)):o=0,v=ar(3,null,null,o),r.current=v,v.stateNode=r,v.memoizedState={element:u,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},nd(v),r}function A4(r,o,a){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:u==null?null:""+u,children:r,containerInfo:o,implementation:a}}function U0(r){if(!r)return vn;r=r._reactInternals;e:{if(qn(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(It(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(It(a))return yv(r,a,o)}return o}function W0(r,o,a,u,p,v,k,B,R){return r=Vd(a,u,!0,r,p,v,k,B,R),r.context=U0(null),a=r.current,u=Pt(),p=_n(a),v=Wr(u,p),v.callback=o??null,xn(a,v,p),r.current.lanes=p,bi(r,p,u),Ot(r,u),r}function rl(r,o,a,u){var p=o.current,v=Pt(),k=_n(p);return a=U0(a),o.context===null?o.context=a:o.pendingContext=a,o=Wr(v,k),o.payload={element:r},u=u===void 0?null:u,u!==null&&(o.callback=u),r=xn(p,o,k),r!==null&&(xr(r,p,k,v),Rs(r,p,k)),k}function nl(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function G0(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<o?a:o}}function Ud(r,o){G0(r,o),(r=r.alternate)&&G0(r,o)}function O4(){return null}var K0=typeof reportError=="function"?reportError:function(r){console.error(r)};function Wd(r){this._internalRoot=r}ol.prototype.render=Wd.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));rl(r,o,null,null)},ol.prototype.unmount=Wd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Xn(function(){rl(null,r,null,null)}),o[Lr]=null}};function ol(r){this._internalRoot=r}ol.prototype.unstable_scheduleHydration=function(r){if(r){var o=Fg();r={blockedOn:null,target:r,priority:o};for(var a=0;a<fn.length&&o!==0&&o<fn[a].priority;a++);fn.splice(a,0,r),a===0&&jg(r)}};function Gd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function il(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function X0(){}function q4(r,o,a,u,p){if(p){if(typeof u=="function"){var v=u;u=function(){var W=nl(k);v.call(W)}}var k=W0(o,u,r,0,null,!1,!1,"",X0);return r._reactRootContainer=k,r[Lr]=k.current,Pi(r.nodeType===8?r.parentNode:r),Xn(),k}for(;p=r.lastChild;)r.removeChild(p);if(typeof u=="function"){var B=u;u=function(){var W=nl(R);B.call(W)}}var R=Vd(r,0,!1,null,null,!1,!1,"",X0);return r._reactRootContainer=R,r[Lr]=R.current,Pi(r.nodeType===8?r.parentNode:r),Xn(function(){rl(o,R,a,u)}),R}function al(r,o,a,u,p){var v=a._reactRootContainer;if(v){var k=v;if(typeof p=="function"){var B=p;p=function(){var R=nl(k);B.call(R)}}rl(o,k,r,p)}else k=q4(a,o,r,p,u);return nl(k)}Eg=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var a=vi(o.pendingLanes);a!==0&&(vu(o,a|1),Ot(o,Je()),(Be&6)===0&&(qo=Je()+500,bn()))}break;case 13:Xn(function(){var u=Ur(r,1);if(u!==null){var p=Pt();xr(u,r,1,p)}}),Ud(r,1)}},bu=function(r){if(r.tag===13){var o=Ur(r,134217728);if(o!==null){var a=Pt();xr(o,r,134217728,a)}Ud(r,134217728)}},Tg=function(r){if(r.tag===13){var o=_n(r),a=Ur(r,o);if(a!==null){var u=Pt();xr(a,r,o,u)}Ud(r,o)}},Fg=function(){return Re},Pg=function(r,o){var a=Re;try{return Re=r,o()}finally{Re=a}},uu=function(r,o,a){switch(o){case"input":if(ru(r,a),o=a.name,a.type==="radio"&&o!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var u=a[o];if(u!==r&&u.form===r.form){var p=Ss(u);if(!p)throw Error(n(90));Br(u),ru(u,p)}}}break;case"textarea":sg(r,a);break;case"select":o=a.value,o!=null&&vo(r,!!a.multiple,o,!1)}},gg=Ad,vg=Xn;var L4={usingClientEntryPoint:!1,Events:[Mi,Bo,Ss,hg,mg,Ad]},Xi={findFiberByHostInstance:Ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},H4={bundleType:Xi.bundleType,version:Xi.version,rendererPackageName:Xi.rendererPackageName,rendererConfig:Xi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=wg(r),r===null?null:r.stateNode},findFiberByHostInstance:Xi.findFiberByHostInstance||O4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{os=sl.inject(H4),zr=sl}catch{}}return Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L4,Rt.createPortal=function(r,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gd(o))throw Error(n(200));return A4(r,o,null,a)},Rt.createRoot=function(r,o){if(!Gd(r))throw Error(n(299));var a=!1,u="",p=K0;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=Vd(r,1,!1,null,null,a,!1,u,p),r[Lr]=o.current,Pi(r.nodeType===8?r.parentNode:r),new Wd(o)},Rt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=wg(o),r=r===null?null:r.stateNode,r},Rt.flushSync=function(r){return Xn(r)},Rt.hydrate=function(r,o,a){if(!il(o))throw Error(n(200));return al(null,r,o,!0,a)},Rt.hydrateRoot=function(r,o,a){if(!Gd(r))throw Error(n(405));var u=a!=null&&a.hydratedSources||null,p=!1,v="",k=K0;if(a!=null&&(a.unstable_strictMode===!0&&(p=!0),a.identifierPrefix!==void 0&&(v=a.identifierPrefix),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),o=W0(o,null,r,1,a??null,p,!1,v,k),r[Lr]=o.current,Pi(r),u)for(r=0;r<u.length;r++)a=u[r],p=a._getVersion,p=p(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,p]:o.mutableSourceEagerHydrationData.push(a,p);return new ol(o)},Rt.render=function(r,o,a){if(!il(o))throw Error(n(200));return al(null,r,o,!1,a)},Rt.unmountComponentAtNode=function(r){if(!il(r))throw Error(n(40));return r._reactRootContainer?(Xn(function(){al(null,null,r,!1,function(){r._reactRootContainer=null,r[Lr]=null})}),!0):!1},Rt.unstable_batchedUpdates=Ad,Rt.unstable_renderSubtreeIntoContainer=function(r,o,a,u){if(!il(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return al(r,o,a,!1,u)},Rt.version="18.3.1-next-f1338f8080-20240426",Rt}var of;function af(){if(of)return dl.exports;of=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dl.exports=r1(),dl.exports}var sf;function n1(){if(sf)return Ji;sf=1;var e=af();return Ji.createRoot=e.createRoot,Ji.hydrateRoot=e.hydrateRoot,Ji}var o1=n1();const hl=typeof window>"u"?global:window,ml="@griffel/";function i1(e,t){return hl[Symbol.for(ml+e)]||(hl[Symbol.for(ml+e)]=t),hl[Symbol.for(ml+e)]}const gl=i1("DEFINITION_LOOKUP_TABLE",{}),$o="data-make-styles-bucket",lf="data-priority",vl="data-container",bl=7,yl="___",a1=yl.length+bl,s1=0,l1=1;function c1(e){for(var t=0,n,i=0,s=e.length;s>=4;++i,s-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function u1(e){const t=e.length;if(t===bl)return e;for(let n=t;n<bl;n++)e+="0";return e}function cf(e,t,n=[]){return yl+u1(c1(e+t))}function uf(e,t){let n="",i="";for(const s in e){const l=e[s];if(l===0){i+=s+" ";continue}const c=Array.isArray(l),d=t==="rtl"?(c?l[1]:l)+" ":(c?l[0]:l)+" ";n+=d,i+=d}return[n.slice(0,-1),i.slice(0,-1)]}function df(e,t){const n={};for(const i in e){const[s,l]=uf(e[i],t);if(l===""){n[i]="";continue}const c=cf(l,t),d=c+(s===""?"":" "+s);gl[c]=[e[i],t],n[i]=d}return n}const ff={};function de(){let e=null,t="",n="";const i=new Array(arguments.length);for(let b=0;b<arguments.length;b++){const x=arguments[b];if(typeof x=="string"&&x!==""){const m=x.indexOf(yl);if(m===-1)t+=x+" ";else{const y=x.substr(m,a1);m>0&&(t+=x.slice(0,m)),n+=y,i[b]=y}}}if(n==="")return t.slice(0,-1);const s=ff[n];if(s!==void 0)return t+s;const l=[];for(let b=0;b<arguments.length;b++){const x=i[b];if(x){const m=gl[x];m&&(l.push(m[s1]),e=m[l1])}}const c=Object.assign.apply(Object,[{}].concat(l)),[d,f]=uf(c,e),h=cf(f,e,i),g=h+" "+d;return ff[n]=g,gl[h]=[c,e],t+g}function d1(e){return Array.isArray(e)?e:[e]}function f1(e,t,n,i){const s=[];if(i[$o]=t,i[lf]=String(n),e)for(const c in i)e.setAttribute(c,i[c]);function l(c){return e?.sheet?e.sheet.insertRule(c,e.sheet.cssRules.length):s.push(c)}return{elementAttributes:i,insertRule:l,element:e,bucketName:t,cssRules(){return e?.sheet?Array.from(e.sheet.cssRules).map(c=>c.cssText):s}}}const pf=["r","d","l","v","w","f","i","h","a","s","k","t","m","c","x"].reduce((e,t,n)=>(e[t]=n,e),{});function p1(e,t,n){return e==="m"||e==="x"?e+t+n:e+n}function h1(e,t,n,i,s={}){var l,c;const d=e==="m",f=e==="x",h=s.m,g=s.x,b=(l=s.p)!==null&&l!==void 0?l:0,x=p1(e,(c=g??h)!==null&&c!==void 0?c:"0",b);if(!i.stylesheets[x]){const m=t&&t.createElement("style"),y=f1(m,e,b,{...i.styleElementAttributes,...d&&{media:h},...f&&{[vl]:g}});i.stylesheets[x]=y,t?.head&&m&&t.head.insertBefore(m,g1(t,n,e,i,s))}return i.stylesheets[x]}function m1(e,t,n){return e.getAttribute($o)===t?t==="m"?n.m===e.media:t==="x"?n.x===e.getAttribute(vl):!0:!1}function g1(e,t,n,i,s={}){var l,c,d;const f=pf[n],h=(l=s.m)!==null&&l!==void 0?l:"",g=(c=s.x)!==null&&c!==void 0?c:"",b=(d=s.p)!==null&&d!==void 0?d:0;let x=N=>f-pf[N.getAttribute($o)],m=e.head.querySelectorAll(`[${$o}]`);if(n==="m"||n==="x"){const N=e.head.querySelectorAll(`[${$o}="${n}"]`);N.length&&(m=N,x=n==="m"?E=>i.compareMediaQueries(h,E.media):E=>{var z;return i.compareContainerQueries(g,(z=E.getAttribute(vl))!==null&&z!==void 0?z:"")})}const y=N=>m1(N,n,s)?b-Number(N.getAttribute(lf)):x(N),w=m.length;let _=w-1;for(;_>=0;){const N=m.item(_);if(y(N)>0)return N.nextSibling;_--}return w>0?m.item(0):t?t.nextSibling:null}function hf(e,t){try{e.insertRule(t)}catch{}}let v1=0;const b1=(e,t)=>e<t?-1:e>t?1:0;function y1(e=typeof document>"u"?void 0:document,t={}){const{classNameHashSalt:n,unstable_filterCSSRule:i,insertionPoint:s,styleElementAttributes:l,compareMediaQueries:c=b1,compareContainerQueries:d=c}=t,f={classNameHashSalt:n,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(l),compareMediaQueries:c,compareContainerQueries:d,id:`d${v1++}`,insertCSSRules(h){for(const g in h){const b=h[g];for(let x=0,m=b.length;x<m;x++){const[y,w]=d1(b[x]),_=h1(g,e,s||null,f,w);f.insertionCache[y]||(f.insertionCache[y]=g,i?i(y)&&hf(_,y):hf(_,y))}}}};return f}const mf=()=>{const e={};return function(n,i){e[n.id]===void 0&&(n.insertCSSRules(i),e[n.id]=!0)}};function gf(e,t,n=mf){const i=n();let s=null,l=null;function c(d){const{dir:f,renderer:h}=d,g=f==="ltr";return g?s===null&&(s=df(e,f)):l===null&&(l=df(e,f)),i(h,t),g?s:l}return c}function x1(e,t,n,i=mf){const s=i();function l(c){const{dir:d,renderer:f}=c,h=d==="ltr"?e:t||e;return s(f,Array.isArray(n)?{r:n}:n),h}return l}function w1(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const vf=ul.useInsertionEffect?ul.useInsertionEffect:void 0,bf=()=>{const e={};return function(n,i){if(vf&&w1()){vf(()=>{n.insertCSSRules(i)},[n,i]);return}e[n.id]===void 0&&(n.insertCSSRules(i),e[n.id]=!0)}},k1=S.createContext(y1());function Zi(){return S.useContext(k1)}const yf=S.createContext("ltr"),S1=({children:e,dir:t})=>C.jsx(yf.Provider,{value:t,children:e});function xf(){return S.useContext(yf)}function ke(e,t){const n=gf(e,t,bf);return function(){const s=xf(),l=Zi();return n({dir:s,renderer:l})}}function Pe(e,t,n){const i=x1(e,t,n,bf);return function(){const l=xf(),c=Zi();return i({dir:l,renderer:c})}}const _1={"\\":"\\5C ","<":"\\3C ",">":"\\3E ","{":"\\7B ","}":"\\7D ",";":"\\3B "},C1=/[\\<>{};]/g;function N1(e){return`\\${e.charCodeAt(0).toString(16).toUpperCase()} `}function B1(e){return e.replace(/\\+[<{}]?|[<{}]/g,t=>{const n=t[t.length-1];if(!"<{}".includes(n))return t;const i=t.length-1;return t.slice(0,i-i%2)+N1(n)})}function wf(e){return e.replace(C1,t=>_1[t])}function z1(e,t){const n=B1(e);if(t){const i=Object.keys(t).reduce((s,l)=>{const c=t[l];return typeof c!="string"&&(typeof c!="number"||!Number.isFinite(c))?s:`${s}--${wf(l)}: ${wf(String(c))}; `},"");return`${n} { ${i} }`}return`${n} {}`}const ea=Symbol.for("fui.slotRenderFunction"),Zn=Symbol.for("fui.slotElementType"),kf=Symbol.for("fui.slotClassNameProp");function Me(e,t){const{defaultProps:n,elementType:i}=t,s=E1(e),l={...n,...s,[Zn]:i,[kf]:s?.className||n?.className};return s&&typeof s.children=="function"&&(l[ea]=s.children,l.children=n?.children),l}function Ie(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Me(e,t)}function E1(e){return typeof e=="string"||typeof e=="number"||T1(e)||S.isValidElement(e)?{children:e}:e}const T1=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function F1(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!S.isValidElement(e)}function Sf(e){return!!e?.hasOwnProperty(Zn)}const Ae=(...e)=>{const t={};for(const n of e){const i=Array.isArray(n)?n:Object.keys(n);for(const s of i)t[s]=1}return t},P1=Ae(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),R1=Ae(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","popover","focusgroup","focusgroupstart","ref","role","style","tabIndex","title","translate","spellCheck","name"]),j1=Ae(["itemID","itemProp","itemRef","itemScope","itemType"]),et=Ae(R1,P1,j1),M1=Ae(et,["form"]),_f=Ae(et,["height","loop","muted","preload","src","width"]),I1=Ae(_f,["poster"]),D1=Ae(et,["start"]),A1=Ae(et,["value"]),O1=Ae(et,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),q1=Ae(et,["dateTime"]),ta=Ae(et,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","popoverTarget","popoverTargetAction","type","value"]),L1=Ae(ta,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),H1=Ae(ta,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),$1=Ae(ta,["form","multiple","required"]),V1=Ae(et,["selected","value"]),U1=Ae(et,["cellPadding","cellSpacing"]),W1=et,G1=Ae(et,["colSpan","rowSpan","scope"]),K1=Ae(et,["colSpan","headers","rowSpan","scope"]),X1=Ae(et,["span"]),Q1=Ae(et,["span"]),Y1=Ae(et,["disabled","form"]),J1=Ae(et,["acceptCharset","action","encType","encType","method","noValidate","target"]),Z1=Ae(et,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),eb=Ae(et,["alt","crossOrigin","height","loading","src","srcSet","useMap","width"]),tb=Ae(et,["open","onCancel","onClose"]);function rb(e,t,n){const i=Array.isArray(t),s={},l=Object.keys(e);for(const c of l){const d=!i&&Object.prototype.hasOwnProperty.call(t,c)||i&&t.indexOf(c)>=0||c.indexOf("data-")===0||c.indexOf("aria-")===0;c!=="__proto__"&&d&&(!n||n?.indexOf(c)===-1)&&(s[c]=e[c])}return s}const Cf={label:M1,audio:_f,video:I1,ol:D1,li:A1,a:O1,button:ta,input:L1,textarea:H1,select:$1,option:V1,table:U1,tr:W1,th:G1,td:K1,colGroup:X1,col:Q1,fieldset:Y1,form:J1,iframe:Z1,img:eb,time:q1,dialog:tb};function Nf(e,t,n){const i=e&&Object.prototype.hasOwnProperty.call(Cf,e)?Cf[e]:et;return i.as=1,rb(t,i,n)}const ra=({primarySlotTagName:e,props:t,excludedPropNames:n})=>({root:{style:t.style,className:t.className},primary:Nf(e,t,[...n||[],"style","className"])}),Gt=(e,t,n)=>{var i;return Nf((i=t.as)!==null&&i!==void 0?i:e,t,n)};function nb(e,t){const n={};for(const i in e)t.indexOf(i)===-1&&e.hasOwnProperty(i)&&(n[i]=e[i]);return n}function Bf(e,t){const n=S.useRef(void 0),i=S.useCallback((l,c)=>(n.current!==void 0&&t(n.current),n.current=e(l,c),n.current),[t,e]),s=S.useCallback(()=>{n.current!==void 0&&(t(n.current),n.current=void 0)},[t]);return S.useEffect(()=>s,[s]),[i,s]}const zf=S.createContext(void 0),ob=zf.Provider,Ef=S.createContext(void 0),ib="",ab=Ef.Provider;function xl(){var e;return(e=S.useContext(Ef))!==null&&e!==void 0?e:ib}const Tf=S.createContext(void 0),sb={},lb=Tf.Provider;function cb(){var e;return(e=S.useContext(Tf))!==null&&e!==void 0?e:sb}const Ff=S.createContext(void 0),ub={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},db=Ff.Provider;function $e(){var e;return(e=S.useContext(Ff))!==null&&e!==void 0?e:ub}const Pf=S.createContext(void 0),fb=Pf.Provider;function wl(){var e;return(e=S.useContext(Pf))!==null&&e!==void 0?e:{}}const kl=S.createContext(void 0),pb=()=>{},hb=kl.Provider,at=e=>{var t,n;return(n=(t=S.useContext(kl))===null||t===void 0?void 0:t[e])!==null&&n!==void 0?n:pb},Rf=S.createContext(void 0);Rf.Provider;function Sl(){return S.useContext(Rf)}const mb=e=>(e(0),0),gb=e=>e;function jf(){const{targetDocument:e}=$e(),t=e?.defaultView,n=t?t.requestAnimationFrame:mb,i=t?t.cancelAnimationFrame:gb;return Bf(n,i)}function vb(e){return typeof e=="function"}const Xr=e=>{"use no memo";const[t,n]=S.useState(()=>e.defaultState===void 0?e.initialState:bb(e.defaultState)?e.defaultState():e.defaultState),i=S.useRef(e.state);S.useEffect(()=>{i.current=e.state},[e.state]);const s=S.useCallback(l=>{vb(l)&&l(i.current)},[]);return yb(e.state)?[e.state,s]:[t,n]};function bb(e){return typeof e=="function"}const yb=e=>{const[t]=S.useState(()=>e!==void 0);return t};function na(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const Mf={current:0},xb=S.createContext(void 0);function If(){var e;return(e=S.useContext(xb))!==null&&e!==void 0?e:Mf}function wb(){const e=If()!==Mf,[t,n]=S.useState(e);return na()&&e&&S.useLayoutEffect(()=>{n(!1)},[]),t}const tt=na()?S.useLayoutEffect:S.useEffect,be=e=>{const t=S.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return tt(()=>{t.current=e},[e]),S.useCallback((...n)=>{const i=t.current;return i(...n)},[t])};function Df(){const e=S.useRef(!0);return S.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}function kb(){return S.useReducer(e=>e+1,0)[1]}const Af=S.createContext(void 0);Af.Provider;function Sb(){return S.useContext(Af)||""}function wr(e="fui-",t){const n=If(),i=Sb(),s=Yi.useId;if(s){const l=s(),c=S.useMemo(()=>l.replace(/:/g,""),[l]);return t||`${i}${e}${c}`}return S.useMemo(()=>t||`${i}${e}${++n.current}`,[i,e,t,n])}function ct(...e){const t=S.useCallback(n=>{t.current=n;for(const i of e)typeof i=="function"?i(n):i&&(i.current=n)},[...e]);return t}const Of=(e,t)=>!!e?.contains(t),_b=e=>{const{targetDocument:t}=$e(),n=t?.defaultView,{refs:i,callback:s,element:l,disabled:c,disabledFocusOnIframe:d,contains:f=Of}=e,h=S.useRef(void 0);Nb({element:l,disabled:d||c,callback:s,refs:i,contains:f});const g=S.useRef(!1),b=be(m=>{if(g.current){g.current=!1;return}const y=m.composedPath()[0];i.every(_=>!f(_.current||null,y))&&!c&&s(m)}),x=be(m=>{g.current=i.some(y=>f(y.current||null,m.target))});S.useEffect(()=>{if(c)return;let m=Cb(n);const y=w=>{if(w===m){m=void 0;return}b(w)};return l?.addEventListener("click",y,!0),l?.addEventListener("touchstart",y,!0),l?.addEventListener("contextmenu",y,!0),l?.addEventListener("mousedown",x,!0),h.current=n?.setTimeout(()=>{m=void 0},1),()=>{l?.removeEventListener("click",y,!0),l?.removeEventListener("touchstart",y,!0),l?.removeEventListener("contextmenu",y,!0),l?.removeEventListener("mousedown",x,!0),n?.clearTimeout(h.current),m=void 0}},[b,l,c,x,n])},Cb=e=>{if(e){var t,n;if(typeof e.window=="object"&&e.window===e)return e.event;var i;return(i=(n=e.ownerDocument)===null||n===void 0||(t=n.defaultView)===null||t===void 0?void 0:t.event)!==null&&i!==void 0?i:void 0}},_l="fuiframefocus",Nb=e=>{const{disabled:t,element:n,callback:i,contains:s=Of,pollDuration:l=100,refs:c}=e,d=S.useRef(void 0),f=be(h=>{c.every(b=>!s(b.current||null,h.target))&&!t&&i(h)});S.useEffect(()=>{if(!t)return n?.addEventListener(_l,f,!0),()=>{n?.removeEventListener(_l,f,!0)}},[n,t,f]),S.useEffect(()=>{var h;if(!t)return d.current=n==null||(h=n.defaultView)===null||h===void 0?void 0:h.setInterval(()=>{const g=n?.activeElement;if(g?.tagName==="IFRAME"||g?.tagName==="WEBVIEW"){const b=new CustomEvent(_l,{bubbles:!0});g.dispatchEvent(b)}},l),()=>{var g;n==null||(g=n.defaultView)===null||g===void 0||g.clearInterval(d.current)}},[n,t,l])},Bb=e=>{const{refs:t,callback:n,element:i,disabled:s,contains:l}=e,c=be(d=>{const f=l||((b,x)=>!!b?.contains(x)),h=d.composedPath()[0];t.every(b=>!f(b.current||null,h))&&!s&&n(d)});S.useEffect(()=>{if(!s)return i?.addEventListener("wheel",c),i?.addEventListener("touchmove",c),()=>{i?.removeEventListener("wheel",c),i?.removeEventListener("touchmove",c)}},[c,i,s])},zb=e=>-1,Eb=e=>{};function Cl(){const{targetDocument:e}=$e(),t=e?.defaultView,n=t?t.setTimeout:zb,i=t?t.clearTimeout:Eb;return Bf(n,i)}const Tb=parseInt(S.version,10)>=19;function oa(e){if(e)return Tb?e.props.ref:e.ref}function ut(e,t){return(...n)=>{e?.(...n),t?.(...n)}}function Kt(e,t){var n;const i=e;var s;return!!(!(i==null||(n=i.ownerDocument)===null||n===void 0)&&n.defaultView&&i instanceof i.ownerDocument.defaultView[(s=t?.constructorName)!==null&&s!==void 0?s:"HTMLElement"])}function qf(e){return!!e.type.isFluentTriggerComponent}function Nl(e,t){return typeof e=="function"?e(t):e?Lf(e,t):e||null}function Lf(e,t){if(!S.isValidElement(e)||e.type===S.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(qf(e)){const n=Lf(e.props.children,t);return S.cloneElement(e,void 0,n)}else return S.cloneElement(e,t)}function ia(e){return S.isValidElement(e)?qf(e)?ia(e.props.children):e:null}function Fb(e){return e&&!!e._virtual}function Pb(e){return Fb(e)&&e._virtual.parent||null}function Hf(e,t={}){if(!e)return null;if(!t.skipVirtual){const i=Pb(e);if(i)return i}const n=e.parentNode;return n&&n.nodeType===11?n.host:n}function Bl(e,t){if(!e||!t)return!1;if(e===t)return!0;{const n=new WeakSet;for(;t;){const i=Hf(t,{skipVirtual:n.has(t)});if(n.add(t),i===e)return!0;t=i}}return!1}function eo(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function Rb(e,t){return{...t,[Zn]:e}}function $f(e,t){return function(i,s,l,c,d){return Sf(s)?t(Rb(i,s),null,l,c,d):Sf(i)?t(i,s,l,c,d):e(i,s,l,c,d)}}function Vf(e){const{as:t,[kf]:n,[Zn]:i,[ea]:s,...l}=e,c=l,d=typeof i=="string"?t??i:i;return typeof d!="string"&&t&&(c.as=t),{elementType:d,props:c,renderFunction:s}}const zn=Z0,jb=(e,t,n)=>{const{elementType:i,renderFunction:s,props:l}=Vf(e),c={...l,...t};return s?zn.jsx(S.Fragment,{children:s(i,c)},n):zn.jsx(i,c,n)},Mb=(e,t,n)=>{const{elementType:i,renderFunction:s,props:l}=Vf(e),c={...l,...t};return s?zn.jsx(S.Fragment,{children:s(i,{...c,children:zn.jsxs(S.Fragment,{children:c.children},void 0)})},n):zn.jsxs(i,c,n)},he=$f(zn.jsx,jb),rt=$f(zn.jsxs,Mb),Uf=S.createContext(void 0),Ib={},Db=Uf.Provider,Ab=()=>{const e=S.useContext(Uf);return e??Ib},Ob=(e,t)=>he(db,{value:t.provider,children:he(ob,{value:t.theme,children:he(ab,{value:t.themeClassName,children:he(hb,{value:t.customStyleHooks_unstable,children:he(lb,{value:t.tooltip,children:he(S1,{dir:t.textDirection,children:he(Db,{value:t.iconDirection,children:he(fb,{value:t.overrides_unstable,children:rt(e.root,{children:[na()?null:he("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});const sr="data-tabster",qb="data-tabster-dummy",Wf=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,to={EscapeGroupper:1,Restorer:2,Deloser:3},Qr={Invisible:0,PartiallyVisible:1,Visible:2},En={Source:0,Target:1},lr={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Qe={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Lb={Outside:2};function Bt(e,t){return e.storageEntry(t)?.tabster}function Gf(e,t,n){const i=n||e._noop?void 0:t.getAttribute(sr);let s=e.storageEntry(t),l;if(i)if(i!==s?.attr?.string)try{const h=JSON.parse(i);if(typeof h!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);l={string:i,object:h}}catch{}else return;else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const c=s.tabster||{},d=s.attr?.object||{},f=l?.object||{};for(const h of Object.keys(d))if(!f[h]){if(h==="root"){const g=c[h];g&&e.root.onRoot(g,!0)}switch(h){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const g=c[h];g&&(g.dispose(),delete c[h]);break;case"observed":delete c[h],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete c[h];break}}for(const h of Object.keys(f)){const g=f.sys;switch(h){case"root":c.root?c.root.setProps(f.root):c.root=e.root.createRoot(t,f.root,g),e.root.onRoot(c.root);break;case"focusable":c.focusable=f.focusable;break;case"observed":e.observedElement&&(c.observed=f.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":c.uncontrolled=f.uncontrolled;break;case"outline":e.outline&&(c.outline=f.outline);break;case"sys":c.sys=f.sys;break;default:{const b=e.attrHandlers.get(h);b&&(c[h]=b(t,c[h],f[h],d?.[h],g))}}}l?s.attr=l:(Object.keys(c).length===0&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}const kr=(e,t,n)=>{e.addEventListener(t,n,!0)},Xt=(e,t,n)=>{e.removeEventListener(t,n,!0)};const qt="keyborg:focusin",Vo="keyborg:focusout",Kf=0,Xf=1,Qf=2,zl=3;function Rr(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function Hb(e){const t=e,n=t.document,i=t.HTMLElement.prototype,s=Object.getOwnPropertyDescriptor(i,"focus");if(s?.value?.__keyborgNativeFocus)return;g.__keyborgNativeFocus=b,g.__keyborgFocusDescriptor=s,Object.defineProperty(i,"focus",{configurable:s?.configurable??!0,enumerable:s?.enumerable??!1,writable:!0,value:g});const l=new Set,c=m=>{const y=m.target;if(!y)return;const w=new CustomEvent(Vo,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:m}});y.dispatchEvent(w)},d=m=>{const y=m.target;if(!y)return;let w=m.composedPath()[0];const _=new Set;for(;w;)w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(_.add(w),w=w.host):w=w.parentNode;for(const N of l){const E=N.deref();(!E||!_.has(E))&&(l.delete(N),E&&(Xt(E,"focusin",d),Xt(E,"focusout",c)))}f(y,m.relatedTarget||void 0)},f=(m,y,w)=>{const _=m.shadowRoot;if(_){for(const z of l)if(z.deref()===_)return;kr(_,"focusin",d),kr(_,"focusout",c),l.add(new WeakRef(_));return}const N={relatedTarget:y,originalEvent:w},E=new CustomEvent(qt,{cancelable:!0,bubbles:!0,composed:!0,detail:N});N.isFocusedProgrammatically=m===h[zl]?.deref(),h[zl]=void 0,m.dispatchEvent(E)},h=[d,c,l];t.__keyborgData=h,kr(n,"focusin",d),kr(n,"focusout",c);function g(){const m=t.__keyborgData;return m&&(m[zl]=new WeakRef(this)),b.apply(this,arguments)}function b(){const m=s?.get?s.get.call(this):s?.value;if(typeof m!="function")throw new TypeError("HTMLElement.prototype.focus is not callable");return m.apply(this,arguments)}let x=n.activeElement;for(;x&&x.shadowRoot;)f(x),x=x.shadowRoot.activeElement}function $b(e){const t=e,n=t.HTMLElement.prototype,i=Object.getOwnPropertyDescriptor(n,"focus")?.value,s=i?.__keyborgFocusDescriptor,l=t.__keyborgData;if(l){const c=t.document;Xt(c,"focusin",l[Kf]),Xt(c,"focusout",l[Xf]);for(const d of l[Qf]){const f=d.deref();f&&(Xt(f,"focusin",l[Kf]),Xt(f,"focusout",l[Xf]))}l[Qf].clear(),delete t.__keyborgData}i?.__keyborgNativeFocus&&(s?Object.defineProperty(n,"focus",s):delete n.focus)}let Vb=0;function Ub(e){let t=e,n=!1,i;const s=()=>{const m=t?.__keyborg?.refs;if(m)for(const y of Object.keys(m))m[y]._cb.forEach(w=>w(n))},l=m=>{n!==m&&(n=m,s())},c=m=>{if(m.key==="Tab")return!0;const y=t?.document.activeElement;return!(y&&(y.tagName==="INPUT"||y.tagName==="TEXTAREA"||y.isContentEditable))},d=m=>{if(i||n)return;const y=m.detail;y.relatedTarget&&(y.isFocusedProgrammatically||y.isFocusedProgrammatically===void 0||l(!0))},f=()=>{t&&(i&&t.clearTimeout(i),i=t.setTimeout(()=>{i=void 0},1e3)),l(!1)},h=m=>{m.buttons===0||m.clientX===0&&m.clientY===0&&m.screenX===0&&m.screenY===0||f()},g=m=>{!n&&c(m)&&l(!0)},b=e.document;return kr(b,qt,d),kr(b,"mousedown",h),kr(e,"keydown",g),kr(b,"touchstart",f),kr(b,"touchend",f),kr(b,"touchcancel",f),Hb(e),{dispose:()=>{if(!t)return;i&&(t.clearTimeout(i),i=void 0),$b(t);const m=t.document;Xt(m,qt,d),Xt(m,"mousedown",h),Xt(t,"keydown",g),Xt(m,"touchstart",f),Xt(m,"touchend",f),Xt(m,"touchcancel",f),t=void 0},get isNavigatingWithKeyboard(){return n},set isNavigatingWithKeyboard(m){l(m)}}}function aa(e){const t=e,n="k"+ ++Vb;let i=t,s;const l=[],c=t.__keyborg;c?s=c.core:s=Ub(t);const d={isNavigatingWithKeyboard(){return!!s?.isNavigatingWithKeyboard},subscribe(f){l.push(f)},unsubscribe(f){const h=l.indexOf(f);h>=0&&l.splice(h,1)},setVal(f){s&&(s.isNavigatingWithKeyboard=f)},_cb:l,dispose(){const f=i?.__keyborg;f?.refs[n]&&(delete f.refs[n],Object.keys(f.refs).length===0&&(f.core.dispose(),delete i.__keyborg)),l.length=0,s=void 0,i=void 0}};return c?c.refs[n]=d:t.__keyborg={core:s,refs:{[n]:d}},d}function sa(e){e.dispose()}const Wb="tabster:focusin",Gb="tabster:focusout",El="tabster:movefocus",Kb="tabster:modalizer:active",Xb="tabster:modalizer:inactive",Qb="tabster:mover:state",Yf="tabster:mover:movefocus",Jf="tabster:mover:memorized-element",Tl="tabster:restorer:restore-focus",Yb="tabster:root:focus",Jb="tabster:root:blur",Zb=typeof CustomEvent<"u"?CustomEvent:function(){};class jr extends Zb{constructor(t,n){super(t,{bubbles:!0,cancelable:!0,composed:!0,detail:n}),this.details=n}}class ey extends jr{constructor(t){super(Wb,t)}}class ty extends jr{constructor(t){super(Gb,t)}}class ro extends jr{constructor(t){super(El,t)}}class Zf extends jr{constructor(t){super(Qb,t)}}class ry extends jr{constructor(t){super(Kb,t)}}class ny extends jr{constructor(t){super(Xb,t)}}class ep extends jr{constructor(){super(Tl)}}class oy extends jr{constructor(t){super(Yb,t)}}class iy extends jr{constructor(t){super(Jb,t)}}const ie={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,n,i)=>e.createTreeWalker(t,n,i),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!!(t&&e?.contains(t)),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>e?.firstChild||null,getLastChild:e=>e?.lastChild||null,getNextSibling:e=>e?.nextSibling||null,getPreviousSibling:e=>e?.previousSibling||null,getFirstElementChild:e=>e?.firstElementChild||null,getLastElementChild:e=>e?.lastElementChild||null,getNextElementSibling:e=>e?.nextElementSibling||null,getPreviousElementSibling:e=>e?.previousElementSibling||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,n)=>e.insertBefore(t,n),getSelection:e=>e.ownerDocument?.getSelection()||null,getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};function ay(e){for(const t of Object.keys(e))ie[t]=e[t]}let sy=0;function la(e){const t=e();return t.__tabsterInstanceContext??={elementByUId:{},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0}}function ly(e){const t=e,n=t.__tabsterInstanceContext;n&&(n.elementByUId={},n.containerBoundingRectCache={},n.containerBoundingRectCacheTimer&&e.clearTimeout(n.containerBoundingRectCacheTimer),delete t.__tabsterInstanceContext)}function cy(e){return!!e.querySelector(Wf)}class Qt{constructor(t,n){this._ref=new WeakRef(t),this._data=n}get(){const t=this._ref;let n;return t&&(n=t.deref(),n||delete this._ref),n}getData(){return this._data}}function Fl(e,t,n){if(t.nodeType===Node.ELEMENT_NODE)return ie.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,{acceptNode:n})}function tp(e,t){let n=t.__tabsterCacheId;const i=la(e),s=n?i.containerBoundingRectCache[n]:void 0;if(s)return s.rect;const l=t.ownerDocument&&t.ownerDocument.documentElement;if(!l)return new DOMRect;let c=0,d=0,f=l.clientWidth,h=l.clientHeight;if(t!==l){const b=t.getBoundingClientRect();c=Math.max(c,b.left),d=Math.max(d,b.top),f=Math.min(f,b.right),h=Math.min(h,b.bottom)}const g=new DOMRect(c<f?c:-1,d<h?d:-1,c<f?f-c:0,d<h?h-d:0);return n||(n="r-"+ ++i.lastContainerBoundingRectCacheId,t.__tabsterCacheId=n),i.containerBoundingRectCache[n]={rect:g,element:t},i.containerBoundingRectCacheTimer||(i.containerBoundingRectCacheTimer=window.setTimeout(()=>{i.containerBoundingRectCacheTimer=void 0;for(const b of Object.keys(i.containerBoundingRectCache))delete i.containerBoundingRectCache[b].element.__tabsterCacheId;i.containerBoundingRectCache={}},50)),g}function rp(e,t,n){const i=np(t);if(!i)return!1;const s=tp(e,i),l=t.getBoundingClientRect(),c=l.height*(1-n),d=Math.max(0,s.top-l.top),f=Math.max(0,l.bottom-s.bottom),h=d+f;return h===0||h<=c}function uy(e,t,n){const i=np(t);if(i){const s=tp(e,i),l=t.getBoundingClientRect();n?i.scrollTop+=l.top-s.top:i.scrollTop+=l.bottom-s.bottom}}function np(e){const t=e.ownerDocument;if(t){for(let n=ie.getParentElement(e);n;n=ie.getParentElement(n))if(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)return n;return t.documentElement}return null}function dy(e){e.__shouldIgnoreFocus=!0}function op(e){return!!e.__shouldIgnoreFocus}function fy(e){const t=new Uint32Array(4);return e.crypto.getRandomValues(t),Array.from(t,n=>n.toString(36)).join("")+"|"+(++sy).toString(36)+"|"+Date.now().toString(36)}function ca(e,t){const n=la(e),i=t.__tabsterElementUID??=fy(e());return!n.elementByUId[i]&&ap(t.ownerDocument,t)&&(n.elementByUId[i]=new Qt(t)),i}function ip(e,t){const n=la(e).elementByUId;for(const i of Object.keys(n)){const s=n[i]?.get();t&&s&&!ie.nodeContains(t,s)||delete n[i]}}function ap(e,t){return ie.nodeContains(e?.body,t)}function sp(e,t){return typeof e.matches=="function"&&e.matches(t)}let py=0;class ua{constructor(t,n,i){this._tabster=t,this._element=new Qt(n),this._props={...i},this.id="i"+ ++py}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}function lp(e){let t=null;for(let n=ie.getLastElementChild(e);n;n=ie.getLastElementChild(n))t=n;return t||void 0}function Pl(e,t,n,i){const s=e.storageEntry(t,!0);let l=!1;if(!s.aug){if(i===void 0)return l;s.aug={}}if(i===void 0){if(n in s.aug){const c=s.aug[n];delete s.aug[n],c===null?t.removeAttribute(n):t.setAttribute(n,c),l=!0}}else{let c;n in s.aug||(c=t.getAttribute(n)),c!==void 0&&c!==i&&(s.aug[n]=c,i===null?t.removeAttribute(n):t.setAttribute(n,i),l=!0)}return i===void 0&&Object.keys(s.aug).length===0&&(delete s.aug,e.storageEntry(t,!1)),l}function hy(e){const t=e.ownerDocument,n=t.defaultView?.getComputedStyle(e);return e.offsetParent===null&&t.body!==e&&n?.position!=="fixed"||n?.visibility==="hidden"||n?.position==="fixed"&&(n.display==="none"||e.parentElement?.offsetParent===null&&t.body!==e.parentElement)}function Rl(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function my(e){if(!Rl(e))return;const t=e.name,n=[];let i;for(const s of ie.getElementsByName(e,t))if(Rl(s)){const l=s;n.push(l),l.checked&&(i=l)}return{name:t,buttons:new Set(n),checked:i}}function wt(e,t,n,i){e?.addEventListener(t,n,i)}function gt(e,t,n,i){e?.removeEventListener(t,n,i)}function zt(e,t){return!!e&&e.dispatchEvent(t)}const jl=100;class da{constructor(t,n,i,s,l){this._focusIn=h=>{if(this._fixedTarget){const b=this._fixedTarget.get();b&&Rr(b);return}const g=this.input;if(this.onFocusIn&&g){const b=h.relatedTarget;this.onFocusIn(this,this._isBackward(!0,g,b),b)}},this._focusOut=h=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const g=this.input;if(this.onFocusOut&&g){const b=h.relatedTarget;this.onFocusOut(this,this._isBackward(!1,g,b),b)}};const c=t(),d=c.document.createElement("i");d.tabIndex=0,d.setAttribute("role","none"),d.setAttribute(qb,""),d.setAttribute("aria-hidden","true");const f=d.style;f.position="fixed",f.width=f.height="1px",f.opacity="0.001",f.zIndex="-1",f.setProperty("content-visibility","hidden"),dy(d),this.input=d,this.isFirst=i.isFirst,this.isOutside=n,this._isPhantom=i.isPhantom??!1,this._fixedTarget=l,wt(d,"focusin",this._focusIn),wt(d,"focusout",this._focusOut),d.__tabsterDummyContainer=s,this._isPhantom&&(this._disposeTimer=c.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(c.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){this._clearDisposeTimeout&&this._clearDisposeTimeout();const t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,gt(t,"focusin",this._focusIn),gt(t,"focusout",this._focusOut),delete t.__tabsterDummyContainer,ie.getParentNode(t)?.removeChild(t))}setTopLeft(t,n){const i=this.input?.style;i&&(i.top=`${t}px`,i.left=`${n}px`)}_isBackward(t,n,i){return t&&!i?!this.isFirst:!!(i&&n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING)}}const Ml={Root:1,Modalizer:2,Mover:3};class Uo{constructor(t,n,i,s,l,c){this._element=n,this._instance=new vy(t,n,this,i,s,l,c)}_setHandlers(t,n){this._onFocusIn=t,this._onFocusOut=n}moveOut(t){this._instance?.moveOut(t)}moveOutWithDefaultAction(t,n){this._instance?.moveOutWithDefaultAction(t,n)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){this._instance?.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,n,i,s,l){const d=new da(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(d){let f,h;if(n.tagName==="BODY")f=n,h=i&&s||!i&&!s?ie.getFirstElementChild(n):null;else{i&&(!s||s&&!t.focusable.isFocusable(n,!1,!0,!0))?(f=n,h=s?n.firstElementChild:null):(f=ie.getParentElement(n),h=i&&s||!i&&!s?n:ie.getNextElementSibling(n));let g,b;do g=i&&s||!i&&!s?ie.getPreviousElementSibling(h):h,b=Wo(g),b===n?h=i&&s||!i&&!s?g:ie.getNextElementSibling(g):b=null;while(b)}f&&zt(f,new ro({by:"root",owner:f,next:null,relatedEvent:l}))&&(ie.insertBefore(f,d,h),Rr(d))}}static addPhantomDummyWithTarget(t,n,i,s){const c=new da(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Qt(s)).input;if(c){let d,f;cy(n)&&!i?(d=n,f=ie.getFirstElementChild(n)):(d=ie.getParentElement(n),f=i?n:ie.getNextElementSibling(n)),d&&ie.insertBefore(d,c,f)}}}class gy{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=n=>{this._changedParents.has(n)||(this._changedParents.add(n),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=this._win?.().setTimeout(()=>{delete this._updateDummyInputsTimer;for(const i of this._dummyElements){const s=i.get();if(s){const l=this._dummyCallbacks.get(s);if(l){const c=ie.getParentNode(s);(!c||this._changedParents.has(c))&&l()}}}this._changedParents=new WeakSet},jl)))},this._win=t}add(t,n){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new Qt(t)),this._dummyCallbacks.set(t,n),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(n=>{const i=n.get();return i&&i!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){const t=this._win?.();this._updateTimer&&(t?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(t?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){this._updateTimer||(this._updateTimer=this._win?.().setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+jl<=Date.now()){const t=new Map,n=[];for(const i of this._updateQueue)n.push(i(t));this._updateQueue.clear();for(const i of n)i();t.clear()}else this._scheduledUpdatePositions()},jl))}}class vy{constructor(t,n,i,s,l,c,d){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(m,y,w)=>{this._onFocus(!0,m,y,w)},this._onFocusOut=(m,y,w)=>{this._onFocus(!1,m,y,w)},this.moveOut=m=>{const y=this._firstDummy,w=this._lastDummy;if(y&&w){this._ensurePosition();const _=y.input,N=w.input,E=this._element?.get();if(_&&N&&E){let z;m?(_.tabIndex=0,z=_):(N.tabIndex=0,z=N),z&&Rr(z)}}},this.moveOutWithDefaultAction=(m,y)=>{const w=this._firstDummy,_=this._lastDummy;if(w&&_){this._ensurePosition();const N=w.input,E=_.input,z=this._element?.get();if(N&&E&&z){let P;m?!w.isOutside&&this._tabster.focusable.isFocusable(z,!0,!0,!0)?P=z:(w.useDefaultAction=!0,N.tabIndex=0,P=N):(_.useDefaultAction=!0,E.tabIndex=0,P=E),P&&zt(z,new ro({by:"root",owner:z,next:null,relatedEvent:y}))&&Rr(P)}}},this.setTabbable=(m,y)=>{for(const _ of this._wrappers)if(_.manager===m){_.tabbable=y;break}const w=this._getCurrent();if(w){const _=w.tabbable?0:-1;let N=this._firstDummy?.input;N&&(N.tabIndex=_),N=this._lastDummy?.input,N&&(N.tabIndex=_)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=m=>{const y=this._firstDummy?.input||this._lastDummy?.input,w=this._transformElements,_=new Set;let N=0,E=0;const z=this._getWindow();for(let P=y;P&&P.nodeType===Node.ELEMENT_NODE;P=ie.getParentElement(P)){let L=m.get(P);if(L===void 0){const T=z.getComputedStyle(P).transform;T&&T!=="none"&&(L={scrollTop:P.scrollTop,scrollLeft:P.scrollLeft}),m.set(P,L||null)}L&&(_.add(P),w.has(P)||wt(P,"scroll",this._addTransformOffsets),N+=L.scrollTop,E+=L.scrollLeft)}for(const P of w)_.has(P)||gt(P,"scroll",this._addTransformOffsets);return this._transformElements=_,()=>{this._firstDummy?.setTopLeft(N,E),this._lastDummy?.setTopLeft(N,E)}};const f=n.get();if(!f)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=d;const h=f.__tabsterDummy;if((h||this)._wrappers.push({manager:i,priority:s,tabbable:!0}),h)return h;f.__tabsterDummy=this;const g=l?.dummyInputsPosition,b=f.tagName;this._isOutside=g?g===Lb.Outside:(c||b==="UL"||b==="OL"||b==="TABLE")&&!(b==="LI"||b==="TD"||b==="TH"),this._firstDummy=new da(this._getWindow,this._isOutside,{isFirst:!0},n),this._lastDummy=new da(this._getWindow,this._isOutside,{isFirst:!1},n);const x=this._firstDummy.input;x&&t._dummyObserver.add(x,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=n,this._addDummyInputs()}dispose(t,n){if((this._wrappers=this._wrappers.filter(s=>s.manager!==t&&!n)).length===0){delete(this._element?.get()).__tabsterDummy;for(const c of this._transformElements)gt(c,"scroll",this._addTransformOffsets);this._transformElements.clear();const s=this._getWindow();this._addTimer&&(s.clearTimeout(this._addTimer),delete this._addTimer);const l=this._firstDummy?.input;l&&this._tabster._dummyObserver.remove(l),this._firstDummy?.dispose(),this._lastDummy?.dispose()}}_onFocus(t,n,i,s){const l=this._getCurrent();l&&(!n.useDefaultAction||this._callForDefaultAction)&&l.manager.getHandler(t)?.(n,i,s)}_getCurrent(){return this._wrappers.sort((t,n)=>t.tabbable!==n.tabbable?t.tabbable?-1:1:t.priority-n.priority),this._wrappers[0]}_ensurePosition(){const t=this._element?.get(),n=this._firstDummy?.input,i=this._lastDummy?.input;if(!(!t||!n||!i))if(this._isOutside){const s=ie.getParentNode(t);if(s){const l=ie.getNextSibling(t);l!==i&&ie.insertBefore(s,i,l),ie.getPreviousElementSibling(t)!==n&&ie.insertBefore(s,n,t)}}else{ie.getLastElementChild(t)!==i&&ie.appendChild(t,i);const s=ie.getFirstElementChild(t);s&&s!==n&&s.parentNode&&ie.insertBefore(s.parentNode,n,s)}}}function Wo(e){return e?.__tabsterDummyContainer?.get()||null}function Il(e,t){const n=JSON.stringify(e);return t===!0?n:{[sr]:n}}function by(e,t){for(const n of Object.keys(t)){const i=t[n];i?e[n]=i:delete e[n]}}function yy(e,t,n){let i;{const s=e.getAttribute(sr);if(s)try{i=JSON.parse(s)}catch{}}i||(i={}),by(i,t),Object.keys(i).length>0?e.setAttribute(sr,Il(i,!0)):e.removeAttribute(sr)}class cp extends Uo{constructor(t,n,i,s){super(t,n,Ml.Root,s,void 0,!0),this._onDummyInputFocus=l=>{if(l.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const c=this._element.get();if(c){this._setFocused(!0);const d=this._tabster.focusedElement.getFirstOrLastTabbable(l.isFirst,{container:c,ignoreAccessibility:!0});if(d){Rr(d);return}}l.input?.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=i}}class xy extends ua{constructor(t,n,i,s,l){super(t,n,s),this._isFocused=!1,this._setFocused=h=>{if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===h)return;const g=this._element.get();g&&(h?(this._isFocused=!0,this._dummyManager?.setTabbable(!1),zt(g,new oy({element:g}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{delete this._setFocusedTimer,this._isFocused=!1,this._dummyManager?.setTabbable(!0),zt(g,new iy({element:g}))},0))},this._onFocusIn=h=>{const g=this._tabster.getParent,b=this._element.get();let x=h.composedPath()[0];do{if(x===b){this._setFocused(!0);return}x=x&&g(x)}while(x)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=i;const c=t.getWindow;this.uid=ca(c,n),this._sys=l,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const f=c().document;wt(f,qt,this._onFocusIn),wt(f,Vo,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new cp(this._tabster,this._element,this._setFocused,this._sys))}dispose(){this._onDispose(this);const t=this._tabster.getWindow(),n=t.document;gt(n,qt,this._onFocusIn),gt(n,Vo,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._dummyManager?.dispose(),this._remove()}moveOutWithDefaultAction(t,n){const i=this._dummyManager;if(i)i.moveOutWithDefaultAction(t,n);else{const s=this.getElement();s&&cp.moveWithPhantomDummy(this._tabster,s,!0,t,n)}}_add(){}_remove(){}}class Ue{constructor(t,n){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{const i=this._win().document,s=i.body;if(s){this._autoRootUnwait(i);const l=this._autoRoot;if(l)return yy(s,{root:l}),Gf(this._tabster,s),Bt(this._tabster,s)?.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,wt(i,"readystatechange",this._autoRootCreate))},this._onRootDispose=i=>{delete this._roots[i.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=n,t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){gt(t,"readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(n=>{this._roots[n]&&(this._roots[n].dispose(),delete this._roots[n])}),this.rootById={}}createRoot(t,n,i){const s=new xy(this._tabster,t,this._onRootDispose,n,i);return this._roots[s.id]=s,this._forceDummy&&s.addDummyInputs(),s}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const n of Object.keys(t))t[n].addDummyInputs()}static getRootByUId(t,n){const i=t().__tabsterInstance;return i&&i.root.rootById[n]}static getTabsterContext(t,n,i={}){if(!n.ownerDocument)return;const{checkRtl:s,referenceElement:l}=i,c=t.getParent;t.drainInitQueue();let d,f,h,g,b=!1,x,m,y,w,_=l||n;const N={};for(;_&&(!d||s);){const z=Bt(t,_);if(s&&y===void 0){const O=_.dir;O&&(y=O.toLowerCase()==="rtl")}if(!z){_=c(_);continue}const P=_.tagName;(z.uncontrolled||P==="IFRAME"||P==="WEBVIEW")&&t.focusable.isVisible(_)&&(w=_),!g&&z.focusable?.excludeFromMover&&!h&&(b=!0);const L=z.modalizer,T=z.groupper,D=z.mover;!f&&L&&(f=L),!h&&T&&(!f||L)&&(f?(!T.isActive()&&T.getProps().tabbability&&f.userId!==t.modalizer?.activeId&&(f=void 0,h=T),m=T):h=T),!g&&D&&(!f||L)&&(!T||_!==n)&&_.contains(n)&&(g=D,x=!!h&&h!==T),z.root&&(d=z.root),z.focusable?.ignoreKeydown&&Object.assign(N,z.focusable.ignoreKeydown),_=c(_)}if(!d){const z=t.root;z._autoRoot&&n.ownerDocument?.body&&(d=z._autoRootCreate())}return h&&!g&&(x=!0),d?{root:d,modalizer:f,groupper:h,mover:g,groupperBeforeMover:x,modalizerInGroupper:m,rtl:s?!!y:void 0,uncontrolled:w,excludedFromMover:b,ignoreKeydown:z=>!!N[z.key]}:void 0}static getRoot(t,n){const i=t.getParent;for(let s=n;s;s=i(s)){const l=Bt(t,s)?.root;if(l)return l}}onRoot(t,n){n?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}class wy{constructor(t){this._tabster=t}dispose(){}getProps(t){const n=Bt(this._tabster,t);return n&&n.focusable||{}}isFocusable(t,n,i,s){return sp(t,Wf)&&(n||t.tabIndex!==-1)?(i||this.isVisible(t))&&(s||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||hy(t))return!1;const n=t.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0)}isAccessible(t){for(let n=t;n;n=ie.getParentElement(n)){const i=Bt(this._tabster,n);if(this._isHidden(n)||!i?.focusable?.ignoreAriaDisabled&&this._isDisabled(n))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){const n=t.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!this._tabster.modalizer?.isAugmented(t))}findFirst(t,n){return this.findElement({...t},n)}findLast(t,n){return this.findElement({isBackward:!0,...t},n)}findNext(t,n){return this.findElement({...t},n)}findPrev(t,n){return this.findElement({...t,isBackward:!0},n)}findDefault(t,n){return this.findElement({...t,acceptCondition:i=>this.isFocusable(i,t.includeProgrammaticallyFocusable)&&!!this.getProps(i).isDefault},n)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,n){const i=this._findElements(!1,t,n);return i&&i[0]}_findElements(t,n,i){const{container:s,currentElement:l=null,includeProgrammaticallyFocusable:c,useActiveModalizer:d,ignoreAccessibility:f,modalizerId:h,isBackward:g,onElement:b}=n;i||(i={});const x=[];let{acceptCondition:m}=n;const y=!!m;if(!s)return null;m||(m=E=>this.isFocusable(E,c,!1,f));const w={container:s,modalizerUserId:h===void 0&&d?this._tabster.modalizer?.activeId:h||Ue.getTabsterContext(this._tabster,s)?.modalizer?.userId,from:l||s,isBackward:g,isFindAll:t,acceptCondition:m,hasCustomCondition:y,includeProgrammaticallyFocusable:c,ignoreAccessibility:f,cachedGrouppers:{},cachedRadioGroups:{}},_=Fl(s.ownerDocument,s,E=>this._acceptElement(E,w));if(!_)return null;const N=E=>{const z=w.foundElement??w.foundBackward;return z&&x.push(z),t?z&&(w.found=!1,delete w.foundElement,delete w.foundBackward,delete w.fromCtx,w.from=z,b&&!b(z))?!1:!!(z||E):(z&&i&&(i.uncontrolled=Ue.getTabsterContext(this._tabster,z)?.uncontrolled),!!(E&&!z))};if(l||(i.outOfDOMOrder=!0),l&&ie.nodeContains(s,l))_.currentNode=l;else if(g){const E=lp(s);if(!E)return null;if(this._acceptElement(E,w)===NodeFilter.FILTER_ACCEPT&&!N(!0))return w.skippedFocusable&&(i.outOfDOMOrder=!0),x;_.currentNode=E}do g?_.previousNode():_.nextNode();while(N());return w.skippedFocusable&&(i.outOfDOMOrder=!0),x.length?x:null}_acceptElement(t,n){if(n.found)return NodeFilter.FILTER_ACCEPT;const i=n.foundBackward;if(i&&(t===i||!ie.nodeContains(i,t)))return n.found=!0,n.foundElement=i,NodeFilter.FILTER_ACCEPT;const s=n.container;if(t===s)return NodeFilter.FILTER_SKIP;if(!ie.nodeContains(s,t)||Wo(t)||ie.nodeContains(n.rejectElementsFrom,t))return NodeFilter.FILTER_REJECT;const l=n.currentCtx=Ue.getTabsterContext(this._tabster,t);if(!l)return NodeFilter.FILTER_SKIP;if(op(t))return this.isFocusable(t,void 0,!0,!0)&&(n.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!n.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return this.isVisible(t)&&l.modalizer?.userId===this._tabster.modalizer?.activeId?(n.found=!0,n.rejectElementsFrom=n.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!n.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(n.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,d=n.fromCtx;d||(d=n.fromCtx=Ue.getTabsterContext(this._tabster,n.from));const f=d?.mover;let h=l.groupper,g=l.mover;if(c=this._tabster.modalizer?.acceptElement(t,n),c!==void 0&&(n.skippedFocusable=!0),c===void 0&&(h||g||f)){const b=h?.getElement(),x=f?.getElement();let m=g?.getElement();if(m&&ie.nodeContains(x,m)&&ie.nodeContains(s,x)&&(!b||!g||ie.nodeContains(x,b))&&(g=f,m=x),b){if(b===s||!ie.nodeContains(s,b))h=void 0;else if(!ie.nodeContains(b,t))return NodeFilter.FILTER_REJECT}if(m){if(!ie.nodeContains(s,m))g=void 0;else if(!ie.nodeContains(m,t))return NodeFilter.FILTER_REJECT}h&&g&&(m&&b&&!ie.nodeContains(b,m)?g=void 0:h=void 0),h&&(c=h.acceptElement(t,n)),g&&(c=g.acceptElement(t,n))}if(c===void 0&&(c=n.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(n.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!n.found){if(!n.isFindAll&&Rl(t)&&!t.checked){const b=t.name;let x=n.cachedRadioGroups[b];if(x||(x=my(t),x&&(n.cachedRadioGroups[b]=x)),x?.checked&&x.checked!==t)return NodeFilter.FILTER_SKIP}n.isBackward?(n.foundBackward=t,c=NodeFilter.FILTER_SKIP):(n.found=!0,n.foundElement=t)}return c}}const dt={Tab:"Tab",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};class up{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const n=this._callbacks;n.indexOf(t)<0&&n.push(t)}subscribeFirst(t){const n=this._callbacks,i=n.indexOf(t);i>=0&&n.splice(i,1),n.unshift(t)}unsubscribe(t){const n=this._callbacks.indexOf(t);n>=0&&this._callbacks.splice(n,1)}setVal(t,n){this._val!==t&&(this._val=t,this._callCallbacks(t,n))}getVal(){return this._val}trigger(t,n){this._callCallbacks(t,n)}_callCallbacks(t,n){this._callbacks.forEach(i=>i(t,n))}}function ky(e,t){const n=e.getParent;let i=t;do{const s=Bt(e,i)?.uncontrolled;if(s&&e.uncontrolled.isUncontrolledCompletely(i,!!s.completely))return i;i=n(i)}while(i)}const dp={[to.Restorer]:0,[to.Deloser]:1,[to.EscapeGroupper]:2},bt=class bt extends up{constructor(t,n){super(),this._init=()=>{const i=this._win(),s=i.document;wt(s,qt,this._onFocusIn,!0),wt(s,Vo,this._onFocusOut,!0),wt(i,"keydown",this._onKeyDown,!0);const l=ie.getActiveElement(s);l&&l!==s.body&&this._setFocusedElement(l),this.subscribe(this._onChanged)},this._onFocusIn=i=>{const s=i.composedPath()[0];s&&this._setFocusedElement(s,i.detail.relatedTarget,i.detail.isFocusedProgrammatically)},this._onFocusOut=i=>{this._setFocusedElement(void 0,i.detail?.originalEvent.relatedTarget)},this._validateFocusedElement=i=>{},this._onKeyDown=i=>{if(i.key!==dt.Tab||i.ctrlKey)return;const s=this.getVal();if(!s||!s.ownerDocument||s.contentEditable==="true")return;const l=this._tabster,c=l.controlTab,d=Ue.getTabsterContext(l,s);if(!d||d.ignoreKeydown(i))return;const f=i.shiftKey,h=bt.findNextTabbable(l,d,void 0,s,void 0,f,!0),g=d.root.getElement();if(!g)return;const b=h?.element,x=ky(l,s);if(b){const m=h.uncontrolled;if(d.uncontrolled||ie.nodeContains(m,s)){if(!h.outOfDOMOrder&&m===d.uncontrolled||x&&!ie.nodeContains(x,b))return;Uo.addPhantomDummyWithTarget(l,s,f,b);return}if(m&&l.focusable.isVisible(m)||b.tagName==="IFRAME"&&l.focusable.isVisible(b)){zt(g,new ro({by:"root",owner:g,next:b,relatedEvent:i}))&&Uo.moveWithPhantomDummy(l,m??b,!1,f,i);return}(c||h?.outOfDOMOrder)&&zt(g,new ro({by:"root",owner:g,next:b,relatedEvent:i}))&&(i.preventDefault(),i.stopImmediatePropagation(),Rr(b))}else!x&&zt(g,new ro({by:"root",owner:g,next:null,relatedEvent:i}))&&d.root.moveOutWithDefaultAction(f,i)},this._onChanged=(i,s)=>{if(i)zt(i,new ey(s));else{const l=this._lastVal?.get();if(l){const c={...s},f=Ue.getTabsterContext(this._tabster,l)?.modalizer?.userId;f&&(c.modalizerId=f),zt(l,new ty(c))}}},this._tabster=t,this._win=n,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win(),n=t.document;gt(n,qt,this._onFocusIn,!0),gt(n,Vo,this._onFocusOut,!0),gt(t,"keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const i=this._asyncFocus;i&&(t.clearTimeout(i.timeout),delete this._asyncFocus),delete bt._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,n){let i=bt._lastResetElement,s=i&&i.get();s&&ie.nodeContains(n,s)&&delete bt._lastResetElement,s=t._nextVal?.element?.get(),s&&ie.nodeContains(n,s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&ie.nodeContains(n,s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){let t=this._lastVal?.get();return(!t||t&&!ap(t.ownerDocument,t))&&(this._lastVal=t=void 0),t}focus(t,n,i,s){if(!this._tabster.focusable.isFocusable(t,n,!1,i))return!1;const l=typeof s=="boolean"?{preventScroll:s}:s;return t.focus(l),!0}focusDefault(t){const n=this._tabster.focusable.findDefault({container:t});return n?(this._tabster.focusedElement.focus(n),!0):!1}getFirstOrLastTabbable(t,n){const{container:i,ignoreAccessibility:s}=n;let l;if(i){const c=Ue.getTabsterContext(this._tabster,i);c&&(l=bt.findNextTabbable(this._tabster,c,i,void 0,void 0,!t,s)?.element)}return l&&!ie.nodeContains(i,l)&&(l=void 0),l||void 0}_focusFirstOrLast(t,n){const i=this.getFirstOrLastTabbable(t,n);return i?(this.focus(i,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const n=t.getAttribute("tabindex"),i=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),bt._lastResetElement=new Qt(t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",n),this._setOrRemoveAttribute(t,"aria-hidden",i)}return!0}requestAsyncFocus(t,n,i){const s=this._tabster.getWindow(),l=this._asyncFocus;if(l){if(dp[t]>dp[l.source])return;s.clearTimeout(l.timeout)}this._asyncFocus={source:t,callback:n,timeout:s.setTimeout(()=>{this._asyncFocus=void 0,n()},i)}}cancelAsyncFocus(t){const n=this._asyncFocus;n?.source===t&&(this._tabster.getWindow().clearTimeout(n.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(t,n,i){i===null?t.removeAttribute(n):t.setAttribute(n,i)}_setFocusedElement(t,n,i){if(this._tabster._noop)return;const s={relatedTarget:n};if(t){const c=bt._lastResetElement?.get();if(bt._lastResetElement=void 0,c===t||op(t))return;s.isFocusedProgrammatically=i;const f=Ue.getTabsterContext(this._tabster,t)?.modalizer?.userId;f&&(s.modalizerId=f)}const l=this._nextVal={element:t?new Qt(t):void 0,detail:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===l&&this.setVal(t,s),this._nextVal=void 0}setVal(t,n){super.setVal(t,n),t&&(this._lastVal=new Qt(t))}static findNextTabbable(t,n,i,s,l,c,d){const f=i||n.root.getElement();if(!f)return null;let h=null;const g=bt._isTabbingTimer,b=t.getWindow();g&&b.clearTimeout(g),bt.isTabbing=!0,bt._isTabbingTimer=b.setTimeout(()=>{delete bt._isTabbingTimer,bt.isTabbing=!1},0);const x=n.modalizer,m=n.groupper,y=n.mover,w=_=>{if(h=_.findNextTabbable(s,l,c,d),s&&!h?.element){const N=_!==x&&ie.getParentElement(_.getElement());if(N){const E=Ue.getTabsterContext(t,s,{referenceElement:N});if(E){const z=_.getElement(),P=c?z:z&&lp(z)||z;P&&(h=bt.findNextTabbable(t,E,i,P,N,c,d),h&&(h.outOfDOMOrder=!0))}}}};if(m&&y)w(n.groupperBeforeMover?m:y);else if(m)w(m);else if(y)w(y);else if(x)w(x);else{const _={container:f,currentElement:s,referenceElement:l,ignoreAccessibility:d,useActiveModalizer:!0},N={};h={element:t.focusable[c?"findPrev":"findNext"](_,N),outOfDOMOrder:N.outOfDOMOrder,uncontrolled:N.uncontrolled}}return h}};bt.isTabbing=!1;let Tn=bt;class Sy extends up{constructor(t){super(),this._onChange=n=>{this.setVal(n,void 0)},this._keyborg=aa(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),sa(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){this._keyborg?.setVal(t)}isNavigatingWithKeyboard(){return!!this._keyborg?.isNavigatingWithKeyboard()}}function _y(e,t,n,i){if(typeof MutationObserver>"u")return()=>{};const s=t.getWindow;let l;const c=g=>{const b=new Set;for(const x of g){const m=x.target,y=x.removedNodes,w=x.addedNodes;if(x.type==="attributes")x.attributeName===sr&&(b.has(m)||n(t,m));else{for(const _ of y)b.add(_),d(_,!0),t._dummyObserver.domChanged?.(m);for(const _ of w)d(_),t._dummyObserver.domChanged?.(m)}}b.clear(),t.modalizer?.hiddenUpdate()};function d(g,b){l||(l=la(s).elementByUId),f(g,b);const x=Fl(e,g,m=>f(m,b));if(x)for(;x.nextNode(););}function f(g,b){if(!g.getAttribute)return NodeFilter.FILTER_SKIP;const x=g.__tabsterElementUID;return x&&l&&(b?delete l[x]:l[x]??=new Qt(g)),(Bt(t,g)||g.hasAttribute(sr))&&n(t,g,b),NodeFilter.FILTER_SKIP}const h=ie.createMutationObserver(c);return i&&d(s().document.body),h.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[sr]}),()=>{h.disconnect()}}class Cy{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,n){const i=this._isUncontrolledCompletely?.(t,n);return i===void 0?n:i}}let Ny=0;const Dl="aria-hidden";class By extends Uo{constructor(t,n,i){super(n,t,Ml.Modalizer,i),this._setHandlers((s,l)=>{const c=t.get(),d=c&&Ue.getRoot(n,c)?.getElement(),f=s.input;let h;if(d&&f){const g=Wo(f),b=Ue.getTabsterContext(n,g||f);b&&(h=Tn.findNextTabbable(n,b,d,f,void 0,l,!0)?.element),h&&Rr(h)}})}}class zy extends ua{constructor(t,n,i,s,l,c){super(t,n,s),this._wasFocused=0,this.userId=s.id,this._onDispose=i,this._activeElements=c,t.controlTab||(this.dummyManager=new By(this._element,t,l))}makeActive(t){if(this._isActive!==t){this._isActive=t;const n=this.getElement();if(n){const i=this._activeElements,s=i.map(l=>l.get()).indexOf(n);t?s<0&&i.push(new Qt(n)):s>=0&&i.splice(s,1)}this._dispatchEvent(t)}}focused(t){return t||(this._wasFocused=++Ny),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){this.makeActive(!1),this._onDispose(this),this.dummyManager?.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){return ie.nodeContains(this.getElement(),t)}findNextTabbable(t,n,i,s){if(!this.getElement())return null;const c=this._tabster;let d=null,f=!1,h;const g=t&&Ue.getRoot(c,t)?.getElement();if(g){const b={container:g,currentElement:t,referenceElement:n,ignoreAccessibility:s,useActiveModalizer:!0},x={};d=c.focusable[i?"findPrev":"findNext"](b,x),!d&&this._props.isTrapped&&c.modalizer?.activeId?(d=c.focusable[i?"findLast":"findFirst"]({container:g,ignoreAccessibility:s,useActiveModalizer:!0},x),d===null&&(d=t),f=!0):f=!!x.outOfDOMOrder,h=x.uncontrolled}return{element:d,uncontrolled:h,outOfDOMOrder:f}}_dispatchEvent(t,n){const i=this.getElement();let s=!1;if(i){const l=n?this._activeElements.map(c=>c.get()):[i];for(const c of l)if(c){const d={id:this.userId,element:i},f=t?new ry(d):new ny(d);zt(c,f),f.defaultPrevented&&(s=!0)}}return s}_remove(){}}class Ey{constructor(t,n,i){this._onModalizerDispose=l=>{const c=l.id,d=l.userId,f=this._parts[d];if(delete this._modalizers[c],f&&(delete f[c],Object.keys(f).length===0)){delete this._parts[d];const h=this._activationHistory,g=[];let b;for(let x=h.length;x--;){const m=h[x];m!==d&&m!==b&&(b=m,(m||g.length>0)&&g.unshift(m))}if(this._activationHistory=g,this.activeId===d){const x=g[0],m=x?Object.values(this._parts[x])[0]:void 0;this.setActive(m)}}},this._onKeyDown=l=>{if(l.key!==dt.Escape)return;const c=this._tabster,d=c.focusedElement.getFocusedElement();if(d){const f=Ue.getTabsterContext(c,d),h=f?.modalizer;if(f&&!f.groupper&&h?.isActive()&&!f.ignoreKeydown(l)){const g=h.userId;if(g){const b=this._parts[g];if(b){const x=Object.keys(b).map(m=>{const y=b[m],w=y.getElement();let _;return w&&(_=Bt(c,w)?.groupper),y&&w&&_?{el:w,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(m=>m.focusedSince>0).sort((m,y)=>m.focusedSince>y.focusedSince?-1:m.focusedSince<y.focusedSince?1:0);if(x.length){const m=x[0].el;m&&c.groupper?.handleKeyPress(m,l,!0)}}}}}},this._onFocus=(l,c)=>{const d=this._tabster,f=l&&Ue.getTabsterContext(d,l);if(!f||!l)return;const h=this._augMap;for(let m=l;m;m=ie.getParentElement(m))h.has(m)&&(h.delete(m),Pl(d,m,Dl));let g=f.modalizer;const b=Bt(d,l),x=b?.modalizer;if(x&&(x.focused(),x.userId===this.activeId&&b.groupper)){const m=d.getParent(l),y=m&&Ue.getTabsterContext(d,m)?.modalizer;if(y)g=y;else{this.setActive(void 0);return}}if(g?.focused(),g?.userId===this.activeId){this.currentIsOthersAccessible=g?.getProps().isOthersAccessible;return}if(c.isFocusedProgrammatically||this.currentIsOthersAccessible||g?.getProps().isAlwaysAccessible)this.setActive(g);else{const m=this._win();m.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=m.setTimeout(()=>this._restoreModalizerFocus(l),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=n,this._accessibleCheck=i,this._activationHistory=[],this.activeElements=[],t.controlTab||t.root.addDummyInputs();const s=this._win();wt(s,"keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();gt(t,"keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(n=>{this._modalizers[n]&&(this._modalizers[n].dispose(),delete this._modalizers[n])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,n,i){const s=new zy(this._tabster,t,this._onModalizerDispose,n,i,this.activeElements),l=s.id,c=n.id;this._modalizers[l]=s;let d=this._parts[c];d||(d=this._parts[c]={}),d[l]=s;const f=this._tabster.focusedElement.getFocusedElement()??null;return t!==f&&ie.nodeContains(t,f)&&(c!==this.activeId?this.setActive(s):s.makeActive(!0)),s}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const n=t?.userId,i=this.activeId;if(i===n)return;if(this.activeId=n,i){const l=this._parts[i];if(l)for(const c of Object.keys(l))l[c].makeActive(!1)}if(n){const l=this._parts[n];if(l)for(const c of Object.keys(l))l[c].makeActive(!0)}this.currentIsOthersAccessible=t?.getProps().isOthersAccessible,this.hiddenUpdate();const s=this._activationHistory;s[0]!==n&&(n!==void 0||s.length>0)&&s.unshift(n)}focus(t,n,i){const s=this._tabster,c=Ue.getTabsterContext(s,t)?.modalizer;if(c){this.setActive(c);const d=c.getProps(),f=c.getElement();if(f){if(n===void 0&&(n=d.isNoFocusFirst),!n&&s.keyboardNavigation.isNavigatingWithKeyboard()&&s.focusedElement.focusFirst({container:f})||(i===void 0&&(i=d.isNoFocusDefault),!i&&s.focusedElement.focusDefault(f)))return!0;s.focusedElement.resetFocus(f)}}return!1}activate(t){const n=t?Ue.getTabsterContext(this._tabster,t)?.modalizer:void 0;return!t||n?(this.setActive(n),!0):!1}acceptElement(t,n){const i=n.modalizerUserId,s=n.currentCtx?.modalizer;if(i)for(const c of this.activeElements){const d=c.get();if(d&&(ie.nodeContains(t,d)||d===t))return NodeFilter.FILTER_SKIP}const l=i===s?.userId||!i&&s?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return l!==void 0&&(n.skippedFocusable=!0),l}_hiddenUpdate(){const t=this._tabster,n=t.getWindow().document.body,i=this.activeId,s=this._parts,l=[],c=[],d=this._alwaysAccessibleSelector,f=d?Array.from(ie.querySelectorAll(n,d)):[],h=[];for(const _ of Object.keys(s)){const N=s[_];for(const E of Object.keys(N)){const z=N[E],P=z.getElement(),T=z.getProps().isAlwaysAccessible;P&&(_===i?(h.push(P),this.currentIsOthersAccessible||l.push(P)):T?f.push(P):c.push(P))}}const g=this._augMap,b=l.length>0?[...l,...f]:void 0,x=[],m=new WeakMap,y=(_,N)=>{const E=_.tagName;if(E==="SCRIPT"||E==="STYLE")return;let z=!1;g.has(_)?N?z=!0:(g.delete(_),Pl(t,_,Dl)):N&&!this._accessibleCheck?.(_,h)&&Pl(t,_,Dl,"true")&&(g.set(_,!0),z=!0),z&&(x.push(new Qt(_)),m.set(_,!0))},w=_=>{for(let N=ie.getFirstElementChild(_);N;N=ie.getNextElementSibling(N)){let E=!1,z=!1,P=!1;if(b){const L=t.getParent(N);for(const T of b){if(N===T){E=!0;break}if(ie.nodeContains(N,T)){z=!0;break}else ie.nodeContains(T,L)&&(P=!0)}z||N.__tabsterElementFlags?.noDirectAriaHidden?w(N):!E&&!P&&y(N,!0)}else y(N,!1)}};b||f.forEach(_=>y(_,!1)),c.forEach(_=>y(_,!0)),n&&w(n),this._aug?.map(_=>_.get()).forEach(_=>{_&&!m.get(_)&&y(_,!1)}),this._aug=x,this._augMap=m}_restoreModalizerFocus(t){const n=t?.ownerDocument;if(!t||!n)return;const i=this._tabster.focusedElement.getFocusedElement(),s=i&&Ue.getTabsterContext(this._tabster,i)?.modalizer;if(!i||i&&s?.userId===this.activeId)return;const l=this._tabster,c=Ue.getTabsterContext(l,t),d=c?.modalizer,f=this.activeId;if(!d&&!f||d&&f===d.userId)return;const h=c?.root.getElement();if(h){let g=l.focusable.findFirst({container:h,useActiveModalizer:!0});if(g){if(t.compareDocumentPosition(g)&document.DOCUMENT_POSITION_PRECEDING&&(g=l.focusable.findLast({container:h,useActiveModalizer:!0}),!g))throw new Error("Something went wrong.");l.focusedElement.focus(g);return}}t.blur()}}function Ty(e,t,n){const i=e.core;if(!i.modalizer){const s=new Ey(i,t,n);i.modalizer=s,i.attrHandlers.set("modalizer",(l,c,d,f,h)=>c?d.id&&f?.id!==d.id?(c.dispose(),s.createModalizer(l,d,h)):(c.setProps(d),c):s.createModalizer(l,d,h))}return i.modalizer}const Fy=["input","textarea","*[contenteditable]"].join(", ");class Py extends Uo{constructor(t,n,i,s){super(n,t,Ml.Mover,s),this._onFocusDummyInput=l=>{const c=this._element.get(),d=l.input;if(c&&d){const f=Ue.getTabsterContext(this._tabster,c);let h;f&&(h=Tn.findNextTabbable(this._tabster,f,void 0,d,void 0,!l.isFirst,!0)?.element);const g=this._getMemorized()?.get();g&&this._tabster.focusable.isFocusable(g)&&(h=g),h&&Rr(h)}},this._tabster=n,this._getMemorized=i,this._setHandlers(this._onFocusDummyInput)}}const Al=1,fp=2,pp=3;class Ry extends ua{constructor(t,n,i,s,l){super(t,n,s),this._visible={},this._onIntersection=d=>{for(const f of d){const h=f.target,g=ca(this._win,h);let b,x=this._fullyVisible;if(f.intersectionRatio>=.25?(b=f.intersectionRatio>=.75?Qr.Visible:Qr.PartiallyVisible,b===Qr.Visible&&(x=g)):b=Qr.Invisible,this._visible[g]!==b){b===void 0?(delete this._visible[g],x===g&&delete this._fullyVisible):(this._visible[g]=b,this._fullyVisible=x);const m=this.getState(h);m&&zt(h,new Zf(m))}}},this._win=t.getWindow,this.visibilityTolerance=s.visibilityTolerance??.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=i;const c=()=>s.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new Py(this._element,t,c,l))}dispose(){this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const t=this._win();this._setCurrentTimer&&(t.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this.dummyManager?.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new Qt(t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{delete this._setCurrentTimer;const n=[];this._current!==this._prevCurrent&&(n.push(this._current),n.push(this._prevCurrent),this._prevCurrent=this._current);for(const i of n){const s=i?.get();if(s&&this._allElements?.get(s)===this){const l=this._props;if(s&&(l.visibilityAware!==void 0||l.trackState)){const c=this.getState(s);c&&zt(s,new Zf(c))}}}}))}getCurrent(){return this._current?.get()||null}findNextTabbable(t,n,i,s){const l=this.getElement(),c=l&&Wo(t)===l;if(!l)return null;let d=null,f=!1,h;if(this._props.tabbable||c||t&&!ie.nodeContains(l,t)){const g={currentElement:t,referenceElement:n,container:l,ignoreAccessibility:s,useActiveModalizer:!0},b={};d=this._tabster.focusable[i?"findPrev":"findNext"](g,b),f=!!b.outOfDOMOrder,h=b.uncontrolled}return{element:d,uncontrolled:h,outOfDOMOrder:f}}acceptElement(t,n){if(!Tn.isTabbing)return n.currentCtx?.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:i,visibilityAware:s,hasDefault:l=!0}=this._props,c=this.getElement();if(c&&(i||s||l)&&(!ie.nodeContains(c,n.from)||Wo(n.from)===c)){let d;if(i){const f=this._current?.get();f&&n.acceptCondition(f)&&(d=f)}if(!d&&l&&(d=this._tabster.focusable.findDefault({container:c,useActiveModalizer:!0})),!d&&s&&(d=this._tabster.focusable.findElement({container:c,useActiveModalizer:!0,isBackward:n.isBackward,acceptCondition:f=>{const h=ca(this._win,f),g=this._visible[h];return c!==f&&!!this._allElements?.get(f)&&n.acceptCondition(f)&&(g===Qr.Visible||g===Qr.PartiallyVisible&&(s===Qr.PartiallyVisible||!this._fullyVisible))}})),d)return n.found=!0,n.foundElement=d,n.rejectElementsFrom=c,n.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const n=this._win(),i=this._allElements=new WeakMap,s=this._tabster.focusable;let l=this._updateQueue=[];const c=ie.createMutationObserver(m=>{for(const y of m){const w=y.target,_=y.removedNodes,N=y.addedNodes;if(y.type==="attributes")y.attributeName==="tabindex"&&l.push({element:w,type:fp});else{for(let E=0;E<_.length;E++)l.push({element:_[E],type:pp});for(let E=0;E<N.length;E++)l.push({element:N[E],type:Al})}}b()}),d=(m,y)=>{const w=i.get(m);w&&y&&(this._intersectionObserver?.unobserve(m),i.delete(m)),!w&&!y&&(i.set(m,this),this._intersectionObserver?.observe(m))},f=m=>{const y=s.isFocusable(m);i.get(m)?y||d(m,!0):y&&d(m)},h=m=>{const{mover:y}=x(m);if(y&&y!==this)if(y.getElement()===m&&s.isFocusable(m))d(m);else return;const w=Fl(n.document,m,_=>{const{mover:N,groupper:E}=x(_);if(N&&N!==this)return NodeFilter.FILTER_REJECT;const z=E?.getFirst(!0);return E&&E.getElement()!==_&&z&&z!==_?NodeFilter.FILTER_REJECT:(s.isFocusable(_)&&d(_),NodeFilter.FILTER_SKIP)});if(w)for(w.currentNode=m;w.nextNode(););},g=m=>{i.get(m)&&d(m,!0);for(let w=ie.getFirstElementChild(m);w;w=ie.getNextElementSibling(w))g(w)},b=()=>{!this._updateTimer&&l.length&&(this._updateTimer=n.setTimeout(()=>{delete this._updateTimer;for(const{element:m,type:y}of l)switch(y){case fp:f(m);break;case Al:h(m);break;case pp:g(m);break}l=this._updateQueue=[]},0))},x=m=>{const y={};for(let w=m;w;w=ie.getParentElement(w)){const _=Bt(this._tabster,w);if(_&&(_.groupper&&!y.groupper&&(y.groupper=_.groupper),_.mover)){y.mover=_.mover;break}}return y};l.push({element:t,type:Al}),b(),c.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{c.disconnect()}}getState(t){const n=ca(this._win,t);if(n in this._visible){const i=this._visible[n]||Qr.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:i}}}}function jy(e,t,n,i,s,l,c,d){const f=n<s?s-n:c<e?e-c:0,h=i<l?l-i:d<t?t-d:0;return f===0?h:h===0?f:Math.sqrt(f*f+h*h)}class My{constructor(t,n){this._init=()=>{const i=this._win();wt(i,"keydown",this._onKeyDown,!0),wt(i,Yf,this._onMoveFocus),wt(i,Jf,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=i=>{delete this._movers[i.id]},this._onFocus=i=>{let s=i,l=i;for(let c=ie.getParentElement(i);c;c=ie.getParentElement(c)){const d=Bt(this._tabster,c)?.mover;d&&(d.setCurrent(l),s=void 0),!s&&this._tabster.focusable.isFocusable(c)&&(s=l=c)}},this._onKeyDown=async i=>{if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),this._ignoredInputResolve?.(!1),i.ctrlKey||i.altKey||i.shiftKey||i.metaKey)return;const s=i.key;let l;if(s===dt.ArrowDown?l=Qe.ArrowDown:s===dt.ArrowRight?l=Qe.ArrowRight:s===dt.ArrowUp?l=Qe.ArrowUp:s===dt.ArrowLeft?l=Qe.ArrowLeft:s===dt.PageDown?l=Qe.PageDown:s===dt.PageUp?l=Qe.PageUp:s===dt.Home?l=Qe.Home:s===dt.End&&(l=Qe.End),!l)return;const c=this._tabster.focusedElement.getFocusedElement();!c||await this._isIgnoredInput(c,s)||this._moveFocus(c,l,i)},this._onMoveFocus=i=>{const s=i.composedPath()[0],l=i.detail?.key;s&&l!==void 0&&!i.defaultPrevented&&(this._moveFocus(s,l),i.stopImmediatePropagation())},this._onMemorizedElement=i=>{const s=i.composedPath()[0];let l=i.detail?.memorizedElement;if(s){const d=Ue.getTabsterContext(this._tabster,s)?.mover;d&&(l&&!ie.nodeContains(d.getElement(),l)&&(l=void 0),d.setCurrent(l),i.stopImmediatePropagation())}},this._tabster=t,this._win=n,this._movers={},t.queueInit(this._init)}dispose(){const t=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),this._ignoredInputResolve?.(!1),this._ignoredInputTimer&&(t.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),gt(t,"keydown",this._onKeyDown,!0),gt(t,Yf,this._onMoveFocus),gt(t,Jf,this._onMemorizedElement),Object.keys(this._movers).forEach(n=>{this._movers[n]&&(this._movers[n].dispose(),delete this._movers[n])})}createMover(t,n,i){const s=new Ry(this._tabster,t,this._onMoverDispose,n,i);return this._movers[s.id]=s,s}moveFocus(t,n){return this._moveFocus(t,n)}_moveFocus(t,n,i){const s=this._tabster,l=Ue.getTabsterContext(s,t,{checkRtl:!0});if(!l||!l.mover||l.excludedFromMover||i&&l.ignoreKeydown(i))return null;const c=l.mover,d=c.getElement();if(l.groupperBeforeMover){const T=l.groupper;if(T&&!T.isActive(!0)){for(let D=ie.getParentElement(T.getElement());D&&D!==d;D=ie.getParentElement(D))if(Bt(s,D)?.groupper?.isActive(!0))return null}else return null}if(!d)return null;const f=s.focusable,h=c.getProps(),g=h.direction||lr.Both,b=g===lr.Both,x=b||g===lr.Vertical,m=b||g===lr.Horizontal,y=g===lr.GridLinear,w=y||g===lr.Grid,_=h.cyclic;let N,E,z,P=0,L=0;if(w&&(z=t.getBoundingClientRect(),P=Math.ceil(z.left),L=Math.floor(z.right)),l.rtl&&(n===Qe.ArrowRight?n=Qe.ArrowLeft:n===Qe.ArrowLeft&&(n=Qe.ArrowRight)),n===Qe.ArrowDown&&x||n===Qe.ArrowRight&&(m||w))if(N=f.findNext({currentElement:t,container:d,useActiveModalizer:!0}),N&&w){const T=Math.ceil(N.getBoundingClientRect().left);!y&&L>T&&(N=void 0)}else!N&&_&&(N=f.findFirst({container:d,useActiveModalizer:!0}));else if(n===Qe.ArrowUp&&x||n===Qe.ArrowLeft&&(m||w))if(N=f.findPrev({currentElement:t,container:d,useActiveModalizer:!0}),N&&w){const T=Math.floor(N.getBoundingClientRect().right);!y&&T>P&&(N=void 0)}else!N&&_&&(N=f.findLast({container:d,useActiveModalizer:!0}));else if(n===Qe.Home)w?f.findElement({container:d,currentElement:t,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>{if(!f.isFocusable(T))return!1;const D=Math.ceil(T.getBoundingClientRect().left??0);return T!==t&&P<=D?!0:(N=T,!1)}}):N=f.findFirst({container:d,useActiveModalizer:!0});else if(n===Qe.End)w?f.findElement({container:d,currentElement:t,useActiveModalizer:!0,acceptCondition:T=>{if(!f.isFocusable(T))return!1;const D=Math.ceil(T.getBoundingClientRect().left??0);return T!==t&&P>=D?!0:(N=T,!1)}}):N=f.findLast({container:d,useActiveModalizer:!0});else if(n===Qe.PageUp){if(f.findElement({currentElement:t,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>f.isFocusable(T)?rp(this._win,T,c.visibilityTolerance)?(N=T,!1):!0:!1}),w&&N){const T=Math.ceil(N.getBoundingClientRect().left);f.findElement({currentElement:N,container:d,useActiveModalizer:!0,acceptCondition:D=>{if(!f.isFocusable(D))return!1;const O=Math.ceil(D.getBoundingClientRect().left);return P<O||T>=O?!0:(N=D,!1)}})}E=!1}else if(n===Qe.PageDown){if(f.findElement({currentElement:t,container:d,useActiveModalizer:!0,acceptCondition:T=>f.isFocusable(T)?rp(this._win,T,c.visibilityTolerance)?(N=T,!1):!0:!1}),w&&N){const T=Math.ceil(N.getBoundingClientRect().left);f.findElement({currentElement:N,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:D=>{if(!f.isFocusable(D))return!1;const O=Math.ceil(D.getBoundingClientRect().left);return P>O||T<=O?!0:(N=D,!1)}})}E=!0}else if(w){const T=n===Qe.ArrowUp,D=P,O=Math.ceil(z.top),q=L,Q=Math.floor(z.bottom);let X,$,F=0;f.findAll({container:d,currentElement:t,isBackward:T,onElement:Z=>{const oe=Z.getBoundingClientRect(),V=Math.ceil(oe.left),G=Math.ceil(oe.top),I=Math.floor(oe.right),J=Math.floor(oe.bottom);if(T&&O<J||!T&&Q>G)return!0;const Y=Math.ceil(Math.min(q,I))-Math.floor(Math.max(D,V)),j=Math.ceil(Math.min(q-D,I-V));if(Y>0&&j>=Y){const K=Y/j;K>F&&(X=Z,F=K)}else if(F===0){const K=jy(D,O,q,Q,V,G,I,J);($===void 0||K<$)&&($=K,X=Z)}else if(F>0)return!1;return!0}}),N=X}return N&&(!i||i&&zt(d,new ro({by:"mover",owner:d,next:N,relatedEvent:i})))?(E!==void 0&&uy(this._win,N,E),i&&(i.preventDefault(),i.stopImmediatePropagation()),Rr(N),N):null}async _isIgnoredInput(t,n){if(t.getAttribute("aria-expanded")==="true"&&(t.hasAttribute("aria-activedescendant")||t.getAttribute("role")==="combobox"))return!0;if(sp(t,Fy)){let i=0,s=0,l=0,c;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const d=t.type;if(l=(t.value||"").length,d==="email"||d==="number"){if(l){const h=ie.getSelection(t);if(h){const g=h.toString().length,b=n===dt.ArrowLeft||n===dt.ArrowUp;if(h.modify("extend",b?"backward":"forward","character"),g!==h.toString().length)return h.modify("extend",b?"forward":"backward","character"),!0;l=0}}}else{const h=t.selectionStart;if(h===null)return d==="hidden";i=h||0,s=t.selectionEnd||0}}else t.contentEditable==="true"&&(c=new Promise(d=>{this._ignoredInputResolve=m=>{delete this._ignoredInputResolve,d(m)};const f=this._win();this._ignoredInputTimer&&f.clearTimeout(this._ignoredInputTimer);const{anchorNode:h,focusNode:g,anchorOffset:b,focusOffset:x}=ie.getSelection(t)||{};this._ignoredInputTimer=f.setTimeout(()=>{delete this._ignoredInputTimer;const{anchorNode:m,focusNode:y,anchorOffset:w,focusOffset:_}=ie.getSelection(t)||{};if(m!==h||y!==g||w!==b||_!==x){this._ignoredInputResolve?.(!1);return}if(i=w||0,s=_||0,l=t.textContent?.length||0,m&&y&&ie.nodeContains(t,m)&&ie.nodeContains(t,y)&&m!==t){let N=!1;const E=z=>{if(z===m)N=!0;else if(z===y)return!0;const P=z.textContent;if(P&&!ie.getFirstChild(z)){const T=P.length;N?y!==m&&(s+=T):(i+=T,s+=T)}let L=!1;for(let T=ie.getFirstChild(z);T&&!L;T=T.nextSibling)L=E(T);return L};E(t)}this._ignoredInputResolve?.(!0)},0)}));if(c&&!await c||i!==s||i>0&&(n===dt.ArrowLeft||n===dt.ArrowUp||n===dt.Home)||i<l&&(n===dt.ArrowRight||n===dt.ArrowDown||n===dt.End))return!0}return!1}}function Iy(e){const t=e.core;if(!t.mover){const n=new My(t,t.getWindow);t.mover=n,t.attrHandlers.set("mover",(i,s,l,c,d)=>s?(s.setProps(l),s):n.createMover(i,l,d))}return t.mover}class Dy extends ua{constructor(t,n,i){if(super(t,n,i),this._hasFocus=!1,this._onFocusOut=s=>{const l=this._element?.get();l&&s.relatedTarget===null&&zt(l,new ep),l&&!ie.nodeContains(l,s.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===En.Source){const s=this._element?.get();wt(s,"focusout",this._onFocusOut),wt(s,"focusin",this._onFocusIn),this._hasFocus=ie.nodeContains(s,s&&ie.getActiveElement(s.ownerDocument))}}dispose(){if(this._props.type===En.Source){const t=this._element?.get();if(gt(t,"focusout",this._onFocusOut),gt(t,"focusin",this._onFocusIn),this._hasFocus){const n=this._tabster.getWindow().document;zt(n.body,new ep)}}}}const Za=class Za{constructor(t){this._stack=[],this._getWindow=t}push(t){this._stack[this._stack.length-1]?.get()!==t&&(this._stack.length>Za.DEPTH&&this._stack.shift(),this._stack.push(new Qt(t)))}pop(t=()=>!0){const n=this._getWindow().document;for(let i=this._stack.length-1;i>=0;i--){const s=this._stack.pop()?.get();if(s&&ie.nodeContains(n.body,ie.getParentElement(s))&&t(s))return s}}};Za.DEPTH=10;let Ol=Za;class Ay{constructor(t){this._onRestoreFocus=n=>{this._focusedElementState.cancelAsyncFocus(to.Restorer);const i=n.composedPath()[0];if(i){const s=Bt(this._tabster,i)?.restorer?.getProps().id;this._focusedElementState.requestAsyncFocus(to.Restorer,()=>this._restoreFocus(i,s),0)}},this._onFocusIn=n=>{!n||Bt(this._tabster,n)?.restorer?.getProps().type!==En.Target||this._history.push(n)},this._restoreFocus=(n,i)=>{const s=this._getWindow().document;if(ie.getActiveElement(s)!==s.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&ie.nodeContains(s.body,n))return;const l=c=>{const d=Bt(this._tabster,c)?.restorer?.getProps();return d?d.id:null};this._history.pop(c=>i===l(c))?.focus()},this._tabster=t,this._getWindow=t.getWindow,wt(this._getWindow(),Tl,this._onRestoreFocus),this._history=new Ol(this._getWindow),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(to.Restorer),gt(t,Tl,this._onRestoreFocus)}createRestorer(t,n){const i=new Dy(this._tabster,t,n);return n.type===En.Target&&ie.getActiveElement(t.ownerDocument)===t&&this._history.push(t),i}}function hp(e){const t=e.core;if(!t.restorer){const n=new Ay(t);t.restorer=n,t.attrHandlers.set("restorer",(i,s,l)=>s?(s.setProps(l),s):n.createRestorer(i,l))}return t.restorer}class Oy{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class qy{constructor(t,n){this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.8.1",this._noop=!1,this.attrHandlers=new Map,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=new WeakMap,this._win=t;const i=this.getWindow;n?.DOMAPI&&ay({...n.DOMAPI}),this.keyboardNavigation=new Sy(i),this.focusedElement=new Tn(this,i),this.focusable=new wy(this),this.root=new Ue(this,n?.autoRoot),this.uncontrolled=new Cy(n?.checkUncontrolledCompletely||n?.checkUncontrolledTrappingFocus),this.controlTab=n?.controlTab??!0,this.rootDummyInputs=!!n?.rootDummyInputs,this._dummyObserver=new gy(i),this.getParent=n?.getParent??ie.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const l=i().document;this._unobserve=_y(l,this,Gf,s)}}},this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){t&&(this.getParent=t.getParent??this.getParent)}createTabster(t,n){const i=new Oy(this);return t||this._wrappers.add(i),this._mergeProps(n),i}disposeTabster(t,n){n?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){this.internal.stopObserver();const t=this._win;t?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],t&&this._forgetMemorizedTimer&&(t.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),this.outline?.dispose(),this.crossOrigin?.dispose(),this.deloser?.dispose(),this.groupper?.dispose(),this.mover?.dispose(),this.modalizer?.dispose(),this.observedElement?.dispose(),this.restorer?.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),this.attrHandlers.clear(),ip(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),t&&(ly(t),delete t.__tabsterInstance,delete this._win)}storageEntry(t,n){const i=this._storage;let s=i.get(t);return s?n===!1&&Object.keys(s).length===0&&i.delete(t):n===!0&&(s={},i.set(t,s)),s}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())ip(this.getWindow,t),Tn.forgetMemorized(this.focusedElement,t)},0)))}queueInit(t){this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=this._win?.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(n=>n())}}function Ly(e,t){let n=$y(e);return n?n.createTabster(!1,t):(n=new qy(e,t),e.__tabsterInstance=n,n.createTabster())}function Hy(e,t){e.core.disposeTabster(e,t)}function $y(e){return e.__tabsterInstance}const Vy=e=>e;function Uy(e){const t=e?.defaultView||void 0,n=t?.__tabsterShadowDOMAPI;if(t)return Ly(t,{autoRoot:{},controlTab:!1,getParent:Hf,checkUncontrolledCompletely:i=>{var s;return((s=i.firstElementChild)===null||s===void 0?void 0:s.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:n})}function Go(e=Vy){const{targetDocument:t}=$e(),n=S.useRef(null);return tt(()=>{const i=Uy(t);if(i)return n.current=e(i),()=>{Hy(i),n.current=null}},[t,e]),n}const Ko=e=>{Go();const t=Il(e,!0);return S.useMemo(()=>({[sr]:t}),[t])},mp=(e={})=>{const{circular:t,axis:n,memorizeCurrent:i=!0,tabbable:s,ignoreDefaultKeydown:l,unstable_hasDefault:c}=e;return Go(Iy),Ko({mover:{cyclic:!!t,direction:Wy(n??"vertical"),memorizeCurrent:i,tabbable:s,hasDefault:c},...l&&{focusable:{ignoreKeydown:l}}})};function Wy(e){switch(e){case"horizontal":return lr.Horizontal;case"grid":return lr.Grid;case"grid-linear":return lr.GridLinear;case"both":return lr.Both;default:return lr.Vertical}}const fa=()=>{const e=Go(),{targetDocument:t}=$e(),n=S.useCallback((d,f)=>{var h;return d&&((h=e.current)===null||h===void 0?void 0:h.focusable.findAll({container:d,acceptCondition:f}))||[]},[e]),i=S.useCallback(d=>{var f;return d&&((f=e.current)===null||f===void 0?void 0:f.focusable.findFirst({container:d}))},[e]),s=S.useCallback(d=>{var f;return d&&((f=e.current)===null||f===void 0?void 0:f.focusable.findLast({container:d}))},[e]),l=S.useCallback((d,f={})=>{if(!e.current||!t||!d)return null;const{container:h=t.body}=f;return e.current.focusable.findNext({currentElement:d,container:h})},[e,t]),c=S.useCallback((d,f={})=>{if(!e.current||!t||!d)return null;const{container:h=t.body}=f;return e.current.focusable.findPrev({currentElement:d,container:h})},[e,t]);return{findAllFocusable:n,findFirstFocusable:i,findLastFocusable:s,findNextFocusable:l,findPrevFocusable:c}},gp="data-fui-focus-visible",vp="data-fui-focus-within";function Gy(e,t){if(bp(e))return()=>{};const n={current:void 0},i=aa(t);function s(f){i.isNavigatingWithKeyboard()&&Kt(f)&&(n.current=f,f.setAttribute(gp,""))}function l(){n.current&&(n.current.removeAttribute(gp),n.current=void 0)}i.subscribe(f=>{f?s(t.document.activeElement):l()});const c=f=>{l();const h=f.composedPath()[0];s(h)},d=f=>{(!f.relatedTarget||Kt(f.relatedTarget)&&!e.contains(f.relatedTarget))&&l()};return e.addEventListener(qt,c),e.addEventListener("focusout",d),e.focusVisible=!0,e.contains(t.document.activeElement)&&s(t.document.activeElement),()=>{l(),e.removeEventListener(qt,c),e.removeEventListener("focusout",d),e.focusVisible=void 0,sa(i)}}function bp(e){return e?e.focusVisible?!0:bp(e?.parentElement):!1}function pa(e={}){const t=$e(),n=S.useRef(null);var i;const s=(i=e.targetDocument)!==null&&i!==void 0?i:t.targetDocument;return S.useEffect(()=>{if(s?.defaultView&&n.current)return Gy(n.current,s.defaultView)},[n,s]),n}function Ky(e,t){const n=aa(t);n.subscribe(l=>{l||yp(e)});const i=l=>{n.isNavigatingWithKeyboard()&&xp(l.target)&&Xy(e)},s=l=>{(!l.relatedTarget||xp(l.relatedTarget)&&!e.contains(l.relatedTarget))&&yp(e)};return e.addEventListener(qt,i),e.addEventListener("focusout",s),()=>{e.removeEventListener(qt,i),e.removeEventListener("focusout",s),sa(n)}}function Xy(e){e.setAttribute(vp,"")}function yp(e){e.removeAttribute(vp)}function xp(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function wp(){const{targetDocument:e}=$e(),t=S.useRef(null);return S.useEffect(()=>{if(e?.defaultView&&t.current)return Ky(t.current,e.defaultView)},[t,e]),t}function Qy(){const{targetDocument:e}=$e(),t=S.useRef(null);return S.useEffect(()=>{const n=e?.defaultView;if(n){const i=aa(n);return t.current=i,()=>{sa(i),t.current=null}}},[e]),t}const Yy="data-tabster-never-hide",Jy=e=>e.hasAttribute(Yy);function Zy(e){Ty(e,void 0,Jy),hp(e)}const kp=(e={})=>{const{trapFocus:t,alwaysFocusable:n,legacyTrapFocus:i}=e;Go(Zy);const s=wr("modal-",e.id),l=Ko({restorer:{type:En.Source},...t&&{modalizer:{id:s,isOthersAccessible:!t,isAlwaysAccessible:n,isTrapped:i&&t}}}),c=Ko({restorer:{type:En.Target}});return{modalAttributes:l,triggerAttributes:c}},ex=(...e)=>{const t=[];let n="";for(const i of e){const s=i?.[sr];s&&(t.push(s),n+=s+tx)}return S.useMemo(()=>({[sr]:rx(t)}),[n])},tx="\0",rx=e=>{if(e.length!==0)return e.length===1?e[0]:JSON.stringify(Object.assign({},...e.map(nx)))},nx=e=>{try{return JSON.parse(e)}catch{return{}}};function ox(){return Go(hp),Il({restorer:{type:En.Source}})}function ix(){const e=Qy();return S.useCallback(()=>{var t,n;return(n=(t=e.current)===null||t===void 0?void 0:t.isNavigatingWithKeyboard())!==null&&n!==void 0?n:!1},[e])}const U={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",60:"#999999",68:"#adadad",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa",99:"#fcfcfc"},kt={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},Yt={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},ax={50:"rgba(26, 26, 26, 0.5)"},sx={70:"rgba(31, 31, 31, 0.7)"},Sp={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},Se="#ffffff",ha="#000000",lx={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},_p={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},cx={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},ux={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},dx={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},fx={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},px={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},hx={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},mx={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},gx={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},vx={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},bx={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},yx={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},xx={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},wx={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},Cp={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},kx={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},Sx={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},_x={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},Cx={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},Nx={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},Bx={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},zx={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},Ex={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},Tx={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},Fx={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},Px={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},Rx={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},jx={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},Mx={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},Ix={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},Dx={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},Ax={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},Ox={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},qx={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},Lx={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Fe={red:cx,green:Cp,darkOrange:ux,yellow:mx,berry:Rx,lightGreen:wx,marigold:hx},Yr={darkRed:lx,cranberry:_p,pumpkin:dx,peach:px,gold:gx,brass:vx,brown:bx,forest:yx,seafoam:xx,darkGreen:kx,lightTeal:Sx,teal:_x,steel:Cx,blue:Nx,royalBlue:Bx,cornflower:zx,navy:Ex,lavender:Tx,purple:Fx,grape:Px,lilac:jx,pink:Mx,magenta:Ix,plum:Dx,beige:Ax,mink:Ox,platinum:qx,anchor:Lx},ze={cranberry:_p,green:Cp,orange:fx},Np=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],Bp=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],jt={success:"green",warning:"orange",danger:"cranberry"},Xo=Np.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorPalette${n}Background1`]:Fe[t].tint60,[`colorPalette${n}Background2`]:Fe[t].tint40,[`colorPalette${n}Background3`]:Fe[t].primary,[`colorPalette${n}Foreground1`]:Fe[t].shade10,[`colorPalette${n}Foreground2`]:Fe[t].shade30,[`colorPalette${n}Foreground3`]:Fe[t].primary,[`colorPalette${n}BorderActive`]:Fe[t].primary,[`colorPalette${n}Border1`]:Fe[t].tint40,[`colorPalette${n}Border2`]:Fe[t].primary};return Object.assign(e,i)},{});Xo.colorPaletteYellowForeground1=Fe.yellow.shade30,Xo.colorPaletteRedForegroundInverted=Fe.red.tint20,Xo.colorPaletteGreenForegroundInverted=Fe.green.tint20,Xo.colorPaletteYellowForegroundInverted=Fe.yellow.tint40;const Hx=Bp.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorPalette${n}Background2`]:Yr[t].tint40,[`colorPalette${n}Foreground2`]:Yr[t].shade30,[`colorPalette${n}BorderActive`]:Yr[t].primary};return Object.assign(e,i)},{}),$x={...Xo,...Hx},no=Object.entries(jt).reduce((e,[t,n])=>{const i=t.slice(0,1).toUpperCase()+t.slice(1),s={[`colorStatus${i}Background1`]:ze[n].tint60,[`colorStatus${i}Background2`]:ze[n].tint40,[`colorStatus${i}Background3`]:ze[n].primary,[`colorStatus${i}Foreground1`]:ze[n].shade10,[`colorStatus${i}Foreground2`]:ze[n].shade30,[`colorStatus${i}Foreground3`]:ze[n].primary,[`colorStatus${i}ForegroundInverted`]:ze[n].tint30,[`colorStatus${i}BorderActive`]:ze[n].primary,[`colorStatus${i}Border1`]:ze[n].tint40,[`colorStatus${i}Border2`]:ze[n].primary};return Object.assign(e,s)},{});no.colorStatusDangerBackground3Hover=ze[jt.danger].shade10,no.colorStatusDangerBackground3Pressed=ze[jt.danger].shade20,no.colorStatusWarningForeground1=ze[jt.warning].shade20,no.colorStatusWarningForeground3=ze[jt.warning].shade20,no.colorStatusWarningBorder2=ze[jt.warning].shade20;const Vx=e=>({colorNeutralForeground1:U[14],colorNeutralForeground1Hover:U[14],colorNeutralForeground1Pressed:U[14],colorNeutralForeground1Selected:U[14],colorNeutralForeground2:U[26],colorNeutralForeground2Hover:U[14],colorNeutralForeground2Pressed:U[14],colorNeutralForeground2Selected:U[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:U[38],colorNeutralForeground3Hover:U[26],colorNeutralForeground3Pressed:U[26],colorNeutralForeground3Selected:U[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:U[44],colorNeutralForeground5:U[38],colorNeutralForeground5Hover:U[14],colorNeutralForeground5Pressed:U[14],colorNeutralForeground5Selected:U[14],colorNeutralForegroundDisabled:U[74],colorNeutralForegroundInvertedDisabled:kt[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:U[26],colorNeutralForeground2LinkHover:U[14],colorNeutralForeground2LinkPressed:U[14],colorNeutralForeground2LinkSelected:U[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:U[14],colorNeutralForegroundStaticInverted:Se,colorNeutralForegroundInverted:Se,colorNeutralForegroundInvertedHover:Se,colorNeutralForegroundInvertedPressed:Se,colorNeutralForegroundInvertedSelected:Se,colorNeutralForegroundInverted2:Se,colorNeutralForegroundOnBrand:Se,colorNeutralForegroundInvertedLink:Se,colorNeutralForegroundInvertedLinkHover:Se,colorNeutralForegroundInvertedLinkPressed:Se,colorNeutralForegroundInvertedLinkSelected:Se,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Se,colorNeutralBackground1Hover:U[96],colorNeutralBackground1Pressed:U[88],colorNeutralBackground1Selected:U[92],colorNeutralBackground2:U[98],colorNeutralBackground2Hover:U[94],colorNeutralBackground2Pressed:U[86],colorNeutralBackground2Selected:U[90],colorNeutralBackground3:U[96],colorNeutralBackground3Hover:U[92],colorNeutralBackground3Pressed:U[84],colorNeutralBackground3Selected:U[88],colorNeutralBackground4:U[94],colorNeutralBackground4Hover:U[98],colorNeutralBackground4Pressed:U[96],colorNeutralBackground4Selected:Se,colorNeutralBackground5:U[92],colorNeutralBackground5Hover:U[96],colorNeutralBackground5Pressed:U[94],colorNeutralBackground5Selected:U[98],colorNeutralBackground6:U[90],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:U[92],colorNeutralBackground7Pressed:U[84],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:U[99],colorNeutralBackgroundInverted:U[16],colorNeutralBackgroundInvertedHover:U[24],colorNeutralBackgroundInvertedPressed:U[12],colorNeutralBackgroundInvertedSelected:U[22],colorNeutralBackgroundStatic:U[20],colorNeutralBackgroundAlpha:kt[50],colorNeutralBackgroundAlpha2:kt[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:U[96],colorSubtleBackgroundPressed:U[88],colorSubtleBackgroundSelected:U[92],colorSubtleBackgroundLightAlphaHover:kt[70],colorSubtleBackgroundLightAlphaPressed:kt[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Yt[10],colorSubtleBackgroundInvertedPressed:Yt[30],colorSubtleBackgroundInvertedSelected:Yt[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:U[94],colorNeutralBackgroundDisabled2:Se,colorNeutralBackgroundInvertedDisabled:kt[10],colorNeutralStencil1:U[90],colorNeutralStencil2:U[98],colorNeutralStencil1Alpha:Yt[10],colorNeutralStencil2Alpha:Yt[5],colorBackgroundOverlay:Yt[40],colorScrollbarOverlay:Yt[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Se,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:U[98],colorNeutralCardBackgroundHover:Se,colorNeutralCardBackgroundPressed:U[96],colorNeutralCardBackgroundSelected:U[92],colorNeutralCardBackgroundDisabled:U[94],colorNeutralStrokeAccessible:U[38],colorNeutralStrokeAccessibleHover:U[34],colorNeutralStrokeAccessiblePressed:U[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:U[82],colorNeutralStroke1Hover:U[78],colorNeutralStroke1Pressed:U[70],colorNeutralStroke1Selected:U[74],colorNeutralStroke2:U[88],colorNeutralStroke3:U[94],colorNeutralStroke4:U[92],colorNeutralStroke4Hover:U[88],colorNeutralStroke4Pressed:U[84],colorNeutralStroke4Selected:U[92],colorNeutralStrokeSubtle:U[88],colorNeutralStrokeOnBrand:Se,colorNeutralStrokeOnBrand2:Se,colorNeutralStrokeOnBrand2Hover:Se,colorNeutralStrokeOnBrand2Pressed:Se,colorNeutralStrokeOnBrand2Selected:Se,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:U[88],colorNeutralStrokeDisabled2:U[92],colorNeutralStrokeInvertedDisabled:kt[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Yt[5],colorNeutralStrokeAlpha2:kt[20],colorStrokeFocus1:Se,colorStrokeFocus2:ha,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),zp={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadius2XLarge:"12px",borderRadius3XLarge:"16px",borderRadius4XLarge:"24px",borderRadius5XLarge:"32px",borderRadius6XLarge:"40px",borderRadiusCircular:"10000px"},Ep={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},Tp={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},Fp={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Pp={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Rp={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},jp={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Ke={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Mp={spacingHorizontalNone:Ke.none,spacingHorizontalXXS:Ke.xxs,spacingHorizontalXS:Ke.xs,spacingHorizontalSNudge:Ke.sNudge,spacingHorizontalS:Ke.s,spacingHorizontalMNudge:Ke.mNudge,spacingHorizontalM:Ke.m,spacingHorizontalL:Ke.l,spacingHorizontalXL:Ke.xl,spacingHorizontalXXL:Ke.xxl,spacingHorizontalXXXL:Ke.xxxl},Ip={spacingVerticalNone:Ke.none,spacingVerticalXXS:Ke.xxs,spacingVerticalXS:Ke.xs,spacingVerticalSNudge:Ke.sNudge,spacingVerticalS:Ke.s,spacingVerticalMNudge:Ke.mNudge,spacingVerticalM:Ke.m,spacingVerticalL:Ke.l,spacingVerticalXL:Ke.xl,spacingVerticalXXL:Ke.xxl,spacingVerticalXXXL:Ke.xxxl},Dp={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"};function ma(e,t,n=""){return{[`shadow2${n}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${n}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${n}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${n}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${n}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${n}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const Ux=e=>{const t=Vx(e);return{...zp,...Fp,...Pp,...jp,...Rp,...Dp,...Mp,...Ip,...Tp,...Ep,...t,...$x,...no,...ma(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...ma(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},Sr=Np.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorPalette${n}Background1`]:Fe[t].shade40,[`colorPalette${n}Background2`]:Fe[t].shade30,[`colorPalette${n}Background3`]:Fe[t].primary,[`colorPalette${n}Foreground1`]:Fe[t].tint30,[`colorPalette${n}Foreground2`]:Fe[t].tint40,[`colorPalette${n}Foreground3`]:Fe[t].tint20,[`colorPalette${n}BorderActive`]:Fe[t].tint30,[`colorPalette${n}Border1`]:Fe[t].primary,[`colorPalette${n}Border2`]:Fe[t].tint20};return Object.assign(e,i)},{});Sr.colorPaletteRedForeground3=Fe.red.tint30,Sr.colorPaletteRedBorder2=Fe.red.tint30,Sr.colorPaletteGreenForeground3=Fe.green.tint40,Sr.colorPaletteGreenBorder2=Fe.green.tint40,Sr.colorPaletteDarkOrangeForeground3=Fe.darkOrange.tint30,Sr.colorPaletteDarkOrangeBorder2=Fe.darkOrange.tint30,Sr.colorPaletteRedForegroundInverted=Fe.red.primary,Sr.colorPaletteGreenForegroundInverted=Fe.green.primary,Sr.colorPaletteYellowForegroundInverted=Fe.yellow.shade30;const ql=Bp.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorPalette${n}Background2`]:Yr[t].shade30,[`colorPalette${n}Foreground2`]:Yr[t].tint40,[`colorPalette${n}BorderActive`]:Yr[t].tint30};return Object.assign(e,i)},{});ql.colorPaletteDarkRedBackground2=Yr.darkRed.shade20,ql.colorPalettePlumBackground2=Yr.plum.shade20;const Wx={...Sr,...ql},Jr=Object.entries(jt).reduce((e,[t,n])=>{const i=t.slice(0,1).toUpperCase()+t.slice(1),s={[`colorStatus${i}Background1`]:ze[n].shade40,[`colorStatus${i}Background2`]:ze[n].shade30,[`colorStatus${i}Background3`]:ze[n].primary,[`colorStatus${i}Foreground1`]:ze[n].tint30,[`colorStatus${i}Foreground2`]:ze[n].tint40,[`colorStatus${i}Foreground3`]:ze[n].tint20,[`colorStatus${i}BorderActive`]:ze[n].tint30,[`colorStatus${i}ForegroundInverted`]:ze[n].shade10,[`colorStatus${i}Border1`]:ze[n].primary,[`colorStatus${i}Border2`]:ze[n].tint20};return Object.assign(e,s)},{});Jr.colorStatusDangerBackground3Hover=ze[jt.danger].shade10,Jr.colorStatusDangerBackground3Pressed=ze[jt.danger].shade20,Jr.colorStatusDangerForeground3=ze[jt.danger].tint40,Jr.colorStatusDangerBorder2=ze[jt.danger].tint30,Jr.colorStatusSuccessForeground3=ze[jt.success].tint40,Jr.colorStatusSuccessBorder2=ze[jt.success].tint40,Jr.colorStatusWarningForegroundInverted=ze[jt.warning].shade20;const Gx=e=>({colorNeutralForeground1:Se,colorNeutralForeground1Hover:Se,colorNeutralForeground1Pressed:Se,colorNeutralForeground1Selected:Se,colorNeutralForeground2:U[84],colorNeutralForeground2Hover:Se,colorNeutralForeground2Pressed:Se,colorNeutralForeground2Selected:Se,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:U[68],colorNeutralForeground3Hover:U[84],colorNeutralForeground3Pressed:U[84],colorNeutralForeground3Selected:U[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:U[60],colorNeutralForeground5:U[68],colorNeutralForeground5Hover:Se,colorNeutralForeground5Pressed:Se,colorNeutralForeground5Selected:Se,colorNeutralForegroundDisabled:U[36],colorNeutralForegroundInvertedDisabled:kt[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:U[84],colorNeutralForeground2LinkHover:Se,colorNeutralForeground2LinkPressed:Se,colorNeutralForeground2LinkSelected:Se,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:U[14],colorNeutralForegroundStaticInverted:Se,colorNeutralForegroundInverted:U[14],colorNeutralForegroundInvertedHover:U[14],colorNeutralForegroundInvertedPressed:U[14],colorNeutralForegroundInvertedSelected:U[14],colorNeutralForegroundInverted2:U[14],colorNeutralForegroundOnBrand:Se,colorNeutralForegroundInvertedLink:Se,colorNeutralForegroundInvertedLinkHover:Se,colorNeutralForegroundInvertedLinkPressed:Se,colorNeutralForegroundInvertedLinkSelected:Se,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:U[16],colorNeutralBackground1Hover:U[24],colorNeutralBackground1Pressed:U[12],colorNeutralBackground1Selected:U[22],colorNeutralBackground2:U[12],colorNeutralBackground2Hover:U[20],colorNeutralBackground2Pressed:U[8],colorNeutralBackground2Selected:U[18],colorNeutralBackground3:U[8],colorNeutralBackground3Hover:U[16],colorNeutralBackground3Pressed:U[4],colorNeutralBackground3Selected:U[14],colorNeutralBackground4:U[4],colorNeutralBackground4Hover:U[12],colorNeutralBackground4Pressed:ha,colorNeutralBackground4Selected:U[10],colorNeutralBackground5:ha,colorNeutralBackground5Hover:U[8],colorNeutralBackground5Pressed:U[2],colorNeutralBackground5Selected:U[6],colorNeutralBackground6:U[20],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:U[10],colorNeutralBackground7Pressed:U[4],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:U[16],colorNeutralBackgroundInverted:Se,colorNeutralBackgroundInvertedHover:U[96],colorNeutralBackgroundInvertedPressed:U[88],colorNeutralBackgroundInvertedSelected:U[92],colorNeutralBackgroundStatic:U[24],colorNeutralBackgroundAlpha:ax[50],colorNeutralBackgroundAlpha2:sx[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:U[22],colorSubtleBackgroundPressed:U[18],colorSubtleBackgroundSelected:U[20],colorSubtleBackgroundLightAlphaHover:Sp[80],colorSubtleBackgroundLightAlphaPressed:Sp[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Yt[10],colorSubtleBackgroundInvertedPressed:Yt[30],colorSubtleBackgroundInvertedSelected:Yt[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:U[8],colorNeutralBackgroundDisabled2:U[16],colorNeutralBackgroundInvertedDisabled:kt[10],colorNeutralStencil1:U[34],colorNeutralStencil2:U[20],colorNeutralStencil1Alpha:kt[10],colorNeutralStencil2Alpha:kt[5],colorBackgroundOverlay:Yt[50],colorScrollbarOverlay:kt[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Se,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:U[20],colorNeutralCardBackgroundHover:U[24],colorNeutralCardBackgroundPressed:U[18],colorNeutralCardBackgroundSelected:U[22],colorNeutralCardBackgroundDisabled:U[8],colorNeutralStrokeAccessible:U[68],colorNeutralStrokeAccessibleHover:U[74],colorNeutralStrokeAccessiblePressed:U[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:U[40],colorNeutralStroke1Hover:U[46],colorNeutralStroke1Pressed:U[42],colorNeutralStroke1Selected:U[44],colorNeutralStroke2:U[32],colorNeutralStroke3:U[24],colorNeutralStroke4:U[24],colorNeutralStroke4Hover:U[18],colorNeutralStroke4Pressed:U[14],colorNeutralStroke4Selected:U[24],colorNeutralStrokeSubtle:U[4],colorNeutralStrokeOnBrand:U[16],colorNeutralStrokeOnBrand2:Se,colorNeutralStrokeOnBrand2Hover:Se,colorNeutralStrokeOnBrand2Pressed:Se,colorNeutralStrokeOnBrand2Selected:Se,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:U[26],colorNeutralStrokeDisabled2:U[24],colorNeutralStrokeInvertedDisabled:kt[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:kt[10],colorNeutralStrokeAlpha2:kt[20],colorStrokeFocus1:ha,colorStrokeFocus2:Se,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),Kx=e=>{const t=Gx(e);return{...zp,...Fp,...Pp,...jp,...Rp,...Dp,...Mp,...Ip,...Tp,...Ep,...t,...Wx,...Jr,...ma(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...ma(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},Ap={root:"fui-FluentProvider"},Xx=gf({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),Qx=e=>{const t=Zi(),n=Xx({dir:e.dir,renderer:t});return e.root.className=de(Ap.root,e.themeClassName,n.root,e.root.className),e},Yx=S.useInsertionEffect?S.useInsertionEffect:tt,Jx=(e,t)=>{if(!e?.head)return;const n=e.createElement("style");return Object.keys(t).forEach(i=>{n.setAttribute(i,t[i])}),e.head.appendChild(n),n},Zx=(e,t)=>{const n=e.sheet;n&&(n.cssRules.length>0&&n.deleteRule(0),n.insertRule(t,0))},ew=e=>{const{targetDocument:t,theme:n,rendererAttributes:i}=e,s=S.useRef(void 0),l=wr(Ap.root),c=i,d=S.useMemo(()=>z1(`.${l}`,n),[n,l]);return tw(t,l),Yx(()=>{const f=t?.getElementById(l);return f?s.current=f:(s.current=Jx(t,{...c,id:l}),s.current&&Zx(s.current,d)),()=>{var h;(h=s.current)===null||h===void 0||h.remove()}},[l,t,d,c]),{styleTagId:l,rule:d}};function tw(e,t){S.useState(()=>{if(!e)return;const n=e.getElementById(t);n&&e.head.append(n)})}const rw={},nw={},ow=(e,t)=>{var n;const i=$e(),s=iw(),l=wl(),c=S.useContext(kl)||rw,{applyStylesToPortals:d=!0,customStyleHooks_unstable:f,dir:h=i.dir,targetDocument:g=i.targetDocument,theme:b,overrides_unstable:x={}}=e,m=Ll(s,b),y=Ll(l,x),w=Ll(c,f),_=Zi(),{styleTagId:N,rule:E}=ew({theme:m,targetDocument:g,rendererAttributes:(n=_.styleElementAttributes)!==null&&n!==void 0?n:nw});return{applyStylesToPortals:d,customStyleHooks_unstable:w,dir:h,targetDocument:g,theme:m,overrides_unstable:y,themeClassName:N,components:{root:"div"},root:Me(Gt("div",{...e,dir:h,ref:ct(t,pa({targetDocument:g}))}),{elementType:"div"}),serverStyleProps:{cssRule:E,attributes:{..._.styleElementAttributes,id:N}}}};function Ll(e,t){return e&&t?{...e,...t}:e||t}function iw(){return S.useContext(zf)}function aw(e){const{applyStylesToPortals:t,customStyleHooks_unstable:n,dir:i,root:s,targetDocument:l,theme:c,themeClassName:d,overrides_unstable:f}=e,h=S.useMemo(()=>({dir:i,targetDocument:l}),[i,l]),[g]=S.useState(()=>({})),b=S.useMemo(()=>({textDirection:i}),[i]);return{customStyleHooks_unstable:n,overrides_unstable:f,provider:h,textDirection:i,iconDirection:b,tooltip:g,theme:c,themeClassName:t?s.className:d}}const Op=S.forwardRef((e,t)=>{const n=ow(e,t);Qx(n);const i=aw(n);return Ob(n,i)});Op.displayName="FluentProvider";var Hl={exports:{}},$l={};var qp;function sw(){return qp||(qp=1,(function(e){function t(V,G){var I=V.length;V.push(G);e:for(;0<I;){var J=I-1>>>1,Y=V[J];if(0<s(Y,G))V[J]=G,V[I]=Y,I=J;else break e}}function n(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var G=V[0],I=V.pop();if(I!==G){V[0]=I;e:for(var J=0,Y=V.length,j=Y>>>1;J<j;){var K=2*(J+1)-1,se=V[K],re=K+1,ce=V[re];if(0>s(se,I))re<Y&&0>s(ce,se)?(V[J]=ce,V[re]=I,J=re):(V[J]=se,V[K]=I,J=K);else if(re<Y&&0>s(ce,I))V[J]=ce,V[re]=I,J=re;else break e}}return G}function s(V,G){var I=V.sortIndex-G.sortIndex;return I!==0?I:V.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],g=1,b=null,x=3,m=!1,y=!1,w=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function P(V){for(var G=n(h);G!==null;){if(G.callback===null)i(h);else if(G.startTime<=V)i(h),G.sortIndex=G.expirationTime,t(f,G);else break;G=n(h)}}function L(V){if(w=!1,P(V),!y)if(n(f)!==null)y=!0,T||(T=!0,$());else{var G=n(h);G!==null&&oe(L,G.startTime-V)}}var T=!1,D=-1,O=5,q=-1;function Q(){return _?!0:!(e.unstable_now()-q<O)}function X(){if(_=!1,T){var V=e.unstable_now();q=V;var G=!0;try{e:{y=!1,w&&(w=!1,E(D),D=-1),m=!0;var I=x;try{t:{for(P(V),b=n(f);b!==null&&!(b.expirationTime>V&&Q());){var J=b.callback;if(typeof J=="function"){b.callback=null,x=b.priorityLevel;var Y=J(b.expirationTime<=V);if(V=e.unstable_now(),typeof Y=="function"){b.callback=Y,P(V),G=!0;break t}b===n(f)&&i(f),P(V)}else i(f);b=n(f)}if(b!==null)G=!0;else{var j=n(h);j!==null&&oe(L,j.startTime-V),G=!1}}break e}finally{b=null,x=I,m=!1}G=void 0}}finally{G?$():T=!1}}}var $;if(typeof z=="function")$=function(){z(X)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Z=F.port2;F.port1.onmessage=X,$=function(){Z.postMessage(null)}}else $=function(){N(X,0)};function oe(V,G){D=N(function(){V(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(V){switch(x){case 1:case 2:case 3:var G=3;break;default:G=x}var I=x;x=G;try{return V()}finally{x=I}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(V,G){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var I=x;x=V;try{return G()}finally{x=I}},e.unstable_scheduleCallback=function(V,G,I){var J=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?J+I:J):I=J,V){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=I+Y,V={id:g++,callback:G,priorityLevel:V,startTime:I,expirationTime:Y,sortIndex:-1},I>J?(V.sortIndex=I,t(h,V),n(f)===null&&V===n(h)&&(w?(E(D),D=-1):w=!0,oe(L,I-J))):(V.sortIndex=Y,t(f,V),y||m||(y=!0,T||(T=!0,$()))),V},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(V){var G=x;return function(){var I=x;x=G;try{return V.apply(this,arguments)}finally{x=I}}}})($l)),$l}var Lp;function lw(){return Lp||(Lp=1,Hl.exports=sw()),Hl.exports}var Hp=lw();const cw=e=>n=>{const i=S.useRef(n.value),s=S.useRef(null);return s.current||(s.current={value:i,listeners:[]}),tt(()=>{i.current=n.value,Hp.unstable_runWithPriority(Hp.unstable_NormalPriority,()=>{s.current.listeners.forEach(l=>{l(n.value)})})},[n.value]),S.createElement(e,{value:s.current},n.children)},ga=e=>{const t=S.createContext({value:{current:e},listeners:[],isDefault:!0});return t.Provider=cw(t.Provider),delete t.Consumer,t},va=(e,t)=>{const n=S.useContext(e),{value:i,listeners:s}=n,l=t(i.current),[,c]=S.useReducer(h=>h+1,0),d=S.useRef(t),f=S.useRef(l);return tt(()=>{d.current=t,f.current=l}),tt(()=>{const h=g=>{try{const b=d.current(g);Object.is(f.current,b)||c()}catch{}};return s.push(h),h(i.current),()=>{const g=s.indexOf(h);g!==-1&&s.splice(g,1)}},[s,i]),l};function ba(e){return!S.useContext(e).isDefault}const ya="Enter",Qo=" ",uw="Tab",dw="ArrowDown",$p="ArrowLeft",Vp="ArrowRight",xa="Escape";function wa(e,t){const{disabled:n,disabledFocusable:i=!1,["aria-disabled"]:s,onClick:l,onKeyDown:c,onKeyUp:d,...f}=t??{},h=typeof s=="string"?s==="true":s,g=n||i||h,b=be(y=>{g?(y.preventDefault(),y.stopPropagation()):l?.(y)}),x=be(y=>{if(c?.(y),y.isDefaultPrevented())return;const w=y.key;if(g&&(w===ya||w===Qo)){y.preventDefault(),y.stopPropagation();return}if(w===Qo){y.preventDefault();return}else w===ya&&(y.preventDefault(),y.currentTarget.click())}),m=be(y=>{if(d?.(y),y.isDefaultPrevented())return;const w=y.key;if(g&&(w===ya||w===Qo)){y.preventDefault(),y.stopPropagation();return}w===Qo&&(y.preventDefault(),y.currentTarget.click())});if(e==="button"||e===void 0)return{...f,disabled:n&&!i,"aria-disabled":i?!0:h,onClick:i?void 0:b,onKeyUp:i?void 0:d,onKeyDown:i?void 0:c};{const y=!!f.href;let w=y?void 0:"button";!w&&g&&(w="link");const _={role:w,tabIndex:i||!y&&!n?0:void 0,...f,onClick:b,onKeyUp:m,onKeyDown:x,"aria-disabled":g};return e==="a"&&g&&(_.href=void 0),_}}const fw=ke({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),pw="fui-Icon",hw="data-fui-icon",mw=(e,t)=>{const{filled:n,idPrefix:i,title:s,primaryFill:l="currentColor",...c}=e,d={...c,fill:l},f=Ab(),h=!!(t?.flipInRtl&&f?.textDirection==="rtl");return s&&(d["aria-label"]=s),!d["aria-label"]&&!d["aria-labelledby"]?d["aria-hidden"]=!0:d.role="img",d[hw]="",{state:d,isRtlFlip:h}},gw=(e,t)=>{const n=fw(),{state:i,isRtlFlip:s}=mw(e,t);return i.className=de(n.root,s&&n.rtl,i.className),i},vw=ke({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),Vl="url(#",Up=(e,t,n)=>{const[i,s,...l]=e;let c=s;if(n&&s){const d={};for(const f in s){const h=s[f];if(typeof h!="string")d[f]=h;else if(f==="id")d[f]=n+h;else{const g=h.indexOf(Vl);d[f]=g<0?h:h.slice(0,g+Vl.length)+n+h.slice(g+Vl.length)}}c=d}return S.createElement(i,{...c,key:t},...l.map((d,f)=>Up(d,f,n)))},bw=e=>e==="1em"?"20":e,Wp=(e,t,n)=>typeof e!="string"&&(t?.color||Array.isArray(e[0]))?e.map((i,s)=>Up(i,s,n)):void 0,yw=()=>{},xw=(e,t)=>{const n=Wp(e,t);return n?function(s){return S.useMemo(()=>s?Wp(e,t,s):n,[s])}:yw},ww=(e,t,n)=>typeof t=="string"?S.createElement("svg",{...e,dangerouslySetInnerHTML:{__html:t}}):n?S.createElement("svg",e,...n):S.createElement("svg",e,...t.map(i=>S.createElement("path",{d:i,fill:e.fill}))),De=(e,t,n,i)=>{const s=bw(t),l=xw(n,i),c=S.forwardRef((d,f)=>{const h=vw(),g=gw(d,{flipInRtl:i?.flipInRtl}),b=l(d.idPrefix),x={...g,className:de(pw,g.className,h.root),ref:f,width:t,height:t,viewBox:`0 0 ${s} ${s}`,xmlns:"http://www.w3.org/2000/svg"};return ww(x,n,b)});return c.displayName=e,c},Gp=De("SearchRegular","1em",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06zm-.71-.71A5.5 5.5 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23"]),kw=De("TableSearchRegular","1em",["M17 5.5A2.5 2.5 0 0 0 14.5 3h-9A2.5 2.5 0 0 0 3 5.5v3.76q.49-.18 1-.23V8h3v1.76a5 5 0 0 1 1 .91V8h4v4H8.74a5 5 0 0 1 .23 1H12v3H9.12l1 1h4.38a2.5 2.5 0 0 0 2.5-2.5zM14.5 16H13v-3h3v1.64A1.5 1.5 0 0 1 14.5 16M13 8h3v4h-3zm-1-1H8V4h4zm1-3h1.64A1.5 1.5 0 0 1 16 5.5V7h-3zM4 7V5.36A1.5 1.5 0 0 1 5.5 4H7v3zm-2.62 4.9a3.5 3.5 0 0 0 5.22 4.4l2.54 2.56a.5.5 0 0 0 .71-.71L7.3 15.6a3.5 3.5 0 1 0-5.92-3.7m5.2.21a2.5 2.5 0 1 1-4.16 2.78 2.5 2.5 0 0 1 4.16-2.78"]),Sw=De("DataUsageRegular","1em",["M10 10a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5M6 8.5a.5.5 0 0 1 1 0v5a.5.5 0 0 1-1 0zM13.5 6a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 1 0v-7a.5.5 0 0 0-.5-.5M3 5c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm1 0v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1"]),_w=De("DatabaseRegular","1em",["M4 5c0-1 .88-1.76 1.9-2.22C6.98 2.28 8.43 2 10 2s3.02.29 4.1.78C15.12 3.24 16 3.99 16 5v10c0 1-.88 1.76-1.9 2.22-1.08.5-2.53.78-4.1.78s-3.02-.29-4.1-.78C4.88 16.76 4 16.01 4 15zm1 0c0 .37.36.88 1.32 1.31.91.42 2.22.69 3.68.69s2.77-.27 3.68-.69C14.64 5.88 15 5.37 15 5s-.36-.88-1.32-1.31A9 9 0 0 0 10 3c-1.46 0-2.77.27-3.68.69C5.36 4.12 5 4.63 5 5m10 1.7q-.41.3-.9.52c-1.08.5-2.53.78-4.1.78s-3.02-.29-4.1-.78A5 5 0 0 1 5 6.7V15c0 .37.36.88 1.32 1.31.91.42 2.22.69 3.68.69s2.77-.27 3.68-.69c.96-.43 1.32-.94 1.32-1.31z"]),Cw=De("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8M7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0m-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9 9 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.4 4.4 0 0 0 17 13a2 2 0 0 0-2-2zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8 8 0 0 1 10 17a8 8 0 0 1-4.33-1.05A3.4 3.4 0 0 1 4 13"]),Nw=De("GlobeRegular","1em",["M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16m0-15c.66 0 1.4.59 2.02 1.9q.33.71.56 1.6H7.42q.23-.89.56-1.6C8.59 3.6 9.34 3 10 3M7.07 4.49q-.4.9-.68 2.01H3.94A7 7 0 0 1 7.7 3.38q-.36.5-.64 1.1M6.2 7.5a16 16 0 0 0 0 5H3.46a7 7 0 0 1 0-5zm.2 6q.26 1.12.68 2.01.28.61.64 1.1a7 7 0 0 1-3.77-3.11zm1.03 0h5.16a9 9 0 0 1-.56 1.6C11.41 16.4 10.66 17 10 17s-1.4-.59-2.02-1.9q-.33-.71-.56-1.6m5.37-1H7.21a15 15 0 0 1 0-5h5.58a15 15 0 0 1 0 5m.82 1h2.45a7 7 0 0 1-3.77 3.12q.36-.5.64-1.1.4-.9.68-2.02m2.93-1h-2.73a16 16 0 0 0 0-5h2.73a7 7 0 0 1 0 5m-4.25-9.12a7 7 0 0 1 3.77 3.12h-2.45a11 11 0 0 0-.68-2.01q-.28-.61-.64-1.1"]),Bw=De("WarningRegular","1em",["M7.37 3.56a3 3 0 0 1 5.26 0l5.5 10A3 3 0 0 1 15.5 18h-11a3 3 0 0 1-2.63-4.44zm4.38.48a2 2 0 0 0-3.5 0l-5.5 10A2 2 0 0 0 4.5 17h11a2 2 0 0 0 1.75-2.96zM10 12.75a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m0-6.25c.28 0 .5.22.5.5v4a.5.5 0 0 1-1 0V7c0-.28.22-.5.5-.5"]),zw=De("PlayFilled","1em",["M17.22 8.68a1.5 1.5 0 0 1 0 2.63l-10 5.5A1.5 1.5 0 0 1 5 15.5v-11A1.5 1.5 0 0 1 7.22 3.2z"]),Ew=De("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16"]),Tw=De("EditRegular","1em",["M17.18 2.93a2.97 2.97 0 0 0-4.26-.06l-9.37 9.38q-.5.5-.66 1.2l-.88 3.94a.5.5 0 0 0 .6.6l3.93-.87c.46-.1.9-.34 1.23-.68l9.36-9.36a2.97 2.97 0 0 0 .05-4.15m-3.55.65a1.97 1.97 0 1 1 2.8 2.8l-.68.66-2.8-2.79zm-1.38 1.38 2.8 2.8-7.99 7.97q-.31.31-.74.41l-3.16.7.7-3.18q.1-.41.4-.7z"]),Fw=De("LockOpenRegular","1em",["M15 1a4 4 0 0 1 4 4v.5a.5.5 0 0 1-1 0V5a3 3 0 1 0-6 0v2h1.5A2.5 2.5 0 0 1 16 9.5v6a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 4 15.5v-6A2.5 2.5 0 0 1 6.5 7H11V5a4 4 0 0 1 4-4M6.5 8C5.67 8 5 8.67 5 9.5v6c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-6c0-.83-.67-1.5-1.5-1.5zm3.5 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"]),Pw=De("ArrowDownloadRegular","1em",["M15.5 17a.5.5 0 0 1 .09 1H4.5a.5.5 0 0 1-.09-1H15.5M10 2a.5.5 0 0 1 .5.41V14.3l3.64-3.65a.5.5 0 0 1 .64-.06l.07.06c.17.17.2.44.06.63l-.06.07-4.5 4.5a.5.5 0 0 1-.25.14L10 16a.5.5 0 0 1-.4-.2l-4.46-4.45a.5.5 0 0 1 .64-.76l.07.06 3.65 3.64V2.5c0-.27.22-.5.5-.5"]),Rw=De("TextBulletListRegular","1em",["M3 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3-1c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m0 5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m.5 4.5a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1zm-2.5.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-1-4a1 1 0 1 0 0-2 1 1 0 0 0 0 2"]),jw=De("ArchiveRegular","1em",["M8.5 10a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1zM2 4.75C2 3.78 2.78 3 3.75 3h12.5c.97 0 1.75.78 1.75 1.75v1.5c0 .7-.4 1.3-1 1.58V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V7.83c-.6-.28-1-.88-1-1.58zM3.75 4a.75.75 0 0 0-.75.75v1.5c0 .41.34.75.75.75h12.5c.41 0 .75-.34.75-.75v-1.5a.75.75 0 0 0-.75-.75zM4 8v6c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V8z"]),Mw=De("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06z"]),Iw=De("CheckmarkCircleRegular","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14m3.36 4.65c.17.17.2.44.06.63l-.06.07-4 4a.5.5 0 0 1-.64.07l-.07-.06-2-2a.5.5 0 0 1 .63-.77l.07.06L9 11.3l3.65-3.65c.2-.2.51-.2.7 0"]),Dw=De("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0"]),Aw=De("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07z"]),Ow=De("QuestionCircleRegular","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14m0 10.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m0-8a2.5 2.5 0 0 1 1.65 4.38l-.15.12-.22.17-.09.07-.16.15c-.33.36-.53.85-.53 1.61a.5.5 0 0 1-1 0 3.2 3.2 0 0 1 1.16-2.62l.25-.19.12-.1A1.5 1.5 0 0 0 10 6.5c-.83 0-1.5.67-1.5 1.5a.5.5 0 0 1-1 0A2.5 2.5 0 0 1 10 5.5"]),qw=De("Warning12Filled","12",["M4.28 1.97a2 2 0 0 1 3.43 0l3 5A2 2 0 0 1 9 10H3A2 2 0 0 1 1.3 6.98zM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5M6 3.5a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 0 1 0V4a.5.5 0 0 0-.5-.5"]),Lw=De("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04"]),Kp=De("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04"]),Hw=De("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6m7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0z"]),$w=De("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z"]),Vw=De("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5z"]),Uw=De("DiamondDismiss12Filled","12",["M4.59 1.09a2 2 0 0 1 2.82 0l3.5 3.5a2 2 0 0 1 0 2.82l-3.5 3.5a2 2 0 0 1-2.82 0l-3.5-3.5a2 2 0 0 1 0-2.83zm3.26 3.06a.5.5 0 0 0-.7 0L6 5.29 4.85 4.15a.5.5 0 0 0-.7.7L5.29 6 4.15 7.15a.5.5 0 0 0 .7.7L6 6.71l1.15 1.14a.5.5 0 1 0 .7-.7L6.71 6l1.14-1.15a.5.5 0 0 0 0-.7"]),Ww=De("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07z"]),Ye={...{durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},...{curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"}};function Gw(e){if(e.playState==="running"){var t;if(e.overallProgress!==void 0){var n;const d=(n=e.overallProgress)!==null&&n!==void 0?n:0;return d>0&&d<1}var i;const l=Number((i=e.currentTime)!==null&&i!==void 0?i:0);var s;const c=Number((s=(t=e.effect)===null||t===void 0?void 0:t.getTiming().duration)!==null&&s!==void 0?s:0);return l>0&&l<c}return!1}const Kw={fill:"forwards"},Xw={duration:1};function Qw(e){return{set playbackRate(t){e.forEach(n=>{n.playbackRate=t})},setMotionEndCallbacks(t,n){const i=e.map(s=>new Promise((l,c)=>{s.onfinish=()=>l(),s.oncancel=()=>c()}));Promise.all(i).then(()=>{t()}).catch(()=>{n()})},isRunning(){return e.some(t=>Gw(t))},dispose:()=>{e.length=0},cancel:()=>{e.forEach(t=>{t.cancel()})},pause:()=>{e.forEach(t=>{t.pause()})},play:()=>{e.forEach(t=>{t.play()})},finish:()=>{e.forEach(t=>{t.finish()})},reverse:()=>{e.forEach(t=>{t.reverse()})}}}function Yw(){var e;const t=typeof window<"u"&&typeof((e=window.Animation)===null||e===void 0?void 0:e.prototype.persist)=="function";return S.useCallback((n,i,s)=>{const l=Array.isArray(i)?i:[i],{isReducedMotion:c}=s,d=l.map(f=>{const{keyframes:h,reducedMotion:g=Xw,...b}=f,{keyframes:x=h,...m}=g,y=c?x:h,w={...Kw,...b,...c&&m};try{const N=n.animate(y,w);if(t)N?.persist();else{const E=y[y.length-1];var _;Object.assign((_=n.style)!==null&&_!==void 0?_:{},E)}return N}catch{return null}}).filter(f=>!!f);return Qw(d)},[t])}function Xp(){return Yw()}function Qp(e){const t=S.useRef(void 0);return S.useImperativeHandle(e,()=>({setPlayState:n=>{if(n==="running"){var i;(i=t.current)===null||i===void 0||i.play()}if(n==="paused"){var s;(s=t.current)===null||s===void 0||s.pause()}},setPlaybackRate:n=>{t.current&&(t.current.playbackRate=n)}})),t}const Jw="screen and (prefers-reduced-motion: reduce)";function Yp(){const{targetDocument:e}=$e();var t;const n=(t=e?.defaultView)!==null&&t!==void 0?t:null,i=S.useRef(!1),s=S.useCallback(()=>i.current,[]);return tt(()=>{if(n===null||typeof n.matchMedia!="function")return;const l=n.matchMedia(Jw);l.matches&&(i.current=!0);const c=d=>{i.current=d.matches};return l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[n]),s}const Zw=["@fluentui/react-motion: Invalid child element.",`
10
+ `,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function Jp(e,t=!0){const n=S.useRef(null);S.useEffect(()=>{},[t]);try{const i=S.Children.only(e);if(S.isValidElement(i))return[S.cloneElement(i,{ref:ct(n,oa(i))}),n]}catch{}throw new Error(Zw)}const Zp=S.createContext(void 0);Zp.Provider;const eh=()=>{var e;return(e=S.useContext(Zp))!==null&&e!==void 0?e:"default"},ek=Symbol("MOTION_DEFINITION");function th(e){return Object.assign(n=>{const{children:i,imperativeRef:s,onMotionFinish:l,onMotionStart:c,onMotionCancel:d,replayKey:f,...h}=n,g=h,[b,x]=Jp(i),m=Qp(s),y=S.useRef(!0),w=eh()==="skip",_=S.useRef({skipMotions:w,params:g}),N=Xp(),E=Yp(),z=be(()=>{c?.(null)}),P=be(()=>{l?.(null)}),L=be(()=>{d?.(null)}),T=S.useCallback(D=>{z(),D.setMotionEndCallbacks(P,L),_.current.skipMotions&&D.finish()},[z,P,L]);return tt(()=>{_.current={skipMotions:w,params:g}}),tt(()=>{const D=x.current;if(D){const O=typeof e=="function"?e({element:D,..._.current.params}):e,q=N(D,O,{isReducedMotion:E()});return m.current=q,T(q),()=>{q.cancel()}}},[N,x,m,E,T]),tt(()=>{if(y.current)return;const D=m.current;D&&(D.cancel(),D.play(),T(D))},[f]),tt(()=>(y.current=!1,()=>{y.current=!0}),[]),b},{[ek]:typeof e=="function"?e:()=>e})}const rh=S.createContext(void 0);rh.Provider;function tk(e=!1,t=!1){const n=S.useRef(t?e:!0),i=kb(),s=S.useCallback(l=>{n.current!==l&&(n.current=l,i())},[i]);return S.useEffect(()=>{e&&(n.current=e)}),[e||n.current,s]}const nh=Symbol("PRESENCE_MOTION_DEFINITION"),rk=Symbol.for("interruptablePresence");function ka(e){return Object.assign(t=>{const i={...S.useContext(rh),...t},s=eh()==="skip",{appear:l,children:c,imperativeRef:d,onExit:f,onMotionFinish:h,onMotionStart:g,onMotionCancel:b,visible:x,unmountOnExit:m,...y}=i,w=y,[_,N]=tk(x,m),[E,z]=Jp(c,_),P=Qp(d),L=S.useRef({appear:l,params:w,skipMotions:s}),T=Xp(),D=Df(),O=Yp(),q=be($=>{g?.(null,{direction:$})}),Q=be($=>{h?.(null,{direction:$}),$==="exit"&&m&&(N(!1),f?.())}),X=be($=>{b?.(null,{direction:$})});return tt(()=>{L.current={appear:l,params:w,skipMotions:s}}),tt(()=>{const $=z.current;if(!$)return;let F;function Z(){F&&(V&&F.isRunning()||(F.cancel(),P.current=void 0))}const oe=typeof e=="function"?e({element:$,...L.current.params}):e,V=oe[rk];if(V&&(F=P.current,F&&F.isRunning()))return F.reverse(),Z;const G=x?oe.enter:oe.exit,I=x?"enter":"exit",J=!L.current.appear&&D,Y=L.current.skipMotions;return J||q(I),F=T($,G,{isReducedMotion:O()}),J?(F.finish(),Z):(P.current=F,F.setMotionEndCallbacks(()=>Q(I),()=>X(I)),Y&&F.finish(),Z)},[T,z,P,O,Q,q,X,x]),S.useEffect(()=>{if(m&&!_){var $;($=P.current)===null||$===void 0||$.dispose()}},[P,m,_]),_?E:null},{[nh]:typeof e=="function"?e:()=>e},{In:th(typeof e=="function"?(...t)=>e(...t).enter:e.enter),Out:th(typeof e=="function"?(...t)=>e(...t).exit:e.exit)})}function nk(e,t){return i=>e({...t,...i})}function Yo(e,t){const n=e[nh],i=nk(n,t);return ka(i)}const Ul=S.createContext(void 0);function oh(){return S.useContext(Ul)}const Wl=S.forwardRef((e,t)=>S.createElement(Ul.Provider,{value:t},e.children));Wl.displayName="MotionRefForwarder";const ih=e=>S.createElement(Ul.Provider,{value:void 0},e.children);ih.displayName="MotionRefForwarderReset";function Gl(e,t){const{as:n,children:i,...s}=e??{};if(e===null){const c=!t.defaultProps.visible&&t.defaultProps.unmountOnExit,d=(f,h)=>c?null:S.createElement(S.Fragment,null,h.children);return{[ea]:d,[Zn]:t.elementType}}const l={...t.defaultProps,...s,[Zn]:t.elementType};return typeof i=="function"&&(l[ea]=i),l}const Jo=({direction:e,duration:t,easing:n=Ye.curveLinear,delay:i=0,outOpacity:s=0,inOpacity:l=1})=>{const c=[{opacity:s},{opacity:l}];return e==="exit"&&c.reverse(),{keyframes:c,duration:t,easing:n,delay:i,fill:"both"}},ah=ka(({duration:e=Ye.durationNormal,easing:t=Ye.curveEasyEase,delay:n=0,exitDuration:i=e,exitEasing:s=t,exitDelay:l=n,outOpacity:c=0,inOpacity:d=1})=>({enter:Jo({direction:"enter",duration:e,easing:t,delay:n,outOpacity:c,inOpacity:d}),exit:Jo({direction:"exit",duration:i,easing:s,delay:l,outOpacity:c,inOpacity:d})}));Yo(ah,{duration:Ye.durationFast});const ok=Yo(ah,{duration:Ye.durationGentle}),sh=({direction:e,duration:t,easing:n=Ye.curveLinear,delay:i=0,outScale:s=.9,inScale:l=1})=>{const c=[{scale:s},{scale:l}];return e==="exit"&&c.reverse(),{keyframes:c,duration:t,easing:n,delay:i}},Kl=ka(({duration:e=Ye.durationGentle,easing:t=Ye.curveDecelerateMax,delay:n=0,exitDuration:i=Ye.durationNormal,exitEasing:s=Ye.curveAccelerateMax,exitDelay:l=n,outScale:c=.9,inScale:d=1,animateOpacity:f=!0})=>{const h=[sh({direction:"enter",duration:e,easing:t,delay:n,outScale:c,inScale:d})],g=[sh({direction:"exit",duration:i,easing:s,delay:l,outScale:c,inScale:d})];return f&&(h.push(Jo({direction:"enter",duration:e,easing:t,delay:n})),g.push(Jo({direction:"exit",duration:i,easing:s,delay:l}))),{enter:h,exit:g}});Yo(Kl,{duration:Ye.durationNormal,exitDuration:Ye.durationFast}),Yo(Kl,{duration:Ye.durationSlow,exitDuration:Ye.durationGentle});const ik=({direction:e,duration:t,easing:n=Ye.curveLinear,delay:i=0,outX:s="0px",outY:l="0px",inX:c="0px",inY:d="0px"})=>({keyframes:[{translate:`${s} ${l}`},{translate:`${c} ${d}`}],duration:t,easing:n,delay:i});function ak(e){const t=e.clientX,n=e.clientY,i=t+1,s=n+1;function l(){return{left:t,top:n,right:i,bottom:s,x:t,y:n,height:1,width:1}}return{getBoundingClientRect:l}}const lh="data-popper-is-intersecting",ch="data-popper-escaped",uh="data-popper-reference-hidden",sk="data-popper-placement",Xl="fui-positioningend",Ql="--fui-positioning-slide-direction-x",Yl="--fui-positioning-slide-direction-y",dh=new WeakMap,lk=[Ql,Yl];function ck(e){const t=e.split("-")[0];let n=0,i=1;return t==="right"?(n=-1,i=0):t==="bottom"?(n=0,i=-1):t==="left"&&(n=1,i=0),{x:n,y:i}}function uk(e){const{targetDocument:t,onPositioningEnd:n}=e,i=be(s=>{n?.(s);const l=s.target,c=s.detail.placement;if(!Kt(l))return;const{x:d,y:f}=ck(c);l.style.setProperty(Ql,`${d}px`),l.style.setProperty(Yl,`${f}px`)});return S.useEffect(()=>{var s;const l=t==null||(s=t.defaultView)===null||s===void 0?void 0:s.CSS;if(!t||!l?.registerProperty)return;let c=dh.get(t);c||(c=new Set,dh.set(t,c));for(const d of lk)if(!c.has(d))try{l.registerProperty({name:d,syntax:"<length>",inherits:!1,initialValue:"0px"}),c.add(d)}catch(f){f&&typeof f=="object"&&"name"in f&&f.name==="InvalidModificationError"&&c.add(d)}},[t]),i}const dk=({options:e})=>e,fh=S.createContext(void 0);fh.Provider;const fk=()=>{var e;return(e=S.useContext(fh))!==null&&e!==void 0?e:dk},pk=["top","right","bottom","left"],Fn=Math.min,Zr=Math.max,Sa=Math.round,Mr=e=>({x:e,y:e}),hk={left:"right",right:"left",bottom:"top",top:"bottom"};function ph(e,t,n){return Zr(e,Fn(t,n))}function Ir(e,t){return typeof e=="function"?e(t):e}function en(e){return e.split("-")[0]}function oo(e){return e.split("-")[1]}function Jl(e){return e==="x"?"y":"x"}function Zl(e){return e==="y"?"height":"width"}function _r(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ec(e){return Jl(_r(e))}function mk(e,t,n){n===void 0&&(n=!1);const i=oo(e),s=ec(e),l=Zl(s);let c=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=_a(c)),[c,_a(c)]}function gk(e){const t=_a(e);return[tc(e),t,tc(t)]}function tc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const hh=["left","right"],mh=["right","left"],vk=["top","bottom"],bk=["bottom","top"];function yk(e,t,n){switch(e){case"top":case"bottom":return n?t?mh:hh:t?hh:mh;case"left":case"right":return t?vk:bk;default:return[]}}function xk(e,t,n,i){const s=oo(e);let l=yk(en(e),n==="start",i);return s&&(l=l.map(c=>c+"-"+s),t&&(l=l.concat(l.map(tc)))),l}function _a(e){const t=en(e);return hk[t]+e.slice(t.length)}function wk(e){var t,n,i,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function gh(e){return typeof e!="number"?wk(e):{top:e,right:e,bottom:e,left:e}}function Ca(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function vh(e,t,n){let{reference:i,floating:s}=e;const l=_r(t),c=ec(t),d=Zl(c),f=en(t),h=l==="y",g=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,x=i[d]/2-s[d]/2;let m;switch(f){case"top":m={x:g,y:i.y-s.height};break;case"bottom":m={x:g,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:b};break;case"left":m={x:i.x-s.width,y:b};break;default:m={x:i.x,y:i.y}}const y=oo(t);return y&&(m[c]+=x*(y==="end"?1:-1)*(n&&h?-1:1)),m}async function bh(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:c,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:x=!1,padding:m=0}=Ir(t,e),y=gh(m),_=d[x?b==="floating"?"reference":"floating":b],N=Ca(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(_)))==null||n?_:_.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:h,rootBoundary:g,strategy:f})),E=b==="floating"?{x:i,y:s,width:c.floating.width,height:c.floating.height}:c.reference,z=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),P=await(l.isElement==null?void 0:l.isElement(z))&&await(l.getScale==null?void 0:l.getScale(z))||{x:1,y:1},L=Ca(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:E,offsetParent:z,strategy:f}):E);return{top:(N.top-L.top+y.top)/P.y,bottom:(L.bottom-N.bottom+y.bottom)/P.y,left:(N.left-L.left+y.left)/P.x,right:(L.right-N.right+y.right)/P.x}}const kk=50,Sk=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:c}=n,d=c.detectOverflow?c:{...c,detectOverflow:bh},f=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:b}=vh(h,i,f),x=i,m=0;const y={};for(let w=0;w<l.length;w++){const _=l[w];if(!_)continue;const{name:N,fn:E}=_,{x:z,y:P,data:L,reset:T}=await E({x:g,y:b,initialPlacement:i,placement:x,strategy:s,middlewareData:y,rects:h,platform:d,elements:{reference:e,floating:t}});g=z??g,b=P??b,y[N]={...y[N],...L},T&&m<kk&&(m++,typeof T=="object"&&(T.placement&&(x=T.placement),T.rects&&(h=T.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:g,y:b}=vh(h,x,f)),w=-1)}return{x:g,y:b,placement:x,strategy:s,middlewareData:y}},_k=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:c,elements:d,middlewareData:f}=t,{element:h,padding:g=0}=Ir(e,t)||{};if(h==null)return{};const b=gh(g),x={x:n,y:i},m=ec(s),y=Zl(m),w=await c.getDimensions(h),_=m==="y",N=_?"top":"left",E=_?"bottom":"right",z=_?"clientHeight":"clientWidth",P=l.reference[y]+l.reference[m]-x[m]-l.floating[y],L=x[m]-l.reference[m],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let D=T?T[z]:0;(!D||!await(c.isElement==null?void 0:c.isElement(T)))&&(D=d.floating[z]||l.floating[y]);const O=P/2-L/2,q=D/2-w[y]/2-1,Q=Fn(b[N],q),X=Fn(b[E],q),$=D-w[y]-X,F=D/2-w[y]/2+O,Z=ph(Q,F,$),oe=!f.arrow&&oo(s)!=null&&F!==Z&&l.reference[y]/2-(F<Q?Q:X)-w[y]/2<0,V=oe?F<Q?F-Q:F-$:0;return{[m]:x[m]+V,data:{[m]:Z,centerOffset:F-Z-V,...oe&&{alignmentOffset:V}},reset:oe}}}),Ck=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:c,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,..._}=Ir(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const N=en(s),E=_r(d),z=en(d)===d,P=await(f.isRTL==null?void 0:f.isRTL(h.floating)),L=x||(z||!w?[_a(d)]:gk(d)),T=y!=="none";!x&&T&&L.push(...xk(d,w,y,P));const D=[d,...L],O=await f.detectOverflow(t,_),q=[];let Q=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&q.push(O[N]),b){const Z=mk(s,c,P);q.push(O[Z[0]],O[Z[1]])}if(Q=[...Q,{placement:s,overflows:q}],!q.every(Z=>Z<=0)){var X,$;const Z=(((X=l.flip)==null?void 0:X.index)||0)+1,oe=D[Z];if(oe&&(!(b==="alignment"?E!==_r(oe):!1)||Q.every(I=>_r(I.placement)===E?I.overflows[0]>0:!0)))return{data:{index:Z,overflows:Q},reset:{placement:oe}};let V=($=Q.filter(G=>G.overflows[0]<=0).sort((G,I)=>G.overflows[1]-I.overflows[1])[0])==null?void 0:$.placement;if(!V)switch(m){case"bestFit":{var F;const G=(F=Q.filter(I=>{if(T){const J=_r(I.placement);return J===E||J==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(J=>J>0).reduce((J,Y)=>J+Y,0)]).sort((I,J)=>I[1]-J[1])[0])==null?void 0:F[0];G&&(V=G);break}case"initialPlacement":V=d;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function yh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xh(e){return pk.some(t=>e[t]>=0)}const Nk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:s="referenceHidden",...l}=Ir(e,t);switch(s){case"referenceHidden":{const c=await i.detectOverflow(t,{...l,elementContext:"reference"}),d=yh(c,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:xh(d)}}}case"escaped":{const c=await i.detectOverflow(t,{...l,altBoundary:!0}),d=yh(c,n.floating);return{data:{escapedOffsets:d,escaped:xh(d)}}}default:return{}}}}},wh=new Set(["left","top"]);async function Bk(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),c=en(n),d=oo(n),f=_r(n)==="y",h=wh.has(c)?-1:1,g=l&&f?-1:1,b=Ir(t,e);let{mainAxis:x,crossAxis:m,alignmentAxis:y}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof y=="number"&&(m=d==="end"?y*-1:y),f?{x:m*g,y:x*h}:{x:x*h,y:m*g}}const zk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:c,middlewareData:d}=t,f=await Bk(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:s+f.x,y:l+f.y,data:{...f,placement:c}}}}},Ek=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:f={fn:E=>{let{x:z,y:P}=E;return{x:z,y:P}}},...h}=Ir(e,t),g={x:n,y:i},b=await l.detectOverflow(t,h),x=_r(s),m=Jl(x);let y=g[m],w=g[x];const _=(E,z)=>ph(z+b[E==="y"?"top":"left"],z,z-b[E==="y"?"bottom":"right"]);c&&(y=_(m,y)),d&&(w=_(x,w));const N=f.fn({...t,[m]:y,[x]:w});return{...N,data:{x:N.x-n,y:N.y-i,enabled:{[m]:c,[x]:d}}}}}},Tk=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,i;const{x:s,y:l,placement:c,rects:d,middlewareData:f}=t,{offset:h=0,mainAxis:g=!0,crossAxis:b=!0}=Ir(e,t),x={x:s,y:l},m=_r(c),y=Jl(m);let w=x[y],_=x[m];const N=Ir(h,t),E=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:(n=N.mainAxis)!=null?n:0,crossAxis:(i=N.crossAxis)!=null?i:0};if(g){const L=y==="y"?"height":"width",T=d.reference[y]-d.floating[L]+E.mainAxis,D=d.reference[y]+d.reference[L]-E.mainAxis;w<T?w=T:w>D&&(w=D)}if(b){var z,P;const L=y==="y"?"width":"height",T=wh.has(en(c)),D=d.reference[m]-d.floating[L]+(T&&((z=f.offset)==null?void 0:z[m])||0)+(T?0:E.crossAxis),O=d.reference[m]+d.reference[L]+(T?0:((P=f.offset)==null?void 0:P[m])||0)-(T?E.crossAxis:0);_<D?_=D:_>O&&(_=O)}return{[y]:w,[m]:_}}}},Fk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...d}=Ir(e,t),f=await s.detectOverflow(t,d),h=en(n),g=oo(n),b=_r(n)==="y",{width:x,height:m}=i.floating;let y,w;h==="top"||h==="bottom"?(y=h,w=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(w=h,y=g==="end"?"top":"bottom");const _=m-f.top-f.bottom,N=x-f.left-f.right,E=Fn(m-f[y],_),z=Fn(x-f[w],N),P=t.middlewareData.shift,L=!P;let T=E,D=z;P!=null&&P.enabled.x&&(D=N),P!=null&&P.enabled.y&&(T=_),L&&!g&&(b?D=x-2*Zr(f.left,f.right):T=m-2*Zr(f.top,f.bottom)),await c({...t,availableWidth:D,availableHeight:T});const O=await s.getDimensions(l.floating);return x!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}};function Na(){return typeof window<"u"}function io(e){return kh(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tn(e){var t;return(t=(kh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kh(e){return Na()?e instanceof Node||e instanceof Lt(e).Node:!1}function Cr(e){return Na()?e instanceof Element||e instanceof Lt(e).Element:!1}function rn(e){return Na()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function Sh(e){return!Na()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function Ba(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function Pk(e){return/^(table|td|th)$/.test(io(e))}function za(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Rk=/transform|translate|scale|rotate|perspective|filter/,jk=/paint|layout|strict|content/,Pn=e=>!!e&&e!=="none";let rc;function nc(e){const t=Cr(e)?Nr(e):e;return Pn(t.transform)||Pn(t.translate)||Pn(t.scale)||Pn(t.rotate)||Pn(t.perspective)||!oc()&&(Pn(t.backdropFilter)||Pn(t.filter))||Rk.test(t.willChange||"")||jk.test(t.contain||"")}function Mk(e){let t=Rn(e);for(;rn(t)&&!Zo(t);){if(nc(t))return t;if(za(t))return null;t=Rn(t)}return null}function oc(){return rc==null&&(rc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rc}function Zo(e){return/^(html|body|#document)$/.test(io(e))}function Nr(e){return Lt(e).getComputedStyle(e)}function Ea(e){return Cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rn(e){if(io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sh(e)&&e.host||tn(e);return Sh(t)?t.host:t}function _h(e){const t=Rn(e);return Zo(t)?(e.ownerDocument||e).body:rn(t)&&Ba(t)?t:_h(t)}function Ch(e,t,n){var i;t===void 0&&(t=[]);const s=_h(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),c=Lt(s);return l?(ic(c),t.concat(c,c.visualViewport||[],Ba(s)?s:[],[])):t.concat(s,Ch(s,[]))}function ic(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nh(e){const t=Nr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=rn(e),l=s?e.offsetWidth:n,c=s?e.offsetHeight:i,d=Sa(n)!==l||Sa(i)!==c;return d&&(n=l,i=c),{width:n,height:i,$:d}}function Bh(e){return Cr(e)?e:e.contextElement}function ao(e){const t=Bh(e);if(!rn(t))return Mr(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=Nh(t);let c=(l?Sa(n.width):n.width)/i,d=(l?Sa(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const Ik=Mr(0);function zh(e){const t=Lt(e);return!oc()||!t.visualViewport?Ik:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dk(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Lt(e)}function ei(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=Bh(e);let c=Mr(1);t&&(i?Cr(i)&&(c=ao(i)):c=ao(e));const d=Dk(l,n,i)?zh(l):Mr(0);let f=(s.left+d.x)/c.x,h=(s.top+d.y)/c.y,g=s.width/c.x,b=s.height/c.y;if(l&&i){const x=Lt(l),m=Cr(i)?Lt(i):i;let y=x,w=ic(y);for(;w&&m!==y;){const _=ao(w),N=w.getBoundingClientRect(),E=Nr(w),z=N.left+(w.clientLeft+parseFloat(E.paddingLeft))*_.x,P=N.top+(w.clientTop+parseFloat(E.paddingTop))*_.y;f*=_.x,h*=_.y,g*=_.x,b*=_.y,f+=z,h+=P,y=Lt(w),w=ic(y)}}return Ca({width:g,height:b,x:f,y:h})}function Ta(e,t){const n=Ea(e).scrollLeft;return t?t.left+n:ei(tn(e)).left+n}function Eh(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Ta(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function Ak(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",c=tn(i),d=t?za(t.floating):!1;if(i===c||d&&l)return n;let f={scrollLeft:0,scrollTop:0},h=Mr(1);const g=Mr(0),b=rn(i);if((b||!l)&&((io(i)!=="body"||Ba(c))&&(f=Ea(i)),b)){const m=ei(i);h=ao(i),g.x=m.x+i.clientLeft,g.y=m.y+i.clientTop}const x=c&&!b&&!l?Eh(c,f):Mr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+g.x+x.x,y:n.y*h.y-f.scrollTop*h.y+g.y+x.y}}function Ok(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function qk(e){const t=Ea(e),n=e.ownerDocument.body,i=Zr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=Zr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+Ta(e);const c=-t.scrollTop;return Nr(n).direction==="rtl"&&(l+=Zr(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:c}}const Lk=25;function Hk(e,t,n){n===void 0&&(n="viewport");const i=n==="layoutViewport",s=Lt(e),l=tn(e),c=s.visualViewport;let d=l.clientWidth,f=l.clientHeight,h=0,g=0;if(c){const x=!oc()||t==="fixed";i?x||(h=-c.offsetLeft,g=-c.offsetTop):(d=c.width,f=c.height,x&&(h=c.offsetLeft,g=c.offsetTop))}if(Ta(l)<=0){const x=l.ownerDocument,m=x.body,y=getComputedStyle(m),w=x.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,_=Math.abs(l.clientWidth-m.clientWidth-w),N=getComputedStyle(l).scrollbarGutter==="stable both-edges"?_/2:_;N<=Lk&&(d-=N)}return{width:d,height:f,x:h,y:g}}function $k(e,t){const n=ei(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=ao(e),c=e.clientWidth*l.x,d=e.clientHeight*l.y,f=s*l.x,h=i*l.y;return{width:c,height:d,x:f,y:h}}function Th(e,t,n){let i;if(t==="viewport"||t==="layoutViewport")i=Hk(e,n,t);else if(t==="document")i=qk(tn(e));else if(Cr(t))i=$k(t,n);else{const s=zh(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ca(i)}function Vk(e,t){const n=t.get(e);if(n)return n;let i=Ch(e,[]).filter(d=>Cr(d)&&io(d)!=="body"),s=null;const l=Nr(e).position==="fixed";let c=l?Rn(e):e;for(;Cr(c)&&!Zo(c);){const d=Nr(c),f=nc(c),h=s?s.position:l?"fixed":"";!f&&(h==="fixed"||h==="absolute"&&d.position==="static")?i=i.filter(b=>b!==c):s=d,c=Rn(c)}return t.set(e,i),i}function Uk(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const c=[...n==="clippingAncestors"?za(t)?[]:Vk(t,this._c):[].concat(n),i],d=Th(t,c[0],s);let f=d.top,h=d.right,g=d.bottom,b=d.left;for(let x=1;x<c.length;x++){const m=Th(t,c[x],s);f=Zr(m.top,f),h=Fn(m.right,h),g=Fn(m.bottom,g),b=Zr(m.left,b)}return{width:h-b,height:g-f,x:b,y:f}}function Wk(e){const{width:t,height:n}=Nh(e);return{width:t,height:n}}function Gk(e,t,n){const i=rn(t),s=tn(t),l=n==="fixed",c=ei(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=Mr(0);if((i||!l)&&((io(t)!=="body"||Ba(s))&&(d=Ea(t)),i)){const x=ei(t,!0,l,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}!i&&s&&(f.x=Ta(s));const h=s&&!i&&!l?Eh(s,d):Mr(0),g=c.left+d.scrollLeft-f.x-h.x,b=c.top+d.scrollTop-f.y-h.y;return{x:g,y:b,width:c.width,height:c.height}}function ac(e){return Nr(e).position==="static"}function Fh(e,t){if(!rn(e)||Nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tn(e)===n&&(n=n.ownerDocument.body),n}function Ph(e,t){const n=Lt(e);if(za(e))return n;if(!rn(e)){let s=Rn(e);for(;s&&!Zo(s);){if(Cr(s)&&!ac(s))return s;s=Rn(s)}return n}let i=Fh(e,t);for(;i&&Pk(i)&&ac(i);)i=Fh(i,t);return i&&Zo(i)&&ac(i)&&!nc(i)?n:i||Mk(e)||n}const Kk=async function(e){const t=this.getOffsetParent||Ph,n=this.getDimensions,i=await n(e.floating);return{reference:Gk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Xk(e){return Nr(e).direction==="rtl"}const Qk={convertOffsetParentRelativeRectToViewportRelativeRect:Ak,getDocumentElement:tn,getClippingRect:Uk,getOffsetParent:Ph,getElementRects:Kk,getClientRects:Ok,getDimensions:Wk,getScale:ao,isElement:Cr,isRTL:Xk},Yk=bh,Jk=zk,Zk=Ek,e2=Ck,t2=Fk,Rh=Nk,r2=_k,jh=Tk,n2=(e,t,n)=>{const i=new Map,s=n??{},l={...Qk,...s.platform,_c:i};return Sk(e,t,{...s,platform:l})};function Mh(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const o2=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,i2=e=>{var t;if(e.nodeType!==1)return{};const n=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return n?n.getComputedStyle(e,null):{}},Fa=e=>{const t=e&&o2(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:n,overflowX:i,overflowY:s}=i2(t);return/(auto|scroll|overlay)/.test(n+s+i)?t:Fa(t)},a2=e=>{var t;const n=Fa(e);return n?n!==((t=n.ownerDocument)===null||t===void 0?void 0:t.body):!1};function sc(e,t){if(t==="window")return e?.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let n=Fa(e);return n.nodeName==="BODY"&&(n=e?.ownerDocument.documentElement),n}return t}function s2(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?lc(e,t):typeof e=="function"?n=>{const i=e(n);return lc(i,t)}:{mainAxis:t}}const lc=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var n;return{...e,mainAxis:((n=e.mainAxis)!==null&&n!==void 0?n:0)+t}};function Ih(e,t){if(typeof e=="number")return e;const{start:n,end:i,...s}=e,l=s,c=t?"end":"start",d=t?"start":"end";return e[c]&&(l.left=e[c]),e[d]&&(l.right=e[d]),l}const l2=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),c2=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),u2=(e,t)=>{const n=e==="above"||e==="below",i=t==="top"||t==="bottom";return n&&i||!n&&!i},Dh=(e,t,n)=>{const i=u2(t,e)?"center":e,s=t&&l2(n)[t],l=i&&c2()[i];return s&&l?`${s}-${l}`:s},d2=()=>({top:"above",bottom:"below",right:"after",left:"before"}),f2=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},p2=e=>{const{side:t,alignment:n}=Mh(e),i=d2()[t],s=n&&f2(i)[n];return{position:i,alignment:s}},h2={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function cc(e){return e==null?{}:typeof e=="string"?h2[e]:e}function uc(e,t,n){const i=S.useRef(!0),[s]=S.useState(()=>({value:e,callback:t,facade:{get current(){return s.value},set current(l){const c=s.value;c!==l&&(s.value=l,s.callback(l,c))}}}));return tt(()=>{i.current=!1},[]),s.callback=t,s.facade}function m2(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function g2(e){const{arrow:t,middlewareData:n}=e;if(!n.arrow||!t)return;const{x:i,y:s}=n.arrow;Object.assign(t.style,{left:i!=null?`${i}px`:"",top:s!=null?`${s}px`:""})}function v2(e){var t,n,i;const{container:s,placement:l,middlewareData:c,strategy:d,lowPPI:f,coordinates:h,useTransform:g=!0}=e;if(!s)return;s.setAttribute(sk,l),s.removeAttribute(lh),c.intersectionObserver.intersecting&&s.setAttribute(lh,""),s.removeAttribute(ch),!((t=c.hide)===null||t===void 0)&&t.escaped&&s.setAttribute(ch,""),s.removeAttribute(uh),!((n=c.hide)===null||n===void 0)&&n.referenceHidden&&s.setAttribute(uh,"");const b=((i=s.ownerDocument.defaultView)===null||i===void 0?void 0:i.devicePixelRatio)||1,x=Math.round(h.x*b)/b,m=Math.round(h.y*b)/b;if(Object.assign(s.style,{position:d}),g){Object.assign(s.style,{transform:f?`translate(${x}px, ${m}px)`:`translate3d(${x}px, ${m}px, 0)`});return}Object.assign(s.style,{left:`${x}px`,top:`${m}px`})}const b2=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function Ah(e){const t=[];let n=e;for(;n;){const i=Fa(n);if(e.ownerDocument.body===i){t.push(i);break}if(i.nodeName==="BODY"&&i!==e.ownerDocument.body)break;t.push(i),n=i}return t}function y2(e,t){return new e.ResizeObserver(t)}function x2(e){const{clientWidth:t,clientHeight:n}=e.ownerDocument.documentElement;return t===0&&n===0}function w2(e){let t=!1;const{container:n,target:i,arrow:s,strategy:l,middleware:c,placement:d,useTransform:f=!0,disableUpdateOnResize:h=!1}=e,g=n.ownerDocument.defaultView;if(!i||!n||!g)return{updatePosition:()=>{},dispose:()=>{}};const b=h?null:y2(g,N=>{N.every(z=>z.contentRect.width>0&&z.contentRect.height>0)&&w()});let x=!0;const m=new Set;Object.assign(n.style,{position:"fixed",left:0,top:0,margin:0});const y=()=>{t||(x&&(Ah(n).forEach(N=>m.add(N)),Kt(i)&&Ah(i).forEach(N=>m.add(N)),m.forEach(N=>{N.addEventListener("scroll",w,{passive:!0})}),b?.observe(n),Kt(i)&&b?.observe(i),x=!1),Object.assign(n.style,{position:l}),n2(i,n,{placement:d,middleware:c,strategy:l}).then(({x:N,y:E,middlewareData:z,placement:P})=>{var L,T;if(t)return;const D=x2(n)?{...z,hide:{...z.hide,escaped:!1,referenceHidden:!1}}:z;g2({arrow:s,middlewareData:D}),v2({container:n,middlewareData:D,placement:P,coordinates:{x:N,y:E},lowPPI:(g?.devicePixelRatio||1)<=1,strategy:l,useTransform:f});var O,q;n.dispatchEvent(new CustomEvent(Xl,{detail:{placement:P,escaped:(O=(L=D.hide)===null||L===void 0?void 0:L.escaped)!==null&&O!==void 0?O:!1,referenceHidden:(q=(T=D.hide)===null||T===void 0?void 0:T.referenceHidden)!==null&&q!==void 0?q:!1}}))}).catch(N=>{}))},w=m2(()=>y()),_=()=>{t=!0,g&&(g.removeEventListener("scroll",w),g.removeEventListener("resize",w)),m.forEach(N=>{N.removeEventListener("scroll",w)}),m.clear(),b?.disconnect()};return g&&(g.addEventListener("scroll",w,{passive:!0}),g.addEventListener("resize",w)),w(),{updatePosition:w,dispose:_}}function k2(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:n,x:i,y:s}=e,l=Mh(t).side,c={x:i,y:s};switch(l){case"bottom":c.y-=n.reference.height;break;case"top":c.y+=n.reference.height;break;case"left":c.x+=n.reference.width;break;case"right":c.x-=n.reference.width;break}return c}}}function S2(e){const{hasScrollableElement:t,flipBoundary:n,container:i,fallbackPositions:s=[],isRtl:l}=e,c=s.reduce((d,f)=>{const{position:h,align:g}=cc(f),b=Dh(g,h,l);return b&&d.push(b),d},[]);return e2({...t&&{boundary:"clippingAncestors"},...n&&{altBoundary:!0,boundary:sc(i,n)},fallbackStrategy:"bestFit",...c.length&&{fallbackPlacements:c}})}function _2(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,n=await Yk(e,{altBoundary:!0}),i=n.top<t.height&&n.top>0,s=n.bottom<t.height&&n.bottom>0;return{data:{intersecting:i||s}}}}}const C2=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:n}){var i;if(!((i=t.resetMaxSize)===null||i===void 0)&&i.maxSizeAlreadyReset)return{};const{applyMaxWidth:s,applyMaxHeight:l}=e;return s&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-width"),n.floating.style.removeProperty("width")),l&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-height"),n.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function N2(e,t){const{container:n,overflowBoundary:i,overflowBoundaryPadding:s,isRtl:l}=t;return t2({...s&&{padding:Ih(s,l)},...i&&{altBoundary:!0,boundary:sc(n,i)},apply({availableHeight:c,availableWidth:d,elements:f,rects:h}){const g=(m,y,w)=>{if(m&&(f.floating.style.setProperty("box-sizing","border-box"),f.floating.style.setProperty(`max-${y}`,`${w}px`),h.floating[y]>w)){f.floating.style.setProperty(y,`${w}px`);const _=y==="width"?"x":"y";f.floating.style.getPropertyValue(`overflow-${_}`)||f.floating.style.setProperty(`overflow-${_}`,"auto")}},{applyMaxWidth:b,applyMaxHeight:x}=e;g(b,"width",d),g(x,"height",c)}})}function B2(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:n},placement:i})=>{const{position:s,alignment:l}=p2(i);return e({positionedRect:t,targetRect:n,position:s,alignment:l})}}function z2(e){const t=B2(e);return Jk(t)}function E2(e){const{hasScrollableElement:t,shiftToCoverTarget:n,disableTether:i,overflowBoundary:s,container:l,overflowBoundaryPadding:c,isRtl:d}=e;return Zk({...t&&{boundary:"clippingAncestors"},...n&&{crossAxis:!0,limiter:jh({crossAxis:!0,mainAxis:!1})},...i&&{crossAxis:i==="all",limiter:jh({crossAxis:i!=="all",mainAxis:!1})},...c&&{padding:Ih(c,d)},...s&&{altBoundary:!0,boundary:sc(l,s)}})}const Oh="--fui-match-target-size";function T2(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:n},elements:{floating:i},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:s=!1}={}}}=e;if(t.width===n.width||s)return{};const{width:l}=t;return i.style.setProperty(Oh,`${l}px`),i.style.width||(i.style.width=`var(${Oh})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function F2(e,t){const{align:n,arrowPadding:i,autoSize:s,coverTarget:l,disableUpdateOnResize:c,flipBoundary:d,offset:f,overflowBoundary:h,pinned:g,position:b,unstable_disableTether:x,strategy:m,overflowBoundaryPadding:y,fallbackPositions:w,useTransform:_,matchTargetSize:N,shiftToCoverTarget:E}=t;return S.useCallback((z,P)=>e({container:z,arrow:P,options:{autoSize:s,disableUpdateOnResize:c,matchTargetSize:N,offset:f,strategy:m,coverTarget:l,flipBoundary:d,overflowBoundary:h,useTransform:_,overflowBoundaryPadding:y,pinned:g,arrowPadding:i,align:n,fallbackPositions:w,shiftToCoverTarget:E,position:b,unstable_disableTether:x}}),[s,c,N,f,m,l,d,h,_,y,g,i,n,w,E,b,x,e])}function P2(e){const{dir:t,targetDocument:n}=$e(),i=t==="rtl",s=F2(fk(),e),{positionFixed:l}=e;return S.useCallback((c,d)=>{const f=a2(c),h=s(c,d),{autoSize:g,disableUpdateOnResize:b,matchTargetSize:x,offset:m,coverTarget:y,flipBoundary:w,overflowBoundary:_,useTransform:N,overflowBoundaryPadding:E,pinned:z,position:P,arrowPadding:L,strategy:T,align:D,fallbackPositions:O,shiftToCoverTarget:q,unstable_disableTether:Q}=h,X=b2(g),$=[X&&C2(X),x&&T2(),m&&z2(m),y&&k2(),!z&&S2({container:c,flipBoundary:w,hasScrollableElement:f,isRtl:i,fallbackPositions:O}),E2({container:c,hasScrollableElement:f,overflowBoundary:_,disableTether:Q,overflowBoundaryPadding:E,isRtl:i,shiftToCoverTarget:q}),X&&N2(X,{container:c,overflowBoundary:_,overflowBoundaryPadding:E,isRtl:i}),_2(),d&&r2({element:d,padding:L}),Rh({strategy:"referenceHidden"}),Rh({strategy:"escaped"}),!1].filter(Boolean);return{placement:Dh(D,P,i),middleware:$,strategy:T??l?"fixed":"absolute",disableUpdateOnResize:b,useTransform:N}},[s,i,n,l])}function qh(e){const t=S.useRef(null),n=S.useRef(null),i=S.useRef(null),s=S.useRef(null),l=S.useRef(null),{enabled:c=!0}=e,d=P2(e),f=S.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var y;const w=(y=i.current)!==null&&y!==void 0?y:n.current;c&&na()&&w&&s.current&&(t.current=w2({container:s.current,target:w,arrow:l.current,...d(s.current,l.current)}))},[c,d]),h=be(y=>{i.current=y,f()});S.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var y;return(y=t.current)===null||y===void 0?void 0:y.updatePosition()},setTarget:y=>{e.target,h(y)}}),[e.target,h]),tt(()=>{var y;h((y=e.target)!==null&&y!==void 0?y:null)},[e.target,h]),tt(()=>{f()},[f]);const g=uc(null,y=>{n.current!==y&&(n.current=y,f())}),b=be(y=>{var w;return(w=e.onPositioningEnd)===null||w===void 0?void 0:w.call(e,y)}),x=uc(null,y=>{if(s.current!==y){var w;(w=s.current)===null||w===void 0||w.removeEventListener(Xl,b),y?.addEventListener(Xl,b),s.current=y,f()}}),m=uc(null,y=>{l.current!==y&&(l.current=y,f())});return{targetRef:g,containerRef:x,arrowRef:m}}const R2=e=>{const[t,n]=S.useState(e);return[t,s=>{if(s==null){n(void 0);return}let l;s instanceof MouseEvent?l=s:l=s.nativeEvent;const c=ak(l);n(c)}]};function j2(){let e=!1;const t=[];return{isActive(){return e},toggleActive(n){e!==n&&(e=n,t.forEach(i=>i(e)))},subscribe(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}}}var dc={exports:{}},fc={};var Lh;function M2(){if(Lh)return fc;Lh=1;var e=Qi();function t(b,x){return b===x&&(b!==0||1/b===1/x)||b!==b&&x!==x}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function d(b,x){var m=x(),y=i({inst:{value:m,getSnapshot:x}}),w=y[0].inst,_=y[1];return l(function(){w.value=m,w.getSnapshot=x,f(w)&&_({inst:w})},[b,m,x]),s(function(){return f(w)&&_({inst:w}),b(function(){f(w)&&_({inst:w})})},[b]),c(m),m}function f(b){var x=b.getSnapshot;b=b.value;try{var m=x();return!n(b,m)}catch{return!0}}function h(b,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return fc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,fc}var Hh;function I2(){return Hh||(Hh=1,dc.exports=M2()),dc.exports}var D2=I2();function $h(e,t){return{topLeft:[e.left-t[0],e.top-t[1]],topRight:[e.right-t[0],e.top-t[1]],bottomRight:[e.right-t[0],e.bottom-t[1]],bottomLeft:[e.left-t[0],e.bottom-t[1]]}}const Vh=20;function Uh(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2)}function A2(e,t){const n=Uh(e,t);return n===0?[0,0]:[(e[0]-t[0])/n,(e[1]-t[1])/n]}function O2(e,t,n){const i=[(e[0]+t[0])/2,(e[1]+t[1])/2],s=A2([n[0],n[1]],[i[0],i[1]]),l=Uh([i[0],i[1]],[n[0],n[1]]);return[i[0]+s[0]*(l+Vh),i[1]+s[1]*(l+Vh)]}function q2(e){return`M ${e} z`}const L2=ke({wrapper:{mc9l5x:"fjseox",Bqenvij:"fniina8",a9b677:"f3tsq5r",Bkecrkj:"f1aehjj5"},wrapperActive:{mc9l5x:"ftgm304"},svg:{Bkfmm31:"f1au8mb3",Bkecrkj:"f1aehjj5",qhf8xq:"f19dog8a",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"]},safeZone:{Bkecrkj:"f1cguypg"},safeZoneDebug:{Bceei9c:"f7116n6",Bkfmm31:"f1xab38x"},rectDebug:{Bkfmm31:"fyegryc"}},{d:[".fjseox{display:none;}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1aehjj5{pointer-events:none;}",".ftgm304{display:block;}",".f1au8mb3{fill:transparent;}",".f19dog8a{position:fixed;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f1cguypg{pointer-events:auto;}",".f7116n6{cursor:crosshair;}",".f1xab38x{fill:color-mix(in srgb, var(--colorPaletteGreenBackground3) 20%, transparent);}",".fyegryc{fill:color-mix(in srgb, var(--colorPaletteRedBackground3) 20%, transparent);}"]});function H2(e){if(e.width<=0||e.height<=0)return"";let t="";return t+=`M ${e.x},${e.y} `,t+=`V ${e.y+e.height} `,t+=`H ${e.x+e.width} `,t+=`V ${e.y} `,t+=`H ${e.x} `,t+="Z ",t}function $2(e,t,n){let i=`M 0,0 H ${e} V ${t} H 0 Z `;return i+=H2(n),i}function V2(e,t){const{topLeft:n,topRight:i,bottomRight:s,bottomLeft:l}=t,c=e[1]<n[1],d=e[1]>l[1],f=e[0]<n[0],h=e[0]>i[0];return c?f?[e,l,n,i]:h?[e,n,i,s]:[e,n,i]:d?f?[e,n,l,s]:h?[e,i,s,l]:[e,s,l]:f?[e,l,n]:h?[e,i,s]:[]}const U2=S.memo(e=>{const{debug:t,onMouseEnter:n,onMouseMove:i,onMouseLeave:s,stateStore:l}=e,c=wr(),d=L2(),f=D2.useSyncExternalStore(l.subscribe,l.isActive),h=S.useRef(null),g=S.useRef(null),b=S.useRef(null),x=S.useRef(null);return S.useImperativeHandle(e.imperativeRef,()=>({updateSVG({containerRect:m,targetRect:y,mouseCoordinates:w}){var _,N,E;const z=Math.min(y.top,m.top),P=Math.min(y.left,m.left),L=Math.max(y.bottom,m.bottom),T=Math.max(y.right,m.right),D=$h(m,[P,z]),O=$h(y,[P,z]),q=[w[0]-P,w[1]-z],Q=O2(D.topLeft,D.bottomRight,q),X=T-P,$=L-z,F=$2(X,$,{x:O.topLeft[0],y:O.topLeft[1],width:y.width,height:y.height});h.current&&(h.current.style.width=`${X}px`,h.current.style.height=`${$}px`,h.current.style.transform=`translate(${P}px, ${z}px)`);const Z=V2(Q,D);(_=g.current)===null||_===void 0||_.setAttribute("d",Z.length>0?q2(Z):""),(N=b.current)===null||N===void 0||N.setAttribute("d",F),(E=x.current)===null||E===void 0||E.setAttribute("d",F)}}),[]),S.createElement("div",{className:de(d.wrapper,f&&d.wrapperActive),"data-safe-zone":""},S.createElement("svg",{"aria-hidden":!0,className:d.svg,xmlns:"http://www.w3.org/2000/svg",ref:h,style:{width:0,height:0,transform:"translate(0px, 0px)"}},S.createElement("g",{className:de(d.safeZone,t&&d.safeZoneDebug),clipPath:`url(#${c})`,onMouseEnter:n,onMouseMove:i,onMouseLeave:s},S.createElement("path",{ref:g})),S.createElement("clipPath",{id:c},S.createElement("path",{ref:b})),t&&S.createElement("path",{ref:x,className:d.rectDebug})))}),W2=2e3;function G2({debug:e=!1,disabled:t=!1,onSafeZoneEnter:n,onSafeZoneMove:i,onSafeZoneLeave:s,onSafeZoneTimeout:l,timeout:c=1500}={}){const[d]=S.useState(j2),f=S.useRef(null),h=S.useRef(null),g=S.useRef(null),[b,x]=Cl(),[m,y]=jf(),w=S.useRef({x:0,y:0}),_=S.useMemo(()=>{if(t)return()=>{};let L=null;function T(){x(),d.toggleActive(!1)}return D=>{D===null&&L?.removeEventListener("mouseenter",T),L=D,D?.addEventListener("mouseenter",T)}},[x,t,d]),N=S.useMemo(()=>{if(t)return()=>{};let L=null;function T(D){w.current={x:D.clientX,y:D.clientY},d.isActive()||d.toggleActive(!0),b(()=>{d.toggleActive(!1)},W2)}return D=>{D===null&&(y(),x(),L?.removeEventListener("mousemove",T)),L=D,D?.addEventListener("mousemove",T)}},[y,x,t,d,b]),E=be(L=>{n?.(L),b(()=>{d.toggleActive(!1),l?.()},c)}),z=be(L=>{b(()=>{d.toggleActive(!1),l?.()},c),i?.(L)}),P=be(L=>{s?.(L)});return S.useEffect(()=>d.subscribe(L=>{if(L){let T=function(){const D=h.current,O=g.current;if(D&&O){var q;(q=f.current)===null||q===void 0||q.updateSVG({containerRect:D.getBoundingClientRect(),mouseCoordinates:[w.current.x,w.current.y],targetRect:O.getBoundingClientRect()})}m(T)};T();return}y()}),[y,m,d]),{containerRef:ct(h,_),targetRef:ct(g,N),elementToRender:S.useMemo(()=>t?null:S.createElement(U2,{debug:e,onMouseEnter:E,onMouseMove:z,onMouseLeave:P,imperativeRef:f,stateStore:d}),[t,e,E,z,P,d])}}var Pa=af();const K2=6,X2=4,Q2=e=>-1,Y2=e=>{};function J2(e){const{targetDocument:t}=$e(),n=t?.defaultView,i=n?n.setTimeout:Q2,s=n?n.clearTimeout:Y2,l=S.useRef(void 0),c=S.useCallback((f,h)=>(l.current!==void 0&&s(l.current),l.current=i(f,h??0),l.current),[s,i]),d=S.useCallback(()=>{l.current!==void 0&&(s(l.current),l.current=void 0)},[s]);return S.useEffect(()=>{const f=e.current;return()=>{(!f||!f.isConnected)&&d()}},[d,e]),[c,d]}const Z2=e=>{var t,n,i,s,l,c,d;const f=cb(),h=wb(),{targetDocument:g}=$e(),[b,x]=Xr({state:e.visible,initialState:!1}),[m,y]=S.useState(!1),{children:w,content:_,withArrow:N=!1,positioning:E="above",onVisibleChange:z,relationship:P,showDelay:L=250,hideDelay:T=250,mountNode:D}=e,O={withArrow:N,positioning:E,showDelay:L,hideDelay:T,relationship:P,visible:b,hidden:m,shouldRenderTooltip:b,mountNode:D,components:{content:"div"},content:Me(_,{defaultProps:{role:"tooltip"},elementType:"div"})};O.content.id=wr("tooltip-",O.content.id);const q=cc(O.positioning),Q=q.target!==void 0&&!Kt(q.target),X=be(ve=>{var me;y(!Q&&ve.detail.referenceHidden),(me=q.onPositioningEnd)===null||me===void 0||me.call(q,ve)}),$={enabled:O.visible,arrowPadding:2*X2,position:"above",align:"center",offset:4,...q,onPositioningEnd:X};O.withArrow&&($.offset=s2($.offset,K2));const{targetRef:F,containerRef:Z,arrowRef:oe}=qh($),[V,G]=J2(Z),I=S.useCallback((ve,me)=>{G(),x(Ce=>(me.visible!==Ce&&z?.(ve,me),me.visible))},[G,x,z]);O.content.ref=ct(O.content.ref,Z),O.arrowRef=oe,tt(()=>{if(b){var ve;const me={hide:ft=>I(void 0,{visible:!1,documentKeyboardEvent:ft})};(ve=f.visibleTooltip)===null||ve===void 0||ve.hide(),f.visibleTooltip=me;const Ce=ft=>{ft.key===xa&&!ft.defaultPrevented&&(me.hide(ft),ft.preventDefault())};g?.addEventListener("keydown",Ce,{capture:!0});const je=()=>{g?.visibilityState==="hidden"&&me.hide()};return g?.addEventListener("visibilitychange",je),()=>{f.visibleTooltip===me&&(f.visibleTooltip=void 0),g?.removeEventListener("keydown",Ce,{capture:!0}),g?.removeEventListener("visibilitychange",je)}}},[f,g,b,I]);const J=S.useRef(!1),Y=S.useCallback(ve=>{if(ve.type==="focus"&&J.current){J.current=!1;return}const me=f.visibleTooltip?0:O.showDelay;V(()=>{I(ve,{visible:!0})},me),ve.persist()},[V,I,O.showDelay,f]),j=ix(),[K]=S.useState(()=>{const ve=Ce=>{var je;!((je=Ce.detail)===null||je===void 0)&&je.isFocusedProgrammatically&&!j()&&(J.current=!0)};let me=null;return Ce=>{me?.removeEventListener(qt,ve),Ce?.addEventListener(qt,ve),me=Ce}}),se=S.useCallback(ve=>{let me=O.hideDelay;ve.type==="blur"&&(me=0,J.current=g?.activeElement===ve.target),V(()=>{I(ve,{visible:!1})},me),ve.persist()},[V,I,O.hideDelay,g]);O.content.onPointerEnter=ut(O.content.onPointerEnter,G),O.content.onPointerLeave=ut(O.content.onPointerLeave,se),O.content.onFocus=ut(O.content.onFocus,G),O.content.onBlur=ut(O.content.onBlur,se);const re=ia(w),ce={},ye=(re==null||(t=re.props)===null||t===void 0?void 0:t["aria-haspopup"])&&((re==null||(n=re.props)===null||n===void 0?void 0:n["aria-expanded"])===!0||(re==null||(i=re.props)===null||i===void 0?void 0:i["aria-expanded"])==="true");return P==="label"?typeof O.content.children=="string"?ce["aria-label"]=O.content.children:(ce["aria-labelledby"]=O.content.id,O.shouldRenderTooltip=!0):P==="description"&&(ce["aria-describedby"]=O.content.id,O.shouldRenderTooltip=!0),(h||ye)&&(O.shouldRenderTooltip=!1),O.children=Nl(w,{...ce,...re?.props,ref:ct(oa(re),K,$.target===void 0?F:void 0),onPointerEnter:be(ut(re==null||(s=re.props)===null||s===void 0?void 0:s.onPointerEnter,Y)),onPointerLeave:be(ut(re==null||(l=re.props)===null||l===void 0?void 0:l.onPointerLeave,se)),onFocus:be(ut(re==null||(c=re.props)===null||c===void 0?void 0:c.onFocus,Y)),onBlur:be(ut(re==null||(d=re.props)===null||d===void 0?void 0:d.onBlur,se))}),O},eS=e=>{"use no memo";const{appearance:t="normal",...n}=e,i=Z2(n);return{appearance:t,...i}};function tS(e){return Kt(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const rS=ke({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),Wh=Yi.useInsertionEffect,nS=e=>{const{className:t,dir:n,focusVisibleRef:i,targetNode:s}=e,l=S.useMemo(()=>{if(s===void 0||e.disabled)return null;const c=s.ownerDocument.createElement("div");return s.appendChild(c),c},[s,e.disabled]);return S.useMemo(()=>{l&&(l.className=t,l.setAttribute("dir",n),l.setAttribute("data-portal-node","true"),i.current=l)},[t,n,l,i]),S.useEffect(()=>()=>{l?.remove()},[l]),l},oS=()=>{let e;function t(i,s){return e||(s&&(e=i.ownerDocument.createElement("div"),i.appendChild(e)),e)}function n(){e&&(e.remove(),e=void 0)}return{get:t,dispose:n}},iS=Wh?e=>{"use no memo";const{className:t,dir:n,focusVisibleRef:i,targetNode:s}=e,[l]=S.useState(oS),c=S.useMemo(()=>s===void 0||e.disabled?null:new Proxy({},{get(d,f){if(f==="nodeType")return 1;if(f==="remove"){const b=l.get(s,!1);return b&&b.childNodes.length===0&&l.dispose(),()=>{}}const h=l.get(s,!0),g=h?h[f]:void 0;return typeof g=="function"?g.bind(h):g},set(d,f,h){const g=f==="_virtual"||f==="focusVisible",b=g?l.get(s,!1):l.get(s,!0);return g&&!b?!0:b?(Object.assign(b,{[f]:h}),!0):!1}}),[l,s,e.disabled]);return Wh(()=>{if(!c)return;const d=t.split(" ").filter(Boolean);return c.classList.add(...d),c.setAttribute("dir",n),c.setAttribute("data-portal-node","true"),i.current=c,()=>{c.classList.remove(...d),c.removeAttribute("dir")}},[t,n,c,i]),S.useEffect(()=>()=>{c?.remove()},[c]),c}:nS,aS=e=>{"use no memo";const{targetDocument:t,dir:n}=$e(),i=Sl(),s=pa(),l=rS(),c=xl(),d={dir:n,disabled:e.disabled,focusVisibleRef:s,className:de(c,l.root,e.className),targetNode:i??t?.body};return iS(d)},sS=e=>{const{element:t,className:n}=tS(e.mountNode),i=S.useRef(null),s=aS({disabled:!!t,className:n}),l=t??s,c={children:e.children,mountNode:l,virtualParentRootRef:i};return S.useEffect(()=>{if(!l)return;const d=i.current,f=l.contains(d);if(d&&!f)return eo(l,d),()=>{eo(l,void 0)}},[i,l]),c},lS=e=>S.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Pa.createPortal(S.createElement(S.Fragment,null,e.children,S.createElement("span",{hidden:!0})),e.mountNode)),Gh=e=>{const t=sS(e);return lS(t)};Gh.displayName="Portal";const cS=e=>rt(S.Fragment,{children:[e.children,e.shouldRenderTooltip&&he(Gh,{mountNode:e.mountNode,children:rt(e.content,{children:[e.withArrow&&he("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),uS={content:"fui-Tooltip__content"},dS=ke({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},hidden:{Bcdw1i0:"fd7fpy0",Bkecrkj:"f1aehjj5"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fd7fpy0{visibility:hidden;}",".f1aehjj5{pointer-events:none;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall) ;}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle)) ;}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall) ;}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset) ;}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset) ;}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),fS=e=>{const t=dS();return e.content.className=de(uS.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.hidden&&t.hidden,e.content.className),e.arrowClassName=t.arrow,e},pc=e=>{const t=eS(e);return fS(t),at("useTooltipStyles_unstable")(t),cS(t)};pc.displayName="Tooltip",pc.isFluentTriggerComponent=!0;const pS=e=>{const{iconOnly:t,iconPosition:n}=e;return rt(e.root,{children:[n!=="after"&&e.icon&&he(e.icon,{}),!t&&e.root.children,n==="after"&&e.icon&&he(e.icon,{})]})},Kh=S.createContext(void 0),hS={};Kh.Provider;const mS=()=>{var e;return(e=S.useContext(Kh))!==null&&e!==void 0?e:hS},gS=(e,t)=>{const{size:n}=mS(),{appearance:i="secondary",shape:s="rounded",size:l=n??"medium",...c}=e,d=vS(c,t);return{appearance:i,shape:s,size:l,...d}},vS=(e,t)=>{var n,i;const{icon:s,iconPosition:l="before",...c}=e,d=Ie(s,{elementType:"span"});return{disabled:(n=e.disabled)!==null&&n!==void 0?n:!1,disabledFocusable:(i=e.disabledFocusable)!==null&&i!==void 0?i:!1,iconPosition:l,iconOnly:!!(d?.children&&!e.children),components:{root:"button",icon:"span"},root:Me(wa(c.as,c),{elementType:"button",defaultProps:{ref:t,type:e.as!=="a"?"button":void 0}}),icon:d}},Xh={root:"fui-Button",icon:"fui-Button__icon"},bS=Pe("r1f29ykk",null,{r:[".r1f29ykk{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1f29ykk:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1f29ykk[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1f29ykk{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1f29ykk:focus{border-color:ButtonText;}.r1f29ykk:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1f29ykk[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),yS=Pe("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),xS=ke({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",Bpjbzib:"fkoldzo"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",Bv2bamp:"f1ysmecq",vxuvv6:"faulsx",Bli9q98:["f79t15f","f8qmx7k"],Bx2tt8t:"fbtzoaq",yad0b3:["f8qmx7k","f79t15f"],j2fop7:"fd4bjan"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",Bpjbzib:"f1q1yqic",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"fwga7ee",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",wsxvnf:"f1xxsver",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",j2fop7:"fd4bjan",Bqabnb4:"f3m6zum"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1l983o9",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",Bv2bamp:"f1i0gk12",j2fop7:"fd4bjan"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}",".fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}",".f1nhwcv0:hover:active .fui-Icon-filled,.f1nhwcv0:active:focus-visible .fui-Icon-filled{display:inline;}",".f1gm6xmp:hover:active .fui-Icon-regular,.f1gm6xmp:active:focus-visible .fui-Icon-regular{display:none;}",".f1xxsver:hover:active .fui-Button__icon,.f1xxsver:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3m6zum:hover:active .fui-Button__icon,.f3m6zum:active:focus-visible .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1i0gk12:hover:active,.f1i0gk12:active:focus-visible{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),wS=ke({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",Bpjbzib:"f1jct5ie",im15vp:"f13txml0",Hjvxdg:["f1ncddno","f1axfvow"],Gpfmf1:"f1z04ada",ustxxc:["f1axfvow","f1ncddno"],Brsut9c:"f1uhomfy",Bses4qk:"fy9mucy",Bqou3pl:"f1g9va8i",Bsnehw8:"fwgvudy",wsxvnf:"fom6jww"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",Bv2bamp:"fw24f3",vxuvv6:"f1nznrny",Bli9q98:["fq8nxuu","f1ao3jkc"],Bx2tt8t:"ftoixeo",yad0b3:["f1ao3jkc","fq8nxuu"],j2fop7:"fpmuzpx",Bqabnb4:"f168odog"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",Bpjbzib:"f9r0db0"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}",".f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}",".fy9mucy:hover:active,.fy9mucy:active:focus-visible{cursor:not-allowed;}",".f1g9va8i:hover:active .fui-Icon-filled,.f1g9va8i:active:focus-visible .fui-Icon-filled{display:none;}",".fwgvudy:hover:active .fui-Icon-regular,.fwgvudy:active:focus-visible .fui-Icon-regular{display:inline;}",".fom6jww:hover:active .fui-Button__icon,.fom6jww:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f9r0db0:hover:active,.f9r0db0:active:focus-visible{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw24f3:hover:active,.fw24f3:active:focus-visible{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nznrny:hover:active,.f1nznrny:active:focus-visible{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ao3jkc:hover:active,.f1ao3jkc:active:focus-visible{border-left-color:GrayText;}.fq8nxuu:hover:active,.fq8nxuu:active:focus-visible{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ftoixeo:hover:active,.ftoixeo:active:focus-visible{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpmuzpx:hover:active,.fpmuzpx:active:focus-visible{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f168odog:hover:active .fui-Button__icon,.f168odog:active:focus-visible .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),kS=ke({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Bqsb82s:["fixhny3","f18mfu3r"],jg1oma:"feygou5"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f18mfu3r[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fixhny3[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),SS=ke({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),_S=ke({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),CS=e=>{const t=bS(),n=yS(),i=xS(),s=wS(),l=kS(),c=SS(),d=_S(),{appearance:f,disabled:h,disabledFocusable:g,icon:b,iconOnly:x,iconPosition:m,shape:y,size:w}=e;return e.root.className=de(Xh.root,t,f&&i[f],i[w],b&&w==="small"&&i.smallWithIcon,b&&w==="large"&&i.largeWithIcon,i[y],(h||g)&&s.base,(h||g)&&s.highContrast,f&&(h||g)&&s[f],f==="primary"&&l.primary,l[w],l[y],x&&c[w],e.root.className),e.icon&&(e.icon.className=de(Xh.icon,n,!!e.root.children&&d[m],d[w],e.icon.className)),e},cr=S.forwardRef((e,t)=>{const n=gS(e,t);return CS(n),at("useButtonStyles_unstable")(n),pS(n)});cr.displayName="Button";const Qh=S.createContext(void 0),NS=Qh.Provider,hc=()=>S.useContext(Qh),BS=e=>{var t,n,i,s;const{generatedControlId:l,orientation:c,required:d,size:f,validationState:h}=e,g=(t=e.label)===null||t===void 0?void 0:t.htmlFor,b=(n=e.label)===null||n===void 0?void 0:n.id,x=(i=e.validationMessage)===null||i===void 0?void 0:i.id,m=(s=e.hint)===null||s===void 0?void 0:s.id;return{field:S.useMemo(()=>({generatedControlId:l,hintId:m,labelFor:g,labelId:b,orientation:c,required:d,size:f,validationMessageId:x,validationState:h}),[l,m,g,b,c,d,f,x,h])}};function Ra(e,t){return Yh(hc(),e,t)}function Yh(e,t,n){if(!e)return t;t={...t};const{generatedControlId:i,hintId:s,labelFor:l,labelId:c,required:d,validationMessageId:f,validationState:h}=e;if(i){var g,b;(b=(g=t).id)!==null&&b!==void 0||(g.id=i)}if(c&&(!n?.supportsLabelFor||l!==t.id)){var x,m,y;(y=(x=t)[m="aria-labelledby"])!==null&&y!==void 0||(x[m]=c)}if((f||s)&&(t["aria-describedby"]=[f,s,t?.["aria-describedby"]].filter(Boolean).join(" ")),h==="error"){var w,_,N;(N=(w=t)[_="aria-invalid"])!==null&&N!==void 0||(w[_]=!0)}if(d)if(n?.supportsRequired){var E,z;(z=(E=t).required)!==null&&z!==void 0||(E.required=!0)}else{var P,L,T;(T=(P=t)[L="aria-required"])!==null&&T!==void 0||(P[L]=!0)}if(n?.supportsSize){var D,O;(O=(D=t).size)!==null&&O!==void 0||(D.size=e.size)}return t}const zS=(e,t)=>{let{children:n}=e;return typeof n=="function"&&(n=n(Yh(t.field)||{})),he(NS,{value:t?.field,children:rt(e.root,{children:[e.label&&he(e.label,{}),n,e.validationMessage&&rt(e.validationMessage,{children:[e.validationMessageIcon&&he(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&he(e.hint,{})]})})},ES=(e,t)=>{const{weight:n="regular",size:i="medium",...s}=e,l=TS(s,t);return{weight:n,size:i,...l}},TS=(e,t)=>{const{disabled:n=!1,required:i=!1,...s}=e;return{disabled:n,required:Ie(i===!0?"*":i||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),components:{root:"label",required:"span"},root:Me(Gt("label",{ref:t,...s}),{elementType:"label"})}},FS=e=>rt(e.root,{children:[e.root.children,e.required&&he(e.required,{})]}),Jh={root:"fui-Label",required:"fui-Label__required"},PS=ke({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),RS=e=>{const t=PS();return e.root.className=de(Jh.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=de(Jh.required,t.required,e.disabled&&t.disabled,e.required.className)),e},jn=S.forwardRef((e,t)=>{const n=ES(e,t);return RS(n),at("useLabelStyles_unstable")(n),FS(n)});jn.displayName="Label";const jS=(e,t)=>{const{children:n,required:i=!1,validationState:s=e.validationMessage?"error":"none"}=e,l=wr("field-"),c=l+"__control",d=Me(Gt("div",{...e,ref:t},["children"]),{elementType:"div"}),f=Ie(e.label,{defaultProps:{htmlFor:c,id:l+"__label",required:i},elementType:"label"}),h=Ie(e.validationMessage,{defaultProps:{id:l+"__validationMessage",role:s==="error"||s==="warning"?"alert":void 0},elementType:"div"}),g=Ie(e.hint,{defaultProps:{id:l+"__hint"},elementType:"div"}),b=Ie(e.validationMessageIcon,{renderByDefault:!1,elementType:"span"});return{children:n,generatedControlId:c,required:i,validationState:s,components:{root:"div",label:"label",validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:d,label:f,validationMessageIcon:b,validationMessage:h,hint:g}},MS={error:S.createElement(Uw,null),warning:S.createElement(qw,null),success:S.createElement(Hw,null),none:void 0},IS=(e,t)=>{const{orientation:n="vertical",size:i="medium",...s}=e,l=jS(s,t),c=MS[l.validationState];return{...l,components:{...l.components,label:jn},label:Ie(e.label,{defaultProps:{size:i,...l.label},elementType:jn}),validationMessageIcon:Ie(e.validationMessageIcon,{renderByDefault:!!c,defaultProps:{children:c},elementType:"span"}),orientation:n,size:i}},ti={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},DS=ke({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),AS=ke({base:{B2u0y6b:"f6nezus",Bxyxcbc:"f1iqmcbn"},vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".f6nezus{max-width:max-content;}",".f1iqmcbn{max-height:max-content;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),OS=Pe("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),qS=ke({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),LS=Pe("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),HS=ke({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),$S=e=>{const{validationState:t,size:n}=e,i=e.orientation==="horizontal",s=DS();e.root.className=de(ti.root,s.base,i&&s.horizontal,i&&!e.label&&s.horizontalNoLabel,e.root.className);const l=AS();e.label&&(e.label.className=de(ti.label,l.base,i&&l.horizontal,i&&n==="small"&&l.horizontalSmall,i&&n==="large"&&l.horizontalLarge,!i&&l.vertical,!i&&n==="large"&&l.verticalLarge,e.label.className));const c=LS(),d=HS();e.validationMessageIcon&&(e.validationMessageIcon.className=de(ti.validationMessageIcon,c,t!=="none"&&d[t],e.validationMessageIcon.className));const f=OS(),h=qS();return e.validationMessage&&(e.validationMessage.className=de(ti.validationMessage,f,t==="error"&&h.error,!!e.validationMessageIcon&&h.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=de(ti.hint,f,e.hint.className)),e},Zh=S.forwardRef((e,t)=>{const n=IS(e,t);$S(n),at("useFieldStyles_unstable")(n);const i=BS(n);return zS(n,i)});Zh.displayName="Field";const VS=(e,t)=>{const{shape:n="square",size:i="medium",...s}=e,l=US(s,t),c=l.checked==="mixed";let d;if(c?n==="circular"?d=S.createElement(Ew,null):d=i==="large"?S.createElement(Vw,null):S.createElement($w,null):l.checked&&(d=i==="large"?S.createElement(Kp,null):S.createElement(Lw,null)),l.indicator){var f,h;(h=(f=l.indicator).children)!==null&&h!==void 0||(f.children=d)}return{shape:n,size:i,...l,components:{...l.components,label:jn},label:Ie(e.label,{defaultProps:{...l.label,size:"medium"},elementType:jn})}},US=(e,t)=>{"use no memo";e=Ra(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:n=!1,required:i,labelPosition:s="after",onChange:l}=e,[c,d]=Xr({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),f=ra({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),h=c==="mixed",g=wr("checkbox-",f.primary.id),b={checked:c,disabled:n,labelPosition:s,components:{root:"span",input:"input",indicator:"div",label:"label"},root:Me(e.root,{defaultProps:{ref:wp(),...f.root},elementType:"span"}),input:Me(e.input,{defaultProps:{type:"checkbox",id:g,ref:t,checked:c===!0,...f.primary},elementType:"input"}),label:Ie(e.label,{defaultProps:{htmlFor:g,disabled:n,required:i},elementType:"label"}),indicator:Ie(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:"div"})};b.input.onChange=ut(b.input.onChange,m=>{const y=m.currentTarget.indeterminate?"mixed":m.currentTarget.checked;l?.(m,{checked:y}),d(y)});const x=ct(b.input.ref);return b.input.ref=x,tt(()=>{x.current&&(x.current.indeterminate=h)},[x,h]),b},WS=e=>rt(e.root,{children:[he(e.input,{}),e.labelPosition==="before"&&e.label&&he(e.label,{}),e.indicator&&he(e.indicator,{}),e.labelPosition==="after"&&e.label&&he(e.label,{})]}),ja={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},GS=Pe("r1nzur1d","r128arqq",{r:[".r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1nzur1d:focus{outline-style:none;}",".r1nzur1d:focus-visible{outline-style:none;}",".r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1nzur1d[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r128arqq:focus{outline-style:none;}",".r128arqq:focus-visible{outline-style:none;}",".r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r128arqq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1nzur1d[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),KS=ke({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",B7iucu3:"f1cyfu5x",Bptavk6:"f1lwde8o"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),XS=Pe("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),QS=ke({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),YS=Pe("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),JS=ke({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),ZS=ke({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),e5=e=>{const{checked:t,disabled:n,labelPosition:i,shape:s,size:l}=e,c=GS(),d=KS();e.root.className=de(ja.root,c,n?d.disabled:t==="mixed"?d.mixed:t?d.checked:d.unchecked,e.root.className);const f=XS(),h=QS();e.input.className=de(ja.input,f,l==="large"&&h.large,h[i],e.input.className);const g=YS(),b=JS();e.indicator&&(e.indicator.className=de(ja.indicator,g,l==="large"&&b.large,s==="circular"&&b.circular,e.indicator.className));const x=ZS();return e.label&&(e.label.className=de(ja.label,x.base,x[l],x[i],e.label.className)),e},em=S.forwardRef((e,t)=>{const n=VS(e,t);return e5(n),at("useCheckboxStyles_unstable")(n),WS(n)});em.displayName="Checkbox";const t5=(e,t)=>{var n,i;const s=wl(),l=hc(),{size:c=(n=l?.size)!==null&&n!==void 0?n:"medium",appearance:d=(i=s.inputDefaultAppearance)!==null&&i!==void 0?i:"outline",...f}=e,h=r5(f,t);return{size:c,appearance:d,...h}},r5=(e,t)=>{const n=Ra(e,{supportsLabelFor:!0,supportsRequired:!0}),[i,s]=Xr({state:n.value,defaultState:n.defaultValue,initialState:""}),l=ra({props:n,primarySlotTagName:"input",excludedPropNames:["onChange","value","defaultValue"]}),c={components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Me(n.input,{defaultProps:{type:"text",ref:t,...l.primary},elementType:"input"}),contentAfter:Ie(n.contentAfter,{elementType:"span"}),contentBefore:Ie(n.contentBefore,{elementType:"span"}),root:Me(n.root,{defaultProps:l.root,elementType:"span"})};return c.input.value=i,c.input.onChange=be(d=>{var f;const h=d.target.value;(f=n.onChange)===null||f===void 0||f.call(n,d,{value:h}),s(h)}),c},n5=e=>rt(e.root,{children:[e.contentBefore&&he(e.contentBefore,{}),he(e.input,{}),e.contentAfter&&he(e.contentAfter,{})]}),Ma={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},o5=Pe("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),i5=ke({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),a5=Pe("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),s5=ke({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),l5=Pe("rmybs6o",null,[".rmybs6o{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".rmybs6o>svg,.rmybs6o>.fui-Icon-font{font-size:20px;}"]),c5=ke({disabled:{sj55zd:"f1s2aq7o"},small:{Baes7ir:"fgbto5u"},medium:{},large:{Baes7ir:"f926jgu"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgbto5u>svg,.fgbto5u>.fui-Icon-font{font-size:16px;}",".f926jgu>svg,.f926jgu>.fui-Icon-font{font-size:24px;}"]}),u5=e=>{const{size:t,appearance:n}=e,i=e.input.disabled,s=`${e.input["aria-invalid"]}`=="true",l=n.startsWith("filled"),c=i5(),d=s5(),f=c5();e.root.className=de(Ma.root,o5(),c[t],e.contentBefore&&c[`${t}WithContentBefore`],e.contentAfter&&c[`${t}WithContentAfter`],c[n],!i&&n==="outline"&&c.outlineInteractive,!i&&n==="underline"&&c.underlineInteractive,!i&&l&&c.filledInteractive,l&&c.filled,!i&&s&&c.invalid,i&&c.disabled,e.root.className),e.input.className=de(Ma.input,a5(),d[t],e.contentBefore&&d[`${t}WithContentBefore`],e.contentAfter&&d[`${t}WithContentAfter`],i&&d.disabled,e.input.className);const h=[l5(),i&&f.disabled,f[t]];return e.contentBefore&&(e.contentBefore.className=de(Ma.contentBefore,...h,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=de(Ma.contentAfter,...h,e.contentAfter.className)),e},Ia=S.forwardRef((e,t)=>{const n=t5(e,t);return u5(n),at("useInputStyles_unstable")(n),n5(n)});Ia.displayName="Input";const Da=ga(void 0),d5={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},f5=Da.Provider,Ee=e=>va(Da,(t=d5)=>e(t)),tm=S.createContext(void 0),p5=!1,h5=tm.Provider,m5=()=>{var e;return(e=S.useContext(tm))!==null&&e!==void 0?e:p5},mc=ga(void 0),g5={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},v5=mc.Provider,Mn=e=>va(mc,(t=g5)=>e(t)),ri="fuimenuenter",b5=e=>{const{refs:t,callback:n,element:i,disabled:s}=e,l=be(c=>{var d;const f=t[0],h=c.target;!Bl((d=f.current)!==null&&d!==void 0?d:null,h)&&!s&&n(c)});S.useEffect(()=>{if(i!=null)return s||i.addEventListener(ri,l),()=>{i.removeEventListener(ri,l)}},[l,i,s])},y5=(e,t)=>{e.dispatchEvent(new CustomEvent(ri,{bubbles:!0,detail:{nativeEvent:t}}))};function gc(){const e=Ee(n=>n.isSubmenu),t=ba(mc);return e||t}const rm=e=>{const{targetDocument:t}=$e();return Ee(i=>i.triggerRef),Ee(i=>i.inline),S.useRef(null)},vc="fuimenusafezonetimeout",x5=e=>{const t=S.useRef(null);return S.useCallback(n=>{var i;(i=t.current)===null||i===void 0||i.removeEventListener(vc,e),n?.addEventListener(vc,e),t.current=n},[e])},w5=ke({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0",Bnnss6s:"fi64zpg"},rootChecked:{Bcdw1i0:"f1022m68",Bnnss6s:"fi64zpg"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".fi64zpg{flex-shrink:0;}",".f1022m68{visibility:visible;}"]}),nm=e=>{const t=w5();e.checkmark&&(e.checkmark.className=de(t.root,e.checked&&t.rootChecked,e.checkmark.className))},nn={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent",subText:"fui-MenuItem__subText"},k5=Pe("r1rl95jx","r11uab2l",{r:[".r1rl95jx{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r1rl95jx:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r1rl95jx:hover .fui-Icon-filled{display:inline;}",".r1rl95jx:hover .fui-Icon-regular{display:none;}",".r1rl95jx:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r1rl95jx:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".r1rl95jx:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r1rl95jx:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".r1rl95jx:focus{outline-style:none;}",".r1rl95jx:focus-visible{outline-style:none;}",".r1rl95jx[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1rl95jx[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r11uab2l{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r11uab2l:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r11uab2l:hover .fui-Icon-filled{display:inline;}",".r11uab2l:hover .fui-Icon-regular{display:none;}",".r11uab2l:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r11uab2l:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".r11uab2l:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r11uab2l:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".r11uab2l:focus{outline-style:none;}",".r11uab2l:focus-visible{outline-style:none;}",".r11uab2l[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r11uab2l[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:['@media (forced-colors: active){.r1rl95jx:hover{forced-color-adjust:none;background-color:Highlight;color:HighlightText;}.r1rl95jx:hover .fui-MenuItem__icon,.r1rl95jx:hover .fui-MenuItem__checkmark,.r1rl95jx:hover .fui-MenuItem__subText,.r1rl95jx:hover .fui-MenuItem__secondaryContent{color:HighlightText;}.r1rl95jx:focus{outline-style:none;}.r1rl95jx:focus-visible{outline-style:none;}.r1rl95jx[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}@media (forced-colors: active){.r1rl95jx[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}.r1rl95jx[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}}',"@media (forced-colors: active){.r1rl95jx[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}",'@media (forced-colors: active){.r11uab2l:hover{forced-color-adjust:none;background-color:Highlight;color:HighlightText;}.r11uab2l:hover .fui-MenuItem__icon,.r11uab2l:hover .fui-MenuItem__checkmark,.r11uab2l:hover .fui-MenuItem__subText,.r11uab2l:hover .fui-MenuItem__secondaryContent{color:HighlightText;}.r11uab2l:focus{outline-style:none;}.r11uab2l:focus-visible{outline-style:none;}.r11uab2l[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}@media (forced-colors: active){.r11uab2l[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}.r11uab2l[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}}',"@media (forced-colors: active){.r11uab2l[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),S5=Pe("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),_5=Pe("r12mwwux","r1ewgu5j",[".r12mwwux{padding-left:2px;padding-right:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r12mwwux:hover{color:var(--colorNeutralForeground3Hover);}",".r12mwwux:focus{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j{padding-right:2px;padding-left:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r1ewgu5j:hover{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j:focus{color:var(--colorNeutralForeground3Hover);}"]),C5=Pe("ro9koqv",null,[".ro9koqv{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;flex-shrink:0;}"]),N5=Pe("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),B5=Pe("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),z5=ke({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},submenuOpen:{De3pzq:"f5gciec",sj55zd:"fmh2wxz",D0sxk3:"fxoiby5",t6yez3:"f15q0o9g",B3y4be1:"f17gqod3",B2i6fwv:"f15ms52v",B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4",uq8m91:"fpfrpmp"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",c7f7en:"ff3wrqt",B2d53fq:"fcvwxyo",iro3zm:"f1to34ca",Bumww26:"fszh5vc",t0hwav:"ft33916",B7iucu3:"f1cyfu5x",fmph8g:"fh9egdi",Bahaeuw:"fa9u7a5",Bbkh6qg:"f1wzezsb",B3ejlan:"f1egomlm",B41git9:"f1wf2001",Iiu1i:"fhjxdyw",Dcq74g:"f1efp33f",rxnm8d:"f1m2zpi7",wxluhh:"fei14nx",idgcvv:"f12hmwa5",j9xr24:"f1hzwxd0"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f5gciec{background-color:var(--colorNeutralBackground1Hover);}",".fmh2wxz{color:var(--colorNeutralForeground2Hover);}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f17gqod3 .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".f15ms52v .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfrpmp .fui-MenuItem__icon,.fpfrpmp .fui-MenuItem__checkmark,.fpfrpmp .fui-MenuItem__subText,.fpfrpmp .fui-MenuItem__secondaryContent{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fh9egdi:hover{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wzezsb:hover{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1egomlm:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wf2001:hover .fui-MenuItem__icon{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhjxdyw:hover .fui-MenuItem__icon,.fhjxdyw:hover .fui-MenuItem__checkmark,.fhjxdyw:hover .fui-MenuItem__subText,.fhjxdyw:hover .fui-MenuItem__secondaryContent{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1efp33f:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m2zpi7:hover:active{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fei14nx:hover:active .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12hmwa5:focus{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1hzwxd0:focus{background-color:Canvas;}}",{m:"(forced-colors: active)"}]],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}",".ff3wrqt:hover .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1to34ca:hover:active{background-color:var(--colorNeutralBackground1);}",".fszh5vc:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"]}),E5=ke({disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),T5=ke({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),F5=e=>{const t=z5(),n=k5(),i=S5(),s=_5(),l=C5(),c=N5(),d=T5(),f=B5(),h=E5(),g=!!e.subText;return e.root.className=de(nn.root,n,e.submenuOpen&&t.submenuOpen,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=de(nn.content,i,e.content.className,g&&d.content)),e.checkmark&&(e.checkmark.className=de(nn.checkmark,t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=de(nn.secondaryContent,s,e.disabled&&t.disabled,e.secondaryContent.className,g&&d.secondaryContent)),e.icon&&(e.icon.className=de(nn.icon,l,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=de(nn.submenuIndicator,c,e.submenuIndicator.className,g&&d.submenuIndicator)),e.subText&&(e.subText.className=de(nn.subText,e.disabled&&h.disabled,e.subText.className,f)),nm(e),e},om=Ye.durationSlower,im=Ye.curveDecelerateMid,am=ka(({distance:e=10})=>({enter:[Jo({duration:om,easing:im,direction:"enter"}),{...ik({duration:om,easing:im,direction:"enter",outX:`calc(var(${Ql}, 0px) * ${e})`,outY:`calc(var(${Yl}, 0px) * ${e})`}),composite:"accumulate"}],exit:[]})),P5=["after","after-bottom","before-top","before","before-bottom","above"],R5=e=>{const{surfaceMotion:t,...n}=e,i=j5(n);return{...i,components:{surfaceMotion:am},surfaceMotion:Gl(t,{elementType:am,defaultProps:{visible:i.open,appear:!0,unmountOnExit:!0}})}},j5=e=>{const t=gc(),{hoverDelay:n=500,inline:i=!1,hasCheckmarks:s=!1,hasIcons:l=!1,closeOnScroll:c=!1,openOnContext:d=!1,persistOnItemClick:f=!1,openOnHover:h=t,defaultCheckedValues:g,mountNode:b=null,safeZone:x}=e,{targetDocument:m}=$e(),y=wr("menu"),[w,_]=R2(),N=cc(e.positioning),E=uk({targetDocument:m,onPositioningEnd:N.onPositioningEnd}),z={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?w:void 0,fallbackPositions:t?P5:void 0,...N,onPositioningEnd:E},P=S.Children.toArray(e.children);let L,T;P.length===2?(L=P[0],T=P[1]):P.length===1&&(T=P[0]);const{targetRef:D,containerRef:O}=qh(z),q=x&&h,Q=S.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),X=G2({disabled:!q,timeout:typeof x=="object"?x.timeout:300,onSafeZoneEnter:I=>{oe(I,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:I}),Q.current.isInside=!0},onSafeZoneLeave:()=>{Q.current.isInside=!1},onSafeZoneMove:I=>{Q.current.mouseCoordinates={x:I.clientX,y:I.clientY}},onSafeZoneTimeout:()=>{const I=new CustomEvent(vc);if(oe(I,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:I}),Q.current.isInside&&m){const Y=m.elementsFromPoint(Q.current.mouseCoordinates.x,Q.current.mouseCoordinates.y).find(j=>j.classList.contains(nn.root));Y?.dispatchEvent(I)}}}),$=ct(D,X.targetRef),F=ct(O,X.containerRef),[Z,oe]=I5({hoverDelay:n,isSubmenu:t,setContextTarget:_,closeOnScroll:c,menuPopoverRef:F,triggerRef:$,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:d}),[V,G]=M5({checkedValues:e.checkedValues,defaultCheckedValues:g,onCheckedValueChange:e.onCheckedValueChange});return{inline:i,hoverDelay:n,triggerId:y,isSubmenu:t,openOnHover:h,contextTarget:w,setContextTarget:_,hasCheckmarks:s,hasIcons:l,closeOnScroll:c,menuTrigger:L,menuPopover:T,mountNode:b,triggerRef:$,menuPopoverRef:F,openOnContext:d,open:Z,setOpen:oe,checkedValues:V,onCheckedValueChange:G,persistOnItemClick:f,safeZone:X.elementToRender}},M5=e=>{const[t,n]=Xr({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),i=be((s,{name:l,checkedItems:c})=>{var d;(d=e.onCheckedValueChange)===null||d===void 0||d.call(e,s,{name:l,checkedItems:c}),n(f=>({...f,[l]:c}))});return[t,i]},I5=e=>{const{targetDocument:t}=$e(),n=Ee(w=>w.setOpen),i=be((w,_)=>{var N;return(N=e.onOpenChange)===null||N===void 0?void 0:N.call(e,w,_)}),s=S.useRef(!1),[l,c]=Xr({state:e.open,defaultState:e.defaultOpen,initialState:!1}),d=be((w,_)=>{const N=w instanceof CustomEvent&&w.type===ri?w.detail.nativeEvent:w;i?.(N,{..._}),_.open&&w.type==="contextmenu"&&e.setContextTarget(w),_.open||e.setContextTarget(void 0),_.bubble&&n(w,{..._}),c(_.open)}),[f,h]=Cl(),g=be((w,_)=>{if(h(),!(w instanceof Event)&&w.persist&&w.persist(),!_.ignoreHoverDelay&&(w.type==="mouseleave"||w.type==="mouseover"||w.type==="mousemove"||w.type===ri)){var E;!((E=e.triggerRef.current)===null||E===void 0)&&E.contains(w.target)&&(s.current=w.type==="mouseover"||w.type==="mousemove"),f(()=>d(w,_),e.hoverDelay)}else d(w,_)});_b({contains:Bl,disabled:!l,element:t,refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),callback:w=>g(w,{open:!1,type:"clickOutside",event:w})});const b=e.openOnContext||e.closeOnScroll;Bb({contains:Bl,element:t,callback:w=>g(w,{open:!1,type:"scrollOutside",event:w}),refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),disabled:!l||!b}),b5({element:t,callback:w=>{s.current||g(w,{open:!1,type:"menuMouseEnter",event:w})},disabled:!l,refs:[e.menuPopoverRef]});const{findFirstFocusable:x}=fa(),m=S.useCallback(()=>{const w=x(e.menuPopoverRef.current);w?.focus()},[x,e.menuPopoverRef]),y=Df();return S.useEffect(()=>{if(l)m();else if(!y){var w,_;if(t?.activeElement===t?.body||!((_=e.menuPopoverRef.current)===null||_===void 0)&&_.contains((w=t?.activeElement)!==null&&w!==void 0?w:null)){var N;(N=e.triggerRef.current)===null||N===void 0||N.focus()}}},[e.triggerRef,e.isSubmenu,l,m,t,e.menuPopoverRef]),[l,g]};function D5(e){const{checkedValues:t,hasCheckmarks:n,hasIcons:i,inline:s,isSubmenu:l,menuPopoverRef:c,mountNode:d,onCheckedValueChange:f,open:h,openOnContext:g,openOnHover:b,persistOnItemClick:x,safeZone:m,setOpen:y,triggerId:w,triggerRef:_}=e;return{menu:S.useMemo(()=>({checkedValues:t,hasCheckmarks:n,hasIcons:i,inline:s,isSubmenu:l,menuPopoverRef:c,mountNode:d,onCheckedValueChange:f,open:h,openOnContext:g,openOnHover:b,persistOnItemClick:x,safeZone:m,setOpen:y,triggerId:w,triggerRef:_}),[t,n,i,s,l,c,d,f,h,g,b,x,m,y,w,_])}}const A5=(e,t)=>rt(f5,{value:t.menu,children:[e.menuTrigger,e.menuPopover&&he(e.surfaceMotion,{children:he(Wl,{children:e.menuPopover})})]}),sm=e=>{const t=R5(e),n=D5(t);return A5(t,n)};sm.displayName="Menu";const O5=(e,t)=>{const n=Mn(s=>s.setFocusByFirstCharacter),{onKeyDown:i}=e.root;return e.root.onKeyDown=s=>{var l;i?.(s),!(((l=s.key)===null||l===void 0?void 0:l.length)>1)&&t.current&&n?.(s,t.current)},e},lm=S.createContext(void 0),cm={setMultiline:()=>null};lm.Provider;const um=()=>{var e;return(e=S.useContext(lm))!==null&&e!==void 0?e:cm},dm=()=>um()!==cm,q5=(e,t)=>{const n=m5(),i=Ee(E=>E.persistOnItemClick),{as:s="div",disabled:l=!1,hasSubmenu:c=n,persistOnClick:d=i,content:f,...h}=e,{hasIcons:g,hasCheckmarks:b}=H5({hasSubmenu:c}),x=Ee(E=>E.setOpen),m=Ee(E=>E.open);L5({multiline:!!e.subText,hasSubmenu:c});const y=S.useRef(null),w=S.useRef(!1),_=rm($5(e.role)),N={hasSubmenu:c,submenuOpen:c&&m,disabled:l,persistOnClick:d,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span",subText:"span"},root:Me(Gt(s,wa(s,{role:"menuitem",...h,disabled:!1,disabledFocusable:l,ref:ct(t,y,_),onKeyDown:be(E=>{var z;(z=e.onKeyDown)===null||z===void 0||z.call(e,E),!E.isDefaultPrevented()&&(E.key===Qo||E.key===ya)&&(w.current=!0)}),onMouseMove:be(E=>{var z;if(E.currentTarget.ownerDocument.activeElement!==E.currentTarget){var P;(P=y.current)===null||P===void 0||P.focus()}(z=e.onMouseMove)===null||z===void 0||z.call(e,E)}),onClick:be(E=>{var z;!c&&!d&&(x(E,{open:!1,keyboard:w.current,bubble:!0,type:"menuItemClick",event:E}),w.current=!1),(z=e.onClick)===null||z===void 0||z.call(e,E)})})),{elementType:"div"}),icon:Ie(e.icon,{renderByDefault:g,elementType:"span"}),checkmark:Ie(e.checkmark,{renderByDefault:b,elementType:"span"}),submenuIndicator:Ie(e.submenuIndicator,{renderByDefault:c,elementType:"span"}),content:Ie(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:Ie(e.secondaryContent,{elementType:"span"}),subText:Ie(e.subText,{elementType:"span"})};return O5(N,y),N},L5=e=>{const{hasSubmenu:t,multiline:n}=e,i=dm()&&t,{setMultiline:s}=um();tt(()=>{i||s(n)},[s,n,i])},H5=e=>{const{hasSubmenu:t}=e,n=Mn(l=>l.hasIcons),i=Mn(l=>l.hasCheckmarks),s=dm()&&t;return{hasIcons:n&&!s,hasCheckmarks:i&&!s}},$5=e=>{switch(e){case"menuitemcheckbox":return"MenuItemCheckbox";case"menuitemradio":return"MenuItemRadio"}return"MenuItem"},V5=(e,t)=>{const n=U5(e,t);if(n.checkmark){var i,s;(s=(i=n.checkmark).children)!==null&&s!==void 0||(i.children=S.createElement(Kp,null))}return n},U5=(e,t)=>{const{name:n,value:i}=e,s=Mn(c=>{var d;return(((d=c.checkedValues)===null||d===void 0?void 0:d[n])||[]).indexOf(i)!==-1}),l=Mn(c=>c.selectRadio);return{...q5({...e,role:"menuitemradio","aria-checked":s,checkmark:Ie(e.checkmark,{renderByDefault:!0,elementType:"span"}),onClick:c=>{var d;l?.(c,n,i,s),(d=e.onClick)===null||d===void 0||d.call(e,c)}},t),checked:s,name:n,value:i}},W5=e=>rt(e.root,{children:[e.checkmark&&he(e.checkmark,{}),e.icon&&he(e.icon,{}),e.content&&rt(e.content,{children:[e.content.children,e.subText&&he(e.subText,{})]}),e.secondaryContent&&he(e.secondaryContent,{})]}),so={root:"fui-MenuItemRadio",icon:"fui-MenuItemRadio__icon",checkmark:"fui-MenuItemRadio__checkmark",content:"fui-MenuItemRadio__content",secondaryContent:"fui-MenuItemRadio__secondaryContent",subText:"fui-MenuItemRadio__subText"},G5=e=>{e.root.className=de(so.root,e.root.className),e.content&&(e.content.className=de(so.content,e.content.className)),e.secondaryContent&&(e.secondaryContent.className=de(so.secondaryContent,e.secondaryContent.className)),e.icon&&(e.icon.className=de(so.icon,e.icon.className)),e.checkmark&&(e.checkmark.className=de(so.checkmark,e.checkmark.className)),e.subText&&(e.subText.className=de(so.subText,e.subText.className)),F5(e),nm(e)},bc=S.forwardRef((e,t)=>{const n=V5(e,t);return G5(n),at("useMenuItemRadioStyles_unstable")(n),W5(n)});bc.displayName="MenuItemRadio";const fm=["menuitem","menuitemcheckbox","menuitemradio"],K5=fm.map(e=>`[role="${e}"]`).join(","),X5=(e,t)=>{const n=Y5(),i=ba(Da);J5(e,n,i)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const s=S.useRef(null),{findAllFocusable:l}=fa(),{targetDocument:c}=$e(),d=mp({circular:!0}),f=Q5(e,t),h=ct(f.root.ref,s);S.useEffect(()=>{const b=s.current;if(!i||!c||!b)return;const x=m=>{const y=m.detail.next;y&&b.contains(c.activeElement)&&!b.contains(y)&&m.preventDefault()};return c.addEventListener(El,x),()=>{c.removeEventListener(El,x)}},[i,c]);const g=S.useCallback((b,x)=>{if(!s.current)return;const m=l(s.current,y=>y.hasAttribute("role")&&fm.indexOf(y.getAttribute("role"))!==-1);pm(m,b.key,x)},[l]);return{...f,root:{...d,...f.root,ref:h},setFocusByFirstCharacter:g}},Q5=(e,t)=>{var n,i,s,l,c,d;const f=Ee(T=>T.triggerId),h=Ee(T=>T.checkedValues),g=Ee(T=>T.onCheckedValueChange),b=Ee(T=>T.hasIcons),x=Ee(T=>T.hasCheckmarks),m=ba(Da),y=S.useRef(null),w=rm(),_=S.useCallback((T,D)=>{if(!y.current)return;const O=Array.from(y.current.querySelectorAll(K5));pm(O,T.key,D)},[]),[N,E]=Xr({state:(n=e.checkedValues)!==null&&n!==void 0?n:m?h:void 0,defaultState:e.defaultCheckedValues,initialState:{}}),z=(i=e.onCheckedValueChange)!==null&&i!==void 0?i:m?g:void 0,P=be((T,D,O,q)=>{const X=[...N?.[D]||[]];q?X.splice(X.indexOf(O),1):X.push(O),z?.(T,{name:D,checkedItems:X}),E($=>({...$,[D]:X}))}),L=be((T,D,O)=>{const q=[O];E(Q=>({...Q,[D]:q})),z?.(T,{name:D,checkedItems:q})});return{components:{root:"div"},root:Me(Gt("div",{ref:ct(t,y,w),role:"menu","aria-labelledby":f,...e}),{elementType:"div"}),checkedValues:N,hasIcons:(s=(l=e.hasIcons)!==null&&l!==void 0?l:b)!==null&&s!==void 0?s:!1,hasCheckmarks:(c=(d=e.hasCheckmarks)!==null&&d!==void 0?d:x)!==null&&c!==void 0?c:!1,hasMenuContext:m,setFocusByFirstCharacter:_,selectRadio:L,toggleCheckbox:P}},pm=(e,t,n)=>{let i=e.indexOf(n)+1;i===e.length&&(i=0);const s=e.map(f=>{var h;return(h=f.textContent)===null||h===void 0?void 0:h.charAt(0).toLowerCase()}),l=t.toLowerCase(),c=f=>{for(let h=f;h<s.length;h++)if(l===s[h])return h;return-1};let d=c(i);d===-1&&(d=c(0)),d>-1&&e[d].focus()},Y5=()=>{const e=Ee(l=>l.checkedValues),t=Ee(l=>l.onCheckedValueChange),n=Ee(l=>l.triggerId),i=Ee(l=>l.hasIcons),s=Ee(l=>l.hasCheckmarks);return{checkedValues:e,onCheckedValueChange:t,triggerId:n,hasIcons:i,hasCheckmarks:s}},J5=(e,t,n)=>{let i=!1;for(const s in t)e[s]&&(i=!0);return n&&i},Z5=(e,t)=>he(v5,{value:t.menuList,children:he(e.root,{})});function e_(e){const{checkedValues:t,hasCheckmarks:n,hasIcons:i,selectRadio:s,setFocusByFirstCharacter:l,toggleCheckbox:c}=e;return{menuList:S.useMemo(()=>({checkedValues:t,hasCheckmarks:n,hasIcons:i,selectRadio:s,setFocusByFirstCharacter:l,toggleCheckbox:c}),[t,n,i,s,l,c])}}const t_={root:"fui-MenuList"},r_=ke({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f1t6b6ee"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f1t6b6ee{gap:2px;}",{p:-1}],".f1l02sjl{height:100%;}"]}),n_=e=>{const t=r_();return e.root.className=de(t_.root,t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className),e},hm=S.forwardRef((e,t)=>{const n=X5(e,t),i=e_(n);return n_(n),at("useMenuListStyles_unstable")(n),Z5(n,i)});hm.displayName="MenuList";const o_=(e,t)=>{var n;const i=Ee(T=>T.safeZone),s=Ee(T=>T.menuPopoverRef),l=Ee(T=>T.setOpen),c=Ee(T=>T.open),d=Ee(T=>T.openOnHover),f=Ee(T=>T.triggerRef),h=gc(),g=Mn(T=>{var D;return(D=T.shouldCloseOnArrowLeft)!==null&&D!==void 0?D:!0}),b=S.useRef(!0),[x,m]=Cl(),{dir:y}=$e(),w=y==="ltr"?$p:Vp,_=S.useCallback(T=>{T&&T.addEventListener("mouseover",D=>{b.current&&(b.current=!1,y5(s.current,D),x(()=>{b.current=!0},250))})},[s,x]);S.useEffect(()=>()=>m(),[m]);const N=(n=Ee(T=>T.inline))!==null&&n!==void 0?n:!1,E=Ee(T=>T.mountNode),z=Me(Gt("div",{role:"presentation",...e,ref:ct(t,s,_)}),{elementType:"div"}),{onMouseEnter:P,onKeyDown:L}=z;return z.onMouseEnter=be(T=>{(d||h)&&l(T,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:T}),P?.(T)}),z.onKeyDown=be(T=>{const D=T.key;if(D===xa||h&&g&&D===w){var O;c&&(!((O=s.current)===null||O===void 0)&&O.contains(T.target))&&!T.isDefaultPrevented()&&(l(T,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:T}),T.preventDefault())}if(D===uw&&(l(T,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:T}),!h)){var q;(q=f.current)===null||q===void 0||q.focus()}L?.(T)}),{inline:N,mountNode:E,safeZone:i,components:{root:"div"},root:z}},i_=(e,t)=>{const n=ox(),i=Ko({focusable:{ignoreKeydown:{Escape:!0}}}),s=ex(n,i),l=oh(),c=o_(e,t);return{...c,root:{...s,...c.root,ref:ct(c.root.ref,l)}}},a_={root:"fui-MenuPopover"},s_=ke({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fd3pd8h",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",[".fd3pd8h{padding:4px;}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),l_=e=>{const t=s_();return e.root.className=de(a_.root,t.root,e.root.className),e};function c_(e){return Kt(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const u_=ke({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),mm=Yi.useInsertionEffect,d_=e=>{const{className:t,dir:n,focusVisibleRef:i,targetNode:s}=e,l=S.useMemo(()=>{if(s===void 0||e.disabled)return null;const c=s.ownerDocument.createElement("div");return s.appendChild(c),c},[s,e.disabled]);return S.useMemo(()=>{l&&(l.className=t,l.setAttribute("dir",n),l.setAttribute("data-portal-node","true"),i.current=l)},[t,n,l,i]),S.useEffect(()=>()=>{l?.remove()},[l]),l},f_=()=>{let e;function t(i,s){return e||(s&&(e=i.ownerDocument.createElement("div"),i.appendChild(e)),e)}function n(){e&&(e.remove(),e=void 0)}return{get:t,dispose:n}},p_=mm?e=>{"use no memo";const{className:t,dir:n,focusVisibleRef:i,targetNode:s}=e,[l]=S.useState(f_),c=S.useMemo(()=>s===void 0||e.disabled?null:new Proxy({},{get(d,f){if(f==="nodeType")return 1;if(f==="remove"){const b=l.get(s,!1);return b&&b.childNodes.length===0&&l.dispose(),()=>{}}const h=l.get(s,!0),g=h?h[f]:void 0;return typeof g=="function"?g.bind(h):g},set(d,f,h){const g=f==="_virtual"||f==="focusVisible",b=g?l.get(s,!1):l.get(s,!0);return g&&!b?!0:b?(Object.assign(b,{[f]:h}),!0):!1}}),[l,s,e.disabled]);return mm(()=>{if(!c)return;const d=t.split(" ").filter(Boolean);return c.classList.add(...d),c.setAttribute("dir",n),c.setAttribute("data-portal-node","true"),i.current=c,()=>{c.classList.remove(...d),c.removeAttribute("dir")}},[t,n,c,i]),S.useEffect(()=>()=>{c?.remove()},[c]),c}:d_,h_=e=>{"use no memo";const{targetDocument:t,dir:n}=$e(),i=Sl(),s=pa(),l=u_(),c=xl(),d={dir:n,disabled:e.disabled,focusVisibleRef:s,className:de(c,l.root,e.className),targetNode:i??t?.body};return p_(d)},m_=e=>{const{element:t,className:n}=c_(e.mountNode),i=S.useRef(null),s=h_({disabled:!!t,className:n}),l=t??s,c={children:e.children,mountNode:l,virtualParentRootRef:i};return S.useEffect(()=>{if(!l)return;const d=i.current,f=l.contains(d);if(d&&!f)return eo(l,d),()=>{eo(l,void 0)}},[i,l]),c},g_=e=>S.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Pa.createPortal(S.createElement(S.Fragment,null,e.children,S.createElement("span",{hidden:!0})),e.mountNode)),gm=e=>{const t=m_(e);return g_(t)};gm.displayName="Portal";const v_=e=>e.inline?rt(S.Fragment,{children:[he(e.root,{}),e.safeZone]}):rt(gm,{mountNode:e.mountNode,children:[he(e.root,{}),e.safeZone]}),vm=S.forwardRef((e,t)=>{const n=i_(e,t);return l_(n),at("useMenuPopoverStyles_unstable")(n),v_(n)});vm.displayName="MenuPopover";function b_(){}const y_=e=>{const t=Ee(s=>s.menuPopoverRef),{findFirstFocusable:n}=fa(),i=S.useCallback(()=>{const s=n(t.current);s?.focus()},[n,t]);return x_({...e,focusFirst:i})},x_=e=>{var t;const{children:n,disableButtonEnhancement:i=!1,focusFirst:s}=e,l=Ee(F=>F.triggerRef),c=Ee(F=>F.setOpen),d=Ee(F=>F.open),f=Ee(F=>F.triggerId),h=Ee(F=>F.openOnHover),g=Ee(F=>F.openOnContext),b=gc(),x=Mn(F=>{var Z;return(Z=F.shouldOpenOnArrowRight)!==null&&Z!==void 0?Z:!0}),m=S.useRef(!1),y=S.useRef(!1),w=S.useRef(!1),{dir:_}=$e(),N=_==="ltr"?Vp:$p,E=ia(n),z=x5(be(()=>{b&&(y.current=!0)})),P=F=>{lo(F)||F.isDefaultPrevented()||g&&(F.preventDefault(),c(F,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:F}))},L=F=>{lo(F)||g||(c(F,{open:!d,keyboard:m.current,type:"menuTriggerClick",event:F}),m.current=!1)},T=F=>{if(lo(F)||F.isDefaultPrevented())return;const Z=F.key;!g&&(b&&x&&Z===N||!b&&Z===dw)&&(c(F,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:F}),b||F.preventDefault()),Z===xa&&!b&&c(F,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:F}),d&&Z===N&&b&&x&&s?.()},D=F=>{lo(F)||h&&(w.current?c(F,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:F}):y.current&&(c(F,{open:!0,keyboard:!1,ignoreHoverDelay:!0,type:"menuTriggerMouseEnter",event:F}),y.current=!1))},O=F=>{lo(F)||h&&!w.current&&(c(F,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:F}),w.current=!0)},q=F=>{lo(F)||h&&c(F,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:F})},Q={id:f,...E?.props,ref:ct(l,oa(E),z),onMouseEnter:be((t=E?.props.onMouseEnter)!==null&&t!==void 0?t:b_),onMouseLeave:be(ut(E?.props.onMouseLeave,q)),onContextMenu:be(ut(E?.props.onContextMenu,P)),onMouseMove:be(ut(E?.props.onMouseMove,O)),onMouseOver:be(ut(E?.props.onMouseOver,D))},X={"aria-haspopup":"menu","aria-expanded":!d&&!b?void 0:d,...Q,onClick:be(ut(E?.props.onClick,L)),onKeyDown:be(ut(E?.props.onKeyDown,T))},$=wa(E?.type==="button"||E?.type==="a"?E.type:"div",X);return{isSubmenu:b,children:Nl(n,g?Q:i?X:$)}},lo=e=>{const t=n=>n.hasAttribute("disabled")||n.hasAttribute("aria-disabled")&&n.getAttribute("aria-disabled")==="true";return Kt(e.target)&&t(e.target)?!0:Kt(e.currentTarget)&&t(e.currentTarget)},w_=e=>S.createElement(h5,{value:e.isSubmenu},e.children),yc=e=>{const t=y_(e);return w_(t)};yc.displayName="MenuTrigger",yc.isFluentTriggerComponent=!0;const xc=S.createContext(void 0),k_={};xc.Provider;const S_=()=>S.useContext(xc)||k_,__=(e,t)=>he(xc.Provider,{value:t.radioGroup,children:he(e.root,{})}),C_=(e,t)=>{const{layout:n="vertical",...i}=e,s=N_(i,t);return{layout:n,...s}},N_=(e,t)=>{e=Ra(e);const n=wr("radiogroup-"),{name:i=n,value:s,defaultValue:l,disabled:c,onChange:d,required:f}=e;return{name:i,value:s,defaultValue:l,disabled:c,required:f,components:{root:"div"},root:{ref:t,role:"radiogroup",...Me(Gt("div",e,["onChange","name"]),{elementType:"div"}),onChange:be(h=>{d&&Kt(h.target,{constructorName:"HTMLInputElement"})&&h.target.type==="radio"&&d(h,{value:h.target.value})})}}},B_={root:"fui-RadioGroup"},z_=ke({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),E_=e=>{const t=z_();return e.root.className=de(B_.root,t.root,e.layout==="vertical"&&t.vertical,e.root.className),e},T_=e=>{const{name:t,value:n,defaultValue:i,disabled:s,layout:l,required:c}=e,d=e.root["aria-describedby"];return{radioGroup:S.useMemo(()=>({name:t,value:n,defaultValue:i,disabled:s,layout:l,required:c,"aria-describedby":d}),[t,n,i,s,l,c,d])}},bm=S.forwardRef((e,t)=>{const n=C_(e,t),i=T_(n);return E_(n),at("useRadioGroupStyles_unstable")(n),__(n,i)});bm.displayName="RadioGroup";const F_=e=>rt(e.root,{children:[he(e.input,{}),he(e.indicator,{}),e.label&&he(e.label,{})]}),P_=(e,t)=>{const n=R_(e,t);return{...n,components:{...n.components,label:jn},label:Ie(e.label,{defaultProps:{...n.label},elementType:jn})}},R_=(e,t)=>{const n=S_(),{name:i=n.name,checked:s=n.value!==void 0?n.value===e.value:void 0,defaultChecked:l=n.defaultValue!==void 0?n.defaultValue===e.value:void 0,labelPosition:c=n.layout==="horizontal-stacked"?"below":"after",disabled:d=n.disabled,required:f=n.required,"aria-describedby":h=n["aria-describedby"],onChange:g}=e,b=ra({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),x=Me(e.root,{defaultProps:{ref:wp(),...b.root},elementType:"span"}),m=Me(e.input,{defaultProps:{ref:t,type:"radio",id:wr("radio-",b.primary.id),name:i,checked:s,defaultChecked:l,disabled:d,required:f,"aria-describedby":h,...b.primary},elementType:"input"});m.onChange=ut(m.onChange,_=>g?.(_,{value:_.currentTarget.value}));const y=Ie(e.label,{defaultProps:{htmlFor:m.id,disabled:m.disabled},elementType:"label"}),w=Me(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:c,components:{root:"span",input:"input",label:"label",indicator:"div"},root:x,input:m,label:y,indicator:w}},Aa={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},j_=Pe("r1siqwd8","rmnplyc",{r:[".r1siqwd8{display:inline-flex;position:relative;}",".r1siqwd8:focus{outline-style:none;}",".r1siqwd8:focus-visible{outline-style:none;}",".r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmnplyc{display:inline-flex;position:relative;}",".rmnplyc:focus{outline-style:none;}",".rmnplyc:focus-visible{outline-style:none;}",".rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),M_=ke({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),I_=Pe("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),D_=ke({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bj53wkj:"f12zxao0"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),A_=Pe("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),O_=ke({base:{qb2dma:"f7nlbp4",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),q_=e=>{const{labelPosition:t}=e,n=j_(),i=M_();e.root.className=de(Aa.root,n,t==="below"&&i.vertical,e.root.className);const s=I_(),l=D_();e.input.className=de(Aa.input,s,t==="below"&&l.below,e.indicator.children?l.customIndicator:l.defaultIndicator,e.input.className);const c=A_();e.indicator.className=de(Aa.indicator,c,e.indicator.className);const d=O_();return e.label&&(e.label.className=de(Aa.label,d.base,d[t],e.label.className)),e},wc=S.forwardRef((e,t)=>{const n=P_(e,t);return q_(n),at("useRadioStyles_unstable")(n),F_(n)});wc.displayName="Radio";const L_=(e,t)=>{var n,i;const s=wl(),l=hc(),{appearance:c=(n=s.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",size:d=(i=l?.size)!==null&&i!==void 0?i:"medium",...f}=e,h=H_(f,t);if(h.icon){var g,b;(b=(g=h.icon).children)!==null&&b!==void 0||(g.children=S.createElement(Dw,null))}return{...h,appearance:c,size:d}},H_=(e,t)=>{e=Ra(e,{supportsLabelFor:!0,supportsRequired:!0});const{defaultValue:n,value:i,select:s,icon:l,root:c,onChange:d}=e,f=ra({props:e,primarySlotTagName:"select",excludedPropNames:["defaultValue","onChange","value"]}),h={components:{root:"span",select:"select",icon:"span"},select:Me(s,{defaultProps:{defaultValue:n,value:i,ref:t,...f.primary},elementType:"select"}),icon:Ie(l,{renderByDefault:!0,elementType:"span"}),root:Me(c,{defaultProps:f.root,elementType:"span"})};return h.select.onChange=be(g=>{d?.(g,{value:g.target.value})}),h},$_=e=>rt(e.root,{children:[he(e.select,{children:e.select.children}),e.icon&&he(e.icon,{})]}),kc={root:"fui-Select",select:"fui-Select__select",icon:"fui-Select__icon"},V_=ke({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Eh141a:"flvyvdh",Bahqtrf:"fk6fouc",qhf8xq:"f10pi13n",h62rwi:"f7ll8cq",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"fe5s0lv",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",Dlnsje:"fhwjr99",E3zdtr:"f1mdlcz9",By385i5:"fo72kxq",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40"}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".flvyvdh{flex-wrap:nowrap;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f10pi13n{position:relative;}",`.f7ll8cq::after{background-image:linear-gradient(
11
+ 0deg,
12
+ var(--colorCompoundBrandStroke) 0%,
13
+ var(--colorCompoundBrandStroke) 50%,
14
+ transparent 50%,
15
+ transparent 100%
16
+ );}`,[".fe5s0lv::after{border-radius:0 0 var(--borderRadiusMedium) var(--borderRadiusMedium);}",{p:-1}],".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".fhwjr99::after{height:var(--borderRadiusMedium);}",".f1mdlcz9::after{position:absolute;}",".fo72kxq::after{bottom:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}"]}),U_=ke({base:{Bowrso0:"fqrijq1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"faev5xe",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bceei9c:"f1k6fduh",Bh6795r:"fqerorx",B2u0y6b:"f6dzj5z",Byoj8tv:"f1qch9an",z8tnut:"f1g0x7ka",B3aqqti:"fatbyko",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi"},disabled:{De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},disabledUnderline:{g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f4ikngz",zhjwy3:["fziff3p","f1mxt3zg"]},small:{Bqenvij:"frvgh55",uwmqm3:["f1xile11","fqznh8f"],z189sj:["fiqd4sw","f11fkzut"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{Bqenvij:"f1d2rq10",uwmqm3:["f1e60jzv","f135dnwl"],z189sj:["f154vowv","flqamny"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{Bqenvij:"fbhnoac",uwmqm3:["fnphzt9","flt1dlf"],z189sj:["f1xi5ia2","f1xi1l47"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fm9niy"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"fd91s9p",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",C8i20h:"fb77jct"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker":{De3pzq:"f16xq7d1"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"}},{d:[".fqrijq1{-webkit-appearance:none;-moz-appearance:none;appearance:none;}",[".faev5xe{border:1px solid transparent;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1k6fduh{cursor:pointer;}",".fqerorx{flex-grow:1;}",".f6dzj5z{max-width:100%;}",".f1qch9an{padding-bottom:0;}",".f1g0x7ka{padding-top:0;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".frvgh55{height:24px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",`.fiqd4sw{padding-right:calc(var(--spacingHorizontalSNudge)
17
+ + 16px
18
+ + var(--spacingHorizontalXXS)
19
+ + var(--spacingHorizontalXXS));}`,`.f11fkzut{padding-left:calc(var(--spacingHorizontalSNudge)
20
+ + 16px
21
+ + var(--spacingHorizontalXXS)
22
+ + var(--spacingHorizontalXXS));}`,".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1d2rq10{height:32px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",`.f154vowv{padding-right:calc(var(--spacingHorizontalMNudge)
23
+ + 20px
24
+ + var(--spacingHorizontalXXS)
25
+ + var(--spacingHorizontalXXS));}`,`.flqamny{padding-left:calc(var(--spacingHorizontalMNudge)
26
+ + 20px
27
+ + var(--spacingHorizontalXXS)
28
+ + var(--spacingHorizontalXXS));}`,".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fbhnoac{height:40px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",`.f1xi5ia2{padding-right:calc(var(--spacingHorizontalM)
29
+ + 24px
30
+ + var(--spacingHorizontalSNudge)
31
+ + var(--spacingHorizontalSNudge));}`,`.f1xi1l47{padding-left:calc(var(--spacingHorizontalM)
32
+ + 24px
33
+ + var(--spacingHorizontalSNudge)
34
+ + var(--spacingHorizontalSNudge));}`,".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fm9niy{border:1px solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",[".fd91s9p{border-bottom:1px solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],".fb77jct option{background-color:var(--colorNeutralBackground1);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],f:[".fatbyko:focus{outline-width:2px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),W_=ke({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",qhf8xq:"f1euv43f",Bkecrkj:"f1aehjj5",fz51y7:"f1amoxe3"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},small:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",j35jbq:["f13lnp83","f1i5nn0v"],a9b677:"fjw5fx7"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",j35jbq:["fnyteob","f1enpzzf"],a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",j35jbq:["f8b87gs","fedtrts"],a9b677:"fq4mcun"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1euv43f{position:absolute;}",".f1aehjj5{pointer-events:none;}",".f1amoxe3 svg,.f1amoxe3 .fui-Icon-font{display:block;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".f13lnp83{right:var(--spacingHorizontalSNudge);}",".f1i5nn0v{left:var(--spacingHorizontalSNudge);}",".fjw5fx7{width:16px;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".fnyteob{right:var(--spacingHorizontalMNudge);}",".f1enpzzf{left:var(--spacingHorizontalMNudge);}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".f8b87gs{right:var(--spacingHorizontalM);}",".fedtrts{left:var(--spacingHorizontalM);}",".fq4mcun{width:24px;}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),G_=e=>{const{size:t,appearance:n}=e,i=e.select.disabled,s=`${e.select["aria-invalid"]}`=="true",l=W_(),c=V_(),d=U_();return e.root.className=de(kc.root,c.base,e.root.className),e.select.className=de(kc.select,d.base,d[t],d[n],!i&&n==="outline"&&d.outlineInteractive,!i&&s&&n!=="underline"&&d.invalid,!i&&s&&n==="underline"&&d.invalidUnderline,i&&d.disabled,i&&n==="underline"&&d.disabledUnderline,e.select.className),e.icon&&(e.icon.className=de(kc.icon,l.icon,i&&l.disabled,l[t],e.icon.className)),e},Sc=S.forwardRef((e,t)=>{const n=L_(e,t);return G_(n),at("useSelectStyles_unstable")(n),$_(n)});Sc.displayName="Select";const K_=(e,t)=>{const{appearance:n="transparent",reserveSelectedTabSpace:i=!0,size:s="medium"}=e,l=X_(e,t),c=Q_({vertical:l.vertical});return{...l,root:{...c,...l.root},appearance:n,reserveSelectedTabSpace:i,size:s}},X_=(e,t)=>{const{disabled:n=!1,onTabSelect:i,selectTabOnFocus:s=!1,vertical:l=!1,selectedValue:c,defaultSelectedValue:d,...f}=e,h=S.useRef(null),[g,b]=Xr({state:c,defaultState:d,initialState:void 0}),x=S.useRef(void 0),m=S.useRef(void 0);S.useEffect(()=>{m.current=x.current,x.current=g},[g]);const y=be((z,P)=>{b(P.value),i?.(z,P)}),w=S.useRef({}),_=be(z=>{const P=JSON.stringify(z.value);w.current[P]=z}),N=be(z=>{delete w.current[JSON.stringify(z.value)]}),E=S.useCallback(()=>({selectedValue:x.current,previousSelectedValue:m.current,registeredTabs:w.current}),[]);return{components:{root:"div"},root:Me({ref:ct(t,h),role:"tablist","aria-orientation":l?"vertical":"horizontal",...f},{elementType:"div"}),disabled:n,selectTabOnFocus:s,selectedValue:g,onRegister:_,onUnregister:N,onSelect:y,getRegisteredTabs:E,vertical:l}},Q_=({vertical:e})=>mp({circular:!0,axis:e?"vertical":"horizontal",memorizeCurrent:!1,unstable_hasDefault:!0}),Y_={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},ym=ga(void 0),J_=ym.Provider,ur=e=>va(ym,(t=Y_)=>e(t)),Z_=(e,t)=>he(e.root,{children:he(J_,{value:t.tabList,children:e.root.children})}),e3={root:"fui-TabList"},t3=ke({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"},roundedSmall:{i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},rounded:{i8kkvl:0,Belr9w4:0,rmohyg:"faqewft"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}]]}),r3=e=>{const{appearance:t,vertical:n,size:i}=e,s=t3(),l=t==="subtle-circular"||t==="filled-circular";return e.root.className=de(e3.root,s.root,n?s.vertical:s.horizontal,l&&(i==="small"?s.roundedSmall:s.rounded),e.root.className),e};function n3(e){const{appearance:t,reserveSelectedTabSpace:n,disabled:i,selectTabOnFocus:s,selectedValue:l,onRegister:c,onUnregister:d,onSelect:f,getRegisteredTabs:h,size:g,vertical:b}=e;return{tabList:S.useMemo(()=>({appearance:t,reserveSelectedTabSpace:n,disabled:i,selectTabOnFocus:s,selectedValue:l,onSelect:f,onRegister:c,onUnregister:d,getRegisteredTabs:h,size:g,vertical:b}),[t,n,i,s,l,f,c,d,h,g,b])}}const xm=S.forwardRef((e,t)=>{const n=K_(e,t),i=n3(n);return r3(n),at("useTabListStyles_unstable")(n),Z_(n,i)});xm.displayName="TabList";const o3=(e,t)=>{const{content:n}=e,i=i3(e,t),s=a3(i),l=ur(h=>h.appearance),c=ur(h=>h.reserveSelectedTabSpace),d=ur(h=>{var g;return(g=h.size)!==null&&g!==void 0?g:"medium"}),f=n&&typeof n=="object"?nb(n,["ref"]):n;return{...i,components:{...i.components,contentReservedSpace:"span"},root:{...s,...i.root},contentReservedSpace:Ie(f,{renderByDefault:!i.selected&&!i.iconOnly&&c,defaultProps:{children:e.children},elementType:"span"}),appearance:l,size:d}},i3=(e,t)=>{const{content:n,disabled:i=!1,icon:s,onClick:l,onFocus:c,value:d,...f}=e,h=ur(O=>O.selectTabOnFocus),g=ur(O=>O.disabled),b=ur(O=>O.selectedValue===d),x=ur(O=>O.onRegister),m=ur(O=>O.onUnregister),y=ur(O=>O.onSelect),w=ur(O=>!!O.vertical),_=g||i,N=S.useRef(null),E=O=>y(O,{value:d}),z=be(ut(l,E)),P=be(ut(c,E));S.useEffect(()=>(x({value:d,ref:N}),()=>{m({value:d,ref:N})}),[x,m,N,d]);const L=Ie(s,{elementType:"span"}),T=Me(n,{defaultProps:{children:e.children},elementType:"span"}),D=!!(L?.children&&!T.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:Me({ref:ct(t,N),role:"tab",type:"button","aria-selected":_?void 0:`${b}`,value:d,...f,disabled:_,onClick:z,onFocus:h?P:c},{elementType:"button"}),icon:L,iconOnly:D,content:T,disabled:_,selected:b,value:d,vertical:w}},a3=({selected:e})=>Ko({focusable:{isDefault:e}}),s3=e=>rt(e.root,{children:[e.icon&&he(e.icon,{}),!e.iconOnly&&he(e.content,{}),e.contentReservedSpace&&he(e.contentReservedSpace,{})]}),wm={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},l3=ke({base:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",Bu93a1u:"f1rnm8gg",Bdasjez:"f1x3cmqg"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[[".f1gl81tg{overflow:visible;}",{p:-1}],".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f1rnm8gg::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1x3cmqg::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),c3=e=>{if(e){var t;const n=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0},i=e.getBoundingClientRect();return{x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}},km=(e,t)=>{var n;const i=_c(t)?(n=e[JSON.stringify(t)])===null||n===void 0?void 0:n.ref.current:void 0;return i?c3(i):void 0},_c=e=>e!=null,u3=e=>{const{disabled:t,selected:n,vertical:i}=e,s=l3(),[l,c]=S.useState(),[d,f]=S.useState({offset:0,scale:1}),h=ur(m=>m.getRegisteredTabs),[g]=jf();if(n){const{previousSelectedValue:m,selectedValue:y,registeredTabs:w}=h();if(_c(m)&&l!==m){const _=km(w,m),N=km(w,y);if(N&&_){const E=i?_.y-N.y:_.x-N.x,z=i?_.height/N.height:_.width/N.width;f({offset:E,scale:z}),c(m),g(()=>f({offset:0,scale:1}))}}}else _c(l)&&c(void 0);if(t)return e;const b=d.offset===0&&d.scale===1;e.root.className=de(e.root.className,n&&s.base,n&&b&&s.animated,n&&(i?s.vertical:s.horizontal));const x={[wm.offsetVar]:`${d.offset}px`,[wm.scaleVar]:`${d.scale}`};return e.root.style={...x,...e.root.style},e},Cc={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},d3={content:"fui-Tab__content--reserved-space"},Sm=ke({root:{Bt984gj:"f122n59",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n"},button:{Bt984gj:"f122n59",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1wmopi4"},smallVertical:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f12or63q"},mediumHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1w08f2p"},mediumVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fymxs25"},largeHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ssfvub"},largeVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fwkd1rq"},transparent:{De3pzq:"f1c21dwh",B95qlz1:"f9rvdkv",B7xitij:"f1051ucx",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},subtle:{De3pzq:"fhovq9v",B95qlz1:"f1bifk9c",B7xitij:"fo6hitd",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},disabledCursor:{Bceei9c:"fdrzuqr"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu"},selected:{Bptxc3x:"f1cadz5z",Bwqhzpy:"fwhdxxj",iyk698:"fintccb",cl4aha:"ffplhdr",B0q3jbp:"fjo17wb",Be9ayug:"f148789c"}},{d:[".f122n59{align-items:center;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",[".f1wmopi4{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalSNudge);}",{p:-1}],[".f12or63q{padding:var(--spacingVerticalXXS) var(--spacingHorizontalSNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",[".f1w08f2p{padding:var(--spacingVerticalM) var(--spacingHorizontalMNudge);}",{p:-1}],[".fymxs25{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalMNudge);}",{p:-1}],[".f1ssfvub{padding:var(--spacingVerticalL) var(--spacingHorizontalMNudge);}",{p:-1}],[".fwkd1rq{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f9rvdkv:enabled:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1051ucx:enabled:active{background-color:var(--colorTransparentBackgroundPressed);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fqhzt5g:enabled:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f7l5cgy:enabled:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".f1iywnoi:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f9n45c4:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".fdrzuqr{cursor:not-allowed;}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".fwhdxxj:enabled:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".fintccb:enabled:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}",".fjo17wb:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}",".f148789c:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),f3=ke({base:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fp7rvkm",Bptxc3x:"ftorr8m",cl4aha:"f16lqpmv"},small:{Dbcxam:0,rjzwhg:0,Bblux5w:"fzklhed"},medium:{Dbcxam:0,rjzwhg:0,Bblux5w:"f1j721cc"},large:{Dbcxam:0,rjzwhg:0,Bblux5w:"frx9knr"},subtle:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",B95qlz1:"f1bifk9c",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"ft57sj0",r4wkhp:"f1fcoy83",B7xitij:"fo6hitd",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fhn220o",p743kt:"f15qf7sh",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1mljprk"},subtleSelected:{De3pzq:"f16xkysk",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1c2pc3t",sj55zd:"faj9fo0",B95qlz1:"fsm7zmf",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"f1wo0sfq",r4wkhp:"f1afuynh",B7xitij:"f94ddyl",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fmle6oo",p743kt:"f1d3itm4",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1e9l2u"},subtleDisabled:{De3pzq:"fhovq9v",sj55zd:"f1s2aq7o"},subtleDisabledSelected:{De3pzq:"f1bg9a2p",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fegtqic",sj55zd:"f1s2aq7o"},filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb",B95qlz1:"fwwxidx",r4wkhp:"f1fcoy83",B7xitij:"f14i52sd",p743kt:"f15qf7sh",Hhssn:"f1cpi5f4",uaurb9:"f6pj1s0",B401qx7:"f12sz5kj",Buyp1jb:"f17588c3",gsp74p:"fnthgdt"},filledSelected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",B95qlz1:"f1lm9dni",r4wkhp:"f1mn5ei1",B7xitij:"f1g6ncd0",p743kt:"fl71aob",Gedr8k:"f14zl92z",Bm69vlq:"f16zy3eu",Bodipah:"f1gdgb7p",B5kpen0:"f1tua9ng"},filledDisabled:{De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o"},filledDisabledSelected:{De3pzq:"f1bg9a2p",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fegtqic",sj55zd:"f1s2aq7o"}},{d:[[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}",{p:-2}],".ftorr8m .fui-Tab__icon{color:inherit;}",".f16lqpmv .fui-Tab__content{color:inherit;}",[".fzklhed{padding-block:calc(var(--spacingVerticalXXS) - var(--strokeWidthThin));}",{p:-1}],[".f1j721cc{padding-block:calc(var(--spacingVerticalSNudge) - var(--strokeWidthThin));}",{p:-1}],[".frx9knr{padding-block:calc(var(--spacingVerticalS) - var(--strokeWidthThin));}",{p:-1}],".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",[".ft57sj0:enabled:hover{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Hover);}",{p:-2}],".f1fcoy83:enabled:hover{color:var(--colorNeutralForeground2Hover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",[".fhn220o:enabled:active{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Pressed);}",{p:-2}],".f15qf7sh:enabled:active{color:var(--colorNeutralForeground2Pressed);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",[".f1c2pc3t{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStroke);}",{p:-2}],".faj9fo0{color:var(--colorBrandForeground2);}",".fsm7zmf:enabled:hover{background-color:var(--colorBrandBackground2Hover);}",[".f1wo0sfq:enabled:hover{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokeHover);}",{p:-2}],".f1afuynh:enabled:hover{color:var(--colorBrandForeground2Hover);}",".f94ddyl:enabled:active{background-color:var(--colorBrandBackground2Pressed);}",[".fmle6oo:enabled:active{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokePressed);}",{p:-2}],".f1d3itm4:enabled:active{color:var(--colorBrandForeground2Pressed);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1lm9dni:enabled:hover{background-color:var(--colorBrandBackgroundHover);}",".f1mn5ei1:enabled:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1g6ncd0:enabled:active{background-color:var(--colorBrandBackgroundPressed);}",".fl71aob:enabled:active{color:var(--colorNeutralForegroundOnBrand);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}]],m:[["@media (forced-colors: active){.f1mljprk{border:solid var(--strokeWidthThin) Canvas;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e9l2u{border:solid var(--strokeWidthThin) Highlight;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cpi5f4:enabled:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6pj1s0:enabled:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12sz5kj:enabled:hover .fui-Tab__content{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17588c3:enabled:hover .fui-Icon-filled{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnthgdt:enabled:hover .fui-Icon-regular{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14zl92z:enabled{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16zy3eu:enabled .fui-Tab__content{color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gdgb7p:enabled .fui-Tab__content{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tua9ng:enabled .fui-Tab__icon{color:ButtonFace;}}",{m:"(forced-colors: active)"}]]}),p3=ke({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"},circular:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fzgyhws","fqxug60"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}",".fzgyhws[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}",".fqxug60[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}"]}),h3=ke({base:{az7l2e:"fhw179n",vqofr:0,Bv4n3vi:0,Bgqb9hq:0,B0uxbk8:0,Bf3jju6:"fg9j5n4",amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",Bka2azo:0,vzq8l0:0,csmgbd:0,Br4ovkg:0,aelrif:"fceyvr4",y36c18:"f16cxu0",B1ctymy:"f1nwgacf",xzc5d:"fm6alxz",h5yqg8:"fhx32z1"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn",xzc5d:"fw15awd",h5yqg8:"faqmq51"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",[".fg9j5n4:hover::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",[".fceyvr4:active::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.fm6alxz:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhx32z1:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw15awd:hover::before{background-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faqmq51:active::before{background-color:transparent;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),m3=ke({base:{Bjyk6c5:"f1rp0jgh",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f3b9emi",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9"},selected:{Bjyk6c5:"f1ksivud",Bej4dhw:"f1476jrx",B7wqxwa:"f18q216b",Hwb57:"f1wf6u82",Beg08s0:"f1xwit7m",Bo27r1v:"f1ksfgwi"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",[".f3b9emi::after{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f1476jrx:enabled:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}",".f18q216b:enabled:active::after{background-color:var(--colorCompoundBrandStrokePressed);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],m:[["@media (forced-colors: active){.f1wf6u82::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xwit7m:enabled:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ksfgwi:enabled:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),g3=ke({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),v3=ke({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bwptpd"},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1bwptpd{padding:var(--spacingVerticalNone) var(--spacingHorizontalXXS);}",{p:-1}],".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),b3=e=>{"use no memo";return y3(e),x3(e,e.root),w3(e),e},y3=e=>{const t=Sm(),n=h3(),i=m3(),{appearance:s,disabled:l,selected:c,size:d,vertical:f}=e,h=[Cc.root,t.root];return s!=="subtle-circular"&&s!=="filled-circular"&&h.push(n.base,d==="small"&&(f?n.smallVertical:n.smallHorizontal),d==="medium"&&(f?n.mediumVertical:n.mediumHorizontal),d==="large"&&(f?n.largeVertical:n.largeHorizontal),l&&n.disabled,c&&i.base,c&&!l&&i.selected,c&&d==="small"&&(f?i.smallVertical:i.smallHorizontal),c&&d==="medium"&&(f?i.mediumVertical:i.mediumHorizontal),c&&d==="large"&&(f?i.largeVertical:i.largeHorizontal),c&&l&&i.disabled),e.root.className=de(...h,e.root.className),u3(e),e},x3=(e,t)=>{const n=Sm(),i=p3(),s=f3(),{appearance:l,disabled:c,selected:d,size:f,vertical:h}=e,g=l==="subtle-circular",b=l==="filled-circular",x=g||b,m=[s.base,i.circular,f==="small"&&s.small,f==="medium"&&s.medium,f==="large"&&s.large,g&&s.subtle,d&&g&&s.subtleSelected,c&&g&&s.subtleDisabled,d&&c&&g&&s.subtleDisabledSelected,b&&s.filled,d&&b&&s.filledSelected,c&&b&&s.filledDisabled,d&&c&&b&&s.filledDisabledSelected],y=[i.base,!c&&l==="subtle"&&n.subtle,!c&&l==="transparent"&&n.transparent,!c&&d&&n.selected,c&&n.disabled];return t.className=de(n.button,h?n.vertical:n.horizontal,f==="small"&&(h?n.smallVertical:n.smallHorizontal),f==="medium"&&(h?n.mediumVertical:n.mediumHorizontal),f==="large"&&(h?n.largeVertical:n.largeHorizontal),...x?m:y,c&&n.disabledCursor,t.className),e},w3=e=>{const t=g3(),n=v3(),{selected:i,size:s}=e;return e.icon&&(e.icon.className=de(Cc.icon,t.base,t[s],i&&t.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=de(d3.content,n.base,s==="large"?n.largeSelected:n.selected,e.icon?n.iconBefore:n.noIconBefore,n.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=de(Cc.content,n.base,s==="large"&&n.large,i&&(s==="large"?n.largeSelected:n.selected),e.icon?n.iconBefore:n.noIconBefore,e.content.className),e},ni=S.forwardRef((e,t)=>{const n=o3(e,t);return b3(n),at("useTabStyles_unstable")(n),s3(n)});ni.displayName="Tab";const k3=Pe("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),S3=Pe("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function _3(){const e=k3(),t=S3(),{targetDocument:n}=$e(),i=S.useCallback(()=>{var l;if(!n)return;var c;Math.floor(n.body.getBoundingClientRect().height)>((c=(l=n.defaultView)===null||l===void 0?void 0:l.innerHeight)!==null&&c!==void 0?c:0)&&(n.documentElement.classList.add(e),n.body.classList.add(t))},[n,e,t]),s=S.useCallback(()=>{n&&(n.documentElement.classList.remove(e),n.body.classList.remove(t))},[n,e,t]);return{disableBodyScroll:i,enableBodyScroll:s}}function C3(e,t){const{findFirstFocusable:n}=fa(),{targetDocument:i}=$e(),s=S.useRef(null);return S.useEffect(()=>{if(!e)return;const l=s.current&&n(s.current);if(l)l.focus();else{var c;(c=s.current)===null||c===void 0||c.focus()}},[n,e,t,i]),s}const N3={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},Nc=ga(void 0),B3=Nc.Provider,dr=e=>va(Nc,(t=N3)=>e(t)),z3=!1,_m=S.createContext(void 0),Cm=_m.Provider,E3=()=>{var e;return(e=S.useContext(_m))!==null&&e!==void 0?e:z3},Nm=S.createContext(void 0);Nm.Provider;const T3=()=>S.useContext(Nm),Bm=Yo(Kl,{outScale:.85,easing:Ye.curveDecelerateMid,duration:Ye.durationGentle,exitEasing:Ye.curveAccelerateMin,exitDuration:Ye.durationGentle}),F3=e=>{const{children:t,modalType:n="modal",onOpenChange:i,inertTrapFocus:s=!1,unmountOnClose:l=!0}=e,c=wr("dialog-title-"),[d,f]=P3(t),[h,g]=Xr({state:e.open,defaultState:e.defaultOpen,initialState:!1}),b=be(_=>{i?.(_.event,_),_.event.isDefaultPrevented()||g(_.open)}),x=C3(h,n),{modalAttributes:m,triggerAttributes:y}=kp({trapFocus:n!=="non-modal",legacyTrapFocus:!s}),w=ba(Nc);return{components:{surfaceMotion:Bm},inertTrapFocus:s,open:h,modalType:n,content:f,trigger:d,requestOpenChange:b,dialogTitleId:c,isNestedDialog:w,unmountOnClose:l,dialogRef:x,modalAttributes:m,triggerAttributes:y,surfaceMotion:Gl(e.surfaceMotion,{elementType:Bm,defaultProps:{visible:h,appear:l,unmountOnExit:l}})}};function P3(e){const t=S.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}const R3=(e,t)=>he(B3,{value:t.dialog,children:rt(Cm,{value:t.dialogSurface,children:[e.trigger,e.content&&he(e.surfaceMotion,{children:he(Wl,{children:e.content})})]})});function j3(e){const{modalType:t,open:n,dialogRef:i,dialogTitleId:s,isNestedDialog:l,inertTrapFocus:c,requestOpenChange:d,modalAttributes:f,triggerAttributes:h,unmountOnClose:g}=e;return{dialog:S.useMemo(()=>({open:n,modalType:t,dialogRef:i,dialogTitleId:s,isNestedDialog:l,inertTrapFocus:c,modalAttributes:f,triggerAttributes:h,unmountOnClose:g,requestOpenChange:d}),[n,t,i,s,l,c,f,h,g,d]),dialogSurface:!1}}const Bc=S.memo(e=>{const t=F3(e),n=j3(t);return R3(t,n)});Bc.displayName="Dialog";const M3=e=>{const t=E3(),{children:n,disableButtonEnhancement:i=!1,action:s=t?"close":"open"}=e,l=ia(n),c=dr(b=>b.requestOpenChange),{triggerAttributes:d}=kp(),f=be(b=>{var x,m;l==null||(x=(m=l.props).onClick)===null||x===void 0||x.call(m,b),b.isDefaultPrevented()||c({event:b,type:"triggerClick",open:s==="open"})}),h={...l?.props,ref:oa(l),onClick:f,...d},g=wa(l?.type==="button"||l?.type==="a"?l.type:"div",{...h,type:"button"});return{children:Nl(n,i?h:g)}},I3=e=>e.children,zc=e=>{const t=M3(e);return I3(t)};zc.displayName="DialogTrigger",zc.isFluentTriggerComponent=!0;const D3=(e,t)=>{const{position:n="end",fluid:i=!1}=e;return{components:{root:"div"},root:Me(Gt("div",{ref:t,...e}),{elementType:"div"}),position:n,fluid:i}},A3=e=>he(e.root,{}),O3={root:"fui-DialogActions"},q3=Pe("rhfpeu0",null,{r:[".rhfpeu0{gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.rhfpeu0{flex-direction:column;justify-self:stretch;}}"]}),L3=ke({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",Btsd7tp:"f1n00o3b",ufxxby:"f1mvsp37",Bq5p579:"flbz1vp"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Ew0qkd:"f119phc2",ufxxby:"f1j719yo",Bq5p579:"flbz1vp"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1n00o3b{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1mvsp37{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.flbz1vp{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f119phc2{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1j719yo{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),H3=e=>{const t=q3(),n=L3();return e.root.className=de(O3.root,t,e.position==="start"&&n.gridPositionStart,e.position==="end"&&n.gridPositionEnd,e.fluid&&e.position==="start"&&n.fluidStart,e.fluid&&e.position==="end"&&n.fluidEnd,e.root.className),e},Ec=S.forwardRef((e,t)=>{const n=D3(e,t);return H3(n),at("useDialogActionsStyles_unstable")(n),A3(n)});Ec.displayName="DialogActions";const $3=(e,t)=>{var n;return{components:{root:"div"},root:Me(Gt((n=e.as)!==null&&n!==void 0?n:"div",{ref:t,...e}),{elementType:"div"})}},V3=e=>he(e.root,{}),U3={root:"fui-DialogBody"},W3=Pe("rhwx3p8",null,{r:[".rhwx3p8{overflow:unset;gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);max-height:calc(100dvh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.rhwx3p8{max-width:100vw;grid-template-rows:auto 1fr auto;}}","@media screen and (max-height: 359px){.rhwx3p8{max-height:unset;}}"]}),G3=e=>{const t=W3();return e.root.className=de(U3.root,t,e.root.className),e},Tc=S.forwardRef((e,t)=>{const n=$3(e,t);return G3(n),at("useDialogBodyStyles_unstable")(n),V3(n)});Tc.displayName="DialogBody";const zm={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},K3=Pe("rxjm636",null,[".rxjm636{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),X3=ke({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),Q3=Pe("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),Y3=Pe("r2avt6e","roj2bbc",{r:[".r2avt6e{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r2avt6e:focus{outline-style:none;}",".r2avt6e:focus-visible{outline-style:none;}",".r2avt6e[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2avt6e[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".roj2bbc{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".roj2bbc:focus{outline-style:none;}",".roj2bbc:focus-visible{outline-style:none;}",".roj2bbc[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.roj2bbc[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r2avt6e[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.roj2bbc[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),J3=e=>{const t=K3(),n=Q3(),i=X3();return e.root.className=de(zm.root,t,!e.action&&i.rootWithoutAction,e.root.className),e.action&&(e.action.className=de(zm.action,n,e.action.className)),e},Z3=(e,t)=>{const{action:n}=e,i=dr(l=>l.modalType),s=Y3();return{components:{root:"h2",action:"div"},root:Me(Gt("h2",{ref:t,id:dr(l=>l.dialogTitleId),...e}),{elementType:"h2"}),action:Ie(n,{renderByDefault:i==="non-modal",defaultProps:{children:S.createElement(zc,{disableButtonEnhancement:!0,action:"close"},S.createElement("button",{type:"button",className:s,"aria-label":"close"},S.createElement(Ww,null)))},elementType:"div"})}},eC=e=>rt(S.Fragment,{children:[he(e.root,{children:e.root.children}),e.action&&he(e.action,{})]}),Fc=S.forwardRef((e,t)=>{const n=Z3(e,t);return J3(n),at("useDialogTitleStyles_unstable")(n),eC(n)});Fc.displayName="DialogTitle";const Em=ok,tC=(e,t)=>{const n=oh(),i=dr(z=>z.modalType),s=dr(z=>z.isNestedDialog),l=T3(),c=l??s,d=dr(z=>z.modalAttributes),f=dr(z=>z.dialogRef),h=dr(z=>z.requestOpenChange),g=dr(z=>z.dialogTitleId),b=dr(z=>z.open),x=dr(z=>z.unmountOnClose),m=be(z=>{if(F1(e.backdrop)){var P,L;(P=(L=e.backdrop).onClick)===null||P===void 0||P.call(L,z)}i==="modal"&&!z.isDefaultPrevented()&&h({event:z,open:!1,type:"backdropClick"})}),y=be(z=>{var P;(P=e.onKeyDown)===null||P===void 0||P.call(e,z),z.key===xa&&!z.isDefaultPrevented()&&(h({event:z,open:!1,type:"escapeKeyDown"}),z.preventDefault())}),w=Ie(e.backdrop,{renderByDefault:i!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"}),_=w?.appearance;w&&(w.onClick=m,delete w.appearance);const{disableBodyScroll:N,enableBodyScroll:E}=_3();return tt(()=>{if(!b){E();return}if(!(s||i==="non-modal"))return N(),()=>E()},[b,i,s,N,E]),{components:{backdrop:"div",root:"div",backdropMotion:Em},open:b,backdrop:w,isNestedDialog:s,treatBackdropAsNested:c,backdropAppearance:_,unmountOnClose:x,mountNode:e.mountNode,root:Me(Gt("div",{tabIndex:-1,role:i==="alert"?"alertdialog":"dialog","aria-modal":i!=="non-modal","aria-labelledby":e["aria-label"]?void 0:g,"aria-hidden":!x&&!b?!0:void 0,...e,...d,onKeyDown:y,ref:ct(t,n,f)}),{elementType:"div"}),backdropMotion:Gl(e.backdropMotion,{elementType:Em,defaultProps:{appear:x,visible:b}}),transitionStatus:void 0}};function rC(e){return Kt(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const nC=ke({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),Tm=Yi.useInsertionEffect,oC=e=>{const{className:t,dir:n,focusVisibleRef:i,targetNode:s}=e,l=S.useMemo(()=>{if(s===void 0||e.disabled)return null;const c=s.ownerDocument.createElement("div");return s.appendChild(c),c},[s,e.disabled]);return S.useMemo(()=>{l&&(l.className=t,l.setAttribute("dir",n),l.setAttribute("data-portal-node","true"),i.current=l)},[t,n,l,i]),S.useEffect(()=>()=>{l?.remove()},[l]),l},iC=()=>{let e;function t(i,s){return e||(s&&(e=i.ownerDocument.createElement("div"),i.appendChild(e)),e)}function n(){e&&(e.remove(),e=void 0)}return{get:t,dispose:n}},aC=Tm?e=>{"use no memo";const{className:t,dir:n,focusVisibleRef:i,targetNode:s}=e,[l]=S.useState(iC),c=S.useMemo(()=>s===void 0||e.disabled?null:new Proxy({},{get(d,f){if(f==="nodeType")return 1;if(f==="remove"){const b=l.get(s,!1);return b&&b.childNodes.length===0&&l.dispose(),()=>{}}const h=l.get(s,!0),g=h?h[f]:void 0;return typeof g=="function"?g.bind(h):g},set(d,f,h){const g=f==="_virtual"||f==="focusVisible",b=g?l.get(s,!1):l.get(s,!0);return g&&!b?!0:b?(Object.assign(b,{[f]:h}),!0):!1}}),[l,s,e.disabled]);return Tm(()=>{if(!c)return;const d=t.split(" ").filter(Boolean);return c.classList.add(...d),c.setAttribute("dir",n),c.setAttribute("data-portal-node","true"),i.current=c,()=>{c.classList.remove(...d),c.removeAttribute("dir")}},[t,n,c,i]),S.useEffect(()=>()=>{c?.remove()},[c]),c}:oC,sC=e=>{"use no memo";const{targetDocument:t,dir:n}=$e(),i=Sl(),s=pa(),l=nC(),c=xl(),d={dir:n,disabled:e.disabled,focusVisibleRef:s,className:de(c,l.root,e.className),targetNode:i??t?.body};return aC(d)},lC=e=>{const{element:t,className:n}=rC(e.mountNode),i=S.useRef(null),s=sC({disabled:!!t,className:n}),l=t??s,c={children:e.children,mountNode:l,virtualParentRootRef:i};return S.useEffect(()=>{if(!l)return;const d=i.current,f=l.contains(d);if(d&&!f)return eo(l,d),()=>{eo(l,void 0)}},[i,l]),c},cC=e=>S.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Pa.createPortal(S.createElement(S.Fragment,null,e.children,S.createElement("span",{hidden:!0})),e.mountNode)),Fm=e=>{const t=lC(e);return cC(t)};Fm.displayName="Portal";const uC=(e,t)=>rt(Fm,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&he(e.backdropMotion,{children:he(e.backdrop,{})}),he(ih,{children:he(Cm,{value:t.dialogSurface,children:he(e.root,{})})})]}),Pm={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},dC=Pe("r1u3t6p6","r5coedp",{r:[".r1u3t6p6{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r1u3t6p6:focus{outline-style:none;}",".r1u3t6p6:focus-visible{outline-style:none;}",".r1u3t6p6[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1u3t6p6[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r5coedp{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r5coedp:focus{outline-style:none;}",".r5coedp:focus-visible{outline-style:none;}",".r5coedp[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r5coedp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1u3t6p6[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.r1u3t6p6{max-width:100vw;}}","@media screen and (max-height: 359px){.r1u3t6p6{overflow-y:auto;padding-right:calc(24px - 4px);border-right-width:4px;border-top-width:4px;border-bottom-width:4px;}}","@media (forced-colors: active){.r5coedp[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r5coedp{max-width:100vw;}}","@media screen and (max-height: 359px){.r5coedp{overflow-y:auto;padding-left:calc(24px - 4px);border-left-width:4px;border-top-width:4px;border-bottom-width:4px;}}"]}),fC=Pe("r1e18s3l",null,[".r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}"]),pC=ke({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},dialogHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),hC=e=>{const{root:t,backdrop:n,open:i,unmountOnClose:s,treatBackdropAsNested:l,backdropAppearance:c}=e,d=dC(),f=fC(),h=pC(),g=c?c==="transparent":l,b=!s&&!i;return t.className=de(Pm.root,d,b&&h.dialogHidden,t.className),n&&(n.className=de(Pm.backdrop,f,b&&h.dialogHidden,g&&h.nestedDialogBackdrop,n.className)),e};function mC(e){return{dialogSurface:!0}}const Pc=S.forwardRef((e,t)=>{const n=tC(e,t),i=mC();return hC(n),at("useDialogSurfaceStyles_unstable")(n),uC(n,i)});Pc.displayName="DialogSurface";const gC=(e,t)=>{var n;return{components:{root:"div"},root:Me(Gt((n=e.as)!==null&&n!==void 0?n:"div",{ref:t,...e}),{elementType:"div"})}},vC=e=>he(e.root,{}),bC={root:"fui-DialogContent"},yC=Pe("r1v5zwsm",null,{r:[".r1v5zwsm{padding:var(--strokeWidthThick);margin:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"],s:["@media screen and (max-height: 359px){.r1v5zwsm{overflow-y:unset;}}"]}),xC=e=>{const t=yC();return e.root.className=de(bC.root,t,e.root.className),e},Rc=S.forwardRef((e,t)=>{const n=gC(e,t);return xC(n),at("useDialogContentStyles_unstable")(n),vC(n)});Rc.displayName="DialogContent";function Oa(e){const t=`efa-tile-${S.useId().replace(/:/g,"")}`;return C.jsxs("svg",{className:e.className,viewBox:"0 0 48 48","aria-hidden":"true",children:[C.jsx("defs",{children:C.jsxs("linearGradient",{id:t,x1:"0",x2:"1",y1:"0",y2:"1",children:[C.jsx("stop",{offset:"0",stopColor:"#0078D4"}),C.jsx("stop",{offset:".5",stopColor:"#3B6FE0"}),C.jsx("stop",{offset:"1",stopColor:"#8A4FD8"})]})}),C.jsx("rect",{x:"2",y:"2",width:"44",height:"44",rx:"11",fill:`url(#${t})`}),C.jsxs("g",{fill:"#ffffff",children:[C.jsx("rect",{x:"9",y:"9",width:"30",height:"5.5",rx:"2"}),C.jsx("rect",{x:"9",y:"17.5",width:"7",height:"21",rx:"2",fillOpacity:.9}),C.jsx("rect",{x:"19",y:"17.5",width:"7",height:"7",rx:"2",fillOpacity:.65}),C.jsx("rect",{x:"29",y:"17.5",width:"7",height:"4",rx:"2",fillOpacity:.45})]}),C.jsxs("g",{fill:"none",stroke:"#ffffff",strokeLinecap:"round",children:[C.jsx("circle",{cx:"29.5",cy:"30.5",r:"6.8",strokeWidth:3}),C.jsx("path",{d:"m34.7 35.7 4.8 4.8",strokeWidth:3.6})]})]})}const nt=1024,on=5,jc=["AttributeOf","AutoNumberFormat","CanBeSecuredForCreate","CanBeSecuredForRead","CanBeSecuredForUpdate","CanModifyAdditionalSettings","ColumnNumber","DeprecatedVersion","ExternalName","InheritsFrom","IsCustomizable","IsDataSourceSecret","IsFilterable","IsGlobalFilterEnabled","IsLogical","IsPrimaryId","IsPrimaryName","IsRenameable","IsRequiredForForm","IsRetrievable","IsSecured","IsSortableEnabled","IsValidForAdvancedFind","IsValidForCreate","IsValidForForm","IsValidForGrid","IsValidForRead","IsValidForUpdate","IsValidODataAttribute","LinkedAttributeId","EntityLogicalName","SourceType"],Rm={language:"en",filter:"all",allColumns:!1};function co(e){return e==="Lookup"||e==="Owner"?3:e==="Status"||e==="Boolean"||e==="Picklist"||e==="Money"?2:1}const uo=e=>e.indexOf("_")>0?e.substring(0,e.indexOf("_")+1):"",jm=e=>e.type==="Lookup"||e.type==="Owner"||e.type==="Customer",wC=e=>e.requiredLevel==="ApplicationRequired"||e.requiredLevel==="SystemRequired";function oi(e,t){const n=new Map;for(const i of e){const s=t(i),l=n.get(s);l?l.push(i):n.set(s,[i])}return n}const qa=(e,t)=>t.value-e.value;function kC(e){const t=e.filter(g=>g.createdOn&&g.createdOn>"2000-01-01");if(!t.length)return{timeline:[],byMonth:!1};const n=t.map(g=>g.createdOn).sort(),i=new Date(n[0]),s=new Date(n[n.length-1]),l=(s.getTime()-i.getTime())/864e5<=730,c=l?7:4,d=oi(t,g=>g.createdOn.substring(0,c)),f=[],h=new Date(Date.UTC(i.getUTCFullYear(),l?i.getUTCMonth():0,1));for(;h<=s;){const g=h.toISOString().substring(0,c),b=d.get(g)??[],x=b.filter(m=>m.custom).length;f.push({key:g,value:x,secondary:b.length-x,test:m=>!!m.createdOn?.startsWith(g)}),l?h.setUTCMonth(h.getUTCMonth()+1):h.setUTCFullYear(h.getUTCFullYear()+1)}return{timeline:f,byMonth:l}}function SC(e){const{fields:t}=e,n=t.length,i=e.mode==="usage",s=m=>t.filter(m).length,l=(m,y)=>({key:m,value:s(y),test:y}),c=(m,y)=>({key:m,value:n?s(y)*100/n:0,test:y}),d=[...oi(t,m=>m.type)],f={1:0,2:0,3:0};for(const[m,y]of d)f[co(m)]+=y.length*co(m);const h=f[1]+f[2]+f[3],g=[...oi(t.filter(m=>m.custom&&!!uo(m.name)),m=>uo(m.name))].map(([m,y])=>({key:m,value:y.length,test:w=>w.custom&&uo(w.name)===m})).sort(qa),b=g.slice(0,7);if(g.length>b.length){const m=new Set(g.slice(7).map(y=>y.key));b.push(l("others",y=>y.custom&&m.has(uo(y.name))))}const x=(m,y,w)=>l(m,_=>_.usage>y&&_.usage<=w);return{total:n,hasUsage:i,customCount:s(m=>m.custom),unmanagedCount:s(m=>!m.managed),types:d.map(([m,y])=>({key:m,value:y.length,test:w=>w.type===m})).sort(qa),origin:[l("standard",m=>!m.custom&&m.managed),l("customManaged",m=>m.custom&&m.managed),l("customUnmanaged",m=>m.custom&&!m.managed),l("standardUnmanaged",m=>!m.custom&&!m.managed)].filter((m,y)=>y<3||m.value>0),settings:[c("audit",m=>m.auditable),c("find",m=>m.searchable),c("required",m=>m.requiredLevel!=="None"),c("secured",m=>m.secured)],publishers:b,...kC(t),weights:f,used:h,available:Math.max(0,nt-h),cost:d.map(([m,y])=>({key:m,value:y.length*co(m),test:w=>w.type===m})).sort(qa),unused:i?s(m=>m.usage<=0):0,low:i?s(m=>m.usage>0&&m.usage<on):0,average:i&&n?t.reduce((m,y)=>m+y.usage,0)/n:0,distribution:i?[l("0%",m=>m.usage<=0),x("< 1%",0,1),x("1–10%",1,10),x("10–50%",10,50),x("50–90%",50,90),x("> 90%",90,1/0)]:[],fillByType:i?d.map(([m,y])=>({key:m,value:y.reduce((w,_)=>w+_.usage,0)/y.length,test:w=>w.type===m})).sort(qa):[],leastUsed:i?t.filter(m=>m.custom&&!m.key).sort((m,y)=>m.usage-y.usage||m.name.localeCompare(y.name,"en")).slice(0,12).map(m=>({key:m.name,value:m.usage,test:y=>y.name===m.name})):[]}}function _C(e,t,n,i){const s=t*3+n*2+i,l=nt-e;return{needed:s,available:l,fits:s<=l}}const Mc=["High","Medium","Low","Info"],Ic={capacity:"Capacity",noRecord:"Data usage",securedEmpty:"Security",unused:"Unused field",low:"Low usage",quality:"Data quality",deprecated:"Deprecated",noName:"Documentation",noDescription:"Documentation",unmanaged:"ALM",secured:"Security"};function CC(e,t){const{records:n}=e,i=[],s=(d,f,h)=>i.push({severity:d,rule:f,field:h,records:n,used:t.used,weight:h?co(h.type):0}),l=t.hasUsage&&n>0,c=t.used*100/nt;c>=75&&s(c>=90?"High":"Medium","capacity"),t.hasUsage&&n===0&&s("Info","noRecord");for(const d of e.fields)l&&d.custom&&!d.key&&(d.usage<=0?s(d.secured?"Info":"High",d.secured?"securedEmpty":"unused",d):d.usage<on&&s("Medium","low",d)),l&&!d.key&&!d.secured&&wC(d)&&d.usage<100&&s("Medium","quality",d),d.deprecatedVersion&&s("Medium","deprecated",d),d.custom&&!d.displayName&&s("Low","noName",d),d.custom&&!d.description.trim()&&s("Low","noDescription",d),d.custom&&!d.managed&&s("Info","unmanaged",d),d.secured&&s("Info","secured",d);return i.sort((d,f)=>Mc.indexOf(d.severity)-Mc.indexOf(f.severity)||Ic[d.rule].localeCompare(Ic[f.rule],"en")||(d.field?.name??"").localeCompare(f.field?.name??"","en"))}const Mm="Entity Fields Analyzer",NC="Hamza AMRAOUI";function BC(e){const t=(m,y)=>e?y:m,n=e?"fr-FR":"en-US",i=new Intl.NumberFormat(n,{maximumFractionDigits:0}),s=m=>i.format(m),l=(m,y=0)=>new Intl.NumberFormat(n,{style:"percent",maximumFractionDigits:y}).format(m/100),c=new Intl.DateTimeFormat(n,{month:"short",year:"2-digit",timeZone:"UTC"}),d={standard:t("Standard","Standard"),customManaged:t("Custom · managed","Personnalisé · géré"),customUnmanaged:t("Custom · unmanaged","Personnalisé · non géré"),standardUnmanaged:t("Standard · unmanaged","Standard · non géré"),audit:t("Auditing enabled","Audit activé"),find:t("In Advanced Find","Recherche avancée"),required:t("Required","Obligatoire"),secured:t("Field security","Sécurité de champ"),others:t("Other prefixes","Autres préfixes")},f={Capacity:t("Capacity","Capacité"),"Data usage":t("Data usage","Utilisation des données"),"Unused field":t("Unused field","Champ inutilisé"),"Low usage":t("Low usage","Peu utilisé"),"Data quality":t("Data quality","Qualité des données"),Deprecated:t("Deprecated","Obsolète"),Documentation:"Documentation",ALM:"ALM",Security:t("Security","Sécurité")};function h(m){const y=m.field?.filled??0;switch(m.rule){case"capacity":return[t(`${l(m.used*100/nt,1)} of the column capacity is used (${m.used} / ${nt} columns).`,`${l(m.used*100/nt,1)} de la capacité est utilisée (${m.used} / ${nt} colonnes).`),t("Few fields can still be created on this table: remove unused fields before adding new ones (see the Capacity tab of the tool).","Peu de champs peuvent encore être créés : supprimez les champs inutilisés avant d'en ajouter (voir l'onglet Capacité de l'outil).")];case"noRecord":return[t("The table has no record that you can read: fill rates can't be computed.","La table n'a aucun enregistrement lisible : les taux de remplissage ne peuvent pas être calculés."),t("Run the analysis on an environment that contains representative data.","Lancez l'analyse sur un environnement qui contient des données représentatives.")];case"securedEmpty":return[t("Reads as empty, but is protected by column-level security.","Lu comme vide, mais protégé par la sécurité au niveau des colonnes."),t("Don't delete it on this basis: check again with an account that can read this field.","Ne le supprimez pas sur cette base : revérifiez avec un compte qui peut lire ce champ.")];case"unused":return[t(`Never filled in any of the ${s(m.records)} records read.`,`Vide dans les ${s(m.records)} enregistrements lus.`),t(`Check forms, views, processes, plugins and integrations, then consider deleting it to free ${m.weight} column(s).`,`Vérifiez formulaires, vues, processus, plugins et intégrations, puis envisagez de le supprimer pour libérer ${m.weight} colonne(s).`)];case"low":return[t(`Filled in only ${s(y)} of ${s(m.records)} records.`,`Rempli dans seulement ${s(y)} enregistrements sur ${s(m.records)}.`),t("Confirm the business still needs it; otherwise remove it or merge it with another field.","Confirmez le besoin métier, sinon supprimez-le ou fusionnez-le avec un autre champ.")];case"quality":{const _=m.field?.requiredLevel==="SystemRequired"?t("System required","Requis par le système"):t("Business required","Requis par l'entreprise"),N=s(m.records-y);return[t(`${_} but empty in ${N} of ${s(m.records)} records.`,`${_} mais vide dans ${N} enregistrements sur ${s(m.records)}.`),t("Backfill the missing values, or review the requirement level (imports, integrations and records created before the rule bypass it).","Complétez les valeurs manquantes ou revoyez le niveau requis (imports, intégrations et enregistrements antérieurs le contournent).")]}case"deprecated":return[t(`Deprecated since version ${m.field?.deprecatedVersion}.`,`Obsolète depuis la version ${m.field?.deprecatedVersion}.`),t("Stop using this field in new customizations and integrations.","N'utilisez plus ce champ dans les nouveaux développements et intégrations.")];case"noName":return[t("No display name in the user language.","Aucun nom d'affichage dans la langue de l'utilisateur."),t("Add a display name (and its translations) so users and makers can identify the field.","Ajoutez un nom d'affichage (et ses traductions) pour identifier le champ.")];case"noDescription":return[t("No description.","Aucune description."),t("Describe the purpose of the field: it is shown as a tooltip on forms and helps the next makers.","Décrivez le rôle du champ : la description est affichée en info-bulle et aide les prochains intervenants.")];case"unmanaged":return[t("Custom field in the unmanaged layer.","Champ personnalisé dans la couche non gérée."),t("Make sure it belongs to a solution and reaches test / production through a managed solution.","Assurez-vous qu'il appartient à une solution et arrive en recette / production par une solution gérée.")];case"secured":return[t("Protected by column-level security.","Protégé par la sécurité au niveau des colonnes."),t("Check that the field security profiles grant access to the right teams.","Vérifiez que les profils de sécurité donnent l'accès aux bonnes équipes.")]}}const g={metadata:t("Metadata only","Métadonnées seules"),usage:t("Metadata + Data usage","Métadonnées + Utilisation des données")},b={all:t("All entities","Toutes les entités"),custom:t("Custom entities","Entités personnalisées"),standard:t("CRM entities","Entités CRM"),system:t("System entities (managed)","Entités système (gérées)")},x={High:t("High","Haute"),Medium:t("Medium","Moyenne"),Low:t("Low","Faible"),Info:"Info"};return{locale:n,N:s,P:l,label:m=>d[m]??m,period:m=>m.length===7?c.format(new Date(`${m}-01`)):m,modes:g,filters:b,severities:x,category:m=>f[Ic[m]],finding:h,yes:t("Yes","Oui"),no:t("No","Non"),ok:"OK",close:t("Close","Fermer"),appSubtitle:t("Types, origin, data usage and column capacity of your entities","Types, origine, utilisation et capacité en colonnes de vos entités"),connectedTo:m=>t(`Connected to ${m}`,`Connecté à ${m}`),notConnected:t("Not connected","Non connecté"),getEntities:t("Get Entities","Charger les entités"),getEntitiesTip:t("Lists the entities of the connected environment. Nothing is read before this click.","Liste les entités de l'environnement connecté. Rien n'est lu avant ce clic."),exportExcel:t("Export to Excel","Exporter vers Excel"),languageMenu:t("Language","Langue"),help:t("Help","Aide"),authorTip:t("Developed by Hamza AMRAOUI (LinkedIn)","Développé par Hamza AMRAOUI (LinkedIn)"),entities:t("Entities","Entités"),entitiesHint:t("double-click to analyse","double-clic pour analyser"),entityFilter:t("Entity filter","Filtre d'entités"),searchEntity:t("Search by display or schema name","Rechercher par nom affiché ou technique"),entitiesEmpty:t("Click “Get Entities” to list your entities.","Cliquez sur « Charger les entités » pour les lister."),entitiesNone:t("No entity matches your search.","Aucune entité ne correspond à votre recherche."),analysisMode:t("Analysis mode","Mode d'analyse"),usageWarning:t("Reads every record: it can take a while on large tables.","Lit tous les enregistrements : cela peut être long sur les grosses tables."),analyse:m=>t(`Analyse ${m}`,`Analyser ${m}`),guideTitle:t("Get started in 3 steps","Démarrez en 3 étapes"),steps:[[t("Load the entities","Chargez les entités"),t("Click “Get Entities”, then narrow the list with the filter: all, custom, CRM or system entities.","Cliquez sur « Charger les entités », puis filtrez la liste : toutes, personnalisées, CRM ou système.")],[t("Choose an entity","Choisissez une entité"),t("Click an entity in the list. Use the search box to find it by display or schema name.","Cliquez sur une entité de la liste. La recherche accepte le nom affiché ou technique.")],[t("Run the analysis","Lancez l'analyse"),t("“Metadata only” is fast. “Metadata + Data usage” also reads the records to measure how often each field is filled.","« Métadonnées seules » est rapide. « Métadonnées + Utilisation des données » lit aussi les enregistrements pour mesurer le remplissage de chaque champ.")]],done:t("Done","Terminé"),next:t("Next step","Étape suivante"),featuresTitle:t("What you will find after the analysis","Ce que vous trouverez après l'analyse"),features:[[t("Overview","Vue d'ensemble"),t("Key figures, field types, origin, publishers and creation timeline.","Chiffres clés, types de champs, origine, éditeurs et chronologie de création.")],[t("Fields","Champs"),t("Every field with its metadata. Click any chart to open the matching fields here.","Chaque champ avec ses métadonnées. Cliquez sur un graphique pour y ouvrir les champs correspondants.")],[t("Data usage","Utilisation"),t("How often each field is filled, fields never used and clean-up candidates.","Le remplissage de chaque champ, les champs jamais utilisés et ceux à nettoyer.")],[t("Capacity","Capacité"),t("The budget of 1,024 physical columns, what consumes it, and a calculator to plan new fields.","Le budget de 1 024 colonnes physiques, ce qui le consomme et un calculateur pour prévoir de nouveaux champs.")]],analysedAt:m=>t("analysed at ","analysé à ")+m.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit"}),recordsBadge:m=>t(`${s(m)} records`,`${s(m)} enregistrements`),switchHint:m=>t(`${m} selected · click Analyse to switch`,`${m} sélectionné · cliquez sur Analyser pour changer`),publishedOnly:t("Only published metadata could be read: unpublished changes are not included.","Seules les métadonnées publiées ont pu être lues : les modifications non publiées ne sont pas incluses."),overview:t("Overview","Vue d'ensemble"),fields:t("Fields","Champs"),usage:t("Data usage","Utilisation"),capacity:t("Capacity","Capacité"),unusedBadge:m=>t(`${s(m)} unused`,`${s(m)} inutilisés`),notRun:t("not run","non analysé"),openList:t("open the list","ouvrir la liste"),customFields:t("Custom fields","Champs personnalisés"),ofFields:m=>t(`${l(m)} of fields`,`${l(m)} des champs`),unmanagedFields:t("Unmanaged fields","Champs non gérés"),managedCount:m=>t(`${s(m)} managed`,`${s(m)} gérés`),capacityUsed:t("Column capacity used","Capacité utilisée"),columnsLeft:m=>t(`${s(m)} columns left`,`${s(m)} colonnes restantes`),fieldTypes:t("Field types","Types de champs"),typesHint:m=>t(`${m} types · click a bar to list them`,`${m} types · cliquez pour les lister`),origin:t("Origin","Origine"),originHint:t("standard / custom, managed / unmanaged","standard / personnalisé, géré / non géré"),fieldSettings:t("Field settings","Paramètres des champs"),settingsHint:t("% of fields","% des champs"),publishers:t("Publishers","Éditeurs"),publishersHint:t("custom fields by prefix","champs personnalisés par préfixe"),timeline:t("Fields created over time","Champs créés dans le temps"),granularity:m=>m?t("per month","par mois"):t("per year","par an"),timelineHint:t("click a column to list the fields","cliquez sur une colonne pour lister les champs"),custom:t("Custom","Personnalisé"),standard:"Standard",noField:t("No field.","Aucun champ."),noCustom:t("No custom field on this entity.","Aucun champ personnalisé sur cette entité."),noDate:t("No creation date available for these fields.","Aucune date de création disponible pour ces champs."),all:t("All","Tous"),unmanaged:t("Unmanaged","Non gérés"),required:t("Required","Obligatoires"),neverUsed:t("Never used","Jamais utilisés"),allTypes:t("All types","Tous les types"),fieldType:t("Field type","Type de champ"),searchField:t("Search a field","Rechercher un champ"),allColumns:t("All metadata columns","Toutes les métadonnées"),fieldsCount:(m,y)=>m===y?t(`${s(y)} fields`,`${s(y)} champs`):t(`${s(m)} of ${s(y)} fields`,`${s(m)} champs sur ${s(y)}`),fieldsNone:t("No field matches these filters. Remove a filter above to see more fields.","Aucun champ ne correspond à ces filtres. Retirez un filtre pour en voir plus."),removeFilter:t("Remove this filter","Retirer ce filtre"),drill:{type:t("Type","Type"),origin:t("Origin","Origine"),prefix:t("Prefix","Préfixe"),created:t("Created","Créés"),fill:t("Fill rate","Remplissage"),field:t("Field","Champ")},columns:{displayName:t("Display Name","Nom d'affichage"),schemaName:t("Schema Name","Nom technique"),percent:t("Percentage Of Use","Pourcentage d'utilisation"),filled:t("Filled Records","Enregistrements remplis"),type:"Type",description:"Description",target:t("Target","Cible"),managed:t("Managed/Unmanaged","Géré/Non géré"),custom:t("IsCustom","Personnalisé"),auditable:t("IsAuditable","Auditable"),searchable:t("IsSearchable","Recherchable"),required:t("Required Level","Niveau requis"),version:t("Introduced Version","Version d'introduction"),created:t("CreatedOn","Créé le"),modified:t("ModifiedOn","Modifié le")},managedValue:m=>m?t("Managed","Géré"):t("Unmanaged","Non géré"),recordsAnalysed:t("Records analysed","Enregistrements analysés"),recordsRead:t("records read","enregistrements lus"),neverUsedFields:t("Never used fields","Champs jamais utilisés"),rarelyUsed:t(`Rarely used (< ${on}%)`,`Peu utilisés (< ${on} %)`),rarelyCaption:t(`filled in < ${on}% of records`,`remplis dans < ${on} %`),averageFill:t("Average fill rate","Remplissage moyen"),perField:t("per field","par champ"),distribution:t("Fill rate distribution","Répartition du remplissage"),distributionHint:t("number of fields per fill rate","nombre de champs par taux"),fillByType:t("Fill rate by type","Remplissage par type"),fillByTypeHint:t("average % of records filled","% moyen d'enregistrements remplis"),leastUsed:t("Least used custom fields","Champs personnalisés les moins utilisés"),leastUsedHint:t("lowest fill rates: clean-up candidates","plus faibles taux : candidats au nettoyage"),visibility:t("Only what your account can read is counted: records you cannot see are left out, and secured fields you cannot read look empty. Check before deleting a field.","Seul ce que votre compte peut lire est compté : les enregistrements invisibles sont exclus et les champs sécurisés illisibles paraissent vides. Vérifiez avant de supprimer un champ."),noRecords:t("No record could be read: fill rates can't be computed.","Aucun enregistrement n'a pu être lu : les taux de remplissage ne peuvent pas être calculés."),usageEmpty:t("Data usage was not analysed","L'utilisation des données n'a pas été analysée"),usageEmptyText:t("This analysis read the metadata only. Run it again with data usage to measure how often each field is filled and find fields that are never used. It reads every record of the entity, so it can take a while on large tables.","Cette analyse n'a lu que les métadonnées. Relancez-la avec l'utilisation des données pour mesurer le remplissage de chaque champ et trouver ceux jamais utilisés. Tous les enregistrements de l'entité sont lus : cela peut être long sur les grosses tables."),rerun:t("Analyse with data usage","Analyser avec l'utilisation des données"),budget:t("Column budget","Budget de colonnes"),budgetHint:t("estimate of the physical columns consumed","estimation des colonnes physiques consommées"),budgetHeadline:(m,y)=>t(`${s(m)} of ${s(nt)} columns used (${l(m*100/nt)}) · ${s(y)} available`,`${s(m)} colonnes utilisées sur ${s(nt)} (${l(m*100/nt)}) · ${s(y)} disponibles`),weightNames:{3:t("Lookups (×3)","Recherches (×3)"),2:t("Option set, money, boolean, status (×2)","Groupe d'options, devise, booléen, statut (×2)"),1:t("Other types (×1)","Autres types (×1)")},planned:t("Planned","Prévu"),availableLabel:t("Available","Disponible"),planTitle:t("Plan new fields","Prévoir de nouveaux champs"),planHint:t("the budget above updates live","le budget ci-dessus suit en direct"),rule:t("Each lookup uses 3 physical columns, each option set, money, boolean or status field uses 2, any other type uses 1. An entity is limited to 1,024 columns.","Chaque recherche utilise 3 colonnes physiques, chaque groupe d'options, devise, booléen ou statut en utilise 2, tout autre type 1. Une entité est limitée à 1 024 colonnes."),planInputs:[t("Lookups","Recherches"),t("Option set, Money, Boolean, Status","Groupe d'options, Devise, Booléen, Statut"),t("Other types","Autres types")],planEmpty:t("Enter the number of fields you plan to create.","Saisissez le nombre de champs à créer."),planFits:(m,y)=>t(`It fits: ${s(m)} columns needed, ${s(y)} left afterwards.`,`Ça passe : ${s(m)} colonnes nécessaires, ${s(y)} restantes ensuite.`),planTooBig:(m,y)=>t(`It doesn't fit: ${s(m)} columns needed, only ${s(y)} available.`,`Ça ne passe pas : ${s(m)} colonnes nécessaires, ${s(y)} disponibles seulement.`),cost:t("What consumes the budget","Ce qui consomme le budget"),costHint:t("columns consumed per field type (fields × weight)","colonnes par type de champ (champs × poids)"),loadingEntities:t("Retrieving entities…","Lecture des entités…"),analysing:m=>t(`Analysing ${m}…`,`Analyse de ${m}…`),readingMetadata:t("Retrieving the metadata…","Lecture des métadonnées…"),readingRecords:m=>t(`Reading the records… ${s(m)} read`,`Lecture des enregistrements… ${s(m)} lus`),exporting:t("Building the Excel report…","Création du rapport Excel…"),stop:t("Stop","Arrêter"),stopped:t("Stopped. No partial result was kept.","Arrêté. Aucun résultat partiel n'a été conservé."),errorTitle:t("Something went wrong","Une erreur est survenue"),noConnectionTitle:t("No connection","Aucune connexion"),noConnection:t("Connect the tool to a Dataverse environment first.","Connectez d'abord l'outil à un environnement Dataverse."),exportedTitle:t("Export completed","Export terminé"),exported:m=>t(`The report was saved to:
35
+ ${m}`,`Le rapport a été enregistré ici :
36
+ ${m}`),helpTitle:t("How to use Entity Fields Analyzer","Comment utiliser Entity Fields Analyzer"),helpSteps:[t("Click Get Entities. Nothing is read before that.","Cliquez sur Charger les entités. Rien n'est lu avant."),t("Click an entity (double-click analyses it right away). The search works on the display and schema names.","Cliquez sur une entité (un double-clic lance l'analyse). La recherche porte sur le nom affiché et technique."),t("Choose the mode: Metadata only, or Metadata + Data usage, which reads every record. Stop or Esc interrupts it.","Choisissez le mode : Métadonnées seules, ou Métadonnées + Utilisation des données, qui lit tous les enregistrements. Arrêter ou Échap l'interrompt."),t("Click Analyse, then browse Overview, Fields, Data usage and Capacity.","Cliquez sur Analyser, puis parcourez Vue d'ensemble, Champs, Utilisation et Capacité."),t("Click any bar, slice or tile to open the matching fields. The blue chip shows the active filter: click its × to remove it.","Cliquez sur une barre, une part ou une tuile pour ouvrir les champs correspondants. La pastille bleue montre le filtre actif : cliquez sur × pour le retirer."),t("Highlighted rows are empty in every record your account can read.","Les lignes surlignées sont vides dans tous les enregistrements lisibles par votre compte."),t("Export to Excel saves the full report, with dashboard and recommendations.","Exporter vers Excel enregistre le rapport complet, avec tableau de bord et recommandations.")],readOnly:t("The tool is read-only: it never changes your environment.","L'outil est en lecture seule : il ne modifie jamais votre environnement."),xl:{metadata:t("_MetaData","_Métadonnées"),dashboard:t("Dashboard","Tableau de bord"),summary:t("Summary","Synthèse"),recommendations:t("Recommendations","Recommandations"),usage:t("Data Usage","Utilisation"),byType:t("By Type","Par type"),byPublisher:t("By Publisher","Par éditeur"),lookups:t("Lookups","Recherches"),timeline:t("Timeline","Chronologie"),entityName:t("Entity Display Name","Nom d'affichage de l'entité"),entitySchema:t("Entity Technical Name","Nom technique de l'entité"),createdOn:t("Created on","Créée le"),numberFields:t("Number Of Fields","Nombre de champs"),numberRecords:t("Number Of Records","Nombre d'enregistrements"),notAnalysed:t("Not analysed (metadata only)","Non analysé (métadonnées seules)"),columnsUsed:t("Estimated Columns Used","Colonnes utilisées (estimation)"),volume:t("Entity Fields Volume Usage","Capacité de champs utilisée"),mode:t("Analysis Mode","Mode d'analyse"),exportedOn:t("Exported On","Exporté le"),environment:t("Environment","Environnement"),summaryTitle:t("Analysis summary","Synthèse de l'analyse"),table:"Table",standardFields:t("Standard fields","Champs standards"),ofWhichManaged:t(" of which managed"," dont gérés"),ofWhichUnmanaged:t(" of which unmanaged"," dont non gérés"),prefixes:t("Publisher prefixes","Préfixes d'éditeurs"),lookupCount:t("Lookups (lookup, owner, customer)","Recherches (recherche, propriétaire, client)"),columnsAvailable:t("Columns available","Colonnes disponibles"),ruleLabel:t("Rule","Règle"),findings:t("Findings (details in Recommendations)","Constats (détails dans Recommandations)"),recommendationsHint:t("Rule-based findings, sorted by severity. Filter on severity or category, and double-check every field before deleting it.","Constats triés par sévérité. Filtrez par sévérité ou catégorie et vérifiez chaque champ avant de le supprimer."),severity:t("Severity","Sévérité"),category:t("Category","Catégorie"),issue:t("Issue","Constat"),recommendation:t("Recommendation","Recommandation"),tableRow:"(table)",band:t("Fill rate band","Tranche de remplissage"),share:t("Share of fields","Part des champs"),fillRate:t("Fill rate","Taux de remplissage"),emptyRecords:t("Empty records","Enregistrements vides"),usageBand:t("Usage band","Niveau d'utilisation"),bands:[t("Never used","Jamais utilisé"),t("Rarely used (< 5%)","Peu utilisé (< 5 %)"),t("Partially used (5-50%)","Partiellement utilisé (5-50 %)"),t("Mostly used (50-90%)","Souvent utilisé (50-90 %)"),t("Always used (>= 90%)","Toujours utilisé (>= 90 %)")],weight:t("Column weight","Poids en colonnes"),columns:t("Columns used","Colonnes utilisées"),capacityShare:t("Share of capacity","Part de la capacité"),prefix:t("Prefix","Préfixe"),noPrefix:t("(no prefix)","(sans préfixe)"),managed:t("Managed","Gérés"),firstCreated:t("First created","Première création"),lastCreated:t("Last created","Dernière création"),period:t("Period","Période"),total:"Total",cumulative:t("Cumulative total","Total cumulé"),nothing:t("Nothing to report.","Rien à signaler."),chartData:t("Chart data","Données des graphiques")}}}const zC={},Im=e=>zC[e]??=BC(e==="fr"),Dm=S.createContext(Im("en")),Dr=()=>S.useContext(Dm);function EC(e){const t=Dr(),{message:n}=e;return C.jsx(Bc,{open:!!n,onOpenChange:(i,s)=>!s.open&&e.onClose(),children:C.jsx(Pc,{className:"efa-dialog",children:C.jsxs(Tc,{children:[C.jsx(Fc,{className:`efa-dialog-${n?.intent??"success"}`,children:C.jsxs("span",{className:"efa-dialog-title",children:[C.jsx(Oa,{className:"efa-logo"}),n?.title]})}),C.jsx(Rc,{children:C.jsx("div",{className:"efa-message",children:n?.text})}),C.jsx(Ec,{children:C.jsx(cr,{appearance:"primary",onClick:e.onClose,children:t.ok})})]})})})}function TC(e){const t=Dr();return C.jsx(Bc,{open:e.open,onOpenChange:(n,i)=>!i.open&&e.onClose(),children:C.jsx(Pc,{className:"efa-dialog",children:C.jsxs(Tc,{children:[C.jsx(Fc,{children:C.jsxs("span",{className:"efa-dialog-title",children:[C.jsx(Oa,{className:"efa-logo"}),t.helpTitle]})}),C.jsxs(Rc,{children:[C.jsx("ol",{className:"efa-help",children:t.helpSteps.map((n,i)=>C.jsx("li",{children:n},i))}),C.jsx("p",{className:"efa-note",children:t.readOnly})]}),C.jsx(Ec,{children:C.jsx(cr,{appearance:"primary",onClick:e.onClose,children:t.close})})]})})})}async function La(e){return await window.dataverseAPI.queryData(e)}function Dc(e){if(e instanceof Error)return e.message;if(typeof e=="string")return e;const t=e?.message??e?.error?.message;return typeof t=="string"?t:String(e)}const Ac=e=>/exceeds the maximum size/i.test(Dc(e));class Oc extends Error{constructor(){super("Stopped"),this.name="StoppedError"}}function Ha(e,t){return new Promise((n,i)=>{const s=()=>i(new Oc);t.aborted?s():t.addEventListener("abort",s,{once:!0}),e.then(n,i).finally(()=>t.removeEventListener("abort",s))})}function FC(e){const t=e?.match(/\spagingcookie="([^"]*)"/i)?.[1];return t?decodeURIComponent(decodeURIComponent(t)):void 0}const qc=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),Lc=e=>e?.UserLocalizedLabel?.Label??"",Hc=e=>{const t=typeof e=="string"?e.substring(0,10):"";return t>"1900-01-01"?t:null};async function PC(e){return((await Ha(La("EntityDefinitions?$select=LogicalName,DisplayName,EntitySetName,PrimaryIdAttribute,CreatedOn,IsCustomEntity,IsManaged"),e)).value??[]).map(i=>({logicalName:i.LogicalName,displayName:Lc(i.DisplayName),entitySetName:i.EntitySetName??"",primaryId:i.PrimaryIdAttribute??"",createdOn:Hc(i.CreatedOn),isCustom:i.IsCustomEntity===!0,isManaged:i.IsManaged===!0})).sort((i,s)=>i.logicalName.localeCompare(s.logicalName,"en"))}function RC(e,t){return t==="custom"?e.isCustom:t==="standard"?!e.isCustom:t==="system"?e.isManaged:!0}const jC=e=>!e.AttributeOf&&!!e.AttributeType&&e.AttributeType!=="Virtual"&&e.AttributeType!=="PartyList"&&e.IsValidForRead===!0&&!e.LogicalName.includes("composite");function MC(e){const t={};for(const n of jc){const i=e[n]!==null&&typeof e[n]=="object"?e[n].Value:e[n];t[n]=i??null}return{name:e.LogicalName,displayName:Lc(e.DisplayName),description:Lc(e.Description),type:e.AttributeType,target:(e.Targets??[]).join(", "),managed:e.IsManaged===!0,custom:e.IsCustomAttribute===!0,auditable:e.IsAuditEnabled?.Value===!0,searchable:e.IsValidForAdvancedFind?.Value===!0,requiredLevel:e.RequiredLevel?.Value??"None",secured:e.IsSecured===!0,key:e.IsPrimaryId===!0||e.IsPrimaryName===!0,deprecatedVersion:e.DeprecatedVersion??"",introducedVersion:e.IntroducedVersion??"",createdOn:Hc(e.CreatedOn),modifiedOn:Hc(e.ModifiedOn),extra:t,filled:0,usage:0}}async function IC(e,t){const n=e.replace(/'/g,"''");let i,s=!0;try{const c=`RetrieveEntity(EntityFilters=@p1,LogicalName=@p2,MetadataId=@p3,RetrieveAsIfPublished=@p4)?@p1=Microsoft.Dynamics.CRM.EntityFilters'Attributes'&@p2='${n}'&@p3=00000000-0000-0000-0000-000000000000&@p4=true`;if(i=(await Ha(La(c),t)).EntityMetadata?.Attributes,!Array.isArray(i))throw new Error("RetrieveEntity returned no attribute.")}catch(c){if(c instanceof Oc||Ac(c))throw c;console.warn("Entity Fields Analyzer: RetrieveEntity failed, reading the published metadata",c),i=(await Ha(La(`EntityDefinitions(LogicalName='${n}')/Attributes`),t)).value??[],s=!1}return{fields:i.filter(jC).map(MC).sort((c,d)=>c.name<d.name?-1:1),includesUnpublished:s}}function Jt(e){return C.jsxs("section",{className:`efa-card ${e.className??""}`,children:[C.jsxs("header",{className:"efa-card-header",children:[C.jsx("h2",{children:e.title}),e.subtitle&&C.jsx("p",{children:e.subtitle})]}),C.jsx("div",{className:"efa-card-body",children:e.children})]})}function an(e){const t={"--tint":e.tint??"var(--efa-accent)"},n=C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"efa-stat-icon",children:e.icon}),C.jsxs("span",{className:"efa-stat-text",children:[C.jsx("span",{className:"efa-stat-title",children:e.title}),C.jsxs("span",{className:"efa-stat-line",children:[C.jsx("span",{className:"efa-stat-value",children:e.value}),C.jsx("span",{className:"efa-stat-caption",children:e.caption})]}),e.progress!==void 0&&C.jsx("span",{className:"efa-progress",children:C.jsx("span",{style:{width:`${Math.min(1,e.progress)*100}%`}})})]})]});return e.onClick?C.jsx("button",{type:"button",className:"efa-stat",style:t,onClick:e.onClick,children:n}):C.jsx("div",{className:"efa-stat",style:t,children:n})}function In(e){return C.jsxs("div",{className:"efa-empty",children:[e.title&&C.jsx("span",{className:"efa-empty-title",children:e.title}),C.jsx("span",{children:e.text}),e.children]})}function DC(e){const t=Dr(),{entities:n,selected:i,filter:s}=e,[l,c]=S.useState(""),d=S.useMemo(()=>{const f=l.trim().toLowerCase();return(n??[]).filter(h=>RC(h,s)&&(!f||h.logicalName.includes(f)||h.displayName.toLowerCase().includes(f)))},[n,s,l]);return C.jsxs(Jt,{className:"efa-entities",title:t.entities,subtitle:n?`${t.N(d.length)} · ${t.entitiesHint}`:void 0,children:[C.jsx(Sc,{"aria-label":t.entityFilter,value:s,onChange:(f,h)=>e.onFilter(h.value),children:Object.keys(t.filters).map(f=>C.jsx("option",{value:f,children:t.filters[f]},f))}),C.jsx(Ia,{"aria-label":t.searchEntity,placeholder:t.searchEntity,contentBefore:C.jsx(Gp,{}),value:l,disabled:!n,onChange:(f,h)=>c(h.value)}),C.jsxs("div",{className:"efa-entity-list",role:"listbox","aria-label":t.entities,children:[d.map(f=>{const h=i?.logicalName===f.logicalName;return C.jsxs("button",{type:"button",role:"option","aria-selected":h,className:h?"efa-entity efa-entity-selected":"efa-entity",onClick:()=>e.onSelect(f),onDoubleClick:()=>e.onAnalyse(f),children:[C.jsx("span",{className:"efa-radio"}),C.jsxs("span",{className:"efa-entity-text",children:[C.jsx("span",{className:"efa-entity-name",children:f.displayName||f.logicalName}),C.jsx("span",{className:"efa-entity-schema",children:f.logicalName})]})]},f.logicalName)}),!d.length&&C.jsx(In,{text:n?t.entitiesNone:t.entitiesEmpty})]}),i&&C.jsxs("div",{className:"efa-run",children:[C.jsxs(bm,{"aria-label":t.analysisMode,value:e.mode,onChange:(f,h)=>e.onMode(h.value),children:[C.jsx(wc,{value:"metadata",label:t.modes.metadata}),C.jsx(wc,{value:"usage",label:t.modes.usage})]}),e.mode==="usage"&&C.jsx("p",{className:"efa-run-warning",children:t.usageWarning}),C.jsx(cr,{appearance:"primary",className:"efa-analyse",icon:C.jsx(zw,{}),disabled:e.busy,onClick:()=>e.onAnalyse(i),children:t.analyse(i.displayName||i.logicalName)})]})]})}const $a={chip:"all",type:"",search:""},AC={all:()=>!0,custom:e=>e.custom,unmanaged:e=>!e.managed,required:e=>e.requiredLevel!=="None",never:e=>e.usage<=0};function OC({kind:e,key:t},n){return e==="setting"?n.label(t):e==="rarely"?n.rarelyUsed:e==="created"?`${n.drill.created}: ${n.period(t)}`:`${n.drill[e]}: ${n.label(t)}`}function qC(e,t,n){const i=e.columns,s=c=>c?e.yes:e.no,l=[{id:"displayName",header:i.displayName,get:c=>c.displayName||"N/A"},{id:"name",header:i.schemaName,get:c=>c.name}];if(t&&l.push({id:"usage",header:i.percent,get:c=>c.usage,show:c=>e.P(c.usage,2)}),l.push({id:"type",header:i.type,get:c=>c.type},{id:"description",header:i.description,get:c=>c.description},{id:"target",header:i.target,get:c=>c.target},{id:"managed",header:i.managed,get:c=>e.managedValue(c.managed)},{id:"custom",header:i.custom,get:c=>c.custom,show:c=>s(c.custom)},{id:"auditable",header:i.auditable,get:c=>c.auditable,show:c=>s(c.auditable)},{id:"searchable",header:i.searchable,get:c=>c.searchable,show:c=>s(c.searchable)},{id:"required",header:i.required,get:c=>c.requiredLevel},{id:"version",header:i.version,get:c=>c.introducedVersion},{id:"created",header:i.created,get:c=>c.createdOn},{id:"modified",header:i.modified,get:c=>c.modifiedOn}),n)for(const c of jc){const d=f=>{const h=f.extra[c];return typeof h=="boolean"?s(h):String(h??"")};l.push({id:c,header:c,get:f=>f.extra[c],show:d})}return l}function LC(e,t){return e===t?0:e===null?-1:t===null?1:typeof e=="string"&&typeof t=="string"?e.localeCompare(t):Number(e)-Number(t)}function HC(e){const t=Dr(),{fields:n,withUsage:i,filters:s,allColumns:l,onFilters:c}=e,[d,f]=S.useState({id:"name",descending:!1}),h=S.useMemo(()=>qC(t,i,l),[t,i,l]),g=S.useMemo(()=>[...new Set(n.map(m=>m.type))].sort(),[n]),b=S.useMemo(()=>{const m=s.search.trim().toLowerCase(),y=n.filter(_=>AC[s.chip](_)&&(!s.drill||s.drill.test(_))&&(!s.type||_.type===s.type)&&(!m||_.name.includes(m)||_.displayName.toLowerCase().includes(m))),w=h.find(_=>_.id===d.id);return w&&y.sort((_,N)=>LC(w.get(_),w.get(N))*(d.descending?-1:1)),y},[n,s,h,d]),x=[["all",t.all],["custom",t.customFields],["unmanaged",t.unmanaged],["required",t.required]];return i&&x.push(["never",t.neverUsed]),C.jsxs("section",{className:"efa-card efa-fields",children:[C.jsxs("div",{className:"efa-chips",children:[x.map(([m,y])=>C.jsx("button",{type:"button",className:"efa-chip","aria-pressed":s.chip===m,onClick:()=>c({...s,chip:m}),children:y},m)),s.drill&&C.jsxs("span",{className:"efa-drill",children:[OC(s.drill,t),C.jsx("button",{type:"button","aria-label":t.removeFilter,title:t.removeFilter,onClick:()=>c({...s,drill:void 0}),children:C.jsx(Aw,{})})]})]}),C.jsxs("div",{className:"efa-toolbar",children:[C.jsxs(Sc,{"aria-label":t.fieldType,value:s.type,onChange:(m,y)=>c({...s,type:y.value}),children:[C.jsx("option",{value:"",children:t.allTypes}),g.map(m=>C.jsx("option",{value:m,children:m},m))]}),C.jsx(Ia,{"aria-label":t.searchField,placeholder:t.searchField,contentBefore:C.jsx(Gp,{}),value:s.search,onChange:(m,y)=>c({...s,search:y.value})}),C.jsx(em,{label:t.allColumns,checked:l,onChange:(m,y)=>e.onAllColumns(y.checked===!0)}),C.jsx("span",{className:"efa-result",children:t.fieldsCount(b.length,n.length)})]}),b.length?C.jsx("div",{className:"efa-grid-wrapper",children:C.jsxs("table",{className:"efa-grid",children:[C.jsx("thead",{children:C.jsx("tr",{children:h.map(m=>{const y=d.id===m.id;return C.jsx("th",{"aria-sort":y?d.descending?"descending":"ascending":void 0,children:C.jsxs("button",{type:"button",onClick:()=>f({id:m.id,descending:y&&!d.descending}),children:[m.header,y&&(d.descending?" ↓":" ↑")]})},m.id)})})}),C.jsx("tbody",{children:b.map(m=>C.jsx("tr",{className:i&&m.usage<=0?"efa-unused":void 0,children:h.map(y=>{const w=y.show?y.show(m):String(y.get(m)??"");return C.jsx("td",{title:w,children:w},y.id)})},m.name))})]})}):C.jsx(In,{text:t.fieldsNone})]})}const $C="https://www.linkedin.com/in/hamza-amraoui/";async function VC(e){try{window.open(e,"_blank","noopener")||await window.toolboxAPI.utils.openInConnectionBrowser(e)}catch(t){console.error(`Entity Fields Analyzer: unable to open ${e}`,t)}}function UC(e){const t=Dr();return C.jsxs("header",{className:"efa-header",children:[C.jsxs("div",{className:"efa-brand",children:[C.jsx(Oa,{className:"efa-logo"}),C.jsxs("div",{children:[C.jsx("div",{className:"efa-title",children:Mm}),C.jsx("div",{className:"efa-subtitle",children:t.appSubtitle})]})]}),C.jsxs("div",{className:"efa-header-tools",children:[C.jsx("span",{className:e.connectionName?"efa-connection efa-connection-on":"efa-connection",children:e.connectionName?`● ${t.connectedTo(e.connectionName)}`:`○ ${t.notConnected}`}),C.jsx(pc,{content:t.getEntitiesTip,relationship:"description",children:C.jsx(cr,{appearance:"primary",className:"efa-load",icon:C.jsx(kw,{}),onClick:e.onLoad,disabled:e.busy,children:t.getEntities})}),e.canExport&&C.jsx(cr,{appearance:"transparent",className:"efa-header-button",icon:C.jsx(Pw,{}),onClick:e.onExport,disabled:e.busy,children:t.exportExcel}),C.jsxs(sm,{checkedValues:{language:[e.language]},onCheckedValueChange:(n,i)=>e.onLanguage(i.checkedItems[0]),children:[C.jsx(yc,{disableButtonEnhancement:!0,children:C.jsx(cr,{appearance:"transparent",className:"efa-header-button",icon:C.jsx(Nw,{}),title:t.languageMenu,children:e.language==="fr"?"Français":"English"})}),C.jsx(vm,{children:C.jsxs(hm,{children:[C.jsx(bc,{name:"language",value:"en",children:"English"}),C.jsx(bc,{name:"language",value:"fr",children:"Français"})]})})]}),C.jsx(cr,{appearance:"transparent",className:"efa-header-button",icon:C.jsx(Ow,{}),onClick:e.onHelp,children:t.help}),C.jsx(cr,{appearance:"transparent",className:"efa-header-button",icon:C.jsx(Cw,{}),title:t.authorTip,onClick:()=>VC($C),children:NC})]})]})}function Va(){const[e,t]=S.useState(null),n=s=>({"aria-label":s,onMouseMove:l=>t({text:s,x:l.clientX,y:l.clientY}),onMouseLeave:()=>t(null),onFocus:l=>{const c=l.currentTarget.getBoundingClientRect();t({text:s,x:c.left+c.width/2,y:c.top+c.height/2})},onBlur:()=>t(null)}),i=e&&Pa.createPortal(C.jsx("div",{className:"efa-tip",role:"tooltip",style:{left:Math.max(8,Math.min(e.x+12,window.innerWidth-272)),top:Math.min(e.y+14,window.innerHeight-48)},children:e.text}),document.body);return{bind:n,node:i}}function fo(e){const{points:t,label:n,format:i,color:s="var(--efa-blue)"}=e,{bind:l,node:c}=Va();if(!t.length)return C.jsx(In,{text:e.empty});const d=e.max??Math.max(...t.map(f=>f.value));return C.jsxs("div",{className:"efa-bars",children:[t.map(f=>C.jsxs("button",{type:"button",className:"efa-bar",onClick:()=>e.onSelect(f),...l(`${n(f)}: ${i(f.value)}`),children:[C.jsx("span",{className:"efa-bar-label",children:n(f)}),C.jsxs("span",{className:"efa-bar-track",children:[C.jsx("span",{className:"efa-bar-fill",style:{width:`${d>0?f.value/d*100:0}%`,background:e.colorOf?.(f)??s}}),C.jsx("span",{className:"efa-bar-value",children:i(f.value)})]})]},f.key)),c]})}function Am(e){const{points:t,series:n,label:i,format:s}=e,{bind:l,node:c}=Va();if(!t.length)return C.jsx(In,{text:e.empty});const d=t.map(g=>n.reduce((b,x)=>b+x.value(g),0)),f=Math.max(1,...d),h=Math.ceil(t.length/14);return C.jsxs("div",{className:"efa-columns-chart",children:[n.length>1&&C.jsx("div",{className:"efa-legend efa-legend-top",children:n.map(g=>C.jsxs("span",{children:[C.jsx("i",{style:{background:g.color}}),g.name]},g.name))}),C.jsx("div",{className:"efa-columns",children:t.map((g,b)=>{const x=n.length>1?n.map(m=>`${m.name} ${s(m.value(g))}`).join(" · "):s(d[b]);return C.jsxs("button",{type:"button",className:"efa-column",onClick:()=>e.onSelect(g),...l(`${i(g)}: ${x}`),children:[C.jsxs("span",{className:"efa-column-plot",children:[C.jsx("span",{className:"efa-column-value",children:t.length<=14&&d[b]>0?s(d[b]):""}),C.jsx("span",{className:"efa-column-stack",style:{height:`${d[b]/f*85}%`},children:n.map(m=>m.value(g)>0&&C.jsx("span",{style:{flexGrow:m.value(g),background:e.colors?.[b]??m.color}},m.name))})]}),C.jsx("span",{className:"efa-column-label",children:b%h===0?i(g):""})]},g.key)})}),c]})}function WC(e){const{label:t,format:n}=e,{bind:i,node:s}=Va(),l=e.points.filter(h=>h.value>0);if(!l.length)return C.jsx(In,{text:e.empty});const c=l.reduce((h,g)=>h+g.value,0);let d=0;const f=l.map(h=>{const g=h.value/c*100,b={point:h,share:g,start:d};return d+=g,b});return C.jsxs("div",{className:"efa-doughnut",children:[C.jsxs("svg",{viewBox:"0 0 42 42","aria-hidden":"true",children:[f.map(({point:h,share:g,start:b})=>C.jsx("circle",{className:"efa-slice",cx:"21",cy:"21",r:"15.9155",pathLength:100,stroke:e.colors[h.key],strokeDasharray:`${l.length>1?Math.max(.2,g-.7):100} 100`,strokeDashoffset:-b,transform:"rotate(-90 21 21)",onClick:()=>e.onSelect(h),...i(`${t(h)}: ${n(h.value)}`)},h.key)),C.jsx("text",{x:"21",y:"21.5",className:"efa-doughnut-total",children:n(c)}),C.jsx("text",{x:"21",y:"26",className:"efa-doughnut-caption",children:e.caption})]}),C.jsx("div",{className:"efa-doughnut-legend",children:l.map(h=>C.jsxs("button",{type:"button",onClick:()=>e.onSelect(h),...i(`${t(h)}: ${n(h.value)}`),children:[C.jsx("i",{style:{background:e.colors[h.key]}}),C.jsx("span",{children:t(h)}),C.jsx("b",{children:n(h.value)})]},h.key))}),s]})}function GC(e){const{segments:t,limit:n,format:i}=e,{bind:s,node:l}=Va(),c=Math.max(n,t.reduce((d,f)=>d+f.value,0));return C.jsxs("div",{className:"efa-budget",children:[C.jsxs("div",{className:"efa-budget-bar",children:[t.map(d=>d.value>0&&C.jsx("span",{tabIndex:0,role:"img",className:d.planned?"efa-budget-planned":void 0,style:{width:`${d.value/c*100}%`,"--segment":d.color},...s(`${d.name}: ${i(d.value)}`)},d.key)),c>n&&C.jsx("em",{className:"efa-budget-limit",style:{left:`${n/c*100}%`}})]}),C.jsxs("div",{className:"efa-budget-scale",children:[C.jsx("span",{children:"0"}),C.jsx("span",{children:i(c)})]}),C.jsx("div",{className:"efa-legend",children:t.map(d=>(!d.planned||d.value>0)&&C.jsxs("span",{children:[C.jsx("i",{className:d.planned?"efa-budget-planned":void 0,style:{background:d.color,"--segment":d.color}}),d.name," ",C.jsx("b",{children:i(d.value)})]},d.key))}),l]})}function $c(e){return t=>n=>e("all",{kind:t,key:n.key,test:n.test})}const KC=e=>e>=.9?"var(--efa-danger)":e>=.75?"var(--efa-warning)":"var(--efa-accent)";function XC({insights:e,openFields:t,openCapacity:n}){const i=Dr(),s=$c(t),l=d=>i.label(d.key),c=e.used/nt;return C.jsxs("div",{className:"efa-page",children:[C.jsxs("div",{className:"efa-tiles",children:[C.jsx(an,{title:i.fields,value:i.N(e.total),caption:i.openList,icon:C.jsx(Rw,{}),onClick:()=>t("all")}),C.jsx(an,{title:i.customFields,value:i.N(e.customCount),caption:i.ofFields(e.total?e.customCount*100/e.total:0),icon:C.jsx(Tw,{}),onClick:()=>t("custom")}),C.jsx(an,{title:i.unmanagedFields,value:i.N(e.unmanagedCount),caption:i.managedCount(e.total-e.unmanagedCount),icon:C.jsx(Fw,{}),onClick:()=>t("unmanaged")}),C.jsx(an,{title:i.capacityUsed,value:i.P(c*100),caption:i.columnsLeft(e.available),icon:C.jsx(jw,{}),tint:KC(c),progress:c,onClick:n})]}),C.jsxs("div",{className:"efa-overview",children:[C.jsx(Jt,{title:i.fieldTypes,subtitle:i.typesHint(e.types.length),children:C.jsx(fo,{points:e.types,label:l,format:i.N,empty:i.noField,onSelect:s("type")})}),C.jsx(Jt,{title:i.origin,subtitle:i.originHint,children:C.jsx(WC,{points:e.origin,label:l,format:i.N,caption:i.fields.toLowerCase(),empty:i.noField,colors:{standard:"var(--efa-neutral)",customManaged:"var(--efa-blue)",customUnmanaged:"var(--efa-orange)",standardUnmanaged:"var(--efa-violet)"},onSelect:s("origin")})}),C.jsx(Jt,{title:i.fieldSettings,subtitle:i.settingsHint,children:C.jsx(fo,{points:e.settings,label:l,format:d=>i.P(d),max:100,color:"var(--efa-violet)",empty:i.noField,onSelect:s("setting")})}),C.jsx(Jt,{title:i.publishers,subtitle:i.publishersHint,children:C.jsx(fo,{points:e.publishers,label:l,format:i.N,color:"var(--efa-green)",empty:i.noCustom,onSelect:s("prefix")})}),C.jsx(Jt,{className:"efa-span-2",title:i.timeline,subtitle:e.timeline.length?`${i.granularity(e.byMonth)} · ${i.timelineHint}`:void 0,children:C.jsx(Am,{points:e.timeline,label:d=>i.period(d.key),format:i.N,empty:i.noDate,series:[{name:i.standard,color:"var(--efa-neutral)",value:d=>d.secondary??0},{name:i.custom,color:"var(--efa-blue)",value:d=>d.value}],onSelect:s("created")})})]})]})}const QC=e=>e.usage>0&&e.usage<on,YC=["var(--efa-danger)","var(--efa-orange)","var(--efa-amber)","var(--efa-sky)","var(--efa-blue)","var(--efa-deep)"];function JC({insights:e,analysis:t,openFields:n,rerun:i}){const s=Dr(),l=$c(n);if(!e.hasUsage)return C.jsx(In,{title:s.usageEmpty,text:s.usageEmptyText,children:C.jsx(cr,{appearance:"primary",onClick:i,children:s.rerun})});if(!t.records)return C.jsx(In,{title:s.usage,text:s.noRecords});const c=d=>d.key;return C.jsxs("div",{className:"efa-page",children:[C.jsxs("div",{className:"efa-tiles",children:[C.jsx(an,{title:s.recordsAnalysed,value:s.N(t.records),caption:s.recordsRead,icon:C.jsx(_w,{})}),C.jsx(an,{title:s.neverUsedFields,value:s.N(e.unused),caption:s.ofFields(e.total?e.unused*100/e.total:0),icon:C.jsx(Bw,{}),tint:e.unused?"var(--efa-danger)":"var(--efa-success)",onClick:()=>n("never")}),C.jsx(an,{title:s.rarelyUsed,value:s.N(e.low),caption:s.rarelyCaption,icon:C.jsx(Sw,{}),tint:"var(--efa-warning)",onClick:()=>n("all",{kind:"rarely",key:"",test:QC})}),C.jsx(an,{title:s.averageFill,value:s.P(e.average),caption:s.perField,icon:C.jsx(Iw,{}),progress:e.average/100})]}),C.jsx("p",{className:"efa-note",children:s.visibility}),C.jsxs("div",{className:"efa-usage",children:[C.jsx(Jt,{title:s.distribution,subtitle:s.distributionHint,children:C.jsx(Am,{points:e.distribution,label:c,format:s.N,empty:s.noField,colors:YC,series:[{name:s.fields,color:"var(--efa-blue)",value:d=>d.value}],onSelect:l("fill")})}),C.jsx(Jt,{title:s.fillByType,subtitle:s.fillByTypeHint,children:C.jsx(fo,{points:e.fillByType,label:c,format:d=>s.P(d,1),max:100,color:"var(--efa-green)",empty:s.noField,onSelect:l("type")})}),C.jsx(Jt,{className:"efa-span-2 efa-wide-labels",title:s.leastUsed,subtitle:s.leastUsedHint,children:C.jsx(fo,{points:e.leastUsed,label:c,format:d=>s.P(d,2),colorOf:d=>d.value<=0?"var(--efa-danger)":"var(--efa-orange)",empty:s.noCustom,onSelect:l("field")})})]})]})}const Vc=e=>Math.max(0,Number.parseInt(e,10)||0);function ZC({insights:e,openFields:t}){const n=Dr(),i=$c(t),[s,l]=S.useState(["0","0","0"]),c=_C(e.used,Vc(s[0]),Vc(s[1]),Vc(s[2])),d=[{key:"3",name:n.weightNames[3],value:e.weights[3],color:"var(--efa-blue)"},{key:"2",name:n.weightNames[2],value:e.weights[2],color:"var(--efa-green)"},{key:"1",name:n.weightNames[1],value:e.weights[1],color:"var(--efa-violet)"},{key:"planned",name:n.planned,value:c.needed,color:c.fits?"var(--efa-blue)":"var(--efa-danger)",planned:!0},{key:"available",name:n.availableLabel,value:Math.max(0,c.available-c.needed),color:"var(--efa-track)"}],f=c.needed?c.fits?"efa-plan-ok":"efa-plan-bad":"";return C.jsxs("div",{className:"efa-page efa-capacity",children:[C.jsxs(Jt,{title:n.budget,subtitle:n.budgetHint,children:[C.jsx("p",{className:"efa-headline",children:n.budgetHeadline(e.used,c.available)}),C.jsx(GC,{segments:d,limit:nt,format:n.N})]}),C.jsxs(Jt,{title:n.planTitle,subtitle:n.planHint,children:[C.jsx("p",{className:"efa-rule",children:n.rule}),C.jsx("div",{className:"efa-plan",children:n.planInputs.map((h,g)=>C.jsx(Zh,{label:h,children:C.jsx(Ia,{type:"number",min:0,value:s[g],onChange:(b,x)=>l(m=>m.map((y,w)=>w===g?x.value:y))})},g))}),C.jsx("p",{className:`efa-plan-result ${f}`,role:"status",children:c.needed?c.fits?`✓ ${n.planFits(c.needed,c.available-c.needed)}`:`✕ ${n.planTooBig(c.needed,c.available)}`:n.planEmpty})]}),C.jsx(Jt,{title:n.cost,subtitle:n.costHint,children:C.jsx(fo,{points:e.cost,label:h=>h.key,format:n.N,empty:n.noField,onSelect:i("type")})})]})}function eN(e){const t=Dr(),n=e.loaded?e.picked?2:1:0;return C.jsxs("div",{className:"efa-page efa-welcome",children:[C.jsx("h2",{children:t.guideTitle}),C.jsx("div",{className:"efa-steps",children:t.steps.map(([i,s],l)=>C.jsxs("div",{className:l===n?"efa-step efa-step-current":l<n?"efa-step efa-step-done":"efa-step",children:[C.jsxs("div",{className:"efa-step-head",children:[C.jsx("span",{className:"efa-step-number",children:l<n?C.jsx(Mw,{}):l+1}),C.jsx("span",{className:"efa-step-state",children:l<n?t.done:l===n?t.next:""})]}),C.jsx("h3",{children:i}),C.jsx("p",{children:s})]},l))}),C.jsx("h2",{children:t.featuresTitle}),C.jsx("div",{className:"efa-features",children:t.features.map(([i,s],l)=>C.jsxs("div",{className:"efa-step",children:[C.jsx("h3",{children:i}),C.jsx("p",{children:s})]},l))})]})}const Om="settings";function tN(){const[e,t]=S.useState(Rm),[n,i]=S.useState(!1),s=S.useRef(e);S.useEffect(()=>{let c=!1;return(async()=>{try{const d=await window.toolboxAPI.settings.get(Om);if(!c&&d&&typeof d=="object"){const f={...Rm,...d};s.current=f,t(f)}}catch(d){console.error("Entity Fields Analyzer: unable to load settings",d)}finally{c||i(!0)}})(),()=>{c=!0}},[]);const l=S.useCallback(c=>{const d={...s.current,...c};return s.current=d,t(d),window.toolboxAPI.settings.set(Om,d).catch(f=>console.error("Entity Fields Analyzer: unable to save settings",f)),d},[]);return{settings:e,settingsRef:s,loaded:n,updateSettings:l}}function rN(){const[e,t]=S.useState("light"),n=S.useCallback(async()=>{try{const i=await window.toolboxAPI.utils.getCurrentTheme();t(i==="dark"?"dark":"light")}catch(i){console.error("Entity Fields Analyzer: unable to read the theme",i)}},[]);return S.useEffect(()=>{n()},[n]),{theme:e,refreshTheme:n}}function nN(){const[e,t]=S.useState(null),n=S.useCallback(async()=>{try{const i=await window.toolboxAPI.connections.getActiveConnection();return t(i),i}catch(i){return console.error("Entity Fields Analyzer: unable to read the connection",i),null}},[]);return S.useEffect(()=>{n()},[n]),{connection:e,refreshConnection:n}}function oN(e){const t=S.useRef(e);t.current=e,S.useEffect(()=>{const n=(i,s)=>t.current(s.event,s.data);return window.toolboxAPI.events.on(n),()=>{try{window.toolboxAPI.events.off(n)}catch{}}},[])}function iN(e,t){const[n,i]=S.useState(null),[,s]=S.useState(0),l=S.useRef(null),c=S.useRef({onError:e,onStopped:t});c.current={onError:e,onStopped:t};const d=S.useCallback(async(b,x)=>{if(l.current)return;const m=new AbortController;l.current=m,i({title:b,started:Date.now()});const y=()=>l.current===m;try{const w=await x(m.signal,_=>y()&&i(N=>N&&{...N,text:_}));return y()?w:void 0}catch(w){y()&&!(w instanceof Oc)&&(console.error(`Entity Fields Analyzer: ${b}`,w),c.current.onError(w));return}finally{y()&&(l.current=null,i(null))}},[]),f=S.useCallback(()=>{const b=l.current;return b?(l.current=null,i(null),b.abort(),!0):!1},[]),h=S.useCallback(()=>{f()&&c.current.onStopped()},[f]),g=!!n;return S.useEffect(()=>{if(!g)return;const b=setInterval(()=>s(m=>m+1),1e3),x=m=>m.key==="Escape"&&h();return window.addEventListener("keydown",x),()=>{clearInterval(b),window.removeEventListener("keydown",x)}},[g,h]),{busy:n,run:d,stop:h,cancel:f}}var Et=Uint8Array,Ht=Uint16Array,Uc=Int32Array,Wc=new Et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Gc=new Et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),qm=new Et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lm=function(e,t){for(var n=new Ht(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var s=new Uc(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)s[l]=l-n[i]<<5|i;return{b:n,r:s}},Hm=Lm(Wc,2),aN=Hm.b,Kc=Hm.r;aN[28]=258,Kc[258]=28;for(var sN=Lm(Gc,0),$m=sN.r,Xc=new Ht(32768),qe=0;qe<32768;++qe){var sn=(qe&43690)>>1|(qe&21845)<<1;sn=(sn&52428)>>2|(sn&13107)<<2,sn=(sn&61680)>>4|(sn&3855)<<4,Xc[qe]=((sn&65280)>>8|(sn&255)<<8)>>1}for(var ii=(function(e,t,n){for(var i=e.length,s=0,l=new Ht(t);s<i;++s)e[s]&&++l[e[s]-1];var c=new Ht(t);for(s=1;s<t;++s)c[s]=c[s-1]+l[s-1]<<1;var d;if(n){d=new Ht(1<<t);var f=15-t;for(s=0;s<i;++s)if(e[s])for(var h=s<<4|e[s],g=t-e[s],b=c[e[s]-1]++<<g,x=b|(1<<g)-1;b<=x;++b)d[Xc[b]>>f]=h}else for(d=new Ht(i),s=0;s<i;++s)e[s]&&(d[s]=Xc[c[e[s]-1]++]>>15-e[s]);return d}),Dn=new Et(288),qe=0;qe<144;++qe)Dn[qe]=8;for(var qe=144;qe<256;++qe)Dn[qe]=9;for(var qe=256;qe<280;++qe)Dn[qe]=7;for(var qe=280;qe<288;++qe)Dn[qe]=8;for(var Ua=new Et(32),qe=0;qe<32;++qe)Ua[qe]=5;var lN=ii(Dn,9,0),cN=ii(Ua,5,0),Vm=function(e){return(e+7)/8|0},Um=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Et(e.subarray(t,n))},uN=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Wa=function(e,t,n){var i=new Error(t||uN[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Wa),!n)throw i;return i},Ar=function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},ai=function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},Qc=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var s=n.length,l=n.slice();if(!s)return{t:Xm,l:0};if(s==1){var c=new Et(n[0].s+1);return c[n[0].s]=1,{t:c,l:1}}n.sort(function(L,T){return L.f-T.f}),n.push({s:-1,f:25001});var d=n[0],f=n[1],h=0,g=1,b=2;for(n[0]={s:-1,f:d.f+f.f,l:d,r:f};g!=s-1;)d=n[n[h].f<n[b].f?h++:b++],f=n[h!=g&&n[h].f<n[b].f?h++:b++],n[g++]={s:-1,f:d.f+f.f,l:d,r:f};for(var x=l[0].s,i=1;i<s;++i)l[i].s>x&&(x=l[i].s);var m=new Ht(x+1),y=Yc(n[g-1],m,0);if(y>t){var i=0,w=0,_=y-t,N=1<<_;for(l.sort(function(T,D){return m[D.s]-m[T.s]||T.f-D.f});i<s;++i){var E=l[i].s;if(m[E]>t)w+=N-(1<<y-m[E]),m[E]=t;else break}for(w>>=_;w>0;){var z=l[i].s;m[z]<t?w-=1<<t-m[z]++-1:++i}for(;i>=0&&w;--i){var P=l[i].s;m[P]==t&&(--m[P],++w)}y=t}return{t:new Et(m),l:y}},Yc=function(e,t,n){return e.s==-1?Math.max(Yc(e.l,t,n+1),Yc(e.r,t,n+1)):t[e.s]=n},Wm=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ht(++t),i=0,s=e[0],l=1,c=function(f){n[i++]=f},d=1;d<=t;++d)if(e[d]==s&&d!=t)++l;else{if(!s&&l>2){for(;l>138;l-=138)c(32754);l>2&&(c(l>10?l-11<<5|28690:l-3<<5|12305),l=0)}else if(l>3){for(c(s),--l;l>6;l-=6)c(8304);l>2&&(c(l-3<<5|8208),l=0)}for(;l--;)c(s);l=1,s=e[d]}return{c:n.subarray(0,i),n:t}},si=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Gm=function(e,t,n){var i=n.length,s=Vm(t+2);e[s]=i&255,e[s+1]=i>>8,e[s+2]=e[s]^255,e[s+3]=e[s+1]^255;for(var l=0;l<i;++l)e[s+l+4]=n[l];return(s+4+i)*8},Km=function(e,t,n,i,s,l,c,d,f,h,g){Ar(t,g++,n),++s[256];for(var b=Qc(s,15),x=b.t,m=b.l,y=Qc(l,15),w=y.t,_=y.l,N=Wm(x),E=N.c,z=N.n,P=Wm(w),L=P.c,T=P.n,D=new Ht(19),O=0;O<E.length;++O)++D[E[O]&31];for(var O=0;O<L.length;++O)++D[L[O]&31];for(var q=Qc(D,7),Q=q.t,X=q.l,$=19;$>4&&!Q[qm[$-1]];--$);var F=h+5<<3,Z=si(s,Dn)+si(l,Ua)+c,oe=si(s,x)+si(l,w)+c+14+3*$+si(D,Q)+2*D[16]+3*D[17]+7*D[18];if(f>=0&&F<=Z&&F<=oe)return Gm(t,g,e.subarray(f,f+h));var V,G,I,J;if(Ar(t,g,1+(oe<Z)),g+=2,oe<Z){V=ii(x,m,0),G=x,I=ii(w,_,0),J=w;var Y=ii(Q,X,0);Ar(t,g,z-257),Ar(t,g+5,T-1),Ar(t,g+10,$-4),g+=14;for(var O=0;O<$;++O)Ar(t,g+3*O,Q[qm[O]]);g+=3*$;for(var j=[E,L],K=0;K<2;++K)for(var se=j[K],O=0;O<se.length;++O){var re=se[O]&31;Ar(t,g,Y[re]),g+=Q[re],re>15&&(Ar(t,g,se[O]>>5&127),g+=se[O]>>12)}}else V=lN,G=Dn,I=cN,J=Ua;for(var O=0;O<d;++O){var ce=i[O];if(ce>255){var re=ce>>18&31;ai(t,g,V[re+257]),g+=G[re+257],re>7&&(Ar(t,g,ce>>23&31),g+=Wc[re]);var ye=ce&31;ai(t,g,I[ye]),g+=J[ye],ye>3&&(ai(t,g,ce>>5&8191),g+=Gc[ye])}else ai(t,g,V[ce]),g+=G[ce]}return ai(t,g,V[256]),g+G[256]},dN=new Uc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Xm=new Et(0),fN=function(e,t,n,i,s,l){var c=l.z||e.length,d=new Et(i+c+5*(1+Math.ceil(c/7e3))+s),f=d.subarray(i,d.length-s),h=l.l,g=(l.r||0)&7;if(t){g&&(f[0]=l.r>>3);for(var b=dN[t-1],x=b>>13,m=b&8191,y=(1<<n)-1,w=l.p||new Ht(32768),_=l.h||new Ht(y+1),N=Math.ceil(n/3),E=2*N,z=function(On){return(e[On]^e[On+1]<<N^e[On+2]<<E)&y},P=new Uc(25e3),L=new Ht(288),T=new Ht(32),D=0,O=0,q=l.i||0,Q=0,X=l.w||0,$=0;q+2<c;++q){var F=z(q),Z=q&32767,oe=_[F];if(w[Z]=oe,_[F]=Z,X<=q){var V=c-q;if((D>7e3||Q>24576)&&(V>423||!h)){g=Km(e,f,0,P,L,T,O,Q,$,q-$,g),Q=D=O=0,$=q;for(var G=0;G<286;++G)L[G]=0;for(var G=0;G<30;++G)T[G]=0}var I=2,J=0,Y=m,j=Z-oe&32767;if(V>2&&F==z(q-j))for(var K=Math.min(x,V)-1,se=Math.min(32767,q),re=Math.min(258,V);j<=se&&--Y&&Z!=oe;){if(e[q+I]==e[q+I-j]){for(var ce=0;ce<re&&e[q+ce]==e[q+ce-j];++ce);if(ce>I){if(I=ce,J=j,ce>K)break;for(var ye=Math.min(j,ce-2),ve=0,G=0;G<ye;++G){var me=q-j+G&32767,Ce=w[me],je=me-Ce&32767;je>ve&&(ve=je,oe=me)}}}Z=oe,oe=w[Z],j+=Z-oe&32767}if(J){P[Q++]=268435456|Kc[I]<<18|$m[J];var ft=Kc[I]&31,Br=$m[J]&31;O+=Wc[ft]+Gc[Br],++L[257+ft],++T[Br],X=q+I,++D}else P[Q++]=e[q],++L[e[q]]}}for(q=Math.max(q,X);q<c;++q)P[Q++]=e[q],++L[e[q]];g=Km(e,f,h,P,L,T,O,Q,$,q-$,g),h||(l.r=g&7|f[g/8|0]<<3,g-=7,l.h=_,l.p=w,l.i=q,l.w=X)}else{for(var q=l.w||0;q<c+h;q+=65535){var pr=q+65535;pr>=c&&(f[g/8|0]=h,pr=c),g=Gm(f,g+1,e.subarray(q,pr))}l.i=c}return Um(d,0,i+Vm(g)+s)},pN=(function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e})(),hN=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=pN[n&255^t[i]]^n>>>8;e=n},d:function(){return~e}}},mN=function(e,t,n,i,s){if(!s&&(s={l:1},t.dictionary)){var l=t.dictionary.subarray(-32768),c=new Et(l.length+e.length);c.set(l),c.set(e,l.length),e=c,s.w=l.length}return fN(e,t.level==null?6:t.level,t.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,i,s)},Qm=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},vt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function gN(e,t){return mN(e,t||{},0,0)}var Ym=function(e,t,n,i){for(var s in e){var l=e[s],c=t+s,d=i;Array.isArray(l)&&(d=Qm(i,l[1]),l=l[0]),ArrayBuffer.isView(l)?n[c]=[l,d]:(n[c+="/"]=[new Et(0),d],Ym(l,c,n,i))}},Jm=typeof TextEncoder<"u"&&new TextEncoder,vN=typeof TextDecoder<"u"&&new TextDecoder,bN=0;try{vN.decode(Xm,{stream:!0}),bN=1}catch{}function Jc(e,t){var n;if(Jm)return Jm.encode(e);for(var i=e.length,s=new Et(e.length+(e.length>>1)),l=0,c=function(h){s[l++]=h},n=0;n<i;++n){if(l+5>s.length){var d=new Et(l+8+(i-n<<1));d.set(s),s=d}var f=e.charCodeAt(n);f<128||t?c(f):f<2048?(c(192|f>>6),c(128|f&63)):f>55295&&f<57344?(f=65536+(f&1047552)|e.charCodeAt(++n)&1023,c(240|f>>18),c(128|f>>12&63),c(128|f>>6&63),c(128|f&63)):(c(224|f>>12),c(128|f>>6&63),c(128|f&63))}return Um(s,0,l)}var Zc=function(e){var t=0;if(e)for(var n in e){var i=e[n].length;i>65535&&Wa(9),t+=i+4}return t},Zm=function(e,t,n,i,s,l,c,d){var f=i.length,h=n.extra,g=d&&d.length,b=Zc(h);vt(e,t,c!=null?33639248:67324752),t+=4,c!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(l<0&&8),e[t++]=s&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var x=new Date(n.mtime==null?Date.now():n.mtime),m=x.getFullYear()-1980;if((m<0||m>119)&&Wa(10),vt(e,t,m<<25|x.getMonth()+1<<21|x.getDate()<<16|x.getHours()<<11|x.getMinutes()<<5|x.getSeconds()>>1),t+=4,l!=-1&&(vt(e,t,n.crc),vt(e,t+4,l<0?-l-2:l),vt(e,t+8,n.size)),vt(e,t+12,f),vt(e,t+14,b),t+=16,c!=null&&(vt(e,t,g),vt(e,t+6,n.attrs),vt(e,t+10,c),t+=14),e.set(i,t),t+=f,b)for(var y in h){var w=h[y],_=w.length;vt(e,t,+y),vt(e,t+2,_),e.set(w,t+4),t+=4+_}return g&&(e.set(d,t),t+=g),t},yN=function(e,t,n,i,s){vt(e,t,101010256),vt(e,t+8,n),vt(e,t+10,n),vt(e,t+12,i),vt(e,t+16,s)};function xN(e,t){t||(t={});var n={},i=[];Ym(e,"",n,t);var s=0,l=0;for(var c in n){var d=n[c],f=d[0],h=d[1],g=h.level==0?0:8,b=Jc(c),x=b.length,m=h.comment,y=m&&Jc(m),w=y&&y.length,_=Zc(h.extra);x>65535&&Wa(11);var N=g?gN(f,h):f,E=N.length,z=hN();z.p(f),i.push(Qm(h,{size:f.length,crc:z.d(),c:N,f:b,m:y,u:x!=c.length||y&&m.length!=w,o:s,compression:g})),s+=30+x+_+E,l+=76+2*(x+_)+(w||0)+E}for(var P=new Et(l+22),L=s,T=l-s,D=0;D<i.length;++D){var b=i[D];Zm(P,b.o,b,b.f,b.u,b.c.length);var O=30+b.f.length+Zc(b.extra);P.set(b.c,b.o+O),Zm(P,s,b,b.f,b.u,b.c.length,b.o,b.m),s+=16+O+(b.m?b.m.length:0)}return yN(P,s,i.length,T,L),P}const Ga=(e,t="616161")=>`<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr><a:defRPr sz="${e*100}"><a:solidFill><a:srgbClr val="${t}"/></a:solidFill></a:defRPr></a:pPr><a:endParaRPr lang="en-US"/></a:p></c:txPr>`,eg=e=>`<c:spPr><a:solidFill><a:srgbClr val="${e}"/></a:solidFill></c:spPr>`,wN="<c:spPr><a:ln><a:noFill/></a:ln></c:spPr>";function kN(e,t){const n=(i,s,l,c)=>`<a:p><a:pPr><a:defRPr/></a:pPr><a:r><a:rPr lang="en-US" sz="${s}" b="${l?1:0}"><a:solidFill><a:srgbClr val="${c}"/></a:solidFill></a:rPr><a:t>${Zt(i)}</a:t></a:r></a:p>`;return`<c:title><c:tx><c:rich><a:bodyPr/><a:lstStyle/>${n(e,1200,!0,"242424")}${t?n(t,900,!1,"616161"):""}</c:rich></c:tx><c:overlay val="0"/></c:title><c:autoTitleDeleted val="0"/>`}function SN(e,t){const n=e.kind==="doughnut";return e.kind==="stackedColumn"||e.kind==="budget"&&t.values[0]<(e.max??0)*.04?"":`<c:dLbls>${n?"":`<c:numFmt formatCode="${Zt(e.format)}" sourceLinked="0"/>`}${Ga(9,e.kind==="budget"||n?"000000":"616161")}<c:showLegendKey val="0"/><c:showVal val="1"/><c:showCatName val="0"/><c:showSerName val="0"/><c:showPercent val="${n?1:0}"/><c:showBubbleSize val="0"/></c:dLbls>`}function _N(e,t,n,i){const s=e.kind==="doughnut",{row:l,column:c}=e.source,d=`'${Zt(t)}'!`,f=b=>`${d}$${po(b)}$${l+1}:$${po(b)}$${l+e.categories.length}`,h=(n.colors??[]).map((b,x)=>`<c:dPt><c:idx val="${x}"/>${s?"":'<c:invertIfNegative val="0"/>'}<c:bubble3D val="0"/>${eg(b)}</c:dPt>`),g=b=>`<c:ptCount val="${b.length}"/>${b.map((x,m)=>`<c:pt idx="${m}"><c:v>${Zt(String(x))}</c:v></c:pt>`).join("")}`;return`<c:ser><c:idx val="${i}"/><c:order val="${i}"/><c:tx><c:strRef><c:f>${d}$${po(n.column)}$${l}</c:f><c:strCache>${g([n.name])}</c:strCache></c:strRef></c:tx>`+eg(n.color)+(s?"":'<c:invertIfNegative val="0"/>')+h.join("")+SN(e,n)+`<c:cat><c:strRef><c:f>${f(c)}</c:f><c:strCache>${g(e.categories)}</c:strCache></c:strRef></c:cat><c:val><c:numRef><c:f>${f(n.column)}</c:f><c:numCache><c:formatCode>General</c:formatCode>${g(n.values)}</c:numCache></c:numRef></c:val></c:ser>`}function CN(e,t){if(e.kind==="doughnut")return`<c:doughnutChart><c:varyColors val="1"/>${t}<c:firstSliceAng val="0"/><c:holeSize val="55"/></c:doughnutChart>`;const n=e.kind==="bar"||e.kind==="budget",i=e.kind==="stackedColumn"||e.kind==="budget",s=`<c:catAx><c:axId val="1"/><c:scaling><c:orientation val="${e.kind==="bar"?"maxMin":"minMax"}"/></c:scaling><c:delete val="${e.kind==="budget"?1:0}"/><c:axPos val="${n?"l":"b"}"/><c:majorTickMark val="none"/><c:minorTickMark val="none"/><c:tickLblPos val="nextTo"/>${Ga(9)}<c:crossAx val="2"/><c:crosses val="autoZero"/><c:auto val="1"/><c:lblAlgn val="ctr"/><c:lblOffset val="100"/><c:noMultiLvlLbl val="0"/></c:catAx>`,l=`<c:valAx><c:axId val="2"/><c:scaling><c:orientation val="minMax"/>${e.max===void 0?"":`<c:max val="${e.max}"/>`}<c:min val="0"/></c:scaling><c:delete val="${i?0:1}"/><c:axPos val="${n?"b":"l"}"/><c:numFmt formatCode="General" sourceLinked="0"/><c:majorTickMark val="none"/><c:minorTickMark val="none"/><c:tickLblPos val="nextTo"/>${wN}${Ga(9)}<c:crossAx val="1"/><c:crosses val="autoZero"/><c:crossBetween val="between"/>${e.kind==="budget"?'<c:majorUnit val="128"/>':""}</c:valAx>`;return`<c:barChart><c:barDir val="${n?"bar":"col"}"/><c:grouping val="${i?"stacked":"clustered"}"/><c:varyColors val="0"/>${t}<c:gapWidth val="${i?40:50}"/>${i?'<c:overlap val="100"/>':""}<c:axId val="1"/><c:axId val="2"/></c:barChart>${s}${l}`}function NN(e,t){const n=e.kind==="doughnut"?"r":e.kind==="budget"?"b":e.kind==="stackedColumn"?"t":null,i=e.series.map((s,l)=>_N(e,t,s,l)).join("");return`<c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><c:roundedCorners val="0"/><c:chart>${kN(e.title,e.subtitle)}<c:plotArea><c:layout/>${CN(e,i)}</c:plotArea>`+(n?`<c:legend><c:legendPos val="${n}"/><c:overlay val="0"/>${Ga(9)}</c:legend>`:"")+'<c:plotVisOnly val="1"/></c:chart><c:spPr><a:solidFill><a:srgbClr val="FFFFFF"/></a:solidFill><a:ln><a:solidFill><a:srgbClr val="E0E0E0"/></a:solidFill></a:ln></c:spPr></c:chartSpace>'}const Ka="http://schemas.openxmlformats.org/spreadsheetml/2006/main",Xa="http://schemas.openxmlformats.org/officeDocument/2006/relationships",BN="http://schemas.openxmlformats.org/package/2006/relationships",ln='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',zN=32767;function Zt(e){return e.replace(new RegExp("[\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f￾￿]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]","g"),"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function po(e){let t="";for(let n=e;n>0;n=Math.floor((n-1)/26))t=String.fromCharCode(65+(n-1)%26)+t;return t}const Qa=(e,t)=>`${po(t)}${e}`,Or=(e,t,n,i)=>`${Qa(e,t)}:${Qa(n,i)}`;function EN(e,t=""){return e.replace(/[:\\/?*[\]']/g,"").substring(0,31-t.length)+t}class eu{constructor(t){this.name=t}name;cells=new Map;widths=new Map;heights=new Map;merges=[];tables=[];charts=[];bars=[];highlights=[];breaks=[];freeze;gridLines=!0;printArea;set(t,n,i,s={},l){let c=this.cells.get(t);c||this.cells.set(t,c=new Map),c.set(n,{value:i,style:s,formula:l})}fill(t,n,i,s){for(let l=n;l<=i;l++)this.set(t,l,this.cells.get(t)?.get(l)?.value,s)}merge(t,n,i){this.merges.push(Or(t,n,t,i))}table(t,n,i,s,l,c){if(!s.length)return this.set(n,1,l,{italic:!0}),!1;const d=n+s.length;return i.forEach((f,h)=>{this.set(n,h+1,f.header,{bold:!0});const g={format:f.format,wrap:f.wrap};let b=f.header.length+3;s.forEach((m,y)=>{const w=m[h];this.set(n+1+y,h+1,w,g),typeof w=="string"&&(b=Math.max(b,w.length+2))});const x=f.width??Math.min(60,Math.max(11,b));if(this.widths.set(h+1,Math.max(this.widths.get(h+1)??0,x)),c!==void 0){if(h===0)this.set(d+1,1,c,{bold:!0});else if(f.sum){const m=s.reduce((y,w)=>y+(Number(w[h])||0),0);this.set(d+1,h+1,m,{bold:!0,format:f.format},`SUBTOTAL(109,${Or(n+1,h+1,d,h+1)})`)}}}),this.tables.push({name:t,row:n,last:d,columns:i,totals:c!==void 0}),!0}}class ho{ids=new Map;fonts=['<font><sz val="11"/><name val="Calibri"/></font>'];fills=['<fill><patternFill patternType="none"/></fill>','<fill><patternFill patternType="gray125"/></fill>'];formats=[];xfs=['<xf numFmtId="0" fontId="0" fillId="0" borderId="0"/>'];static index(t,n){const i=t.indexOf(n);return i>=0?i:t.push(n)-1}id(t){const n=JSON.stringify(t),i=this.ids.get(n);if(i!==void 0)return i;const{bold:s,italic:l,size:c,color:d,fill:f,format:h,wrap:g,left:b}=t,x=`<font>${s?"<b/>":""}${l?"<i/>":""}<sz val="${c??11}"/>${d?`<color rgb="FF${d}"/>`:""}<name val="Calibri"/></font>`,m=ho.index(this.fonts,x),y=f?ho.index(this.fills,`<fill><patternFill patternType="solid"><fgColor rgb="FF${f}"/><bgColor indexed="64"/></patternFill></fill>`):0,w=h?164+ho.index(this.formats,h):0,_=g||b?`<alignment${b?' horizontal="left"':""} vertical="${g?"top":"center"}"${g?' wrapText="1"':""}/>`:"",N=ho.index(this.xfs,`<xf numFmtId="${w}" fontId="${m}" fillId="${y}" borderId="0" applyNumberFormat="1" applyFont="1" applyFill="1" applyAlignment="1">${_}</xf>`);return this.ids.set(n,N),N}toXml(){const t=(i,s)=>`<${i} count="${s.length}">${s.join("")}</${i}>`,n=this.formats.map((i,s)=>`<numFmt numFmtId="${164+s}" formatCode="${Zt(i)}"/>`);return`${ln}<styleSheet xmlns="${Ka}">`+(n.length?t("numFmts",n):"")+t("fonts",this.fonts)+t("fills",this.fills)+'<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>'+t("cellXfs",this.xfs)+'<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="1"><dxf><font><color rgb="FF808080"/></font><fill><patternFill><bgColor rgb="FFF2F2F2"/></patternFill></fill></dxf></dxfs></styleSheet>'}}function TN(e,t,n,i){const{value:s,formula:l}=n,c=i.id(n.style),d=`<c r="${Qa(e,t)}"${c?` s="${c}"`:""}`;return l?`${d}><f>${Zt(l)}</f><v>${Number(s)||0}</v></c>`:s==null||s===""?`${d}/>`:typeof s=="number"?Number.isFinite(s)?`${d}><v>${s}</v></c>`:`${d}/>`:typeof s=="boolean"?`${d} t="b"><v>${s?1:0}</v></c>`:`${d} t="inlineStr"><is><t xml:space="preserve">${Zt(s.substring(0,zN))}</t></is></c>`}function FN(e,t,n){let i="";if(e.freeze){const{row:h,column:g}=e.freeze;i=`<pane xSplit="${g}" ySplit="${h}" topLeftCell="${Qa(h+1,g+1)}" activePane="bottomRight" state="frozen"/>`}const s=[...e.widths].sort((h,g)=>h[0]-g[0]).map(([h,g])=>`<col min="${h}" max="${h}" width="${g}" customWidth="1"/>`),c=[...new Set([...e.cells.keys(),...e.heights.keys()])].sort((h,g)=>h-g).map(h=>{const g=e.heights.get(h),b=[...e.cells.get(h)??[]].sort((x,m)=>x[0]-m[0]).map(([x,m])=>TN(h,x,m,t));return`<row r="${h}"${g?` ht="${g}" customHeight="1"`:""}>${b.join("")}</row>`});let d=1;const f=[...e.bars.map(h=>`<conditionalFormatting sqref="${h.ref}"><cfRule type="dataBar" priority="${d++}"><dataBar><cfvo type="num" val="0"/>${h.max===void 0?'<cfvo type="max"/>':`<cfvo type="num" val="${h.max}"/>`}<color rgb="FF${h.color}"/></dataBar></cfRule></conditionalFormatting>`),...e.highlights.map(h=>`<conditionalFormatting sqref="${h.ref}"><cfRule type="expression" dxfId="0" priority="${d++}"><formula>${Zt(h.formula)}</formula></cfRule></conditionalFormatting>`)];return`${ln}<worksheet xmlns="${Ka}" xmlns:r="${Xa}">`+(e.printArea?'<sheetPr><pageSetUpPr fitToPage="1"/></sheetPr>':"")+`<sheetViews><sheetView workbookViewId="0"${n?' tabSelected="1"':""}${e.gridLines?"":' showGridLines="0"'}>${i}</sheetView></sheetViews><sheetFormatPr defaultRowHeight="15"/>`+(s.length?`<cols>${s.join("")}</cols>`:"")+`<sheetData>${c.join("")}</sheetData>`+(e.merges.length?`<mergeCells count="${e.merges.length}">${e.merges.map(h=>`<mergeCell ref="${h}"/>`).join("")}</mergeCells>`:"")+f.join("")+'<pageMargins left="0.4" right="0.4" top="0.5" bottom="0.5" header="0.3" footer="0.3"/>'+(e.printArea?'<pageSetup orientation="portrait" fitToHeight="0"/>':"")+(e.breaks.length?`<rowBreaks count="${e.breaks.length}" manualBreakCount="${e.breaks.length}">${e.breaks.map(h=>`<brk id="${h-1}" max="16383" man="1"/>`).join("")}</rowBreaks>`:"")+(e.charts.length?'<drawing r:id="drawing"/>':"")+(e.tables.length?`<tableParts count="${e.tables.length}">${e.tables.map((h,g)=>`<tablePart r:id="table${g}"/>`).join("")}</tableParts>`:"")+"</worksheet>"}function PN(e,t){const{row:n,last:i,columns:s,totals:l}=e,c=s.map((d,f)=>{const h=l?f===0?' totalsRowLabel="Total"':d.sum?' totalsRowFunction="sum"':"":"";return`<tableColumn id="${f+1}" name="${Zt(d.header)}"${h}/>`});return`${ln}<table xmlns="${Ka}" id="${t}" name="${e.name}" displayName="${e.name}" ref="${Or(n,1,i+(l?1:0),s.length)}"${l?' totalsRowCount="1"':' totalsRowShown="0"'}><autoFilter ref="${Or(n,1,i,s.length)}"/><tableColumns count="${s.length}">${c.join("")}</tableColumns><tableStyleInfo name="TableStyleMedium2" showFirstColumn="0" showLastColumn="0" showRowStripes="1" showColumnStripes="0"/></table>`}function RN(e,t){const n=(d,f)=>`<xdr:col>${d-1}</xdr:col><xdr:colOff>0</xdr:colOff><xdr:row>${f-1}</xdr:row><xdr:rowOff>0</xdr:rowOff>`,{row:i,column:s,rows:l,columns:c}=e.at;return`<xdr:twoCellAnchor><xdr:from>${n(s,i)}</xdr:from><xdr:to>${n(s+c,i+l)}</xdr:to><xdr:graphicFrame macro=""><xdr:nvGraphicFramePr><xdr:cNvPr id="${t+2}" name="Chart ${t+1}" descr="${Zt(e.title)}"/><xdr:cNvGraphicFramePr/></xdr:nvGraphicFramePr><xdr:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/></xdr:xfrm><a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart"><c:chart r:id="chart${t}"/></a:graphicData></a:graphic></xdr:graphicFrame><xdr:clientData/></xdr:twoCellAnchor>`}function jN(e){const t=new ho,n={},i=[],s=(h,g,b)=>{n[h]=Jc(g),b&&i.push(`<Override PartName="/${h}" ContentType="application/vnd.openxmlformats-officedocument.${b}+xml"/>`)},l=h=>`${ln}<Relationships xmlns="${BN}">${h.map(([g,b,x])=>`<Relationship Id="${g}" Type="${Xa}/${b}" Target="${x}"/>`).join("")}</Relationships>`;let c=0,d=0;e.forEach((h,g)=>{const b=g+1,x=[];if(h.tables.forEach((m,y)=>{const w=++c;s(`xl/tables/table${w}.xml`,PN(m,w),"spreadsheetml.table"),x.push([`table${y}`,"table",`../tables/table${w}.xml`])}),h.charts.length){const m=[];h.charts.forEach((y,w)=>{const _=++d;s(`xl/charts/chart${_}.xml`,ln+NN(y,h.name),"drawingml.chart"),m.push([`chart${w}`,"chart",`../charts/chart${_}.xml`])}),s(`xl/drawings/drawing${b}.xml`,`${ln}<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="${Xa}" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart">${h.charts.map(RN).join("")}</xdr:wsDr>`,"drawing"),s(`xl/drawings/_rels/drawing${b}.xml.rels`,l(m)),x.push(["drawing","drawing",`../drawings/drawing${b}.xml`])}s(`xl/worksheets/sheet${b}.xml`,FN(h,t,g===0),"spreadsheetml.worksheet"),x.length&&s(`xl/worksheets/_rels/sheet${b}.xml.rels`,l(x))});const f=e.flatMap((h,g)=>h.printArea?[`<definedName name="_xlnm.Print_Area" localSheetId="${g}">'${Zt(h.name)}'!$A$1:$${po(h.printArea.columns)}$${h.printArea.rows}</definedName>`]:[]);return s("xl/workbook.xml",`${ln}<workbook xmlns="${Ka}" xmlns:r="${Xa}"><bookViews><workbookView/></bookViews><sheets>`+e.map((h,g)=>`<sheet name="${Zt(h.name)}" sheetId="${g+1}" r:id="rId${g+1}"/>`).join("")+`</sheets>${f.length?`<definedNames>${f.join("")}</definedNames>`:""}</workbook>`,"spreadsheetml.sheet.main"),s("xl/styles.xml",t.toXml(),"spreadsheetml.styles"),s("xl/_rels/workbook.xml.rels",l([...e.map((h,g)=>[`rId${g+1}`,"worksheet",`worksheets/sheet${g+1}.xml`]),["styles","styles","styles.xml"]])),s("_rels/.rels",l([["rId1","officeDocument","xl/workbook.xml"]])),s("[Content_Types].xml",`${ln}<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>${i.join("")}</Types>`),xN(n,{level:6})}const Ya={brand:"0F6CBD",brandDark:"0C3B5E",subtle:"EBF3FC",green:"1A9E6C",violet:"8455C4",orange:"CA5010",neutral:"C4CCD6",available:"E1E1E1",warning:"BC4B09",danger:"C50F1F",success:"107C10",muted:"616161"},li=20,er=10,An=18,qr=23;function MN(e,t,n,i,s){const l=Ya,c=new eu(e);c.gridLines=!1,c.set(1,1,`${e} - ${t.entity.displayName||t.entity.logicalName}`,{bold:!0,size:16}),c.set(2,1,s,{italic:!0,color:l.muted}),c.set(1,qr,i.xl.chartData,{bold:!0});for(let P=1;P<=li;P++)c.widths.set(P,9.5);c.widths.set(qr,32);for(let P=1;P<=4;P++)c.widths.set(qr+P,18);let d=4,f=4;const h=(P,L)=>{L&&d>4&&c.breaks.push(d),c.set(d,1,P),c.fill(d,1,li,{bold:!0,size:13,color:"FFFFFF",fill:l.brand,left:!0}),c.heights.set(d,22)},g=P=>{P.forEach(([L,T,D,O,q],Q)=>{const X=1+Q*5;c.set(d+1,X,L),c.fill(d+1,X,X+3,{size:9,color:l.muted,fill:l.subtle,left:!0}),c.set(d+2,X,T),c.fill(d+2,X,X+3,{size:20,bold:!0,color:q??l.brand,fill:l.subtle,format:D,left:!0}),c.set(d+3,X,O),c.fill(d+3,X,X+3,{size:9,color:l.muted,fill:l.subtle,left:!0});for(let $=d+1;$<=d+3;$++)c.merge($,X,X+3)}),c.heights.set(d+2,28),d+=5},b=(P,L,T,D,O,q,Q,X,$,F)=>{if(c.set(f,qr,L,{bold:!0}),!q.length){c.set(d,D,L,{bold:!0}),c.set(d+1,D,$,{italic:!0,color:l.muted}),f+=2;return}const Z=f+1;Q.forEach((oe,V)=>c.set(Z,qr+1+V,oe.name,{bold:!0})),q.forEach((oe,V)=>{c.set(Z+1+V,qr,oe),Q.forEach((G,I)=>c.set(Z+1+V,qr+1+I,G.values[V],{format:X}))}),c.charts.push({kind:P,title:L,subtitle:T,format:X,max:F,categories:q,at:{row:d,column:D,rows:An-1,columns:O},source:{row:Z,column:qr},series:Q.map((oe,V)=>({...oe,column:qr+1+V}))}),f=Z+q.length+2},x=P=>P.map(L=>i.label(L.key)),m=(P,L=1)=>P.map(T=>T.value/L),y=n.used/nt,w=y>=.9?l.danger:y>=.75?l.warning:l.brand,_=P=>i.ofFields(n.total?P*100/n.total:0);h(i.overview,!1),g([[i.fields,n.total,"#,##0",""],[i.customFields,n.customCount,"#,##0",_(n.customCount)],[i.unmanagedFields,n.unmanagedCount,"#,##0",i.managedCount(n.total-n.unmanagedCount)],[i.capacityUsed,y,"0%",i.columnsLeft(n.available),w]]),b("bar",i.fieldTypes,"",1,er,x(n.types),[{name:i.fields,color:l.brand,values:m(n.types)}],"#,##0",i.noField);const N=n.origin.filter(P=>P.value>0),E={standard:l.neutral,customManaged:l.brand,customUnmanaged:l.orange,standardUnmanaged:l.violet};if(b("doughnut",i.origin,i.originHint,1+er,er,x(N),[{name:i.fields,color:l.brand,values:m(N),colors:N.map(P=>E[P.key])}],"#,##0",i.noField),d+=An,b("bar",i.fieldSettings,i.settingsHint,1,er,x(n.settings),[{name:i.settingsHint,color:l.violet,values:m(n.settings,100)}],"0%",i.noField,1.15),b("bar",i.publishers,i.publishersHint,1+er,er,x(n.publishers),[{name:i.customFields,color:l.green,values:m(n.publishers)}],"#,##0",i.noCustom),d+=An,b("stackedColumn",i.timeline,i.granularity(n.byMonth),1,li,n.timeline.map(P=>i.period(P.key)),[{name:i.custom,color:l.brand,values:m(n.timeline)},{name:i.standard,color:l.neutral,values:n.timeline.map(P=>P.secondary??0)}],"#,##0",i.noDate),d+=An+1,h(i.usage,n.hasUsage),!n.hasUsage)c.set(d+1,1,i.xl.notAnalysed,{italic:!0,color:l.muted}),d+=3;else{g([[i.recordsAnalysed,t.records,"#,##0",i.recordsRead],[i.neverUsedFields,n.unused,"#,##0",_(n.unused),n.unused?l.danger:l.success],[i.rarelyUsed,n.low,"#,##0",i.rarelyCaption,l.warning],[i.averageFill,n.average/100,"0%",i.perField]]);const P=[l.danger,l.warning,"EAA33C","78AADC",l.brand,l.brandDark];b("column",i.distribution,i.distributionHint,1,er,x(n.distribution),[{name:i.fields,color:l.brand,values:m(n.distribution),colors:P}],"#,##0",i.noField),b("bar",i.fillByType,i.fillByTypeHint,1+er,er,x(n.fillByType),[{name:i.averageFill,color:l.green,values:m(n.fillByType,100)}],"0.0%",i.noField,1.15),d+=An;const L=n.leastUsed,T=L.map(D=>D.value<=0?l.danger:l.warning);b("bar",i.leastUsed,i.leastUsedHint,1,li,x(L),[{name:i.xl.fillRate,color:l.warning,values:m(L,100),colors:T}],"0.00%",i.noCustom),d+=An+1}h(i.capacity,!0),c.set(d+1,1,i.budgetHeadline(n.used,n.available),{bold:!0,size:12}),c.set(d+2,1,i.rule,{size:9,color:l.muted}),d+=4;const z=[{name:i.weightNames[3],color:l.brand,values:[n.weights[3]]},{name:i.weightNames[2],color:l.green,values:[n.weights[2]]},{name:i.weightNames[1],color:l.violet,values:[n.weights[1]]},{name:i.availableLabel,color:l.available,values:[n.available]}];return b("budget",i.budget,i.budgetHint,1,er,[i.capacity],z,"#,##0",i.noField,Math.max(nt,n.used)),b("bar",i.cost,i.costHint,1+er,er,x(n.cost),[{name:i.xl.columns,color:l.brand,values:m(n.cost)}],"#,##0",i.noField),d+=An,c.printArea={rows:d,columns:li},c}const ot="#,##0",fr="0.0%",mo="yyyy-mm-dd",Ja=12,Tt=4,go=e=>e?Date.parse(e)/864e5+25569:null,IN=e=>Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes())/864e5+25569;function DN(e,t){const n=i=>String(i).padStart(2,"0");return`${e}_EntityKPIsExport_${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}.xlsx`}function AN(e){return e<=0?0:e<on?1:e<50?2:e<90?3:4}function ON(e,t,n,i,s){const{entity:l,fields:c,records:d}=e,f=n.xl,h=n.columns,g=l.displayName||l.logicalName,b=`${l.logicalName} | ${n.modes[e.mode]} | ${s.toLocaleString(n.locale,{dateStyle:"short",timeStyle:"short"})}`,x=q=>q?n.yes:n.no,m=q=>q.displayName||"N/A",y=(q,Q)=>q.type.localeCompare(Q.type)||q.name.localeCompare(Q.name,"en"),w=(q,Q,X)=>{const $=new eu(q);return $.set(1,1,Q,{bold:!0,size:14}),$.set(2,1,X,{italic:!0,color:Ya.muted}),$};function _(){const q=new eu(EN(l.logicalName,f.metadata));[[f.entityName,g],[f.entitySchema,l.logicalName],[f.createdOn,go(l.createdOn),mo],[f.numberFields,t.total,ot],[f.numberRecords,t.hasUsage?d:f.notAnalysed,ot],[f.columnsUsed,t.used,`#,##0 "/ ${nt}"`],[f.volume,t.used/nt,fr],[f.mode,n.modes[e.mode]],[f.exportedOn,IN(s),"yyyy-mm-dd hh:mm"],[f.environment,i]].forEach(([F,Z,oe],V)=>{q.set(V+1,1,F,{bold:!0,size:12,fill:"F5DEB3"}),q.set(V+1,2,Z,{left:!0,format:oe})}),q.widths.set(1,34),q.widths.set(2,34);const X=[{header:h.displayName,get:m},{header:h.schemaName,get:F=>F.name},{header:h.description,get:F=>F.description},{header:h.type,get:F=>F.type},{header:h.target,get:F=>F.target},{header:h.managed,get:F=>n.managedValue(F.managed)},{header:h.custom,get:F=>F.custom},{header:h.auditable,get:F=>F.auditable},{header:h.searchable,get:F=>F.searchable},{header:h.required,get:F=>F.requiredLevel},{header:h.version,get:F=>F.introducedVersion},{header:h.created,format:mo,get:F=>go(F.createdOn)},{header:h.modified,format:mo,get:F=>go(F.modifiedOn)},...jc.map(F=>({header:F,get:Z=>Z.extra[F]}))];t.hasUsage&&(X.push({header:h.filled,format:ot,get:F=>F.filled}),X.push({header:h.percent,format:"0.00%",get:F=>F.usage/100}));const $=[...c].sort(y).map(F=>X.map(Z=>Z.get(F)));if(!q.table("tblMetadata",Ja,X,$,f.nothing))return q;if(q.freeze={row:Ja,column:2},t.hasUsage){const F=Ja+1,Z=`$${po(X.length)}${F}`;q.highlights.push({ref:Or(F,1,Ja+$.length,X.length),formula:`${Z}=0`})}return q}const N=CC(e,t);function E(){const q=w(f.summary,`${f.summaryTitle} - ${g}`,b),Q=c.filter(F=>F.custom);let X=4;const $=(F,Z)=>{const oe={bold:!0,size:12,fill:"F5DEB3"};q.set(X,1,F,oe),q.set(X,2,null,oe),Z.forEach(([V,G,I],J)=>{q.set(X+1+J,1,V,{bold:!0}),q.set(X+1+J,2,G,{left:!0,format:I})}),X+=Z.length+2};if($(f.table,[[h.displayName,g],[h.schemaName,l.logicalName],[f.createdOn,go(l.createdOn),mo],[n.recordsAnalysed,t.hasUsage?d:f.notAnalysed,ot]]),$(n.fields,[[f.total,t.total,ot],[f.standardFields,t.total-Q.length,ot],[n.customFields,Q.length,ot],[f.ofWhichManaged,Q.filter(F=>F.managed).length,ot],[f.ofWhichUnmanaged,Q.filter(F=>!F.managed).length,ot],[f.prefixes,new Set(Q.map(F=>uo(F.name))).size,ot],[f.lookupCount,c.filter(jm).length,ot]]),$(n.capacity,[[f.columns,t.used,ot],[f.columnsAvailable,t.available,ot],[n.capacityUsed,t.used/nt,fr],[f.ruleLabel,n.rule]]),$(`${n.fieldSettings} (${n.settingsHint})`,t.settings.map(F=>[n.label(F.key),F.value/100,fr])),t.hasUsage){$(n.usage,[[n.averageFill,t.average/100,fr],[n.neverUsedFields,t.unused,ot],[n.rarelyUsed,t.low,ot]]);const F=Math.max(1,t.total),Z=t.distribution.map(V=>[V.key,V.value,V.value/F]),oe=[{header:f.band},{header:n.fields,format:ot},{header:f.share,format:fr}];q.table("tblFillDistribution",X,oe,Z,f.nothing)&&q.bars.push({ref:Or(X+1,3,X+Z.length,3),color:"5B9BD5",max:1}),X+=Z.length+3}return $(f.findings,Mc.map(F=>[n.severities[F],N.filter(Z=>Z.severity===F).length,ot])),q.widths.set(1,52),q.widths.set(2,30),q.widths.set(3,22),q}function z(){const q=w(f.recommendations,f.recommendations,f.recommendationsHint),Q=[{header:f.severity},{header:f.category},{header:h.schemaName},{header:h.displayName},{header:h.type},{header:h.custom}];t.hasUsage&&Q.push({header:f.fillRate,format:fr}),Q.push({header:f.issue,width:55,wrap:!0},{header:f.recommendation,width:70,wrap:!0});const X=N.map($=>{const F=$.field,Z=[n.severities[$.severity],n.category($.rule),F?.name??l.logicalName,F?m(F):f.tableRow,F?.type,F&&x(F.custom)];return t.hasUsage&&Z.push(F?F.usage/100:null),Z.push(...n.finding($)),Z});if(q.table("tblRecommendations",Tt,Q,X,f.nothing)){const $={High:["FFC7CE","9C0006"],Medium:["FFEB9C","9C5700"],Low:["DDEBF7","1F4E79"],Info:["F2F2F2","595959"]};N.forEach((F,Z)=>q.set(Tt+1+Z,1,n.severities[F.severity],{bold:!0,fill:$[F.severity][0],color:$[F.severity][1]}))}return q}function P(){const q=w(f.usage,n.usage,n.visibility),Q=[...c].sort(($,F)=>$.usage-F.usage||$.name.localeCompare(F.name,"en")).map($=>[$.name,m($),$.type,x($.custom),n.managedValue($.managed),$.requiredLevel,$.filled,d-$.filled,$.usage/100,f.bands[AN($.usage)]]),X=[{header:h.schemaName},{header:h.displayName},{header:h.type},{header:h.custom},{header:h.managed},{header:h.required},{header:h.filled,format:ot},{header:f.emptyRecords,format:ot},{header:f.fillRate,format:fr},{header:f.usageBand}];return q.table("tblDataUsage",Tt,X,Q,f.nothing)&&q.bars.push({ref:Or(Tt+1,9,Tt+Q.length,9),color:"63BE7B",max:1}),q}function L(){const q=w(f.byType,n.fieldTypes,n.rule),Q=[{header:h.type},{header:n.fields,sum:!0},{header:n.custom,sum:!0},{header:n.standard,sum:!0},{header:n.unmanaged,sum:!0},{header:f.weight},{header:f.columns,sum:!0},{header:f.capacityShare,format:fr,sum:!0}];t.hasUsage&&Q.push({header:n.averageFill,format:fr},{header:n.neverUsedFields,sum:!0});const X=[...oi(c,$=>$.type)].map(([$,F])=>{const Z=co($),oe=F.filter(G=>G.custom).length,V=[$,F.length,oe,F.length-oe,F.filter(G=>!G.managed).length,Z,F.length*Z,F.length*Z/nt];return t.hasUsage&&V.push(F.reduce((G,I)=>G+I.usage,0)/F.length/100,F.filter(G=>G.usage<=0).length),V}).sort(($,F)=>F[6]-$[6]);return q.table("tblByType",Tt,Q,X,f.nothing,f.total)&&q.bars.push({ref:Or(Tt+1,8,Tt+X.length,8),color:"5B9BD5"}),q}function T(){const q=w(f.byPublisher,n.publishers,n.publishersHint),Q=[{header:f.prefix},{header:n.customFields,sum:!0},{header:f.managed,sum:!0},{header:n.unmanaged,sum:!0},{header:f.columns,sum:!0},{header:f.firstCreated,format:mo},{header:f.lastCreated,format:mo}];t.hasUsage&&Q.push({header:n.averageFill,format:fr},{header:n.neverUsedFields,sum:!0});const X=[...oi(c.filter($=>$.custom),$=>uo($.name)||f.noPrefix)].sort(($,F)=>F[1].length-$[1].length||$[0].localeCompare(F[0])).map(([$,F])=>{const Z=F.flatMap(G=>G.createdOn??[]).sort(),oe=F.filter(G=>G.managed).length,V=[$,F.length,oe,F.length-oe,F.reduce((G,I)=>G+co(I.type),0),go(Z[0]??null),go(Z[Z.length-1]??null)];return t.hasUsage&&V.push(F.reduce((G,I)=>G+I.usage,0)/F.length/100,F.filter(G=>G.usage<=0).length),V});return q.table("tblByPublisher",Tt,Q,X,f.nothing,f.total),q}function D(){const q=w(f.lookups,f.lookupCount,n.rule),Q=[{header:h.schemaName},{header:h.displayName},{header:h.type},{header:h.target},{header:h.custom},{header:h.managed},{header:h.required},{header:h.searchable}];t.hasUsage&&Q.push({header:f.fillRate,format:fr});const X=c.filter(jm).sort(($,F)=>$.target.localeCompare(F.target)||$.name.localeCompare(F.name)).map($=>{const F=[$.name,m($),$.type,$.target,x($.custom),n.managedValue($.managed),$.requiredLevel,x($.searchable)];return t.hasUsage&&F.push($.usage/100),F});return q.table("tblLookups",Tt,Q,X,f.nothing)&&t.hasUsage&&q.bars.push({ref:Or(Tt+1,9,Tt+X.length,9),color:"63BE7B",max:1}),q}function O(){const q=w(f.timeline,n.timeline,t.timeline.length?n.granularity(t.byMonth):n.noDate),Q=[{header:f.period},{header:n.custom,sum:!0},{header:n.standard,sum:!0},{header:f.total,sum:!0},{header:f.cumulative}];let X=0;const $=t.timeline.map(oe=>n.period(oe.key)),F=t.timeline.map(oe=>oe.secondary??0),Z=t.timeline.map((oe,V)=>[$[V],oe.value,F[V],oe.value+F[V],X+=oe.value+F[V]]);return q.table("tblTimeline",Tt,Q,Z,f.nothing,f.total)&&q.charts.push({kind:"stackedColumn",title:n.timeline,subtitle:n.granularity(t.byMonth),format:ot,categories:$,at:{row:Tt,column:7,rows:20,columns:10},source:{row:Tt,column:1},series:[{name:n.custom,column:2,color:Ya.brand,values:t.timeline.map(oe=>oe.value)},{name:n.standard,column:3,color:Ya.neutral,values:F}]}),q}return[_(),MN(f.dashboard,e,t,n,b),E(),z(),...t.hasUsage?[P()]:[],L(),T(),D(),O()]}const qN=(e,t,n,i,s)=>jN(ON(e,t,n,i,s)),tg=5e3,LN=20,HN=5*1024*1024;function $N(e,t){return t<=0?tg:Math.max(1,Math.min(tg,Math.floor(HN/Math.max(1,e/t))))}function rg(e,t,n,i){const s=i?` paging-cookie="${qc(i)}"`:"",l=e.primaryId?`<order attribute="${qc(e.primaryId)}"/>`:"",c=`<fetch no-lock="true" count="${t}" page="${n}"${s}><entity name="${qc(e.logicalName)}"><all-attributes/>${l}</entity></fetch>`;return`${e.entitySetName}?fetchXml=${encodeURIComponent(c)}`}async function VN(e,t,n,i){if(!e.entitySetName)throw new Error(`${e.logicalName}: this table can't be read through the Web API.`);const s=d=>Ha(La(d),n);let l;try{const f=(await s(rg(e,LN,1))).value??[];l=$N(new Blob([JSON.stringify(f)]).size,f.length)}catch(d){if(!Ac(d))throw d;l=5}const c=t.map(d=>[d.name,`_${d.name}_value`]);for(;;){const d=new Array(t.length).fill(0);let f=0,h;try{for(let g=1;;g++){const b=await s(rg(e,l,g,h)),x=b.value??[];for(const w of x)for(let _=0;_<c.length;_++)(w[c[_][0]]??w[c[_][1]]??null)!==null&&d[_]++;f+=x.length,i(f);const m=b["@Microsoft.Dynamics.CRM.fetchxmlpagingcookie"],y=b["@Microsoft.Dynamics.CRM.morerecords"]??!!m;if(String(y)!=="true")return{records:f,filled:d};if(x.length===0)throw new Error("Dataverse returned an empty page before the end of the table.");h=FC(m)}}catch(g){if(!Ac(g)||l===1)throw g;l=Math.max(1,Math.floor(l/3))}}}const ci={10:"#020f1c",20:"#051c33",30:"#062a4d",40:"#063866",50:"#044780",60:"#02569a",70:"#0066b5",80:"#0078d4",90:"#2886de",100:"#4595e3",110:"#5ea4e8",120:"#77b3ec",130:"#90c2f0",140:"#a9d1f4",150:"#c3e0f8",160:"#ddeffc"},UN={...Ux(ci),colorNeutralBackground1:"#ffffff",colorNeutralBackground1Hover:"#f3f5fa",colorNeutralBackground1Pressed:"#e9edf5",colorNeutralBackground1Selected:"#eceff7",colorNeutralBackground2:"#eef1f7",colorNeutralBackground3:"#f5f7fb",colorNeutralBackground4:"#e9edf4",colorNeutralForeground1:"#1e2433",colorNeutralForeground2:"#374151",colorNeutralForeground3:"#6b7385",colorNeutralForeground4:"#a0a7b4",colorNeutralStroke1:"#cfd6e3",colorNeutralStroke1Hover:"#b8c1d1",colorNeutralStroke2:"#e2e7ef",colorNeutralStroke3:"#eef1f6",colorNeutralStrokeAccessible:"#7a8599"},WN={...Kx(ci),colorBrandForeground1:ci[120],colorBrandForeground2:ci[130],colorBrandForegroundLink:ci[120],colorNeutralBackground1:"#353b48",colorNeutralBackground1Hover:"#3d4452",colorNeutralBackground1Pressed:"#323845",colorNeutralBackground1Selected:"#414857",colorNeutralBackground2:"#2b303b",colorNeutralBackground3:"#3a4150",colorNeutralBackground4:"#2f3542",colorNeutralBackgroundDisabled:"#3a404c",colorNeutralForeground1:"#e9ecf2",colorNeutralForeground2:"#d3d8e2",colorNeutralForeground3:"#aab3c3",colorNeutralForeground4:"#8892a4",colorNeutralForegroundDisabled:"#7a8394",colorNeutralStroke1:"#566074",colorNeutralStroke1Hover:"#667186",colorNeutralStroke2:"#4a5365",colorNeutralStroke3:"#414959",colorNeutralStrokeAccessible:"#9aa3b4",colorNeutralStrokeDisabled:"#4a5263",colorSubtleBackgroundHover:"#3f4655",colorSubtleBackgroundPressed:"#363c49",colorTransparentBackgroundHover:"#3f4655",colorNeutralShadowAmbient:"rgba(0, 0, 0, 0.18)",colorNeutralShadowKey:"rgba(0, 0, 0, 0.22)"},tu=e=>e?`${e.id}|${e.url}`:"";function GN(){const{settings:e,loaded:t,updateSettings:n}=tN(),{theme:i,refreshTheme:s}=rN(),{connection:l,refreshConnection:c}=nN(),d=Im(e.language),[f,h]=S.useState(null),[g,b]=S.useState(null),[x,m]=S.useState("metadata"),[y,w]=S.useState(null),[_,N]=S.useState("overview"),[E,z]=S.useState($a),[P,L]=S.useState(null),[T,D]=S.useState(!1),[O,q]=S.useState(!1),Q=S.useRef(""),{busy:X,run:$,stop:F,cancel:Z}=iN(se=>L({title:d.errorTitle,text:Dc(se),intent:"error"}),()=>D(!0)),oe=S.useMemo(()=>y&&SC(y),[y]),V=()=>{Z(),h(null),b(null),w(null),z($a),N("overview"),D(!1),L(null),Q.current=""};S.useEffect(()=>{document.documentElement.dataset.efaTheme=i},[i]),oN(async se=>{if(se==="settings:updated")s();else if(se.startsWith("connection:")){const re=tu(await c());Q.current&&re!==Q.current&&V()}});async function G(){D(!1);const se=await c();if(!se){L({title:d.noConnectionTitle,text:d.noConnection,intent:"warning"});return}Q.current&&Q.current!==tu(se)&&V(),Q.current=tu(se);const re=await $(d.loadingEntities,ce=>PC(ce));re&&(h(re),b(ce=>re.find(ye=>ye.logicalName===ce?.logicalName)??null))}async function I(se,re){D(!1),b(se);const ce=await $(d.analysing(se.displayName||se.logicalName),async(ye,ve)=>{ve(d.readingMetadata);const{fields:me,includesUnpublished:Ce}=await IC(se.logicalName,ye);let je=0;if(re==="usage"){ve(d.readingRecords(0));const ft=await VN(se,me,ye,Br=>ve(d.readingRecords(Br)));je=ft.records,me.forEach((Br,pr)=>{Br.filled=ft.filled[pr],Br.usage=je?ft.filled[pr]*100/je:0})}return{entity:se,mode:re,fields:me,records:je,includesUnpublished:Ce,analysedAt:new Date}});ce&&(w(ce),z($a),N("overview"))}async function J(){if(!y||!oe)return;D(!1);const se=new Date,re=l?`${l.name} (${l.url})`:"",ce=await $(d.exporting,async()=>(await new Promise(ye=>setTimeout(ye,30)),qN(y,oe,d,re,se)));if(ce)try{const ye=DN(y.entity.logicalName,se),ve=await window.toolboxAPI.fileSystem.saveFile(ye,ce,[{name:"Excel",extensions:["xlsx"]}]);ve&&L({title:d.exportedTitle,text:d.exported(ve),intent:"success"})}catch(ye){L({title:d.errorTitle,text:Dc(ye),intent:"error"})}}const Y=(se,re)=>{z({...$a,chip:se,drill:re}),N("fields")},j=()=>{y&&(m("usage"),I(y.entity,"usage"))},K=y&&g&&g.logicalName!==y.entity.logicalName;return C.jsx(Op,{theme:i==="dark"?WN:UN,children:C.jsx(Dm.Provider,{value:d,children:C.jsxs("div",{className:"efa-root",children:[C.jsxs("div",{className:"efa-shell",...X?{inert:""}:{},children:[C.jsx(UC,{connectionName:l?.name,language:e.language,busy:!!X||!t,canExport:!!y?.fields.length,onLoad:G,onExport:J,onHelp:()=>q(!0),onLanguage:se=>n({language:se})}),C.jsxs("main",{className:"efa-main",children:[C.jsx(DC,{entities:f,selected:g,filter:e.filter,mode:x,busy:!!X,onFilter:se=>n({filter:se}),onMode:m,onSelect:b,onAnalyse:se=>I(se,x)}),C.jsxs("div",{className:"efa-content",children:[C.jsxs("div",{className:"efa-context",children:[C.jsx("h1",{children:y?y.entity.displayName||y.entity.logicalName:Mm}),y&&C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"efa-badge",children:d.modes[y.mode]}),y.mode==="usage"&&C.jsx("span",{className:"efa-badge",children:d.recordsBadge(y.records)}),C.jsxs("span",{className:"efa-context-sub",children:[y.entity.logicalName," · ",d.analysedAt(y.analysedAt)]})]}),K&&C.jsx("span",{className:"efa-context-hint",children:d.switchHint(g.displayName||g.logicalName)})]}),T&&C.jsx("p",{className:"efa-note efa-note-warning",role:"status",children:d.stopped}),y&&!y.includesUnpublished&&C.jsx("p",{className:"efa-note efa-note-warning",children:d.publishedOnly}),C.jsxs(xm,{className:"efa-tabs",selectedValue:y?_:null,disabled:!y,onTabSelect:(se,re)=>N(re.value),children:[C.jsx(ni,{value:"overview",children:d.overview}),C.jsxs(ni,{value:"fields",children:[d.fields,oe&&C.jsx("span",{className:"efa-badge",children:d.N(oe.total)})]}),C.jsxs(ni,{value:"usage",children:[d.usage,oe&&y&&C.jsx("span",{className:"efa-badge",children:oe.hasUsage?y.records?d.unusedBadge(oe.unused):d.recordsBadge(0):d.notRun})]}),C.jsxs(ni,{value:"capacity",children:[d.capacity,oe&&C.jsx("span",{className:"efa-badge",children:d.P(oe.used*100/nt)})]})]}),!y||!oe?C.jsx(eN,{loaded:!!f,picked:!!g}):_==="overview"?C.jsx(XC,{insights:oe,openFields:Y,openCapacity:()=>N("capacity")}):_==="fields"?C.jsx(HC,{fields:y.fields,withUsage:oe.hasUsage&&y.records>0,filters:E,allColumns:e.allColumns,onFilters:z,onAllColumns:se=>n({allColumns:se})}):_==="usage"?C.jsx(JC,{insights:oe,analysis:y,openFields:Y,rerun:j}):C.jsx(ZC,{insights:oe,openFields:Y},y.analysedAt.getTime())]})]})]}),X&&C.jsx("div",{className:"efa-busy",role:"status","aria-live":"polite",children:C.jsxs("div",{className:"efa-busy-box",children:[C.jsx(Oa,{className:"efa-busy-logo"}),C.jsx("div",{className:"efa-busy-title",children:X.title}),X.text&&C.jsx("div",{className:"efa-busy-text",children:X.text}),C.jsxs("div",{className:"efa-busy-elapsed",children:[Math.floor((Date.now()-X.started)/1e3)," s"]}),C.jsx(cr,{autoFocus:!0,onClick:F,children:d.stop})]})}),C.jsx(EC,{message:P,onClose:()=>L(null)}),C.jsx(TC,{open:O,onClose:()=>q(!1)})]})})})}const ui=document.getElementById("root");ui&&!ui.hasAttribute("data-reactroot-initialized")?(ui.setAttribute("data-reactroot-initialized","true"),o1.createRoot(ui).render(C.jsx(S.StrictMode,{children:C.jsx(GN,{})}))):ui||console.error('Root element not found. Make sure the HTML contains <div id="root"></div>')})();