(this.webpackJsonp=this.webpackJsonp||[]).push([[16,33],{"0a87":function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"h",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return a})),n.d(e,"j",(function(){return u})),n.d(e,"k",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"g",(function(){return g})),n.d(e,"l",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"d",(function(){return b}));var o=n("GuZl"),i=n("/lV4");const r="REF_TYPE_BRANCHES",s="REF_TYPE_TAGS",l="REF_TYPE_COMMITS",c=Object.freeze([r,s,l]),a="heads",u="tags",d="tag",f="branch",g="ref_type",h="x-total",p=o.h,b=Object.freeze({defaultLabelText:Object(i.__)("default"),dropdownHeader:Object(i.__)("Select Git revision"),searchPlaceholder:Object(i.__)("Search by Git revision"),noResultsWithQuery:Object(i.__)('No matching results for "%{query}"'),noResults:Object(i.__)("No matching results"),branchesErrorMessage:Object(i.__)("An error occurred while fetching branches. Retry the search."),tagsErrorMessage:Object(i.__)("An error occurred while fetching tags. Retry the search."),commitsErrorMessage:Object(i.__)("An error occurred while fetching commits. Retry the search."),branches:Object(i.__)("Branches"),tags:Object(i.__)("Tags"),commits:Object(i.__)("Commits"),noRefSelected:Object(i.__)("No ref selected"),totalCountLabel:Object(i.s__)("TotalRefCountIndicator|1000+")})},"3CjL":function(t,e,n){var o=n("6+df"),i=n("3ftC");t.exports=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=i(n))==n?n:0),void 0!==e&&(e=(e=i(e))==e?e:0),o(i(t),e,n)}},"6+df":function(t,e){t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},KnFb:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));const o=new Map,i=new Set;let r=null;const s=t=>{o.forEach((e,n)=>{let{callback:o,eventTypes:i}=e;const s="click"===t.type&&r||t;if(!n.contains(s.target)&&i.includes(t.type))try{o(t)}catch(t){0}}),"click"===t.type&&(r=null)},l=t=>{r=t};const c={bind:(t,e)=>{const{callback:n,eventTypes:c}=function(t){let{arg:e,value:n,modifiers:o}=t;const i=Object.keys(o);return{callback:n,eventTypes:i.length>0?i:["click"]}}(e);o.has(t)||(o.set(t,{callback:n,eventTypes:c}),(t=>{t.forEach(t=>{i.has(t)||("click"===t&&document.addEventListener("mousedown",l),document.addEventListener(t,s,{capture:!0}),i.add(t))}),r=null})(c))},unbind:t=>{const e=o.get(t);var n;e&&(o.delete(t),(n=e.eventTypes).forEach(t=>{i.has(t)&&[...o.values()].every(e=>{let{eventTypes:n}=e;return!n.includes(t)})&&(document.removeEventListener(t,s),i.delete(t))}),n.includes("click")&&!i.has("click")&&document.removeEventListener("mousedown",l))}}},"V5u/":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return r})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return s})),n.d(e,"h",(function(){return i})),n.d(e,"i",(function(){return o})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return g})),n.d(e,"l",(function(){return h})),n.d(e,"m",(function(){return f}));const o="shown",i="hidden",r="beforeClose",s="focusContent",l="ArrowDown",c="ArrowUp",a="End",u="Enter",d="Home",f="Space",g="absolute",h="fixed",p="gl-new-dropdown-contents"},WrwP:function(t,e,n){"use strict";n.d(e,"a",(function(){return H})),n.d(e,"b",(function(){return N}));var o=n("Xz+w"),i=n("tlyx");function r(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function s(t){return r(t).getComputedStyle(t)}function l(t){return t instanceof r(t).Node}function c(t){return l(t)?(t.nodeName||"").toLowerCase():"#document"}function a(t){return t instanceof r(t).HTMLElement}function u(t){return t instanceof r(t).Element}function d(t){return"undefined"!=typeof ShadowRoot&&(t instanceof r(t).ShadowRoot||t instanceof ShadowRoot)}function f(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=s(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function g(t){return["table","td","th"].includes(c(t))}function h(t){const e=p(),n=s(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function p(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function b(t){return["html","body","#document"].includes(c(t))}const m=Math.min,y=Math.max,v=Math.round,w=Math.floor,x=t=>({x:t,y:t});function O(t){const e=s(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=a(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,c=v(n)!==r||v(o)!==l;return c&&(n=r,o=l),{width:n,height:o,$:c}}function j(t){return u(t)?t:t.contextElement}function T(t){const e=j(t);if(!a(e))return x(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=O(e);let s=(r?v(n.width):n.width)/o,l=(r?v(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const _=x(0);function k(t,e,n){var o,i;if(void 0===e&&(e=!0),!p())return _;const s=t?r(t):window;return!n||e&&n!==s?_:{x:(null==(o=s.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(i=s.visualViewport)?void 0:i.offsetTop)||0}}function E(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const s=t.getBoundingClientRect(),l=j(t);let c=x(1);e&&(i?u(i)&&(c=T(i)):c=T(t));const a=k(l,n,i);let d=(s.left+a.x)/c.x,f=(s.top+a.y)/c.y,g=s.width/c.x,h=s.height/c.y;if(l){const t=r(l),e=i&&u(i)?r(i):i;let n=t.frameElement;for(;n&&i&&e!==t;){const t=T(n),e=n.getBoundingClientRect(),o=getComputedStyle(n),i=e.left+(n.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(o.paddingTop))*t.y;d*=t.x,f*=t.y,g*=t.x,h*=t.y,d+=i,f+=s,n=r(n).frameElement}}return Object(o.r)({width:g,height:h,x:d,y:f})}function S(t){return((l(t)?t.ownerDocument:t.document)||window.document).documentElement}function C(t){return u(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function R(t){return E(S(t)).left+C(t).scrollLeft}function A(t){if("html"===c(t))return t;const e=t.assignedSlot||t.parentNode||d(t)&&t.host||S(t);return d(e)?e.host:e}function L(t,e){var n;void 0===e&&(e=[]);const o=function t(e){const n=A(e);return b(n)?e.ownerDocument?e.ownerDocument.body:e.body:a(n)&&f(n)?n:t(n)}(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),s=r(o);return i?e.concat(s,s.visualViewport||[],f(o)?o:[]):e.concat(o,L(o))}function $(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=r(t),o=S(t),i=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,c=0,a=0;if(i){s=i.width,l=i.height;const t=p();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,a=i.offsetTop)}return{width:s,height:l,x:c,y:a}}(t,n);else if("document"===e)i=function(t){const e=S(t),n=C(t),o=t.ownerDocument.body,i=y(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=y(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+R(t);const c=-n.scrollTop;return"rtl"===s(o).direction&&(l+=y(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:c}}(S(t));else if(u(e))i=function(t,e){const n=E(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=a(t)?T(t):x(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=k(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Object(o.r)(i)}function D(t,e){const n=A(t);return!(n===e||!u(n)||b(n))&&("fixed"===s(n).position||D(n,e))}function B(t,e){return a(t)&&"fixed"!==s(t).position?e?e(t):t.offsetParent:null}function F(t,e){const n=r(t);if(!a(t))return n;let o=B(t,e);for(;o&&g(o)&&"static"===s(o).position;)o=B(o,e);return o&&("html"===c(o)||"body"===c(o)&&"static"===s(o).position&&!h(o))?n:o||function(t){let e=A(t);for(;a(e)&&!b(e);){if(h(e))return e;e=A(e)}return null}(t)||n}function P(t,e,n){const o=a(e),i=S(e),r="fixed"===n,s=E(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const u=x(0);if(o||!o&&!r)if(("body"!==c(e)||f(i))&&(l=C(e)),a(e)){const t=E(e,!0,r,e);u.x=t.x+e.clientLeft,u.y=t.y+e.clientTop}else i&&(u.x=R(i));return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}const q={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=L(t).filter(t=>u(t)&&"body"!==c(t)),i=null;const r="fixed"===s(t).position;let l=r?A(t):t;for(;u(l)&&!b(l);){const e=s(l),n=h(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||f(l)&&!n&&D(t,l))?o=o.filter(t=>t!==l):i=e,l=A(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],a=r.reduce((t,n)=>{const o=$(e,n,i);return t.top=y(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=y(o.left,t.left),t},$(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=a(n),r=S(n);if(n===r)return e;let s={scrollLeft:0,scrollTop:0},l=x(1);const u=x(0);if((i||!i&&"fixed"!==o)&&(("body"!==c(n)||f(r))&&(s=C(n)),a(n))){const t=E(n);l=T(n),u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+u.x,y:e.y*l.y-s.scrollTop*l.y+u.y}},isElement:u,getDimensions:function(t){return O(t)},getOffsetParent:F,getDocumentElement:S,getScale:T,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||F,r=this.getDimensions;return{reference:P(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===s(t).direction};function H(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,a=j(t),u=i||r?[...a?L(a):[],...L(e)]:[];u.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)});const d=a&&l?function(t,e){let n,o=null;const i=S(t);function r(){clearTimeout(n),o&&o.disconnect(),o=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),r();const{left:a,top:u,width:d,height:f}=t.getBoundingClientRect();if(l||e(),!d||!f)return;const g={rootMargin:-w(u)+"px "+-w(i.clientWidth-(a+d))+"px "+-w(i.clientHeight-(u+f))+"px "+-w(a)+"px",threshold:y(0,m(1,c))||1};let h=!0;function p(t){const e=t[0].intersectionRatio;if(e!==c){if(!h)return s();e?s(!1,e):n=setTimeout(()=>{s(!1,1e-7)},100)}h=!1}try{o=new IntersectionObserver(p,{...g,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(p,g)}o.observe(t)}(!0),r}(a,n):null;let f,g=-1,h=null;s&&(h=new ResizeObserver(t=>{let[o]=t;o&&o.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{h&&h.observe(e)})),n()}),a&&!c&&h.observe(a),h.observe(e));let p=c?E(t):null;return c&&function e(){const o=E(t);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n();p=o,f=requestAnimationFrame(e)}(),n(),()=>{u.forEach(t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)}),d&&d(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const N=(t,e,n)=>{const o=new Map,r={platform:q,...n},s={...r.platform,_c:o};return Object(i.b)(t,e,{...r,platform:s})}},"Xz+w":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return w})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return x})),n.d(e,"k",(function(){return O})),n.d(e,"l",(function(){return j})),n.d(e,"m",(function(){return f})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return l})),n.d(e,"p",(function(){return s})),n.d(e,"q",(function(){return r})),n.d(e,"r",(function(){return T})),n.d(e,"s",(function(){return o}));const o=["top","right","bottom","left"],i=["start","end"],r=o.reduce((t,e)=>t.concat(e,e+"-"+i[0],e+"-"+i[1]),[]),s=Math.min,l=Math.max,c=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),a={start:"end",end:"start"};function u(t,e,n){return l(t,s(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function p(t){return"y"===t?"height":"width"}function b(t){return["top","bottom"].includes(f(t))?"y":"x"}function m(t){return h(b(t))}function y(t,e,n){void 0===n&&(n=!1);const o=g(t),i=m(t),r=p(i);let s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=O(s)),[s,O(s)]}function v(t){const e=O(t);return[w(t),e,w(e)]}function w(t){return t.replace(/start|end/g,t=>a[t])}function x(t,e,n,o){const i=g(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}(f(t),"start"===n,o);return i&&(r=r.map(t=>t+"-"+i),e&&(r=r.concat(r.map(w)))),r}function O(t){return t.replace(/left|right|bottom|top/g,t=>c[t])}function j(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function T(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}},ehHk:function(t,e,n){"use strict";var o=n("htNe"),i=n.n(o),r=n("Pyw5"),s=n.n(r);const l=i()(t=>new IntersectionObserver(t=>{t.forEach(t=>{t.target.$_gl_intersectionHandler(t)})},t||{}));const c={name:"GlIntersectionObserver",props:{options:{type:Object,required:!1,default:null}},mounted(){const t=l(this.options);this.$el.$_gl_intersectionHandler=t=>{this.$emit("update",t),t.isIntersecting?this.$emit("appear"):this.$emit("disappear")},this.$el.$_gl_intersectionObserver=t,t.observe(this.$el)},destroyed(){this.$el.$_gl_intersectionObserver.unobserve(this.$el),delete this.$el.$_gl_intersectionHandler,delete this.$el.$_gl_intersectionObserver},getObserver:l};const a=s()({render:function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)},staticRenderFns:[]},void 0,c,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=a},qaCH:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var o=n("o4PY"),i=n.n(o),r=n("tlyx"),s=n("WrwP"),l=n("XBTk"),c=n("V5u/"),a=n("Qog8"),u=n("KnFb"),d=n("4lAS"),f=n("s1D3");var g=n("Pyw5"),h=n.n(g);const p="gl-new-dropdown";const b={name:"BaseDropdown",BASE_DROPDOWN_CLASS:p,components:{GlButton:d.a,GlIcon:f.a},directives:{Outside:u.a},props:{toggleText:{type:String,required:!1,default:""},textSrOnly:{type:Boolean,required:!1,default:!1},block:{type:Boolean,required:!1,default:!1},category:{type:String,required:!1,default:l.m.primary,validator:t=>Object.keys(l.m).includes(t)},variant:{type:String,required:!1,default:l.w.default,validator:t=>Object.keys(l.w).includes(t)},size:{type:String,required:!1,default:"medium",validator:t=>Object.keys(l.n).includes(t)},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},toggleClass:{type:[String,Array,Object],required:!1,default:null},noCaret:{type:Boolean,required:!1,default:!1},placement:{type:String,required:!1,default:"bottom-start",validator:t=>(["left","center","right"].includes(t)&&Object(a.i)(`GlDisclosureDropdown/GlCollapsibleListbox: "${t}" placement is deprecated.\n            Use ${l.v[t]} instead.`),Object.keys(l.v).includes(t))},ariaHaspopup:{type:[String,Boolean],required:!1,default:!1,validator:t=>["menu","listbox","tree","grid","dialog",!0,!1].includes(t)},toggleId:{type:String,required:!0},ariaLabelledby:{type:String,required:!1,default:null},offset:{type:[Number,Object],required:!1,default:()=>({mainAxis:4})},fluidWidth:{type:Boolean,required:!1,default:!1},positioningStrategy:{type:String,required:!1,default:c.k,validator:t=>[c.k,c.l].includes(t)}},data:()=>({openedYet:!1,visible:!1,baseDropdownId:i()("base-dropdown-")}),computed:{hasNoVisibleToggleText(){var t;return!(null!==(t=this.toggleText)&&void 0!==t&&t.length)||this.textSrOnly},isIconOnly(){return Boolean(this.icon&&this.hasNoVisibleToggleText)},isEllipsisButton(){return this.isIconOnly&&"ellipsis_h"===this.icon},isCaretOnly(){return!this.noCaret&&!this.icon&&this.hasNoVisibleToggleText},ariaAttributes(){return{"aria-haspopup":this.ariaHaspopup,"aria-expanded":String(this.visible),"aria-controls":this.baseDropdownId,"aria-labelledby":this.toggleLabelledBy}},toggleButtonClasses(){return[this.toggleClass,{"gl-new-dropdown-toggle":!0,"button-ellipsis-horizontal":this.isEllipsisButton,"gl-new-dropdown-icon-only btn-icon":this.isIconOnly&&!this.isEllipsisButton,"gl-new-dropdown-toggle-no-caret":this.noCaret,"gl-new-dropdown-caret-only btn-icon":this.isCaretOnly}]},toggleButtonTextClasses(){return this.block?"gl-w-full":""},toggleLabelledBy(){return this.ariaLabelledby?`${this.ariaLabelledby} ${this.toggleId}`:this.toggleId},isDefaultToggle(){return!this.$scopedSlots.toggle},toggleOptions(){return this.isDefaultToggle?{is:d.a,icon:this.icon,block:this.block,buttonTextClasses:this.toggleButtonTextClasses,category:this.category,variant:this.variant,size:this.size,disabled:this.disabled,loading:this.loading,class:this.toggleButtonClasses,...this.ariaAttributes,listeners:{keydown:t=>this.onKeydown(t),click:t=>this.toggle(t)}}:{is:"div",class:"gl-new-dropdown-custom-toggle",listeners:{keydown:t=>this.onKeydown(t),click:t=>this.toggle(t)}}},toggleListeners(){return this.toggleOptions.listeners},toggleAttributes(){const{listeners:t,is:e,...n}=this.toggleOptions;return n},toggleComponent(){return this.toggleOptions.is},toggleElement(){var t;return this.$refs.toggle.$el||(null===(t=this.$refs.toggle)||void 0===t?void 0:t.firstElementChild)},panelClasses(){return{"!gl-block":this.visible,"!gl-w-31":!this.fluidWidth,"gl-fixed":this.openedYet&&this.isFixed,"gl-absolute":this.openedYet&&!this.isFixed}},isFixed(){return this.positioningStrategy===c.l},floatingUIConfig(){const t=l.v[this.placement],[,e]=t.split("-");return{placement:t,strategy:this.positioningStrategy,middleware:[Object(r.d)(this.offset),Object(r.a)({alignment:e,allowedPlacements:l.u[this.placement]}),Object(r.e)(),Object(r.f)({apply:t=>{var e;let{availableHeight:n,elements:o}=t;const i=o.floating.querySelector("."+c.f);if(!i)return;const r=n-(null!==(e=this.nonScrollableContentHeight)&&void 0!==e?e:0)-4;Object.assign(i.style,{maxHeight:Math.max(r,0)+"px"})}})]}}},watch:{ariaAttributes:{deep:!0,handler(t){this.$scopedSlots.toggle&&Object.keys(t).forEach(e=>{this.toggleElement.setAttribute(e,t[e])})}}},mounted(){this.checkToggleFocusable()},beforeDestroy(){this.stopFloating()},methods:{checkToggleFocusable(){Object(a.g)(this.toggleElement)||Object(a.h)(this.toggleElement)||Object(a.i)("GlDisclosureDropdown/GlCollapsibleListbox: Toggle is missing a 'tabindex' and cannot be focused.\n          Use 'a' or 'button' element instead or make sure to add 'role=\"button\"' along with 'tabindex' otherwise.",this.$el)},async startFloating(){this.calculateNonScrollableAreaHeight(),this.observer=new MutationObserver(this.calculateNonScrollableAreaHeight),this.observer.observe(this.$refs.content,{attributes:!1,childList:!0,subtree:!0}),this.stopAutoUpdate=Object(s.a)(this.toggleElement,this.$refs.content,async()=>{const{x:t,y:e}=await Object(s.b)(this.toggleElement,this.$refs.content,this.floatingUIConfig);this.$refs.content&&Object.assign(this.$refs.content.style,{left:t+"px",top:e+"px"})})},stopFloating(){var t,e;null===(t=this.observer)||void 0===t||t.disconnect(),null===(e=this.stopAutoUpdate)||void 0===e||e.call(this)},async toggle(t){if(t&&this.visible){let e=!1;if(this.$emit(c.e,{originalEvent:t,preventDefault(){e=!0}}),e)return!1}return this.visible=!this.visible,this.visible?(await this.$nextTick(),this.openedYet=!0,this.startFloating(),this.$emit(c.i)):(this.stopFloating(),this.$emit(c.h)),!0},open(){this.visible||this.toggle()},close(t){this.visible&&this.toggle(t)},async closeAndFocus(t){if(!this.visible)return;const e=this.$el.contains(document.activeElement),n=await this.toggle(t);e&&n&&this.focusToggle()},focusToggle(){this.toggleElement.focus()},onKeydown(t){const{code:e,target:{tagName:n}}=t;let o=!0,i=!0;"BUTTON"===n?(o=!1,i=!1):"A"===n&&(o=!1),(e===c.d&&o||e===c.m&&i)&&this.toggle(t),e===c.a&&this.$emit(c.g,t)},calculateNonScrollableAreaHeight(){var t;const e=null===(t=this.$refs.content)||void 0===t?void 0:t.querySelector("."+c.f);if(!e)return;const n=this.$refs.content.getBoundingClientRect(),o=e.getBoundingClientRect();this.nonScrollableContentHeight=n.height-o.height}}};const m=h()({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"outside",rawName:"v-outside.click.focusin",value:t.close,expression:"close",modifiers:{click:!0,focusin:!0}}],class:[t.$options.BASE_DROPDOWN_CLASS,{"!gl-block":t.block}]},[n(t.toggleComponent,t._g(t._b({ref:"toggle",tag:"component",attrs:{id:t.toggleId,"data-testid":"base-dropdown-toggle"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.stopPropagation(),e.preventDefault(),t.close.apply(null,arguments))}}},"component",t.toggleAttributes,!1),t.toggleListeners),[t._t("toggle",(function(){return[n("span",{staticClass:"gl-new-dropdown-button-text",class:{"gl-sr-only":t.textSrOnly}},[t._v("\n        "+t._s(t.toggleText)+"\n      ")]),t._v(" "),t.noCaret?t._e():n("gl-icon",{staticClass:"gl-button-icon gl-new-dropdown-chevron",attrs:{name:"chevron-down"}})]}))],2),t._v(" "),n("div",{ref:"content",staticClass:"gl-new-dropdown-panel",class:t.panelClasses,attrs:{id:t.baseDropdownId,"data-testid":"base-dropdown-menu"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.stopPropagation(),e.preventDefault(),t.closeAndFocus.apply(null,arguments))}}},[n("div",{staticClass:"gl-new-dropdown-inner"},[t._t("default")],2)])],1)},staticRenderFns:[]},void 0,b,void 0,!1,void 0,!1,void 0,void 0,void 0);e.b=m},tlyx:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return d}));var o=n("Xz+w");function i(t,e,n){let{reference:i,floating:r}=t;const s=Object(o.n)(e),l=Object(o.d)(e),c=Object(o.f)(l),a=Object(o.m)(e),u="y"===s,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,g=i[c]/2-r[c]/2;let h;switch(a){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-r.width,y:f};break;default:h={x:i.x,y:i.y}}switch(Object(o.c)(e)){case"start":h[l]-=g*(n&&u?-1:1);break;case"end":h[l]+=g*(n&&u?-1:1)}return h}const r=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=i(u,o,a),g=o,h={},p=0;for(let n=0;n<c.length;n++){const{name:s,fn:b}=c[n],{x:m,y:y,data:v,reset:w}=await b({x:d,y:f,initialPlacement:o,placement:g,strategy:r,middlewareData:h,rects:u,platform:l,elements:{reference:t,floating:e}});d=null!=m?m:d,f=null!=y?y:f,h={...h,[s]:{...h[s],...v}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(g=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):w.rects),({x:d,y:f}=i(u,g,a))),n=-1)}return{x:d,y:f,placement:g,strategy:r,middlewareData:h}};async function s(t,e){var n;void 0===e&&(e={});const{x:i,y:r,platform:s,rects:l,elements:c,strategy:a}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=Object(o.b)(e,t),p=Object(o.l)(h),b=c[g?"floating"===f?"reference":"floating":f],m=Object(o.r)(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(b)))||n?b:b.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:a})),y="floating"===f?{...l.floating,x:i,y:r}:l.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c.floating)),w=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},x=Object(o.r)(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:a}):y);return{top:(m.top-x.top+p.top)/w.y,bottom:(x.bottom-m.bottom+p.bottom)/w.y,left:(m.left-x.left+p.left)/w.x,right:(x.right-m.right+p.right)/w.x}}const l=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,r;const{rects:l,middlewareData:c,placement:a,platform:u,elements:d}=e,{crossAxis:f=!1,alignment:g,allowedPlacements:h=o.q,autoAlignment:p=!0,...b}=Object(o.b)(t,e),m=void 0!==g||h===o.q?function(t,e,n){return(t?[...n.filter(e=>Object(o.c)(e)===t),...n.filter(e=>Object(o.c)(e)!==t)]:n.filter(t=>Object(o.m)(t)===t)).filter(n=>!t||(Object(o.c)(n)===t||!!e&&Object(o.h)(n)!==n))}(g||null,p,h):h,y=await s(e,b),v=(null==(n=c.autoPlacement)?void 0:n.index)||0,w=m[v];if(null==w)return{};const x=Object(o.e)(w,l,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(a!==w)return{reset:{placement:m[0]}};const O=[y[Object(o.m)(w)],y[x[0]],y[x[1]]],j=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:w,overflows:O}],T=m[v+1];if(T)return{data:{index:v+1,overflows:j},reset:{placement:T}};const _=j.map(t=>{const e=Object(o.c)(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),k=(null==(r=_.filter(t=>t[2].slice(0,Object(o.c)(t[0])?2:3).every(t=>t<=0))[0])?void 0:r[0])||_[0][0];return k!==a?{data:{index:v+1,overflows:j},reset:{placement:k}}:{}}}},c=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:l,rects:c,initialPlacement:a,platform:u,elements:d}=e,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...y}=Object(o.b)(t,e);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const v=Object(o.m)(r),w=Object(o.m)(a)===a,x=await(null==u.isRTL?void 0:u.isRTL(d.floating)),O=h||(w||!m?[Object(o.k)(a)]:Object(o.g)(a));h||"none"===b||O.push(...Object(o.j)(a,m,b,x));const j=[a,...O],T=await s(e,y),_=[];let k=(null==(i=l.flip)?void 0:i.overflows)||[];if(f&&_.push(T[v]),g){const t=Object(o.e)(r,c,x);_.push(T[t[0]],T[t[1]])}if(k=[...k,{placement:r,overflows:_}],!_.every(t=>t<=0)){var E,S;const t=((null==(E=l.flip)?void 0:E.index)||0)+1,e=j[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(S=k.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var C;const t=null==(C=k.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:C[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const a=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:s,placement:l,middlewareData:c}=e,a=await async function(t,e){const{placement:n,platform:i,elements:r}=t,s=await(null==i.isRTL?void 0:i.isRTL(r.floating)),l=Object(o.m)(n),c=Object(o.c)(n),a="y"===Object(o.n)(n),u=["left","top"].includes(l)?-1:1,d=s&&a?-1:1,f=Object(o.b)(e,t);let{mainAxis:g,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof p&&(h="end"===c?-1*p:p),a?{x:h*d,y:g*u}:{x:g*u,y:h*d}}(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(i=c.arrow)&&i.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:l}}}}},u=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...u}=Object(o.b)(t,e),d={x:n,y:i},f=await s(e,u),g=Object(o.n)(Object(o.m)(r)),h=Object(o.i)(g);let p=d[h],b=d[g];if(l){const t="y"===h?"bottom":"right",e=p+f["y"===h?"top":"left"],n=p-f[t];p=Object(o.a)(e,p,n)}if(c){const t="y"===g?"bottom":"right",e=b+f["y"===g?"top":"left"],n=b-f[t];b=Object(o.a)(e,b,n)}const m=a.fn({...e,[h]:p,[g]:b});return{...m,data:{x:m.x-n,y:m.y-i}}}}},d=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:r,elements:l}=e,{apply:c=(()=>{}),...a}=Object(o.b)(t,e),u=await s(e,a),d=Object(o.m)(n),f=Object(o.c)(n),g="y"===Object(o.n)(n),{width:h,height:p}=i.floating;let b,m;"top"===d||"bottom"===d?(b=d,m=f===(await(null==r.isRTL?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(m=d,b="end"===f?"top":"bottom");const y=p-u[b],v=h-u[m],w=!e.middlewareData.shift;let x=y,O=v;if(g){const t=h-u.left-u.right;O=f||w?Object(o.p)(v,t):t}else{const t=p-u.top-u.bottom;x=f||w?Object(o.p)(y,t):t}if(w&&!f){const t=Object(o.o)(u.left,0),e=Object(o.o)(u.right,0),n=Object(o.o)(u.top,0),i=Object(o.o)(u.bottom,0);g?O=h-2*(0!==t||0!==e?t+e:Object(o.o)(u.left,u.right)):x=p-2*(0!==n||0!==i?n+i:Object(o.o)(u.top,u.bottom))}await c({...e,availableWidth:O,availableHeight:x});const j=await r.getDimensions(l.floating);return h!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}}}}]);
//# sourceMappingURL=commons-pages.groups.security.policies.edit-pages.groups.security.policies.new-pages.projects.blob.s-823210c2.3552e27d.chunk.js.map