  :host(.expanded) > .items {
            display: block;
        }

        :host([disabled]) .content-region {
            opacity: ${g.VFZ};
            cursor: ${d.H};
        }

        :host(.nested) .content-region {
            position: relative;
            margin-inline-start: var(--expand-collapse-button-size);
        }

        :host(.nested) .expand-collapse-button {
            position: absolute;
        }

        :host(.nested) .expand-collapse-button:hover {
            background: ${x};
        }

        :host([selected]) .positioning-region {
            background: ${g.wFS};
        }

        :host([selected]) .expand-collapse-button:hover {
            background: ${w};
        }

        :host([selected])::after {
            content: "";
            display: block;
            position: absolute;
            top: calc((${v.i} / 4) * 1px);
            width: 3px;
            height: calc((${v.i} / 2) * 1px);
            ${""} background: ${g.goi};
            border-radius: calc(${g.UWU} * 1px);
        }

        ::slotted(fluent-tree-item) {
            --tree-item-nested-width: 1em;
            --expand-collapse-button-nested-width: calc(${v.i} * -1px);
        }
    `.withBehaviors(new p.O(u,f),(0,c.vF)(s.i`
                :host {
                    forced-color-adjust: none;
                    border-color: transparent;
                    background: ${h.H.Field};
                    color: ${h.H.FieldText};
                }
                :host .content-region {
                    color: ${h.H.FieldText};
                }
                :host .content-region .expand-collapse-glyph,
                :host .content-region .start,
                :host .content-region .end {
                    fill: ${h.H.FieldText};
                }
                :host .positioning-region:hover,
                :host([selected]) .positioning-region {
                    background: ${h.H.Highlight};
                }
                :host .positioning-region:hover .content-region,
                :host([selected]) .positioning-region .content-region {
                    color: ${h.H.HighlightText};
                }
                :host .positioning-region:hover .content-region .expand-collapse-glyph,
                :host .positioning-region:hover .content-region .start,
                :host .positioning-region:hover .content-region .end,
                :host([selected]) .content-region .expand-collapse-glyph,
                :host([selected]) .content-region .start,
                :host([selected]) .content-region .end {
                    fill: ${h.H.HighlightText};
                }
                :host([selected])::after {
                    background: ${h.H.Field};
                }
                :host(:${r.b}) .positioning-region {
                    border-color: ${h.H.FieldText};
                    box-shadow: 0 0 0 2px inset ${h.H.Field};
                    color: ${h.H.FieldText};
                }
                :host([disabled]) .content-region,
                :host([disabled]) .positioning-region:hover .content-region {
                    opacity: 1;
                    color: ${h.H.GrayText};
                }
                :host([disabled]) .content-region .expand-collapse-glyph,
                :host([disabled]) .content-region .start,
                :host([disabled]) .content-region .end,
                :host([disabled])
                    .positioning-region:hover
                    .content-region
                    .expand-collapse-glyph,
                :host([disabled]) .positioning-region:hover .content-region .start,
                :host([disabled]) .positioning-region:hover .content-region .end {
                    fill: ${h.H.GrayText};
                }
                :host([disabled]) .positioning-region:hover {
                    background: ${h.H.Field};
                }
                .expand-collapse-glyph,
                .start,
                .end {
                    fill: ${h.H.FieldText};
                }
                :host(.nested) .expand-collapse-button:hover {
                    background: ${h.H.Field};
                }
                :host(.nested) .expand-collapse-button:hover .expand-collapse-glyph {
                    fill: ${h.H.FieldText};
                }
            `)),expandCollapseGlyph:'\n    <svg\n        viewBox="0 0 16 16"\n        xmlns="http://www.w3.org/2000/svg"\n        class="expand-collapse-glyph"\n    >\n        <path\n            d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n        />\n    </svg>\n  '})},98593:function(e,t,i){"use strict";i.d(t,{wF:function(){return m}});var n=i(20005),a=i(12968),s=i(65620),o=i(87697),l=i(36153),r=i(67846),d=i(31702),c=i(48839);class h extends c.I{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1))return e.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&d.k.focusItem(this.currentFocused))):void(this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target))},this.handleBlur=e=>{e.target instanceof HTMLElement&&(null===e.relatedTarget||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const t=this.getVisibleNodes();switch(e.key){case l.tU:return void(t.length&&d.k.focusItem(t[0]));case l.Kh:return void(t.length&&d.k.focusItem(t[t.length-1]));case l.BE:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof d.k&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof d.k&&t.parentElement instanceof d.k&&d.k.focusItem(t.parentElement)}return!1;case l.mr:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof d.k&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof d.k&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case l.iF:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target));case l.SB:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target));case l.kL:return void this.handleClick(e)}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element&&(0,d.t)(e.target)))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):t.selected||this.currentSelected!==t||(this.currentSelected=null)},this.setItems=()=>{const e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((e=>{(0,d.t)(e)&&(e.nested=this.nested)}))},this.isFocusableElement=e=>(0,d.t)(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),a.SO.queueUpdate((()=>{this.setItems()}))}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element&&(0,d.t)(e.target)))return!0;const t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i)return;const n=i[i.indexOf(t)+e];(0,r.Re)(n)&&d.k.focusItem(n)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(this.isSelectedElement);return-1===t&&(t=e.findIndex(this.isFocusableElement)),-1!==t?e[t]:null}checkForNestedItems(){return this.slottedTreeItems.some((e=>(0,d.t)(e)&&e.querySelector("[role='treeitem']")))}getVisibleNodes(){return(0,r.UM)(this,"[role='treeitem']")||[]}}(0,n.gn)([(0,s.Lj)({attribute:"render-collapsed-nodes"})],h.prototype,"renderCollapsedNodes",void 0),(0,n.gn)([o.LO],h.prototype,"currentSelected",void 0),(0,n.gn)([o.LO],h.prototype,"slottedTreeItems",void 0);var v=i(39181),p=i(58952),g=i(90960);var u=i(53046),f=i(67020);const m=h.compose({baseName:"tree-view",template:(e,t)=>v.d`
    <template
        role="tree"
        ${(0,p.i)("treeView")}
        @keydown="${(e,t)=>e.handleKeyDown(t.event)}"
        @focusin="${(e,t)=>e.handleFocus(t.event)}"
        @focusout="${(e,t)=>e.handleBlur(t.event)}"
        @click="${(e,t)=>e.handleClick(t.event)}"
        @selected-change="${(e,t)=>e.handleSelectedChange(t.event)}"
    >
        <slot ${(0,g.Q)("slottedTreeItems")}></slot>
    </template>
