primer_view_components 0.51.5 → 0.51.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +4 -2
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.json +2 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +4 -1
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/select_panel.css +1 -1
- data/app/components/primer/alpha/select_panel.css.map +1 -1
- data/app/components/primer/alpha/skeleton_box.css +1 -1
- data/app/components/primer/alpha/skeleton_box.css.map +1 -1
- data/app/components/primer/alpha/stack.css +1 -1
- data/app/components/primer/alpha/stack.css.map +1 -1
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/tree_view/sub_tree_node.rb +1 -1
- data/app/components/primer/alpha/tree_view/visual.rb +1 -1
- data/app/components/primer/alpha/tree_view.css +1 -1
- data/app/components/primer/alpha/tree_view.css.json +2 -1
- data/app/components/primer/alpha/tree_view.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/beta/avatar.css +1 -1
- data/app/components/primer/beta/avatar.css.map +1 -1
- data/app/components/primer/beta/avatar_stack.css +1 -1
- data/app/components/primer/beta/avatar_stack.css.map +1 -1
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/breadcrumbs.css +1 -1
- data/app/components/primer/beta/breadcrumbs.css.map +1 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button_group.css +1 -1
- data/app/components/primer/beta/button_group.css.map +1 -1
- data/app/components/primer/beta/button_group.rb +1 -1
- data/app/components/primer/beta/counter.css +1 -1
- data/app/components/primer/beta/counter.css.map +1 -1
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/label.css +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/progress_bar.css +1 -1
- data/app/components/primer/beta/progress_bar.css.map +1 -1
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/subhead.css +1 -1
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/timeline_item.css +1 -1
- data/app/components/primer/beta/timeline_item.css.map +1 -1
- data/app/components/primer/beta/truncate.css +1 -1
- data/app/components/primer/beta/truncate.css.map +1 -1
- data/app/components/primer/dialog_helper.js +10 -1
- data/app/components/primer/dialog_helper.ts +16 -1
- data/app/lib/primer/forms/acts_as_component.rb +1 -1
- data/app/lib/primer/forms/toggle_switch_form.rb +1 -1
- data/lib/primer/form_components.rb +1 -1
- data/lib/primer/view_components/version.rb +1 -1
- metadata +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";var t,e,i,n,s,o,r,a,l=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},c=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i};const d=new WeakMap;let h=null;class IncludeFragmentElement extends HTMLElement{constructor(){super(...arguments),t.add(this),e.set(this,!1),i.set(this,new IntersectionObserver((e=>{for(const s of e)if(s.isIntersecting){const{target:e}=s;if(l(this,i,"f").unobserve(e),!(e instanceof IncludeFragmentElement))return;"lazy"===e.loading&&l(this,t,"m",n).call(this)}}),{rootMargin:"0px 0px 256px 0px",threshold:.01}))}static define(t="include-fragment",e=customElements){return e.define(t,this),this}static setCSPTrustedTypesPolicy(t){h=null===t?t:Promise.resolve(t)}static get observedAttributes(){return["src","loading"]}get src(){const t=this.getAttribute("src");if(t){const e=this.ownerDocument.createElement("a");return e.href=t,e.href}return""}set src(t){this.setAttribute("src",t)}get loading(){return"lazy"===this.getAttribute("loading")?"lazy":"eager"}set loading(t){this.setAttribute("loading",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get data(){return l(this,t,"m",o).call(this)}attributeChangedCallback(e,i){"src"===e?this.isConnected&&"eager"===this.loading&&l(this,t,"m",n).call(this):"loading"===e&&this.isConnected&&"eager"!==i&&"eager"===this.loading&&l(this,t,"m",n).call(this)}connectedCallback(){if(!this.shadowRoot){this.attachShadow({mode:"open"});const t=document.createElement("style");t.textContent=":host {display: block;}",this.shadowRoot.append(t,document.createElement("slot"))}this.src&&"eager"===this.loading&&l(this,t,"m",n).call(this),"lazy"===this.loading&&l(this,i,"f").observe(this)}request(){const t=this.src;if(!t)throw new Error("missing src");return new Request(t,{method:"GET",credentials:"same-origin",headers:{Accept:this.accept||"text/html"}})}load(){return l(this,t,"m",o).call(this)}fetch(t){return fetch(t)}refetch(){d.delete(this),l(this,t,"m",n).call(this)}}e=new WeakMap,i=new WeakMap,t=new WeakSet,n=async function(){if(!l(this,e,"f")){c(this,e,!0,"f"),l(this,i,"f").unobserve(this);try{const i=await l(this,t,"m",s).call(this);if(i instanceof Error)throw i;const n=i,o=document.createElement("template");o.innerHTML=n;const r=document.importNode(o.content,!0);if(!this.dispatchEvent(new CustomEvent("include-fragment-replace",{cancelable:!0,detail:{fragment:r}})))return void c(this,e,!1,"f");this.replaceWith(r),this.dispatchEvent(new CustomEvent("include-fragment-replaced"))}catch(t){this.classList.add("is-error")}finally{c(this,e,!1,"f")}}},s=async function(){const e=this.src,i=d.get(this);if(i&&i.src===e)return i.data;{let i;return i=e?l(this,t,"m",a).call(this):Promise.reject(new Error("missing src")),d.set(this,{src:e,data:i}),i}},o=async function(){const e=await l(this,t,"m",s).call(this);if(e instanceof Error)throw e;return e.toString()},r=async function(t,e){await new Promise((t=>setTimeout(t,0)));for(const i of t)this.dispatchEvent(e?new CustomEvent(i,{detail:{error:e}}):new Event(i))},a=async function(){try{await l(this,t,"m",r).call(this,["loadstart"]);const i=await this.fetch(this.request()),n=i.headers.get("Content-Type");if(!(e=this.accept,e&&e.split(",").find((t=>t.match(/^\s*\*\/\*/)))||n&&n.includes(this.accept?this.accept:"text/html")))throw new Error(`Failed to load resource: expected ${this.accept||"text/html"} but was ${n}`);if(200!==i.status)throw new Error(`Failed to load resource: the server responded with a status of ${i.status}`);const s=await i.text();let o=s;if(h){o=(await h).createHTML(s,i)}return l(this,t,"m",r).call(this,["load","loadend"]),o}catch(e){throw l(this,t,"m",r).call(this,["error","loadend"],e),e}var e};const u="undefined"!=typeof globalThis?globalThis:window;try{u.IncludeFragmentElement=IncludeFragmentElement.define()}catch(t){if(!(u.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}const m=new WeakMap;class RemoteInputElement extends HTMLElement{constructor(){super();const t=f.bind(null,this,!0),e={currentQuery:null,oninput:p((e=>t(e))),fetch:t,controller:null};m.set(this,e)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e){e&&"src"===t&&f(this,!1)}connectedCallback(){const t=this.input;if(!t)return;t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false");const e=m.get(this);e&&(t.addEventListener("focus",e.fetch),t.addEventListener("change",e.fetch),t.addEventListener("input",e.oninput))}disconnectedCallback(){const t=this.input;if(!t)return;const e=m.get(this);e&&(t.removeEventListener("focus",e.fetch),t.removeEventListener("change",e.fetch),t.removeEventListener("input",e.oninput))}get input(){const t=this.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}}async function f(t,e,i){const n=t.input;if(!n)return;const s=m.get(t);if(!s)return;const o=n.value;if(e&&s.currentQuery===o)return;s.currentQuery=o;const r=t.src;if(!r)return;const a=document.getElementById(t.getAttribute("aria-owns")||"");if(!a)return;const l=new URL(r,window.location.href),c=new URLSearchParams(l.search);let d;c.append(t.getAttribute("param")||"q",o),l.search=c.toString(),s.controller?s.controller.abort():(t.dispatchEvent(new CustomEvent("loadstart")),t.setAttribute("loading","")),s.controller="AbortController"in window?new AbortController:{signal:null,abort(){}};let h="";try{d=await async function(t,e,i){try{const n=await fetch(e,i);return t.dispatchEvent(new CustomEvent("load")),t.dispatchEvent(new CustomEvent("loadend")),n}catch(e){throw e instanceof Error&&"AbortError"!==(null==e?void 0:e.name)&&(t.dispatchEvent(new CustomEvent("error")),t.dispatchEvent(new CustomEvent("loadend"))),e}}(t,l.toString(),{signal:s.controller.signal,credentials:"same-origin",headers:{accept:"text/fragment+html"}}),h=await d.text(),t.removeAttribute("loading"),s.controller=null}catch(e){return void(e instanceof Error&&"AbortError"!==e.name&&(t.removeAttribute("loading"),s.controller=null))}d&&d.ok?(a.innerHTML=h,t.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0,detail:{eventType:i?i.type:void 0}}))):t.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0}))}function p(t){let e;return function(i){clearTimeout(e),e=setTimeout((()=>{clearTimeout(e),t(i)}),300)}}function g(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}function b(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)}function v(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i}window.customElements.get("remote-input")||(window.RemoteInputElement=RemoteInputElement,window.customElements.define("remote-input",RemoteInputElement)),"function"==typeof SuppressedError&&SuppressedError;const w=new WeakSet;function y(t){L(t),A(t)}const E=new WeakMap;function A(t=document){if(E.has(t))return E.get(t);let e=!1;const i=new MutationObserver((t=>{for(const e of t)if("attributes"===e.type&&e.target instanceof Element)S(e.target);else if("childList"===e.type&&e.addedNodes.length)for(const t of e.addedNodes)t instanceof Element&&L(t)}));i.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});const n={get closed(){return e},unsubscribe(){e=!0,E.delete(t),i.disconnect()}};return E.set(t,n),n}function L(t){for(const e of t.querySelectorAll("[data-action]"))S(e);t instanceof Element&&t.hasAttribute("data-action")&&S(t)}function k(t){const e=t.currentTarget;for(const i of T(e))if(t.type===i.type){const n=e.closest(i.tag);w.has(n)&&"function"==typeof n[i.method]&&n[i.method](t);const s=e.getRootNode();if(s instanceof ShadowRoot&&w.has(s.host)&&s.host.matches(i.tag)){const e=s.host;"function"==typeof e[i.method]&&e[i.method](t)}}}function*T(t){for(const e of(t.getAttribute("data-action")||"").trim().split(/\s+/)){const t=e.lastIndexOf(":"),i=Math.max(0,e.lastIndexOf("#"))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,i),method:e.slice(i+1)||"handleEvent"}||"handleEvent"}}function S(t){for(const e of T(t))t.addEventListener(e.type,k)}const C=t=>String("symbol"==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),x=(t,e="property")=>{const i=C(t);if(!i.includes("-"))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,"SyntaxError");return i};const M="attr";function I(t,e){_(t,M).add(e)}const D=new WeakSet;function P(t,e){if(D.has(t))return;D.add(t);const i=Object.getPrototypeOf(t),n=i?.constructor?.attrPrefix??"data-";e||(e=_(i,M));for(const i of e){const e=t[i],s=x(`${n}${i}`);let o={configurable:!0,get(){return this.getAttribute(s)||""},set(t){this.setAttribute(s,t||"")}};"number"==typeof e?o={configurable:!0,get(){return Number(this.getAttribute(s)||0)},set(t){this.setAttribute(s,t)}}:"boolean"==typeof e&&(o={configurable:!0,get(){return this.hasAttribute(s)},set(t){this.toggleAttribute(s,t)}}),Object.defineProperty(t,i,o),i in t&&!t.hasAttribute(s)&&o.set.call(t,e)}}const O=new Map,H=new Promise((t=>{"loading"!==document.readyState?t():document.addEventListener("readystatechange",(()=>t()),{once:!0})})),N=new Promise((t=>{const e=new AbortController;e.signal.addEventListener("abort",(()=>t()));const i={once:!0,passive:!0,signal:e.signal},n=()=>e.abort();document.addEventListener("mousedown",n,i),document.addEventListener("touchstart",n,i),document.addEventListener("keydown",n,i),document.addEventListener("pointerdown",n,i)})),F={ready:()=>H,firstInteraction:()=>N,visible:t=>new Promise((e=>{const i=new IntersectionObserver((t=>{for(const n of t)if(n.isIntersecting)return e(),void i.disconnect()}),{rootMargin:"0px 0px 256px 0px",threshold:.01});for(const e of document.querySelectorAll(t))i.observe(e)}))},R=new Set;let q,W=null;function V(t){R.add(t),null==W&&(W=requestAnimationFrame((()=>{W=null;const t=new Set(R);if(R.clear(),O.size)t:for(const e of t)for(const t of O.keys()){const i=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||i){const e=i?.getAttribute("data-load-on")||"ready",n=e in F?F[e]:F.ready;for(const e of O.get(t)||[])n(t).then(e);if(O.delete(t),!O.size)break t}}})))}const B=Symbol.for("catalyst");class ${constructor(t,e){const i=this,n=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){i.connectedCallback(this,n)};const s=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){i.disconnectedCallback(this,s)};const o=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,n){i.attributeChangedCallback(this,t,e,n,o)};let r=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return i.observedAttributes(this,r)},set(t){r=t}}),function(t){let e=t.observedAttributes||[];const i=t.attrPrefix??"data-",n=t=>x(`${i}${t}`);Object.defineProperty(t,"observedAttributes",{configurable:!0,get:()=>[..._(t.prototype,M)].map(n).concat(e),set(t){e=t}})}(t),function(t,e){const i=e||C(t.name).replace(/-element$/,"");try{window.customElements.define(i,t),window[t.name]=customElements.get(i)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),function(t){for(const e of t.querySelectorAll("template[data-shadowroot]"))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).append(e.content.cloneNode(!0))}(t),P(t),function(t){w.add(t),t.shadowRoot&&y(t.shadowRoot),L(t),A(t.ownerDocument)}(t),e?.call(t),t.shadowRoot&&(y(t.shadowRoot),function(t){q||(q=new MutationObserver((t=>{if(O.size)for(const e of t)for(const t of e.addedNodes)t instanceof Element&&V(t)}))),V(t),q.observe(t,{subtree:!0,childList:!0})}(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,i,n,s){P(t),"data-catalyst"!==e&&s&&s.call(t,e,i,n)}}function _(t,e){if(!Object.prototype.hasOwnProperty.call(t,B)){const e=t[B],i=t[B]=new Map;if(e)for(const[t,n]of e)i.set(t,new Set(n))}const i=t[B];return i.has(e)||i.set(e,new Set),i.get(e)}function U(t,e){_(t,"target").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return function(t,e){const i=t.tagName.toLowerCase();if(t.shadowRoot)for(const n of t.shadowRoot.querySelectorAll(`[data-target~="${i}.${e}"]`))if(!n.closest(i))return n;for(const n of t.querySelectorAll(`[data-target~="${i}.${e}"]`))if(n.closest(i)===t)return n}(this,e)}})}function j(t,e){_(t,"targets").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return function(t,e){const i=t.tagName.toLowerCase(),n=[];if(t.shadowRoot)for(const s of t.shadowRoot.querySelectorAll(`[data-targets~="${i}.${e}"]`))s.closest(i)||n.push(s);for(const s of t.querySelectorAll(`[data-targets~="${i}.${e}"]`))s.closest(i)===t&&n.push(s);return n}(this,e)}})}function K(t){if("string"==typeof t)return e=>{new $(e,t)};new $(t)}var z;class Y{constructor(t){this.resizeObserver=new ResizeObserver((t=>{for(const e of t){const t=e.target;t instanceof HTMLElement&&this.update(t)}})),this.resizeObserver.observe(t)}unobserve(t){this.resizeObserver.unobserve(t)}update(t){const e=t.querySelectorAll("li");for(const t of e){const e=t.querySelector(".ActionListItem-label");if(!e)continue;const i=t.querySelector(".ActionListItem-truncationTooltip");if(!i)continue;const n=e.scrollWidth>e.clientWidth;i.style.display=n?"":"none"}}}let Z=class ActionListElement extends HTMLElement{constructor(){super(...arguments),z.set(this,void 0)}connectedCallback(){v(this,z,new Y(this),"f")}disconnectedCallback(){b(this,z,"f").unobserve(this)}};z=new WeakMap,Z=g([K("action-list")],Z);const G={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},J={start:["end","center"],end:["start","center"],center:["end","start"]};function X(t,e,i={}){const{positionedParent:n,clippingNode:s,positionedParentStyle:o,clippingNodeStyle:r}=function(t){if(function(t){var e;if("DIALOG"===t.tagName)return!0;try{if(t.matches(":popover-open")&&/native code/.test(null===(e=document.body.showPopover)||void 0===e?void 0:e.toString()))return!0}catch(t){return!1}return!1}(t))return{positionedParent:document.body,clippingNode:document.body,positionedParentStyle:null,clippingNodeStyle:null};let e=null,i=null,n=null,s=null,o=t.parentNode;for(;null!==o&&o!==document.body;){if(o instanceof HTMLElement){const t=getComputedStyle(o);if(e||"static"===t.position||(e=o,n=t),i||"visible"===t.overflow||(i=o,s=t),e&&i)break}o=o.parentNode}return{positionedParent:null!=e?e:document.body,clippingNode:null!=i?i:document.body,positionedParentStyle:n,clippingNodeStyle:s}}(t),a=function(t,e=null){const i=t.getBoundingClientRect(),n=e||getComputedStyle(t),s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0;return{top:i.top+s,left:i.left+o,width:i.width-r-o,height:Math.max(i.height-s-a,t===document.body?window.innerHeight:-1/0)}}(s,r),l=o||getComputedStyle(n),c=n.getBoundingClientRect(),[d,h]=[l.borderTopWidth,l.borderLeftWidth].map((t=>parseInt(t,10)||0));return function(t,e,i,n,{side:s,align:o,allowOutOfBounds:r,anchorOffset:a,alignmentOffset:l,displayInViewport:c},d){let h=t;c&&(h={top:0,left:0,width:d.width,height:d.height});const u={top:h.top-e.top,left:h.left-e.left,width:h.width,height:h.height};let m=tt(i,n,s,o,a,l),f=s,p=o;if(m.top-=e.top,m.left-=e.left,!r){const t=G[s];let r=0;if(t){let c=s;for(;r<t.length&&et(c,m,u,i);){const s=t[r++];c=s,m=tt(i,n,s,o,a,l),m.top-=e.top,m.left-=e.left,f=s}}const d=J[o];let g=0;if(d){let t=o;for(;g<d.length&&it(t,m,u,i);){const s=d[g++];t=s,m=tt(i,n,f,s,a,l),m.top-=e.top,m.left-=e.left,p=s}}m.top<u.top&&(m.top=u.top),m.left<u.left&&(m.left=u.left),m.left+i.width>h.width+u.left&&(m.left=h.width+u.left-i.width),(c||t&&r<t.length)&&m.top+i.height>h.height+u.top&&(m.top=Math.max(h.height+u.top-i.height,0))}return Object.assign(Object.assign({},m),{anchorSide:f,anchorAlign:p})}(a,{top:c.top+d,left:c.left+h},t.getBoundingClientRect(),e instanceof Element?e.getBoundingClientRect():e,function(t={}){var e,i,n,s,o,r;const a=null!==(e=t.side)&&void 0!==e?e:Q.side,l=null!==(i=t.align)&&void 0!==i?i:Q.align;return{side:a,align:l,anchorOffset:null!==(n=t.anchorOffset)&&void 0!==n?n:"inside-center"===a?0:Q.anchorOffset,alignmentOffset:null!==(s=t.alignmentOffset)&&void 0!==s?s:"center"!==l&&a.startsWith("inside")?Q.alignmentOffset:0,allowOutOfBounds:null!==(o=t.allowOutOfBounds)&&void 0!==o?o:Q.allowOutOfBounds,displayInViewport:null!==(r=t.displayInViewport)&&void 0!==r?r:Q.displayInViewport}}(i),{width:window.innerWidth,height:window.innerHeight})}const Q={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1,displayInViewport:!1};function tt(t,e,i,n,s,o){const r=e.left+e.width,a=e.top+e.height;let l=-1,c=-1;return"outside-top"===i?l=e.top-s-t.height:"outside-bottom"===i?l=a+s:"outside-left"===i?c=e.left-s-t.width:"outside-right"===i&&(c=r+s),"outside-top"!==i&&"outside-bottom"!==i||(c="start"===n?e.left+o:"center"===n?e.left-(t.width-e.width)/2+o:r-t.width-o),"outside-left"!==i&&"outside-right"!==i||(l="start"===n?e.top+o:"center"===n?e.top-(t.height-e.height)/2+o:a-t.height-o),"inside-top"===i?l=e.top+s:"inside-bottom"===i?l=a-s-t.height:"inside-left"===i?c=e.left+s:"inside-right"===i?c=r-s-t.width:"inside-center"===i&&(c=(r+e.left)/2-t.width/2+s),"inside-top"===i||"inside-bottom"===i?c="start"===n?e.left+o:"center"===n?e.left-(t.width-e.width)/2+o:r-t.width-o:"inside-left"!==i&&"inside-right"!==i&&"inside-center"!==i||(l="start"===n?e.top+o:"center"===n?e.top-(t.height-e.height)/2+o:a-t.height-o),{top:l,left:c}}function et(t,e,i,n){return"outside-top"===t||"outside-bottom"===t?e.top<i.top||e.top+n.height>i.height+i.top:e.left<i.left||e.left+n.width>i.width+i.left}function it(t,e,i,n){return"end"===t?e.left<i.left:"start"===t||"center"===t?e.left+n.width>i.left+i.width||e.left<i.left:void 0}function*nt(t,e={}){var i,n;const s=null!==(i=e.strict)&&void 0!==i&&i,o=null!==(n=e.onlyTabbable)&&void 0!==n&&n?at:rt,r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>t instanceof HTMLElement&&o(t,s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let a=null;if(!e.reverse&&o(t,s)&&(yield t),e.reverse){let t=r.lastChild();for(;t;)a=t,t=r.lastChild()}else a=r.firstChild();for(;a instanceof HTMLElement;)yield a,a=e.reverse?r.previousNode():r.nextNode();e.reverse&&o(t,s)&&(yield t)}function st(t,e=!1){return nt(t,{reverse:e,strict:!0,onlyTabbable:!0}).next().value}const ot=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"]);function rt(t,e=!1){if(t.hidden)return!1;if(t.classList.contains("sentinel"))return!1;if(t instanceof HTMLInputElement&&"hidden"===t.type)return!1;if(ot.has(t.tagName)&&t.disabled)return!1;if(e){const e=t.offsetWidth,i=t.offsetHeight,n=t.offsetParent;if(0===e||0===i)return!1;const s=getComputedStyle(t);if("none"===s.display)return!1;if("hidden"===s.visibility||"collapse"===s.visibility)return!1;const o=s.position;if(!n&&"fixed"!==o&&"sticky"!==o)return!1;if(0===t.getClientRects().length)return!1}return null!=t.getAttribute("tabindex")||("true"===t.getAttribute("contenteditable")||"plaintext-only"===t.getAttribute("contenteditable")||!(t instanceof HTMLAnchorElement&&null==t.getAttribute("href"))&&-1!==t.tabIndex)}function at(t,e=!1){return rt(t,e)&&"-1"!==t.getAttribute("tabindex")}let lt=!1;function ct(){}try{const t=Object.create({},{signal:{get(){lt=!0}}});window.addEventListener("test",ct,t),window.removeEventListener("test",ct,t)}catch(t){}function dt(){lt||(!function(){if("undefined"==typeof window)return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,i,n){return"object"==typeof n&&"signal"in n&&n.signal instanceof AbortSignal&&t.call(n.signal,"abort",(()=>{this.removeEventListener(e,i,n)})),t.call(this,e,i,n)}}(),lt=!0)}dt();const ht=[];let ut;const mt="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0";function ft({onFocus:t}){const e=document.createElement("span");return e.setAttribute("class","sentinel"),e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.style.cssText=mt,e.onfocus=t,e}function pt(t,e,i){const n=new AbortController,s=null!=i?i:n.signal;t.setAttribute("data-focus-trap","active");const o=ft({onFocus:()=>{const e=st(t,!0);null==e||e.focus()}}),r=ft({onFocus:()=>{const e=st(t);null==e||e.focus()}});null!==t.querySelector(":scope > span.sentinel")||(t.prepend(o),t.append(r));const a=function(t,e){const i=new MutationObserver((i=>{for(const n of i)if("childList"===n.type&&n.addedNodes.length){for(const t of n.addedNodes)if(t instanceof HTMLElement&&"SPAN"===t.tagName&&t.classList.contains("sentinel"))return;const i=t.firstElementChild,s=t.lastElementChild,[o,r]=e;(null==i?void 0:i.classList.contains("sentinel"))||t.insertAdjacentElement("afterbegin",o),(null==s?void 0:s.classList.contains("sentinel"))||t.insertAdjacentElement("beforeend",r)}}));return i.observe(t,{childList:!0}),i}(t,[o,r]);let l;function c(i){if(i instanceof HTMLElement&&document.contains(t)){if(t.contains(i))return void(l=i);if(l&&at(l)&&t.contains(l))return void l.focus();if(e&&t.contains(e))return void e.focus();{const e=st(t);return void(null==e||e.focus())}}}const d=function(t){const e=new AbortController;return t.addEventListener("abort",(()=>{e.abort()})),e}(s);if(ut){const t=ut;ut.container.setAttribute("data-focus-trap","suspended"),ut.controller.abort(),ht.push(t)}d.signal.addEventListener("abort",(()=>{ut=void 0})),s.addEventListener("abort",(()=>{t.removeAttribute("data-focus-trap");const e=t.getElementsByClassName("sentinel");for(;e.length>0;)e[0].remove();const i=ht.findIndex((e=>e.container===t));i>=0&&ht.splice(i,1),a.disconnect(),function(){const t=ht.pop();t&&pt(t.container,t.initialFocus,t.originalSignal)}()})),document.addEventListener("focus",(t=>{c(t.target)}),{signal:d.signal,capture:!0}),c(document.activeElement),ut={container:t,controller:d,initialFocus:e,originalSignal:s};const h=ht.findIndex((e=>e.container===t));if(h>=0&&ht.splice(h,1),!i)return n}let gt;function bt(){return void 0===gt&&(gt=/^mac/i.test(window.navigator.platform)),gt}let vt=1e4;const wt=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);class yt{constructor(){this._items=[],this._itemSet=new Set,this._indexMap=new Map}insertAt(t,e){let i;if(e.length<=100)i=e.filter(((t,e,i)=>!this._itemSet.has(t)&&i.indexOf(t)===e));else{const t=new Set;i=[];for(let n=0;n<e.length;n++){const s=e[n];this._itemSet.has(s)||t.has(s)||(t.add(s),i.push(s))}}if(0===i.length)return;const n=Math.max(0,Math.min(t,this._items.length));if(n!==this._items.length)if(0!==n){for(let t=this._items.length-1;t>=n;t--)this._indexMap.set(this._items[t],t+i.length);i.length<=1e4?this._items.splice(n,0,...i):this._chunkedInsert(n,i);for(let t=0;t<i.length;t++){const e=i[t];this._itemSet.add(e),this._indexMap.set(e,n+t)}}else{for(let t=0;t<this._items.length;t++)this._indexMap.set(this._items[t],t+i.length);i.length<=1e4?this._items.splice(0,0,...i):this._chunkedInsert(0,i);for(let t=0;t<i.length;t++)this._itemSet.add(i[t]),this._indexMap.set(i[t],t)}else for(let t=0;t<i.length;t++){const e=i[t];this._indexMap.set(e,this._items.length),this._items.push(e),this._itemSet.add(e)}}_chunkedInsert(t,e){for(let i=0;i<e.length;i+=1e4){const n=e.slice(i,i+1e4);this._items.splice(t+i,0,...n)}}delete(t){if(!this._itemSet.has(t))return!1;const e=this._indexMap.get(t);this._items.splice(e,1),this._itemSet.delete(t),this._indexMap.delete(t);for(let t=e;t<this._items.length;t++)this._indexMap.set(this._items[t],t);return!0}has(t){return this._itemSet.has(t)}indexOf(t){var e;return null!==(e=this._indexMap.get(t))&&void 0!==e?e:-1}get(t){return this._items[t]}get size(){return this._items.length}[Symbol.iterator](){return this._items[Symbol.iterator]()}clear(){this._items=[],this._itemSet.clear(),this._indexMap.clear()}find(t){return this._items.find(t)}}var Et;dt(),function(t){t[t.ArrowHorizontal=1]="ArrowHorizontal",t[t.ArrowVertical=2]="ArrowVertical",t[t.JK=4]="JK",t[t.HL=8]="HL",t[t.HomeAndEnd=16]="HomeAndEnd",t[t.PageUpDown=256]="PageUpDown",t[t.WS=32]="WS",t[t.AD=64]="AD",t[t.Tab=128]="Tab",t[t.Backspace=512]="Backspace",t[t.ArrowAll=3]="ArrowAll",t[t.HJKL=12]="HJKL",t[t.WASD=96]="WASD",t[t.All=511]="All"}(Et||(Et={}));const At={ArrowLeft:Et.ArrowHorizontal,ArrowDown:Et.ArrowVertical,ArrowUp:Et.ArrowVertical,ArrowRight:Et.ArrowHorizontal,h:Et.HL,j:Et.JK,k:Et.JK,l:Et.HL,a:Et.AD,s:Et.WS,w:Et.WS,d:Et.AD,Tab:Et.Tab,Home:Et.HomeAndEnd,End:Et.HomeAndEnd,PageUp:Et.PageUpDown,PageDown:Et.PageUpDown,Backspace:Et.Backspace},Lt={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function kt(t){const e=Lt[t.key];if("Tab"===t.key&&t.shiftKey)return"previous";const i=bt();if(i&&t.metaKey||!i&&t.ctrlKey){if("ArrowLeft"===t.key||"ArrowUp"===t.key)return"start";if("ArrowRight"===t.key||"ArrowDown"===t.key)return"end"}return e}function Tt(t,e){const i=t.key,n=1===i.length||2===i.length&&i.charCodeAt(0)>=55296&&i.charCodeAt(0)<=56319,s=function(t){var e,i;if(!(t instanceof HTMLElement))return!1;const n=t.nodeName.toLowerCase(),s=null!==(i=null===(e=t.getAttribute("type"))||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"text",o="true"===t.ariaReadOnly||"true"===t.getAttribute("aria-readonly")||null!==t.getAttribute("readonly");return("select"===n||"textarea"===n||"input"===n&&!wt.has(s)||t.isContentEditable)&&!o}(e),o=e instanceof HTMLSelectElement;if(s&&(n||"Home"===i||"End"===i))return!0;if(o){const e=bt();return!("ArrowDown"!==i||!e||t.metaKey)||!("ArrowDown"!==i||e||!t.altKey)}if(s&&!o){const t=e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement,n=t&&0===e.selectionStart&&0===e.selectionEnd,s=t&&e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===i&&!n)return!0;if("ArrowRight"===i&&!s)return!0;const o=e instanceof HTMLElement&&e.isContentEditable;if(e instanceof HTMLTextAreaElement||o){if("PageUp"===i||"PageDown"===i)return!0;if("ArrowUp"===i&&!n)return!0;if("ArrowDown"===i&&!s)return!0}}return!1}const St="data-is-active-descendant",Ct="activated-directly",xt="activated-indirectly",Mt="data-has-active-descendant";function It(t,e){var i,n,s,o,r,a,l;const c=new yt,d=new WeakMap,h=null!==(i=null==e?void 0:e.bindKeys)&&void 0!==i?i:((null==e?void 0:e.getNextFocusable)?Et.ArrowAll:Et.ArrowVertical)|Et.HomeAndEnd,u=null!==(n=null==e?void 0:e.focusOutBehavior)&&void 0!==n?n:"stop",m=null!==(s=null==e?void 0:e.focusInStrategy)&&void 0!==s?s:"previous",f=null==e?void 0:e.activeDescendantControl,p=null==e?void 0:e.onActiveDescendantChanged,g=null!==(o=null==e?void 0:e.ignoreHoverEvents)&&void 0!==o&&o,b=null!==(r=null==e?void 0:e.focusPrependedElements)&&void 0!==r&&r;let v,w=!1;const y=null!==(a=null==e?void 0:e.preventScroll)&&void 0!==a&&a,E="initial"===m&&(null==e?void 0:e.activeDescendantControl);function A(){return c.get(0)}function L(t,e=!1){const i=v;v=t,w=e,f?t&&document.activeElement===f?k(i,t,e):T():(i&&i!==t&&d.has(i)&&i.setAttribute("tabindex","-1"),null==t||t.setAttribute("tabindex","0"))}function k(e,i,n=!1){i.id||i.setAttribute("id","__primer_id_"+vt++),e&&e!==i&&e.removeAttribute(St),f&&(n||f.getAttribute("aria-activedescendant")!==i.id)&&(f.setAttribute("aria-activedescendant",i.id),t.setAttribute(Mt,i.id),i.setAttribute(St,n?Ct:xt),null==p||p(i,e,n))}function T(e=v){"first"===m&&(v=void 0),null==f||f.removeAttribute("aria-activedescendant"),t.removeAttribute(Mt),null==e||e.removeAttribute(St);const i=t.querySelectorAll(`[${St}]`);for(let t=0;t<i.length;t++)i[t].removeAttribute(St);null==p||p(void 0,e,!1)}function S(...t){const i=(null==e?void 0:e.focusableElementFilter)?t.filter((t=>e.focusableElementFilter(t))):t;if(0===i.length)return;const n=function(t){const e=t[0];if(0===c.size)return 0;let i=0,n=c.size-1;for(;i<=n;){const t=Math.floor((i+n)/2);x(e,c.get(t))?n=t-1:i=t+1}return i}(i);c.insertAt(n,i);for(const t of i)d.has(t)||d.set(t,t.getAttribute("tabindex")),t.setAttribute("tabindex","-1");!E&&(b&&0===n&&!w)?C():E||v||L(A())}function C(){const e=[...nt(t,I)];c.clear(),c.insertAt(0,e);for(const t of e)d.has(t)||d.set(t,t.getAttribute("tabindex")),t.setAttribute("tabindex","-1");L(A())}function x(t,e){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)>0}function M(...t){for(const e of t){c.delete(e);const t=d.get(e);if(void 0!==t&&(null===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),d.delete(e)),e===v){L(A())}}}const I={reverse:null==e?void 0:e.reverse,strict:null==e?void 0:e.strict,onlyTabbable:null==e?void 0:e.onlyTabbable};S(...nt(t,I));const D="function"==typeof m?m(document.body):A();E||L(D);const P=new MutationObserver((t=>{const e=new Set,i=new Set,n=new Set,s=new Set;for(const o of t)if("childList"===o.type){for(const t of o.removedNodes)t instanceof HTMLElement&&e.add(t);for(const t of o.addedNodes)t instanceof HTMLElement&&i.add(t)}else if("attributes"===o.type&&o.target instanceof HTMLElement){const t=o.attributeName;!!t&&o.target.hasAttribute(t)?n.add(o.target):s.add(o.target)}if(e.size>0){const t=[];for(const i of e)for(const e of nt(i))t.push(e);t.length>0&&M(...t)}if(n.size>0&&M(...n),i.size>0){const t=[];for(const e of i)for(const i of nt(e,I))t.push(i);t.length>0&&(b?C():S(...t))}s.size>0&&S(...s)}));P.observe(t,{subtree:!0,childList:!0,attributeFilter:["hidden","disabled"],attributeOldValue:!0});const O=new AbortController,H=null!==(l=null==e?void 0:e.abortSignal)&&void 0!==l?l:O.signal;let N;H.addEventListener("abort",(()=>{P.disconnect(),M(...c),c.clear()})),t.addEventListener("mousedown",(t=>{t.target instanceof HTMLElement&&t.target!==document.activeElement&&(N=c.indexOf(t.target))}),{signal:H}),f?(t.addEventListener("focusin",(t=>{t.target instanceof HTMLElement&&c.has(t.target)&&(f.focus({preventScroll:y}),L(t.target))}),{signal:H}),g||t.addEventListener("mousemove",(({target:t})=>{if(!(t instanceof Node))return;if(t instanceof HTMLElement&&c.has(t))return void L(t);const e=c.find((e=>e.contains(t)));e&&L(e)}),{signal:H,capture:!0}),f.addEventListener("focusin",(()=>{v?k(void 0,v):E||L(A())}),{signal:H}),f.addEventListener("focusout",(()=>{T()}),{signal:H})):t.addEventListener("focusin",(e=>{if(e.target instanceof HTMLElement)if(void 0!==N){if(N>=0){const t=c.get(N);t&&t!==v&&L(t)}N=void 0}else if("previous"===m)L(e.target);else if("closest"===m||"first"===m){if(e.relatedTarget instanceof Element&&!t.contains(e.relatedTarget)){const t="previous"===R?c.size-1:0,e=c.get(t);return void(null==e||e.focus({preventScroll:y}))}L(e.target)}else if("function"==typeof m)if(e.relatedTarget instanceof Element&&!t.contains(e.relatedTarget)){const t=m(e.relatedTarget);if(t&&c.has(t))return void t.focus({preventScroll:y});console.warn("Element requested is not a known focusable element.")}else L(e.target);R=void 0}),{signal:H});const F=null!=f?f:t;let R;return"closest"===m&&document.addEventListener("keydown",(t=>{"Tab"===t.key&&(R=kt(t))}),{signal:H,capture:!0}),F.addEventListener("keydown",(i=>{var n;if(i.key in Lt){const s=At[i.key];if(!i.defaultPrevented&&(s&h)>0&&!Tt(i,document.activeElement)){const s=kt(i);let o;if((null==e?void 0:e.getNextFocusable)&&(o=e.getNextFocusable(s,null!==(n=document.activeElement)&&void 0!==n?n:void 0,i)),!o){const e=function(){if(!v)return E?-1:0;const e=c.indexOf(v);return-1!==e?e:v===t?-1:0}();let n=e;"previous"===s?n-=1:"start"===s?n=0:"next"===s?n+=1:n=c.size-1,n<0&&(n="wrap"===u&&"Tab"!==i.key?c.size-1:0),n>=c.size&&(n="wrap"===u&&"Tab"!==i.key?0:c.size-1),e!==n&&(o=c.get(n))}f?L(o||v,!0):o&&(R=s,o.focus({preventScroll:y})),("Tab"!==i.key||o)&&i.preventDefault()}}}),{signal:H}),O}var Dt,Pt,Ot,Ht,Nt,Ft,Rt,qt;const Wt=new IntersectionObserver((t=>{for(const e of t){const t=e.target;e.isIntersecting&&t instanceof Bt&&t.update()}})),Vt=new ResizeObserver((t=>{for(const e of t){const t=e.target;t instanceof Bt&&t.update()}}));let Bt=class ActionBarElement extends HTMLElement{constructor(){super(...arguments),Dt.add(this),Pt.set(this,null),Ot.set(this,!1)}connectedCallback(){Vt.observe(this),Wt.observe(this),this.style.overflow="visible",this.update()}disconnectedCallback(){Vt.unobserve(this),Wt.unobserve(this)}menuItemClick(t){const e=t.currentTarget,i=e?.getAttribute("data-for");i&&document.getElementById(i)?.click()}update(){b(this,Ot,"f")||(v(this,Ot,!0,"f"),requestAnimationFrame((()=>{v(this,Ot,!1,"f"),b(this,Dt,"m",Ht).call(this)})))}};Pt=new WeakMap,Ot=new WeakMap,Dt=new WeakSet,Ht=function(){const t=b(this,Dt,"a",Nt);if(!t)return;const e=t.getBoundingClientRect().top,i=b(this,Dt,"a",qt),n=Array.from(this.items,(t=>({top:t.getBoundingClientRect().top,isDivider:t.classList.contains("ActionBar-divider")})));let s=!1;for(let t=0;t<n.length;t++){const o=n[t];o.isDivider?s=!0:(o.top>e?(b(this,Dt,"m",Rt).call(this,t,i),this.moreMenu.hidden&&(this.moreMenu.hidden=!1),s&&b(this,Dt,"m",Rt).call(this,t-1,i)):(b(this,Dt,"m",Ft).call(this,t,i),t===this.items.length-1&&(this.moreMenu.hidden=!0),s&&b(this,Dt,"m",Ft).call(this,t-1,i)),s=!1)}b(this,Pt,"f")&&b(this,Pt,"f").abort(),v(this,Pt,It(this,{bindKeys:Et.ArrowHorizontal|Et.HomeAndEnd,focusOutBehavior:"wrap",focusableElementFilter:t=>{const e=this.items.indexOf(t.parentElement),i=e>-1&&"visible"===this.items[e].style.visibility,n=t===this.moreMenu.invokerElement&&!this.moreMenu.hidden;return i||n}}),"f")},Nt=function(){return this.items.find((t=>!t.classList.contains("ActionBar-divider")))??null},Ft=function(t,e){const i=this.items[t],n=e[t];i&&n&&(i.style.setProperty("visibility","visible"),n.hidden=!0)},Rt=function(t,e){const i=this.items[t],n=e[t];i&&n&&(i.style.setProperty("visibility","hidden"),n.hidden=!1)},qt=function(){return this.moreMenu.querySelectorAll('[role="menu"] > li')},g([j],Bt.prototype,"items",void 0),g([U],Bt.prototype,"itemContainer",void 0),g([U],Bt.prototype,"moreMenu",void 0),Bt=g([K("action-bar")],Bt),window.ActionBarElement=Bt;class DetailsMenuElement extends HTMLElement{get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","menu");const t=this.parentElement;if(!t)return;const e=t.querySelector("summary");e&&(e.setAttribute("aria-haspopup","menu"),e.hasAttribute("role")||e.setAttribute("role","button"));const i=[Ut(t,"compositionstart",(t=>te(this,t))),Ut(t,"compositionend",(t=>te(this,t))),Ut(t,"click",(e=>Gt(t,e))),Ut(t,"change",(e=>Gt(t,e))),Ut(t,"keydown",(e=>function(t,e,i){if(!(i instanceof KeyboardEvent))return;if(t.querySelector("details[open]"))return;const n=$t.get(e);if(!n||n.isComposing)return;const s=i.target instanceof Element&&"SUMMARY"===i.target.tagName;switch(i.key){case"Escape":t.hasAttribute("open")&&(Qt(t),i.preventDefault(),i.stopPropagation());break;case"ArrowDown":{s&&!t.hasAttribute("open")&&t.setAttribute("open","");const e=Yt(t,!0);e&&e.focus(),i.preventDefault()}break;case"ArrowUp":{s&&!t.hasAttribute("open")&&t.setAttribute("open","");const e=Yt(t,!1);e&&e.focus(),i.preventDefault()}break;case"n":if(Zt&&i.ctrlKey){const e=Yt(t,!0);e&&e.focus(),i.preventDefault()}break;case"p":if(Zt&&i.ctrlKey){const e=Yt(t,!1);e&&e.focus(),i.preventDefault()}break;case" ":case"Enter":{const e=document.activeElement;e instanceof HTMLElement&&Xt(e)&&e.closest("details")===t&&(i.preventDefault(),i.stopPropagation(),e.click())}}}(t,this,e))),Ut(t,"toggle",(()=>jt(t,this)),{once:!0}),Ut(t,"toggle",(()=>function(t){if(!t.hasAttribute("open"))return;for(const e of document.querySelectorAll("details[open] > details-menu")){const i=e.closest("details");i&&i!==t&&!i.contains(t)&&i.removeAttribute("open")}}(t))),this.preload?Ut(t,"mouseover",(()=>jt(t,this)),{once:!0}):_t,...Kt(t)];$t.set(this,{subscriptions:i,loaded:!1,isComposing:!1})}disconnectedCallback(){const t=$t.get(this);if(t){$t.delete(this);for(const e of t.subscriptions)e.unsubscribe()}}}const $t=new WeakMap,_t={unsubscribe(){}};function Ut(t,e,i,n=!1){return t.addEventListener(e,i,n),{unsubscribe:()=>{t.removeEventListener(e,i,n)}}}function jt(t,e){const i=e.getAttribute("src");if(!i)return;const n=$t.get(e);if(!n)return;if(n.loaded)return;n.loaded=!0;const s=e.querySelector("include-fragment");s&&!s.hasAttribute("src")&&(s.addEventListener("loadend",(()=>zt(t))),s.setAttribute("src",i))}function Kt(t){let e=!1;return[Ut(t,"mousedown",(()=>e=!0)),Ut(t,"keydown",(()=>e=!1)),Ut(t,"toggle",(()=>{t.hasAttribute("open")&&(zt(t)||e||function(t){const e=document.activeElement;if(e&&Xt(e)&&t.contains(e))return;const i=Yt(t,!0);i&&i.focus()}(t))}))]}function zt(t){if(!t.hasAttribute("open"))return!1;const e=t.querySelector("details-menu [autofocus]");return!!e&&(e.focus(),!0)}function Yt(t,e){const i=Array.from(t.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled])')),n=document.activeElement,s=n instanceof HTMLElement?i.indexOf(n):-1,o=e?i[s+1]:i[s-1],r=e?i[0]:i[i.length-1];return o||r}const Zt=navigator.userAgent.match(/Macintosh/);function Gt(t,e){const i=e.target;if(i instanceof Element&&i.closest("details")===t)if("click"===e.type){const e=i.closest('[role="menuitem"], [role="menuitemradio"]');if(!e)return;const n=e.querySelector("input");if("LABEL"===e.tagName&&i===n)return;"LABEL"===e.tagName&&n&&!n.checked||Jt(e,t)}else if("change"===e.type){const e=i.closest('[role="menuitemradio"], [role="menuitemcheckbox"]');e&&Jt(e,t)}}function Jt(t,e){if(t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled"))return;const i=t.closest("details-menu");if(!i)return;i.dispatchEvent(new CustomEvent("details-menu-select",{cancelable:!0,detail:{relatedTarget:t}}))&&(!function(t,e){const i=e.querySelector("[data-menu-button]");if(!i)return;const n=function(t){if(!t)return null;const e=t.hasAttribute("data-menu-button-text")?t:t.querySelector("[data-menu-button-text]");return e?e.getAttribute("data-menu-button-text")||e.textContent:null}(t);if(n)i.textContent=n;else{const e=function(t){if(!t)return null;const e=t.hasAttribute("data-menu-button-contents")?t:t.querySelector("[data-menu-button-contents]");return e?e.innerHTML:null}(t);e&&(i.innerHTML=e)}}(t,e),function(t,e){for(const i of e.querySelectorAll('[role="menuitemradio"], [role="menuitemcheckbox"]')){const e=i.querySelector('input[type="radio"], input[type="checkbox"]');let n=(i===t).toString();e instanceof HTMLInputElement&&(n=e.indeterminate?"mixed":e.checked.toString()),i.setAttribute("aria-checked",n)}}(t,e),"menuitemcheckbox"!==t.getAttribute("role")&&Qt(e),i.dispatchEvent(new CustomEvent("details-menu-selected",{detail:{relatedTarget:t}})))}function Xt(t){const e=t.getAttribute("role");return"menuitem"===e||"menuitemcheckbox"===e||"menuitemradio"===e}function Qt(t){if(!t.hasAttribute("open"))return;t.removeAttribute("open");const e=t.querySelector("summary");e&&e.focus()}function te(t,e){const i=$t.get(t);i&&(i.isComposing="compositionstart"===e.type)}var ee,ie;window.customElements.get("details-menu")||(window.DetailsMenuElement=DetailsMenuElement,window.customElements.define("details-menu",DetailsMenuElement));const ne=(()=>{const t=new Set;let e=null,i=null;function n(){for(const e of t)e.update()}return s=>{window.addEventListener("resize",n),window.addEventListener("scroll",n),e||(e=new IntersectionObserver((e=>{for(const i of e){const e=i.target;i.isIntersecting?(e.update(),t.add(e)):t.delete(e)}}))),i||(i=new ResizeObserver((()=>{for(const e of t)e.update()}))),i.observe(s.ownerDocument.documentElement),e.observe(s)}})();class AnchoredPositionElement extends HTMLElement{constructor(){super(...arguments),ee.set(this,null),ie.set(this,void 0)}get align(){const t=this.getAttribute("align");return"center"===t||"end"===t?t:"start"}set align(t){this.setAttribute("align",`${t}`)}get side(){const t=this.getAttribute("side");return"inside-top"===t||"inside-bottom"===t||"inside-left"===t||"inside-right"===t||"inside-center"===t||"outside-top"===t||"outside-left"===t||"outside-right"===t?t:"outside-bottom"}set side(t){this.setAttribute("side",`${t}`)}get anchorOffset(){const t=this.getAttribute("anchor-offset");return"spacious"===t||"8"===t?8:4}set anchorOffset(t){this.setAttribute("anchor-offset",`${t}`)}get anchor(){return this.getAttribute("anchor")||""}set anchor(t){this.setAttribute("anchor",`${t}`)}get anchorElement(){if(b(this,ee,"f"))return b(this,ee,"f");const t=this.anchor;return t?this.ownerDocument.getElementById(t):null}set anchorElement(t){v(this,ee,t,"f"),b(this,ee,"f")||this.removeAttribute("anchor")}get alignmentOffset(){return Number(this.getAttribute("alignment-offset"))}set alignmentOffset(t){this.setAttribute("alignment-offset",`${t}`)}get allowOutOfBounds(){return this.hasAttribute("allow-out-of-bounds")}set allowOutOfBounds(t){this.toggleAttribute("allow-out-of-bounds",t)}connectedCallback(){this.update(),this.addEventListener("beforetoggle",(()=>this.update())),ne(this)}attributeChangedCallback(){this.update()}update(){this.isConnected&&(cancelAnimationFrame(b(this,ie,"f")),v(this,ie,requestAnimationFrame((()=>{const t=this.anchorElement;if(this.classList.toggle("not-anchored",!t),t){const{left:e,top:i}=X(this,t,this);this.style.top=`${i}px`,this.style.left=`${e}px`,this.style.bottom="auto",this.style.right="auto"}else this.style.top="0",this.style.left="0",this.style.bottom="0",this.style.right="0"})),"f"))}}var se,oe,re;function ae(t){t.body.style.getPropertyValue("--dialog-scrollgutter")||t.body.style.setProperty("--dialog-scrollgutter",window.innerWidth-t.body.clientWidth+"px")}function le(t){const e=t.target,i=e?.closest("button");if(!i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;let n=i?.getAttribute("data-show-dialog-id");if(n){const e=document.getElementById(n);if(e instanceof HTMLDialogElement){ae(e.ownerDocument),e.showModal(),t.preventDefault();let n=i,s=!1;for(;n;)n=n.parentElement?.closest("[popover]"),n&&"auto"===n.popover&&(n.classList.add("dialog-inside-popover-fix"),n.popover="manual",n.showPopover(),s=!0);s&&(e.addEventListener("close",(t=>t.stopImmediatePropagation()),{once:!0}),e.close(),e.showModal(),e.addEventListener("close",(()=>{for(const t of e.ownerDocument.querySelectorAll(".dialog-inside-popover-fix"))t.contains(e)&&(t.classList.remove("dialog-inside-popover-fix"),t.popover="auto",t.showPopover())}),{once:!0}))}}if(n=i.getAttribute("data-close-dialog-id")||i.getAttribute("data-submit-dialog-id"),n){const t=document.getElementById(n);t instanceof HTMLDialogElement&&t.open&&t.close()}}ee=new WeakMap,ie=new WeakMap,AnchoredPositionElement.observedAttributes=["align","side","anchor","alignment-offset","allow-out-of-bounds"],customElements.get("anchored-position")||(window.AnchoredPositionElement=AnchoredPositionElement,customElements.define("anchored-position",AnchoredPositionElement));class DialogHelperElement extends HTMLElement{constructor(){super(...arguments),se.add(this),oe.set(this,null)}get dialog(){return this.querySelector("dialog")}connectedCallback(){const{signal:t}=v(this,oe,new AbortController,"f");document.addEventListener("click",le,!0),document.addEventListener("click",this,{signal:t}),new MutationObserver((t=>{for(const e of t)e.target===this.dialog&&b(this,se,"m",re).call(this)})).observe(this,{subtree:!0,attributeFilter:["open"]}),b(this,se,"m",re).call(this)}disconnectedCallback(){b(this,oe,"f")?.abort()}handleEvent(t){const e=t.target,i=this.dialog;if(e!==i||!i?.open)return;if(i.querySelector("form"))return;const n=i.getBoundingClientRect();n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width||i.close()}}oe=new WeakMap,se=new WeakSet,re=function(){this.dialog&&this.dialog.matches("[open]:not(:modal)")&&(this.dialog.addEventListener("close",(t=>t.stopImmediatePropagation()),{once:!0}),this.dialog.close(),ae(this.dialog.ownerDocument),this.dialog.showModal())},window.customElements.get("dialog-helper")||(window.DialogHelperElement=DialogHelperElement,window.customElements.define("dialog-helper",DialogHelperElement));var ce=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:i="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(i||"")}},de=new WeakMap;function he(t,e,i){de.set(t,setTimeout((()=>{de.has(t)&&t.dispatchEvent(new ce("toggle",{cancelable:!1,oldState:e,newState:i}))}),0))}var ue=globalThis.ShadowRoot||function(){},me=globalThis.HTMLDialogElement||function(){},fe=new WeakMap,pe=new WeakMap,ge=new WeakMap;function be(t){return ge.get(t)||"hidden"}var ve=new WeakMap;function we(t,e){return("auto"===t.popover||"manual"===t.popover)&&(!!t.isConnected&&((!e||"showing"===be(t))&&(!(!e&&"hidden"!==be(t))&&(!(t instanceof me&&t.hasAttribute("open"))&&document.fullscreenElement!==t))))}function ye(t){return t?Array.from(pe.get(t.ownerDocument)||[]).indexOf(t)+1:0}function Ee(t){const e=ke(t),i=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||Le(t))instanceof ue&&(t=t.host),t instanceof Document)return}}(t);return ye(e)>ye(i)?e:i}function Ae(t){const e=pe.get(t);for(const t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function Le(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?Le(t.parentNode):t}function ke(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===ge.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||Le(t))instanceof ue&&(t=t.host),t instanceof Document)return}}function Te(t){return!(t.hidden||t instanceof ue)&&((!(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)||!t.disabled)&&(!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(!(t instanceof HTMLAnchorElement&&""===t.href)&&("number"==typeof t.tabIndex&&-1!==t.tabIndex))))}function Se(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let i=e.querySelector("[autofocus]");if(i)return i;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(i=e.querySelector("[autofocus]"),i)return i}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){if(Te(s))return s;s=n.nextNode()}})(t)?.focus()}var Ce=new WeakMap;function xe(t){if(!we(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new ce("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!we(t,!1))return;let i=!1;if("auto"===t.popover){const i=t.getAttribute("popover");if(De(function(t){const e=new Map;let i=0;for(const n of pe.get(t.ownerDocument)||[])e.set(n,i),i+=1;e.set(t,i),i+=1;let n=null;return function(t){const i=ke(t);if(null===i)return null;const s=e.get(i);(null===n||e.get(n)<s)&&(n=i)}(t.parentElement||Le(t)),n}(t)||e,!1,!0),i!==t.getAttribute("popover")||!we(t,!1))return}Ae(e)||(i=!0),Ce.delete(t);const n=e.activeElement;t.classList.add(":popover-open"),ge.set(t,"showing"),fe.has(e)||fe.set(e,new Set),fe.get(e).add(t),Se(t),"auto"===t.popover&&(pe.has(e)||pe.set(e,new Set),pe.get(e).add(t),Ne(ve.get(t),!0)),i&&n&&"auto"===t.popover&&Ce.set(t,n),he(t,"closed","open")}function Me(t,e=!1,i=!1){if(!we(t,!0))return;const n=t.ownerDocument;if("auto"===t.popover&&(De(t,e,i),!we(t,!0)))return;if(Ne(ve.get(t),!1),ve.delete(t),i&&(t.dispatchEvent(new ce("beforetoggle",{oldState:"open",newState:"closed"})),!we(t,!0)))return;fe.get(n)?.delete(t),pe.get(n)?.delete(t),t.classList.remove(":popover-open"),ge.set(t,"hidden"),i&&he(t,"open","closed");const s=Ce.get(t);s&&(Ce.delete(t),e&&s.focus())}function Ie(t,e=!1,i=!1){let n=Ae(t);for(;n;)Me(n,e,i),n=Ae(t)}function De(t,e,i){const n=t.ownerDocument||t;if(t instanceof Document)return Ie(n,e,i);let s=null,o=!1;for(const e of pe.get(n)||[])if(e===t)o=!0;else if(o){s=e;break}if(!o)return Ie(n,e,i);for(;s&&"showing"===be(s)&&pe.get(n)?.size;)Me(s,e,i)}var Pe=new WeakMap;function Oe(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const i=e.ownerDocument;if(!Ae(i))return;const n=Ee(e);if(n&&"pointerdown"===t.type)Pe.set(i,n);else if("pointerup"===t.type){const t=Pe.get(i)===n;Pe.delete(i),t&&De(n||i,!1,!0)}}var He=new WeakMap;function Ne(t,e=!1){if(!t)return;He.has(t)||He.set(t,t.getAttribute("aria-expanded"));const i=t.popoverTargetElement;if(i instanceof HTMLElement&&"auto"===i.popover)t.setAttribute("aria-expanded",String(e));else{const e=He.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var Fe=globalThis.ShadowRoot||function(){};function Re(t,e,i){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,i(t))}})}var qe=/(^|[^\\]):popover-open\b/g;function We(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}var Ve,Be,$e,_e,Ue=null;function je(t){const e=We();if(null===Ue)try{(Ue=new CSSStyleSheet).replaceSync(e)}catch{Ue=!1}if(!1===Ue){const i=document.createElement("style");i.textContent=e,t instanceof Document?t.head.prepend(i):t.prepend(i)}else t.adoptedStyleSheets=[Ue,...t.adoptedStyleSheets]}"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(qe,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||ce,Re(Document.prototype,"querySelector",t),Re(Document.prototype,"querySelectorAll",t),Re(Element.prototype,"querySelector",t),Re(Element.prototype,"querySelectorAll",t),Re(Element.prototype,"matches",t),Re(Element.prototype,"closest",t),Re(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){xe(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Me(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===ge.get(this)&&void 0===t||!1===t?Me(this,!0,!0):void 0!==t&&!0!==t||xe(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const i=e.call(this,t);return je(i),i}}});const i=HTMLElement.prototype.attachInternals;i&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=i.call(this);return t.shadowRoot&&je(t.shadowRoot),t}}});const n=new WeakMap;function s(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=Le(this),i=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof Fe)&&i&&e.getElementById(i)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}s(HTMLButtonElement),s(HTMLInputElement);const o=t=>{const e=t.composedPath(),i=e[0];if(!(i instanceof Element)||i?.shadowRoot)return;const n=Le(i);if(!(n instanceof Fe||n instanceof Document))return;const s=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return s?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const i=be(e);"show"===t.popoverTargetAction&&"showing"===i||"hide"===t.popoverTargetAction&&"hidden"===i||("showing"===i?Me(e,!0,!0):we(e,!1)&&(ve.set(e,t),xe(e)))}(s),void t.preventDefault()):void 0},r=t=>{const e=t.key,i=t.target;t.defaultPrevented||!i||"Escape"!==e&&"Esc"!==e||De(i.ownerDocument,!0,!0)};(t=>{t.addEventListener("click",o),t.addEventListener("keydown",r),t.addEventListener("pointerdown",Oe),t.addEventListener("pointerup",Oe)})(document),je(document)}();const Ke=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]'].map((t=>`:not([hidden]) > ${t}`)).join(", "),ze=t=>t.textContent?.trim()[0].toLowerCase(),Ye=/^\S$/;class FocusGroupElement extends HTMLElement{constructor(){super(...arguments),Ve.add(this),Be.set(this,null),$e.set(this,null)}get nowrap(){return this.hasAttribute("nowrap")}set nowrap(t){this.toggleAttribute("nowrap",t)}get direction(){return"horizontal"===this.getAttribute("direction")?"horizontal":"vertical"}set direction(t){this.setAttribute("direction",`${t}`)}get retain(){return this.hasAttribute("retain")}set retain(t){this.toggleAttribute("retain",t)}get mnemonics(){return this.hasAttribute("mnemonics")}connectedCallback(){v(this,$e,new AbortController,"f");const{signal:t}=b(this,$e,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusin",this,{signal:t})}disconnectedCallback(){b(this,$e,"f")?.abort()}handleEvent(t){const{direction:e,nowrap:i}=this;if("focusin"===t.type){if(this.retain&&t.target instanceof Element&&t.target.matches(Ke)){b(this,Be,"f")?.abort();const{signal:e}=v(this,Be,new AbortController,"f");for(const i of b(this,Ve,"a",_e)){i.setAttribute("tabindex",i===t.target?"0":"-1");const n=t.target.closest("[popover]");i===t.target&&"auto"===n?.popover&&n.closest("focus-group")===this&&n.addEventListener("toggle",(t=>{if(t.target instanceof Element&&"closed"===t.newState&&(b(this,Be,"f")?.abort(),i.setAttribute("tabindex","-1"),n.id)){const t=this.querySelector(`[popovertarget="${n.id}"]`);t?t.setAttribute("tabindex","0"):b(this,Ve,"a",_e)[0]?.setAttribute("tabindex","0")}}),{signal:e})}}}else if(t instanceof KeyboardEvent){const n=Array.from(b(this,Ve,"a",_e));let s=n.indexOf(t.target);const o=t.key;if("Up"===o||"ArrowUp"===o)"vertical"!==e&&"both"!==e||(s-=s<0?0:1,t.preventDefault());else if("Down"===o||"ArrowDown"===o)"vertical"!==e&&"both"!==e||(s+=1,t.preventDefault());else if("Left"===t.key||"ArrowLeft"===t.key)"horizontal"!==e&&"both"!==e||(s-=1,t.preventDefault());else if("Right"===t.key||"ArrowRight"===t.key)"horizontal"!==e&&"both"!==e||(s+=1,t.preventDefault());else if("Home"===t.key||"PageUp"===t.key)s=0,t.preventDefault();else if("End"===t.key||"PageDown"===t.key)s=n.length-1,t.preventDefault();else{if(!this.mnemonics||!Ye.test(o))return;{const e=o.toLowerCase(),r=s>0&&ze(t.target)===e?s:0;s=n.findIndex(((t,i)=>i>r&&ze(t)===e)),s<0&&!i&&(s=n.findIndex((t=>ze(t)===e)))}}i&&s<0&&(s=0),!i&&s>=n.length&&(s=0);const r=n.at(Math.min(s,n.length-1));{let e=r;do{e=e.closest("[popover]:not(:popover-open)"),"auto"!==e?.popover||["ArrowRight","ArrowLeft"].includes(t.key)||e.showPopover(),e=e?.parentElement||null}while(e)}r?.focus()}}}Be=new WeakMap,$e=new WeakMap,Ve=new WeakSet,_e=function(){return this.querySelectorAll(Ke)},customElements.get("focus-group")||(window.FocusGroupElement=FocusGroupElement,customElements.define("focus-group",FocusGroupElement));let Ze=class ScrollableRegionElement extends HTMLElement{constructor(){super(...arguments),this.hasOverflow=!1,this.labelledBy=""}connectedCallback(){this.style.overflow="auto",this.observer=new ResizeObserver((t=>{for(const e of t)this.hasOverflow=e.target.scrollHeight>e.target.clientHeight||e.target.scrollWidth>e.target.clientWidth})),this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}attributeChangedCallback(t){"data-has-overflow"===t&&(this.hasOverflow?(this.setAttribute("aria-labelledby",this.labelledBy),this.setAttribute("role","region"),this.setAttribute("tabindex","0")):(this.removeAttribute("aria-labelledby"),this.removeAttribute("role"),this.removeAttribute("tabindex")))}};g([I],Ze.prototype,"hasOverflow",void 0),g([I],Ze.prototype,"labelledBy",void 0),Ze=g([K("scrollable-region")],Ze),window.ScrollableRegionElement=Ze;const Ge=(t,e,i)=>{if(e())i();else{const n=new MutationObserver((()=>{e()&&(i(),n.disconnect())}));n.observe(t,{childList:!0,subtree:!0})}};var Je,Xe,Qe,ti;function ei(t){document.activeElement!==t&&t?.focus()}const ii=[];function ni(t){const e=t.target,i=e?.closest("button");if(!i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;let n=i?.getAttribute("data-show-dialog-id");if(n){t.stopPropagation();const e=document.getElementById(n);if(e instanceof ModalDialogElement)return e.openButton=i,e.show(),void t.preventDefault()}if(ii.length&&(n=i.getAttribute("data-close-dialog-id")||i.getAttribute("data-submit-dialog-id"),n)){const t=document.getElementById(n);if(t instanceof ModalDialogElement){const e=ii.findIndex((t=>t.id===n));ii.splice(e,1),t.close(i.hasAttribute("data-submit-dialog-id"))}}}function si(t){!(t instanceof KeyboardEvent&&"keydown"===t.type&&"Enter"===t.key)||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey||ni(t)}function oi(t){const e=t.target;if(e?.closest("button"))return;const i=ii[ii.length-1];if(!i)return;!e.closest(`#${i.getAttribute("id")}`)&&e.ownerDocument.addEventListener("mouseup",(t=>{t.target===e&&(ii.pop(),i.close())}),{once:!0})}class ModalDialogElement extends HTMLElement{constructor(){super(...arguments),Je.add(this),Xe.set(this,new AbortController)}get open(){return this.hasAttribute("open")}set open(t){if(t){if(this.open)return;this.setAttribute("open",""),this.setAttribute("aria-disabled","false"),document.body.style.paddingRight=window.innerWidth-document.body.clientWidth+"px",document.body.style.overflow="hidden",b(this,Je,"a",Qe)?.classList.remove("Overlay--hidden"),b(this,Xe,"f").signal.aborted&&v(this,Xe,new AbortController,"f"),pt(this,this.querySelector("[autofocus]"),b(this,Xe,"f").signal),ii.push(this)}else{if(!this.open)return;this.removeAttribute("open"),this.setAttribute("aria-disabled","true"),b(this,Je,"a",Qe)?.classList.add("Overlay--hidden"),document.body.style.paddingRight="0",document.body.style.overflow="initial",b(this,Xe,"f").abort();const t=this.openButton?.closest("details")||this.openButton?.closest("action-menu");ei(t?st(t):this.openButton),this.openButton=null}}get showButtons(){return document.querySelectorAll(`button[data-show-dialog-id='${this.id}']`)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),document.addEventListener("click",ni),document.addEventListener("keydown",si),document.addEventListener("mousedown",oi),this.addEventListener("keydown",(t=>b(this,Je,"m",ti).call(this,t)))}show(){this.open=!0}close(t=!1){if(!1===this.open)return;const e=new Event(t?"close":"cancel");this.dispatchEvent(e),this.open=!1}}var ri,ai,li,ci,di,hi,ui,mi;Xe=new WeakMap,Je=new WeakSet,Qe=function(){return this.parentElement?.hasAttribute("data-modal-dialog-overlay")?this.parentElement:null},ti=function(t){if(t instanceof KeyboardEvent&&!t.isComposing&&this.open)switch(t.key){case"Escape":this.close(),t.preventDefault(),t.stopPropagation();break;case"Enter":t.target.getAttribute("data-close-dialog-id")===this.id&&t.stopPropagation();break}},window.customElements.get("modal-dialog")||(window.ModalDialogElement=ModalDialogElement,window.customElements.define("modal-dialog",ModalDialogElement));let fi=class NavListElement extends HTMLElement{constructor(){super(...arguments),ri.add(this),ai.set(this,void 0)}connectedCallback(){this.topLevelList&&v(this,ai,new Y(this.topLevelList),"f")}disconnectedCallback(){this.topLevelList&&b(this,ai,"f").unobserve(this.topLevelList)}selectItemById(t){if(!t)return!1;const e=b(this,ri,"m",li).call(this,t);return!!e&&(b(this,ri,"m",hi).call(this,e),!0)}selectItemByHref(t){if(!t)return!1;const e=b(this,ri,"m",ci).call(this,t);return!!e&&(b(this,ri,"m",hi).call(this,e),!0)}selectItemByCurrentLocation(){const t=b(this,ri,"m",di).call(this);return!!t&&(b(this,ri,"m",hi).call(this,t),!0)}expandItem(t){t.nextElementSibling?.removeAttribute("data-hidden"),t.setAttribute("aria-expanded","true")}collapseItem(t){t.nextElementSibling?.setAttribute("data-hidden",""),t.setAttribute("aria-expanded","false"),t.focus()}itemIsExpanded(t){return"A"===t?.tagName||"true"===t?.getAttribute("aria-expanded")}handleItemWithSubItemClick(t){const e=t.target;if(!(e instanceof HTMLElement))return;const i=e.closest("button");i&&(this.itemIsExpanded(i)?this.collapseItem(i):this.expandItem(i),t.stopPropagation())}handleItemWithSubItemKeydown(t){const e=t.currentTarget;if(!(e instanceof HTMLElement))return;let i=e.closest("button");if(!i){const t=e.getAttribute("aria-labelledby");if(!t)return;i=document.getElementById(t)}this.itemIsExpanded(i)&&"Escape"===t.key&&this.collapseItem(i),t.stopPropagation()}};var pi,gi,bi;ai=new WeakMap,ri=new WeakSet,li=function(t){for(const e of this.items){if(e.classList.contains("ActionListItem--hasSubItem"))continue;if((e.getAttribute("data-item-id")?.split(" ")||[]).includes(t))return e}return null},ci=function(t){const e=this.querySelector(`.ActionListContent[href="${t}"]`);return e?e.closest(".ActionListItem"):null},di=function(){return b(this,ri,"m",ci).call(this,window.location.pathname)},hi=function(t){const e=this.querySelector(".ActionListItem--navActive");e&&b(this,ri,"m",ui).call(this,e),t.classList.add("ActionListItem--navActive"),t.children.length>0&&t.children[0].setAttribute("aria-current","page");const i=b(this,ri,"m",mi).call(this,t);i&&(this.expandItem(i),i.classList.add("ActionListContent--hasActiveSubItem"))},ui=function(t){t.classList.remove("ActionListItem--navActive"),t.children.length>0&&t.children[0].removeAttribute("aria-current");const e=b(this,ri,"m",mi).call(this,t);e&&(this.collapseItem(e),e.classList.remove("ActionListContent--hasActiveSubItem"))},mi=function(t){if(!t.classList.contains("ActionListItem--subItem"))return null;const e=t.closest("li.ActionListItem--hasSubItem")?.querySelector("button.ActionListContent");return e||null},g([j],fi.prototype,"items",void 0),g([U],fi.prototype,"topLevelList",void 0),fi=g([K("nav-list")],fi);let vi=class NavListGroupElement extends HTMLElement{constructor(){super(...arguments),pi.add(this),bi.set(this,new Y(this))}connectedCallback(){this.setShowMoreItemState()}get showMoreDisabled(){return this.showMoreItem.hasAttribute("aria-disabled")}set showMoreDisabled(t){t?this.showMoreItem.setAttribute("aria-disabled","true"):this.showMoreItem.removeAttribute("aria-disabled"),this.showMoreItem.classList.toggle("disabled",t)}set currentPage(t){this.showMoreItem.setAttribute("data-current-page",t.toString())}get currentPage(){return parseInt(this.showMoreItem.getAttribute("data-current-page"))||1}get totalPages(){return parseInt(this.showMoreItem.getAttribute("data-total-pages"))||1}get paginationSrc(){return this.showMoreItem.getAttribute("src")||""}async showMore(t){if(t.preventDefault(),this.showMoreDisabled)return;let e;this.showMoreDisabled=!0;try{const t=new URL(this.paginationSrc,window.location.origin);this.currentPage++,t.searchParams.append("page",this.currentPage.toString());const i=await fetch(t);if(!i.ok)return;e=await i.text(),this.currentPage===this.totalPages&&(this.showMoreItem.hidden=!0)}catch(t){return this.showMoreDisabled=!1,void this.currentPage--}const i=b(this,pi,"m",gi).call(this,document,e);i?.querySelector("li > a")?.setAttribute("data-targets","nav-list-group.focusMarkers");const n=t.target.closest("button").getAttribute("data-list-id");document.getElementById(n).append(i),this.focusMarkers.pop()?.focus(),this.showMoreDisabled=!1}setShowMoreItemState(){this.showMoreItem&&(this.currentPage<this.totalPages?this.showMoreItem.hidden=!1:this.showMoreItem.hidden=!0)}};var wi,yi;bi=new WeakMap,pi=new WeakSet,gi=function(t,e){const i=t.createElement("template");return i.innerHTML=e,t.importNode(i.content,!0)},g([U],vi.prototype,"showMoreItem",void 0),g([j],vi.prototype,"focusMarkers",void 0),vi=g([K("nav-list-group")],vi),window.NavListGroupElement=vi;let Ei=class SegmentedControlElement extends HTMLElement{constructor(){super(...arguments),wi.add(this)}connectedCallback(){b(this,wi,"m",yi).call(this)}select(t){const e=t.currentTarget;for(const t of this.items)t.classList.remove("SegmentedControl-item--selected"),t.querySelector("[aria-current]")?.setAttribute("aria-current","false");e.closest("li.SegmentedControl-item")?.classList.add("SegmentedControl-item--selected"),e.setAttribute("aria-current","true")}};wi=new WeakSet,yi=function(){for(const t of this.querySelectorAll(".Button-label"))t.setAttribute("data-content",t.textContent||"")},g([j],Ei.prototype,"items",void 0),Ei=g([K("segmented-control")],Ei),window.customElements.get("segmented-control")||(window.SegmentedControlElement=Ei,window.customElements.define("segmented-control",Ei));let Ai=class ToggleSwitchElement extends HTMLElement{constructor(){super(...arguments),this.turbo=!1,this.toggling=!1}get src(){const t=this.getAttribute("src");if(!t)return null;const e=this.ownerDocument.createElement("a");return e.href=t,e.href}get csrf(){const t=this.querySelector("[data-csrf]");return this.getAttribute("data-csrf")||t instanceof HTMLInputElement&&t.value||null}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}isRemote(){return null!=this.src}async toggle(){if(!this.toggling&&(this.toggling=!0,!this.isDisabled())){if(!this.isRemote())return this.performToggle(),void(this.toggling=!1);this.performToggle(),this.setLoadingState();try{await this.submitForm()}catch(t){return void(t instanceof Error&&(this.setErrorState(t.message||"An error occurred, please try again."),this.performToggle()))}finally{this.toggling=!1}this.setSuccessState()}}turnOn(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","true"),this.classList.add("ToggleSwitch--checked"))}turnOff(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","false"),this.classList.remove("ToggleSwitch--checked"))}isOn(){return"true"===this.switch.getAttribute("aria-pressed")}isOff(){return!this.isOn()}isDisabled(){return null!=this.switch.getAttribute("disabled")}disable(){this.switch.setAttribute("disabled","disabled")}enable(){this.switch.removeAttribute("disabled")}performToggle(){this.isOn()?this.turnOff():this.turnOn()}setLoadingState(){this.errorIcon.setAttribute("hidden","hidden"),this.loadingSpinner.removeAttribute("hidden");const t=new CustomEvent("toggleSwitchLoading",{bubbles:!0});this.dispatchEvent(t)}setSuccessState(){const t=new CustomEvent("toggleSwitchSuccess",{bubbles:!0});this.dispatchEvent(t),this.setFinishedState(!1)}setErrorState(t){const e=new CustomEvent("toggleSwitchError",{bubbles:!0,detail:t});this.dispatchEvent(e),this.setFinishedState(!0)}setFinishedState(t){t&&this.errorIcon.removeAttribute("hidden"),this.loadingSpinner.setAttribute("hidden","hidden")}async submitForm(){const t=new FormData;if(this.csrf&&t.append(this.csrfField,this.csrf),t.append("value",this.isOn()?"1":"0"),!this.src)throw new Error("invalid src");let e;const i={"Requested-With":"XMLHttpRequest","X-Requested-With":"XMLHttpRequest"};this.turbo&&(i.Accept="text/vnd.turbo-stream.html");try{e=await fetch(this.src,{credentials:"same-origin",method:"POST",headers:i,body:t})}catch(t){throw new Error("A network error occurred, please try again.")}if(!e.ok)throw new Error(await e.text());const n=e.headers.get("Content-Type");window.Turbo&&this.turbo&&n?.startsWith("text/vnd.turbo-stream.html")&&window.Turbo.renderStreamMessage(await e.text())}};var Li,ki,Ti,Si,Ci,xi,Mi,Ii,Di,Pi,Oi,Hi;g([U],Ai.prototype,"switch",void 0),g([U],Ai.prototype,"loadingSpinner",void 0),g([U],Ai.prototype,"errorIcon",void 0),g([I],Ai.prototype,"turbo",void 0),Ai=g([K("toggle-switch")],Ai),window.customElements.get("toggle-switch")||(window.ToggleSwitchElement=Ai,window.customElements.define("toggle-switch",Ai));const Ni=(()=>{let t;return e=>t?e.matches(t):function(e){try{return t=":popover-open",e.matches(t)}catch{try{return t=":open",e.matches(":open")}catch{return t=".\\:popover-open",e.matches(".\\:popover-open")}}}(e)})(),Fi="sr-only",Ri=["tooltip-n","tooltip-s","tooltip-e","tooltip-w","tooltip-ne","tooltip-se","tooltip-nw","tooltip-sw"];function qi(t){for(const e of $i)e!==t&&(Ni(e)?e.hidePopover():$i.delete(e))}function Wi(){qi()}function Vi(t){setTimeout((()=>{for(const e of $i)Ni(e)&&"focus"===e.showReason&&e.control!==t.target&&e.hidePopover()}),0)}const Bi=new Set,$i=new Set;class ToolTipElement extends HTMLElement{constructor(){super(...arguments),Li.add(this),ki.set(this,void 0),Ti.set(this,"center"),Si.set(this,"outside-bottom"),Ci.set(this,!1),xi.set(this,"mouse"),Mi.set(this,!1)}styles(){return'\n :host {\n --tooltip-top: var(--tool-tip-position-top, 0);\n --tooltip-left: var(--tool-tip-position-left, 0);\n padding: var(--overlay-paddingBlock-condensed) var(--overlay-padding-condensed) !important;\n font: var(--text-body-shorthand-small);\n color: var(--tooltip-fgColor, var(--fgColor-onEmphasis)) !important;\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: break-word;\n white-space: pre;\n background: var(--tooltip-bgColor, var(--bgColor-emphasis)) !important;\n border-radius: var(--borderRadius-medium);\n border: 0 !important;\n opacity: 0;\n max-width: min(var(--overlay-width-small), 100vw);\n word-wrap: break-word;\n white-space: normal;\n width: max-content !important;\n inset: var(--tooltip-top) auto auto var(--tooltip-left) !important;\n overflow: visible !important;\n text-wrap: balance;\n }\n\n :host(:is(.tooltip-n, .tooltip-nw, .tooltip-ne)) {\n --tooltip-top: calc(var(--tool-tip-position-top, 0) - var(--overlay-offset, 0.25rem));\n --tooltip-left: var(--tool-tip-position-left);\n }\n\n :host(:is(.tooltip-s, .tooltip-sw, .tooltip-se)) {\n --tooltip-top: calc(var(--tool-tip-position-top, 0) + var(--overlay-offset, 0.25rem));\n --tooltip-left: var(--tool-tip-position-left);\n }\n\n :host(.tooltip-w) {\n --tooltip-top: var(--tool-tip-position-top);\n --tooltip-left: calc(var(--tool-tip-position-left, 0) - var(--overlay-offset, 0.25rem));\n }\n\n :host(.tooltip-e) {\n --tooltip-top: var(--tool-tip-position-top);\n --tooltip-left: calc(var(--tool-tip-position-left, 0) + var(--overlay-offset, 0.25rem));\n }\n\n :host:after{\n position: absolute;\n display: block;\n right: 0;\n left: 0;\n height: var(--overlay-offset, 0.25rem);\n content: "";\n }\n\n :host(.tooltip-s):after,\n :host(.tooltip-se):after,\n :host(.tooltip-sw):after {\n bottom: 100%\n }\n\n :host(.tooltip-n):after,\n :host(.tooltip-ne):after,\n :host(.tooltip-nw):after {\n top: 100%;\n }\n\n @keyframes tooltip-appear {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n :host(:popover-open),\n :host(:popover-open):before {\n animation-name: tooltip-appear;\n animation-duration: .1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n }\n\n :host(.\\:popover-open) {\n animation-name: tooltip-appear;\n animation-duration: .1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n }\n\n @media (forced-colors: active) {\n :host {\n outline: solid 1px transparent;\n }\n\n :host:before {\n display: none;\n }\n }\n '}get showReason(){return b(this,xi,"f")}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get type(){return"label"===this.getAttribute("data-type")?"label":"description"}set type(t){this.setAttribute("data-type",t)}get direction(){return this.getAttribute("data-direction")||"s"}set direction(t){this.setAttribute("data-direction",t)}get control(){return this.ownerDocument.getElementById(this.htmlFor)}set hiddenFromView(t){t&&Ni(this)?this.hidePopover():t||Ni(this)||this.showPopover()}get hiddenFromView(){return!Ni(this)}connectedCallback(){if(Bi.add(this),b(this,Li,"m",Pi).call(this),b(this,Li,"m",Oi).call(this),!this.shadowRoot){const t=this.attachShadow({mode:"open"});t.appendChild(document.createElement("style")).textContent=this.styles(),t.appendChild(document.createElement("slot"))}b(this,Li,"m",Ii).call(this,!1),v(this,Ci,!0,"f"),b(this,Li,"m",Di).call(this)}disconnectedCallback(){Bi.delete(this),$i.delete(this),b(this,ki,"f")?.abort()}async handleEvent(t){if(!this.control)return;const e=Ni(this);"beforetoggle"===t.type&&t.currentTarget!==this&&v(this,Mi,"open"===t.newState,"f");const i=("mouseenter"===t.type||"focus"===t.type&&(navigator.webdriver||this.control.matches(":focus-visible")))&&!b(this,Mi,"f"),n="mouseleave"===t.type&&t.relatedTarget!==this.control&&t.relatedTarget!==this,s="keydown"===t.type&&"Escape"===t.key,o="mousedown"===t.type&&t.currentTarget===this.control,r="beforetoggle"===t.type&&t.currentTarget!==this&&"open"===t.newState,a=n||s||o||r;e&&s&&(t.stopImmediatePropagation(),t.preventDefault()),await Promise.resolve(),e||!i||Ni(this)?e&&a&&Ni(this)&&this.hidePopover():(v(this,xi,"mouseenter"===t.type?"mouse":"focus","f"),this.showPopover()),"toggle"===t.type&&b(this,Li,"m",Ii).call(this,"open"===t.newState)}attributeChangedCallback(t){this.isConnected&&("for"===t?b(this,Li,"m",Di).call(this):"id"===t||"data-type"===t?b(this,Li,"m",Pi).call(this):"data-direction"===t&&b(this,Li,"m",Oi).call(this))}}var _i,Ui;ki=new WeakMap,Ti=new WeakMap,Si=new WeakMap,Ci=new WeakMap,xi=new WeakMap,Mi=new WeakMap,Li=new WeakSet,Ii=function(t){t?($i.add(this),this.classList.remove(Fi),qi(this),b(this,Li,"m",Hi).call(this)):($i.delete(this),this.classList.remove(...Ri),this.classList.add(Fi))},Di=function(){if(!this.control)return;this.setAttribute("role","tooltip"),b(this,ki,"f")?.abort(),v(this,ki,new AbortController,"f");const{signal:t}=b(this,ki,"f");this.addEventListener("mouseleave",this,{signal:t}),this.addEventListener("toggle",this,{signal:t}),this.control.addEventListener("mouseenter",this,{signal:t}),this.control.addEventListener("mouseleave",this,{signal:t}),this.control.addEventListener("focus",this,{signal:t}),this.control.addEventListener("mousedown",this,{signal:t}),this.control.popoverTargetElement?.addEventListener("beforetoggle",this,{signal:t}),this.ownerDocument.addEventListener("focusout",Wi),this.ownerDocument.addEventListener("focusin",Vi),this.ownerDocument.addEventListener("keydown",this,{signal:t,capture:!0})},Pi=function(){if(this.id&&this.control)if("label"===this.type){let t=this.control.getAttribute("aria-labelledby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-labelledby",t),this.setAttribute("aria-hidden","true")}else{let t=this.control.getAttribute("aria-describedby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-describedby",t)}},Oi=function(){this.classList.remove(...Ri);const t=this.direction;"n"===t?(v(this,Ti,"center","f"),v(this,Si,"outside-top","f")):"ne"===t?(v(this,Ti,"end","f"),v(this,Si,"outside-top","f")):"e"===t?(v(this,Ti,"center","f"),v(this,Si,"outside-right","f")):"se"===t?(v(this,Ti,"end","f"),v(this,Si,"outside-bottom","f")):"s"===t?(v(this,Ti,"center","f"),v(this,Si,"outside-bottom","f")):"sw"===t?(v(this,Ti,"start","f"),v(this,Si,"outside-bottom","f")):"w"===t?(v(this,Ti,"center","f"),v(this,Si,"outside-left","f")):"nw"===t&&(v(this,Ti,"start","f"),v(this,Si,"outside-top","f"))},Hi=function(){if(!this.control)return;if(!b(this,Ci,"f")||!Ni(this))return;const t=X(this,this.control,{side:b(this,Si,"f"),align:b(this,Ti,"f"),anchorOffset:0}),e=t.anchorSide,i=t.anchorAlign;this.style.setProperty("--tool-tip-position-top",`${t.top}px`),this.style.setProperty("--tool-tip-position-left",`${t.left}px`);let n="s";n="outside-left"===e?"w":"outside-right"===e?"e":"outside-top"===e?"center"===i?"n":"start"===i?"ne":"nw":"center"===i?"s":"start"===i?"se":"sw",this.classList.add(`tooltip-${n}`)},ToolTipElement.observedAttributes=["data-type","data-direction","id","for"],window.customElements.get("tool-tip")||(window.ToolTipElement=ToolTipElement,window.customElements.define("tool-tip",ToolTipElement));let ji=class XBannerElement extends HTMLElement{constructor(){super(...arguments),_i.add(this)}dismiss(){if("remove"===b(this,_i,"a",Ui)){const t=this.parentElement;if(!t)return;t.removeChild(this)}else this.hide();this.dispatchEvent(new CustomEvent("banner:dismiss"))}show(){this.style.setProperty("display","initial")}hide(){this.style.setProperty("display","none")}};_i=new WeakSet,Ui=function(){return this.getAttribute("data-dismiss-scheme")},g([U],ji.prototype,"titleText",void 0),ji=g([K("x-banner")],ji),window.customElements.get("x-banner")||(window.XBannerElement=ji,window.customElements.define("x-banner",ji));class Ki{constructor(t,e,{tabInsertsSuggestions:i,defaultFirstOption:n}={}){this.input=t,this.list=e,this.tabInsertsSuggestions=null==i||i,this.defaultFirstOption=null!=n&&n,this.isComposing=!1,e.id||(e.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=t=>function(t,e){if(t.shiftKey||t.metaKey||t.altKey)return;if(!e.ctrlBindings&&t.ctrlKey)return;if(e.isComposing)return;switch(t.key){case"Enter":Yi(e.input,e.list)&&t.preventDefault();break;case"Tab":e.tabInsertsSuggestions&&Yi(e.input,e.list)&&t.preventDefault();break;case"Escape":e.clearSelection();break;case"ArrowDown":e.navigate(1),t.preventDefault();break;case"ArrowUp":e.navigate(-1),t.preventDefault();break;case"n":e.ctrlBindings&&t.ctrlKey&&(e.navigate(1),t.preventDefault());break;case"p":e.ctrlBindings&&t.ctrlKey&&(e.navigate(-1),t.preventDefault());break;default:if(t.ctrlKey)break;e.clearSelection()}}(t,this),this.compositionEventHandler=t=>function(t,e){e.isComposing="compositionstart"===t.type;const i=document.getElementById(e.input.getAttribute("aria-controls")||"");if(!i)return;e.clearSelection()}(t,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",e.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",zi),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",zi)}indicateDefaultOption(){var t;this.defaultFirstOption&&(null===(t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(Zi)[0])||void 0===t||t.setAttribute("data-combobox-option-default","true"))}navigate(t=1){const e=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(Zi)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(Zi),n=i.indexOf(e);if(n===i.length-1&&1===t||0===n&&-1===t)return this.clearSelection(),void this.input.focus();let s=1===t?0:i.length-1;if(e&&n>=0){const e=n+t;e>=0&&e<i.length&&(s=e)}const o=i[s];if(o)for(const t of i)t.removeAttribute("data-combobox-option-default"),o===t?(this.input.setAttribute("aria-activedescendant",o.id),o.setAttribute("aria-selected","true"),Gi(this.list,o)):t.removeAttribute("aria-selected")}clearSelection(){this.input.removeAttribute("aria-activedescendant");for(const t of this.list.querySelectorAll('[aria-selected="true"]'))t.removeAttribute("aria-selected");this.indicateDefaultOption()}}function zi(t){if(!(t.target instanceof Element))return;const e=t.target.closest('[role="option"]');e&&"true"!==e.getAttribute("aria-disabled")&&function(t,e){t.dispatchEvent(new CustomEvent("combobox-commit",{bubbles:!0,detail:e}))}(e,{event:t})}function Yi(t,e){const i=e.querySelector('[aria-selected="true"], [data-combobox-option-default="true"]');return!!i&&("true"===i.getAttribute("aria-disabled")||i.click(),!0)}function Zi(t){return!t.hidden&&!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}function Gi(t,e){(function(t,e){const i=t.scrollTop,n=i+t.clientHeight,s=e.offsetTop,o=s+e.clientHeight;return s>=i&&o<=n})(t,e)||(t.scrollTop=e.offsetTop)}const Ji=window.testScreenReaderDelay||100;class Xi{constructor(t,e,i,n=!1){var s;if(this.container=t,this.input=e,this.results=i,this.combobox=new Ki(e,i,{defaultFirstOption:n}),this.feedback=t.getRootNode().getElementById(`${this.results.id}-feedback`),this.autoselectEnabled=n,this.clearButton=t.getRootNode().getElementById(`${this.input.id||this.input.name}-clear`),this.clientOptions=i.querySelectorAll("[role=option]"),this.feedback&&(this.feedback.setAttribute("aria-live","polite"),this.feedback.setAttribute("aria-atomic","true")),this.clearButton&&!this.clearButton.getAttribute("aria-label")){const t=document.querySelector(`label[for="${this.input.name}"]`);this.clearButton.setAttribute("aria-label","clear:"),this.clearButton.setAttribute("aria-labelledby",`${this.clearButton.id} ${(null==t?void 0:t.id)||""}`)}this.input.getAttribute("aria-expanded")||this.input.setAttribute("aria-expanded","false"),this.results.popover?this.results.matches(":popover-open")&&this.results.hidePopover():this.results.hidden=!0,this.results.getAttribute("aria-label")||this.results.setAttribute("aria-label","results"),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("spellcheck","false"),this.interactingWithList=!1,this.onInputChange=function(t,e=0){let i;return function(...n){clearTimeout(i),i=window.setTimeout((()=>{clearTimeout(i),t(...n)}),e)}}(this.onInputChange.bind(this),300),this.onResultsMouseDown=this.onResultsMouseDown.bind(this),this.onInputBlur=this.onInputBlur.bind(this),this.onInputFocus=this.onInputFocus.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onCommit=this.onCommit.bind(this),this.handleClear=this.handleClear.bind(this),this.input.addEventListener("keydown",this.onKeydown),this.input.addEventListener("focus",this.onInputFocus),this.input.addEventListener("blur",this.onInputBlur),this.input.addEventListener("input",this.onInputChange),this.results.addEventListener("mousedown",this.onResultsMouseDown),this.results.addEventListener("combobox-commit",this.onCommit),null===(s=this.clearButton)||void 0===s||s.addEventListener("click",this.handleClear)}destroy(){this.input.removeEventListener("keydown",this.onKeydown),this.input.removeEventListener("focus",this.onInputFocus),this.input.removeEventListener("blur",this.onInputBlur),this.input.removeEventListener("input",this.onInputChange),this.results.removeEventListener("mousedown",this.onResultsMouseDown),this.results.removeEventListener("combobox-commit",this.onCommit)}handleClear(t){t.preventDefault(),"true"===this.input.getAttribute("aria-expanded")&&(this.input.setAttribute("aria-expanded","false"),this.updateFeedbackForScreenReaders("Results hidden.")),this.input.value="",this.container.value="",this.input.focus(),this.input.dispatchEvent(new Event("change")),this.close()}onKeydown(t){if("Escape"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowUp"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowDown"===t.key&&!this.container.open){if(!this.input.value.trim())return;this.open(),t.stopPropagation(),t.preventDefault()}}onInputFocus(){this.interactingWithList||this.fetchResults()}onInputBlur(){this.interactingWithList||this.close()}onCommit({target:t}){const e=t;if(!(e instanceof HTMLElement))return;if(this.close(),e instanceof HTMLAnchorElement)return;const i=e.getAttribute("data-autocomplete-value")||e.textContent;this.updateFeedbackForScreenReaders(`${e.textContent||""} selected.`),this.container.value=i,i||this.updateFeedbackForScreenReaders("Results hidden.")}onResultsMouseDown(){this.interactingWithList=!0}onInputChange(){this.feedback&&this.feedback.textContent&&(this.feedback.textContent=""),this.container.removeAttribute("value"),this.fetchResults()}identifyOptions(){let t=0;for(const e of this.results.querySelectorAll('[role="option"]:not([id])'))e.id=`${this.results.id}-option-${t++}`}updateFeedbackForScreenReaders(t){setTimeout((()=>{this.feedback&&(this.feedback.textContent=t)}),Ji)}fetchResults(){const t=this.input.value.trim();if(!t&&!this.container.fetchOnEmpty)return void this.close();const e=this.container.src;if(!e)return;const i=new URL(e,window.location.href),n=new URLSearchParams(i.search.slice(1));n.append("q",t),i.search=n.toString(),this.container.dispatchEvent(new CustomEvent("loadstart")),this.container.fetchResult(i).then((t=>{this.results.innerHTML=t,this.identifyOptions(),this.combobox.indicateDefaultOption();const e=this.results.querySelectorAll('[role="option"]'),i=!!e.length||!!this.results.querySelectorAll('[data-no-result-found="true"]').length,n=e.length,[s]=e,o=null==s?void 0:s.textContent;this.autoselectEnabled&&o?this.updateFeedbackForScreenReaders(`${n} results. ${o} is the top result: Press Enter to activate.`):this.updateFeedbackForScreenReaders(`${n||"No"} results.`),i?this.open():this.close(),this.container.dispatchEvent(new CustomEvent("load")),this.container.dispatchEvent(new CustomEvent("loadend"))})).catch((()=>{this.container.dispatchEvent(new CustomEvent("error")),this.container.dispatchEvent(new CustomEvent("loadend"))}))}open(){(this.results.popover?!this.results.matches(":popover-open"):this.results.hidden)&&(this.combobox.start(),this.results.popover?this.results.showPopover():this.results.hidden=!1),this.container.open=!0,this.interactingWithList=!0}close(){(this.results.popover?this.results.matches(":popover-open"):!this.results.hidden)&&(this.combobox.stop(),this.results.popover?this.results.hidePopover():this.results.hidden=!0),this.container.open=!1,this.interactingWithList=!1}}var Qi,tn,en,nn,sn,on=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},rn=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i},an=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]])}return i};const ln=globalThis.HTMLElement||null;class cn extends Event{constructor(t,e){var{relatedTarget:i}=e;super(t,an(e,["relatedTarget"])),this.relatedTarget=i}}const dn=new WeakMap;let hn=null;class AutoCompleteElement extends ln{constructor(){super(...arguments),Qi.add(this),tn.set(this,null),en.set(this,null),sn.set(this,void 0)}static define(t="auto-complete",e=customElements){return e.define(t,this),this}static setCSPTrustedTypesPolicy(t){hn=null===t?t:Promise.resolve(t)}get forElement(){var t;if(null===(t=on(this,tn,"f"))||void 0===t?void 0:t.isConnected)return on(this,tn,"f");const e=this.getAttribute("for"),i=this.getRootNode();return e&&(i instanceof Document||i instanceof ShadowRoot)?i.getElementById(e):null}set forElement(t){rn(this,tn,t,"f"),this.setAttribute("for","")}get inputElement(){var t;return(null===(t=on(this,en,"f"))||void 0===t?void 0:t.isConnected)?on(this,en,"f"):this.querySelector("input")}set inputElement(t){rn(this,en,t,"f"),on(this,Qi,"m",nn).call(this)}connectedCallback(){this.isConnected&&(on(this,Qi,"m",nn).call(this),new MutationObserver((()=>{dn.get(this)||on(this,Qi,"m",nn).call(this)})).observe(this,{subtree:!0,childList:!0}))}disconnectedCallback(){const t=dn.get(this);t&&(t.destroy(),dn.delete(this))}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get open(){return this.hasAttribute("open")}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}get fetchOnEmpty(){return this.hasAttribute("fetch-on-empty")}set fetchOnEmpty(t){this.toggleAttribute("fetch-on-empty",t)}async fetchResult(t){var e;null===(e=on(this,sn,"f"))||void 0===e||e.abort();const{signal:i}=rn(this,sn,new AbortController,"f"),n=await fetch(t.toString(),{signal:i,headers:{Accept:"text/fragment+html"}});if(!n.ok)throw new Error(await n.text());if(hn){return(await hn).createHTML(await n.text(),n)}return await n.text()}static get observedAttributes(){return["open","value","for"]}attributeChangedCallback(t,e,i){var n,s;if(e===i)return;const o=dn.get(this);if(o)switch(this.forElement===(null===(n=dn.get(this))||void 0===n?void 0:n.results)&&this.inputElement===(null===(s=dn.get(this))||void 0===s?void 0:s.input)||on(this,Qi,"m",nn).call(this),t){case"open":null===i?o.close():o.open();break;case"value":null!==i&&(o.input.value=i),this.dispatchEvent(new cn("auto-complete-change",{bubbles:!0,relatedTarget:o.input}))}}}tn=new WeakMap,en=new WeakMap,sn=new WeakMap,Qi=new WeakSet,nn=function(){var t;null===(t=dn.get(this))||void 0===t||t.destroy();const{forElement:e,inputElement:i}=this;if(!e||!i)return;const n="true"===this.getAttribute("data-autoselect");dn.set(this,new Xi(this,i,e,n)),e.setAttribute("role","listbox")};const un="undefined"!=typeof globalThis?globalThis:window;try{un.AutocompleteElement=un.AutoCompleteElement=AutoCompleteElement.define()}catch(t){if(!(un.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}function mn(t){if("clipboard"in navigator)return navigator.clipboard.writeText(t.textContent||"");const e=getSelection();if(null==e)return Promise.reject(new Error);e.removeAllRanges();const i=document.createRange();return i.selectNodeContents(t),e.addRange(i),document.execCommand("copy"),e.removeAllRanges(),Promise.resolve()}function fn(t){if("clipboard"in navigator)return navigator.clipboard.writeText(t);const e=document.body;if(!e)return Promise.reject(new Error);const i=function(t){const e=document.createElement("pre");return e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="5px",e.textContent=t,e}(t);return e.appendChild(i),mn(i),e.removeChild(i),Promise.resolve()}async function pn(t){const e=t.getAttribute("for"),i=t.getAttribute("value");function n(){t.dispatchEvent(new CustomEvent("clipboard-copy",{bubbles:!0}))}var s;if("true"!==t.getAttribute("aria-disabled"))if(i)await fn(i),n();else if(e){const i="getRootNode"in Element.prototype?t.getRootNode():t.ownerDocument;if(!(i instanceof Document||"ShadowRoot"in window&&i instanceof ShadowRoot))return;const o=i.getElementById(e);o&&(await(s=o,s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?fn(s.value):s instanceof HTMLAnchorElement&&s.hasAttribute("href")?fn(s.href):mn(s)),n())}}function gn(t){const e=t.currentTarget;e instanceof HTMLElement&&pn(e)}function bn(t){if(" "===t.key||"Enter"===t.key){const e=t.currentTarget;e instanceof HTMLElement&&(t.preventDefault(),pn(e))}}function vn(t){t.currentTarget.addEventListener("keydown",bn)}function wn(t){t.currentTarget.removeEventListener("keydown",bn)}class ClipboardCopyElement extends HTMLElement{static define(t="clipboard-copy",e=customElements){return e.define(t,this),this}constructor(){super(),this.addEventListener("click",gn),this.addEventListener("focus",vn),this.addEventListener("blur",wn)}connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}const yn="undefined"!=typeof globalThis?globalThis:window;try{yn.ClipboardCopyElement=ClipboardCopyElement.define()}catch(t){if(!(yn.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}function En(t){t.style.display="inline-block"}function An(t){t.style.display="none"}const Ln=new WeakMap;document.addEventListener("clipboard-copy",(({target:t})=>{if(!(t instanceof HTMLElement))return;if(!t.hasAttribute("data-view-component"))return;const e=Ln.get(t),i=t.parentNode?.querySelector("[data-clipboard-copy-feedback]"),n="Copied!";e?(clearTimeout(e),Ln.delete(t)):(!function(t){const[e,i]=t.querySelectorAll(".octicon");e&&i&&(An(e),En(i))}(t),i&&(i.textContent===n?i.textContent=`${n} `:i.textContent=n)),Ln.set(t,setTimeout((()=>{!function(t){const[e,i]=t.querySelectorAll(".octicon");e&&i&&(En(e),An(i))}(t),Ln.delete(t)}),2e3))}));var kn,Tn=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i},Sn=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};const Cn="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(t){const e=[];for(const i of t)e.push({type:"element",value:i}),e.push({type:"literal",value:", "});return e.slice(0,-1)}},xn=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Mn={minimumIntegerDigits:2};class In{constructor(t,e={}){kn.set(this,void 0);let i=String(e.style||"short");"long"!==i&&"short"!==i&&"narrow"!==i&&"digital"!==i&&(i="short");let n="digital"===i?"numeric":i;const s=e.hours||n;n="2-digit"===s?"numeric":s;const o=e.minutes||n;n="2-digit"===o?"numeric":o;const r=e.seconds||n;n="2-digit"===r?"numeric":r;const a=e.milliseconds||n;Tn(this,kn,{locale:t,style:i,years:e.years||"digital"===i?"short":i,yearsDisplay:"always"===e.yearsDisplay?"always":"auto",months:e.months||"digital"===i?"short":i,monthsDisplay:"always"===e.monthsDisplay?"always":"auto",weeks:e.weeks||"digital"===i?"short":i,weeksDisplay:"always"===e.weeksDisplay?"always":"auto",days:e.days||"digital"===i?"short":i,daysDisplay:"always"===e.daysDisplay?"always":"auto",hours:s,hoursDisplay:"always"===e.hoursDisplay||"digital"===i?"always":"auto",minutes:o,minutesDisplay:"always"===e.minutesDisplay||"digital"===i?"always":"auto",seconds:r,secondsDisplay:"always"===e.secondsDisplay||"digital"===i?"always":"auto",milliseconds:a,millisecondsDisplay:"always"===e.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return Sn(this,kn,"f")}formatToParts(t){const e=[],i=Sn(this,kn,"f"),n=i.style,s=i.locale;for(const[o,r]of xn){const a=t[o];if("auto"===i[`${o}Display`]&&!a)continue;const l=i[o],c="2-digit"===l?Mn:"numeric"===l?{}:{style:"unit",unit:r,unitDisplay:l};let d=new Intl.NumberFormat(s,c).format(a);"months"===o&&("narrow"===l||"narrow"===n&&d.endsWith("m"))&&(d=d.replace(/(\d+)m$/,"$1mo")),e.push(d)}return new Cn(s,{type:"unit",style:"digital"===n?"short":n}).formatToParts(e)}format(t){return this.formatToParts(t).map((t=>t.value)).join("")}}kn=new WeakMap;const Dn=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Pn=["year","month","week","day","hour","minute","second","millisecond"];class On{constructor(t=0,e=0,i=0,n=0,s=0,o=0,r=0,a=0){this.years=t,this.months=e,this.weeks=i,this.days=n,this.hours=s,this.minutes=o,this.seconds=r,this.milliseconds=a,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new On(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(t){var e;if("string"==typeof t){const i=String(t).trim(),n=i.startsWith("-")?-1:1,s=null===(e=i.match(Dn))||void 0===e?void 0:e.slice(1).map((t=>(Number(t)||0)*n));return s?new On(...s):new On}if("object"==typeof t){const{years:e,months:i,weeks:n,days:s,hours:o,minutes:r,seconds:a,milliseconds:l}=t;return new On(e,i,n,s,o,r,a,l)}throw new RangeError("invalid duration")}static compare(t,e){const i=Date.now(),n=Math.abs(Hn(i,On.from(t)).getTime()-i),s=Math.abs(Hn(i,On.from(e)).getTime()-i);return n>s?-1:n<s?1:0}toLocaleString(t,e){return new In(t,e).format(this)}}function Hn(t,e){const i=new Date(t);return e.sign<0?(i.setUTCSeconds(i.getUTCSeconds()+e.seconds),i.setUTCMinutes(i.getUTCMinutes()+e.minutes),i.setUTCHours(i.getUTCHours()+e.hours),i.setUTCDate(i.getUTCDate()+7*e.weeks+e.days),i.setUTCMonth(i.getUTCMonth()+e.months),i.setUTCFullYear(i.getUTCFullYear()+e.years)):(i.setUTCFullYear(i.getUTCFullYear()+e.years),i.setUTCMonth(i.getUTCMonth()+e.months),i.setUTCDate(i.getUTCDate()+7*e.weeks+e.days),i.setUTCHours(i.getUTCHours()+e.hours),i.setUTCMinutes(i.getUTCMinutes()+e.minutes),i.setUTCSeconds(i.getUTCSeconds()+e.seconds)),i}function Nn(t,{relativeTo:e=Date.now()}={}){if(e=new Date(e),t.blank)return t;const i=t.sign;let n=Math.abs(t.years),s=Math.abs(t.months),o=Math.abs(t.weeks),r=Math.abs(t.days),a=Math.abs(t.hours),l=Math.abs(t.minutes),c=Math.abs(t.seconds),d=Math.abs(t.milliseconds);d>=900&&(c+=Math.round(d/1e3)),(c||l||a||r||o||s||n)&&(d=0),c>=55&&(l+=Math.round(c/60)),(l||a||r||o||s||n)&&(c=0),l>=55&&(a+=Math.round(l/60)),(a||r||o||s||n)&&(l=0),r&&a>=12&&(r+=Math.round(a/24)),!r&&a>=21&&(r+=Math.round(a/24)),(r||o||s||n)&&(a=0);const h=e.getFullYear(),u=e.getMonth(),m=e.getDate();if(r>=27||n+s+r){const t=new Date(e);t.setDate(1),t.setMonth(u+s*i+1),t.setDate(0);const a=Math.max(0,m-t.getDate()),l=new Date(e);l.setFullYear(h+n*i),l.setDate(m-a),l.setMonth(u+s*i),l.setDate(m-a+r*i);const c=l.getFullYear()-e.getFullYear(),d=l.getMonth()-e.getMonth(),f=Math.abs(Math.round((Number(l)-Number(e))/864e5))+a,p=Math.abs(12*c+d);f<27?(r>=6?(o+=Math.round(r/7),r=0):r=f,s=n=0):p<=11?(s=p,n=0):(s=0,n=c*i),(s||n)&&(r=0)}return n&&(s=0),o>=4&&(s+=Math.round(o/4)),(s||n)&&(o=0),r&&o&&!s&&!n&&(o+=Math.round(r/7),r=0),new On(n*i,s*i,o*i,r*i,a*i,l*i,c*i,d*i)}var Fn,Rn,qn,Wn,Vn,Bn,$n,_n,Un,jn,Kn,zn,Yn,Zn,Gn,Jn,Xn=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},Qn=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i};const ts=globalThis.HTMLElement||null,es=new On,is=new On(0,0,0,0,0,1);class ns extends Event{constructor(t,e,i,n){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=t,this.newText=e,this.oldTitle=i,this.newTitle=n}}function ss(t){if(!t.date)return 1/0;if("duration"===t.format||"elapsed"===t.format){const e=t.precision;if("second"===e)return 1e3;if("minute"===e)return 6e4}const e=Math.abs(Date.now()-t.date.getTime());return e<6e4?1e3:e<36e5?6e4:36e5}const os=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(t){if(this.elements.has(t))return;this.elements.add(t);const e=t.date;if(e&&e.getTime()){const e=ss(t),i=Date.now()+e;i<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),e),this.time=i)}}unobserve(t){this.elements.has(t)&&this.elements.delete(t)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let t=1/0;for(const e of this.elements)t=Math.min(t,ss(e)),e.update();this.time=Math.min(36e5,t),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class RelativeTimeElement extends ts{constructor(){super(...arguments),Fn.add(this),Rn.set(this,!1),qn.set(this,!1),Vn.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),Jn.set(this,null)}static define(t="relative-time",e=customElements){return e.define(t,this),this}get timeZone(){var t;return(null===(t=this.closest("[time-zone]"))||void 0===t?void 0:t.getAttribute("time-zone"))||this.ownerDocument.documentElement.getAttribute("time-zone")||void 0}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title","aria-hidden","time-zone"]}get onRelativeTimeUpdated(){return Xn(this,Jn,"f")}set onRelativeTimeUpdated(t){Xn(this,Jn,"f")&&this.removeEventListener("relative-time-updated",Xn(this,Jn,"f")),Qn(this,Jn,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("relative-time-updated",t)}get second(){const t=this.getAttribute("second");if("numeric"===t||"2-digit"===t)return t}set second(t){this.setAttribute("second",t||"")}get minute(){const t=this.getAttribute("minute");if("numeric"===t||"2-digit"===t)return t}set minute(t){this.setAttribute("minute",t||"")}get hour(){const t=this.getAttribute("hour");if("numeric"===t||"2-digit"===t)return t}set hour(t){this.setAttribute("hour",t||"")}get weekday(){const t=this.getAttribute("weekday");return"long"===t||"short"===t||"narrow"===t?t:"datetime"===this.format&&""!==t?this.formatStyle:void 0}set weekday(t){this.setAttribute("weekday",t||"")}get day(){var t;const e=null!==(t=this.getAttribute("day"))&&void 0!==t?t:"numeric";if("numeric"===e||"2-digit"===e)return e}set day(t){this.setAttribute("day",t||"")}get month(){const t=this.format;let e=this.getAttribute("month");if(""!==e)return null!=e||(e="datetime"===t?this.formatStyle:"short"),"numeric"===e||"2-digit"===e||"short"===e||"long"===e||"narrow"===e?e:void 0}set month(t){this.setAttribute("month",t||"")}get year(){var t;const e=this.getAttribute("year");return"numeric"===e||"2-digit"===e?e:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(t=this.date)||void 0===t?void 0:t.getUTCFullYear())?void 0:"numeric"}set year(t){this.setAttribute("year",t||"")}get timeZoneName(){const t=this.getAttribute("time-zone-name");if("long"===t||"short"===t||"shortOffset"===t||"longOffset"===t||"shortGeneric"===t||"longGeneric"===t)return t}set timeZoneName(t){this.setAttribute("time-zone-name",t||"")}get prefix(){var t;return null!==(t=this.getAttribute("prefix"))&&void 0!==t?t:"datetime"===this.format?"":"on"}set prefix(t){this.setAttribute("prefix",t)}get threshold(){const t=this.getAttribute("threshold");return t&&(e=t,Dn.test(e))?t:"P30D";var e}set threshold(t){this.setAttribute("threshold",t)}get tense(){const t=this.getAttribute("tense");return"past"===t?"past":"future"===t?"future":"auto"}set tense(t){this.setAttribute("tense",t)}get precision(){const t=this.getAttribute("precision");return Pn.includes(t)?t:"micro"===this.format?"minute":"second"}set precision(t){this.setAttribute("precision",t)}get format(){const t=this.getAttribute("format");return"datetime"===t?"datetime":"relative"===t?"relative":"duration"===t?"duration":"micro"===t?"micro":"elapsed"===t?"elapsed":"auto"}set format(t){this.setAttribute("format",t)}get formatStyle(){const t=this.getAttribute("format-style");if("long"===t)return"long";if("short"===t)return"short";if("narrow"===t)return"narrow";const e=this.format;return"elapsed"===e||"micro"===e?"narrow":"datetime"===e?"short":"long"}set formatStyle(t){this.setAttribute("format-style",t)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(t){this.toggleAttribute("no-title",t)}get datetime(){return this.getAttribute("datetime")||""}set datetime(t){this.setAttribute("datetime",t)}get date(){const t=Date.parse(this.datetime);return Number.isNaN(t)?null:new Date(t)}set date(t){this.datetime=(null==t?void 0:t.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){os.unobserve(this)}attributeChangedCallback(t,e,i){e!==i&&("title"===t&&Qn(this,Rn,null!==i&&(this.date&&Xn(this,Fn,"m",Bn).call(this,this.date))!==i,"f"),Xn(this,qn,"f")||"title"===t&&Xn(this,Rn,"f")||Qn(this,qn,(async()=>{await Promise.resolve(),this.update(),Qn(this,qn,!1,"f")})(),"f"))}update(){const t=Xn(this,Vn,"f").textContent||this.textContent||"",e=this.getAttribute("title")||"";let i=e;const n=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!n)return void(Xn(this,Vn,"f").textContent=t);const s=Date.now();Xn(this,Rn,"f")||(i=Xn(this,Fn,"m",Bn).call(this,n)||"",i&&!this.noTitle&&this.setAttribute("title",i));const o=function(t,e="second",i=Date.now()){const n=t.getTime()-i;if(0===n)return new On;const s=Math.sign(n),o=Math.abs(n),r=Math.floor(o/1e3),a=Math.floor(r/60),l=Math.floor(a/60),c=Math.floor(l/24),d=Math.floor(c/30),h=Math.floor(d/12),u=Pn.indexOf(e)||Pn.length;return new On(u>=0?h*s:0,u>=1?(d-12*h)*s:0,0,u>=3?(c-30*d)*s:0,u>=4?(l-24*c)*s:0,u>=5?(a-60*l)*s:0,u>=6?(r-60*a)*s:0,u>=7?(o-1e3*r)*s:0)}(n,this.precision,s),r=Xn(this,Fn,"m",$n).call(this,o);let a=t;const l=Xn(this,Fn,"m",Gn).call(this,r);a=l?Xn(this,Fn,"m",Yn).call(this,n):"duration"===r?Xn(this,Fn,"m",_n).call(this,o):"relative"===r?Xn(this,Fn,"m",Un).call(this,o):Xn(this,Fn,"m",jn).call(this,n),a?Xn(this,Fn,"m",Zn).call(this,a):this.shadowRoot===Xn(this,Vn,"f")&&this.textContent&&Xn(this,Fn,"m",Zn).call(this,this.textContent),a===t&&i===e||this.dispatchEvent(new ns(t,a,e,i));"relative"===r||"duration"===r||l&&(Xn(this,Fn,"m",Kn).call(this,n)||Xn(this,Fn,"m",zn).call(this,n))?os.observe(this):os.unobserve(this)}}Rn=new WeakMap,qn=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,Fn=new WeakSet,Wn=function(){var t;const e=(null===(t=this.closest("[lang]"))||void 0===t?void 0:t.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang");try{return new Intl.Locale(null!=e?e:"").toString()}catch(t){return"default"}},Bn=function(t){return new Intl.DateTimeFormat(Xn(this,Fn,"a",Wn),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:this.timeZone}).format(t)},$n=function(t){const e=this.format;if("datetime"===e)return"datetime";if("duration"===e)return"duration";if("elapsed"===e)return"duration";if("micro"===e)return"duration";if(("auto"===e||"relative"===e)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const e=this.tense;if("past"===e||"future"===e)return"relative";if(1===On.compare(t,this.threshold))return"relative"}return"datetime"},_n=function(t){const e=Xn(this,Fn,"a",Wn),i=this.format,n=this.formatStyle,s=this.tense;let o=es;"micro"===i?(t=Nn(t),o=is,0===t.months&&("past"===this.tense&&-1!==t.sign||"future"===this.tense&&1!==t.sign)&&(t=is)):("past"===s&&-1!==t.sign||"future"===s&&1!==t.sign)&&(t=o);const r=`${this.precision}sDisplay`;return t.blank?o.toLocaleString(e,{style:n,[r]:"always"}):t.abs().toLocaleString(e,{style:n})},Un=function(t){const e=new Intl.RelativeTimeFormat(Xn(this,Fn,"a",Wn),{numeric:"auto",style:this.formatStyle}),i=this.tense;"future"===i&&1!==t.sign&&(t=es),"past"===i&&-1!==t.sign&&(t=es);const[n,s]=function(t,e){const i=Nn(t,e);if(i.blank)return[0,"second"];for(const t of Pn){if("millisecond"===t)continue;const e=i[`${t}s`];if(e)return[e,t]}return[0,"second"]}(t);return"second"===s&&n<10?e.format(0,"millisecond"===this.precision?"second":this.precision):e.format(n,s)},jn=function(t){const e=new Intl.DateTimeFormat(Xn(this,Fn,"a",Wn),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName,timeZone:this.timeZone});return`${this.prefix} ${e.format(t)}`.trim()},Kn=function(t){const e=new Date,i=new Intl.DateTimeFormat(Xn(this,Fn,"a",Wn),{timeZone:this.timeZone,year:"numeric",month:"2-digit",day:"2-digit"});return i.format(e)===i.format(t)},zn=function(t){const e=new Date,i=new Intl.DateTimeFormat(Xn(this,Fn,"a",Wn),{timeZone:this.timeZone,year:"numeric"});return i.format(e)===i.format(t)},Yn=function(t){const e={hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:this.timeZone};if(Xn(this,Fn,"m",Kn).call(this,t)){let i=new Intl.RelativeTimeFormat(Xn(this,Fn,"a",Wn),{numeric:"auto"}).format(0,"day");i=i.charAt(0).toLocaleUpperCase(Xn(this,Fn,"a",Wn))+i.slice(1);return`${i} ${new Intl.DateTimeFormat(Xn(this,Fn,"a",Wn),e).format(t)}`}const i=Object.assign(Object.assign({},e),{day:"numeric",month:"short"});return Xn(this,Fn,"m",zn).call(this,t)?new Intl.DateTimeFormat(Xn(this,Fn,"a",Wn),i).format(t):new Intl.DateTimeFormat(Xn(this,Fn,"a",Wn),Object.assign(Object.assign({},i),{year:"numeric"})).format(t)},Zn=function(t){if(this.hasAttribute("aria-hidden")&&"true"===this.getAttribute("aria-hidden")){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.textContent=t,Xn(this,Vn,"f").replaceChildren(e)}else Xn(this,Vn,"f").textContent=t},Gn=function(t){var e;return"duration"!==t&&("true"===this.ownerDocument.documentElement.getAttribute("data-prefers-absolute-time")||"true"===(null===(e=this.ownerDocument.body)||void 0===e?void 0:e.getAttribute("data-prefers-absolute-time")))};const rs="undefined"!=typeof globalThis?globalThis:window;try{rs.RelativeTimeElement=RelativeTimeElement.define()}catch(t){if(!(rs.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}function as(t){return Array.from(t.querySelectorAll('[role="tablist"] [role="tab"]')).filter((e=>e instanceof HTMLElement&&e.closest(t.tagName)===t))}class TabContainerElement extends HTMLElement{static define(t="tab-container",e=customElements){return e.define(t,this),this}connectedCallback(){this.addEventListener("keydown",(t=>{var e;const i=t.target;if(!(i instanceof HTMLElement))return;if(i.closest(this.tagName)!==this)return;if("tab"!==i.getAttribute("role")&&!i.closest('[role="tablist"]'))return;const n=as(this),s=n.indexOf(n.find((t=>t.matches('[aria-selected="true"]')))),[o,r]="vertical"===(null===(e=i.closest('[role="tablist"]'))||void 0===e?void 0:e.getAttribute("aria-orientation"))?[["ArrowDown","ArrowRight"],["ArrowUp","ArrowLeft"]]:[["ArrowRight"],["ArrowLeft"]];if(o.some((e=>t.code===e))){let t=s+1;t>=n.length&&(t=0),this.selectTab(t)}else if(r.some((e=>t.code===e))){let t=s-1;t<0&&(t=n.length-1),this.selectTab(t)}else"Home"===t.code?(this.selectTab(0),t.preventDefault()):"End"===t.code&&(this.selectTab(n.length-1),t.preventDefault())})),this.addEventListener("click",(t=>{const e=as(this);if(!(t.target instanceof Element))return;if(t.target.closest(this.tagName)!==this)return;const i=t.target.closest('[role="tab"]');if(!(i instanceof HTMLElement&&i.closest('[role="tablist"]')))return;const n=e.indexOf(i);this.selectTab(n)}));for(const t of as(this))t.hasAttribute("aria-selected")||t.setAttribute("aria-selected","false"),t.hasAttribute("tabindex")||("true"===t.getAttribute("aria-selected")?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1"))}selectTab(t){const e=as(this),i=Array.from(this.querySelectorAll('[role="tabpanel"]')).filter((t=>t.closest(this.tagName)===this));if(t>e.length-1)throw new RangeError(`Index "${t}" out of bounds`);const n=e[t],s=i[t];if(!!this.dispatchEvent(new CustomEvent("tab-container-change",{bubbles:!0,cancelable:!0,detail:{relatedTarget:s}}))){for(const t of e)t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");for(const t of i)t.hidden=!0,t.hasAttribute("tabindex")||t.hasAttribute("data-tab-container-no-tabstop")||t.setAttribute("tabindex","0");n.setAttribute("aria-selected","true"),n.setAttribute("tabindex","0"),n.focus(),s.hidden=!1,this.dispatchEvent(new CustomEvent("tab-container-changed",{bubbles:!0,detail:{relatedTarget:s}}))}}}const ls="undefined"!=typeof globalThis?globalThis:window;try{ls.TabContainerElement=TabContainerElement.define()}catch(t){if(!(ls.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}let cs=class PrimerMultiInputElement extends HTMLElement{activateField(t){const e=this.findField(t);if(e){for(const t of this.fields)t!==e&&(t.setAttribute("disabled","disabled"),t.setAttribute("hidden","hidden"),t.parentElement?.setAttribute("hidden","hidden"));e.removeAttribute("disabled"),e.removeAttribute("hidden"),e.parentElement?.removeAttribute("hidden")}}findField(t){for(const e of this.fields)if(e.getAttribute("data-name")===t)return e;return null}};function ds(t,e=0,{start:i=!1,middle:n=!1,once:s=!1}={}){return function(t,e=0,{start:i=!0,middle:n=!0,once:s=!1}={}){let o,r=0,a=!1;function l(...c){if(a)return;const d=Date.now()-r;r=Date.now(),i?(i=!1,t.apply(this,c),s&&l.cancel()):(n&&d<e||!n)&&(clearTimeout(o),o=setTimeout((()=>{r=Date.now(),t.apply(this,c),s&&l.cancel()}),n?e-d:e))}return l.cancel=()=>{clearTimeout(o),a=!0},l}(t,e,{start:i,middle:n,once:s})}g([j],cs.prototype,"fields",void 0),cs=g([K("primer-multi-input")],cs),window.customElements.get("primer-multi-input")||(Object.assign(window,{PrimerMultiInputElement:cs}),window.customElements.define("primer-multi-input",cs));var hs,us,ms=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},fs=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i};!function(t){t.GET="GET",t.POST="POST"}(us||(us={}));const ps=new WeakMap;class gs extends Event{constructor(t){super(`auto-check-${t}`,{bubbles:!0}),this.phase=t}get detail(){return this}}class bs extends gs{constructor(t,e=""){super(t),this.phase=t,this.message=e,this.setValidity=t=>{this.message=t}}}class vs extends gs{constructor(){super("complete")}}class ws extends gs{constructor(t){super("success"),this.response=t}}class ys extends bs{constructor(){super("start","Verifying…")}}class Es extends bs{constructor(t){super("error","Validation failed"),this.response=t}}class As extends gs{constructor(t){super("send"),this.body=t}}class AutoCheckElement extends HTMLElement{constructor(){super(...arguments),hs.set(this,null)}static define(t="auto-check",e=customElements){return e.define(t,this),this}get onloadend(){return ms(this,hs,"f")}set onloadend(t){ms(this,hs,"f")&&this.removeEventListener("loadend",ms(this,hs,"f")),fs(this,hs,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("loadend",t)}connectedCallback(){const t=this.input;if(!t)return;const e=ds(Ts.bind(null,this),300),i={check:e,controller:null};ps.set(this,i);const n=Ls.bind(null,e);t.addEventListener("blur",n),t.addEventListener("input",n),t.addEventListener("triggervalidation",n),t.autocomplete="off",t.spellcheck=!1}disconnectedCallback(){const t=this.input;if(!t)return;const e=ps.get(this);e&&(ps.delete(this),t.removeEventListener("input",ks),t.removeEventListener("input",e.check),t.setCustomValidity(""))}attributeChangedCallback(t){if("required"===t){const t=this.input;if(!t)return;t.required=this.required}}triggerValidation(){const t=this.input;t&&t.dispatchEvent(new CustomEvent("triggervalidation"))}static get observedAttributes(){return["required"]}get input(){return this.querySelector("input")}get src(){const t=this.getAttribute("src");if(!t)return"";const e=this.ownerDocument.createElement("a");return e.href=t,e.href}set src(t){this.setAttribute("src",t)}get csrf(){const t=this.querySelector("[data-csrf]");return this.getAttribute("csrf")||t instanceof HTMLInputElement&&t.value||""}set csrf(t){this.setAttribute("csrf",t)}get required(){return this.hasAttribute("required")}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}set csrfField(t){this.setAttribute("csrf-field",t)}get httpMethod(){return us[this.getAttribute("http-method")]||"POST"}set validateOnKeystroke(t){t?this.setAttribute("validate-on-keystroke",""):this.removeAttribute("validate-on-keystroke")}get validateOnKeystroke(){const t=this.getAttribute("validate-on-keystroke");return"true"===t||""===t}}function Ls(t,e){const i=e.currentTarget;if(!(i instanceof HTMLInputElement))return;const n=i.closest("auto-check");n instanceof AutoCheckElement&&("input"===e.type&&n.setAttribute("dirty",""),0!==i.value.length&&("blur"===e.type&&!n.validateOnKeystroke&&n.hasAttribute("dirty")||"input"===e.type&&n.validateOnKeystroke||"triggervalidation"===e.type)&&(ks(e),t()))}function ks(t){const e=t.currentTarget;if(!(e instanceof HTMLInputElement))return;const i=e.closest("auto-check");if(!(i instanceof AutoCheckElement))return;const n=i.src,s=i.csrf,o=i.httpMethod,r=ps.get(i);if(!n||"POST"===o&&!s||!r)return;const a=new ys;e.dispatchEvent(a),i.required&&e.setCustomValidity(a.message)}async function Ts(t){const e=t.input;if(!e)return;const i=t.csrfField,n=t.src,s=t.csrf,o=ps.get(t),r=t.httpMethod;if(!n||"POST"===r&&!s||!o)return void(t.required&&e.setCustomValidity(""));if(!e.value.trim())return void(t.required&&e.setCustomValidity(""));const a=new FormData,l=new URL(n,window.location.origin);"POST"===r?(a.append(i,s),a.append("value",e.value)):l.search=new URLSearchParams({value:e.value}).toString(),e.dispatchEvent(new As(a)),o.controller?o.controller.abort():t.dispatchEvent(new Event("loadstart")),o.controller="AbortController"in window?new AbortController:{signal:null,abort(){}},t.removeAttribute("dirty");try{const i=await async function(t,e,i){"GET"===i.method&&delete i.body;try{const n=await fetch(e,i);return t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend")),n}catch(e){throw"AbortError"!==e.name&&(t.dispatchEvent(new Event("error")),t.dispatchEvent(new Event("loadend"))),e}}(t,l.toString(),{credentials:"same-origin",signal:o.controller.signal,method:r,body:a});if(i.ok)t.required&&e.setCustomValidity(""),t.validateOnKeystroke=!1,e.dispatchEvent(new ws(i.clone()));else{t.validateOnKeystroke=!0;const n=new Es(i.clone());e.dispatchEvent(n),t.required&&e.setCustomValidity(n.message)}o.controller=null,e.dispatchEvent(new vs)}catch(t){"AbortError"!==t.name&&(o.controller=null,e.dispatchEvent(new vs))}}hs=new WeakMap;const Ss="undefined"!=typeof globalThis?globalThis:window;try{Ss.AutoCheckElement=AutoCheckElement.define()}catch(t){if(!(Ss.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}class Cs{constructor(t,e,i){this.inputElement=t,this.characterLimitElement=e,this.characterLimitSrElement=i,this.SCREEN_READER_DELAY=500,this.announceTimeout=null,this.isInitialLoad=!0}initialize(t){this.inputElement.addEventListener("keyup",(()=>this.updateCharacterCount()),t?{signal:t}:void 0),this.inputElement.addEventListener("paste",(()=>setTimeout((()=>this.updateCharacterCount()),50)),t?{signal:t}:void 0),this.updateCharacterCount(),this.isInitialLoad=!1}cleanup(){this.announceTimeout&&clearTimeout(this.announceTimeout)}pluralize(t,e){return 1===t?e:`${e}s`}updateCharacterCount(){if(!this.characterLimitElement)return;const t=this.characterLimitElement.getAttribute("data-max-length");if(!t)return;const e=parseInt(t,10)-this.inputElement.value.length;let i="";if(e>=0){i=`${e} ${this.pluralize(e,"character")} remaining`;const t=this.characterLimitElement.querySelector(".FormControl-caption-text");t&&(t.textContent=i),this.clearError()}else{const t=-e;i=`${t} ${this.pluralize(t,"character")} over`;const n=this.characterLimitElement.querySelector(".FormControl-caption-text");n&&(n.textContent=i),this.setError()}this.isInitialLoad||this.announceToScreenReader(i)}announceToScreenReader(t){this.announceTimeout&&clearTimeout(this.announceTimeout),this.announceTimeout=window.setTimeout((()=>{this.characterLimitSrElement&&(this.characterLimitSrElement.textContent=t)}),this.SCREEN_READER_DELAY)}setError(){this.inputElement.setAttribute("invalid","true"),this.inputElement.setAttribute("aria-invalid","true"),this.characterLimitElement.classList.add("fgColor-danger");const t=this.characterLimitElement.querySelector(".FormControl-caption-icon");t&&t.removeAttribute("hidden")}clearError(){this.inputElement.removeAttribute("invalid"),this.inputElement.removeAttribute("aria-invalid"),this.characterLimitElement.classList.remove("fgColor-danger");const t=this.characterLimitElement.querySelector(".FormControl-caption-icon");t&&t.setAttribute("hidden","")}}var xs,Ms;let Is=class PrimerTextFieldElement extends HTMLElement{constructor(){super(...arguments),xs.set(this,void 0),Ms.set(this,null)}connectedCallback(){b(this,xs,"f")?.abort();const{signal:t}=v(this,xs,new AbortController,"f");this.addEventListener("auto-check-success",(async t=>{const e=await t.detail.response.text();e&&e.length>0?this.setSuccess(e):this.clearError()}),{signal:t}),this.addEventListener("auto-check-error",(async t=>{const e=await t.detail.response.text();this.setError(e)}),{signal:t}),this.characterLimitElement&&(v(this,Ms,new Cs(this.inputElement,this.characterLimitElement,this.characterLimitSrElement),"f"),b(this,Ms,"f").initialize(t))}disconnectedCallback(){b(this,xs,"f")?.abort(),b(this,Ms,"f")?.cleanup()}clearContents(){this.inputElement.value="",this.inputElement.focus(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))}clearError(){this.inputElement.removeAttribute("invalid"),this.validationElement.hidden=!0,this.validationMessageElement.replaceChildren()}setValidationMessage(t){const e=document.createElement("template");e.innerHTML=t;const i=document.importNode(e.content,!0);this.validationMessageElement.replaceChildren(i)}toggleValidationStyling(t){t?this.validationElement.classList.remove("FormControl-inlineValidation--success"):this.validationElement.classList.add("FormControl-inlineValidation--success"),this.validationSuccessIcon.hidden=t,this.validationErrorIcon.hidden=!t,this.inputElement.setAttribute("invalid",t?"true":"false")}setSuccess(t){this.toggleValidationStyling(!1),this.setValidationMessage(t),this.validationElement.hidden=!1}setError(t){this.toggleValidationStyling(!0),this.setValidationMessage(t),this.validationElement.hidden=!1}showLeadingSpinner(){this.leadingSpinner?.removeAttribute("hidden"),this.leadingVisual?.setAttribute("hidden","")}hideLeadingSpinner(){this.leadingSpinner?.setAttribute("hidden",""),this.leadingVisual?.removeAttribute("hidden")}};var Ds;xs=new WeakMap,Ms=new WeakMap,g([U],Is.prototype,"inputElement",void 0),g([U],Is.prototype,"validationElement",void 0),g([U],Is.prototype,"validationMessageElement",void 0),g([U],Is.prototype,"validationSuccessIcon",void 0),g([U],Is.prototype,"validationErrorIcon",void 0),g([U],Is.prototype,"leadingVisual",void 0),g([U],Is.prototype,"leadingSpinner",void 0),g([U],Is.prototype,"characterLimitElement",void 0),g([U],Is.prototype,"characterLimitSrElement",void 0),Is=g([K("primer-text-field")],Is);let Ps=class PrimerTextAreaElement extends HTMLElement{constructor(){super(...arguments),Ds.set(this,null)}connectedCallback(){this.characterLimitElement&&(v(this,Ds,new Cs(this.inputElement,this.characterLimitElement,this.characterLimitSrElement),"f"),b(this,Ds,"f").initialize())}disconnectedCallback(){b(this,Ds,"f")?.cleanup()}};Ds=new WeakMap,g([U],Ps.prototype,"inputElement",void 0),g([U],Ps.prototype,"characterLimitElement",void 0),g([U],Ps.prototype,"characterLimitSrElement",void 0),Ps=g([K("primer-text-area")],Ps),window.customElements.get("primer-text-area")||(Object.assign(window,{PrimerTextAreaElement:Ps}),window.customElements.define("primer-text-area",Ps));let Os=class ToggleSwitchInputElement extends HTMLElement{connectedCallback(){this.addEventListener("toggleSwitchError",(t=>{this.validationMessageElement.textContent=t.detail,this.validationElement.removeAttribute("hidden")})),this.addEventListener("toggleSwitchSuccess",(()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")})),this.addEventListener("toggleSwitchLoading",(()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")}))}};var Hs,Ns,Fs,Rs,qs,Ws,Vs,Bs,$s,_s,Us,js,Ks,zs,Ys,Zs,Gs,Js,Xs,Qs,to;g([U],Os.prototype,"validationElement",void 0),g([U],Os.prototype,"validationMessageElement",void 0),Os=g([K("toggle-switch-input")],Os);const eo=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]'],io=eo.map((t=>`:not([hidden]) > ${t}`));let no=class ActionMenuElement extends HTMLElement{constructor(){super(...arguments),Hs.add(this),Ns.set(this,void 0),Fs.set(this,""),Rs.set(this,""),qs.set(this,!1),Ws.set(this,void 0)}get selectVariant(){return this.getAttribute("data-select-variant")}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){const t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get popoverElement(){return this.invokerElement?.popoverTargetElement||null}get invokerElement(){const t=this.querySelector("[role=menu]")?.id;if(!t)return null;for(const e of this.querySelectorAll("[aria-controls]"))if(e.getAttribute("aria-controls")===t)return e;return null}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){const t=this.querySelectorAll("[aria-checked=true]"),e=[];for(const i of t){const t=i.querySelector(".ActionListItem-label");e.push({label:t?.textContent,value:i?.getAttribute("data-value"),element:i})}return e}connectedCallback(){const{signal:t}=v(this,Ns,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusout",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.popoverElement?.addEventListener("toggle",this,{signal:t}),b(this,Hs,"m",Xs).call(this),b(this,Hs,"m",Qs).call(this),b(this,Hs,"m",Vs).call(this),this.includeFragment&&this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t});const e=()=>{b(this,Hs,"m",Js).call(this)&&this.overlay?.update()};v(this,Ws,new IntersectionObserver((t=>{for(const i of t){i.target===this.invokerElement&&(i.isIntersecting?window.addEventListener("scroll",e,{capture:!0}):window.removeEventListener("scroll",e,{capture:!0}))}})),"f"),Ge(this,(()=>Boolean(this.invokerElement)),(()=>b(this,Ws,"f").observe(this.invokerElement))),this.includeFragment||this.setAttribute("data-ready","true")}disconnectedCallback(){b(this,Ns,"f").abort()}handleEvent(t){const e=this.invokerElement?.contains(t.target),i=b(this,Hs,"m",_s).call(this,t);if("toggle"===t.type&&"open"===t.newState&&window.requestAnimationFrame((()=>{b(this,Hs,"a",to)?.focus()})),e&&"mousedown"===t.type)return void v(this,qs,!0,"f");if("mousedown"===t.type)return void t.preventDefault();if(e&&i)return b(this,Hs,"m",Us).call(this,t),void v(this,qs,!1,"f");if("focusout"===t.type){if(b(this,qs,"f"))return;return void requestAnimationFrame((()=>{this.contains(document.activeElement)&&document.activeElement!==this.invokerElement||b(this,Hs,"m",Ys).call(this)}))}const n=t.target.closest(io.join(","));if(null!==n&&i){if(b(this,Hs,"m",Bs).call(this,t))return;const e=n.closest("[data-show-dialog-id]");if(e){const i=this.ownerDocument.getElementById(e.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(e))return void b(this,Hs,"m",js).call(this,t,i)}return b(this,Hs,"m",$s).call(this,t)&&(t.preventDefault(),n.click()),void b(this,Hs,"m",Ks).call(this,n)}"include-fragment-replaced"===t.type&&b(this,Hs,"m",zs).call(this)}get items(){return Array.from(this.querySelectorAll(io.join(",")))}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),t.querySelector(".ActionListContent").setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),t.querySelector(".ActionListContent").removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}hideItem(t){t&&t.setAttribute("hidden","hidden")}showItem(t){t&&t.removeAttribute("hidden")}isItemChecked(t){return!!t&&"true"===t.querySelector(".ActionListContent").getAttribute("aria-checked")}checkItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){const e=t.querySelector(".ActionListContent");"true"===e.getAttribute("aria-checked")||b(this,Hs,"m",Ks).call(this,e)}}uncheckItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){const e=t.querySelector(".ActionListContent");"true"===e.getAttribute("aria-checked")&&b(this,Hs,"m",Ks).call(this,e)}}};Ns=new WeakMap,Fs=new WeakMap,Rs=new WeakMap,qs=new WeakMap,Ws=new WeakMap,Hs=new WeakSet,Vs=function(){const{signal:t}=b(this,Ns,"f");for(const e of this.querySelectorAll(eo.join(",")))e.addEventListener("click",b(this,Hs,"m",Bs).bind(this),{signal:t}),e.addEventListener("keydown",b(this,Hs,"m",Bs).bind(this),{signal:t})},Bs=function(t){if(!b(this,Hs,"m",_s).call(this,t))return!1;const e=t.target.closest(io.join(","));return!!e&&(!!e.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0))},$s=function(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},_s=function(t){return t instanceof MouseEvent&&"click"===t.type||b(this,Hs,"m",$s).call(this,t)},Us=function(t){t.preventDefault(),t.stopPropagation(),b(this,Hs,"m",Js).call(this)?b(this,Hs,"m",Gs).call(this):b(this,Hs,"m",Zs).call(this)},js=function(t,e){this.contains(e)&&(this.querySelector(".ActionListWrap").style.display="none");const i=new AbortController,{signal:n}=i,s=()=>{i.abort(),this.contains(e)&&(this.querySelector(".ActionListWrap").style.display="",b(this,Hs,"m",Js).call(this)&&b(this,Hs,"m",Gs).call(this));const t=this.ownerDocument.activeElement,n=this.ownerDocument.activeElement===this.ownerDocument.body,s=this.contains(t),o=e.contains(t);(n||s||o)&&setTimeout((()=>{const e=this.ownerDocument.activeElement;e!==t&&e!==this.ownerDocument.body||this.invokerElement?.focus()}),0)};e.addEventListener("close",s,{signal:n}),e.addEventListener("cancel",s,{signal:n})},Ks=function(t){if("multiple"!==this.selectVariant&&setTimeout((()=>{b(this,Hs,"m",Js).call(this)&&b(this,Hs,"m",Gs).call(this)})),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;const e="true"!==t.getAttribute("aria-checked");if("single"===this.selectVariant){e&&t.setAttribute("aria-checked","true");for(const e of this.querySelectorAll("[aria-checked]"))e!==t&&e.setAttribute("aria-checked","false");b(this,Hs,"m",Xs).call(this)}else t.setAttribute("aria-checked",`${e}`);b(this,Hs,"m",Qs).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:t.parentElement,checked:this.isItemChecked(t.parentElement)}}))},zs=function(){b(this,Hs,"a",to)?.focus(),b(this,Hs,"m",Vs).call(this),this.setAttribute("data-ready","true")},Ys=function(){b(this,Hs,"m",Gs).call(this)},Zs=function(){this.popoverElement?.showPopover()},Gs=function(){this.popoverElement?.hidePopover()},Js=function(){return this.popoverElement?.matches(":popover-open")},Xs=function(){if("single"!==this.selectVariant)return;if(!this.dynamicLabel)return;const t=this.invokerLabel;if(!t)return;v(this,Fs,b(this,Fs,"f")||t.textContent||"","f");const e=this.querySelector("[aria-checked=true] .ActionListItem-label");if(e&&this.dynamicLabel){const i=document.createElement("span");i.classList.add("color-fg-muted");const n=document.createElement("span");i.textContent=this.dynamicLabelPrefix,n.textContent=e.textContent||"",t.replaceChildren(i,n)}else t.textContent=b(this,Fs,"f")},Qs=function(){if("single"===this.selectVariant){const t=this.querySelector("[data-list-inputs=true] input");if(!t)return;const e=this.selectedItems[0];e?(t.value=(e.value||e.label||"").trim(),t.removeAttribute("disabled")):t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){const t=this.querySelector("[data-list-inputs=true]");if(!t)return;const e=t.querySelectorAll("input");e.length>0&&v(this,Rs,b(this,Rs,"f")||e[0].name,"f");for(const e of this.selectedItems){const i=document.createElement("input");i.setAttribute("data-list-input","true"),i.type="hidden",i.autocomplete="off",i.name=b(this,Rs,"f"),i.value=(e.value||e.label||"").trim(),t.append(i)}for(const t of e)t.remove()}},to=function(){return this.querySelector(io.join(","))},g([U],no.prototype,"includeFragment",void 0),g([U],no.prototype,"overlay",void 0),no=g([K("action-menu")],no),window.customElements.get("action-menu")||(window.ActionMenuElement=no,window.customElements.define("action-menu",no));const so="less",oo="equal",ro="greater";var ao,lo,co,ho,uo,mo=t=>{throw TypeError(t)},fo=(t,e,i)=>e.has(t)||mo("Cannot "+i),po=(t,e,i)=>(fo(t,e,"read from private field"),i?i.call(t):e.get(t)),go=(t,e,i)=>e.has(t)?mo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),bo=(t,e,i,n)=>(fo(t,e,"write to private field"),e.set(t,i),i),vo=(t,e,i)=>(fo(t,e,"access private method"),i);class wo{constructor({compareFn:t}){go(this,co),go(this,ao),go(this,lo),bo(this,ao,t),bo(this,lo,[])}insert(t){po(this,lo).push(t),vo(this,co,uo).call(this)}pop(){const t=po(this,lo)[0];return po(this,lo)[po(this,lo).length-1]&&(po(this,lo)[0]=po(this,lo)[po(this,lo).length-1],po(this,lo).pop()),vo(this,co,ho).call(this),t}peek(){return po(this,lo)[0]}delete(t){const e=po(this,lo).indexOf(t);-1!==e&&(Mo(po(this,lo),e,po(this,lo).length-1),po(this,lo).pop(),vo(this,co,ho).call(this))}clear(){bo(this,lo,[])}get size(){return po(this,lo).length}}function yo(t){return 2*t+1}function Eo(t){return 2*t+2}function Ao(t){return Math.floor((t-1)/2)}function Lo(t,e){return yo(t)<e}function ko(t,e){return Eo(t)<e}function To(t){return t>0}function So(t,e){return t[yo(e)]}function Co(t,e){return t[Eo(e)]}function xo(t,e){return t[Ao(e)]}function Mo(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}ao=new WeakMap,lo=new WeakMap,co=new WeakSet,ho=function(){let t=0;for(;Lo(t,po(this,lo).length);){let e=yo(t);if(ko(t,po(this,lo).length)&&po(this,ao).call(this,Co(po(this,lo),t),So(po(this,lo),t))===so&&(e=Eo(t)),po(this,ao).call(this,po(this,lo)[t],po(this,lo)[e])===so)break;Mo(po(this,lo),t,e),t=e}},uo=function(){let t=po(this,lo).length-1;for(;To(t)&&po(this,ao).call(this,po(this,lo)[t],xo(po(this,lo),t))===so;)Mo(po(this,lo),t,Ao(t)),t=Ao(t)};var Io,Do,Po,Oo,Ho=Object.defineProperty,No=t=>{throw TypeError(t)},Fo=(t,e,i)=>((t,e,i)=>e in t?Ho(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i)(t,"symbol"!=typeof e?e+"":e,i),Ro=(t,e,i)=>e.has(t)||No("Cannot "+i),qo=(t,e,i)=>(Ro(t,e,"read from private field"),i?i.call(t):e.get(t)),Wo=(t,e,i)=>e.has(t)?No("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Vo=(t,e,i,n)=>(Ro(t,e,"write to private field"),e.set(t,i),i);Io=Symbol.toStringTag;class Bo{constructor(){Fo(this,Io,"Deferred"),Wo(this,Do),Wo(this,Po),Wo(this,Oo),Vo(this,Do,new Promise(((t,e)=>{Vo(this,Po,t),Vo(this,Oo,e)})))}then(t,e){return Promise.prototype.then.apply(qo(this,Do),[t,e])}catch(t){return Promise.prototype.catch.apply(qo(this,Do),[t])}finally(t){return Promise.prototype.finally.apply(qo(this,Do),[t])}resolve(t){qo(this,Po).call(this,t)}reject(t){qo(this,Oo).call(this,t)}getPromise(){return qo(this,Do)}}Do=new WeakMap,Po=new WeakMap,Oo=new WeakMap;var $o,_o,Uo,jo,Ko,zo,Yo=t=>{throw TypeError(t)},Zo=(t,e,i)=>e.has(t)||Yo("Cannot "+i),Go=(t,e,i)=>(Zo(t,e,"read from private field"),i?i.call(t):e.get(t)),Jo=(t,e,i)=>e.has(t)?Yo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Xo=(t,e,i,n)=>(Zo(t,e,"write to private field"),e.set(t,i),i),Qo=(t,e,i)=>(Zo(t,e,"access private method"),i);class LiveRegionElement extends HTMLElement{constructor(){if(super(),Jo(this,jo),Jo(this,$o),Jo(this,_o),Jo(this,Uo),!this.shadowRoot){const t=function(){if(tr)return tr;return tr=document.createElement("template"),tr.innerHTML=er,tr}();this.attachShadow({mode:"open"}).appendChild(t.content.cloneNode(!0))}Xo(this,$o,!1),Xo(this,Uo,null),Xo(this,_o,new wo({compareFn:ir}))}get delay(){const t=this.getAttribute("delay");return t?parseInt(t,10):150}set delay(t){this.setAttribute("delay",`${t}`)}announce(t,e={}){const{delayMs:i,politeness:n="polite"}=e,s=Date.now(),o=new Bo,r={deferred:o,politeness:n,contents:t,scheduled:void 0!==i?s+i:s};return Go(this,_o).insert(r),Qo(this,jo,Ko).call(this),{...o.getPromise(),cancel:()=>{Go(this,_o).delete(r),o.resolve()}}}announceFromElement(t,e){const i=function(t){let e="";t.hasAttribute("aria-label")?e=t.getAttribute("aria-label"):t.innerText?e=t.innerText:t.textContent&&(e=t.textContent);return e?e.trim():""}(t);if(""!==i)return this.announce(i,e);return{...Promise.resolve(),cancel:nr}}getMessage(t="polite"){const e=this.shadowRoot?.getElementById(t);if(!e)throw new Error("Unable to find container for message");return e.textContent}clear(){null!==Go(this,Uo)&&(clearTimeout(Go(this,Uo)),Xo(this,Uo,null)),Xo(this,$o,!1),Go(this,_o).clear()}}$o=new WeakMap,_o=new WeakMap,Uo=new WeakMap,jo=new WeakSet,Ko=function(){if(Go(this,$o))return;let t=Go(this,_o).peek();if(!t)return;null!==Go(this,Uo)&&(clearTimeout(Go(this,Uo)),Xo(this,Uo,null));const e=Date.now();if(t.scheduled<=e)return t=Go(this,_o).pop(),t&&Qo(this,jo,zo).call(this,t),void Qo(this,jo,Ko).call(this);const i=t.scheduled-e;Xo(this,Uo,window.setTimeout((()=>{Xo(this,Uo,null),Qo(this,jo,Ko).call(this)}),i))},zo=function(t){Xo(this,$o,!0);const{contents:e,deferred:i,politeness:n}=t,s=this.shadowRoot?.getElementById(n);if(!s)throw Xo(this,$o,!1),new Error(`Unable to find container for message. Expected a container with id="${n}"`);s.textContent===e?s.textContent=`${e} `:s.textContent=e,null!==Go(this,Uo)&&clearTimeout(Go(this,Uo)),i.resolve(),this.delay>0?Xo(this,Uo,window.setTimeout((()=>{Xo(this,Uo,null),Xo(this,$o,!1),Qo(this,jo,Ko).call(this)}),this.delay)):(Xo(this,Uo,null),Xo(this,$o,!1),Qo(this,jo,Ko).call(this))};let tr=null;const er='\n<style>\n:host {\n border: 0;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n</style>\n<div id="polite" aria-live="polite" aria-atomic="true"></div>\n<div id="assertive" aria-live="assertive" aria-atomic="true"></div>\n';function ir(t,e){return t.politeness===e.politeness?t.scheduled===e.scheduled?oo:t.scheduled<e.scheduled?so:ro:"assertive"===t.politeness&&"assertive"!==e.politeness?so:"assertive"!==t.politeness&&"assertive"===e.politeness?ro:oo}function nr(){}var sr,or,rr,ar,lr,cr,dr,hr,ur,mr,fr,pr,gr,br,vr,wr,yr,Er,Ar,Lr,kr,Tr,Sr,Cr,xr,Mr,Ir,Dr,Pr,Or,Hr,Nr,Fr,Rr,qr,Wr,Vr,Br,$r,_r;customElements.get("live-region")||customElements.define("live-region",LiveRegionElement);const Ur=['[role="option"]'],jr=Ur.join(","),Kr=Ur.map((t=>`:not([hidden]) > ${t}`)).join(",");var zr,Yr;!function(t){t[t.REMOTE=0]="REMOTE",t[t.EVENTUALLY_LOCAL=1]="EVENTUALLY_LOCAL",t[t.LOCAL=2]="LOCAL"}(zr||(zr={})),function(t){t[t.BODY=0]="BODY",t[t.BANNER=1]="BANNER"}(Yr||(Yr={}));const Zr=(()=>{const t=new Set;let e=null;function i(){for(const e of t)e.updateAnchorPosition()}return n=>{window.addEventListener("resize",i),window.addEventListener("scroll",i),e||(e=new ResizeObserver((()=>{for(const e of t)e.updateAnchorPosition()}))),e.observe(n.ownerDocument.documentElement),n.addEventListener("dialog:close",(()=>{n.invokerElement?.setAttribute("aria-expanded","false"),t.delete(n)})),n.addEventListener("dialog:open",(()=>{t.add(n)}))}})();let Gr=class SelectPanelElement extends HTMLElement{constructor(){super(...arguments),sr.add(this),or.set(this,void 0),rr.set(this,void 0),ar.set(this,""),lr.set(this,""),cr.set(this,new Map),dr.set(this,null),hr.set(this,null),ur.set(this,!1)}get open(){return this.dialog.open}get selectVariant(){return this.getAttribute("data-select-variant")}get ariaSelectionType(){return"aria-selected"}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){const t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}get dynamicAriaLabelPrefix(){const t=this.getAttribute("data-dynamic-aria-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get invokerElement(){const t=this.querySelector("dialog")?.id;if(!t)return null;for(const e of this.querySelectorAll("[aria-controls]"))if(e.getAttribute("aria-controls")===t)return e;return null}get closeButton(){return this.querySelector("button[data-close-dialog-id]")}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){return Array.from(b(this,cr,"f").values())}get align(){return this.getAttribute("anchor-align")||"start"}get side(){return this.getAttribute("anchor-side")||"outside-bottom"}updateAnchorPosition(){if(this&&null===this.offsetParent&&this.hide(),this.invokerElement){const{top:t,left:e}=X(this.dialog,this.invokerElement,{align:this.align,side:this.side,anchorOffset:4});this.dialog.style.top=`${t}px`,this.dialog.style.left=`${e}px`,this.dialog.style.bottom="auto",this.dialog.style.right="auto"}}connectedCallback(){const{signal:t}=v(this,rr,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.addEventListener("input",this,{signal:t}),this.addEventListener("remote-input-success",this,{signal:t}),this.addEventListener("remote-input-error",this,{signal:t}),this.addEventListener("loadstart",this,{signal:t}),b(this,sr,"m",qr).call(this),b(this,sr,"m",Wr).call(this),b(this,sr,"m",mr).call(this),Zr(this),Ge(this,(()=>Boolean(this.remoteInput)),(()=>{this.remoteInput.addEventListener("loadstart",this,{signal:t}),this.remoteInput.addEventListener("loadend",this,{signal:t})})),Ge(this,(()=>Boolean(this.includeFragment)),(()=>{this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t}),this.includeFragment.addEventListener("error",this,{signal:t}),this.includeFragment.addEventListener("loadend",this,{signal:t})})),v(this,or,new IntersectionObserver((t=>{for(const e of t){const t=e.target;e.isIntersecting&&t===this.dialog&&(this.filterInputTextField&&document.activeElement!==this.filterInputTextField&&this.filterInputTextField.focus(),this.dialog.setAttribute("data-ready","true"),this.updateAnchorPosition(),b(this,sr,"a",Pr)===zr.LOCAL&&b(this,sr,"m",Cr).call(this))}})),"f"),Ge(this,(()=>Boolean(this.dialog)),(()=>{b(this,or,"f").observe(this.dialog),this.dialog.addEventListener("close",this,{signal:t}),"true"===this.getAttribute("data-open-on-load")&&this.show()})),b(this,sr,"a",Pr)===zr.LOCAL&&Ge(this,(()=>this.items.length>0),(()=>{b(this,sr,"m",Cr).call(this),b(this,sr,"m",Wr).call(this)}))}disconnectedCallback(){b(this,rr,"f").abort()}handleEvent(t){if(t.target===this.filterInputTextField)return void b(this,sr,"m",Sr).call(this,t);if(t.target===this.remoteInput)return void b(this,sr,"m",kr).call(this,t);const e=this.invokerElement?.contains(t.target),i=this.closeButton?.contains(t.target),n=b(this,sr,"m",br).call(this,t);if(e&&"mousedown"===t.type)return;if("mousedown"===t.type&&t.target instanceof HTMLInputElement)return;if("mousedown"===t.type)return void t.preventDefault();if(e&&n)return void b(this,sr,"m",Nr).call(this,t);if(i&&n)return;if("keydown"===t.type&&t instanceof KeyboardEvent&&t.target.closest(Kr)){const e=t.ctrlKey||t.altKey||t.metaKey,i=1===t.key.length&&/[a-z\d]/i.test(t.key);!e&&i&&t.stopPropagation()}if(t.target===this.dialog&&"close"===t.type){if(this.dialog.removeAttribute("data-ready"),this.invokerElement?.setAttribute("aria-expanded","false"),this.filterInputTextField){const t=this.filterInputTextField.value.length>0;this.filterInputTextField.value="",t&&this.filterInputTextField.dispatchEvent(new Event("input"))}return void this.dispatchEvent(new CustomEvent("panelClosed",{detail:{panel:this},bubbles:!0}))}const s=t.target.closest(Kr)?.parentElement;if(null!=s&&n){if(b(this,sr,"m",pr).call(this,t))return;const e=s.closest("[data-show-dialog-id]");if(e){const i=this.ownerDocument.getElementById(e.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(e)&&this.contains(i))return void b(this,sr,"m",Fr).call(this,t,i)}return b(this,sr,"m",gr).call(this,t)&&(t.preventDefault(),b(this,sr,"m",_r).call(this,s)?.click()),void b(this,sr,"m",Rr).call(this,s)}if("click"===t.type){const e=this.dialog.getBoundingClientRect();e.top<=t.clientY&&t.clientY<=e.top+e.height&&e.left<=t.clientX&&t.clientX<=e.left+e.width||this.hide()}t.target instanceof IncludeFragmentElement&&b(this,sr,"m",Ar).call(this,t)}show(){this.updateAnchorPosition(),this.dialog.showModal(),this.invokerElement?.setAttribute("aria-expanded","true");const t=new CustomEvent("dialog:open",{detail:{dialog:this.dialog}});this.dispatchEvent(t)}hide(){this.dialog.close()}get visibleItems(){return Array.from(this.querySelectorAll(Kr)).map((t=>t.parentElement))}get items(){return Array.from(this.querySelectorAll(jr)).map((t=>t.parentElement))}get focusableItem(){for(const t of this.items){const e=b(this,sr,"m",_r).call(this,t);if(e&&"0"===e.getAttribute("tabindex"))return e}}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),b(this,sr,"m",_r).call(this,t).setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),b(this,sr,"m",_r).call(this,t).removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}isItemChecked(t){return!!t&&"true"===b(this,sr,"m",_r).call(this,t).getAttribute(this.ariaSelectionType)}checkItem(t){!t||"single"!==this.selectVariant&&"multiple"!==this.selectVariant||this.isItemChecked(t)||b(this,sr,"m",Rr).call(this,t)}uncheckItem(t){!t||"single"!==this.selectVariant&&"multiple"!==this.selectVariant||this.isItemChecked(t)&&b(this,sr,"m",Rr).call(this,t)}};or=new WeakMap,rr=new WeakMap,ar=new WeakMap,lr=new WeakMap,cr=new WeakMap,dr=new WeakMap,hr=new WeakMap,ur=new WeakMap,sr=new WeakSet,mr=function(){const{signal:t}=b(this,rr,"f");for(const e of this.querySelectorAll(Ur.join(",")))e.addEventListener("click",b(this,sr,"m",pr).bind(this),{signal:t}),e.addEventListener("keydown",b(this,sr,"m",pr).bind(this),{signal:t})},fr=function(){let t=!1;if("single"===this.selectVariant)for(const e of this.items){const i=b(this,sr,"m",_r).call(this,e);i&&(this.isItemHidden(e)||!this.isItemChecked(e)||t?i.setAttribute("tabindex","-1"):(i.setAttribute("tabindex","0"),t=!0),e.removeAttribute("tabindex"))}else for(const t of this.items){const e=b(this,sr,"m",_r).call(this,t);e&&(e.setAttribute("tabindex","-1"),t.removeAttribute("tabindex"))}!t&&b(this,sr,"a",Vr)&&b(this,sr,"m",_r).call(this,b(this,sr,"a",Vr))?.setAttribute("tabindex","0")},pr=function(t){if(!b(this,sr,"m",br).call(this,t))return!1;const e=t.target.closest(Kr);return!!e&&(!!e.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0))},gr=function(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},br=function(t){return t instanceof MouseEvent&&"click"===t.type||b(this,sr,"m",gr).call(this,t)},vr=function(){for(const t of this.items){const e=b(this,sr,"m",_r).call(this,t);if(!e)continue;const i=e.getAttribute("data-value");i&&b(this,cr,"f").has(i)&&e.setAttribute(this.ariaSelectionType,"true")}b(this,sr,"m",Wr).call(this)},wr=function(t){const e=b(this,sr,"m",_r).call(this,t);if(!e)return;const i=e.getAttribute("data-value");i&&b(this,cr,"f").set(i,{value:i,label:e.querySelector(".ActionListItem-label")?.textContent?.trim(),inputName:e.getAttribute("data-input-name")})},yr=function(t){const e=b(this,sr,"m",_r).call(this,t);if(!e)return;const i=e.getAttribute("data-value");i&&b(this,cr,"f").delete(i)},Er=function(){b(this,sr,"a",Or)&&(b(this,dr,"f")&&clearTimeout(b(this,dr,"f")),b(this,hr,"f")&&clearTimeout(b(this,hr,"f")),v(this,hr,setTimeout((()=>{this.liveRegion.announce("Loading")}),2e3),"f"),v(this,dr,setTimeout((()=>{b(this,sr,"a",Or)?.showLeadingSpinner()}),1e3),"f"))},Ar=function(t){switch(t.type){case"include-fragment-replaced":b(this,sr,"m",Cr).call(this);break;case"loadstart":b(this,sr,"m",Lr).call(this,!1);break;case"loadend":b(this,sr,"a",Or)?.hideLeadingSpinner(),this.dispatchEvent(new CustomEvent("loadend"));break;case"error":{b(this,sr,"m",Lr).call(this,!0);const e=this.fragmentErrorElement;throw e&&!e.hasAttribute("hidden")&&this.liveRegion.announceFromElement(e,{politeness:"assertive"}),new Error(t.detail.error)}}},Lr=function(t){for(const e of this.includeFragment.querySelectorAll("[data-show-on-error]"))e instanceof HTMLElement&&(e.hidden=!t);for(const e of this.includeFragment.querySelectorAll("[data-hide-on-error]"))e instanceof HTMLElement&&(e.hidden=t)},kr=function(t){switch(t.type){case"remote-input-success":b(this,sr,"m",Ir).call(this),b(this,sr,"m",Cr).call(this),b(this,sr,"m",vr).call(this);break;case"remote-input-error":this.bodySpinner?.setAttribute("hidden",""),this.includeFragment||0===this.visibleItems.length?b(this,sr,"m",Mr).call(this,Yr.BODY):b(this,sr,"m",Mr).call(this,Yr.BANNER);break;case"loadstart":if(!b(this,sr,"m",Hr).call(this)){if(b(this,sr,"m",Ir).call(this),this.bodySpinner?.removeAttribute("hidden"),this.bodySpinner)break;b(this,sr,"m",Er).call(this)}break;case"loadend":b(this,sr,"a",Or)?.hideLeadingSpinner(),b(this,hr,"f")&&clearTimeout(b(this,hr,"f")),b(this,dr,"f")&&clearTimeout(b(this,dr,"f")),this.dispatchEvent(new CustomEvent("loadend"))}},Tr=function(t,e){return(t.getAttribute("data-filter-string")||t.textContent||"").toLowerCase().indexOf(e.toLowerCase())>-1},Sr=function(t){if("keydown"===t.type){const e=t.key;if("Enter"===e){const t=this.visibleItems[0];if(t){const e=b(this,sr,"m",_r).call(this,t);e&&e.click()}}else if("ArrowDown"===e){const e=this.focusableItem||b(this,sr,"m",_r).call(this,this.visibleItems[0]);e&&(e.focus(),t.preventDefault())}else if("Home"===e){const e=this.visibleItems[0];if(e){const i=b(this,sr,"m",_r).call(this,e);i&&i.focus(),t.preventDefault()}}else if("End"===e&&this.visibleItems.length>0){const e=this.visibleItems[this.visibleItems.length-1],i=b(this,sr,"m",_r).call(this,e);i&&i.focus(),t.preventDefault()}}if("input"===t.type&&(this.bodySpinner||b(this,sr,"m",Hr).call(this)||b(this,sr,"m",Er).call(this),b(this,sr,"a",Pr)===zr.LOCAL||b(this,sr,"a",Pr)===zr.EVENTUALLY_LOCAL)){if(this.includeFragment)return void this.includeFragment.refetch();b(this,sr,"m",Cr).call(this)}},Cr=function(){if(!this.list)return;let t=!1;if(b(this,sr,"m",Hr).call(this)){const e=this.filterInputTextField?.value??"",i=this.filterFn||b(this,sr,"m",Tr);for(const n of this.items)i(n,e)?(b(this,sr,"m",$r).call(this,n),t=!0):b(this,sr,"m",Br).call(this,n)}else t=this.items.length>0;b(this,sr,"m",fr).call(this),b(this,sr,"m",Dr).call(this);for(const t of this.items){const e=b(this,sr,"m",_r).call(this,t);if(!e)continue;const i=e.getAttribute("data-value");b(this,ur,"f")?i&&!b(this,cr,"f").has(i)&&e.setAttribute(this.ariaSelectionType,"false"):i&&!b(this,cr,"f").has(i)&&this.isItemChecked(t)&&b(this,sr,"m",wr).call(this,t)}v(this,ur,!0,"f"),this.noResults&&(b(this,sr,"m",xr).call(this)?this.noResults.setAttribute("hidden",""):t?(this.noResults.setAttribute("hidden",""),this.list?.querySelector(".ActionListWrap")?.removeAttribute("hidden")):(this.list?.querySelector(".ActionListWrap")?.setAttribute("hidden",""),this.noResults.removeAttribute("hidden")))},xr=function(){return!(!this.fragmentErrorElement||this.fragmentErrorElement.hasAttribute("hidden"))||!!this.bannerErrorElement&&!this.bannerErrorElement.hasAttribute("hidden")},Mr=function(t){let e=this.fragmentErrorElement;t===Yr.BODY&&this.fragmentErrorElement?(this.fragmentErrorElement.removeAttribute("hidden"),this.bannerErrorElement.setAttribute("hidden","")):(e=this.bannerErrorElement,this.bannerErrorElement?.removeAttribute("hidden"),this.fragmentErrorElement?.setAttribute("hidden","")),!e||e.hasAttribute("hidden")||this.liveRegion.announceFromElement(e,{politeness:"assertive"})},Ir=function(){this.fragmentErrorElement?.setAttribute("hidden",""),this.bannerErrorElement.setAttribute("hidden","")},Dr=function(){if(this.open&&this.list){const t=this.visibleItems;if(t.length>0){const e="tab for results";this.liveRegion.announce(`${t.length} result${1===t.length?"":"s"} ${e}`)}else{const t=this.noResults;t&&this.liveRegion.announceFromElement(t)}}},Pr=function(){if(!this.list)return zr.REMOTE;switch(this.list.getAttribute("data-fetch-strategy")){case"local":return zr.LOCAL;case"eventually_local":return zr.EVENTUALLY_LOCAL;default:return zr.REMOTE}},Or=function(){return this.filterInputTextField?.closest("primer-text-field")},Hr=function(){return b(this,sr,"a",Pr)===zr.LOCAL||b(this,sr,"a",Pr)===zr.EVENTUALLY_LOCAL},Nr=function(t){this.invokerElement?.dispatchEvent(new CustomEvent("invokerClicked",{bubbles:!0})),t.preventDefault(),t.stopPropagation(),this.open?this.hide():this.show()},Fr=function(t,e){this.querySelector(".ActionListWrap").style.display="none";const i=new AbortController,{signal:n}=i,s=()=>{i.abort(),this.querySelector(".ActionListWrap").style.display="",this.open&&this.hide();const t=this.ownerDocument.activeElement,e=this.ownerDocument.activeElement===this.ownerDocument.body,n=this.contains(t);(e||n)&&setTimeout((()=>this.invokerElement?.focus()),0)};e.addEventListener("close",s,{signal:n}),e.addEventListener("cancel",s,{signal:n})},Rr=function(t){if("multiple"!==this.selectVariant&&setTimeout((()=>{this.open&&this.hide()})),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;const e=this.isItemChecked(t),i=!e;if(!this.dispatchEvent(new CustomEvent("beforeItemActivated",{bubbles:!0,cancelable:!0,detail:{item:t,checked:i,value:b(this,sr,"m",_r).call(this,t)?.getAttribute("data-value")}})))return;const n=b(this,sr,"m",_r).call(this,t);if("single"===this.selectVariant){if(n?.getAttribute("href"))return;if(!e){for(const t of this.items)b(this,sr,"m",_r).call(this,t)?.setAttribute(this.ariaSelectionType,"false");b(this,cr,"f").clear(),i&&(b(this,sr,"m",wr).call(this,t),n?.setAttribute(this.ariaSelectionType,"true")),b(this,sr,"m",qr).call(this)}}else n?.setAttribute(this.ariaSelectionType,`${i}`),i?b(this,sr,"m",wr).call(this,t):b(this,sr,"m",yr).call(this,t);b(this,sr,"m",Wr).call(this),b(this,sr,"m",fr).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:t,checked:i,value:b(this,sr,"m",_r).call(this,t)?.getAttribute("data-value")}}))},qr=function(){if(!this.dynamicLabel)return;const t=this.invokerLabel;if(!t)return;v(this,ar,b(this,ar,"f")||t.textContent||"","f");const e=this.querySelector(`[${this.ariaSelectionType}=true] .ActionListItem-label`)?.textContent||b(this,ar,"f");if(e){const i=document.createElement("span");i.classList.add("color-fg-muted");const n=document.createElement("span");i.textContent=`${this.dynamicLabelPrefix} `,n.textContent=e,t.replaceChildren(i,n),this.dynamicAriaLabelPrefix&&this.invokerElement?.setAttribute("aria-label",`${this.dynamicAriaLabelPrefix} ${e.trim()}`)}else t.textContent=b(this,ar,"f")},Wr=function(){if("single"===this.selectVariant){const t=this.querySelector("[data-select-panel-inputs=true] input")??this.querySelector("[data-list-inputs=true] input");if(!t)return;const e=this.selectedItems[0];e?(t.value=(e.value||e.label||"").trim(),e.inputName&&(t.name=e.inputName),t.removeAttribute("disabled")):b(this,ur,"f")&&t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){const t=!!this.querySelector("[data-select-panel-inputs=true]"),e=this.querySelector("[data-select-panel-inputs=true]")??this.querySelector("[data-list-inputs=true]");if(!e)return;const i=e.querySelectorAll("input");i.length>0&&v(this,lr,b(this,lr,"f")||i[0].name,"f");for(const i of this.selectedItems){const n=document.createElement("input");n.setAttribute(""+(t?"data-select-panel-input":"data-list-input"),"true"),n.type="hidden",n.autocomplete="off",n.name=i.inputName||b(this,lr,"f"),n.value=(i.value||i.label||"").trim(),e.append(n)}for(const t of i)t.remove()}},Vr=function(){return this.querySelector(Kr)?.parentElement||null},Br=function(t){t&&t.setAttribute("hidden","hidden")},$r=function(t){t&&t.removeAttribute("hidden")},_r=function(t){return t.querySelector(".ActionListContent")},g([U],Gr.prototype,"includeFragment",void 0),g([U],Gr.prototype,"dialog",void 0),g([U],Gr.prototype,"filterInputTextField",void 0),g([U],Gr.prototype,"remoteInput",void 0),g([U],Gr.prototype,"list",void 0),g([U],Gr.prototype,"noResults",void 0),g([U],Gr.prototype,"fragmentErrorElement",void 0),g([U],Gr.prototype,"bannerErrorElement",void 0),g([U],Gr.prototype,"bodySpinner",void 0),g([U],Gr.prototype,"liveRegion",void 0),Gr=g([K("select-panel")],Gr),window.customElements.get("select-panel")||(window.SelectPanelElement=Gr,window.customElements.define("select-panel",Gr));let Jr=class DetailsToggleElement extends HTMLElement{toggle(){if(this.detailsTarget.hasAttribute("open")){const t=this.summaryTarget.getAttribute("data-aria-label-closed");t&&this.summaryTarget.setAttribute("aria-label",t),this.summaryTarget.setAttribute("aria-expanded","false")}else{const t=this.summaryTarget.getAttribute("data-aria-label-open");t&&this.summaryTarget.setAttribute("aria-label",t),this.summaryTarget.setAttribute("aria-expanded","true")}}};function Xr(t){It(t,{bindKeys:Et.ArrowVertical|Et.ArrowHorizontal|Et.HomeAndEnd|Et.Backspace,getNextFocusable:(t,e,i)=>{if(e instanceof HTMLElement){try{if(e.closest("dialog:modal"))return}catch{}return function(t,e){switch(`${function(t){if("treeitem"!==t.getAttribute("role"))throw new Error("Element is not a treeitem");switch(t.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(t)} ${e.key}`){case"open ArrowRight":return function(t){const e=t.querySelector("[role=treeitem]");return e instanceof HTMLElement?e:void 0}(t);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return ea(t)}switch(e.key){case"ArrowUp":return Qr(t,"previous");case"ArrowDown":return Qr(t,"next");case"Backspace":return ea(t)}}(e,i)??e}},focusInStrategy:()=>{let e=t.querySelector("[aria-current]");e=e?.checkVisibility()?e:null;const i=t.querySelector('[role="treeitem"]');return e instanceof HTMLElement?e:document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&"treeitem"===document.activeElement.getAttribute("role")?document.activeElement:i instanceof HTMLElement?i:void 0}})}function Qr(t,e){const i=t.closest("[role=tree]");if(!i)return;const n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,(t=>t instanceof HTMLElement&&"treeitem"===t.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let s=n.firstChild();for(;s!==t;)s=n.nextNode();let o="next"===e?n.nextNode():n.previousNode();for(;o instanceof HTMLElement&&ta(o,i);)o="next"===e?n.nextNode():n.previousNode();return o instanceof HTMLElement?o:void 0}function ta(t,e){for(const i of e.querySelectorAll("[role=treeitem][aria-expanded=false]"))if(t!==i&&i.closest("li")?.contains(t))return i;return null}function ea(t){const e=t.closest("[role=group]"),i=e?.closest("[role=treeitem]");return i instanceof HTMLElement?i:void 0}var ia,na,sa,oa,ra,aa,la,ca,da,ha,ua;g([U],Jr.prototype,"detailsTarget",void 0),g([U],Jr.prototype,"summaryTarget",void 0),Jr=g([K("details-toggle")],Jr),window.DetailsToggleElement=Jr;let ma=class TreeViewElement extends HTMLElement{constructor(){super(...arguments),ia.add(this),na.set(this,void 0)}connectedCallback(){const{signal:t}=v(this,na,new AbortController,"f");this.addEventListener("click",this,{signal:t}),this.addEventListener("focusin",this,{signal:t}),this.addEventListener("keydown",this,{signal:t}),Xr(this),new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.querySelector("[aria-expanded=true]")&&b(this,ia,"m",sa).call(this,t)})).observe(this,{childList:!0,subtree:!0});new MutationObserver((t=>{if(!this.formInputContainer)return;if(!t.some((t=>t.target instanceof HTMLElement&&t.target.getAttribute("aria-checked")!==t.oldValue)))return;const e=[];for(const t of this.querySelectorAll("[role=treeitem][aria-checked=true]")){const i=this.formInputPrototype.cloneNode();i.removeAttribute("data-target"),i.removeAttribute("form");const n={path:this.getNodePath(t)},s=this.getFormInputValueForNode(t);s&&(n.value=s),i.value=JSON.stringify(n),e.push(i)}this.formInputContainer.replaceChildren(...e)})).observe(this,{childList:!0,subtree:!0,attributeFilter:["aria-checked"]}),customElements.whenDefined("tree-view-sub-tree-node").then((()=>{b(this,ia,"m",sa).call(this,this)}))}disconnectedCallback(){b(this,na,"f").abort()}handleEvent(t){const e=b(this,ia,"m",ra).call(this,t);e&&b(this,ia,"m",aa).call(this,e,t)}getFormInputValueForNode(t){return t.getAttribute("data-value")}getNodePath(t){const e=t.getAttribute("data-path");return e?JSON.parse(e):[]}getNodeType(t){return t.getAttribute("data-node-type")}markCurrentAtPath(t){const e=JSON.stringify(t),i=this.querySelector(`[data-path="${CSS.escape(e)}"`);i&&(this.currentNode?.setAttribute("aria-current","false"),i.setAttribute("aria-current","true"))}get currentNode(){return this.querySelector("[aria-current=true]")}expandAtPath(t){const e=this.subTreeAtPath(t);e&&e.expand()}collapseAtPath(t){const e=this.subTreeAtPath(t);e&&e.collapse()}toggleAtPath(t){const e=this.subTreeAtPath(t);e&&e.toggle()}checkAtPath(t){const e=this.nodeAtPath(t);e&&this.setNodeCheckedValue(e,"true")}uncheckAtPath(t){const e=this.nodeAtPath(t);e&&this.setNodeCheckedValue(e,"false")}toggleCheckedAtPath(t){const e=this.nodeAtPath(t);e&&"leaf"===this.getNodeType(e)&&("true"===this.getNodeCheckedValue(e)?this.uncheckAtPath(t):this.checkAtPath(t))}checkedValueAtPath(t){const e=this.nodeAtPath(t);return e?this.getNodeCheckedValue(e):"false"}disabledValueAtPath(t){const e=this.nodeAtPath(t);return!!e&&this.getNodeDisabledValue(e)}nodeAtPath(t,e){const i=JSON.stringify(t);return this.querySelector(`${e||""}[data-path="${CSS.escape(i)}"]`)}subTreeAtPath(t){const e=this.nodeAtPath(t,"[data-node-type=sub-tree]");return e?e.closest("tree-view-sub-tree-node"):null}leafAtPath(t){return this.nodeAtPath(t,"[data-node-type=leaf]")}setNodeCheckedValue(t,e){t.setAttribute("aria-checked",e.toString())}getNodeCheckedValue(t){return t.getAttribute("aria-checked")||"false"}getNodeDisabledValue(t){return"true"===t.getAttribute("aria-disabled")}setNodeDisabledValue(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}nodeHasCheckBox(t){return null!==t.querySelector(".TreeViewItemCheckbox")}nodeHasNativeAction(t){return t instanceof HTMLAnchorElement||t instanceof HTMLButtonElement}expandAncestorsForNode(t){const e=t.closest("tree-view-sub-tree-node");if(e)for(const t of e.eachAncestorSubTreeNode())t.expanded||t.expand()}infoFromNode(t,e){const i=this.getNodeType(t);if(!i)return null;const n=this.getNodeCheckedValue(t);return{node:t,type:i,path:this.getNodePath(t),checkedValue:e||n,previousCheckedValue:n}}};var fa,pa;na=new WeakMap,ia=new WeakSet,sa=function(t){for(const e of t.querySelectorAll("[aria-expanded=true]"))this.expandAncestorsForNode(e)},oa=function(t){return"click"===t.type},ra=function(t){const e=t.target,i=e.closest("[role=treeitem]");return i?e.closest(".TreeViewItemToggle")||e.closest(".TreeViewItemLeadingAction")?null:i:null},aa=function(t,e){b(this,ia,"m",la).call(this,e,t)?b(this,ia,"m",ca).call(this,e,t):b(this,ia,"m",oa).call(this,e)?b(this,ia,"m",da).call(this,e,t):"focusin"===e.type?b(this,ia,"m",ha).call(this,t):e instanceof KeyboardEvent&&b(this,ia,"m",ua).call(this,e,t)},la=function(t,e){return"click"===t.type&&this.nodeHasCheckBox(e)},ca=function(t,e){if(this.getNodeDisabledValue(e))return void t.preventDefault();"leaf"===this.getNodeType(e)&&("true"===this.getNodeCheckedValue(e)?this.setNodeCheckedValue(e,"false"):this.setNodeCheckedValue(e,"true"))},da=function(t,e){if(this.getNodeDisabledValue(e))return void t.preventDefault();if(!(e instanceof HTMLDivElement))return;const i=this.getNodePath(e);this.dispatchEvent(new CustomEvent("treeViewBeforeNodeActivated",{bubbles:!0,cancelable:!0,detail:this.infoFromNode(e)}))&&(this.nodeHasNativeAction(e)||this.toggleAtPath(i),this.dispatchEvent(new CustomEvent("treeViewNodeActivated",{bubbles:!0,detail:this.infoFromNode(e)})))},ha=function(t){const e=this.querySelector("[aria-selected=true]");e?.setAttribute("aria-selected","false"),t.setAttribute("aria-selected","true")},ua=function(t,e){if(e&&"leaf"===this.getNodeType(e))switch(t.key){case" ":case"Enter":if(this.getNodeDisabledValue(e)){t.preventDefault();break}this.nodeHasCheckBox(e)?(t.preventDefault(),"true"===this.getNodeCheckedValue(e)?this.setNodeCheckedValue(e,"false"):this.setNodeCheckedValue(e,"true")):e instanceof HTMLAnchorElement&&e.click()}},g([U],ma.prototype,"formInputContainer",void 0),g([U],ma.prototype,"formInputPrototype",void 0),ma=g([K("tree-view")],ma),window.customElements.get("tree-view")||(window.TreeViewElement=ma,window.customElements.define("tree-view",ma));let ga=class TreeViewIconPairElement extends HTMLElement{constructor(){super(...arguments),fa.add(this)}connectedCallback(){Ge(this,(()=>Boolean(this.collapsedIcon)&&Boolean(this.expandedIcon)),(()=>{this.expanded=this.collapsedIcon.hidden}))}showExpanded(){this.expanded=!0,b(this,fa,"m",pa).call(this)}showCollapsed(){this.expanded=!1,b(this,fa,"m",pa).call(this)}toggle(){this.expanded=!this.expanded,b(this,fa,"m",pa).call(this)}};var ba,va,wa,ya,Ea,Aa,La,ka,Ta,Sa,Ca,xa,Ma;fa=new WeakSet,pa=function(){this.expanded?(this.expandedIcon.hidden=!1,this.collapsedIcon.hidden=!0):(this.expandedIcon.hidden=!0,this.collapsedIcon.hidden=!1)},g([U],ga.prototype,"expandedIcon",void 0),g([U],ga.prototype,"collapsedIcon",void 0),ga=g([K("tree-view-icon-pair")],ga),window.customElements.get("tree-view-icon-pair")||(window.TreeViewIconPairElement=ga,window.customElements.define("tree-view-icon-pair",ga));let Ia=class TreeViewSubTreeNodeElement extends HTMLElement{constructor(){super(...arguments),ba.add(this),va.set(this,null),wa.set(this,"success"),ya.set(this,void 0),Ea.set(this,!1)}connectedCallback(){Ge(this,(()=>Boolean(this.node)&&Boolean(this.subTree)),(()=>{b(this,ba,"m",Ca).call(this)}));const{signal:t}=v(this,ya,new AbortController,"f");this.addEventListener("click",this,{signal:t}),this.addEventListener("keydown",this,{signal:t}),Ge(this,(()=>Boolean(this.includeFragment)),(()=>{this.includeFragment.addEventListener("loadstart",this,{signal:t}),this.includeFragment.addEventListener("error",this,{signal:t}),this.includeFragment.addEventListener("include-fragment-replace",this,{signal:t}),this.includeFragment.addEventListener("include-fragment-replaced",(t=>{b(this,ba,"m",La).call(this,t)}),{signal:t})})),Ge(this,(()=>Boolean(this.retryButton)),(()=>{this.retryButton.addEventListener("click",(t=>{b(this,ba,"m",ka).call(this,t)}),{signal:t})}));new MutationObserver((()=>{if("mixed_descendants"!==this.selectStrategy)return;let t="unknown";for(const e of this.eachDirectDescendantNode())switch(`${t} ${e.getAttribute("aria-checked")||"false"}`){case"unknown mixed":case"false mixed":case"true mixed":case"false true":case"true false":t="mixed";break;case"unknown false":t="false";break;case"unknown true":t="true"}"unknown"!==t&&this.node?.getAttribute("aria-checked")!==t&&this.node?.setAttribute("aria-checked",t)})).observe(this,{childList:!0,subtree:!0,attributeFilter:["aria-checked"]})}get expanded(){return null===b(this,va,"f")&&v(this,va,"true"===this.node.getAttribute("aria-expanded"),"f"),b(this,va,"f")}set expanded(t){v(this,va,t,"f"),b(this,ba,"m",Ca).call(this)}get loadingState(){return b(this,wa,"f")}set loadingState(t){v(this,wa,t,"f"),b(this,ba,"m",Ca).call(this)}get selectStrategy(){return this.node.getAttribute("data-select-strategy")||"descendants"}disconnectedCallback(){b(this,ya,"f").abort()}handleEvent(t){t.target===this.toggleButton?b(this,ba,"m",Aa).call(this,t):t.target===this.includeFragment?b(this,ba,"m",La).call(this,t):t instanceof KeyboardEvent?b(this,ba,"m",Ta).call(this,t):t.target.closest("[role=treeitem]")===this.node&&"click"===t.type&&b(this,ba,"a",Ma)&&b(this,ba,"m",Sa).call(this,t)}expand(){const t=this.expanded;this.expanded=!0,!t&&this.treeView&&this.treeView.dispatchEvent(new CustomEvent("treeViewNodeExpanded",{bubbles:!0,detail:this.treeView?.infoFromNode(this.node)}))}collapse(){const t=!this.expanded;if(this.expanded=!1,!t&&this.treeView){const t=this.subTree.querySelector("[tabindex='0']");t?.setAttribute("tabindex","-1"),b(this,ba,"m",xa).call(this)&&"0"===this.subTree.getAttribute("tabindex")&&this.subTree.setAttribute("tabindex","-1"),this.node.setAttribute("tabindex","0"),this.treeView.dispatchEvent(new CustomEvent("treeViewNodeCollapsed",{bubbles:!0,detail:this.treeView?.infoFromNode(this.node)}))}}toggle(){this.expanded?this.collapse():this.expand()}get nodes(){return this.querySelectorAll(":scope > [role=treeitem]")}*eachDirectDescendantNode(){for(const t of this.subTree.querySelectorAll(":scope > li > .TreeViewItemContainer > [role=treeitem]"))yield t;for(const t of this.subTree.querySelectorAll(":scope > tree-view-sub-tree-node > li > .TreeViewItemContainer > [role=treeitem]"))yield t}*eachDescendantNode(){for(const t of this.subTree.querySelectorAll("[role=treeitem]"))yield t}*eachAncestorSubTreeNode(){if(!this.treeView)return;let t=this;for(;t&&this.treeView.contains(t);)yield t,t=t.parentElement?.closest("tree-view-sub-tree-node")}get isEmpty(){return 0===this.nodes.length}get treeView(){return this.closest("tree-view")}toggleChecked(){const t="false"===(this.treeView?.getNodeCheckedValue(this.node)||"false")?"true":"false",e=[],i=this.treeView?.infoFromNode(this.node,t);if(i&&e.push(i),"descendants"===this.selectStrategy||"mixed_descendants"===this.selectStrategy)for(const i of this.eachDescendantNode()){const n=this.treeView?.infoFromNode(i,t);n&&e.push(n)}if(this.dispatchEvent(new CustomEvent("treeViewBeforeNodeChecked",{bubbles:!0,cancelable:!0,detail:e}))){for(const i of e)i.node.setAttribute("aria-checked",t);this.dispatchEvent(new CustomEvent("treeViewNodeChecked",{bubbles:!0,cancelable:!0,detail:e}))}}};va=new WeakMap,wa=new WeakMap,ya=new WeakMap,Ea=new WeakMap,ba=new WeakSet,Aa=function(t){"click"===t.type&&(this.toggle(),t.stopPropagation())},La=function(t){switch(t.type){case"loadstart":this.loadingState="loading";break;case"error":this.loadingState="error";break;case"include-fragment-replace":v(this,Ea,document.activeElement===this.loadingIndicator.closest("[role=treeitem]"),"f"),!b(this,Ea,"f")&&document.activeElement===this.subTree&&b(this,ba,"m",xa).call(this)&&v(this,Ea,!0,"f"),this.loadingState="success";break;case"include-fragment-replaced":if(this.expanded=!0,b(this,Ea,"f")){const t=this.querySelector("[role=group] > :first-child");if(!t)return;const e=t.querySelector("[role=treeitem]");if(!e)return;e.focus()}v(this,Ea,!1,"f")}},ka=function(t){"click"===t.type&&(this.loadingState="loading",this.includeFragment.refetch())},Ta=function(t){const e=t.target.closest("[role=treeitem]");if(e&&"sub-tree"===this.treeView?.getNodeType(e))switch(t.key){case"Enter":if(this.treeView?.getNodeDisabledValue(e)){t.preventDefault();break}t.stopPropagation(),b(this,ba,"a",Ma)?this.toggleChecked():this.treeView?.nodeHasNativeAction(e)||this.toggle();break;case"ArrowRight":t.stopPropagation(),this.expand();break;case"ArrowLeft":t.stopPropagation(),this.collapse();break;case" ":if(this.treeView?.getNodeDisabledValue(e)){t.preventDefault();break}b(this,ba,"a",Ma)?(t.stopPropagation(),t.preventDefault(),this.toggleChecked()):e instanceof HTMLAnchorElement?e.click():this.treeView?.nodeHasNativeAction(e)||this.toggle()}},Sa=function(t){this.treeView?.getNodeDisabledValue(this.node)?t.preventDefault():"click"===t.type&&(this.toggleChecked(),t.stopPropagation())},Ca=function(){switch(this.expanded?(this.subTree&&(this.subTree.hidden=!1),b(this,ba,"m",xa).call(this)&&(this.subTree.setAttribute("role","treeitem"),this.subTree.hasAttribute("tabindex")||this.subTree.setAttribute("tabindex","-1")),this.node.setAttribute("aria-expanded","true"),this.treeView?.expandAncestorsForNode(this),this.iconPair&&this.iconPair.showExpanded(),this.expandedToggleIcon&&this.collapsedToggleIcon&&(this.expandedToggleIcon.removeAttribute("hidden"),this.collapsedToggleIcon.setAttribute("hidden","hidden"))):(this.subTree&&(this.subTree.hidden=!0),b(this,ba,"m",xa).call(this)&&(this.subTree.removeAttribute("role"),this.subTree.removeAttribute("tabindex")),this.node.setAttribute("aria-expanded","false"),this.iconPair&&this.iconPair.showCollapsed(),this.expandedToggleIcon&&this.collapsedToggleIcon&&(this.expandedToggleIcon.setAttribute("hidden","hidden"),this.collapsedToggleIcon.removeAttribute("hidden"))),this.loadingState){case"loading":this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!0),this.loadingIndicator&&(this.loadingIndicator.hidden=!1);break;case"error":this.loadingIndicator&&(this.loadingIndicator.hidden=!0),this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!1);break;default:this.loadingIndicator&&(this.loadingIndicator.hidden=!0),this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!0)}},xa=function(){return this.subTree?.getAttribute("data-target")?.includes("tree-view-sub-tree-node.includeFragment")??!1},Ma=function(){return this.querySelector(".TreeViewItemCheckbox")},g([U],Ia.prototype,"node",void 0),g([U],Ia.prototype,"subTree",void 0),g([U],Ia.prototype,"iconPair",void 0),g([U],Ia.prototype,"toggleButton",void 0),g([U],Ia.prototype,"expandedToggleIcon",void 0),g([U],Ia.prototype,"collapsedToggleIcon",void 0),g([U],Ia.prototype,"includeFragment",void 0),g([U],Ia.prototype,"loadingIndicator",void 0),g([U],Ia.prototype,"loadingFailureMessage",void 0),g([U],Ia.prototype,"retryButton",void 0),Ia=g([K("tree-view-sub-tree-node")],Ia),window.customElements.get("tree-view-sub-tree-node")||(window.TreeViewSubTreeNodeElement=Ia,window.customElements.define("tree-view-sub-tree-node",Ia));let Da=class TreeViewIncludeFragmentElement extends IncludeFragmentElement{request(){const t=super.request(),e=new URL(t.url);return e.searchParams.set("path",this.getAttribute("data-path")||""),new Request(e,{method:t.method,headers:t.headers,credentials:t.credentials})}};Da=g([K("tree-view-include-fragment")],Da),window.customElements.get("tree-view-include-fragment")||(window.TreeViewIncludeFragmentElement=Da,window.customElements.define("tree-view-include-fragment",Da))}();
|
|
1
|
+
!function(){"use strict";var t,e,i,n,s,o,r,a,l=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},c=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i};const d=new WeakMap;let h=null;class IncludeFragmentElement extends HTMLElement{constructor(){super(...arguments),t.add(this),e.set(this,!1),i.set(this,new IntersectionObserver((e=>{for(const s of e)if(s.isIntersecting){const{target:e}=s;if(l(this,i,"f").unobserve(e),!(e instanceof IncludeFragmentElement))return;"lazy"===e.loading&&l(this,t,"m",n).call(this)}}),{rootMargin:"0px 0px 256px 0px",threshold:.01}))}static define(t="include-fragment",e=customElements){return e.define(t,this),this}static setCSPTrustedTypesPolicy(t){h=null===t?t:Promise.resolve(t)}static get observedAttributes(){return["src","loading"]}get src(){const t=this.getAttribute("src");if(t){const e=this.ownerDocument.createElement("a");return e.href=t,e.href}return""}set src(t){this.setAttribute("src",t)}get loading(){return"lazy"===this.getAttribute("loading")?"lazy":"eager"}set loading(t){this.setAttribute("loading",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get data(){return l(this,t,"m",o).call(this)}attributeChangedCallback(e,i){"src"===e?this.isConnected&&"eager"===this.loading&&l(this,t,"m",n).call(this):"loading"===e&&this.isConnected&&"eager"!==i&&"eager"===this.loading&&l(this,t,"m",n).call(this)}connectedCallback(){if(!this.shadowRoot){this.attachShadow({mode:"open"});const t=document.createElement("style");t.textContent=":host {display: block;}",this.shadowRoot.append(t,document.createElement("slot"))}this.src&&"eager"===this.loading&&l(this,t,"m",n).call(this),"lazy"===this.loading&&l(this,i,"f").observe(this)}request(){const t=this.src;if(!t)throw new Error("missing src");return new Request(t,{method:"GET",credentials:"same-origin",headers:{Accept:this.accept||"text/html"}})}load(){return l(this,t,"m",o).call(this)}fetch(t){return fetch(t)}refetch(){d.delete(this),l(this,t,"m",n).call(this)}}e=new WeakMap,i=new WeakMap,t=new WeakSet,n=async function(){if(!l(this,e,"f")){c(this,e,!0,"f"),l(this,i,"f").unobserve(this);try{const i=await l(this,t,"m",s).call(this);if(i instanceof Error)throw i;const n=i,o=document.createElement("template");o.innerHTML=n;const r=document.importNode(o.content,!0);if(!this.dispatchEvent(new CustomEvent("include-fragment-replace",{cancelable:!0,detail:{fragment:r}})))return void c(this,e,!1,"f");this.replaceWith(r),this.dispatchEvent(new CustomEvent("include-fragment-replaced"))}catch(t){this.classList.add("is-error")}finally{c(this,e,!1,"f")}}},s=async function(){const e=this.src,i=d.get(this);if(i&&i.src===e)return i.data;{let i;return i=e?l(this,t,"m",a).call(this):Promise.reject(new Error("missing src")),d.set(this,{src:e,data:i}),i}},o=async function(){const e=await l(this,t,"m",s).call(this);if(e instanceof Error)throw e;return e.toString()},r=async function(t,e){await new Promise((t=>setTimeout(t,0)));for(const i of t)this.dispatchEvent(e?new CustomEvent(i,{detail:{error:e}}):new Event(i))},a=async function(){try{await l(this,t,"m",r).call(this,["loadstart"]);const i=await this.fetch(this.request()),n=i.headers.get("Content-Type");if(!(e=this.accept,e&&e.split(",").find((t=>t.match(/^\s*\*\/\*/)))||n&&n.includes(this.accept?this.accept:"text/html")))throw new Error(`Failed to load resource: expected ${this.accept||"text/html"} but was ${n}`);if(200!==i.status)throw new Error(`Failed to load resource: the server responded with a status of ${i.status}`);const s=await i.text();let o=s;if(h){o=(await h).createHTML(s,i)}return l(this,t,"m",r).call(this,["load","loadend"]),o}catch(e){throw l(this,t,"m",r).call(this,["error","loadend"],e),e}var e};const u="undefined"!=typeof globalThis?globalThis:window;try{u.IncludeFragmentElement=IncludeFragmentElement.define()}catch(t){if(!(u.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}const m=new WeakMap;class RemoteInputElement extends HTMLElement{constructor(){super();const t=f.bind(null,this,!0),e={currentQuery:null,oninput:p((e=>t(e))),fetch:t,controller:null};m.set(this,e)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e){e&&"src"===t&&f(this,!1)}connectedCallback(){const t=this.input;if(!t)return;t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false");const e=m.get(this);e&&(t.addEventListener("focus",e.fetch),t.addEventListener("change",e.fetch),t.addEventListener("input",e.oninput))}disconnectedCallback(){const t=this.input;if(!t)return;const e=m.get(this);e&&(t.removeEventListener("focus",e.fetch),t.removeEventListener("change",e.fetch),t.removeEventListener("input",e.oninput))}get input(){const t=this.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}}async function f(t,e,i){const n=t.input;if(!n)return;const s=m.get(t);if(!s)return;const o=n.value;if(e&&s.currentQuery===o)return;s.currentQuery=o;const r=t.src;if(!r)return;const a=document.getElementById(t.getAttribute("aria-owns")||"");if(!a)return;const l=new URL(r,window.location.href),c=new URLSearchParams(l.search);let d;c.append(t.getAttribute("param")||"q",o),l.search=c.toString(),s.controller?s.controller.abort():(t.dispatchEvent(new CustomEvent("loadstart")),t.setAttribute("loading","")),s.controller="AbortController"in window?new AbortController:{signal:null,abort(){}};let h="";try{d=await async function(t,e,i){try{const n=await fetch(e,i);return t.dispatchEvent(new CustomEvent("load")),t.dispatchEvent(new CustomEvent("loadend")),n}catch(e){throw e instanceof Error&&"AbortError"!==(null==e?void 0:e.name)&&(t.dispatchEvent(new CustomEvent("error")),t.dispatchEvent(new CustomEvent("loadend"))),e}}(t,l.toString(),{signal:s.controller.signal,credentials:"same-origin",headers:{accept:"text/fragment+html"}}),h=await d.text(),t.removeAttribute("loading"),s.controller=null}catch(e){return void(e instanceof Error&&"AbortError"!==e.name&&(t.removeAttribute("loading"),s.controller=null))}d&&d.ok?(a.innerHTML=h,t.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0,detail:{eventType:i?i.type:void 0}}))):t.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0}))}function p(t){let e;return function(i){clearTimeout(e),e=setTimeout((()=>{clearTimeout(e),t(i)}),300)}}function g(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}function b(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)}function v(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i}window.customElements.get("remote-input")||(window.RemoteInputElement=RemoteInputElement,window.customElements.define("remote-input",RemoteInputElement)),"function"==typeof SuppressedError&&SuppressedError;const w=new WeakSet;function y(t){L(t),A(t)}const E=new WeakMap;function A(t=document){if(E.has(t))return E.get(t);let e=!1;const i=new MutationObserver((t=>{for(const e of t)if("attributes"===e.type&&e.target instanceof Element)S(e.target);else if("childList"===e.type&&e.addedNodes.length)for(const t of e.addedNodes)t instanceof Element&&L(t)}));i.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});const n={get closed(){return e},unsubscribe(){e=!0,E.delete(t),i.disconnect()}};return E.set(t,n),n}function L(t){for(const e of t.querySelectorAll("[data-action]"))S(e);t instanceof Element&&t.hasAttribute("data-action")&&S(t)}function k(t){const e=t.currentTarget;for(const i of T(e))if(t.type===i.type){const n=e.closest(i.tag);w.has(n)&&"function"==typeof n[i.method]&&n[i.method](t);const s=e.getRootNode();if(s instanceof ShadowRoot&&w.has(s.host)&&s.host.matches(i.tag)){const e=s.host;"function"==typeof e[i.method]&&e[i.method](t)}}}function*T(t){for(const e of(t.getAttribute("data-action")||"").trim().split(/\s+/)){const t=e.lastIndexOf(":"),i=Math.max(0,e.lastIndexOf("#"))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,i),method:e.slice(i+1)||"handleEvent"}||"handleEvent"}}function S(t){for(const e of T(t))t.addEventListener(e.type,k)}const C=t=>String("symbol"==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),x=(t,e="property")=>{const i=C(t);if(!i.includes("-"))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,"SyntaxError");return i};const M="attr";function I(t,e){_(t,M).add(e)}const D=new WeakSet;function P(t,e){if(D.has(t))return;D.add(t);const i=Object.getPrototypeOf(t),n=i?.constructor?.attrPrefix??"data-";e||(e=_(i,M));for(const i of e){const e=t[i],s=x(`${n}${i}`);let o={configurable:!0,get(){return this.getAttribute(s)||""},set(t){this.setAttribute(s,t||"")}};"number"==typeof e?o={configurable:!0,get(){return Number(this.getAttribute(s)||0)},set(t){this.setAttribute(s,t)}}:"boolean"==typeof e&&(o={configurable:!0,get(){return this.hasAttribute(s)},set(t){this.toggleAttribute(s,t)}}),Object.defineProperty(t,i,o),i in t&&!t.hasAttribute(s)&&o.set.call(t,e)}}const O=new Map,H=new Promise((t=>{"loading"!==document.readyState?t():document.addEventListener("readystatechange",(()=>t()),{once:!0})})),N=new Promise((t=>{const e=new AbortController;e.signal.addEventListener("abort",(()=>t()));const i={once:!0,passive:!0,signal:e.signal},n=()=>e.abort();document.addEventListener("mousedown",n,i),document.addEventListener("touchstart",n,i),document.addEventListener("keydown",n,i),document.addEventListener("pointerdown",n,i)})),F={ready:()=>H,firstInteraction:()=>N,visible:t=>new Promise((e=>{const i=new IntersectionObserver((t=>{for(const n of t)if(n.isIntersecting)return e(),void i.disconnect()}),{rootMargin:"0px 0px 256px 0px",threshold:.01});for(const e of document.querySelectorAll(t))i.observe(e)}))},R=new Set;let q,W=null;function V(t){R.add(t),null==W&&(W=requestAnimationFrame((()=>{W=null;const t=new Set(R);if(R.clear(),O.size)t:for(const e of t)for(const t of O.keys()){const i=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||i){const e=i?.getAttribute("data-load-on")||"ready",n=e in F?F[e]:F.ready;for(const e of O.get(t)||[])n(t).then(e);if(O.delete(t),!O.size)break t}}})))}const B=Symbol.for("catalyst");class ${constructor(t,e){const i=this,n=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){i.connectedCallback(this,n)};const s=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){i.disconnectedCallback(this,s)};const o=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,n){i.attributeChangedCallback(this,t,e,n,o)};let r=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return i.observedAttributes(this,r)},set(t){r=t}}),function(t){let e=t.observedAttributes||[];const i=t.attrPrefix??"data-",n=t=>x(`${i}${t}`);Object.defineProperty(t,"observedAttributes",{configurable:!0,get:()=>[..._(t.prototype,M)].map(n).concat(e),set(t){e=t}})}(t),function(t,e){const i=e||C(t.name).replace(/-element$/,"");try{window.customElements.define(i,t),window[t.name]=customElements.get(i)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),function(t){for(const e of t.querySelectorAll("template[data-shadowroot]"))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).append(e.content.cloneNode(!0))}(t),P(t),function(t){w.add(t),t.shadowRoot&&y(t.shadowRoot),L(t),A(t.ownerDocument)}(t),e?.call(t),t.shadowRoot&&(y(t.shadowRoot),function(t){q||(q=new MutationObserver((t=>{if(O.size)for(const e of t)for(const t of e.addedNodes)t instanceof Element&&V(t)}))),V(t),q.observe(t,{subtree:!0,childList:!0})}(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,i,n,s){P(t),"data-catalyst"!==e&&s&&s.call(t,e,i,n)}}function _(t,e){if(!Object.prototype.hasOwnProperty.call(t,B)){const e=t[B],i=t[B]=new Map;if(e)for(const[t,n]of e)i.set(t,new Set(n))}const i=t[B];return i.has(e)||i.set(e,new Set),i.get(e)}function U(t,e){_(t,"target").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return function(t,e){const i=t.tagName.toLowerCase();if(t.shadowRoot)for(const n of t.shadowRoot.querySelectorAll(`[data-target~="${i}.${e}"]`))if(!n.closest(i))return n;for(const n of t.querySelectorAll(`[data-target~="${i}.${e}"]`))if(n.closest(i)===t)return n}(this,e)}})}function j(t,e){_(t,"targets").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return function(t,e){const i=t.tagName.toLowerCase(),n=[];if(t.shadowRoot)for(const s of t.shadowRoot.querySelectorAll(`[data-targets~="${i}.${e}"]`))s.closest(i)||n.push(s);for(const s of t.querySelectorAll(`[data-targets~="${i}.${e}"]`))s.closest(i)===t&&n.push(s);return n}(this,e)}})}function K(t){if("string"==typeof t)return e=>{new $(e,t)};new $(t)}var z;class Y{constructor(t){this.resizeObserver=new ResizeObserver((t=>{for(const e of t){const t=e.target;t instanceof HTMLElement&&this.update(t)}})),this.resizeObserver.observe(t)}unobserve(t){this.resizeObserver.unobserve(t)}update(t){const e=t.querySelectorAll("li");for(const t of e){const e=t.querySelector(".ActionListItem-label");if(!e)continue;const i=t.querySelector(".ActionListItem-truncationTooltip");if(!i)continue;const n=e.scrollWidth>e.clientWidth;i.style.display=n?"":"none"}}}let Z=class ActionListElement extends HTMLElement{constructor(){super(...arguments),z.set(this,void 0)}connectedCallback(){v(this,z,new Y(this),"f")}disconnectedCallback(){b(this,z,"f").unobserve(this)}};z=new WeakMap,Z=g([K("action-list")],Z);const G={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},J={start:["end","center"],end:["start","center"],center:["end","start"]};function X(t,e,i={}){const{positionedParent:n,clippingNode:s,positionedParentStyle:o,clippingNodeStyle:r}=function(t){if(function(t){var e;if("DIALOG"===t.tagName)return!0;try{if(t.matches(":popover-open")&&/native code/.test(null===(e=document.body.showPopover)||void 0===e?void 0:e.toString()))return!0}catch(t){return!1}return!1}(t))return{positionedParent:document.body,clippingNode:document.body,positionedParentStyle:null,clippingNodeStyle:null};let e=null,i=null,n=null,s=null,o=t.parentNode;for(;null!==o&&o!==document.body;){if(o instanceof HTMLElement){const t=getComputedStyle(o);if(e||"static"===t.position||(e=o,n=t),i||"visible"===t.overflow||(i=o,s=t),e&&i)break}o=o.parentNode}return{positionedParent:null!=e?e:document.body,clippingNode:null!=i?i:document.body,positionedParentStyle:n,clippingNodeStyle:s}}(t),a=function(t,e=null){const i=t.getBoundingClientRect(),n=e||getComputedStyle(t),s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0;return{top:i.top+s,left:i.left+o,width:i.width-r-o,height:Math.max(i.height-s-a,t===document.body?window.innerHeight:-1/0)}}(s,r),l=o||getComputedStyle(n),c=n.getBoundingClientRect(),[d,h]=[l.borderTopWidth,l.borderLeftWidth].map((t=>parseInt(t,10)||0));return function(t,e,i,n,{side:s,align:o,allowOutOfBounds:r,anchorOffset:a,alignmentOffset:l,displayInViewport:c},d){let h=t;c&&(h={top:0,left:0,width:d.width,height:d.height});const u={top:h.top-e.top,left:h.left-e.left,width:h.width,height:h.height};let m=tt(i,n,s,o,a,l),f=s,p=o;if(m.top-=e.top,m.left-=e.left,!r){const t=G[s];let r=0;if(t){let c=s;for(;r<t.length&&et(c,m,u,i);){const s=t[r++];c=s,m=tt(i,n,s,o,a,l),m.top-=e.top,m.left-=e.left,f=s}}const d=J[o];let g=0;if(d){let t=o;for(;g<d.length&&it(t,m,u,i);){const s=d[g++];t=s,m=tt(i,n,f,s,a,l),m.top-=e.top,m.left-=e.left,p=s}}m.top<u.top&&(m.top=u.top),m.left<u.left&&(m.left=u.left),m.left+i.width>h.width+u.left&&(m.left=h.width+u.left-i.width),(c||t&&r<t.length)&&m.top+i.height>h.height+u.top&&(m.top=Math.max(h.height+u.top-i.height,0))}return Object.assign(Object.assign({},m),{anchorSide:f,anchorAlign:p})}(a,{top:c.top+d,left:c.left+h},t.getBoundingClientRect(),e instanceof Element?e.getBoundingClientRect():e,function(t={}){var e,i,n,s,o,r;const a=null!==(e=t.side)&&void 0!==e?e:Q.side,l=null!==(i=t.align)&&void 0!==i?i:Q.align;return{side:a,align:l,anchorOffset:null!==(n=t.anchorOffset)&&void 0!==n?n:"inside-center"===a?0:Q.anchorOffset,alignmentOffset:null!==(s=t.alignmentOffset)&&void 0!==s?s:"center"!==l&&a.startsWith("inside")?Q.alignmentOffset:0,allowOutOfBounds:null!==(o=t.allowOutOfBounds)&&void 0!==o?o:Q.allowOutOfBounds,displayInViewport:null!==(r=t.displayInViewport)&&void 0!==r?r:Q.displayInViewport}}(i),{width:window.innerWidth,height:window.innerHeight})}const Q={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1,displayInViewport:!1};function tt(t,e,i,n,s,o){const r=e.left+e.width,a=e.top+e.height;let l=-1,c=-1;return"outside-top"===i?l=e.top-s-t.height:"outside-bottom"===i?l=a+s:"outside-left"===i?c=e.left-s-t.width:"outside-right"===i&&(c=r+s),"outside-top"!==i&&"outside-bottom"!==i||(c="start"===n?e.left+o:"center"===n?e.left-(t.width-e.width)/2+o:r-t.width-o),"outside-left"!==i&&"outside-right"!==i||(l="start"===n?e.top+o:"center"===n?e.top-(t.height-e.height)/2+o:a-t.height-o),"inside-top"===i?l=e.top+s:"inside-bottom"===i?l=a-s-t.height:"inside-left"===i?c=e.left+s:"inside-right"===i?c=r-s-t.width:"inside-center"===i&&(c=(r+e.left)/2-t.width/2+s),"inside-top"===i||"inside-bottom"===i?c="start"===n?e.left+o:"center"===n?e.left-(t.width-e.width)/2+o:r-t.width-o:"inside-left"!==i&&"inside-right"!==i&&"inside-center"!==i||(l="start"===n?e.top+o:"center"===n?e.top-(t.height-e.height)/2+o:a-t.height-o),{top:l,left:c}}function et(t,e,i,n){return"outside-top"===t||"outside-bottom"===t?e.top<i.top||e.top+n.height>i.height+i.top:e.left<i.left||e.left+n.width>i.width+i.left}function it(t,e,i,n){return"end"===t?e.left<i.left:"start"===t||"center"===t?e.left+n.width>i.left+i.width||e.left<i.left:void 0}function*nt(t,e={}){var i,n;const s=null!==(i=e.strict)&&void 0!==i&&i,o=null!==(n=e.onlyTabbable)&&void 0!==n&&n?at:rt,r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>t instanceof HTMLElement&&o(t,s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let a=null;if(!e.reverse&&o(t,s)&&(yield t),e.reverse){let t=r.lastChild();for(;t;)a=t,t=r.lastChild()}else a=r.firstChild();for(;a instanceof HTMLElement;)yield a,a=e.reverse?r.previousNode():r.nextNode();e.reverse&&o(t,s)&&(yield t)}function st(t,e=!1){return nt(t,{reverse:e,strict:!0,onlyTabbable:!0}).next().value}const ot=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"]);function rt(t,e=!1){if(t.hidden)return!1;if(t.classList.contains("sentinel"))return!1;if(t instanceof HTMLInputElement&&"hidden"===t.type)return!1;if(ot.has(t.tagName)&&t.disabled)return!1;if(e){const e=t.offsetWidth,i=t.offsetHeight,n=t.offsetParent;if(0===e||0===i)return!1;const s=getComputedStyle(t);if("none"===s.display)return!1;if("hidden"===s.visibility||"collapse"===s.visibility)return!1;const o=s.position;if(!n&&"fixed"!==o&&"sticky"!==o)return!1;if(0===t.getClientRects().length)return!1}return null!=t.getAttribute("tabindex")||("true"===t.getAttribute("contenteditable")||"plaintext-only"===t.getAttribute("contenteditable")||!(t instanceof HTMLAnchorElement&&null==t.getAttribute("href"))&&-1!==t.tabIndex)}function at(t,e=!1){return rt(t,e)&&"-1"!==t.getAttribute("tabindex")}let lt=!1;function ct(){}try{const t=Object.create({},{signal:{get(){lt=!0}}});window.addEventListener("test",ct,t),window.removeEventListener("test",ct,t)}catch(t){}function dt(){lt||(!function(){if("undefined"==typeof window)return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,i,n){return"object"==typeof n&&"signal"in n&&n.signal instanceof AbortSignal&&t.call(n.signal,"abort",(()=>{this.removeEventListener(e,i,n)})),t.call(this,e,i,n)}}(),lt=!0)}dt();const ht=[];let ut;const mt="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0";function ft(t){if(!t)return;const e=t.hasAttribute("data-prevent-scroll-on-focus");t.focus({preventScroll:e})}function pt({onFocus:t}){const e=document.createElement("span");return e.setAttribute("class","sentinel"),e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.style.cssText=mt,e.onfocus=t,e}function gt(t,e,i){const n=new AbortController,s=null!=i?i:n.signal;t.setAttribute("data-focus-trap","active");const o=pt({onFocus:()=>{ft(st(t,!0))}}),r=pt({onFocus:()=>{ft(st(t))}});null!==t.querySelector(":scope > span.sentinel")||(t.prepend(o),t.append(r));const a=function(t,e){const i=new MutationObserver((i=>{for(const n of i)if("childList"===n.type&&n.addedNodes.length){for(const t of n.addedNodes)if(t instanceof HTMLElement&&"SPAN"===t.tagName&&t.classList.contains("sentinel"))return;const i=t.firstElementChild,s=t.lastElementChild,[o,r]=e;(null==i?void 0:i.classList.contains("sentinel"))||t.insertAdjacentElement("afterbegin",o),(null==s?void 0:s.classList.contains("sentinel"))||t.insertAdjacentElement("beforeend",r)}}));return i.observe(t,{childList:!0}),i}(t,[o,r]);let l;function c(i){if(i instanceof HTMLElement&&document.contains(t)){if(t.contains(i))return void(l=i);if(l&&at(l)&&t.contains(l))return void ft(l);if(e&&t.contains(e))return void ft(e);return void ft(st(t))}}const d=function(t){const e=new AbortController;return t.addEventListener("abort",(()=>{e.abort()})),e}(s);if(ut){const t=ut;ut.container.setAttribute("data-focus-trap","suspended"),ut.controller.abort(),ht.push(t)}d.signal.addEventListener("abort",(()=>{ut=void 0})),s.addEventListener("abort",(()=>{t.removeAttribute("data-focus-trap");const e=t.getElementsByClassName("sentinel");for(;e.length>0;)e[0].remove();const i=ht.findIndex((e=>e.container===t));i>=0&&ht.splice(i,1),a.disconnect(),function(){const t=ht.pop();t&>(t.container,t.initialFocus,t.originalSignal)}()})),document.addEventListener("focus",(t=>{c(t.target)}),{signal:d.signal,capture:!0}),c(document.activeElement),ut={container:t,controller:d,initialFocus:e,originalSignal:s};const h=ht.findIndex((e=>e.container===t));if(h>=0&&ht.splice(h,1),!i)return n}let bt;function vt(){return void 0===bt&&(bt=/^mac/i.test(window.navigator.platform)),bt}let wt=1e4;const yt=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);class Et{constructor(){this._items=[],this._itemSet=new Set,this._indexMap=new Map}insertAt(t,e){let i;if(e.length<=100)i=e.filter(((t,e,i)=>!this._itemSet.has(t)&&i.indexOf(t)===e));else{const t=new Set;i=[];for(let n=0;n<e.length;n++){const s=e[n];this._itemSet.has(s)||t.has(s)||(t.add(s),i.push(s))}}if(0===i.length)return;const n=Math.max(0,Math.min(t,this._items.length));if(n!==this._items.length)if(0!==n){for(let t=this._items.length-1;t>=n;t--)this._indexMap.set(this._items[t],t+i.length);i.length<=1e4?this._items.splice(n,0,...i):this._chunkedInsert(n,i);for(let t=0;t<i.length;t++){const e=i[t];this._itemSet.add(e),this._indexMap.set(e,n+t)}}else{for(let t=0;t<this._items.length;t++)this._indexMap.set(this._items[t],t+i.length);i.length<=1e4?this._items.splice(0,0,...i):this._chunkedInsert(0,i);for(let t=0;t<i.length;t++)this._itemSet.add(i[t]),this._indexMap.set(i[t],t)}else for(let t=0;t<i.length;t++){const e=i[t];this._indexMap.set(e,this._items.length),this._items.push(e),this._itemSet.add(e)}}_chunkedInsert(t,e){for(let i=0;i<e.length;i+=1e4){const n=e.slice(i,i+1e4);this._items.splice(t+i,0,...n)}}delete(t){if(!this._itemSet.has(t))return!1;const e=this._indexMap.get(t);this._items.splice(e,1),this._itemSet.delete(t),this._indexMap.delete(t);for(let t=e;t<this._items.length;t++)this._indexMap.set(this._items[t],t);return!0}has(t){return this._itemSet.has(t)}indexOf(t){var e;return null!==(e=this._indexMap.get(t))&&void 0!==e?e:-1}get(t){return this._items[t]}get size(){return this._items.length}[Symbol.iterator](){return this._items[Symbol.iterator]()}clear(){this._items=[],this._itemSet.clear(),this._indexMap.clear()}find(t){return this._items.find(t)}}var At;dt(),function(t){t[t.ArrowHorizontal=1]="ArrowHorizontal",t[t.ArrowVertical=2]="ArrowVertical",t[t.JK=4]="JK",t[t.HL=8]="HL",t[t.HomeAndEnd=16]="HomeAndEnd",t[t.PageUpDown=256]="PageUpDown",t[t.WS=32]="WS",t[t.AD=64]="AD",t[t.Tab=128]="Tab",t[t.Backspace=512]="Backspace",t[t.ArrowAll=3]="ArrowAll",t[t.HJKL=12]="HJKL",t[t.WASD=96]="WASD",t[t.All=511]="All"}(At||(At={}));const Lt={ArrowLeft:At.ArrowHorizontal,ArrowDown:At.ArrowVertical,ArrowUp:At.ArrowVertical,ArrowRight:At.ArrowHorizontal,h:At.HL,j:At.JK,k:At.JK,l:At.HL,a:At.AD,s:At.WS,w:At.WS,d:At.AD,Tab:At.Tab,Home:At.HomeAndEnd,End:At.HomeAndEnd,PageUp:At.PageUpDown,PageDown:At.PageUpDown,Backspace:At.Backspace},kt={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function Tt(t){const e=kt[t.key];if("Tab"===t.key&&t.shiftKey)return"previous";const i=vt();if(i&&t.metaKey||!i&&t.ctrlKey){if("ArrowLeft"===t.key||"ArrowUp"===t.key)return"start";if("ArrowRight"===t.key||"ArrowDown"===t.key)return"end"}return e}function St(t,e){const i=t.key,n=1===i.length||2===i.length&&i.charCodeAt(0)>=55296&&i.charCodeAt(0)<=56319,s=function(t){var e,i;if(!(t instanceof HTMLElement))return!1;const n=t.nodeName.toLowerCase(),s=null!==(i=null===(e=t.getAttribute("type"))||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"text",o="true"===t.ariaReadOnly||"true"===t.getAttribute("aria-readonly")||null!==t.getAttribute("readonly");return("select"===n||"textarea"===n||"input"===n&&!yt.has(s)||t.isContentEditable)&&!o}(e),o=e instanceof HTMLSelectElement;if(s&&(n||"Home"===i||"End"===i))return!0;if(o){const e=vt();return!("ArrowDown"!==i||!e||t.metaKey)||!("ArrowDown"!==i||e||!t.altKey)}if(s&&!o){const t=e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement,n=t&&0===e.selectionStart&&0===e.selectionEnd,s=t&&e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===i&&!n)return!0;if("ArrowRight"===i&&!s)return!0;const o=e instanceof HTMLElement&&e.isContentEditable;if(e instanceof HTMLTextAreaElement||o){if("PageUp"===i||"PageDown"===i)return!0;if("ArrowUp"===i&&!n)return!0;if("ArrowDown"===i&&!s)return!0}}return!1}const Ct="data-is-active-descendant",xt="activated-directly",Mt="activated-indirectly",It="data-has-active-descendant";function Dt(t,e){var i,n,s,o,r,a,l;const c=new Et,d=new WeakMap,h=null!==(i=null==e?void 0:e.bindKeys)&&void 0!==i?i:((null==e?void 0:e.getNextFocusable)?At.ArrowAll:At.ArrowVertical)|At.HomeAndEnd,u=null!==(n=null==e?void 0:e.focusOutBehavior)&&void 0!==n?n:"stop",m=null!==(s=null==e?void 0:e.focusInStrategy)&&void 0!==s?s:"previous",f=null==e?void 0:e.activeDescendantControl,p=null==e?void 0:e.onActiveDescendantChanged,g=null!==(o=null==e?void 0:e.ignoreHoverEvents)&&void 0!==o&&o,b=null!==(r=null==e?void 0:e.focusPrependedElements)&&void 0!==r&&r;let v,w=!1;const y=null!==(a=null==e?void 0:e.preventScroll)&&void 0!==a&&a,E="initial"===m&&(null==e?void 0:e.activeDescendantControl);function A(){return c.get(0)}function L(t,e=!1){const i=v;v=t,w=e,f?t&&document.activeElement===f?k(i,t,e):T():(i&&i!==t&&d.has(i)&&i.setAttribute("tabindex","-1"),null==t||t.setAttribute("tabindex","0"))}function k(e,i,n=!1){i.id||i.setAttribute("id","__primer_id_"+wt++),e&&e!==i&&e.removeAttribute(Ct),f&&(n||f.getAttribute("aria-activedescendant")!==i.id)&&(f.setAttribute("aria-activedescendant",i.id),t.setAttribute(It,i.id),i.setAttribute(Ct,n?xt:Mt),null==p||p(i,e,n))}function T(e=v){"first"===m&&(v=void 0),null==f||f.removeAttribute("aria-activedescendant"),t.removeAttribute(It),null==e||e.removeAttribute(Ct);const i=t.querySelectorAll(`[${Ct}]`);for(let t=0;t<i.length;t++)i[t].removeAttribute(Ct);null==p||p(void 0,e,!1)}function S(...t){const i=(null==e?void 0:e.focusableElementFilter)?t.filter((t=>e.focusableElementFilter(t))):t;if(0===i.length)return;const n=function(t){const e=t[0];if(0===c.size)return 0;let i=0,n=c.size-1;for(;i<=n;){const t=Math.floor((i+n)/2);x(e,c.get(t))?n=t-1:i=t+1}return i}(i);c.insertAt(n,i);for(const t of i)d.has(t)||d.set(t,t.getAttribute("tabindex")),t.setAttribute("tabindex","-1");!E&&(b&&0===n&&!w)?C():E||v||L(A())}function C(){const e=[...nt(t,I)];c.clear(),c.insertAt(0,e);for(const t of e)d.has(t)||d.set(t,t.getAttribute("tabindex")),t.setAttribute("tabindex","-1");L(A())}function x(t,e){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)>0}function M(...t){for(const e of t){c.delete(e);const t=d.get(e);if(void 0!==t&&(null===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),d.delete(e)),e===v){L(A())}}}const I={reverse:null==e?void 0:e.reverse,strict:null==e?void 0:e.strict,onlyTabbable:null==e?void 0:e.onlyTabbable};S(...nt(t,I));const D="function"==typeof m?m(document.body):A();E||L(D);const P=new MutationObserver((t=>{const e=new Set,i=new Set,n=new Set,s=new Set;for(const o of t)if("childList"===o.type){for(const t of o.removedNodes)t instanceof HTMLElement&&e.add(t);for(const t of o.addedNodes)t instanceof HTMLElement&&i.add(t)}else if("attributes"===o.type&&o.target instanceof HTMLElement){const t=o.attributeName;!!t&&o.target.hasAttribute(t)?n.add(o.target):s.add(o.target)}if(e.size>0){const t=[];for(const i of e)for(const e of nt(i))t.push(e);t.length>0&&M(...t)}if(n.size>0&&M(...n),i.size>0){const t=[];for(const e of i)for(const i of nt(e,I))t.push(i);t.length>0&&(b?C():S(...t))}s.size>0&&S(...s)}));P.observe(t,{subtree:!0,childList:!0,attributeFilter:["hidden","disabled"],attributeOldValue:!0});const O=new AbortController,H=null!==(l=null==e?void 0:e.abortSignal)&&void 0!==l?l:O.signal;let N;H.addEventListener("abort",(()=>{P.disconnect(),M(...c),c.clear()})),t.addEventListener("mousedown",(t=>{t.target instanceof HTMLElement&&t.target!==document.activeElement&&(N=c.indexOf(t.target))}),{signal:H}),f?(t.addEventListener("focusin",(t=>{t.target instanceof HTMLElement&&c.has(t.target)&&(f.focus({preventScroll:y}),L(t.target))}),{signal:H}),g||t.addEventListener("mousemove",(({target:t})=>{if(!(t instanceof Node))return;if(t instanceof HTMLElement&&c.has(t))return void L(t);const e=c.find((e=>e.contains(t)));e&&L(e)}),{signal:H,capture:!0}),f.addEventListener("focusin",(()=>{v?k(void 0,v):E||L(A())}),{signal:H}),f.addEventListener("focusout",(()=>{T()}),{signal:H})):t.addEventListener("focusin",(e=>{if(e.target instanceof HTMLElement)if(void 0!==N){if(N>=0){const t=c.get(N);t&&t!==v&&L(t)}N=void 0}else if("previous"===m)L(e.target);else if("closest"===m||"first"===m){if(e.relatedTarget instanceof Element&&!t.contains(e.relatedTarget)){const t="previous"===R?c.size-1:0,e=c.get(t);return void(null==e||e.focus({preventScroll:y}))}L(e.target)}else if("function"==typeof m)if(e.relatedTarget instanceof Element&&!t.contains(e.relatedTarget)){const t=m(e.relatedTarget);if(t&&c.has(t))return void t.focus({preventScroll:y});console.warn("Element requested is not a known focusable element.")}else L(e.target);R=void 0}),{signal:H});const F=null!=f?f:t;let R;return"closest"===m&&document.addEventListener("keydown",(t=>{"Tab"===t.key&&(R=Tt(t))}),{signal:H,capture:!0}),F.addEventListener("keydown",(i=>{var n;if(i.key in kt){const s=Lt[i.key];if(!i.defaultPrevented&&(s&h)>0&&!St(i,document.activeElement)){const s=Tt(i);let o;if((null==e?void 0:e.getNextFocusable)&&(o=e.getNextFocusable(s,null!==(n=document.activeElement)&&void 0!==n?n:void 0,i)),!o){const e=function(){if(!v)return E?-1:0;const e=c.indexOf(v);return-1!==e?e:v===t?-1:0}();let n=e;"previous"===s?n-=1:"start"===s?n=0:"next"===s?n+=1:n=c.size-1,n<0&&(n="wrap"===u&&"Tab"!==i.key?c.size-1:0),n>=c.size&&(n="wrap"===u&&"Tab"!==i.key?0:c.size-1),e!==n&&(o=c.get(n))}f?L(o||v,!0):o&&(R=s,o.focus({preventScroll:y})),("Tab"!==i.key||o)&&i.preventDefault()}}}),{signal:H}),O}var Pt,Ot,Ht,Nt,Ft,Rt,qt,Wt;const Vt=new IntersectionObserver((t=>{for(const e of t){const t=e.target;e.isIntersecting&&t instanceof $t&&t.update()}})),Bt=new ResizeObserver((t=>{for(const e of t){const t=e.target;t instanceof $t&&t.update()}}));let $t=class ActionBarElement extends HTMLElement{constructor(){super(...arguments),Pt.add(this),Ot.set(this,null),Ht.set(this,!1)}connectedCallback(){Bt.observe(this),Vt.observe(this),this.style.overflow="visible",this.update()}disconnectedCallback(){Bt.unobserve(this),Vt.unobserve(this)}menuItemClick(t){const e=t.currentTarget,i=e?.getAttribute("data-for");i&&document.getElementById(i)?.click()}update(){b(this,Ht,"f")||(v(this,Ht,!0,"f"),requestAnimationFrame((()=>{v(this,Ht,!1,"f"),b(this,Pt,"m",Nt).call(this)})))}};Ot=new WeakMap,Ht=new WeakMap,Pt=new WeakSet,Nt=function(){const t=b(this,Pt,"a",Ft);if(!t)return;const e=t.getBoundingClientRect().top,i=b(this,Pt,"a",Wt),n=Array.from(this.items,(t=>({top:t.getBoundingClientRect().top,isDivider:t.classList.contains("ActionBar-divider")})));let s=!1;for(let t=0;t<n.length;t++){const o=n[t];o.isDivider?s=!0:(o.top>e?(b(this,Pt,"m",qt).call(this,t,i),this.moreMenu.hidden&&(this.moreMenu.hidden=!1),s&&b(this,Pt,"m",qt).call(this,t-1,i)):(b(this,Pt,"m",Rt).call(this,t,i),t===this.items.length-1&&(this.moreMenu.hidden=!0),s&&b(this,Pt,"m",Rt).call(this,t-1,i)),s=!1)}b(this,Ot,"f")&&b(this,Ot,"f").abort(),v(this,Ot,Dt(this,{bindKeys:At.ArrowHorizontal|At.HomeAndEnd,focusOutBehavior:"wrap",focusableElementFilter:t=>{const e=this.items.indexOf(t.parentElement),i=e>-1&&"visible"===this.items[e].style.visibility,n=t===this.moreMenu.invokerElement&&!this.moreMenu.hidden;return i||n}}),"f")},Ft=function(){return this.items.find((t=>!t.classList.contains("ActionBar-divider")))??null},Rt=function(t,e){const i=this.items[t],n=e[t];i&&n&&(i.style.setProperty("visibility","visible"),n.hidden=!0)},qt=function(t,e){const i=this.items[t],n=e[t];i&&n&&(i.style.setProperty("visibility","hidden"),n.hidden=!1)},Wt=function(){return this.moreMenu.querySelectorAll('[role="menu"] > li')},g([j],$t.prototype,"items",void 0),g([U],$t.prototype,"itemContainer",void 0),g([U],$t.prototype,"moreMenu",void 0),$t=g([K("action-bar")],$t),window.ActionBarElement=$t;class DetailsMenuElement extends HTMLElement{get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","menu");const t=this.parentElement;if(!t)return;const e=t.querySelector("summary");e&&(e.setAttribute("aria-haspopup","menu"),e.hasAttribute("role")||e.setAttribute("role","button"));const i=[jt(t,"compositionstart",(t=>ee(this,t))),jt(t,"compositionend",(t=>ee(this,t))),jt(t,"click",(e=>Jt(t,e))),jt(t,"change",(e=>Jt(t,e))),jt(t,"keydown",(e=>function(t,e,i){if(!(i instanceof KeyboardEvent))return;if(t.querySelector("details[open]"))return;const n=_t.get(e);if(!n||n.isComposing)return;const s=i.target instanceof Element&&"SUMMARY"===i.target.tagName;switch(i.key){case"Escape":t.hasAttribute("open")&&(te(t),i.preventDefault(),i.stopPropagation());break;case"ArrowDown":{s&&!t.hasAttribute("open")&&t.setAttribute("open","");const e=Zt(t,!0);e&&e.focus(),i.preventDefault()}break;case"ArrowUp":{s&&!t.hasAttribute("open")&&t.setAttribute("open","");const e=Zt(t,!1);e&&e.focus(),i.preventDefault()}break;case"n":if(Gt&&i.ctrlKey){const e=Zt(t,!0);e&&e.focus(),i.preventDefault()}break;case"p":if(Gt&&i.ctrlKey){const e=Zt(t,!1);e&&e.focus(),i.preventDefault()}break;case" ":case"Enter":{const e=document.activeElement;e instanceof HTMLElement&&Qt(e)&&e.closest("details")===t&&(i.preventDefault(),i.stopPropagation(),e.click())}}}(t,this,e))),jt(t,"toggle",(()=>Kt(t,this)),{once:!0}),jt(t,"toggle",(()=>function(t){if(!t.hasAttribute("open"))return;for(const e of document.querySelectorAll("details[open] > details-menu")){const i=e.closest("details");i&&i!==t&&!i.contains(t)&&i.removeAttribute("open")}}(t))),this.preload?jt(t,"mouseover",(()=>Kt(t,this)),{once:!0}):Ut,...zt(t)];_t.set(this,{subscriptions:i,loaded:!1,isComposing:!1})}disconnectedCallback(){const t=_t.get(this);if(t){_t.delete(this);for(const e of t.subscriptions)e.unsubscribe()}}}const _t=new WeakMap,Ut={unsubscribe(){}};function jt(t,e,i,n=!1){return t.addEventListener(e,i,n),{unsubscribe:()=>{t.removeEventListener(e,i,n)}}}function Kt(t,e){const i=e.getAttribute("src");if(!i)return;const n=_t.get(e);if(!n)return;if(n.loaded)return;n.loaded=!0;const s=e.querySelector("include-fragment");s&&!s.hasAttribute("src")&&(s.addEventListener("loadend",(()=>Yt(t))),s.setAttribute("src",i))}function zt(t){let e=!1;return[jt(t,"mousedown",(()=>e=!0)),jt(t,"keydown",(()=>e=!1)),jt(t,"toggle",(()=>{t.hasAttribute("open")&&(Yt(t)||e||function(t){const e=document.activeElement;if(e&&Qt(e)&&t.contains(e))return;const i=Zt(t,!0);i&&i.focus()}(t))}))]}function Yt(t){if(!t.hasAttribute("open"))return!1;const e=t.querySelector("details-menu [autofocus]");return!!e&&(e.focus(),!0)}function Zt(t,e){const i=Array.from(t.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled])')),n=document.activeElement,s=n instanceof HTMLElement?i.indexOf(n):-1,o=e?i[s+1]:i[s-1],r=e?i[0]:i[i.length-1];return o||r}const Gt=navigator.userAgent.match(/Macintosh/);function Jt(t,e){const i=e.target;if(i instanceof Element&&i.closest("details")===t)if("click"===e.type){const e=i.closest('[role="menuitem"], [role="menuitemradio"]');if(!e)return;const n=e.querySelector("input");if("LABEL"===e.tagName&&i===n)return;"LABEL"===e.tagName&&n&&!n.checked||Xt(e,t)}else if("change"===e.type){const e=i.closest('[role="menuitemradio"], [role="menuitemcheckbox"]');e&&Xt(e,t)}}function Xt(t,e){if(t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled"))return;const i=t.closest("details-menu");if(!i)return;i.dispatchEvent(new CustomEvent("details-menu-select",{cancelable:!0,detail:{relatedTarget:t}}))&&(!function(t,e){const i=e.querySelector("[data-menu-button]");if(!i)return;const n=function(t){if(!t)return null;const e=t.hasAttribute("data-menu-button-text")?t:t.querySelector("[data-menu-button-text]");return e?e.getAttribute("data-menu-button-text")||e.textContent:null}(t);if(n)i.textContent=n;else{const e=function(t){if(!t)return null;const e=t.hasAttribute("data-menu-button-contents")?t:t.querySelector("[data-menu-button-contents]");return e?e.innerHTML:null}(t);e&&(i.innerHTML=e)}}(t,e),function(t,e){for(const i of e.querySelectorAll('[role="menuitemradio"], [role="menuitemcheckbox"]')){const e=i.querySelector('input[type="radio"], input[type="checkbox"]');let n=(i===t).toString();e instanceof HTMLInputElement&&(n=e.indeterminate?"mixed":e.checked.toString()),i.setAttribute("aria-checked",n)}}(t,e),"menuitemcheckbox"!==t.getAttribute("role")&&te(e),i.dispatchEvent(new CustomEvent("details-menu-selected",{detail:{relatedTarget:t}})))}function Qt(t){const e=t.getAttribute("role");return"menuitem"===e||"menuitemcheckbox"===e||"menuitemradio"===e}function te(t){if(!t.hasAttribute("open"))return;t.removeAttribute("open");const e=t.querySelector("summary");e&&e.focus()}function ee(t,e){const i=_t.get(t);i&&(i.isComposing="compositionstart"===e.type)}var ie,ne;window.customElements.get("details-menu")||(window.DetailsMenuElement=DetailsMenuElement,window.customElements.define("details-menu",DetailsMenuElement));const se=(()=>{const t=new Set;let e=null,i=null;function n(){for(const e of t)e.update()}return s=>{window.addEventListener("resize",n),window.addEventListener("scroll",n),e||(e=new IntersectionObserver((e=>{for(const i of e){const e=i.target;i.isIntersecting?(e.update(),t.add(e)):t.delete(e)}}))),i||(i=new ResizeObserver((()=>{for(const e of t)e.update()}))),i.observe(s.ownerDocument.documentElement),e.observe(s)}})();class AnchoredPositionElement extends HTMLElement{constructor(){super(...arguments),ie.set(this,null),ne.set(this,void 0)}get align(){const t=this.getAttribute("align");return"center"===t||"end"===t?t:"start"}set align(t){this.setAttribute("align",`${t}`)}get side(){const t=this.getAttribute("side");return"inside-top"===t||"inside-bottom"===t||"inside-left"===t||"inside-right"===t||"inside-center"===t||"outside-top"===t||"outside-left"===t||"outside-right"===t?t:"outside-bottom"}set side(t){this.setAttribute("side",`${t}`)}get anchorOffset(){const t=this.getAttribute("anchor-offset");return"spacious"===t||"8"===t?8:4}set anchorOffset(t){this.setAttribute("anchor-offset",`${t}`)}get anchor(){return this.getAttribute("anchor")||""}set anchor(t){this.setAttribute("anchor",`${t}`)}get anchorElement(){if(b(this,ie,"f"))return b(this,ie,"f");const t=this.anchor;return t?this.ownerDocument.getElementById(t):null}set anchorElement(t){v(this,ie,t,"f"),b(this,ie,"f")||this.removeAttribute("anchor")}get alignmentOffset(){return Number(this.getAttribute("alignment-offset"))}set alignmentOffset(t){this.setAttribute("alignment-offset",`${t}`)}get allowOutOfBounds(){return this.hasAttribute("allow-out-of-bounds")}set allowOutOfBounds(t){this.toggleAttribute("allow-out-of-bounds",t)}connectedCallback(){this.update(),this.addEventListener("beforetoggle",(()=>this.update())),se(this)}attributeChangedCallback(){this.update()}update(){this.isConnected&&(cancelAnimationFrame(b(this,ne,"f")),v(this,ne,requestAnimationFrame((()=>{const t=this.anchorElement;if(this.classList.toggle("not-anchored",!t),t){const{left:e,top:i}=X(this,t,this);this.style.top=`${i}px`,this.style.left=`${e}px`,this.style.bottom="auto",this.style.right="auto"}else this.style.top="0",this.style.left="0",this.style.bottom="0",this.style.right="0"})),"f"))}}var oe,re,ae;function le(t){t.body.style.getPropertyValue("--dialog-scrollgutter")||t.body.style.setProperty("--dialog-scrollgutter",window.innerWidth-t.body.clientWidth+"px")}function ce(t){t.body.classList.toggle("has-modal",Boolean(t.querySelector("dialog[open]"))),t.body.classList.toggle("has-modal-disable-scroll",Boolean(t.querySelector("dialog[open].Overlay--disableScroll")))}function de(t){const e=t.target,i=e?.closest("button");if(!i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;let n=i?.getAttribute("data-show-dialog-id");if(n){const e=document.getElementById(n);if(e instanceof HTMLDialogElement){le(e.ownerDocument),e.showModal(),t.preventDefault();let n=i,s=!1;for(;n;)n=n.parentElement?.closest("[popover]"),n&&"auto"===n.popover&&(n.classList.add("dialog-inside-popover-fix"),n.popover="manual",n.showPopover(),s=!0);s&&(e.addEventListener("close",(t=>t.stopImmediatePropagation()),{once:!0}),e.close(),e.showModal(),e.addEventListener("close",(()=>{for(const t of e.ownerDocument.querySelectorAll(".dialog-inside-popover-fix"))t.contains(e)&&(t.classList.remove("dialog-inside-popover-fix"),t.popover="auto",t.showPopover())}),{once:!0})),ce(e.ownerDocument)}}if(n=i.getAttribute("data-close-dialog-id")||i.getAttribute("data-submit-dialog-id"),n){const t=document.getElementById(n);t instanceof HTMLDialogElement&&t.open&&(t.close(),ce(t.ownerDocument))}}ie=new WeakMap,ne=new WeakMap,AnchoredPositionElement.observedAttributes=["align","side","anchor","alignment-offset","allow-out-of-bounds"],customElements.get("anchored-position")||(window.AnchoredPositionElement=AnchoredPositionElement,customElements.define("anchored-position",AnchoredPositionElement));class DialogHelperElement extends HTMLElement{constructor(){super(...arguments),oe.add(this),re.set(this,null)}get dialog(){return this.querySelector("dialog")}connectedCallback(){const{signal:t}=v(this,re,new AbortController,"f");document.addEventListener("click",de,!0),document.addEventListener("click",this,{signal:t}),this.dialog?.addEventListener("close",(()=>ce(this.dialog.ownerDocument)),{signal:t}),new MutationObserver((t=>{for(const e of t)e.target===this.dialog&&b(this,oe,"m",ae).call(this)})).observe(this,{subtree:!0,attributeFilter:["open"]}),b(this,oe,"m",ae).call(this)}disconnectedCallback(){b(this,re,"f")?.abort()}handleEvent(t){const e=t.target,i=this.dialog;if(e!==i||!i?.open)return;if(i.querySelector("form"))return;const n=i.getBoundingClientRect();n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width||i.close()}}re=new WeakMap,oe=new WeakSet,ae=function(){if(!this.dialog)return;const{ownerDocument:t}=this.dialog;this.dialog.matches("[open]:not(:modal)")&&(this.dialog.addEventListener("close",(t=>t.stopImmediatePropagation()),{once:!0}),this.dialog.close(),le(t),this.dialog.showModal()),ce(t)},window.customElements.get("dialog-helper")||(window.DialogHelperElement=DialogHelperElement,window.customElements.define("dialog-helper",DialogHelperElement));var he=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:i="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(i||"")}},ue=new WeakMap;function me(t,e,i){ue.set(t,setTimeout((()=>{ue.has(t)&&t.dispatchEvent(new he("toggle",{cancelable:!1,oldState:e,newState:i}))}),0))}var fe=globalThis.ShadowRoot||function(){},pe=globalThis.HTMLDialogElement||function(){},ge=new WeakMap,be=new WeakMap,ve=new WeakMap;function we(t){return ve.get(t)||"hidden"}var ye=new WeakMap;function Ee(t,e){return("auto"===t.popover||"manual"===t.popover)&&(!!t.isConnected&&((!e||"showing"===we(t))&&(!(!e&&"hidden"!==we(t))&&(!(t instanceof pe&&t.hasAttribute("open"))&&document.fullscreenElement!==t))))}function Ae(t){return t?Array.from(be.get(t.ownerDocument)||[]).indexOf(t)+1:0}function Le(t){const e=Se(t),i=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||Te(t))instanceof fe&&(t=t.host),t instanceof Document)return}}(t);return Ae(e)>Ae(i)?e:i}function ke(t){const e=be.get(t);for(const t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function Te(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?Te(t.parentNode):t}function Se(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===ve.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||Te(t))instanceof fe&&(t=t.host),t instanceof Document)return}}function Ce(t){return!(t.hidden||t instanceof fe)&&((!(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)||!t.disabled)&&(!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(!(t instanceof HTMLAnchorElement&&""===t.href)&&("number"==typeof t.tabIndex&&-1!==t.tabIndex))))}function xe(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let i=e.querySelector("[autofocus]");if(i)return i;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(i=e.querySelector("[autofocus]"),i)return i}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){if(Ce(s))return s;s=n.nextNode()}})(t)?.focus()}var Me=new WeakMap;function Ie(t){if(!Ee(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new he("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Ee(t,!1))return;let i=!1;if("auto"===t.popover){const i=t.getAttribute("popover");if(Oe(function(t){const e=new Map;let i=0;for(const n of be.get(t.ownerDocument)||[])e.set(n,i),i+=1;e.set(t,i),i+=1;let n=null;return function(t){const i=Se(t);if(null===i)return null;const s=e.get(i);(null===n||e.get(n)<s)&&(n=i)}(t.parentElement||Te(t)),n}(t)||e,!1,!0),i!==t.getAttribute("popover")||!Ee(t,!1))return}ke(e)||(i=!0),Me.delete(t);const n=e.activeElement;t.classList.add(":popover-open"),ve.set(t,"showing"),ge.has(e)||ge.set(e,new Set),ge.get(e).add(t),xe(t),"auto"===t.popover&&(be.has(e)||be.set(e,new Set),be.get(e).add(t),Re(ye.get(t),!0)),i&&n&&"auto"===t.popover&&Me.set(t,n),me(t,"closed","open")}function De(t,e=!1,i=!1){if(!Ee(t,!0))return;const n=t.ownerDocument;if("auto"===t.popover&&(Oe(t,e,i),!Ee(t,!0)))return;if(Re(ye.get(t),!1),ye.delete(t),i&&(t.dispatchEvent(new he("beforetoggle",{oldState:"open",newState:"closed"})),!Ee(t,!0)))return;ge.get(n)?.delete(t),be.get(n)?.delete(t),t.classList.remove(":popover-open"),ve.set(t,"hidden"),i&&me(t,"open","closed");const s=Me.get(t);s&&(Me.delete(t),e&&s.focus())}function Pe(t,e=!1,i=!1){let n=ke(t);for(;n;)De(n,e,i),n=ke(t)}function Oe(t,e,i){const n=t.ownerDocument||t;if(t instanceof Document)return Pe(n,e,i);let s=null,o=!1;for(const e of be.get(n)||[])if(e===t)o=!0;else if(o){s=e;break}if(!o)return Pe(n,e,i);for(;s&&"showing"===we(s)&&be.get(n)?.size;)De(s,e,i)}var He=new WeakMap;function Ne(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const i=e.ownerDocument;if(!ke(i))return;const n=Le(e);if(n&&"pointerdown"===t.type)He.set(i,n);else if("pointerup"===t.type){const t=He.get(i)===n;He.delete(i),t&&Oe(n||i,!1,!0)}}var Fe=new WeakMap;function Re(t,e=!1){if(!t)return;Fe.has(t)||Fe.set(t,t.getAttribute("aria-expanded"));const i=t.popoverTargetElement;if(i instanceof HTMLElement&&"auto"===i.popover)t.setAttribute("aria-expanded",String(e));else{const e=Fe.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var qe=globalThis.ShadowRoot||function(){};function We(t,e,i){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,i(t))}})}var Ve=/(^|[^\\]):popover-open\b/g;function Be(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}var $e,_e,Ue,je,Ke=null;function ze(t){const e=Be();if(null===Ke)try{(Ke=new CSSStyleSheet).replaceSync(e)}catch{Ke=!1}if(!1===Ke){const i=document.createElement("style");i.textContent=e,t instanceof Document?t.head.prepend(i):t.prepend(i)}else t.adoptedStyleSheets=[Ke,...t.adoptedStyleSheets]}"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(Ve,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||he,We(Document.prototype,"querySelector",t),We(Document.prototype,"querySelectorAll",t),We(Element.prototype,"querySelector",t),We(Element.prototype,"querySelectorAll",t),We(Element.prototype,"matches",t),We(Element.prototype,"closest",t),We(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){Ie(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){De(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===ve.get(this)&&void 0===t||!1===t?De(this,!0,!0):void 0!==t&&!0!==t||Ie(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const i=e.call(this,t);return ze(i),i}}});const i=HTMLElement.prototype.attachInternals;i&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=i.call(this);return t.shadowRoot&&ze(t.shadowRoot),t}}});const n=new WeakMap;function s(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=Te(this),i=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof qe)&&i&&e.getElementById(i)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}s(HTMLButtonElement),s(HTMLInputElement);const o=t=>{const e=t.composedPath(),i=e[0];if(!(i instanceof Element)||i?.shadowRoot)return;const n=Te(i);if(!(n instanceof qe||n instanceof Document))return;const s=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return s?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const i=we(e);"show"===t.popoverTargetAction&&"showing"===i||"hide"===t.popoverTargetAction&&"hidden"===i||("showing"===i?De(e,!0,!0):Ee(e,!1)&&(ye.set(e,t),Ie(e)))}(s),void t.preventDefault()):void 0},r=t=>{const e=t.key,i=t.target;t.defaultPrevented||!i||"Escape"!==e&&"Esc"!==e||Oe(i.ownerDocument,!0,!0)};(t=>{t.addEventListener("click",o),t.addEventListener("keydown",r),t.addEventListener("pointerdown",Ne),t.addEventListener("pointerup",Ne)})(document),ze(document)}();const Ye=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]'].map((t=>`:not([hidden]) > ${t}`)).join(", "),Ze=t=>t.textContent?.trim()[0].toLowerCase(),Ge=/^\S$/;class FocusGroupElement extends HTMLElement{constructor(){super(...arguments),$e.add(this),_e.set(this,null),Ue.set(this,null)}get nowrap(){return this.hasAttribute("nowrap")}set nowrap(t){this.toggleAttribute("nowrap",t)}get direction(){return"horizontal"===this.getAttribute("direction")?"horizontal":"vertical"}set direction(t){this.setAttribute("direction",`${t}`)}get retain(){return this.hasAttribute("retain")}set retain(t){this.toggleAttribute("retain",t)}get mnemonics(){return this.hasAttribute("mnemonics")}connectedCallback(){v(this,Ue,new AbortController,"f");const{signal:t}=b(this,Ue,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusin",this,{signal:t})}disconnectedCallback(){b(this,Ue,"f")?.abort()}handleEvent(t){const{direction:e,nowrap:i}=this;if("focusin"===t.type){if(this.retain&&t.target instanceof Element&&t.target.matches(Ye)){b(this,_e,"f")?.abort();const{signal:e}=v(this,_e,new AbortController,"f");for(const i of b(this,$e,"a",je)){i.setAttribute("tabindex",i===t.target?"0":"-1");const n=t.target.closest("[popover]");i===t.target&&"auto"===n?.popover&&n.closest("focus-group")===this&&n.addEventListener("toggle",(t=>{if(t.target instanceof Element&&"closed"===t.newState&&(b(this,_e,"f")?.abort(),i.setAttribute("tabindex","-1"),n.id)){const t=this.querySelector(`[popovertarget="${n.id}"]`);t?t.setAttribute("tabindex","0"):b(this,$e,"a",je)[0]?.setAttribute("tabindex","0")}}),{signal:e})}}}else if(t instanceof KeyboardEvent){const n=Array.from(b(this,$e,"a",je));let s=n.indexOf(t.target);const o=t.key;if("Up"===o||"ArrowUp"===o)"vertical"!==e&&"both"!==e||(s-=s<0?0:1,t.preventDefault());else if("Down"===o||"ArrowDown"===o)"vertical"!==e&&"both"!==e||(s+=1,t.preventDefault());else if("Left"===t.key||"ArrowLeft"===t.key)"horizontal"!==e&&"both"!==e||(s-=1,t.preventDefault());else if("Right"===t.key||"ArrowRight"===t.key)"horizontal"!==e&&"both"!==e||(s+=1,t.preventDefault());else if("Home"===t.key||"PageUp"===t.key)s=0,t.preventDefault();else if("End"===t.key||"PageDown"===t.key)s=n.length-1,t.preventDefault();else{if(!this.mnemonics||!Ge.test(o))return;{const e=o.toLowerCase(),r=s>0&&Ze(t.target)===e?s:0;s=n.findIndex(((t,i)=>i>r&&Ze(t)===e)),s<0&&!i&&(s=n.findIndex((t=>Ze(t)===e)))}}i&&s<0&&(s=0),!i&&s>=n.length&&(s=0);const r=n.at(Math.min(s,n.length-1));{let e=r;do{e=e.closest("[popover]:not(:popover-open)"),"auto"!==e?.popover||["ArrowRight","ArrowLeft"].includes(t.key)||e.showPopover(),e=e?.parentElement||null}while(e)}r?.focus()}}}_e=new WeakMap,Ue=new WeakMap,$e=new WeakSet,je=function(){return this.querySelectorAll(Ye)},customElements.get("focus-group")||(window.FocusGroupElement=FocusGroupElement,customElements.define("focus-group",FocusGroupElement));let Je=class ScrollableRegionElement extends HTMLElement{constructor(){super(...arguments),this.hasOverflow=!1,this.labelledBy=""}connectedCallback(){this.style.overflow="auto",this.observer=new ResizeObserver((t=>{for(const e of t)this.hasOverflow=e.target.scrollHeight>e.target.clientHeight||e.target.scrollWidth>e.target.clientWidth})),this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}attributeChangedCallback(t){"data-has-overflow"===t&&(this.hasOverflow?(this.setAttribute("aria-labelledby",this.labelledBy),this.setAttribute("role","region"),this.setAttribute("tabindex","0")):(this.removeAttribute("aria-labelledby"),this.removeAttribute("role"),this.removeAttribute("tabindex")))}};g([I],Je.prototype,"hasOverflow",void 0),g([I],Je.prototype,"labelledBy",void 0),Je=g([K("scrollable-region")],Je),window.ScrollableRegionElement=Je;const Xe=(t,e,i)=>{if(e())i();else{const n=new MutationObserver((()=>{e()&&(i(),n.disconnect())}));n.observe(t,{childList:!0,subtree:!0})}};var Qe,ti,ei,ii;function ni(t){document.activeElement!==t&&t?.focus()}const si=[];function oi(t){const e=t.target,i=e?.closest("button");if(!i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled"))return;let n=i?.getAttribute("data-show-dialog-id");if(n){t.stopPropagation();const e=document.getElementById(n);if(e instanceof ModalDialogElement)return e.openButton=i,e.show(),void t.preventDefault()}if(si.length&&(n=i.getAttribute("data-close-dialog-id")||i.getAttribute("data-submit-dialog-id"),n)){const t=document.getElementById(n);if(t instanceof ModalDialogElement){const e=si.findIndex((t=>t.id===n));si.splice(e,1),t.close(i.hasAttribute("data-submit-dialog-id"))}}}function ri(t){!(t instanceof KeyboardEvent&&"keydown"===t.type&&"Enter"===t.key)||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey||oi(t)}function ai(t){const e=t.target;if(e?.closest("button"))return;const i=si[si.length-1];if(!i)return;!e.closest(`#${i.getAttribute("id")}`)&&e.ownerDocument.addEventListener("mouseup",(t=>{t.target===e&&(si.pop(),i.close())}),{once:!0})}class ModalDialogElement extends HTMLElement{constructor(){super(...arguments),Qe.add(this),ti.set(this,new AbortController)}get open(){return this.hasAttribute("open")}set open(t){if(t){if(this.open)return;this.setAttribute("open",""),this.setAttribute("aria-disabled","false"),document.body.style.paddingRight=window.innerWidth-document.body.clientWidth+"px",document.body.style.overflow="hidden",b(this,Qe,"a",ei)?.classList.remove("Overlay--hidden"),b(this,ti,"f").signal.aborted&&v(this,ti,new AbortController,"f"),gt(this,this.querySelector("[autofocus]"),b(this,ti,"f").signal),si.push(this)}else{if(!this.open)return;this.removeAttribute("open"),this.setAttribute("aria-disabled","true"),b(this,Qe,"a",ei)?.classList.add("Overlay--hidden"),document.body.style.paddingRight="0",document.body.style.overflow="initial",b(this,ti,"f").abort();const t=this.openButton?.closest("details")||this.openButton?.closest("action-menu");ni(t?st(t):this.openButton),this.openButton=null}}get showButtons(){return document.querySelectorAll(`button[data-show-dialog-id='${this.id}']`)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),document.addEventListener("click",oi),document.addEventListener("keydown",ri),document.addEventListener("mousedown",ai),this.addEventListener("keydown",(t=>b(this,Qe,"m",ii).call(this,t)))}show(){this.open=!0}close(t=!1){if(!1===this.open)return;const e=new Event(t?"close":"cancel");this.dispatchEvent(e),this.open=!1}}var li,ci,di,hi,ui,mi,fi,pi;ti=new WeakMap,Qe=new WeakSet,ei=function(){return this.parentElement?.hasAttribute("data-modal-dialog-overlay")?this.parentElement:null},ii=function(t){if(t instanceof KeyboardEvent&&!t.isComposing&&this.open)switch(t.key){case"Escape":this.close(),t.preventDefault(),t.stopPropagation();break;case"Enter":t.target.getAttribute("data-close-dialog-id")===this.id&&t.stopPropagation();break}},window.customElements.get("modal-dialog")||(window.ModalDialogElement=ModalDialogElement,window.customElements.define("modal-dialog",ModalDialogElement));let gi=class NavListElement extends HTMLElement{constructor(){super(...arguments),li.add(this),ci.set(this,void 0)}connectedCallback(){this.topLevelList&&v(this,ci,new Y(this.topLevelList),"f")}disconnectedCallback(){this.topLevelList&&b(this,ci,"f").unobserve(this.topLevelList)}selectItemById(t){if(!t)return!1;const e=b(this,li,"m",di).call(this,t);return!!e&&(b(this,li,"m",mi).call(this,e),!0)}selectItemByHref(t){if(!t)return!1;const e=b(this,li,"m",hi).call(this,t);return!!e&&(b(this,li,"m",mi).call(this,e),!0)}selectItemByCurrentLocation(){const t=b(this,li,"m",ui).call(this);return!!t&&(b(this,li,"m",mi).call(this,t),!0)}expandItem(t){t.nextElementSibling?.removeAttribute("data-hidden"),t.setAttribute("aria-expanded","true")}collapseItem(t){t.nextElementSibling?.setAttribute("data-hidden",""),t.setAttribute("aria-expanded","false"),t.focus()}itemIsExpanded(t){return"A"===t?.tagName||"true"===t?.getAttribute("aria-expanded")}handleItemWithSubItemClick(t){const e=t.target;if(!(e instanceof HTMLElement))return;const i=e.closest("button");i&&(this.itemIsExpanded(i)?this.collapseItem(i):this.expandItem(i),t.stopPropagation())}handleItemWithSubItemKeydown(t){const e=t.currentTarget;if(!(e instanceof HTMLElement))return;let i=e.closest("button");if(!i){const t=e.getAttribute("aria-labelledby");if(!t)return;i=document.getElementById(t)}this.itemIsExpanded(i)&&"Escape"===t.key&&this.collapseItem(i),t.stopPropagation()}};var bi,vi,wi;ci=new WeakMap,li=new WeakSet,di=function(t){for(const e of this.items){if(e.classList.contains("ActionListItem--hasSubItem"))continue;if((e.getAttribute("data-item-id")?.split(" ")||[]).includes(t))return e}return null},hi=function(t){const e=this.querySelector(`.ActionListContent[href="${t}"]`);return e?e.closest(".ActionListItem"):null},ui=function(){return b(this,li,"m",hi).call(this,window.location.pathname)},mi=function(t){const e=this.querySelector(".ActionListItem--navActive");e&&b(this,li,"m",fi).call(this,e),t.classList.add("ActionListItem--navActive"),t.children.length>0&&t.children[0].setAttribute("aria-current","page");const i=b(this,li,"m",pi).call(this,t);i&&(this.expandItem(i),i.classList.add("ActionListContent--hasActiveSubItem"))},fi=function(t){t.classList.remove("ActionListItem--navActive"),t.children.length>0&&t.children[0].removeAttribute("aria-current");const e=b(this,li,"m",pi).call(this,t);e&&(this.collapseItem(e),e.classList.remove("ActionListContent--hasActiveSubItem"))},pi=function(t){if(!t.classList.contains("ActionListItem--subItem"))return null;const e=t.closest("li.ActionListItem--hasSubItem")?.querySelector("button.ActionListContent");return e||null},g([j],gi.prototype,"items",void 0),g([U],gi.prototype,"topLevelList",void 0),gi=g([K("nav-list")],gi);let yi=class NavListGroupElement extends HTMLElement{constructor(){super(...arguments),bi.add(this),wi.set(this,new Y(this))}connectedCallback(){this.setShowMoreItemState()}get showMoreDisabled(){return this.showMoreItem.hasAttribute("aria-disabled")}set showMoreDisabled(t){t?this.showMoreItem.setAttribute("aria-disabled","true"):this.showMoreItem.removeAttribute("aria-disabled"),this.showMoreItem.classList.toggle("disabled",t)}set currentPage(t){this.showMoreItem.setAttribute("data-current-page",t.toString())}get currentPage(){return parseInt(this.showMoreItem.getAttribute("data-current-page"))||1}get totalPages(){return parseInt(this.showMoreItem.getAttribute("data-total-pages"))||1}get paginationSrc(){return this.showMoreItem.getAttribute("src")||""}async showMore(t){if(t.preventDefault(),this.showMoreDisabled)return;let e;this.showMoreDisabled=!0;try{const t=new URL(this.paginationSrc,window.location.origin);this.currentPage++,t.searchParams.append("page",this.currentPage.toString());const i=await fetch(t);if(!i.ok)return;e=await i.text(),this.currentPage===this.totalPages&&(this.showMoreItem.hidden=!0)}catch(t){return this.showMoreDisabled=!1,void this.currentPage--}const i=b(this,bi,"m",vi).call(this,document,e);i?.querySelector("li > a")?.setAttribute("data-targets","nav-list-group.focusMarkers");const n=t.target.closest("button").getAttribute("data-list-id");document.getElementById(n).append(i),this.focusMarkers.pop()?.focus(),this.showMoreDisabled=!1}setShowMoreItemState(){this.showMoreItem&&(this.currentPage<this.totalPages?this.showMoreItem.hidden=!1:this.showMoreItem.hidden=!0)}};var Ei,Ai;wi=new WeakMap,bi=new WeakSet,vi=function(t,e){const i=t.createElement("template");return i.innerHTML=e,t.importNode(i.content,!0)},g([U],yi.prototype,"showMoreItem",void 0),g([j],yi.prototype,"focusMarkers",void 0),yi=g([K("nav-list-group")],yi),window.NavListGroupElement=yi;let Li=class SegmentedControlElement extends HTMLElement{constructor(){super(...arguments),Ei.add(this)}connectedCallback(){b(this,Ei,"m",Ai).call(this)}select(t){const e=t.currentTarget;for(const t of this.items)t.classList.remove("SegmentedControl-item--selected"),t.querySelector("[aria-current]")?.setAttribute("aria-current","false");e.closest("li.SegmentedControl-item")?.classList.add("SegmentedControl-item--selected"),e.setAttribute("aria-current","true")}};Ei=new WeakSet,Ai=function(){for(const t of this.querySelectorAll(".Button-label"))t.setAttribute("data-content",t.textContent||"")},g([j],Li.prototype,"items",void 0),Li=g([K("segmented-control")],Li),window.customElements.get("segmented-control")||(window.SegmentedControlElement=Li,window.customElements.define("segmented-control",Li));let ki=class ToggleSwitchElement extends HTMLElement{constructor(){super(...arguments),this.turbo=!1,this.toggling=!1}get src(){const t=this.getAttribute("src");if(!t)return null;const e=this.ownerDocument.createElement("a");return e.href=t,e.href}get csrf(){const t=this.querySelector("[data-csrf]");return this.getAttribute("data-csrf")||t instanceof HTMLInputElement&&t.value||null}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}isRemote(){return null!=this.src}async toggle(){if(!this.toggling&&(this.toggling=!0,!this.isDisabled())){if(!this.isRemote())return this.performToggle(),void(this.toggling=!1);this.performToggle(),this.setLoadingState();try{await this.submitForm()}catch(t){return void(t instanceof Error&&(this.setErrorState(t.message||"An error occurred, please try again."),this.performToggle()))}finally{this.toggling=!1}this.setSuccessState()}}turnOn(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","true"),this.classList.add("ToggleSwitch--checked"))}turnOff(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","false"),this.classList.remove("ToggleSwitch--checked"))}isOn(){return"true"===this.switch.getAttribute("aria-pressed")}isOff(){return!this.isOn()}isDisabled(){return null!=this.switch.getAttribute("disabled")}disable(){this.switch.setAttribute("disabled","disabled")}enable(){this.switch.removeAttribute("disabled")}performToggle(){this.isOn()?this.turnOff():this.turnOn()}setLoadingState(){this.errorIcon.setAttribute("hidden","hidden"),this.loadingSpinner.removeAttribute("hidden");const t=new CustomEvent("toggleSwitchLoading",{bubbles:!0});this.dispatchEvent(t)}setSuccessState(){const t=new CustomEvent("toggleSwitchSuccess",{bubbles:!0});this.dispatchEvent(t),this.setFinishedState(!1)}setErrorState(t){const e=new CustomEvent("toggleSwitchError",{bubbles:!0,detail:t});this.dispatchEvent(e),this.setFinishedState(!0)}setFinishedState(t){t&&this.errorIcon.removeAttribute("hidden"),this.loadingSpinner.setAttribute("hidden","hidden")}async submitForm(){const t=new FormData;if(this.csrf&&t.append(this.csrfField,this.csrf),t.append("value",this.isOn()?"1":"0"),!this.src)throw new Error("invalid src");let e;const i={"Requested-With":"XMLHttpRequest","X-Requested-With":"XMLHttpRequest"};this.turbo&&(i.Accept="text/vnd.turbo-stream.html");try{e=await fetch(this.src,{credentials:"same-origin",method:"POST",headers:i,body:t})}catch(t){throw new Error("A network error occurred, please try again.")}if(!e.ok)throw new Error(await e.text());const n=e.headers.get("Content-Type");window.Turbo&&this.turbo&&n?.startsWith("text/vnd.turbo-stream.html")&&window.Turbo.renderStreamMessage(await e.text())}};var Ti,Si,Ci,xi,Mi,Ii,Di,Pi,Oi,Hi,Ni,Fi;g([U],ki.prototype,"switch",void 0),g([U],ki.prototype,"loadingSpinner",void 0),g([U],ki.prototype,"errorIcon",void 0),g([I],ki.prototype,"turbo",void 0),ki=g([K("toggle-switch")],ki),window.customElements.get("toggle-switch")||(window.ToggleSwitchElement=ki,window.customElements.define("toggle-switch",ki));const Ri=(()=>{let t;return e=>t?e.matches(t):function(e){try{return t=":popover-open",e.matches(t)}catch{try{return t=":open",e.matches(":open")}catch{return t=".\\:popover-open",e.matches(".\\:popover-open")}}}(e)})(),qi="sr-only",Wi=["tooltip-n","tooltip-s","tooltip-e","tooltip-w","tooltip-ne","tooltip-se","tooltip-nw","tooltip-sw"];function Vi(t){for(const e of Ui)e!==t&&(Ri(e)?e.hidePopover():Ui.delete(e))}function Bi(){Vi()}function $i(t){setTimeout((()=>{for(const e of Ui)Ri(e)&&"focus"===e.showReason&&e.control!==t.target&&e.hidePopover()}),0)}const _i=new Set,Ui=new Set;class ToolTipElement extends HTMLElement{constructor(){super(...arguments),Ti.add(this),Si.set(this,void 0),Ci.set(this,"center"),xi.set(this,"outside-bottom"),Mi.set(this,!1),Ii.set(this,"mouse"),Di.set(this,!1)}styles(){return'\n :host {\n --tooltip-top: var(--tool-tip-position-top, 0);\n --tooltip-left: var(--tool-tip-position-left, 0);\n padding: var(--overlay-paddingBlock-condensed) var(--overlay-padding-condensed) !important;\n font: var(--text-body-shorthand-small);\n color: var(--tooltip-fgColor, var(--fgColor-onEmphasis)) !important;\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: break-word;\n white-space: pre;\n background: var(--tooltip-bgColor, var(--bgColor-emphasis)) !important;\n border-radius: var(--borderRadius-medium);\n border: 0 !important;\n opacity: 0;\n max-width: min(var(--overlay-width-small), 100vw);\n word-wrap: break-word;\n white-space: normal;\n width: max-content !important;\n inset: var(--tooltip-top) auto auto var(--tooltip-left) !important;\n overflow: visible !important;\n text-wrap: balance;\n }\n\n :host(:is(.tooltip-n, .tooltip-nw, .tooltip-ne)) {\n --tooltip-top: calc(var(--tool-tip-position-top, 0) - var(--overlay-offset, 0.25rem));\n --tooltip-left: var(--tool-tip-position-left);\n }\n\n :host(:is(.tooltip-s, .tooltip-sw, .tooltip-se)) {\n --tooltip-top: calc(var(--tool-tip-position-top, 0) + var(--overlay-offset, 0.25rem));\n --tooltip-left: var(--tool-tip-position-left);\n }\n\n :host(.tooltip-w) {\n --tooltip-top: var(--tool-tip-position-top);\n --tooltip-left: calc(var(--tool-tip-position-left, 0) - var(--overlay-offset, 0.25rem));\n }\n\n :host(.tooltip-e) {\n --tooltip-top: var(--tool-tip-position-top);\n --tooltip-left: calc(var(--tool-tip-position-left, 0) + var(--overlay-offset, 0.25rem));\n }\n\n :host:after{\n position: absolute;\n display: block;\n right: 0;\n left: 0;\n height: var(--overlay-offset, 0.25rem);\n content: "";\n }\n\n :host(.tooltip-s):after,\n :host(.tooltip-se):after,\n :host(.tooltip-sw):after {\n bottom: 100%\n }\n\n :host(.tooltip-n):after,\n :host(.tooltip-ne):after,\n :host(.tooltip-nw):after {\n top: 100%;\n }\n\n @keyframes tooltip-appear {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n :host(:popover-open),\n :host(:popover-open):before {\n animation-name: tooltip-appear;\n animation-duration: .1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n }\n\n :host(.\\:popover-open) {\n animation-name: tooltip-appear;\n animation-duration: .1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n }\n\n @media (forced-colors: active) {\n :host {\n outline: solid 1px transparent;\n }\n\n :host:before {\n display: none;\n }\n }\n '}get showReason(){return b(this,Ii,"f")}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get type(){return"label"===this.getAttribute("data-type")?"label":"description"}set type(t){this.setAttribute("data-type",t)}get direction(){return this.getAttribute("data-direction")||"s"}set direction(t){this.setAttribute("data-direction",t)}get control(){return this.ownerDocument.getElementById(this.htmlFor)}set hiddenFromView(t){t&&Ri(this)?this.hidePopover():t||Ri(this)||this.showPopover()}get hiddenFromView(){return!Ri(this)}connectedCallback(){if(_i.add(this),b(this,Ti,"m",Hi).call(this),b(this,Ti,"m",Ni).call(this),!this.shadowRoot){const t=this.attachShadow({mode:"open"});t.appendChild(document.createElement("style")).textContent=this.styles(),t.appendChild(document.createElement("slot"))}b(this,Ti,"m",Pi).call(this,!1),v(this,Mi,!0,"f"),b(this,Ti,"m",Oi).call(this)}disconnectedCallback(){_i.delete(this),Ui.delete(this),b(this,Si,"f")?.abort()}async handleEvent(t){if(!this.control)return;const e=Ri(this);"beforetoggle"===t.type&&t.currentTarget!==this&&v(this,Di,"open"===t.newState,"f");const i=("mouseenter"===t.type||"focus"===t.type&&(navigator.webdriver||this.control.matches(":focus-visible")))&&!b(this,Di,"f"),n="mouseleave"===t.type&&t.relatedTarget!==this.control&&t.relatedTarget!==this,s="keydown"===t.type&&"Escape"===t.key,o="mousedown"===t.type&&t.currentTarget===this.control,r="beforetoggle"===t.type&&t.currentTarget!==this&&"open"===t.newState,a=n||s||o||r;e&&s&&(t.stopImmediatePropagation(),t.preventDefault()),await Promise.resolve(),e||!i||Ri(this)?e&&a&&Ri(this)&&this.hidePopover():(v(this,Ii,"mouseenter"===t.type?"mouse":"focus","f"),this.showPopover()),"toggle"===t.type&&b(this,Ti,"m",Pi).call(this,"open"===t.newState)}attributeChangedCallback(t){this.isConnected&&("for"===t?b(this,Ti,"m",Oi).call(this):"id"===t||"data-type"===t?b(this,Ti,"m",Hi).call(this):"data-direction"===t&&b(this,Ti,"m",Ni).call(this))}}var ji,Ki;Si=new WeakMap,Ci=new WeakMap,xi=new WeakMap,Mi=new WeakMap,Ii=new WeakMap,Di=new WeakMap,Ti=new WeakSet,Pi=function(t){t?(Ui.add(this),this.classList.remove(qi),Vi(this),b(this,Ti,"m",Fi).call(this)):(Ui.delete(this),this.classList.remove(...Wi),this.classList.add(qi))},Oi=function(){if(!this.control)return;this.setAttribute("role","tooltip"),b(this,Si,"f")?.abort(),v(this,Si,new AbortController,"f");const{signal:t}=b(this,Si,"f");this.addEventListener("mouseleave",this,{signal:t}),this.addEventListener("toggle",this,{signal:t}),this.control.addEventListener("mouseenter",this,{signal:t}),this.control.addEventListener("mouseleave",this,{signal:t}),this.control.addEventListener("focus",this,{signal:t}),this.control.addEventListener("mousedown",this,{signal:t}),this.control.popoverTargetElement?.addEventListener("beforetoggle",this,{signal:t}),this.ownerDocument.addEventListener("focusout",Bi),this.ownerDocument.addEventListener("focusin",$i),this.ownerDocument.addEventListener("keydown",this,{signal:t,capture:!0})},Hi=function(){if(this.id&&this.control)if("label"===this.type){let t=this.control.getAttribute("aria-labelledby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-labelledby",t),this.setAttribute("aria-hidden","true")}else{let t=this.control.getAttribute("aria-describedby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-describedby",t)}},Ni=function(){this.classList.remove(...Wi);const t=this.direction;"n"===t?(v(this,Ci,"center","f"),v(this,xi,"outside-top","f")):"ne"===t?(v(this,Ci,"end","f"),v(this,xi,"outside-top","f")):"e"===t?(v(this,Ci,"center","f"),v(this,xi,"outside-right","f")):"se"===t?(v(this,Ci,"end","f"),v(this,xi,"outside-bottom","f")):"s"===t?(v(this,Ci,"center","f"),v(this,xi,"outside-bottom","f")):"sw"===t?(v(this,Ci,"start","f"),v(this,xi,"outside-bottom","f")):"w"===t?(v(this,Ci,"center","f"),v(this,xi,"outside-left","f")):"nw"===t&&(v(this,Ci,"start","f"),v(this,xi,"outside-top","f"))},Fi=function(){if(!this.control)return;if(!b(this,Mi,"f")||!Ri(this))return;const t=X(this,this.control,{side:b(this,xi,"f"),align:b(this,Ci,"f"),anchorOffset:0}),e=t.anchorSide,i=t.anchorAlign;this.style.setProperty("--tool-tip-position-top",`${t.top}px`),this.style.setProperty("--tool-tip-position-left",`${t.left}px`);let n="s";n="outside-left"===e?"w":"outside-right"===e?"e":"outside-top"===e?"center"===i?"n":"start"===i?"ne":"nw":"center"===i?"s":"start"===i?"se":"sw",this.classList.add(`tooltip-${n}`)},ToolTipElement.observedAttributes=["data-type","data-direction","id","for"],window.customElements.get("tool-tip")||(window.ToolTipElement=ToolTipElement,window.customElements.define("tool-tip",ToolTipElement));let zi=class XBannerElement extends HTMLElement{constructor(){super(...arguments),ji.add(this)}dismiss(){if("remove"===b(this,ji,"a",Ki)){const t=this.parentElement;if(!t)return;t.removeChild(this)}else this.hide();this.dispatchEvent(new CustomEvent("banner:dismiss"))}show(){this.style.setProperty("display","initial")}hide(){this.style.setProperty("display","none")}};ji=new WeakSet,Ki=function(){return this.getAttribute("data-dismiss-scheme")},g([U],zi.prototype,"titleText",void 0),zi=g([K("x-banner")],zi),window.customElements.get("x-banner")||(window.XBannerElement=zi,window.customElements.define("x-banner",zi));class Yi{constructor(t,e,{tabInsertsSuggestions:i,defaultFirstOption:n}={}){this.input=t,this.list=e,this.tabInsertsSuggestions=null==i||i,this.defaultFirstOption=null!=n&&n,this.isComposing=!1,e.id||(e.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=t=>function(t,e){if(t.shiftKey||t.metaKey||t.altKey)return;if(!e.ctrlBindings&&t.ctrlKey)return;if(e.isComposing)return;switch(t.key){case"Enter":Gi(e.input,e.list)&&t.preventDefault();break;case"Tab":e.tabInsertsSuggestions&&Gi(e.input,e.list)&&t.preventDefault();break;case"Escape":e.clearSelection();break;case"ArrowDown":e.navigate(1),t.preventDefault();break;case"ArrowUp":e.navigate(-1),t.preventDefault();break;case"n":e.ctrlBindings&&t.ctrlKey&&(e.navigate(1),t.preventDefault());break;case"p":e.ctrlBindings&&t.ctrlKey&&(e.navigate(-1),t.preventDefault());break;default:if(t.ctrlKey)break;e.clearSelection()}}(t,this),this.compositionEventHandler=t=>function(t,e){e.isComposing="compositionstart"===t.type;const i=document.getElementById(e.input.getAttribute("aria-controls")||"");if(!i)return;e.clearSelection()}(t,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",e.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",Zi),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",Zi)}indicateDefaultOption(){var t;this.defaultFirstOption&&(null===(t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(Ji)[0])||void 0===t||t.setAttribute("data-combobox-option-default","true"))}navigate(t=1){const e=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(Ji)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(Ji),n=i.indexOf(e);if(n===i.length-1&&1===t||0===n&&-1===t)return this.clearSelection(),void this.input.focus();let s=1===t?0:i.length-1;if(e&&n>=0){const e=n+t;e>=0&&e<i.length&&(s=e)}const o=i[s];if(o)for(const t of i)t.removeAttribute("data-combobox-option-default"),o===t?(this.input.setAttribute("aria-activedescendant",o.id),o.setAttribute("aria-selected","true"),Xi(this.list,o)):t.removeAttribute("aria-selected")}clearSelection(){this.input.removeAttribute("aria-activedescendant");for(const t of this.list.querySelectorAll('[aria-selected="true"]'))t.removeAttribute("aria-selected");this.indicateDefaultOption()}}function Zi(t){if(!(t.target instanceof Element))return;const e=t.target.closest('[role="option"]');e&&"true"!==e.getAttribute("aria-disabled")&&function(t,e){t.dispatchEvent(new CustomEvent("combobox-commit",{bubbles:!0,detail:e}))}(e,{event:t})}function Gi(t,e){const i=e.querySelector('[aria-selected="true"], [data-combobox-option-default="true"]');return!!i&&("true"===i.getAttribute("aria-disabled")||i.click(),!0)}function Ji(t){return!t.hidden&&!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}function Xi(t,e){(function(t,e){const i=t.scrollTop,n=i+t.clientHeight,s=e.offsetTop,o=s+e.clientHeight;return s>=i&&o<=n})(t,e)||(t.scrollTop=e.offsetTop)}const Qi=window.testScreenReaderDelay||100;class tn{constructor(t,e,i,n=!1){var s;if(this.container=t,this.input=e,this.results=i,this.combobox=new Yi(e,i,{defaultFirstOption:n}),this.feedback=t.getRootNode().getElementById(`${this.results.id}-feedback`),this.autoselectEnabled=n,this.clearButton=t.getRootNode().getElementById(`${this.input.id||this.input.name}-clear`),this.clientOptions=i.querySelectorAll("[role=option]"),this.feedback&&(this.feedback.setAttribute("aria-live","polite"),this.feedback.setAttribute("aria-atomic","true")),this.clearButton&&!this.clearButton.getAttribute("aria-label")){const t=document.querySelector(`label[for="${this.input.name}"]`);this.clearButton.setAttribute("aria-label","clear:"),this.clearButton.setAttribute("aria-labelledby",`${this.clearButton.id} ${(null==t?void 0:t.id)||""}`)}this.input.getAttribute("aria-expanded")||this.input.setAttribute("aria-expanded","false"),this.results.popover?this.results.matches(":popover-open")&&this.results.hidePopover():this.results.hidden=!0,this.results.getAttribute("aria-label")||this.results.setAttribute("aria-label","results"),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("spellcheck","false"),this.interactingWithList=!1,this.onInputChange=function(t,e=0){let i;return function(...n){clearTimeout(i),i=window.setTimeout((()=>{clearTimeout(i),t(...n)}),e)}}(this.onInputChange.bind(this),300),this.onResultsMouseDown=this.onResultsMouseDown.bind(this),this.onInputBlur=this.onInputBlur.bind(this),this.onInputFocus=this.onInputFocus.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onCommit=this.onCommit.bind(this),this.handleClear=this.handleClear.bind(this),this.input.addEventListener("keydown",this.onKeydown),this.input.addEventListener("focus",this.onInputFocus),this.input.addEventListener("blur",this.onInputBlur),this.input.addEventListener("input",this.onInputChange),this.results.addEventListener("mousedown",this.onResultsMouseDown),this.results.addEventListener("combobox-commit",this.onCommit),null===(s=this.clearButton)||void 0===s||s.addEventListener("click",this.handleClear)}destroy(){this.input.removeEventListener("keydown",this.onKeydown),this.input.removeEventListener("focus",this.onInputFocus),this.input.removeEventListener("blur",this.onInputBlur),this.input.removeEventListener("input",this.onInputChange),this.results.removeEventListener("mousedown",this.onResultsMouseDown),this.results.removeEventListener("combobox-commit",this.onCommit)}handleClear(t){t.preventDefault(),"true"===this.input.getAttribute("aria-expanded")&&(this.input.setAttribute("aria-expanded","false"),this.updateFeedbackForScreenReaders("Results hidden.")),this.input.value="",this.container.value="",this.input.focus(),this.input.dispatchEvent(new Event("change")),this.close()}onKeydown(t){if("Escape"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowUp"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowDown"===t.key&&!this.container.open){if(!this.input.value.trim())return;this.open(),t.stopPropagation(),t.preventDefault()}}onInputFocus(){this.interactingWithList||this.fetchResults()}onInputBlur(){this.interactingWithList||this.close()}onCommit({target:t}){const e=t;if(!(e instanceof HTMLElement))return;if(this.close(),e instanceof HTMLAnchorElement)return;const i=e.getAttribute("data-autocomplete-value")||e.textContent;this.updateFeedbackForScreenReaders(`${e.textContent||""} selected.`),this.container.value=i,i||this.updateFeedbackForScreenReaders("Results hidden.")}onResultsMouseDown(){this.interactingWithList=!0}onInputChange(){this.feedback&&this.feedback.textContent&&(this.feedback.textContent=""),this.container.removeAttribute("value"),this.fetchResults()}identifyOptions(){let t=0;for(const e of this.results.querySelectorAll('[role="option"]:not([id])'))e.id=`${this.results.id}-option-${t++}`}updateFeedbackForScreenReaders(t){setTimeout((()=>{this.feedback&&(this.feedback.textContent=t)}),Qi)}fetchResults(){const t=this.input.value.trim();if(!t&&!this.container.fetchOnEmpty)return void this.close();const e=this.container.src;if(!e)return;const i=new URL(e,window.location.href),n=new URLSearchParams(i.search.slice(1));n.append("q",t),i.search=n.toString(),this.container.dispatchEvent(new CustomEvent("loadstart")),this.container.fetchResult(i).then((t=>{this.results.innerHTML=t,this.identifyOptions(),this.combobox.indicateDefaultOption();const e=this.results.querySelectorAll('[role="option"]'),i=!!e.length||!!this.results.querySelectorAll('[data-no-result-found="true"]').length,n=e.length,[s]=e,o=null==s?void 0:s.textContent;this.autoselectEnabled&&o?this.updateFeedbackForScreenReaders(`${n} results. ${o} is the top result: Press Enter to activate.`):this.updateFeedbackForScreenReaders(`${n||"No"} results.`),i?this.open():this.close(),this.container.dispatchEvent(new CustomEvent("load")),this.container.dispatchEvent(new CustomEvent("loadend"))})).catch((()=>{this.container.dispatchEvent(new CustomEvent("error")),this.container.dispatchEvent(new CustomEvent("loadend"))}))}open(){(this.results.popover?!this.results.matches(":popover-open"):this.results.hidden)&&(this.combobox.start(),this.results.popover?this.results.showPopover():this.results.hidden=!1),this.container.open=!0,this.interactingWithList=!0}close(){(this.results.popover?this.results.matches(":popover-open"):!this.results.hidden)&&(this.combobox.stop(),this.results.popover?this.results.hidePopover():this.results.hidden=!0),this.container.open=!1,this.interactingWithList=!1}}var en,nn,sn,on,rn,an=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},ln=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i},cn=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]])}return i};const dn=globalThis.HTMLElement||null;class hn extends Event{constructor(t,e){var{relatedTarget:i}=e;super(t,cn(e,["relatedTarget"])),this.relatedTarget=i}}const un=new WeakMap;let mn=null;class AutoCompleteElement extends dn{constructor(){super(...arguments),en.add(this),nn.set(this,null),sn.set(this,null),rn.set(this,void 0)}static define(t="auto-complete",e=customElements){return e.define(t,this),this}static setCSPTrustedTypesPolicy(t){mn=null===t?t:Promise.resolve(t)}get forElement(){var t;if(null===(t=an(this,nn,"f"))||void 0===t?void 0:t.isConnected)return an(this,nn,"f");const e=this.getAttribute("for"),i=this.getRootNode();return e&&(i instanceof Document||i instanceof ShadowRoot)?i.getElementById(e):null}set forElement(t){ln(this,nn,t,"f"),this.setAttribute("for","")}get inputElement(){var t;return(null===(t=an(this,sn,"f"))||void 0===t?void 0:t.isConnected)?an(this,sn,"f"):this.querySelector("input")}set inputElement(t){ln(this,sn,t,"f"),an(this,en,"m",on).call(this)}connectedCallback(){this.isConnected&&(an(this,en,"m",on).call(this),new MutationObserver((()=>{un.get(this)||an(this,en,"m",on).call(this)})).observe(this,{subtree:!0,childList:!0}))}disconnectedCallback(){const t=un.get(this);t&&(t.destroy(),un.delete(this))}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get open(){return this.hasAttribute("open")}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}get fetchOnEmpty(){return this.hasAttribute("fetch-on-empty")}set fetchOnEmpty(t){this.toggleAttribute("fetch-on-empty",t)}async fetchResult(t){var e;null===(e=an(this,rn,"f"))||void 0===e||e.abort();const{signal:i}=ln(this,rn,new AbortController,"f"),n=await fetch(t.toString(),{signal:i,headers:{Accept:"text/fragment+html"}});if(!n.ok)throw new Error(await n.text());if(mn){return(await mn).createHTML(await n.text(),n)}return await n.text()}static get observedAttributes(){return["open","value","for"]}attributeChangedCallback(t,e,i){var n,s;if(e===i)return;const o=un.get(this);if(o)switch(this.forElement===(null===(n=un.get(this))||void 0===n?void 0:n.results)&&this.inputElement===(null===(s=un.get(this))||void 0===s?void 0:s.input)||an(this,en,"m",on).call(this),t){case"open":null===i?o.close():o.open();break;case"value":null!==i&&(o.input.value=i),this.dispatchEvent(new hn("auto-complete-change",{bubbles:!0,relatedTarget:o.input}))}}}nn=new WeakMap,sn=new WeakMap,rn=new WeakMap,en=new WeakSet,on=function(){var t;null===(t=un.get(this))||void 0===t||t.destroy();const{forElement:e,inputElement:i}=this;if(!e||!i)return;const n="true"===this.getAttribute("data-autoselect");un.set(this,new tn(this,i,e,n)),e.setAttribute("role","listbox")};const fn="undefined"!=typeof globalThis?globalThis:window;try{fn.AutocompleteElement=fn.AutoCompleteElement=AutoCompleteElement.define()}catch(t){if(!(fn.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}function pn(t){const e=function(t){return t.replace(/\u00A0/g," ")}(t);if("clipboard"in navigator)return navigator.clipboard.writeText(e);const i=document.body;if(!i)return Promise.reject(new Error);const n=function(t){const e=document.createElement("pre");return e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="5px",e.textContent=t,e}(e);return i.appendChild(n),function(t){const e=getSelection();if(null==e)return Promise.reject(new Error);e.removeAllRanges();const i=document.createRange();i.selectNodeContents(t),e.addRange(i),document.execCommand("copy"),e.removeAllRanges(),Promise.resolve()}(n),i.removeChild(n),Promise.resolve()}async function gn(t){const e=t.getAttribute("for"),i=t.getAttribute("value");function n(){t.dispatchEvent(new CustomEvent("clipboard-copy",{bubbles:!0}))}var s;if("true"!==t.getAttribute("aria-disabled"))if(i)await pn(i),n();else if(e){const i="getRootNode"in Element.prototype?t.getRootNode():t.ownerDocument;if(!(i instanceof Document||"ShadowRoot"in window&&i instanceof ShadowRoot))return;const o=i.getElementById(e);o&&(await(s=o,s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?pn(s.value):s instanceof HTMLAnchorElement&&s.hasAttribute("href")?pn(s.href):function(t){return pn(t.textContent||"")}(s)),n())}}function bn(t){const e=t.currentTarget;e instanceof HTMLElement&&gn(e)}function vn(t){if(" "===t.key||"Enter"===t.key){const e=t.currentTarget;e instanceof HTMLElement&&(t.preventDefault(),gn(e))}}function wn(t){t.currentTarget.addEventListener("keydown",vn)}function yn(t){t.currentTarget.removeEventListener("keydown",vn)}class ClipboardCopyElement extends HTMLElement{static define(t="clipboard-copy",e=customElements){return e.define(t,this),this}constructor(){super(),this.addEventListener("click",bn),this.addEventListener("focus",wn),this.addEventListener("blur",yn)}connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}const En="undefined"!=typeof globalThis?globalThis:window;try{En.ClipboardCopyElement=ClipboardCopyElement.define()}catch(t){if(!(En.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}function An(t){t.style.display="inline-block"}function Ln(t){t.style.display="none"}const kn=new WeakMap;document.addEventListener("clipboard-copy",(({target:t})=>{if(!(t instanceof HTMLElement))return;if(!t.hasAttribute("data-view-component"))return;const e=kn.get(t),i=t.parentNode?.querySelector("[data-clipboard-copy-feedback]"),n="Copied!";e?(clearTimeout(e),kn.delete(t)):(!function(t){const[e,i]=t.querySelectorAll(".octicon");e&&i&&(Ln(e),An(i))}(t),i&&(i.textContent===n?i.textContent=`${n} `:i.textContent=n)),kn.set(t,setTimeout((()=>{!function(t){const[e,i]=t.querySelectorAll(".octicon");e&&i&&(An(e),Ln(i))}(t),kn.delete(t)}),2e3))}));var Tn,Sn=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i},Cn=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};const xn="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(t){const e=[];for(const i of t)e.push({type:"element",value:i}),e.push({type:"literal",value:", "});return e.slice(0,-1)}},Mn=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],In={minimumIntegerDigits:2};class Dn{constructor(t,e={}){Tn.set(this,void 0);let i=String(e.style||"short");"long"!==i&&"short"!==i&&"narrow"!==i&&"digital"!==i&&(i="short");let n="digital"===i?"numeric":i;const s=e.hours||n;n="2-digit"===s?"numeric":s;const o=e.minutes||n;n="2-digit"===o?"numeric":o;const r=e.seconds||n;n="2-digit"===r?"numeric":r;const a=e.milliseconds||n;Sn(this,Tn,{locale:t,style:i,years:e.years||"digital"===i?"short":i,yearsDisplay:"always"===e.yearsDisplay?"always":"auto",months:e.months||"digital"===i?"short":i,monthsDisplay:"always"===e.monthsDisplay?"always":"auto",weeks:e.weeks||"digital"===i?"short":i,weeksDisplay:"always"===e.weeksDisplay?"always":"auto",days:e.days||"digital"===i?"short":i,daysDisplay:"always"===e.daysDisplay?"always":"auto",hours:s,hoursDisplay:"always"===e.hoursDisplay||"digital"===i?"always":"auto",minutes:o,minutesDisplay:"always"===e.minutesDisplay||"digital"===i?"always":"auto",seconds:r,secondsDisplay:"always"===e.secondsDisplay||"digital"===i?"always":"auto",milliseconds:a,millisecondsDisplay:"always"===e.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return Cn(this,Tn,"f")}formatToParts(t){const e=[],i=Cn(this,Tn,"f"),n=i.style,s=i.locale;for(const[o,r]of Mn){const a=t[o];if("auto"===i[`${o}Display`]&&!a)continue;const l=i[o],c="2-digit"===l?In:"numeric"===l?{}:{style:"unit",unit:r,unitDisplay:l};let d=new Intl.NumberFormat(s,c).format(a);"months"===o&&("narrow"===l||"narrow"===n&&d.endsWith("m"))&&(d=d.replace(/(\d+)m$/,"$1mo")),e.push(d)}return new xn(s,{type:"unit",style:"digital"===n?"short":n}).formatToParts(e)}format(t){return this.formatToParts(t).map((t=>t.value)).join("")}}Tn=new WeakMap;const Pn=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,On=["year","month","week","day","hour","minute","second","millisecond"];class Hn{constructor(t=0,e=0,i=0,n=0,s=0,o=0,r=0,a=0){this.years=t,this.months=e,this.weeks=i,this.days=n,this.hours=s,this.minutes=o,this.seconds=r,this.milliseconds=a,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new Hn(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(t){var e;if("string"==typeof t){const i=String(t).trim(),n=i.startsWith("-")?-1:1,s=null===(e=i.match(Pn))||void 0===e?void 0:e.slice(1).map((t=>(Number(t)||0)*n));return s?new Hn(...s):new Hn}if("object"==typeof t){const{years:e,months:i,weeks:n,days:s,hours:o,minutes:r,seconds:a,milliseconds:l}=t;return new Hn(e,i,n,s,o,r,a,l)}throw new RangeError("invalid duration")}static compare(t,e){const i=Date.now(),n=Math.abs(Nn(i,Hn.from(t)).getTime()-i),s=Math.abs(Nn(i,Hn.from(e)).getTime()-i);return n>s?-1:n<s?1:0}toLocaleString(t,e){return new Dn(t,e).format(this)}}function Nn(t,e){const i=new Date(t);return e.sign<0?(i.setUTCSeconds(i.getUTCSeconds()+e.seconds),i.setUTCMinutes(i.getUTCMinutes()+e.minutes),i.setUTCHours(i.getUTCHours()+e.hours),i.setUTCDate(i.getUTCDate()+7*e.weeks+e.days),i.setUTCMonth(i.getUTCMonth()+e.months),i.setUTCFullYear(i.getUTCFullYear()+e.years)):(i.setUTCFullYear(i.getUTCFullYear()+e.years),i.setUTCMonth(i.getUTCMonth()+e.months),i.setUTCDate(i.getUTCDate()+7*e.weeks+e.days),i.setUTCHours(i.getUTCHours()+e.hours),i.setUTCMinutes(i.getUTCMinutes()+e.minutes),i.setUTCSeconds(i.getUTCSeconds()+e.seconds)),i}function Fn(t,{relativeTo:e=Date.now()}={}){if(e=new Date(e),t.blank)return t;const i=t.sign;let n=Math.abs(t.years),s=Math.abs(t.months),o=Math.abs(t.weeks),r=Math.abs(t.days),a=Math.abs(t.hours),l=Math.abs(t.minutes),c=Math.abs(t.seconds),d=Math.abs(t.milliseconds);d>=900&&(c+=Math.round(d/1e3)),(c||l||a||r||o||s||n)&&(d=0),c>=55&&(l+=Math.round(c/60)),(l||a||r||o||s||n)&&(c=0),l>=55&&(a+=Math.round(l/60)),(a||r||o||s||n)&&(l=0),r&&a>=12&&(r+=Math.round(a/24)),!r&&a>=21&&(r+=Math.round(a/24)),(r||o||s||n)&&(a=0);const h=e.getFullYear(),u=e.getMonth(),m=e.getDate();if(r>=27||n+s+r){const t=new Date(e);t.setDate(1),t.setMonth(u+s*i+1),t.setDate(0);const a=Math.max(0,m-t.getDate()),l=new Date(e);l.setFullYear(h+n*i),l.setDate(m-a),l.setMonth(u+s*i),l.setDate(m-a+r*i);const c=l.getFullYear()-e.getFullYear(),d=l.getMonth()-e.getMonth(),f=Math.abs(Math.round((Number(l)-Number(e))/864e5))+a,p=Math.abs(12*c+d);f<27?(r>=6?(o+=Math.round(r/7),r=0):r=f,s=n=0):p<=11?(s=p,n=0):(s=0,n=c*i),(s||n)&&(r=0)}return n&&(s=0),o>=4&&(s+=Math.round(o/4)),(s||n)&&(o=0),r&&o&&!s&&!n&&(o+=Math.round(r/7),r=0),new Hn(n*i,s*i,o*i,r*i,a*i,l*i,c*i,d*i)}var Rn,qn,Wn,Vn,Bn,$n,_n,Un,jn,Kn,zn,Yn,Zn,Gn,Jn,Xn,Qn=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},ts=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i};const es=globalThis.HTMLElement||null,is=new Hn,ns=new Hn(0,0,0,0,0,1);class ss extends Event{constructor(t,e,i,n){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=t,this.newText=e,this.oldTitle=i,this.newTitle=n}}function os(t){if(!t.date)return 1/0;if("duration"===t.format||"elapsed"===t.format){const e=t.precision;if("second"===e)return 1e3;if("minute"===e)return 6e4}const e=Math.abs(Date.now()-t.date.getTime());return e<6e4?1e3:e<36e5?6e4:36e5}const rs=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(t){if(this.elements.has(t))return;this.elements.add(t);const e=t.date;if(e&&e.getTime()){const e=os(t),i=Date.now()+e;i<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),e),this.time=i)}}unobserve(t){this.elements.has(t)&&this.elements.delete(t)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let t=1/0;for(const e of this.elements)t=Math.min(t,os(e)),e.update();this.time=Math.min(36e5,t),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class RelativeTimeElement extends es{constructor(){super(...arguments),Rn.add(this),qn.set(this,!1),Wn.set(this,!1),Bn.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),Xn.set(this,null)}static define(t="relative-time",e=customElements){return e.define(t,this),this}get timeZone(){var t;return(null===(t=this.closest("[time-zone]"))||void 0===t?void 0:t.getAttribute("time-zone"))||this.ownerDocument.documentElement.getAttribute("time-zone")||void 0}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title","aria-hidden","time-zone"]}get onRelativeTimeUpdated(){return Qn(this,Xn,"f")}set onRelativeTimeUpdated(t){Qn(this,Xn,"f")&&this.removeEventListener("relative-time-updated",Qn(this,Xn,"f")),ts(this,Xn,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("relative-time-updated",t)}get second(){const t=this.getAttribute("second");if("numeric"===t||"2-digit"===t)return t}set second(t){this.setAttribute("second",t||"")}get minute(){const t=this.getAttribute("minute");if("numeric"===t||"2-digit"===t)return t}set minute(t){this.setAttribute("minute",t||"")}get hour(){const t=this.getAttribute("hour");if("numeric"===t||"2-digit"===t)return t}set hour(t){this.setAttribute("hour",t||"")}get weekday(){const t=this.getAttribute("weekday");return"long"===t||"short"===t||"narrow"===t?t:"datetime"===this.format&&""!==t?this.formatStyle:void 0}set weekday(t){this.setAttribute("weekday",t||"")}get day(){var t;const e=null!==(t=this.getAttribute("day"))&&void 0!==t?t:"numeric";if("numeric"===e||"2-digit"===e)return e}set day(t){this.setAttribute("day",t||"")}get month(){const t=this.format;let e=this.getAttribute("month");if(""!==e)return null!=e||(e="datetime"===t?this.formatStyle:"short"),"numeric"===e||"2-digit"===e||"short"===e||"long"===e||"narrow"===e?e:void 0}set month(t){this.setAttribute("month",t||"")}get year(){var t;const e=this.getAttribute("year");return"numeric"===e||"2-digit"===e?e:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(t=this.date)||void 0===t?void 0:t.getUTCFullYear())?void 0:"numeric"}set year(t){this.setAttribute("year",t||"")}get timeZoneName(){const t=this.getAttribute("time-zone-name");if("long"===t||"short"===t||"shortOffset"===t||"longOffset"===t||"shortGeneric"===t||"longGeneric"===t)return t}set timeZoneName(t){this.setAttribute("time-zone-name",t||"")}get prefix(){var t;return null!==(t=this.getAttribute("prefix"))&&void 0!==t?t:"datetime"===this.format?"":"on"}set prefix(t){this.setAttribute("prefix",t)}get threshold(){const t=this.getAttribute("threshold");return t&&(e=t,Pn.test(e))?t:"P30D";var e}set threshold(t){this.setAttribute("threshold",t)}get tense(){const t=this.getAttribute("tense");return"past"===t?"past":"future"===t?"future":"auto"}set tense(t){this.setAttribute("tense",t)}get precision(){const t=this.getAttribute("precision");return On.includes(t)?t:"micro"===this.format?"minute":"second"}set precision(t){this.setAttribute("precision",t)}get format(){const t=this.getAttribute("format");return"datetime"===t?"datetime":"relative"===t?"relative":"duration"===t?"duration":"micro"===t?"micro":"elapsed"===t?"elapsed":"auto"}set format(t){this.setAttribute("format",t)}get formatStyle(){const t=this.getAttribute("format-style");if("long"===t)return"long";if("short"===t)return"short";if("narrow"===t)return"narrow";const e=this.format;return"elapsed"===e||"micro"===e?"narrow":"datetime"===e?"short":"long"}set formatStyle(t){this.setAttribute("format-style",t)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(t){this.toggleAttribute("no-title",t)}get datetime(){return this.getAttribute("datetime")||""}set datetime(t){this.setAttribute("datetime",t)}get date(){const t=Date.parse(this.datetime);return Number.isNaN(t)?null:new Date(t)}set date(t){this.datetime=(null==t?void 0:t.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){rs.unobserve(this)}attributeChangedCallback(t,e,i){e!==i&&("title"===t&&ts(this,qn,null!==i&&(this.date&&Qn(this,Rn,"m",$n).call(this,this.date))!==i,"f"),Qn(this,Wn,"f")||"title"===t&&Qn(this,qn,"f")||ts(this,Wn,(async()=>{await Promise.resolve(),this.update(),ts(this,Wn,!1,"f")})(),"f"))}update(){const t=Qn(this,Bn,"f").textContent||this.textContent||"",e=this.getAttribute("title")||"";let i=e;const n=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!n)return void(Qn(this,Bn,"f").textContent=t);const s=Date.now();Qn(this,qn,"f")||(i=Qn(this,Rn,"m",$n).call(this,n)||"",i&&!this.noTitle&&this.setAttribute("title",i));const o=function(t,e="second",i=Date.now()){const n=t.getTime()-i;if(0===n)return new Hn;const s=Math.sign(n),o=Math.abs(n),r=Math.floor(o/1e3),a=Math.floor(r/60),l=Math.floor(a/60),c=Math.floor(l/24),d=Math.floor(c/30),h=Math.floor(d/12),u=On.indexOf(e)||On.length;return new Hn(u>=0?h*s:0,u>=1?(d-12*h)*s:0,0,u>=3?(c-30*d)*s:0,u>=4?(l-24*c)*s:0,u>=5?(a-60*l)*s:0,u>=6?(r-60*a)*s:0,u>=7?(o-1e3*r)*s:0)}(n,this.precision,s),r=Qn(this,Rn,"m",_n).call(this,o);let a=t;const l=Qn(this,Rn,"m",Jn).call(this,r);a=l?Qn(this,Rn,"m",Zn).call(this,n):"duration"===r?Qn(this,Rn,"m",Un).call(this,o):"relative"===r?Qn(this,Rn,"m",jn).call(this,o):Qn(this,Rn,"m",Kn).call(this,n),a?Qn(this,Rn,"m",Gn).call(this,a):this.shadowRoot===Qn(this,Bn,"f")&&this.textContent&&Qn(this,Rn,"m",Gn).call(this,this.textContent),a===t&&i===e||this.dispatchEvent(new ss(t,a,e,i));"relative"===r||"duration"===r||l&&(Qn(this,Rn,"m",zn).call(this,n)||Qn(this,Rn,"m",Yn).call(this,n))?rs.observe(this):rs.unobserve(this)}}qn=new WeakMap,Wn=new WeakMap,Bn=new WeakMap,Xn=new WeakMap,Rn=new WeakSet,Vn=function(){var t;const e=(null===(t=this.closest("[lang]"))||void 0===t?void 0:t.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang");try{return new Intl.Locale(null!=e?e:"").toString()}catch(t){return"default"}},$n=function(t){return new Intl.DateTimeFormat(Qn(this,Rn,"a",Vn),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:this.timeZone}).format(t)},_n=function(t){const e=this.format;if("datetime"===e)return"datetime";if("duration"===e)return"duration";if("elapsed"===e)return"duration";if("micro"===e)return"duration";if(("auto"===e||"relative"===e)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const e=this.tense;if("past"===e||"future"===e)return"relative";if(1===Hn.compare(t,this.threshold))return"relative"}return"datetime"},Un=function(t){const e=Qn(this,Rn,"a",Vn),i=this.format,n=this.formatStyle,s=this.tense;let o=is;"micro"===i?(t=Fn(t),o=ns,0===t.months&&("past"===this.tense&&-1!==t.sign||"future"===this.tense&&1!==t.sign)&&(t=ns)):("past"===s&&-1!==t.sign||"future"===s&&1!==t.sign)&&(t=o);const r=`${this.precision}sDisplay`;return t.blank?o.toLocaleString(e,{style:n,[r]:"always"}):t.abs().toLocaleString(e,{style:n})},jn=function(t){const e=new Intl.RelativeTimeFormat(Qn(this,Rn,"a",Vn),{numeric:"auto",style:this.formatStyle}),i=this.tense;"future"===i&&1!==t.sign&&(t=is),"past"===i&&-1!==t.sign&&(t=is);const[n,s]=function(t,e){const i=Fn(t,e);if(i.blank)return[0,"second"];for(const t of On){if("millisecond"===t)continue;const e=i[`${t}s`];if(e)return[e,t]}return[0,"second"]}(t);return"second"===s&&n<10?e.format(0,"millisecond"===this.precision?"second":this.precision):e.format(n,s)},Kn=function(t){const e=new Intl.DateTimeFormat(Qn(this,Rn,"a",Vn),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName,timeZone:this.timeZone});return`${this.prefix} ${e.format(t)}`.trim()},zn=function(t){const e=new Date,i=new Intl.DateTimeFormat(Qn(this,Rn,"a",Vn),{timeZone:this.timeZone,year:"numeric",month:"2-digit",day:"2-digit"});return i.format(e)===i.format(t)},Yn=function(t){const e=new Date,i=new Intl.DateTimeFormat(Qn(this,Rn,"a",Vn),{timeZone:this.timeZone,year:"numeric"});return i.format(e)===i.format(t)},Zn=function(t){const e={hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:this.timeZone};if(Qn(this,Rn,"m",zn).call(this,t)){let i=new Intl.RelativeTimeFormat(Qn(this,Rn,"a",Vn),{numeric:"auto"}).format(0,"day");i=i.charAt(0).toLocaleUpperCase(Qn(this,Rn,"a",Vn))+i.slice(1);return`${i} ${new Intl.DateTimeFormat(Qn(this,Rn,"a",Vn),e).format(t)}`}const i=Object.assign(Object.assign({},e),{day:"numeric",month:"short"});return Qn(this,Rn,"m",Yn).call(this,t)?new Intl.DateTimeFormat(Qn(this,Rn,"a",Vn),i).format(t):new Intl.DateTimeFormat(Qn(this,Rn,"a",Vn),Object.assign(Object.assign({},i),{year:"numeric"})).format(t)},Gn=function(t){if(this.hasAttribute("aria-hidden")&&"true"===this.getAttribute("aria-hidden")){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.textContent=t,Qn(this,Bn,"f").replaceChildren(e)}else Qn(this,Bn,"f").textContent=t},Jn=function(t){var e;return"duration"!==t&&("true"===this.ownerDocument.documentElement.getAttribute("data-prefers-absolute-time")||"true"===(null===(e=this.ownerDocument.body)||void 0===e?void 0:e.getAttribute("data-prefers-absolute-time")))};const as="undefined"!=typeof globalThis?globalThis:window;try{as.RelativeTimeElement=RelativeTimeElement.define()}catch(t){if(!(as.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}function ls(t){return Array.from(t.querySelectorAll('[role="tablist"] [role="tab"]')).filter((e=>e instanceof HTMLElement&&e.closest(t.tagName)===t))}class TabContainerElement extends HTMLElement{static define(t="tab-container",e=customElements){return e.define(t,this),this}connectedCallback(){this.addEventListener("keydown",(t=>{var e;const i=t.target;if(!(i instanceof HTMLElement))return;if(i.closest(this.tagName)!==this)return;if("tab"!==i.getAttribute("role")&&!i.closest('[role="tablist"]'))return;const n=ls(this),s=n.indexOf(n.find((t=>t.matches('[aria-selected="true"]')))),[o,r]="vertical"===(null===(e=i.closest('[role="tablist"]'))||void 0===e?void 0:e.getAttribute("aria-orientation"))?[["ArrowDown","ArrowRight"],["ArrowUp","ArrowLeft"]]:[["ArrowRight"],["ArrowLeft"]];if(o.some((e=>t.code===e))){let t=s+1;t>=n.length&&(t=0),this.selectTab(t)}else if(r.some((e=>t.code===e))){let t=s-1;t<0&&(t=n.length-1),this.selectTab(t)}else"Home"===t.code?(this.selectTab(0),t.preventDefault()):"End"===t.code&&(this.selectTab(n.length-1),t.preventDefault())})),this.addEventListener("click",(t=>{const e=ls(this);if(!(t.target instanceof Element))return;if(t.target.closest(this.tagName)!==this)return;const i=t.target.closest('[role="tab"]');if(!(i instanceof HTMLElement&&i.closest('[role="tablist"]')))return;const n=e.indexOf(i);this.selectTab(n)}));for(const t of ls(this))t.hasAttribute("aria-selected")||t.setAttribute("aria-selected","false"),t.hasAttribute("tabindex")||("true"===t.getAttribute("aria-selected")?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1"))}selectTab(t){const e=ls(this),i=Array.from(this.querySelectorAll('[role="tabpanel"]')).filter((t=>t.closest(this.tagName)===this));if(t>e.length-1)throw new RangeError(`Index "${t}" out of bounds`);const n=e[t],s=i[t];if(!!this.dispatchEvent(new CustomEvent("tab-container-change",{bubbles:!0,cancelable:!0,detail:{relatedTarget:s}}))){for(const t of e)t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");for(const t of i)t.hidden=!0,t.hasAttribute("tabindex")||t.hasAttribute("data-tab-container-no-tabstop")||t.setAttribute("tabindex","0");n.setAttribute("aria-selected","true"),n.setAttribute("tabindex","0"),n.focus(),s.hidden=!1,this.dispatchEvent(new CustomEvent("tab-container-changed",{bubbles:!0,detail:{relatedTarget:s}}))}}}const cs="undefined"!=typeof globalThis?globalThis:window;try{cs.TabContainerElement=TabContainerElement.define()}catch(t){if(!(cs.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}let ds=class PrimerMultiInputElement extends HTMLElement{activateField(t){const e=this.findField(t);if(e){for(const t of this.fields)t!==e&&(t.setAttribute("disabled","disabled"),t.setAttribute("hidden","hidden"),t.parentElement?.setAttribute("hidden","hidden"));e.removeAttribute("disabled"),e.removeAttribute("hidden"),e.parentElement?.removeAttribute("hidden")}}findField(t){for(const e of this.fields)if(e.getAttribute("data-name")===t)return e;return null}};function hs(t,e=0,{start:i=!1,middle:n=!1,once:s=!1}={}){return function(t,e=0,{start:i=!0,middle:n=!0,once:s=!1}={}){let o,r=0,a=!1;function l(...c){if(a)return;const d=Date.now()-r;r=Date.now(),i?(i=!1,t.apply(this,c),s&&l.cancel()):(n&&d<e||!n)&&(clearTimeout(o),o=setTimeout((()=>{r=Date.now(),t.apply(this,c),s&&l.cancel()}),n?e-d:e))}return l.cancel=()=>{clearTimeout(o),a=!0},l}(t,e,{start:i,middle:n,once:s})}g([j],ds.prototype,"fields",void 0),ds=g([K("primer-multi-input")],ds),window.customElements.get("primer-multi-input")||(Object.assign(window,{PrimerMultiInputElement:ds}),window.customElements.define("primer-multi-input",ds));var us,ms,fs=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},ps=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i};!function(t){t.GET="GET",t.POST="POST"}(ms||(ms={}));const gs=new WeakMap;class bs extends Event{constructor(t){super(`auto-check-${t}`,{bubbles:!0}),this.phase=t}get detail(){return this}}class vs extends bs{constructor(t,e=""){super(t),this.phase=t,this.message=e,this.setValidity=t=>{this.message=t}}}class ws extends bs{constructor(){super("complete")}}class ys extends bs{constructor(t){super("success"),this.response=t}}class Es extends vs{constructor(){super("start","Verifying…")}}class As extends vs{constructor(t){super("error","Validation failed"),this.response=t}}class Ls extends bs{constructor(t){super("send"),this.body=t}}class AutoCheckElement extends HTMLElement{constructor(){super(...arguments),us.set(this,null)}static define(t="auto-check",e=customElements){return e.define(t,this),this}get onloadend(){return fs(this,us,"f")}set onloadend(t){fs(this,us,"f")&&this.removeEventListener("loadend",fs(this,us,"f")),ps(this,us,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("loadend",t)}connectedCallback(){const t=this.input;if(!t)return;const e=hs(Ss.bind(null,this),300),i={check:e,controller:null};gs.set(this,i);const n=ks.bind(null,e);t.addEventListener("blur",n),t.addEventListener("input",n),t.addEventListener("triggervalidation",n),t.autocomplete="off",t.spellcheck=!1}disconnectedCallback(){const t=this.input;if(!t)return;const e=gs.get(this);e&&(gs.delete(this),t.removeEventListener("input",Ts),t.removeEventListener("input",e.check),t.setCustomValidity(""))}attributeChangedCallback(t){if("required"===t){const t=this.input;if(!t)return;t.required=this.required}}triggerValidation(){const t=this.input;t&&t.dispatchEvent(new CustomEvent("triggervalidation"))}static get observedAttributes(){return["required"]}get input(){return this.querySelector("input")}get src(){const t=this.getAttribute("src");if(!t)return"";const e=this.ownerDocument.createElement("a");return e.href=t,e.href}set src(t){this.setAttribute("src",t)}get csrf(){const t=this.querySelector("[data-csrf]");return this.getAttribute("csrf")||t instanceof HTMLInputElement&&t.value||""}set csrf(t){this.setAttribute("csrf",t)}get required(){return this.hasAttribute("required")}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}set csrfField(t){this.setAttribute("csrf-field",t)}get httpMethod(){return ms[this.getAttribute("http-method")]||"POST"}set validateOnKeystroke(t){t?this.setAttribute("validate-on-keystroke",""):this.removeAttribute("validate-on-keystroke")}get validateOnKeystroke(){const t=this.getAttribute("validate-on-keystroke");return"true"===t||""===t}}function ks(t,e){const i=e.currentTarget;if(!(i instanceof HTMLInputElement))return;const n=i.closest("auto-check");n instanceof AutoCheckElement&&("input"===e.type&&n.setAttribute("dirty",""),0!==i.value.length&&("blur"===e.type&&!n.validateOnKeystroke&&n.hasAttribute("dirty")||"input"===e.type&&n.validateOnKeystroke||"triggervalidation"===e.type)&&(Ts(e),t()))}function Ts(t){const e=t.currentTarget;if(!(e instanceof HTMLInputElement))return;const i=e.closest("auto-check");if(!(i instanceof AutoCheckElement))return;const n=i.src,s=i.csrf,o=i.httpMethod,r=gs.get(i);if(!n||"POST"===o&&!s||!r)return;const a=new Es;e.dispatchEvent(a),i.required&&e.setCustomValidity(a.message)}async function Ss(t){const e=t.input;if(!e)return;const i=t.csrfField,n=t.src,s=t.csrf,o=gs.get(t),r=t.httpMethod;if(!n||"POST"===r&&!s||!o)return void(t.required&&e.setCustomValidity(""));if(!e.value.trim())return void(t.required&&e.setCustomValidity(""));const a=new FormData,l=new URL(n,window.location.origin);"POST"===r?(a.append(i,s),a.append("value",e.value)):l.search=new URLSearchParams({value:e.value}).toString(),e.dispatchEvent(new Ls(a)),o.controller?o.controller.abort():t.dispatchEvent(new Event("loadstart")),o.controller="AbortController"in window?new AbortController:{signal:null,abort(){}},t.removeAttribute("dirty");try{const i=await async function(t,e,i){"GET"===i.method&&delete i.body;try{const n=await fetch(e,i);return t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend")),n}catch(e){throw"AbortError"!==e.name&&(t.dispatchEvent(new Event("error")),t.dispatchEvent(new Event("loadend"))),e}}(t,l.toString(),{credentials:"same-origin",signal:o.controller.signal,method:r,body:a});if(i.ok)t.required&&e.setCustomValidity(""),t.validateOnKeystroke=!1,e.dispatchEvent(new ys(i.clone()));else{t.validateOnKeystroke=!0;const n=new As(i.clone());e.dispatchEvent(n),t.required&&e.setCustomValidity(n.message)}o.controller=null,e.dispatchEvent(new ws)}catch(t){"AbortError"!==t.name&&(o.controller=null,e.dispatchEvent(new ws))}}us=new WeakMap;const Cs="undefined"!=typeof globalThis?globalThis:window;try{Cs.AutoCheckElement=AutoCheckElement.define()}catch(t){if(!(Cs.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name||t instanceof ReferenceError))throw t}class xs{constructor(t,e,i){this.inputElement=t,this.characterLimitElement=e,this.characterLimitSrElement=i,this.SCREEN_READER_DELAY=500,this.announceTimeout=null,this.isInitialLoad=!0}initialize(t){this.inputElement.addEventListener("keyup",(()=>this.updateCharacterCount()),t?{signal:t}:void 0),this.inputElement.addEventListener("paste",(()=>setTimeout((()=>this.updateCharacterCount()),50)),t?{signal:t}:void 0),this.updateCharacterCount(),this.isInitialLoad=!1}cleanup(){this.announceTimeout&&clearTimeout(this.announceTimeout)}pluralize(t,e){return 1===t?e:`${e}s`}updateCharacterCount(){if(!this.characterLimitElement)return;const t=this.characterLimitElement.getAttribute("data-max-length");if(!t)return;const e=parseInt(t,10)-this.inputElement.value.length;let i="";if(e>=0){i=`${e} ${this.pluralize(e,"character")} remaining`;const t=this.characterLimitElement.querySelector(".FormControl-caption-text");t&&(t.textContent=i),this.clearError()}else{const t=-e;i=`${t} ${this.pluralize(t,"character")} over`;const n=this.characterLimitElement.querySelector(".FormControl-caption-text");n&&(n.textContent=i),this.setError()}this.isInitialLoad||this.announceToScreenReader(i)}announceToScreenReader(t){this.announceTimeout&&clearTimeout(this.announceTimeout),this.announceTimeout=window.setTimeout((()=>{this.characterLimitSrElement&&(this.characterLimitSrElement.textContent=t)}),this.SCREEN_READER_DELAY)}setError(){this.inputElement.setAttribute("invalid","true"),this.inputElement.setAttribute("aria-invalid","true"),this.characterLimitElement.classList.add("fgColor-danger");const t=this.characterLimitElement.querySelector(".FormControl-caption-icon");t&&t.removeAttribute("hidden")}clearError(){this.inputElement.removeAttribute("invalid"),this.inputElement.removeAttribute("aria-invalid"),this.characterLimitElement.classList.remove("fgColor-danger");const t=this.characterLimitElement.querySelector(".FormControl-caption-icon");t&&t.setAttribute("hidden","")}}var Ms,Is;let Ds=class PrimerTextFieldElement extends HTMLElement{constructor(){super(...arguments),Ms.set(this,void 0),Is.set(this,null)}connectedCallback(){b(this,Ms,"f")?.abort();const{signal:t}=v(this,Ms,new AbortController,"f");this.addEventListener("auto-check-success",(async t=>{const e=await t.detail.response.text();e&&e.length>0?this.setSuccess(e):this.clearError()}),{signal:t}),this.addEventListener("auto-check-error",(async t=>{const e=await t.detail.response.text();this.setError(e)}),{signal:t}),this.characterLimitElement&&(v(this,Is,new xs(this.inputElement,this.characterLimitElement,this.characterLimitSrElement),"f"),b(this,Is,"f").initialize(t))}disconnectedCallback(){b(this,Ms,"f")?.abort(),b(this,Is,"f")?.cleanup()}clearContents(){this.inputElement.value="",this.inputElement.focus(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))}clearError(){this.inputElement.removeAttribute("invalid"),this.validationElement.hidden=!0,this.validationMessageElement.replaceChildren()}setValidationMessage(t){const e=document.createElement("template");e.innerHTML=t;const i=document.importNode(e.content,!0);this.validationMessageElement.replaceChildren(i)}toggleValidationStyling(t){t?this.validationElement.classList.remove("FormControl-inlineValidation--success"):this.validationElement.classList.add("FormControl-inlineValidation--success"),this.validationSuccessIcon.hidden=t,this.validationErrorIcon.hidden=!t,this.inputElement.setAttribute("invalid",t?"true":"false")}setSuccess(t){this.toggleValidationStyling(!1),this.setValidationMessage(t),this.validationElement.hidden=!1}setError(t){this.toggleValidationStyling(!0),this.setValidationMessage(t),this.validationElement.hidden=!1}showLeadingSpinner(){this.leadingSpinner?.removeAttribute("hidden"),this.leadingVisual?.setAttribute("hidden","")}hideLeadingSpinner(){this.leadingSpinner?.setAttribute("hidden",""),this.leadingVisual?.removeAttribute("hidden")}};var Ps;Ms=new WeakMap,Is=new WeakMap,g([U],Ds.prototype,"inputElement",void 0),g([U],Ds.prototype,"validationElement",void 0),g([U],Ds.prototype,"validationMessageElement",void 0),g([U],Ds.prototype,"validationSuccessIcon",void 0),g([U],Ds.prototype,"validationErrorIcon",void 0),g([U],Ds.prototype,"leadingVisual",void 0),g([U],Ds.prototype,"leadingSpinner",void 0),g([U],Ds.prototype,"characterLimitElement",void 0),g([U],Ds.prototype,"characterLimitSrElement",void 0),Ds=g([K("primer-text-field")],Ds);let Os=class PrimerTextAreaElement extends HTMLElement{constructor(){super(...arguments),Ps.set(this,null)}connectedCallback(){this.characterLimitElement&&(v(this,Ps,new xs(this.inputElement,this.characterLimitElement,this.characterLimitSrElement),"f"),b(this,Ps,"f").initialize())}disconnectedCallback(){b(this,Ps,"f")?.cleanup()}};Ps=new WeakMap,g([U],Os.prototype,"inputElement",void 0),g([U],Os.prototype,"characterLimitElement",void 0),g([U],Os.prototype,"characterLimitSrElement",void 0),Os=g([K("primer-text-area")],Os),window.customElements.get("primer-text-area")||(Object.assign(window,{PrimerTextAreaElement:Os}),window.customElements.define("primer-text-area",Os));let Hs=class ToggleSwitchInputElement extends HTMLElement{connectedCallback(){this.addEventListener("toggleSwitchError",(t=>{this.validationMessageElement.textContent=t.detail,this.validationElement.removeAttribute("hidden")})),this.addEventListener("toggleSwitchSuccess",(()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")})),this.addEventListener("toggleSwitchLoading",(()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")}))}};var Ns,Fs,Rs,qs,Ws,Vs,Bs,$s,_s,Us,js,Ks,zs,Ys,Zs,Gs,Js,Xs,Qs,to,eo;g([U],Hs.prototype,"validationElement",void 0),g([U],Hs.prototype,"validationMessageElement",void 0),Hs=g([K("toggle-switch-input")],Hs);const io=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]'],no=io.map((t=>`:not([hidden]) > ${t}`));let so=class ActionMenuElement extends HTMLElement{constructor(){super(...arguments),Ns.add(this),Fs.set(this,void 0),Rs.set(this,""),qs.set(this,""),Ws.set(this,!1),Vs.set(this,void 0)}get selectVariant(){return this.getAttribute("data-select-variant")}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){const t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get popoverElement(){return this.invokerElement?.popoverTargetElement||null}get invokerElement(){const t=this.querySelector("[role=menu]")?.id;if(!t)return null;for(const e of this.querySelectorAll("[aria-controls]"))if(e.getAttribute("aria-controls")===t)return e;return null}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){const t=this.querySelectorAll("[aria-checked=true]"),e=[];for(const i of t){const t=i.querySelector(".ActionListItem-label");e.push({label:t?.textContent,value:i?.getAttribute("data-value"),element:i})}return e}connectedCallback(){const{signal:t}=v(this,Fs,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusout",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.popoverElement?.addEventListener("toggle",this,{signal:t}),b(this,Ns,"m",Qs).call(this),b(this,Ns,"m",to).call(this),b(this,Ns,"m",Bs).call(this),this.includeFragment&&this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t});const e=()=>{b(this,Ns,"m",Xs).call(this)&&this.overlay?.update()};v(this,Vs,new IntersectionObserver((t=>{for(const i of t){i.target===this.invokerElement&&(i.isIntersecting?window.addEventListener("scroll",e,{capture:!0}):window.removeEventListener("scroll",e,{capture:!0}))}})),"f"),Xe(this,(()=>Boolean(this.invokerElement)),(()=>b(this,Vs,"f").observe(this.invokerElement))),this.includeFragment||this.setAttribute("data-ready","true")}disconnectedCallback(){b(this,Fs,"f").abort()}handleEvent(t){const e=this.invokerElement?.contains(t.target),i=b(this,Ns,"m",Us).call(this,t);if("toggle"===t.type&&"open"===t.newState&&window.requestAnimationFrame((()=>{b(this,Ns,"a",eo)?.focus()})),e&&"mousedown"===t.type)return void v(this,Ws,!0,"f");if("mousedown"===t.type)return void t.preventDefault();if(e&&i)return b(this,Ns,"m",js).call(this,t),void v(this,Ws,!1,"f");if("focusout"===t.type){if(b(this,Ws,"f"))return;return void requestAnimationFrame((()=>{this.contains(document.activeElement)&&document.activeElement!==this.invokerElement||b(this,Ns,"m",Zs).call(this)}))}const n=t.target.closest(no.join(","));if(null!==n&&i){if(b(this,Ns,"m",$s).call(this,t))return;const e=n.closest("[data-show-dialog-id]");if(e){const i=this.ownerDocument.getElementById(e.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(e))return void b(this,Ns,"m",Ks).call(this,t,i)}return b(this,Ns,"m",_s).call(this,t)&&(t.preventDefault(),n.click()),void b(this,Ns,"m",zs).call(this,n)}"include-fragment-replaced"===t.type&&b(this,Ns,"m",Ys).call(this)}get items(){return Array.from(this.querySelectorAll(no.join(",")))}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),t.querySelector(".ActionListContent").setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),t.querySelector(".ActionListContent").removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}hideItem(t){t&&t.setAttribute("hidden","hidden")}showItem(t){t&&t.removeAttribute("hidden")}isItemChecked(t){return!!t&&"true"===t.querySelector(".ActionListContent").getAttribute("aria-checked")}checkItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){const e=t.querySelector(".ActionListContent");"true"===e.getAttribute("aria-checked")||b(this,Ns,"m",zs).call(this,e)}}uncheckItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){const e=t.querySelector(".ActionListContent");"true"===e.getAttribute("aria-checked")&&b(this,Ns,"m",zs).call(this,e)}}};Fs=new WeakMap,Rs=new WeakMap,qs=new WeakMap,Ws=new WeakMap,Vs=new WeakMap,Ns=new WeakSet,Bs=function(){const{signal:t}=b(this,Fs,"f");for(const e of this.querySelectorAll(io.join(",")))e.addEventListener("click",b(this,Ns,"m",$s).bind(this),{signal:t}),e.addEventListener("keydown",b(this,Ns,"m",$s).bind(this),{signal:t})},$s=function(t){if(!b(this,Ns,"m",Us).call(this,t))return!1;const e=t.target.closest(no.join(","));return!!e&&(!!e.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0))},_s=function(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},Us=function(t){return t instanceof MouseEvent&&"click"===t.type||b(this,Ns,"m",_s).call(this,t)},js=function(t){t.preventDefault(),t.stopPropagation(),b(this,Ns,"m",Xs).call(this)?b(this,Ns,"m",Js).call(this):b(this,Ns,"m",Gs).call(this)},Ks=function(t,e){this.contains(e)&&(this.querySelector(".ActionListWrap").style.display="none");const i=new AbortController,{signal:n}=i,s=()=>{i.abort(),this.contains(e)&&(this.querySelector(".ActionListWrap").style.display="",b(this,Ns,"m",Xs).call(this)&&b(this,Ns,"m",Js).call(this));const t=this.ownerDocument.activeElement,n=this.ownerDocument.activeElement===this.ownerDocument.body,s=this.contains(t),o=e.contains(t);(n||s||o)&&setTimeout((()=>{const e=this.ownerDocument.activeElement;e!==t&&e!==this.ownerDocument.body||this.invokerElement?.focus()}),0)};e.addEventListener("close",s,{signal:n}),e.addEventListener("cancel",s,{signal:n})},zs=function(t){if("multiple"!==this.selectVariant&&setTimeout((()=>{b(this,Ns,"m",Xs).call(this)&&b(this,Ns,"m",Js).call(this)})),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;const e="true"!==t.getAttribute("aria-checked");if("single"===this.selectVariant){e&&t.setAttribute("aria-checked","true");for(const e of this.querySelectorAll("[aria-checked]"))e!==t&&e.setAttribute("aria-checked","false");b(this,Ns,"m",Qs).call(this)}else t.setAttribute("aria-checked",`${e}`);b(this,Ns,"m",to).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:t.parentElement,checked:this.isItemChecked(t.parentElement)}}))},Ys=function(){b(this,Ns,"a",eo)?.focus(),b(this,Ns,"m",Bs).call(this),this.setAttribute("data-ready","true")},Zs=function(){b(this,Ns,"m",Js).call(this)},Gs=function(){this.popoverElement?.showPopover()},Js=function(){this.popoverElement?.hidePopover()},Xs=function(){return this.popoverElement?.matches(":popover-open")},Qs=function(){if("single"!==this.selectVariant)return;if(!this.dynamicLabel)return;const t=this.invokerLabel;if(!t)return;v(this,Rs,b(this,Rs,"f")||t.textContent||"","f");const e=this.querySelector("[aria-checked=true] .ActionListItem-label");if(e&&this.dynamicLabel){const i=document.createElement("span");i.classList.add("color-fg-muted");const n=document.createElement("span");i.textContent=this.dynamicLabelPrefix,n.textContent=e.textContent||"",t.replaceChildren(i,n)}else t.textContent=b(this,Rs,"f")},to=function(){if("single"===this.selectVariant){const t=this.querySelector("[data-list-inputs=true] input");if(!t)return;const e=this.selectedItems[0];e?(t.value=(e.value||e.label||"").trim(),t.removeAttribute("disabled")):t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){const t=this.querySelector("[data-list-inputs=true]");if(!t)return;const e=t.querySelectorAll("input");e.length>0&&v(this,qs,b(this,qs,"f")||e[0].name,"f");for(const e of this.selectedItems){const i=document.createElement("input");i.setAttribute("data-list-input","true"),i.type="hidden",i.autocomplete="off",i.name=b(this,qs,"f"),i.value=(e.value||e.label||"").trim(),t.append(i)}for(const t of e)t.remove()}},eo=function(){return this.querySelector(no.join(","))},g([U],so.prototype,"includeFragment",void 0),g([U],so.prototype,"overlay",void 0),so=g([K("action-menu")],so),window.customElements.get("action-menu")||(window.ActionMenuElement=so,window.customElements.define("action-menu",so));const oo="less",ro="equal",ao="greater";var lo,co,ho,uo,mo,fo=t=>{throw TypeError(t)},po=(t,e,i)=>e.has(t)||fo("Cannot "+i),go=(t,e,i)=>(po(t,e,"read from private field"),i?i.call(t):e.get(t)),bo=(t,e,i)=>e.has(t)?fo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),vo=(t,e,i,n)=>(po(t,e,"write to private field"),e.set(t,i),i),wo=(t,e,i)=>(po(t,e,"access private method"),i);class yo{constructor({compareFn:t}){bo(this,ho),bo(this,lo),bo(this,co),vo(this,lo,t),vo(this,co,[])}insert(t){go(this,co).push(t),wo(this,ho,mo).call(this)}pop(){const t=go(this,co)[0];return go(this,co)[go(this,co).length-1]&&(go(this,co)[0]=go(this,co)[go(this,co).length-1],go(this,co).pop()),wo(this,ho,uo).call(this),t}peek(){return go(this,co)[0]}delete(t){const e=go(this,co).indexOf(t);-1!==e&&(Io(go(this,co),e,go(this,co).length-1),go(this,co).pop(),wo(this,ho,uo).call(this))}clear(){vo(this,co,[])}get size(){return go(this,co).length}}function Eo(t){return 2*t+1}function Ao(t){return 2*t+2}function Lo(t){return Math.floor((t-1)/2)}function ko(t,e){return Eo(t)<e}function To(t,e){return Ao(t)<e}function So(t){return t>0}function Co(t,e){return t[Eo(e)]}function xo(t,e){return t[Ao(e)]}function Mo(t,e){return t[Lo(e)]}function Io(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}lo=new WeakMap,co=new WeakMap,ho=new WeakSet,uo=function(){let t=0;for(;ko(t,go(this,co).length);){let e=Eo(t);if(To(t,go(this,co).length)&&go(this,lo).call(this,xo(go(this,co),t),Co(go(this,co),t))===oo&&(e=Ao(t)),go(this,lo).call(this,go(this,co)[t],go(this,co)[e])===oo)break;Io(go(this,co),t,e),t=e}},mo=function(){let t=go(this,co).length-1;for(;So(t)&&go(this,lo).call(this,go(this,co)[t],Mo(go(this,co),t))===oo;)Io(go(this,co),t,Lo(t)),t=Lo(t)};var Do,Po,Oo,Ho,No=Object.defineProperty,Fo=t=>{throw TypeError(t)},Ro=(t,e,i)=>((t,e,i)=>e in t?No(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i)(t,"symbol"!=typeof e?e+"":e,i),qo=(t,e,i)=>e.has(t)||Fo("Cannot "+i),Wo=(t,e,i)=>(qo(t,e,"read from private field"),i?i.call(t):e.get(t)),Vo=(t,e,i)=>e.has(t)?Fo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Bo=(t,e,i,n)=>(qo(t,e,"write to private field"),e.set(t,i),i);Do=Symbol.toStringTag;class $o{constructor(){Ro(this,Do,"Deferred"),Vo(this,Po),Vo(this,Oo),Vo(this,Ho),Bo(this,Po,new Promise(((t,e)=>{Bo(this,Oo,t),Bo(this,Ho,e)})))}then(t,e){return Promise.prototype.then.apply(Wo(this,Po),[t,e])}catch(t){return Promise.prototype.catch.apply(Wo(this,Po),[t])}finally(t){return Promise.prototype.finally.apply(Wo(this,Po),[t])}resolve(t){Wo(this,Oo).call(this,t)}reject(t){Wo(this,Ho).call(this,t)}getPromise(){return Wo(this,Po)}}Po=new WeakMap,Oo=new WeakMap,Ho=new WeakMap;var _o,Uo,jo,Ko,zo,Yo,Zo=t=>{throw TypeError(t)},Go=(t,e,i)=>e.has(t)||Zo("Cannot "+i),Jo=(t,e,i)=>(Go(t,e,"read from private field"),i?i.call(t):e.get(t)),Xo=(t,e,i)=>e.has(t)?Zo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Qo=(t,e,i,n)=>(Go(t,e,"write to private field"),e.set(t,i),i),tr=(t,e,i)=>(Go(t,e,"access private method"),i);class LiveRegionElement extends HTMLElement{constructor(){if(super(),Xo(this,Ko),Xo(this,_o),Xo(this,Uo),Xo(this,jo),!this.shadowRoot){const t=function(){if(er)return er;return er=document.createElement("template"),er.innerHTML=ir,er}();this.attachShadow({mode:"open"}).appendChild(t.content.cloneNode(!0))}Qo(this,_o,!1),Qo(this,jo,null),Qo(this,Uo,new yo({compareFn:nr}))}get delay(){const t=this.getAttribute("delay");return t?parseInt(t,10):150}set delay(t){this.setAttribute("delay",`${t}`)}announce(t,e={}){const{delayMs:i,politeness:n="polite"}=e,s=Date.now(),o=new $o,r={deferred:o,politeness:n,contents:t,scheduled:void 0!==i?s+i:s};return Jo(this,Uo).insert(r),tr(this,Ko,zo).call(this),{...o.getPromise(),cancel:()=>{Jo(this,Uo).delete(r),o.resolve()}}}announceFromElement(t,e){const i=function(t){let e="";t.hasAttribute("aria-label")?e=t.getAttribute("aria-label"):t.innerText?e=t.innerText:t.textContent&&(e=t.textContent);return e?e.trim():""}(t);if(""!==i)return this.announce(i,e);return{...Promise.resolve(),cancel:sr}}getMessage(t="polite"){const e=this.shadowRoot?.getElementById(t);if(!e)throw new Error("Unable to find container for message");return e.textContent}clear(){null!==Jo(this,jo)&&(clearTimeout(Jo(this,jo)),Qo(this,jo,null)),Qo(this,_o,!1),Jo(this,Uo).clear()}}_o=new WeakMap,Uo=new WeakMap,jo=new WeakMap,Ko=new WeakSet,zo=function(){if(Jo(this,_o))return;let t=Jo(this,Uo).peek();if(!t)return;null!==Jo(this,jo)&&(clearTimeout(Jo(this,jo)),Qo(this,jo,null));const e=Date.now();if(t.scheduled<=e)return t=Jo(this,Uo).pop(),t&&tr(this,Ko,Yo).call(this,t),void tr(this,Ko,zo).call(this);const i=t.scheduled-e;Qo(this,jo,window.setTimeout((()=>{Qo(this,jo,null),tr(this,Ko,zo).call(this)}),i))},Yo=function(t){Qo(this,_o,!0);const{contents:e,deferred:i,politeness:n}=t,s=this.shadowRoot?.getElementById(n);if(!s)throw Qo(this,_o,!1),new Error(`Unable to find container for message. Expected a container with id="${n}"`);s.textContent===e?s.textContent=`${e} `:s.textContent=e,null!==Jo(this,jo)&&clearTimeout(Jo(this,jo)),i.resolve(),this.delay>0?Qo(this,jo,window.setTimeout((()=>{Qo(this,jo,null),Qo(this,_o,!1),tr(this,Ko,zo).call(this)}),this.delay)):(Qo(this,jo,null),Qo(this,_o,!1),tr(this,Ko,zo).call(this))};let er=null;const ir='\n<style>\n:host {\n border: 0;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n</style>\n<div id="polite" aria-live="polite" aria-atomic="true"></div>\n<div id="assertive" aria-live="assertive" aria-atomic="true"></div>\n';function nr(t,e){return t.politeness===e.politeness?t.scheduled===e.scheduled?ro:t.scheduled<e.scheduled?oo:ao:"assertive"===t.politeness&&"assertive"!==e.politeness?oo:"assertive"!==t.politeness&&"assertive"===e.politeness?ao:ro}function sr(){}var or,rr,ar,lr,cr,dr,hr,ur,mr,fr,pr,gr,br,vr,wr,yr,Er,Ar,Lr,kr,Tr,Sr,Cr,xr,Mr,Ir,Dr,Pr,Or,Hr,Nr,Fr,Rr,qr,Wr,Vr,Br,$r,_r,Ur;customElements.get("live-region")||customElements.define("live-region",LiveRegionElement);const jr=['[role="option"]'],Kr=jr.join(","),zr=jr.map((t=>`:not([hidden]) > ${t}`)).join(",");var Yr,Zr;!function(t){t[t.REMOTE=0]="REMOTE",t[t.EVENTUALLY_LOCAL=1]="EVENTUALLY_LOCAL",t[t.LOCAL=2]="LOCAL"}(Yr||(Yr={})),function(t){t[t.BODY=0]="BODY",t[t.BANNER=1]="BANNER"}(Zr||(Zr={}));const Gr=(()=>{const t=new Set;let e=null;function i(){for(const e of t)e.updateAnchorPosition()}return n=>{window.addEventListener("resize",i),window.addEventListener("scroll",i),e||(e=new ResizeObserver((()=>{for(const e of t)e.updateAnchorPosition()}))),e.observe(n.ownerDocument.documentElement),n.addEventListener("dialog:close",(()=>{n.invokerElement?.setAttribute("aria-expanded","false"),t.delete(n)})),n.addEventListener("dialog:open",(()=>{t.add(n)}))}})();let Jr=class SelectPanelElement extends HTMLElement{constructor(){super(...arguments),or.add(this),rr.set(this,void 0),ar.set(this,void 0),lr.set(this,""),cr.set(this,""),dr.set(this,new Map),hr.set(this,null),ur.set(this,null),mr.set(this,!1)}get open(){return this.dialog.open}get selectVariant(){return this.getAttribute("data-select-variant")}get ariaSelectionType(){return"aria-selected"}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){const t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}get dynamicAriaLabelPrefix(){const t=this.getAttribute("data-dynamic-aria-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get invokerElement(){const t=this.querySelector("dialog")?.id;if(!t)return null;for(const e of this.querySelectorAll("[aria-controls]"))if(e.getAttribute("aria-controls")===t)return e;return null}get closeButton(){return this.querySelector("button[data-close-dialog-id]")}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){return Array.from(b(this,dr,"f").values())}get align(){return this.getAttribute("anchor-align")||"start"}get side(){return this.getAttribute("anchor-side")||"outside-bottom"}updateAnchorPosition(){if(this&&null===this.offsetParent&&this.hide(),this.invokerElement){const{top:t,left:e}=X(this.dialog,this.invokerElement,{align:this.align,side:this.side,anchorOffset:4});this.dialog.style.top=`${t}px`,this.dialog.style.left=`${e}px`,this.dialog.style.bottom="auto",this.dialog.style.right="auto"}}connectedCallback(){const{signal:t}=v(this,ar,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.addEventListener("input",this,{signal:t}),this.addEventListener("remote-input-success",this,{signal:t}),this.addEventListener("remote-input-error",this,{signal:t}),this.addEventListener("loadstart",this,{signal:t}),b(this,or,"m",Wr).call(this),b(this,or,"m",Vr).call(this),b(this,or,"m",fr).call(this),Gr(this),Xe(this,(()=>Boolean(this.remoteInput)),(()=>{this.remoteInput.addEventListener("loadstart",this,{signal:t}),this.remoteInput.addEventListener("loadend",this,{signal:t})})),Xe(this,(()=>Boolean(this.includeFragment)),(()=>{this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t}),this.includeFragment.addEventListener("error",this,{signal:t}),this.includeFragment.addEventListener("loadend",this,{signal:t})})),v(this,rr,new IntersectionObserver((t=>{for(const e of t){const t=e.target;e.isIntersecting&&t===this.dialog&&(this.filterInputTextField&&document.activeElement!==this.filterInputTextField&&this.filterInputTextField.focus(),this.dialog.setAttribute("data-ready","true"),this.updateAnchorPosition(),b(this,or,"a",Or)===Yr.LOCAL&&b(this,or,"m",xr).call(this))}})),"f"),Xe(this,(()=>Boolean(this.dialog)),(()=>{b(this,rr,"f").observe(this.dialog),this.dialog.addEventListener("close",this,{signal:t}),"true"===this.getAttribute("data-open-on-load")&&this.show()})),b(this,or,"a",Or)===Yr.LOCAL&&Xe(this,(()=>this.items.length>0),(()=>{b(this,or,"m",xr).call(this),b(this,or,"m",Vr).call(this)}))}disconnectedCallback(){b(this,ar,"f").abort()}handleEvent(t){if(t.target===this.filterInputTextField)return void b(this,or,"m",Cr).call(this,t);if(t.target===this.remoteInput)return void b(this,or,"m",Tr).call(this,t);const e=this.invokerElement?.contains(t.target),i=this.closeButton?.contains(t.target),n=b(this,or,"m",vr).call(this,t);if(e&&"mousedown"===t.type)return;if("mousedown"===t.type&&t.target instanceof HTMLInputElement)return;if("mousedown"===t.type)return void t.preventDefault();if(e&&n)return void b(this,or,"m",Fr).call(this,t);if(i&&n)return;if("keydown"===t.type&&t instanceof KeyboardEvent&&t.target.closest(zr)){const e=t.ctrlKey||t.altKey||t.metaKey,i=1===t.key.length&&/[a-z\d]/i.test(t.key);!e&&i&&t.stopPropagation()}if(t.target===this.dialog&&"close"===t.type){if(this.dialog.removeAttribute("data-ready"),this.invokerElement?.setAttribute("aria-expanded","false"),this.filterInputTextField){const t=this.filterInputTextField.value.length>0;this.filterInputTextField.value="",t&&this.filterInputTextField.dispatchEvent(new Event("input"))}return void this.dispatchEvent(new CustomEvent("panelClosed",{detail:{panel:this},bubbles:!0}))}const s=t.target.closest(zr)?.parentElement;if(null!=s&&n){if(b(this,or,"m",gr).call(this,t))return;const e=s.closest("[data-show-dialog-id]");if(e){const i=this.ownerDocument.getElementById(e.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(e)&&this.contains(i))return void b(this,or,"m",Rr).call(this,t,i)}return b(this,or,"m",br).call(this,t)&&(t.preventDefault(),b(this,or,"m",Ur).call(this,s)?.click()),void b(this,or,"m",qr).call(this,s)}if("click"===t.type){const e=this.dialog.getBoundingClientRect();e.top<=t.clientY&&t.clientY<=e.top+e.height&&e.left<=t.clientX&&t.clientX<=e.left+e.width||this.hide()}t.target instanceof IncludeFragmentElement&&b(this,or,"m",Lr).call(this,t)}show(){this.updateAnchorPosition(),this.dialog.showModal(),this.invokerElement?.setAttribute("aria-expanded","true");const t=new CustomEvent("dialog:open",{detail:{dialog:this.dialog}});this.dispatchEvent(t)}hide(){this.dialog.close()}get visibleItems(){return Array.from(this.querySelectorAll(zr)).map((t=>t.parentElement))}get items(){return Array.from(this.querySelectorAll(Kr)).map((t=>t.parentElement))}get focusableItem(){for(const t of this.items){const e=b(this,or,"m",Ur).call(this,t);if(e&&"0"===e.getAttribute("tabindex"))return e}}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),b(this,or,"m",Ur).call(this,t).setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),b(this,or,"m",Ur).call(this,t).removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}isItemChecked(t){return!!t&&"true"===b(this,or,"m",Ur).call(this,t).getAttribute(this.ariaSelectionType)}checkItem(t){!t||"single"!==this.selectVariant&&"multiple"!==this.selectVariant||this.isItemChecked(t)||b(this,or,"m",qr).call(this,t)}uncheckItem(t){!t||"single"!==this.selectVariant&&"multiple"!==this.selectVariant||this.isItemChecked(t)&&b(this,or,"m",qr).call(this,t)}};rr=new WeakMap,ar=new WeakMap,lr=new WeakMap,cr=new WeakMap,dr=new WeakMap,hr=new WeakMap,ur=new WeakMap,mr=new WeakMap,or=new WeakSet,fr=function(){const{signal:t}=b(this,ar,"f");for(const e of this.querySelectorAll(jr.join(",")))e.addEventListener("click",b(this,or,"m",gr).bind(this),{signal:t}),e.addEventListener("keydown",b(this,or,"m",gr).bind(this),{signal:t})},pr=function(){let t=!1;if("single"===this.selectVariant)for(const e of this.items){const i=b(this,or,"m",Ur).call(this,e);i&&(this.isItemHidden(e)||!this.isItemChecked(e)||t?i.setAttribute("tabindex","-1"):(i.setAttribute("tabindex","0"),t=!0),e.removeAttribute("tabindex"))}else for(const t of this.items){const e=b(this,or,"m",Ur).call(this,t);e&&(e.setAttribute("tabindex","-1"),t.removeAttribute("tabindex"))}!t&&b(this,or,"a",Br)&&b(this,or,"m",Ur).call(this,b(this,or,"a",Br))?.setAttribute("tabindex","0")},gr=function(t){if(!b(this,or,"m",vr).call(this,t))return!1;const e=t.target.closest(zr);return!!e&&(!!e.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0))},br=function(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},vr=function(t){return t instanceof MouseEvent&&"click"===t.type||b(this,or,"m",br).call(this,t)},wr=function(){for(const t of this.items){const e=b(this,or,"m",Ur).call(this,t);if(!e)continue;const i=e.getAttribute("data-value");i&&b(this,dr,"f").has(i)&&e.setAttribute(this.ariaSelectionType,"true")}b(this,or,"m",Vr).call(this)},yr=function(t){const e=b(this,or,"m",Ur).call(this,t);if(!e)return;const i=e.getAttribute("data-value");i&&b(this,dr,"f").set(i,{value:i,label:e.querySelector(".ActionListItem-label")?.textContent?.trim(),inputName:e.getAttribute("data-input-name")})},Er=function(t){const e=b(this,or,"m",Ur).call(this,t);if(!e)return;const i=e.getAttribute("data-value");i&&b(this,dr,"f").delete(i)},Ar=function(){b(this,or,"a",Hr)&&(b(this,hr,"f")&&clearTimeout(b(this,hr,"f")),b(this,ur,"f")&&clearTimeout(b(this,ur,"f")),v(this,ur,setTimeout((()=>{this.liveRegion.announce("Loading")}),2e3),"f"),v(this,hr,setTimeout((()=>{b(this,or,"a",Hr)?.showLeadingSpinner()}),1e3),"f"))},Lr=function(t){switch(t.type){case"include-fragment-replaced":b(this,or,"m",xr).call(this);break;case"loadstart":b(this,or,"m",kr).call(this,!1);break;case"loadend":b(this,or,"a",Hr)?.hideLeadingSpinner(),this.dispatchEvent(new CustomEvent("loadend"));break;case"error":{b(this,or,"m",kr).call(this,!0);const e=this.fragmentErrorElement;throw e&&!e.hasAttribute("hidden")&&this.liveRegion.announceFromElement(e,{politeness:"assertive"}),new Error(t.detail.error)}}},kr=function(t){for(const e of this.includeFragment.querySelectorAll("[data-show-on-error]"))e instanceof HTMLElement&&(e.hidden=!t);for(const e of this.includeFragment.querySelectorAll("[data-hide-on-error]"))e instanceof HTMLElement&&(e.hidden=t)},Tr=function(t){switch(t.type){case"remote-input-success":b(this,or,"m",Dr).call(this),b(this,or,"m",xr).call(this),b(this,or,"m",wr).call(this);break;case"remote-input-error":this.bodySpinner?.setAttribute("hidden",""),this.includeFragment||0===this.visibleItems.length?b(this,or,"m",Ir).call(this,Zr.BODY):b(this,or,"m",Ir).call(this,Zr.BANNER);break;case"loadstart":if(!b(this,or,"m",Nr).call(this)){if(b(this,or,"m",Dr).call(this),this.bodySpinner?.removeAttribute("hidden"),this.bodySpinner)break;b(this,or,"m",Ar).call(this)}break;case"loadend":b(this,or,"a",Hr)?.hideLeadingSpinner(),b(this,ur,"f")&&clearTimeout(b(this,ur,"f")),b(this,hr,"f")&&clearTimeout(b(this,hr,"f")),this.dispatchEvent(new CustomEvent("loadend"))}},Sr=function(t,e){return(t.getAttribute("data-filter-string")||t.textContent||"").toLowerCase().indexOf(e.toLowerCase())>-1},Cr=function(t){if("keydown"===t.type){const e=t.key;if("Enter"===e){const t=this.visibleItems[0];if(t){const e=b(this,or,"m",Ur).call(this,t);e&&e.click()}}else if("ArrowDown"===e){const e=this.focusableItem||b(this,or,"m",Ur).call(this,this.visibleItems[0]);e&&(e.focus(),t.preventDefault())}else if("Home"===e){const e=this.visibleItems[0];if(e){const i=b(this,or,"m",Ur).call(this,e);i&&i.focus(),t.preventDefault()}}else if("End"===e&&this.visibleItems.length>0){const e=this.visibleItems[this.visibleItems.length-1],i=b(this,or,"m",Ur).call(this,e);i&&i.focus(),t.preventDefault()}}if("input"===t.type&&(this.bodySpinner||b(this,or,"m",Nr).call(this)||b(this,or,"m",Ar).call(this),b(this,or,"a",Or)===Yr.LOCAL||b(this,or,"a",Or)===Yr.EVENTUALLY_LOCAL)){if(this.includeFragment)return void this.includeFragment.refetch();b(this,or,"m",xr).call(this)}},xr=function(){if(!this.list)return;let t=!1;if(b(this,or,"m",Nr).call(this)){const e=this.filterInputTextField?.value??"",i=this.filterFn||b(this,or,"m",Sr);for(const n of this.items)i(n,e)?(b(this,or,"m",_r).call(this,n),t=!0):b(this,or,"m",$r).call(this,n)}else t=this.items.length>0;b(this,or,"m",pr).call(this),b(this,or,"m",Pr).call(this);for(const t of this.items){const e=b(this,or,"m",Ur).call(this,t);if(!e)continue;const i=e.getAttribute("data-value");b(this,mr,"f")?i&&!b(this,dr,"f").has(i)&&e.setAttribute(this.ariaSelectionType,"false"):i&&!b(this,dr,"f").has(i)&&this.isItemChecked(t)&&b(this,or,"m",yr).call(this,t)}v(this,mr,!0,"f"),this.noResults&&(b(this,or,"m",Mr).call(this)?this.noResults.setAttribute("hidden",""):t?(this.noResults.setAttribute("hidden",""),this.list?.querySelector(".ActionListWrap")?.removeAttribute("hidden")):(this.list?.querySelector(".ActionListWrap")?.setAttribute("hidden",""),this.noResults.removeAttribute("hidden")))},Mr=function(){return!(!this.fragmentErrorElement||this.fragmentErrorElement.hasAttribute("hidden"))||!!this.bannerErrorElement&&!this.bannerErrorElement.hasAttribute("hidden")},Ir=function(t){let e=this.fragmentErrorElement;t===Zr.BODY&&this.fragmentErrorElement?(this.fragmentErrorElement.removeAttribute("hidden"),this.bannerErrorElement.setAttribute("hidden","")):(e=this.bannerErrorElement,this.bannerErrorElement?.removeAttribute("hidden"),this.fragmentErrorElement?.setAttribute("hidden","")),!e||e.hasAttribute("hidden")||this.liveRegion.announceFromElement(e,{politeness:"assertive"})},Dr=function(){this.fragmentErrorElement?.setAttribute("hidden",""),this.bannerErrorElement.setAttribute("hidden","")},Pr=function(){if(this.open&&this.list){const t=this.visibleItems;if(t.length>0){const e="tab for results";this.liveRegion.announce(`${t.length} result${1===t.length?"":"s"} ${e}`)}else{const t=this.noResults;t&&this.liveRegion.announceFromElement(t)}}},Or=function(){if(!this.list)return Yr.REMOTE;switch(this.list.getAttribute("data-fetch-strategy")){case"local":return Yr.LOCAL;case"eventually_local":return Yr.EVENTUALLY_LOCAL;default:return Yr.REMOTE}},Hr=function(){return this.filterInputTextField?.closest("primer-text-field")},Nr=function(){return b(this,or,"a",Or)===Yr.LOCAL||b(this,or,"a",Or)===Yr.EVENTUALLY_LOCAL},Fr=function(t){this.invokerElement?.dispatchEvent(new CustomEvent("invokerClicked",{bubbles:!0})),t.preventDefault(),t.stopPropagation(),this.open?this.hide():this.show()},Rr=function(t,e){this.querySelector(".ActionListWrap").style.display="none";const i=new AbortController,{signal:n}=i,s=()=>{i.abort(),this.querySelector(".ActionListWrap").style.display="",this.open&&this.hide();const t=this.ownerDocument.activeElement,e=this.ownerDocument.activeElement===this.ownerDocument.body,n=this.contains(t);(e||n)&&setTimeout((()=>this.invokerElement?.focus()),0)};e.addEventListener("close",s,{signal:n}),e.addEventListener("cancel",s,{signal:n})},qr=function(t){if("multiple"!==this.selectVariant&&setTimeout((()=>{this.open&&this.hide()})),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;const e=this.isItemChecked(t),i=!e;if(!this.dispatchEvent(new CustomEvent("beforeItemActivated",{bubbles:!0,cancelable:!0,detail:{item:t,checked:i,value:b(this,or,"m",Ur).call(this,t)?.getAttribute("data-value")}})))return;const n=b(this,or,"m",Ur).call(this,t);if("single"===this.selectVariant){if(n?.getAttribute("href"))return;if(!e){for(const t of this.items)b(this,or,"m",Ur).call(this,t)?.setAttribute(this.ariaSelectionType,"false");b(this,dr,"f").clear(),i&&(b(this,or,"m",yr).call(this,t),n?.setAttribute(this.ariaSelectionType,"true")),b(this,or,"m",Wr).call(this)}}else n?.setAttribute(this.ariaSelectionType,`${i}`),i?b(this,or,"m",yr).call(this,t):b(this,or,"m",Er).call(this,t);b(this,or,"m",Vr).call(this),b(this,or,"m",pr).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:t,checked:i,value:b(this,or,"m",Ur).call(this,t)?.getAttribute("data-value")}}))},Wr=function(){if(!this.dynamicLabel)return;const t=this.invokerLabel;if(!t)return;v(this,lr,b(this,lr,"f")||t.textContent||"","f");const e=this.querySelector(`[${this.ariaSelectionType}=true] .ActionListItem-label`)?.textContent||b(this,lr,"f");if(e){const i=document.createElement("span");i.classList.add("color-fg-muted");const n=document.createElement("span");i.textContent=`${this.dynamicLabelPrefix} `,n.textContent=e,t.replaceChildren(i,n),this.dynamicAriaLabelPrefix&&this.invokerElement?.setAttribute("aria-label",`${this.dynamicAriaLabelPrefix} ${e.trim()}`)}else t.textContent=b(this,lr,"f")},Vr=function(){if("single"===this.selectVariant){const t=this.querySelector("[data-select-panel-inputs=true] input")??this.querySelector("[data-list-inputs=true] input");if(!t)return;const e=this.selectedItems[0];e?(t.value=(e.value||e.label||"").trim(),e.inputName&&(t.name=e.inputName),t.removeAttribute("disabled")):b(this,mr,"f")&&t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){const t=!!this.querySelector("[data-select-panel-inputs=true]"),e=this.querySelector("[data-select-panel-inputs=true]")??this.querySelector("[data-list-inputs=true]");if(!e)return;const i=e.querySelectorAll("input");i.length>0&&v(this,cr,b(this,cr,"f")||i[0].name,"f");for(const i of this.selectedItems){const n=document.createElement("input");n.setAttribute(""+(t?"data-select-panel-input":"data-list-input"),"true"),n.type="hidden",n.autocomplete="off",n.name=i.inputName||b(this,cr,"f"),n.value=(i.value||i.label||"").trim(),e.append(n)}for(const t of i)t.remove()}},Br=function(){return this.querySelector(zr)?.parentElement||null},$r=function(t){t&&t.setAttribute("hidden","hidden")},_r=function(t){t&&t.removeAttribute("hidden")},Ur=function(t){return t.querySelector(".ActionListContent")},g([U],Jr.prototype,"includeFragment",void 0),g([U],Jr.prototype,"dialog",void 0),g([U],Jr.prototype,"filterInputTextField",void 0),g([U],Jr.prototype,"remoteInput",void 0),g([U],Jr.prototype,"list",void 0),g([U],Jr.prototype,"noResults",void 0),g([U],Jr.prototype,"fragmentErrorElement",void 0),g([U],Jr.prototype,"bannerErrorElement",void 0),g([U],Jr.prototype,"bodySpinner",void 0),g([U],Jr.prototype,"liveRegion",void 0),Jr=g([K("select-panel")],Jr),window.customElements.get("select-panel")||(window.SelectPanelElement=Jr,window.customElements.define("select-panel",Jr));let Xr=class DetailsToggleElement extends HTMLElement{toggle(){if(this.detailsTarget.hasAttribute("open")){const t=this.summaryTarget.getAttribute("data-aria-label-closed");t&&this.summaryTarget.setAttribute("aria-label",t),this.summaryTarget.setAttribute("aria-expanded","false")}else{const t=this.summaryTarget.getAttribute("data-aria-label-open");t&&this.summaryTarget.setAttribute("aria-label",t),this.summaryTarget.setAttribute("aria-expanded","true")}}};function Qr(t){Dt(t,{bindKeys:At.ArrowVertical|At.ArrowHorizontal|At.HomeAndEnd|At.Backspace,getNextFocusable:(t,e,i)=>{if(e instanceof HTMLElement){try{if(e.closest("dialog:modal"))return}catch{}return function(t,e){switch(`${function(t){if("treeitem"!==t.getAttribute("role"))throw new Error("Element is not a treeitem");switch(t.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(t)} ${e.key}`){case"open ArrowRight":return function(t){const e=t.querySelector("[role=treeitem]");return e instanceof HTMLElement?e:void 0}(t);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return ia(t)}switch(e.key){case"ArrowUp":return ta(t,"previous");case"ArrowDown":return ta(t,"next");case"Backspace":return ia(t)}}(e,i)??e}},focusInStrategy:()=>{let e=t.querySelector("[aria-current]");e=e?.checkVisibility()?e:null;const i=t.querySelector('[role="treeitem"]');return e instanceof HTMLElement?e:document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&"treeitem"===document.activeElement.getAttribute("role")?document.activeElement:i instanceof HTMLElement?i:void 0}})}function ta(t,e){const i=t.closest("[role=tree]");if(!i)return;const n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,(t=>t instanceof HTMLElement&&"treeitem"===t.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let s=n.firstChild();for(;s!==t;)s=n.nextNode();let o="next"===e?n.nextNode():n.previousNode();for(;o instanceof HTMLElement&&ea(o,i);)o="next"===e?n.nextNode():n.previousNode();return o instanceof HTMLElement?o:void 0}function ea(t,e){for(const i of e.querySelectorAll("[role=treeitem][aria-expanded=false]"))if(t!==i&&i.closest("li")?.contains(t))return i;return null}function ia(t){const e=t.closest("[role=group]"),i=e?.closest("[role=treeitem]");return i instanceof HTMLElement?i:void 0}var na,sa,oa,ra,aa,la,ca,da,ha,ua,ma;g([U],Xr.prototype,"detailsTarget",void 0),g([U],Xr.prototype,"summaryTarget",void 0),Xr=g([K("details-toggle")],Xr),window.DetailsToggleElement=Xr;let fa=class TreeViewElement extends HTMLElement{constructor(){super(...arguments),na.add(this),sa.set(this,void 0)}connectedCallback(){const{signal:t}=v(this,sa,new AbortController,"f");this.addEventListener("click",this,{signal:t}),this.addEventListener("focusin",this,{signal:t}),this.addEventListener("keydown",this,{signal:t}),Qr(this),new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.querySelector("[aria-expanded=true]")&&b(this,na,"m",oa).call(this,t)})).observe(this,{childList:!0,subtree:!0});new MutationObserver((t=>{if(!this.formInputContainer)return;if(!t.some((t=>t.target instanceof HTMLElement&&t.target.getAttribute("aria-checked")!==t.oldValue)))return;const e=[];for(const t of this.querySelectorAll("[role=treeitem][aria-checked=true]")){const i=this.formInputPrototype.cloneNode();i.removeAttribute("data-target"),i.removeAttribute("form");const n={path:this.getNodePath(t)},s=this.getFormInputValueForNode(t);s&&(n.value=s),i.value=JSON.stringify(n),e.push(i)}this.formInputContainer.replaceChildren(...e)})).observe(this,{childList:!0,subtree:!0,attributeFilter:["aria-checked"]}),customElements.whenDefined("tree-view-sub-tree-node").then((()=>{b(this,na,"m",oa).call(this,this)}))}disconnectedCallback(){b(this,sa,"f").abort()}handleEvent(t){const e=b(this,na,"m",aa).call(this,t);e&&b(this,na,"m",la).call(this,e,t)}getFormInputValueForNode(t){return t.getAttribute("data-value")}getNodePath(t){const e=t.getAttribute("data-path");return e?JSON.parse(e):[]}getNodeType(t){return t.getAttribute("data-node-type")}markCurrentAtPath(t){const e=JSON.stringify(t),i=this.querySelector(`[data-path="${CSS.escape(e)}"`);i&&(this.currentNode?.setAttribute("aria-current","false"),i.setAttribute("aria-current","true"))}get currentNode(){return this.querySelector("[aria-current=true]")}expandAtPath(t){const e=this.subTreeAtPath(t);e&&e.expand()}collapseAtPath(t){const e=this.subTreeAtPath(t);e&&e.collapse()}toggleAtPath(t){const e=this.subTreeAtPath(t);e&&e.toggle()}checkAtPath(t){const e=this.nodeAtPath(t);e&&this.setNodeCheckedValue(e,"true")}uncheckAtPath(t){const e=this.nodeAtPath(t);e&&this.setNodeCheckedValue(e,"false")}toggleCheckedAtPath(t){const e=this.nodeAtPath(t);e&&"leaf"===this.getNodeType(e)&&("true"===this.getNodeCheckedValue(e)?this.uncheckAtPath(t):this.checkAtPath(t))}checkedValueAtPath(t){const e=this.nodeAtPath(t);return e?this.getNodeCheckedValue(e):"false"}disabledValueAtPath(t){const e=this.nodeAtPath(t);return!!e&&this.getNodeDisabledValue(e)}nodeAtPath(t,e){const i=JSON.stringify(t);return this.querySelector(`${e||""}[data-path="${CSS.escape(i)}"]`)}subTreeAtPath(t){const e=this.nodeAtPath(t,"[data-node-type=sub-tree]");return e?e.closest("tree-view-sub-tree-node"):null}leafAtPath(t){return this.nodeAtPath(t,"[data-node-type=leaf]")}setNodeCheckedValue(t,e){t.setAttribute("aria-checked",e.toString())}getNodeCheckedValue(t){return t.getAttribute("aria-checked")||"false"}getNodeDisabledValue(t){return"true"===t.getAttribute("aria-disabled")}setNodeDisabledValue(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}nodeHasCheckBox(t){return null!==t.querySelector(".TreeViewItemCheckbox")}nodeHasNativeAction(t){return t instanceof HTMLAnchorElement||t instanceof HTMLButtonElement}expandAncestorsForNode(t){const e=t.closest("tree-view-sub-tree-node");if(e)for(const t of e.eachAncestorSubTreeNode())t.expanded||t.expand()}infoFromNode(t,e){const i=this.getNodeType(t);if(!i)return null;const n=this.getNodeCheckedValue(t);return{node:t,type:i,path:this.getNodePath(t),checkedValue:e||n,previousCheckedValue:n}}};var pa,ga;sa=new WeakMap,na=new WeakSet,oa=function(t){for(const e of t.querySelectorAll("[aria-expanded=true]"))this.expandAncestorsForNode(e)},ra=function(t){return"click"===t.type},aa=function(t){const e=t.target,i=e.closest("[role=treeitem]");return i?e.closest(".TreeViewItemToggle")||e.closest(".TreeViewItemLeadingAction")?null:i:null},la=function(t,e){b(this,na,"m",ca).call(this,e,t)?b(this,na,"m",da).call(this,e,t):b(this,na,"m",ra).call(this,e)?b(this,na,"m",ha).call(this,e,t):"focusin"===e.type?b(this,na,"m",ua).call(this,t):e instanceof KeyboardEvent&&b(this,na,"m",ma).call(this,e,t)},ca=function(t,e){return"click"===t.type&&this.nodeHasCheckBox(e)},da=function(t,e){if(this.getNodeDisabledValue(e))return void t.preventDefault();"leaf"===this.getNodeType(e)&&("true"===this.getNodeCheckedValue(e)?this.setNodeCheckedValue(e,"false"):this.setNodeCheckedValue(e,"true"))},ha=function(t,e){if(this.getNodeDisabledValue(e))return void t.preventDefault();if(!(e instanceof HTMLDivElement))return;const i=this.getNodePath(e);this.dispatchEvent(new CustomEvent("treeViewBeforeNodeActivated",{bubbles:!0,cancelable:!0,detail:this.infoFromNode(e)}))&&(this.nodeHasNativeAction(e)||this.toggleAtPath(i),this.dispatchEvent(new CustomEvent("treeViewNodeActivated",{bubbles:!0,detail:this.infoFromNode(e)})))},ua=function(t){const e=this.querySelector("[aria-selected=true]");e?.setAttribute("aria-selected","false"),t.setAttribute("aria-selected","true")},ma=function(t,e){if(e&&"leaf"===this.getNodeType(e))switch(t.key){case" ":case"Enter":if(this.getNodeDisabledValue(e)){t.preventDefault();break}this.nodeHasCheckBox(e)?(t.preventDefault(),"true"===this.getNodeCheckedValue(e)?this.setNodeCheckedValue(e,"false"):this.setNodeCheckedValue(e,"true")):e instanceof HTMLAnchorElement&&e.click()}},g([U],fa.prototype,"formInputContainer",void 0),g([U],fa.prototype,"formInputPrototype",void 0),fa=g([K("tree-view")],fa),window.customElements.get("tree-view")||(window.TreeViewElement=fa,window.customElements.define("tree-view",fa));let ba=class TreeViewIconPairElement extends HTMLElement{constructor(){super(...arguments),pa.add(this)}connectedCallback(){Xe(this,(()=>Boolean(this.collapsedIcon)&&Boolean(this.expandedIcon)),(()=>{this.expanded=this.collapsedIcon.hidden}))}showExpanded(){this.expanded=!0,b(this,pa,"m",ga).call(this)}showCollapsed(){this.expanded=!1,b(this,pa,"m",ga).call(this)}toggle(){this.expanded=!this.expanded,b(this,pa,"m",ga).call(this)}};var va,wa,ya,Ea,Aa,La,ka,Ta,Sa,Ca,xa,Ma,Ia;pa=new WeakSet,ga=function(){this.expanded?(this.expandedIcon.hidden=!1,this.collapsedIcon.hidden=!0):(this.expandedIcon.hidden=!0,this.collapsedIcon.hidden=!1)},g([U],ba.prototype,"expandedIcon",void 0),g([U],ba.prototype,"collapsedIcon",void 0),ba=g([K("tree-view-icon-pair")],ba),window.customElements.get("tree-view-icon-pair")||(window.TreeViewIconPairElement=ba,window.customElements.define("tree-view-icon-pair",ba));let Da=class TreeViewSubTreeNodeElement extends HTMLElement{constructor(){super(...arguments),va.add(this),wa.set(this,null),ya.set(this,"success"),Ea.set(this,void 0),Aa.set(this,!1)}connectedCallback(){Xe(this,(()=>Boolean(this.node)&&Boolean(this.subTree)),(()=>{b(this,va,"m",xa).call(this)}));const{signal:t}=v(this,Ea,new AbortController,"f");this.addEventListener("click",this,{signal:t}),this.addEventListener("keydown",this,{signal:t}),Xe(this,(()=>Boolean(this.includeFragment)),(()=>{this.includeFragment.addEventListener("loadstart",this,{signal:t}),this.includeFragment.addEventListener("error",this,{signal:t}),this.includeFragment.addEventListener("include-fragment-replace",this,{signal:t}),this.includeFragment.addEventListener("include-fragment-replaced",(t=>{b(this,va,"m",ka).call(this,t)}),{signal:t})})),Xe(this,(()=>Boolean(this.retryButton)),(()=>{this.retryButton.addEventListener("click",(t=>{b(this,va,"m",Ta).call(this,t)}),{signal:t})}));new MutationObserver((()=>{if("mixed_descendants"!==this.selectStrategy)return;let t="unknown";for(const e of this.eachDirectDescendantNode())switch(`${t} ${e.getAttribute("aria-checked")||"false"}`){case"unknown mixed":case"false mixed":case"true mixed":case"false true":case"true false":t="mixed";break;case"unknown false":t="false";break;case"unknown true":t="true"}"unknown"!==t&&this.node?.getAttribute("aria-checked")!==t&&this.node?.setAttribute("aria-checked",t)})).observe(this,{childList:!0,subtree:!0,attributeFilter:["aria-checked"]})}get expanded(){return null===b(this,wa,"f")&&v(this,wa,"true"===this.node.getAttribute("aria-expanded"),"f"),b(this,wa,"f")}set expanded(t){v(this,wa,t,"f"),b(this,va,"m",xa).call(this)}get loadingState(){return b(this,ya,"f")}set loadingState(t){v(this,ya,t,"f"),b(this,va,"m",xa).call(this)}get selectStrategy(){return this.node.getAttribute("data-select-strategy")||"descendants"}disconnectedCallback(){b(this,Ea,"f").abort()}handleEvent(t){t.target===this.toggleButton?b(this,va,"m",La).call(this,t):t.target===this.includeFragment?b(this,va,"m",ka).call(this,t):t instanceof KeyboardEvent?b(this,va,"m",Sa).call(this,t):t.target.closest("[role=treeitem]")===this.node&&"click"===t.type&&b(this,va,"a",Ia)&&b(this,va,"m",Ca).call(this,t)}expand(){const t=this.expanded;this.expanded=!0,!t&&this.treeView&&this.treeView.dispatchEvent(new CustomEvent("treeViewNodeExpanded",{bubbles:!0,detail:this.treeView?.infoFromNode(this.node)}))}collapse(){const t=!this.expanded;if(this.expanded=!1,!t&&this.treeView){const t=this.subTree.querySelector("[tabindex='0']");t?.setAttribute("tabindex","-1"),b(this,va,"m",Ma).call(this)&&"0"===this.subTree.getAttribute("tabindex")&&this.subTree.setAttribute("tabindex","-1"),this.node.setAttribute("tabindex","0"),this.treeView.dispatchEvent(new CustomEvent("treeViewNodeCollapsed",{bubbles:!0,detail:this.treeView?.infoFromNode(this.node)}))}}toggle(){this.expanded?this.collapse():this.expand()}get nodes(){return this.querySelectorAll(":scope > [role=treeitem]")}*eachDirectDescendantNode(){for(const t of this.subTree.querySelectorAll(":scope > li > .TreeViewItemContainer > [role=treeitem]"))yield t;for(const t of this.subTree.querySelectorAll(":scope > tree-view-sub-tree-node > li > .TreeViewItemContainer > [role=treeitem]"))yield t}*eachDescendantNode(){for(const t of this.subTree.querySelectorAll("[role=treeitem]"))yield t}*eachAncestorSubTreeNode(){if(!this.treeView)return;let t=this;for(;t&&this.treeView.contains(t);)yield t,t=t.parentElement?.closest("tree-view-sub-tree-node")}get isEmpty(){return 0===this.nodes.length}get treeView(){return this.closest("tree-view")}toggleChecked(){const t="false"===(this.treeView?.getNodeCheckedValue(this.node)||"false")?"true":"false",e=[],i=this.treeView?.infoFromNode(this.node,t);if(i&&e.push(i),"descendants"===this.selectStrategy||"mixed_descendants"===this.selectStrategy)for(const i of this.eachDescendantNode()){const n=this.treeView?.infoFromNode(i,t);n&&e.push(n)}if(this.dispatchEvent(new CustomEvent("treeViewBeforeNodeChecked",{bubbles:!0,cancelable:!0,detail:e}))){for(const i of e)i.node.setAttribute("aria-checked",t);this.dispatchEvent(new CustomEvent("treeViewNodeChecked",{bubbles:!0,cancelable:!0,detail:e}))}}};wa=new WeakMap,ya=new WeakMap,Ea=new WeakMap,Aa=new WeakMap,va=new WeakSet,La=function(t){"click"===t.type&&(this.toggle(),t.stopPropagation())},ka=function(t){switch(t.type){case"loadstart":this.loadingState="loading";break;case"error":this.loadingState="error";break;case"include-fragment-replace":v(this,Aa,document.activeElement===this.loadingIndicator.closest("[role=treeitem]"),"f"),!b(this,Aa,"f")&&document.activeElement===this.subTree&&b(this,va,"m",Ma).call(this)&&v(this,Aa,!0,"f"),this.loadingState="success";break;case"include-fragment-replaced":if(this.expanded=!0,b(this,Aa,"f")){const t=this.querySelector("[role=group] > :first-child");if(!t)return;const e=t.querySelector("[role=treeitem]");if(!e)return;e.focus()}v(this,Aa,!1,"f")}},Ta=function(t){"click"===t.type&&(this.loadingState="loading",this.includeFragment.refetch())},Sa=function(t){const e=t.target.closest("[role=treeitem]");if(e&&"sub-tree"===this.treeView?.getNodeType(e))switch(t.key){case"Enter":if(this.treeView?.getNodeDisabledValue(e)){t.preventDefault();break}t.stopPropagation(),b(this,va,"a",Ia)?this.toggleChecked():this.treeView?.nodeHasNativeAction(e)||this.toggle();break;case"ArrowRight":t.stopPropagation(),this.expand();break;case"ArrowLeft":t.stopPropagation(),this.collapse();break;case" ":if(this.treeView?.getNodeDisabledValue(e)){t.preventDefault();break}b(this,va,"a",Ia)?(t.stopPropagation(),t.preventDefault(),this.toggleChecked()):e instanceof HTMLAnchorElement?e.click():this.treeView?.nodeHasNativeAction(e)||this.toggle()}},Ca=function(t){this.treeView?.getNodeDisabledValue(this.node)?t.preventDefault():"click"===t.type&&(this.toggleChecked(),t.stopPropagation())},xa=function(){switch(this.expanded?(this.subTree&&(this.subTree.hidden=!1),b(this,va,"m",Ma).call(this)&&(this.subTree.setAttribute("role","treeitem"),this.subTree.hasAttribute("tabindex")||this.subTree.setAttribute("tabindex","-1")),this.node.setAttribute("aria-expanded","true"),this.treeView?.expandAncestorsForNode(this),this.iconPair&&this.iconPair.showExpanded(),this.expandedToggleIcon&&this.collapsedToggleIcon&&(this.expandedToggleIcon.removeAttribute("hidden"),this.collapsedToggleIcon.setAttribute("hidden","hidden"))):(this.subTree&&(this.subTree.hidden=!0),b(this,va,"m",Ma).call(this)&&(this.subTree.removeAttribute("role"),this.subTree.removeAttribute("tabindex")),this.node.setAttribute("aria-expanded","false"),this.iconPair&&this.iconPair.showCollapsed(),this.expandedToggleIcon&&this.collapsedToggleIcon&&(this.expandedToggleIcon.setAttribute("hidden","hidden"),this.collapsedToggleIcon.removeAttribute("hidden"))),this.loadingState){case"loading":this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!0),this.loadingIndicator&&(this.loadingIndicator.hidden=!1);break;case"error":this.loadingIndicator&&(this.loadingIndicator.hidden=!0),this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!1);break;default:this.loadingIndicator&&(this.loadingIndicator.hidden=!0),this.loadingFailureMessage&&(this.loadingFailureMessage.hidden=!0)}},Ma=function(){return this.subTree?.getAttribute("data-target")?.includes("tree-view-sub-tree-node.includeFragment")??!1},Ia=function(){return this.querySelector(".TreeViewItemCheckbox")},g([U],Da.prototype,"node",void 0),g([U],Da.prototype,"subTree",void 0),g([U],Da.prototype,"iconPair",void 0),g([U],Da.prototype,"toggleButton",void 0),g([U],Da.prototype,"expandedToggleIcon",void 0),g([U],Da.prototype,"collapsedToggleIcon",void 0),g([U],Da.prototype,"includeFragment",void 0),g([U],Da.prototype,"loadingIndicator",void 0),g([U],Da.prototype,"loadingFailureMessage",void 0),g([U],Da.prototype,"retryButton",void 0),Da=g([K("tree-view-sub-tree-node")],Da),window.customElements.get("tree-view-sub-tree-node")||(window.TreeViewSubTreeNodeElement=Da,window.customElements.define("tree-view-sub-tree-node",Da));let Pa=class TreeViewIncludeFragmentElement extends IncludeFragmentElement{request(){const t=super.request(),e=new URL(t.url);return e.searchParams.set("path",this.getAttribute("data-path")||""),new Request(e,{method:t.method,headers:t.headers,credentials:t.credentials})}};Pa=g([K("tree-view-include-fragment")],Pa),window.customElements.get("tree-view-include-fragment")||(window.TreeViewIncludeFragmentElement=Pa,window.customElements.define("tree-view-include-fragment",Pa))}();
|
|
2
2
|
//# sourceMappingURL=primer_view_components.js.map
|