`,styles:(e,t)=>u.i`
    :host([hidden]) {
        display: none;
    }

    ${(0,f.j)("flex")} :host {
        flex-direction: column;
        align-items: stretch;
        min-width: fit-content;
        font-size: 0;
    }

    :host:focus-visible {
        outline: none;
    }
`})},31702:function(e,t,i){"use strict";i.d(t,{k:function(){return h},t:function(){return c}});var n=i(20005),a=i(65620),s=i(87697),o=i(67846),l=i(51208),r=i(86076),d=i(48839);function c(e){return(0,o.Re)(e)&&"treeitem"===e.getAttribute("role")}class h extends d.I{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>c(this.parentElement),this.handleExpandCollapseButtonClick=e=>{this.disabled||e.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=e=>{this.setAttribute("tabindex","0")},this.handleBlur=e=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(e,t){this.$fastController.isConnected&&this.items.forEach((e=>{c(e)&&(e.nested=!0)}))}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){const e=this.childItems.filter((e=>c(e)));return e?e.length:0}}(0,n.gn)([(0,a.Lj)({mode:"boolean"})],h.prototype,"expanded",void 0),(0,n.gn)([(0,a.Lj)({mode:"boolean"})],h.prototype,"selected",void 0),(0,n.gn)([(0,a.Lj)({mode:"boolean"})],h.prototype,"disabled",void 0),(0,n.gn)([s.LO],h.prototype,"focusable",void 0),(0,n.gn)([s.LO],h.prototype,"childItems",void 0),(0,n.gn)([s.LO],h.prototype,"items",void 0),(0,n.gn)([s.LO],h.prototype,"nested",void 0),(0,n.gn)([s.LO],h.prototype,"renderCollapsedChildren",void 0),(0,r.e)(h,l.hW)},1550:function(e,t,i){"use strict";i.d(t,{W:function(){return c}});var n=i(39181),a=i(81422),s=i(74009),o=i(13988),l=i(58952),r=i(90960),d=i(51208);const c=(e,t)=>n.d`
    <template
        role="treeitem"
        slot="${e=>e.isNestedItem()?"item":void 0}"
        tabindex="-1"
        class="${e=>e.expanded?"expanded":""} ${e=>e.selected?"selected":""} ${e=>e.nested?"nested":""}
            ${e=>e.disabled?"disabled":""}"
        aria-expanded="${e=>e.childItems&&e.childItemLength()>0?e.expanded:void 0}"
        aria-selected="${e=>e.selected}"
        aria-disabled="${e=>e.disabled}"
        @focusin="${(e,t)=>e.handleFocus(t.event)}"
        @focusout="${(e,t)=>e.handleBlur(t.event)}"
        ${(0,a.p)({property:"childItems",filter:(0,s.R)()})}
    >
        <div class="positioning-region" part="positioning-region">
            <div class="content-region" part="content-region">
                ${(0,o.g)((e=>e.childItems&&e.childItemLength()>0),n.d`
                        <div
                            aria-hidden="true"
                            class="expand-collapse-button"
                            part="expand-collapse-button"
                            @click="${(e,t)=>e.handleExpandCollapseButtonClick(t.event)}"
                            ${(0,l.i)("expandCollapseButton")}
                        >
                            <slot name="expand-collapse-glyph">
                                ${t.expandCollapseGlyph||""}
                            </slot>
                        </div>
                    `)}
                ${(0,d.m9)(e,t)}
                <slot></slot>
                ${(0,d.LC)(e,t)}
            </div>
        </div>
        ${(0,o.g)((e=>e.childItems&&e.childItemLength()>0&&(e.expanded||e.renderCollapsedChildren)),n.d`
                <div role="group" class="items" part="items">
                    <slot name="item" ${(0,r.Q)("items")}></slot>
                </div>
            `)}
    </template>
`}}]);A
Eo