(this.webpackJsonp=this.webpackJsonp||[]).push([[90],{"+kWK":function(e,t,i){"use strict";var n=i("XCkn"),a=i.n(n),r=i("DZUU"),o=i("tbP8"),s=i("IZAz"),l=i("/lV4"),c=i("0DeP"),d={name:"UserAvatarImage",components:{GlTooltip:r.a,GlAvatar:o.a},props:{lazy:{type:Boolean,required:!1,default:!1},imgSrc:{type:String,required:!1,default:s.a},cssClasses:{type:String,required:!1,default:""},imgAlt:{type:String,required:!1,default:Object(l.a)("user avatar")},size:{type:[Number,Object],required:!0},tooltipText:{type:String,required:!1,default:""},tooltipPlacement:{type:String,required:!1,default:"top"},pseudo:{type:Boolean,required:!1,default:!1}},computed:{sanitizedSource(){let e=""===this.imgSrc||null===this.imgSrc?s.a:this.imgSrc;return 0===e.indexOf("data:")||e.includes("?")||(e+="?width="+this.maximumSize),e},maximumSize(){return a()(this.size)?2*Math.max(...Object.values(this.size)):2*this.size},resultantSrcAttribute(){return this.lazy?c.b:this.sanitizedSource}}},u=i("tBpV"),p=Object(u.a)(d,(function(){var e=this,t=e._self._c;return t("span",{ref:"userAvatar"},[t("gl-avatar",{staticClass:"gl-bg-cover",class:{lazy:e.lazy,[e.cssClasses]:!0},style:e.pseudo?{backgroundImage:`url('${e.sanitizedSource}')`}:null,attrs:{src:e.pseudo?void 0:e.resultantSrcAttribute,"data-src":e.sanitizedSource,size:e.size,alt:e.imgAlt,"data-testid":"user-avatar-image"}}),e._v(" "),e.tooltipText||e.$scopedSlots.default?t("gl-tooltip",{attrs:{target:function(){return e.$refs.userAvatar},placement:e.tooltipPlacement,boundary:"window"}},[e._t("default",(function(){return[e._v(e._s(e.tooltipText))]}))],2):e._e()],1)}),[],!1,null,null,null);t.a=p.exports},"1fc5":function(e,t,i){"use strict";var n=i("9k56"),a=i("lgrP"),r=i("3hkr"),o=i("jIK5"),s=i("VuSA"),l=i("hII5"),c=i("XREi");const d=Object(l.c)(Object(s.m)({...Object(s.k)(c.b,["size"]),ariaRole:Object(l.b)(o.r,"group"),size:Object(l.b)(o.r),tag:Object(l.b)(o.r,"div"),vertical:Object(l.b)(o.g,!1)}),r.g),u=Object(n.c)({name:r.g,functional:!0,props:d,render(e,t){let{props:i,data:n,children:r}=t;return e(i.tag,Object(a.a)(n,{class:{"btn-group":!i.vertical,"btn-group-vertical":i.vertical,["btn-group-"+i.size]:i.size},attrs:{role:i.ariaRole}}),r)}});var p=i("Pyw5");const m={name:"GlButtonGroup",components:{BButtonGroup:u}};const f=i.n(p)()({render:function(){var e=this.$createElement;return(this._self._c||e)("b-button-group",this._g(this._b({},"b-button-group",this.$attrs,!1),this.$listeners),[this._t("default")],2)},staticRenderFns:[]},void 0,m,void 0,!1,void 0,!1,void 0,void 0,void 0);t.a=f},"5JsC":function(e,t){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Author"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"username"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webPath"},arguments:[],directives:[]}]}}],loc:{start:0,end:82}};i.loc.source={body:"fragment Author on User {\n  id\n  avatarUrl\n  name\n  username\n  webUrl\n  webPath\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),n[e.name.value]=t}})),e.exports=i,e.exports.Author=function(e,t){var i={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=n[t]||new Set,o=new Set,s=new Set;for(r.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var n=a(e,t);n&&i.definitions.push(n)})),i}(i,"Author")},"5QKO":function(e,t,i){"use strict";var n=i("bOix");t.a={methods:{timeFormatted:(e,t)=>Object(n.y)(t).format(Object(n.M)(e),n.S),tooltipTitle:e=>n.H.asDateTimeFull.format(Object(n.M)(e))}}},"67aS":function(e,t,i){"use strict";var n=i("FkSe"),a=i("Mp8J"),r=i("MA/v"),o=i("RQlu"),s=i("NmEs"),l=i("D+x4"),c=i("i1z4"),d=i("0ch9"),u={props:{content:{type:String,required:!1,default:null},richViewer:{type:String,default:"",required:!1},type:{type:String,required:!0},isRawContent:{type:Boolean,default:!1,required:!1},fileName:{type:String,required:!1,default:""},hideLineNumbers:{type:Boolean,required:!1,default:!1}},mounted(){c.a.$emit(d.A)}};var p={components:{MarkdownFieldView:o.a},directives:{SafeHtml:a.a},mixins:[u],data:()=>({isLoading:!0,initialContent:null,remainingContent:[]}),computed:{rawContent(){return this.initialContent||this.richViewer||this.content},isMarkup(){return"markup"===this.type}},created(){this.optimizeMarkupRendering()},mounted(){this.renderRemainingMarkup(),Object(r.handleBlobRichViewer)(this.$refs.content,this.type)},methods:{optimizeMarkupRendering(){if(!this.isMarkup)return;const e=document.createElement("div");e.innerHTML=Object(l.a)(this.rawContent,this.$options.safeHtmlConfig);const t=e.querySelector(".js-markup-content");if(!t)return;const i=[...t.childNodes].slice(0,20);this.remainingContent=[...t.childNodes].slice(20),t.innerHTML="",t.append(...i),this.initialContent=e.outerHTML},renderRemainingMarkup(){var e=this;if(!this.isMarkup||!this.remainingContent.length)return void this.onContentLoaded();const t=this.$refs.content.$el.querySelector(".js-markup-content");for(let i=0;i<this.remainingContent.length;i+=20){const n=i+20,a=this.remainingContent.slice(i,n);setTimeout((function(){t.append(...a),n<e.remainingContent.length||e.onContentLoaded()}),i)}},onContentLoaded(){this.$emit("richContentLoaded"),Object(s.n)(),this.isLoading=!1}},safeHtmlConfig:{ADD_TAGS:["gl-emoji","copy-code"]}},m=i("tBpV"),f=Object(m.a)(p,(function(){return(0,this._self._c)("markdown-field-view",{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfig]",value:this.rawContent,expression:"rawContent",arg:this.$options.safeHtmlConfig}],ref:"content",attrs:{"is-loading":this.isLoading}})}),[],!1,null,null,null).exports,b=(i("RFHG"),i("z6RN"),i("xuo1"),i("v2fZ"),i("L9Ro")),h=i("bds0"),g=i("s6YX"),v=i.n(g),w={name:"SimpleViewer",components:{Blame:b.a},directives:{SafeHtml:a.a},mixins:[u],inject:["blobHash"],props:{blobPath:{type:String,required:!0},showBlame:{type:Boolean,required:!1,default:!1},isBlameLinkHidden:{type:Boolean,required:!1,default:!1},projectPath:{type:String,required:!1,default:""},lineNumbers:{type:Number,required:!0},currentRef:{type:String,required:!1,default:""},blamePath:{type:String,required:!1,default:""}},data:()=>({highlightedLine:null,blameData:[],fromLine:1,toLine:100}),computed:{showBlameLink(){return!this.isBlameLinkHidden&&!this.showBlame},blameInfoForRange(){var e=this;return this.blameData.reduce((function(t,i,n){return Object(h.b)(e.blameData,n)&&t.push({...i,blameOffset:Object(h.a)(i.lineno,n)}),t}),[])}},watch:{showBlame:{handler(e){Object(h.c)(this.blameData,e),this.requestBlameInfo(this.fromLine,this.toLine)},immediate:!0},blameData:{handler(e){this.showBlame&&Object(h.c)(e,!0)},immediate:!0}},mounted(){const{hash:e}=window.location;e&&this.scrollToLine(e,!0),this.toLine=this.lineNumbers<=100?this.lineNumbers:100},methods:{scrollToLine(e,t=!1){const i=e&&this.$el.querySelector(e),n=this.highlightedLine;i&&(n&&n.classList.remove("hll"),i.classList.add("hll"),this.highlightedLine=i,t&&i.scrollIntoView({behavior:"smooth",block:"center"}))},async requestBlameInfo(e,t){var i,n;if(!this.showBlame)return;const{data:a}=await this.$apollo.query({query:v.a,variables:{ref:this.currentRef,fullPath:this.projectPath,filePath:this.blobPath,fromLine:e,toLine:t}}),r=null==a||null===(i=a.project)||void 0===i||null===(i=i.repository)||void 0===i||null===(i=i.blobs)||void 0===i?void 0:i.nodes[0],o=null==r||null===(n=r.blame)||void 0===n?void 0:n.groups,s=this.blameData.includes(o[0]);o&&!s&&this.blameData.push(...o),this.toLine<this.lineNumbers&&(this.fromLine+=100,this.toLine+=100,this.requestBlameInfo(this.fromLine,this.toLine))}},userColorScheme:window.gon.user_color_scheme},k=Object(m.a)(w,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"file-content code js-syntax-highlight gl-flex",class:e.$options.userColorScheme},[e.showBlame&&e.blameInfoForRange.length?t("blame",{attrs:{"blame-info":e.blameInfoForRange}}):e._e(),e._v(" "),t("div",{staticClass:"line-numbers !gl-px-0"},e._l(e.lineNumbers,(function(i){return t("div",{key:i,staticClass:"diff-line-num line-links gl-flex"},[e.showBlameLink?t("a",{staticClass:"file-line-blame -gl-mx-2 gl-select-none !gl-shadow-none",attrs:{href:`${e.blamePath}#L${i}`}}):e._e(),e._v(" "),t("a",{key:i,staticClass:"file-line-num gl-select-none !gl-shadow-none",attrs:{id:"L"+i,href:"#L"+i,"data-line-number":i},on:{click:function(t){return e.scrollToLine("#LC"+i)}}},[e._v("\n          "+e._s(i)+"\n        ")])])})),0),e._v(" "),t("div",{staticClass:"blob-content gl-flex gl-w-full gl-flex-col gl-overflow-y-auto"},[t("pre",{staticClass:"code highlight !gl-p-0"},[t("code",{directives:[{name:"safe-html",rawName:"v-safe-html",value:e.content,expression:"content"}],attrs:{"data-blob-hash":e.blobHash}})])])],1)])}),[],!1,null,null,null).exports,y=(i("B++/"),i("47t/"),i("30su")),j=i("MV2A"),S=i("/lV4"),_=i("7bJy"),x={components:{GlSprintf:y.a,GlLink:j.a},props:{viewerError:{type:String,required:!0},blob:{type:Object,required:!1,default:function(){return{}}}},computed:{notStoredExternally(){return this.viewerError!==_.c.REASONS.EXTERNAL.id},renderErrorReason(){var e=this;const t=Object.keys(_.c.REASONS).find((function(t){return _.c.REASONS[t].id===e.viewerError})),i=_.c.REASONS[t].text;return this.notStoredExternally?i:i[this.blob.externalStorage||"default"]},renderErrorOptions(){return[{..._.c.OPTIONS.LOAD,condition:this.shouldShowLoadBtn},{..._.c.OPTIONS.SHOW_SOURCE,condition:this.shouldShowSourceBtn},{..._.c.OPTIONS.DOWNLOAD,href:this.blob.rawPath}]},shouldShowLoadBtn(){return this.viewerError===_.c.REASONS.COLLAPSED.id},shouldShowSourceBtn(){return this.blob.richViewer&&this.blob.renderedAsText&&this.notStoredExternally}},errorMessage:Object(S.a)("Content could not be displayed: %{reason}. Options to address this: %{options}.")},E=Object(m.a)(x,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"file-content code"},[t("div",{staticClass:"text-center py-4"},[t("gl-sprintf",{attrs:{message:e.$options.errorMessage},scopedSlots:e._u([{key:"reason",fn:function(){return[e._v(e._s(e.renderErrorReason))]},proxy:!0},{key:"options",fn:function(){return[e._l(e.renderErrorOptions,(function(i){return[i.condition?t("span",{key:i.text},[t("gl-link",{attrs:{href:i.href,target:i.target,"data-test-id":"option-"+i.id},on:{click:function(t){i.event&&e.$emit(i.event)}}},[e._v(e._s(i.text))]),e._v("\n            "+e._s(i.conjunction)+"\n          ")],1):e._e()]}))]},proxy:!0}])})],1)])}),[],!1,null,null,null).exports,N={name:"BlobContent",components:{GlLoadingIcon:n.a,BlobContentError:E},props:{blob:{type:Object,required:!1,default:function(){return{}}},projectPath:{type:String,required:!1,default:""},currentRef:{type:String,required:!1,default:""},content:{type:String,default:"",required:!1},showBlame:{type:Boolean,required:!1,default:!1},isRawContent:{type:Boolean,default:!1,required:!1},richViewer:{type:String,default:"",required:!1},loading:{type:Boolean,default:!0,required:!1},activeViewer:{type:Object,required:!0},isBlameLinkHidden:{type:Boolean,required:!1,default:!1},hideLineNumbers:{type:Boolean,required:!1,default:!1}},data:()=>({richContentLoaded:!1}),computed:{viewer(){switch(this.activeViewer.type){case"rich":return f;default:return k}},viewerError(){return this.activeViewer.renderError},lineNumbers(){var e,t;const i=(null===(e=this.blob)||void 0===e?void 0:e.rawTextBlob)||this.content;return(null==i||null===(t=i.split("\n"))||void 0===t?void 0:t.length)||0},isContentLoaded(){return this.activeViewer.type===_.i?!this.loading&&this.richContentLoaded:!this.loading}},BLOB_RENDER_EVENT_LOAD:_.d,BLOB_RENDER_EVENT_SHOW_SOURCE:_.e},B=Object(m.a)(N,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"blob-viewer",attrs:{"data-type":e.activeViewer.type,"data-loaded":e.isContentLoaded}},[e.loading?t("gl-loading-icon",{staticClass:"my-4 mx-auto",attrs:{size:"lg",color:"dark"}}):[e.viewerError?t("blob-content-error",{attrs:{"viewer-error":e.viewerError,blob:e.blob},on:e._d({},[e.$options.BLOB_RENDER_EVENT_LOAD,function(t){return e.$emit(e.$options.BLOB_RENDER_EVENT_LOAD)},e.$options.BLOB_RENDER_EVENT_SHOW_SOURCE,function(t){return e.$emit(e.$options.BLOB_RENDER_EVENT_SHOW_SOURCE)}])}):t(e.viewer,{ref:"contentViewer",tag:"component",attrs:{content:e.content,"current-ref":e.currentRef,"project-path":e.projectPath,"blob-path":e.blob.path||"","rich-viewer":e.richViewer,"is-raw-content":e.isRawContent,"show-blame":e.showBlame,"file-name":e.blob.name,"blame-path":e.blob.blamePath,type:e.activeViewer.fileType,"line-numbers":e.lineNumbers,"is-blame-link-hidden":e.isBlameLinkHidden,"hide-line-numbers":e.hideLineNumbers,"data-testid":"blob-viewer-file-content"},on:{richContentLoaded:function(t){e.richContentLoaded=!0}}})]],2)}),[],!1,null,null,null);t.a=B.exports},"6L/t":function(e,t,i){"use strict";var n=i("1fc5"),a=i("4lAS"),r=i("z1xw"),o=i("/lV4"),s=i("3twG"),l=i("7bJy"),c={components:{GlButtonGroup:n.a,GlButton:a.a},directives:{GlTooltip:r.a},inject:{blobHash:{default:""},canDownloadCode:{default:!0}},props:{rawPath:{type:String,required:!0},activeViewer:{type:String,default:l.k,required:!1},hasRenderError:{type:Boolean,required:!1,default:!1},isBinary:{type:Boolean,required:!1,default:!1},environmentName:{type:String,required:!1,default:null},environmentPath:{type:String,required:!1,default:null},isEmpty:{type:Boolean,required:!1,default:!1},overrideCopy:{type:Boolean,required:!1,default:!1}},computed:{downloadUrl(){return Object(s.L)({inline:!1},Object(s.G)(this.rawPath,Object(s.l)()))},copyDisabled(){return this.activeViewer===l.i},getBlobHashTarget(){return this.overrideCopy?null:`[data-blob-hash="${this.blobHash}"]`},showCopyButton(){return!this.hasRenderError&&!this.isBinary},environmentTitle(){return Object(o.h)(Object(o.g)("BlobViewer|View on %{environmentName}"),{environmentName:this.environmentName})}},methods:{onCopy(){this.overrideCopy&&this.$emit("copy")}},BTN_COPY_CONTENTS_TITLE:l.f,BTN_DOWNLOAD_TITLE:l.g,BTN_RAW_TITLE:l.h},d=i("tBpV"),u=Object(d.a)(c,(function(){var e=this,t=e._self._c;return t("gl-button-group",{attrs:{"data-testid":"default-actions-container"}},[e.showCopyButton?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],staticClass:"js-copy-blob-source-btn",attrs:{"aria-label":e.$options.BTN_COPY_CONTENTS_TITLE,title:e.$options.BTN_COPY_CONTENTS_TITLE,disabled:e.copyDisabled,"data-clipboard-target":e.getBlobHashTarget,"data-testid":"copy-contents-button",icon:"copy-to-clipboard",category:"primary",variant:"default"},on:{click:e.onCopy}}):e._e(),e._v(" "),e.isBinary?e._e():t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],attrs:{"aria-label":e.$options.BTN_RAW_TITLE,title:e.$options.BTN_RAW_TITLE,href:e.rawPath,target:"_blank",icon:"doc-code",category:"primary",variant:"default"}}),e._v(" "),!e.isEmpty&&e.canDownloadCode?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],attrs:{"aria-label":e.$options.BTN_DOWNLOAD_TITLE,title:e.$options.BTN_DOWNLOAD_TITLE,href:e.downloadUrl,"data-testid":"download-button",target:"_blank",icon:"download",category:"primary",variant:"default"}}):e._e(),e._v(" "),e.environmentName&&e.environmentPath?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],attrs:{"aria-label":e.environmentTitle,title:e.environmentTitle,href:e.environmentPath,"data-testid":"environment",target:"_blank",icon:"external-link",category:"primary",variant:"default"}}):e._e()],1)}),[],!1,null,null,null).exports,p=i("FxFN"),m=i("gDA2"),f=i.n(m),b=i("waRY"),h=i.n(b),g=i("Lzak"),v=i("SNRI"),w=i("rK/1"),k={components:{FileIcon:i("9dZE").a,ClipboardButton:w.a,GlBadge:g.a},props:{blob:{type:Object,required:!0},showPath:{type:Boolean,required:!1,default:!0},showBlobSize:{type:Boolean,required:!1,default:!0}},computed:{blobSize(){return Object(v.e)(this.blob.size)},gfmCopyText(){return`\`${this.blob.path}\``},showLfsBadge(){return this.blob.storedExternally&&"lfs"===this.blob.externalStorage},fileName(){return this.showPath?this.blob.path:this.blob.name}}},y=Object(d.a)(k,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"file-header-content gl-flex gl-items-center gl-leading-1"},[e._t("filepath-prepend"),e._v(" "),e.fileName?[t("file-icon",{attrs:{"file-name":e.fileName,size:16,"aria-hidden":"true","css-classes":"gl-mr-3"}}),e._v(" "),t("strong",{staticClass:"file-title-name mr-1 js-blob-header-filepath gl-break-all !gl-no-underline",attrs:{"data-testid":"file-title-content"}},[e._v(e._s(e.fileName))])]:e._e(),e._v(" "),t("clipboard-button",{attrs:{text:e.blob.path,gfm:e.gfmCopyText,title:e.__("Copy file path"),category:"tertiary","css-class":"gl-mr-2"}}),e._v(" "),e.showBlobSize?t("small",{staticClass:"gl-mr-3"},[e._v(e._s(e.blobSize))]):e._e(),e._v(" "),e.showLfsBadge?t("gl-badge",[e._v(e._s(e.__("LFS")))]):e._e()],2)}),[],!1,null,null,null).exports,j=i("ygVz"),S={components:{GlButtonGroup:n.a,GlButton:a.a},directives:{GlTooltip:r.a},mixins:[j.a.mixin()],props:{value:{type:String,default:l.k,required:!1},docIcon:{type:String,default:"document",required:!1},showViewerToggles:{type:Boolean,required:!1,default:!1},showBlameToggle:{type:Boolean,required:!1,default:!1}},computed:{isSimpleViewer(){return this.value===l.k},isRichViewer(){return this.value===l.i},isBlameViewer(){return this.value===l.b}},methods:{switchToViewer(e){e===l.b&&(this.$emit("blame"),this.trackEvent("open_blame_viewer_on_blob_page")),e!==this.value&&this.$emit("input",e)}},SIMPLE_BLOB_VIEWER:l.k,RICH_BLOB_VIEWER:l.i,SIMPLE_BLOB_VIEWER_TITLE:l.l,RICH_BLOB_VIEWER_TITLE:l.j,BLAME_TITLE:l.a,BLAME_VIEWER:l.b},_={components:{ViewerSwitcher:Object(d.a)(S,(function(){var e=this,t=e._self._c;return t("gl-button-group",{staticClass:"js-blob-viewer-switcher mx-2"},[e.showViewerToggles?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],staticClass:"js-blob-viewer-switch-btn",attrs:{"aria-label":e.$options.SIMPLE_BLOB_VIEWER_TITLE,title:e.$options.SIMPLE_BLOB_VIEWER_TITLE,selected:e.isSimpleViewer,icon:"code",category:"primary",variant:"default","data-viewer":"simple"},on:{click:function(t){return e.switchToViewer(e.$options.SIMPLE_BLOB_VIEWER)}}}):e._e(),e._v(" "),e.showViewerToggles?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],staticClass:"js-blob-viewer-switch-btn",attrs:{"aria-label":e.$options.RICH_BLOB_VIEWER_TITLE,title:e.$options.RICH_BLOB_VIEWER_TITLE,selected:e.isRichViewer,icon:e.docIcon,category:"primary",variant:"default","data-viewer":"rich"},on:{click:function(t){return e.switchToViewer(e.$options.RICH_BLOB_VIEWER)}}}):e._e(),e._v(" "),e.showBlameToggle?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:e.$options.BLAME_TITLE,selected:e.isBlameViewer,category:"primary",variant:"default","data-test-id":"blame-toggle"},on:{click:function(t){return e.switchToViewer(e.$options.BLAME_VIEWER)}}},[e._v(e._s(e.__("Blame")))]):e._e()],1)}),[],!1,null,null,null).exports,DefaultActions:u,BlobFilepath:y,TableOfContents:i("ND+z").a,WebIdeLink:function(){return i.e(897).then(i.bind(null,"hTgk"))}},apollo:{currentUser:{query:f.a,error(){this.$emit("error")}},gitpodEnabled:{query:h.a,error(){this.$emit("error")}}},props:{blob:{type:Object,required:!0},hideDefaultActions:{type:Boolean,required:!1,default:!1},hideViewerSwitcher:{type:Boolean,required:!1,default:!1},isBinary:{type:Boolean,required:!1,default:!1},activeViewerType:{type:String,required:!1,default:l.k},hasRenderError:{type:Boolean,required:!1,default:!1},showPath:{type:Boolean,required:!1,default:!0},overrideCopy:{type:Boolean,required:!1,default:!1},showForkSuggestion:{type:Boolean,required:!1,default:!1},showWebIdeForkSuggestion:{type:Boolean,required:!1,default:!1},projectPath:{type:String,required:!1,default:""},projectId:{type:String,required:!1,default:""},showBlameToggle:{type:Boolean,required:!1,default:!1},showBlobSize:{type:Boolean,required:!1,default:!0}},data(){return{viewer:this.hideViewerSwitcher?null:this.activeViewerType,gitpodEnabled:!1}},computed:{showDefaultActions(){return!this.hideDefaultActions},showWebIdeLink(){return!this.blob.archived&&this.blob.editBlobPath},isEmpty(){return"0"===this.blob.rawSize},blobSwitcherDocIcon(){var e;return"csv"===(null===(e=this.blob.richViewer)||void 0===e?void 0:e.fileType)?"table":"document"},projectIdAsNumber(){return Object(p.e)(this.projectId)}},watch:{viewer(e,t){e!==l.b&&e!==t&&this.$emit("viewer-changed",e)}},methods:{proxyCopyRequest(){this.$emit("copy")}}},x=Object(d.a)(_,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"js-file-title file-title-flex-parent"},[t("div",{staticClass:"gl-flex"},[t("table-of-contents",{staticClass:"gl-pr-2"}),e._v(" "),t("blob-filepath",{attrs:{blob:e.blob,"show-path":e.showPath,"show-blob-size":e.showBlobSize},scopedSlots:e._u([{key:"filepath-prepend",fn:function(){return[e._t("prepend")]},proxy:!0}],null,!0)})],1),e._v(" "),t("div",{staticClass:"file-actions gl-flex gl-flex-wrap"},[e.hideViewerSwitcher?e._e():t("viewer-switcher",e._g({attrs:{"doc-icon":e.blobSwitcherDocIcon,"show-blame-toggle":e.showBlameToggle,"show-viewer-toggles":Boolean(e.blob.simpleViewer&&e.blob.richViewer)},model:{value:e.viewer,callback:function(t){e.viewer=t},expression:"viewer"}},e.$listeners)),e._v(" "),e.showWebIdeLink?t("web-ide-link",e._g({staticClass:"gl-mr-3",attrs:{"show-edit-button":!e.isBinary,"edit-url":e.blob.editBlobPath,"web-ide-url":e.blob.ideEditPath,"needs-to-fork":e.showForkSuggestion,"needs-to-fork-with-web-ide":e.showWebIdeForkSuggestion,"show-pipeline-editor-button":Boolean(e.blob.pipelineEditorPath),"pipeline-editor-url":e.blob.pipelineEditorPath,"gitpod-url":e.blob.gitpodBlobUrl,"show-gitpod-button":e.gitpodEnabled,"gitpod-enabled":e.currentUser&&e.currentUser.gitpodEnabled,"project-path":e.projectPath,"project-id":e.projectIdAsNumber,"user-preferences-gitpod-path":e.currentUser&&e.currentUser.preferencesGitpodPath,"user-profile-enable-gitpod-path":e.currentUser&&e.currentUser.profileEnableGitpodPath,"is-blob":"","disable-fork-modal":""}},e.$listeners)):e._e(),e._v(" "),e._t("actions"),e._v(" "),e.showDefaultActions?t("default-actions",{attrs:{"raw-path":e.blob.externalStorageUrl||e.blob.rawPath,"active-viewer":e.viewer,"has-render-error":e.hasRenderError,"is-binary":e.isBinary,"environment-name":e.blob.environmentFormattedExternalUrl,"environment-path":e.blob.environmentExternalUrlForRouteMap,"is-empty":e.isEmpty,"override-copy":e.overrideCopy},on:{copy:e.proxyCopyRequest}}):e._e()],2)])}),[],!1,null,null,null);t.a=x.exports},"7bJy":function(e,t,i){"use strict";i.d(t,"f",(function(){return r})),i.d(t,"h",(function(){return o})),i.d(t,"g",(function(){return s})),i.d(t,"k",(function(){return l})),i.d(t,"l",(function(){return c})),i.d(t,"i",(function(){return d})),i.d(t,"j",(function(){return u})),i.d(t,"b",(function(){return p})),i.d(t,"a",(function(){return m})),i.d(t,"d",(function(){return f})),i.d(t,"e",(function(){return b})),i.d(t,"c",(function(){return h}));var n=i("SNRI"),a=i("/lV4");const r=Object(a.a)("Copy file contents"),o=Object(a.a)("Open raw"),s=Object(a.a)("Download"),l="simple",c=Object(a.a)("Display source"),d="rich",u=Object(a.a)("Display rendered file"),p="blame",m=Object(a.a)("Display blame info"),f="force-content-fetch",b="force-switch-viewer",h={REASONS:{COLLAPSED:{id:"collapsed",text:Object(a.h)(Object(a.a)("it is larger than %{limit}"),{limit:Object(n.e)(1048576)})},TOO_LARGE:{id:"too_large",text:Object(a.h)(Object(a.a)("it is larger than %{limit}"),{limit:Object(n.e)(10485760)})},EXTERNAL:{id:"server_side_but_stored_externally",text:{lfs:Object(a.a)("it is stored in LFS"),build_artifact:Object(a.a)("it is stored as a job artifact"),default:Object(a.a)("it is stored externally")}}},OPTIONS:{LOAD:{id:"load",text:Object(a.a)("load it anyway"),conjunction:Object(a.a)("or"),href:"?expanded=true&viewer=simple",target:"",event:f},SHOW_SOURCE:{id:"show_source",text:Object(a.a)("view the source"),conjunction:Object(a.a)("or"),href:"#",target:"",event:b},DOWNLOAD:{id:"download",text:Object(a.a)("download it"),conjunction:"",target:"_blank",condition:!0}}}},"9P+O":function(e,t){const i={html:"html",htm:"html",html_vm:"html",asp:"html",jade:"pug",pug:"pug",md:"markdown",markdown:"markdown",mdown:"markdown",mkd:"markdown",mkdn:"markdown",rst:"markdown",blink:"blink",css:"css",scss:"sass",sass:"sass",less:"less",json:"json",yaml:"yaml",yml:"yaml",xml:"xml",plist:"xml",xsd:"xml",dtd:"xml",xsl:"xml",xslt:"xml",resx:"xml",iml:"xml",xquery:"xml",tmLanguage:"xml",manifest:"xml",project:"xml",png:"image",jpeg:"image",jpg:"image",gif:"image",svg:"image",ico:"image",tif:"image",tiff:"image",psd:"image",psb:"image",ami:"image",apx:"image",bmp:"image",bpg:"image",brk:"image",cur:"image",dds:"image",dng:"image",exr:"image",fpx:"image",gbr:"image",img:"image",jbig2:"image",jb2:"image",jng:"image",jxr:"image",pbm:"image",pgf:"image",pic:"image",raw:"image",webp:"image",js:"javascript",cjs:"javascript",ejs:"javascript",esx:"javascript",mjs:"javascript",jsx:"react",tsx:"react",ini:"settings",dlc:"settings",dll:"settings",config:"settings",conf:"settings",properties:"settings",prop:"settings",settings:"settings",option:"settings",props:"settings",toml:"settings",prefs:"settings",ts:"typescript",cts:"typescript",mts:"typescript",marko:"markojs",pdf:"pdf",xlsx:"table",xls:"table",ods:"table",csv:"table",tsv:"table",vscodeignore:"vscode",vsixmanifest:"vscode",vsix:"vscode",suo:"visualstudio",sln:"visualstudio",csproj:"visualstudio",vb:"visualstudio",pdb:"database",sql:"database",pks:"database",pkb:"database",accdb:"database",mdb:"database",sqlite:"database",cs:"csharp",zip:"zip",tar:"zip",gz:"zip",xz:"zip",bzip2:"zip",gzip:"zip",rar:"zip",tgz:"zip",exe:"exe",msi:"exe",java:"java",jar:"java",jsp:"java",c:"c",m:"c",h:"h",cc:"cpp",cpp:"cpp",mm:"cpp",cxx:"cpp",hpp:"hpp",go:"go",py:"python",url:"url",sh:"console",ksh:"console",csh:"console",tcsh:"console",zsh:"console",bash:"console",bat:"console",cmd:"console",ps1:"powershell",psm1:"powershell",psd1:"powershell",ps1xml:"powershell",psc1:"powershell",pssc:"powershell",gradle:"gradle",doc:"word",docx:"word",odt:"word",rtf:"word",cer:"certificate",cert:"certificate",crt:"certificate",pub:"key",key:"key",pem:"key",asc:"key",gpg:"key",woff:"font",woff2:"font",ttf:"font",eot:"font",suit:"font",otf:"font",bmap:"font",fnt:"font",odttf:"font",ttc:"font",font:"font",fonts:"font",sui:"font",ntf:"font",mrf:"font",lib:"lib",bib:"lib",rb:"ruby",erb:"ruby",fs:"fsharp",fsx:"fsharp",fsi:"fsharp",fsproj:"fsharp",swift:"swift",ino:"arduino",dockerignore:"docker",dockerfile:"docker",tex:"tex",cls:"tex",sty:"tex",pptx:"powerpoint",ppt:"powerpoint",pptm:"powerpoint",potx:"powerpoint",pot:"powerpoint",potm:"powerpoint",ppsx:"powerpoint",ppsm:"powerpoint",pps:"powerpoint",ppam:"powerpoint",ppa:"powerpoint",odp:"powerpoint",webm:"video",mkv:"video",flv:"video",vob:"video",ogv:"video",ogg:"audio",gifv:"video",avi:"video",mov:"video",qt:"video",wmv:"video",yuv:"video",rm:"video",rmvb:"video",mp4:"video",m4v:"video",mpg:"video",mp2:"video",mpeg:"video",mpe:"video",mpv:"video",m2v:"video",vdi:"virtual",vbox:"virtual",ics:"email",mp3:"audio",flac:"audio",m4a:"audio",wma:"audio",aiff:"audio",coffee:"coffee",txt:"document",graphql:"graphql",rs:"rust",raml:"raml",xaml:"xaml",hs:"haskell",kt:"kotlin",kts:"kotlin",patch:"git",lua:"lua",clj:"clojure",cljs:"clojure",groovy:"groovy",r:"r",rmd:"r",dart:"dart",as:"actionscript",mxml:"mxml",ahk:"autohotkey",swf:"flash",swc:"swc",cmake:"cmake",asm:"assembly",a51:"assembly",inc:"assembly",nasm:"assembly",s:"assembly",ms:"assembly",agc:"assembly",ags:"assembly",aea:"assembly",argus:"assembly",mitigus:"assembly",binsource:"assembly",vue:"vue",ml:"ocaml",mli:"ocaml",cmx:"ocaml",lock:"lock",hbs:"handlebars",mustache:"handlebars",pl:"perl",pm:"perl",hx:"haxe",pp:"puppet",ex:"elixir",exs:"elixir",ls:"livescript",erl:"erlang",twig:"twig",jl:"julia",elm:"elm",pure:"purescript",tpl:"smarty",styl:"stylus",re:"reason",rei:"reason",cmj:"bucklescript",merlin:"merlin",v:"verilog",vhd:"verilog",sv:"verilog",svh:"verilog",nb:"mathematica",wl:"wolframlanguage",wls:"wolframlanguage",njk:"nunjucks",nunjucks:"nunjucks",robot:"robot",sol:"solidity",au3:"autoit",haml:"haml",yang:"yang",tf:"terraform",tfvars:"terraform",tfstate:"terraform",applescript:"applescript",cake:"cake",feature:"cucumber",nim:"nim",nimble:"nim",apib:"apiblueprint",apiblueprint:"apiblueprint",tag:"riot",vfl:"vfl",kl:"kl",pcss:"postcss",sss:"postcss",todo:"todo",cfml:"coldfusion",cfc:"coldfusion",lucee:"coldfusion",cabal:"cabal",nix:"nix",slim:"slim",http:"http",rest:"http",rql:"restql",restql:"restql",kv:"kivy",graphcool:"graphcool",sbt:"sbt",cr:"crystal",cu:"cuda",cuh:"cuda",log:"log"},n={"gradle.kts":"gradle","md.rendered":"markdown","markdown.rendered":"markdown","mdown.rendered":"markdown","mkd.rendered":"markdown","mkdn.rendered":"markdown","YAML-tmLanguage":"yaml","sln.dotsettings":"settings","sln.dotsettings.user":"settings","d.ts":"typescript-def","code-workplace":"vscode","7z":"zip","c++":"cpp","vbox-prev":"virtual","js.map":"javascript-map","css.map":"css-map","spec.ts":"test-ts","test.ts":"test-ts","ts.snap":"test-ts","spec.tsx":"test-jsx","test.tsx":"test-jsx","tsx.snap":"test-jsx","spec.jsx":"test-jsx","test.jsx":"test-jsx","jsx.snap":"test-jsx","spec.js":"test-js","test.js":"test-js","js.snap":"test-js","module.ts":"angular","module.js":"angular","ng-template":"angular","component.ts":"angular-component","component.js":"angular-component","guard.ts":"angular-guard","guard.js":"angular-guard","service.ts":"angular-service","service.js":"angular-service","pipe.ts":"angular-pipe","pipe.js":"angular-pipe","filter.js":"angular-pipe","directive.ts":"angular-directive","directive.js":"angular-directive","resolver.ts":"angular-resolver","resolver.js":"angular-resolver","tf.json":"terraform","blade.php":"laravel","inky.php":"laravel","reducer.ts":"ngrx-reducer","rootReducer.ts":"ngrx-reducer","state.ts":"ngrx-state","actions.ts":"ngrx-actions","effects.ts":"ngrx-effects","drone.yml":"drone"},a={".jscsrc":"json",".jshintrc":"json","tsconfig.json":"json","tslint.json":"json","composer.lock":"json",".jsbeautifyrc":"json",".esformatter":"json","cdp.pid":"json",".htaccess":"xml",".jshintignore":"settings",".buildignore":"settings",makefile:"settings",".mrconfig":"settings",".yardopts":"settings","gradle.properties":"gradle",gradlew:"gradle","gradle-wrapper.properties":"gradle",COPYING:"certificate","COPYING.LESSER":"certificate",LICENSE:"certificate",LICENCE:"certificate","LICENSE.md":"certificate","LICENCE.md":"certificate","LICENSE.txt":"certificate","LICENCE.txt":"certificate",".gitlab-license":"certificate",dockerfile:"docker","docker-compose.yml":"docker",".mailmap":"email",".gitignore":"git",".gitconfig":"git",".gitattributes":"git",".gitmodules":"git",".gitkeep":"git","git-history":"git",".Rhistory":"r","cmakelists.txt":"cmake","cmakecache.txt":"cmake","angular-cli.json":"angular",".angular-cli.json":"angular",".vfl":"vfl",".kl":"kl","postcss.config.js":"postcss",".postcssrc.js":"postcss","project.graphcool":"graphcool","webpack.js":"webpack","webpack.ts":"webpack","webpack.base.js":"webpack","webpack.base.ts":"webpack","webpack.config.js":"webpack","webpack.config.ts":"webpack","webpack.common.js":"webpack","webpack.common.ts":"webpack","webpack.config.common.js":"webpack","webpack.config.common.ts":"webpack","webpack.config.common.babel.js":"webpack","webpack.config.common.babel.ts":"webpack","webpack.dev.js":"webpack","webpack.dev.ts":"webpack","webpack.config.dev.js":"webpack","webpack.config.dev.ts":"webpack","webpack.config.dev.babel.js":"webpack","webpack.config.dev.babel.ts":"webpack","webpack.prod.js":"webpack","webpack.prod.ts":"webpack","webpack.server.js":"webpack","webpack.server.ts":"webpack","webpack.client.js":"webpack","webpack.client.ts":"webpack","webpack.config.server.js":"webpack","webpack.config.server.ts":"webpack","webpack.config.client.js":"webpack","webpack.config.client.ts":"webpack","webpack.config.production.babel.js":"webpack","webpack.config.production.babel.ts":"webpack","webpack.config.prod.babel.js":"webpack","webpack.config.prod.babel.ts":"webpack","webpack.config.prod.js":"webpack","webpack.config.prod.ts":"webpack","webpack.config.production.js":"webpack","webpack.config.production.ts":"webpack","webpack.config.staging.js":"webpack","webpack.config.staging.ts":"webpack","webpack.config.babel.js":"webpack","webpack.config.babel.ts":"webpack","webpack.config.base.babel.js":"webpack","webpack.config.base.babel.ts":"webpack","webpack.config.base.js":"webpack","webpack.config.base.ts":"webpack","webpack.config.staging.babel.js":"webpack","webpack.config.staging.babel.ts":"webpack","webpack.config.coffee":"webpack","webpack.config.test.js":"webpack","webpack.config.test.ts":"webpack","webpack.config.vendor.js":"webpack","webpack.config.vendor.ts":"webpack","webpack.config.vendor.production.js":"webpack","webpack.config.vendor.production.ts":"webpack","webpack.test.js":"webpack","webpack.test.ts":"webpack","webpack.dist.js":"webpack","webpack.dist.ts":"webpack","webpackfile.js":"webpack","webpackfile.ts":"webpack","ionic.config.json":"ionic",".io-config.json":"ionic","gulpfile.js":"gulp","gulpfile.ts":"gulp","gulpfile.babel.js":"gulp","package.json":"nodejs","package-lock.json":"nodejs",".nvmrc":"nodejs",".npmignore":"npm",".npmrc":"npm",".yarnrc":"yarn",".yarnrc.yml":"yarn","yarn.lock":"yarn",".yarnclean":"yarn",".yarn-integrity":"yarn","yarn-error.log":"yarn","androidmanifest.xml":"android",".env":"tune",".env.example":"tune",".babelrc":"babel","contributing.md":"contributing","contributing.md.rendered":"contributing","readme.md":"readme","readme.md.rendered":"readme",changelog:"changelog","changelog.md":"changelog","changelog.md.rendered":"changelog",CREDITS:"credits","credits.txt":"credits","credits.md":"credits","credits.md.rendered":"credits",".flowconfig":"flow","favicon.png":"favicon","karma.conf.js":"karma","karma.conf.ts":"karma","karma.conf.coffee":"karma","karma.config.js":"karma","karma.config.ts":"karma","karma-main.js":"karma","karma-main.ts":"karma",".bithoundrc":"bithound","appveyor.yml":"appveyor",".travis.yml":"travis","protractor.conf.js":"protractor","protractor.conf.ts":"protractor","protractor.conf.coffee":"protractor","protractor.config.js":"protractor","protractor.config.ts":"protractor","fuse.js":"fusebox",procfile:"heroku",".editorconfig":"editorconfig",".gitlab-ci.yml":"gitlab",".bowerrc":"bower","bower.json":"bower",".eslintrc.js":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".eslintrc.json":"eslint",".eslintrc":"eslint",".eslintignore":"eslint","code_of_conduct.md":"conduct","code_of_conduct.md.rendered":"conduct",".watchmanconfig":"watchman","aurelia.json":"aurelia","mocha.opts":"mocha",jenkinsfile:"jenkins","firebase.json":"firebase",".firebaserc":"firebase",Rakefile:"ruby","rollup.config.js":"rollup","rollup.config.ts":"rollup","rollup-config.js":"rollup","rollup-config.ts":"rollup","rollup.config.prod.js":"rollup","rollup.config.prod.ts":"rollup","rollup.config.dev.js":"rollup","rollup.config.dev.ts":"rollup","rollup.config.prod.vendor.js":"rollup","rollup.config.prod.vendor.ts":"rollup",".hhconfig":"hack",".stylelintrc":"stylelint","stylelint.config.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".stylelintrc.js":"stylelint",".stylelintignore":"stylelint",".codeclimate.yml":"code-climate",".prettierrc":"prettier","prettier.config.js":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".prettierignore":"prettier","nodemon.json":"nodemon",browserslist:"browserlist",".browserslistrc":"browserlist",".snyk":"snyk",".drone.yml":"drone"};e.exports={fileNameIcons:a,fileExtensionIcons:i,twoFileExtensionIcons:n,getIconForFile:function(e){return a[e]||n[e?e.split(".").slice(-2).join("."):""]||i[e?e.split(".").pop().toLowerCase():""]||""}}},"9dZE":function(e,t,i){"use strict";var n=i("9P+O"),a=i("FkSe"),r=i("s1D3"),o=i("5c3i"),s={components:{GlLoadingIcon:a.a,GlIcon:r.a},props:{fileName:{type:String,required:!0},fileMode:{type:String,required:!1,default:""},folder:{type:Boolean,required:!1,default:!1},submodule:{type:Boolean,required:!1,default:!1},opened:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!1,default:16},cssClasses:{type:String,required:!1,default:""}},computed:{isSymlink(){return this.fileMode===o.i},spriteHref(){const e=this.submodule?"folder-git":Object(n.getIconForFile)(this.fileName)||"file";return`${gon.sprite_file_icons}#${e}`},folderIconName(){return this.opened?"folder-open":"folder"},iconSizeClass(){return this.size?"s"+this.size:""}}},l=i("tBpV"),c=Object(l.a)(s,(function(){var e=this,t=e._self._c;return t("span",[e.loading?t("gl-loading-icon",{attrs:{size:"sm",inline:!0}}):e.isSymlink?t("gl-icon",{attrs:{name:"symlink",size:e.size}}):e.folder?t("gl-icon",{staticClass:"folder-icon",attrs:{name:e.folderIconName,size:e.size}}):t("svg",{key:e.spriteHref,class:[e.iconSizeClass,e.cssClasses]},[t("use",{attrs:{href:e.spriteHref}})])],1)}),[],!1,null,null,null);t.a=c.exports},"Fsq/":function(e,t,i){"use strict";var n=i("z1xw"),a=i("A5dm"),r=i("bOix"),o=i("5QKO"),s={directives:{GlTooltip:n.a},components:{GlTruncate:a.a},mixins:[o.a],props:{time:{type:[String,Number,Date],required:!0},tooltipPlacement:{type:String,required:!1,default:"top"},cssClass:{type:String,required:!1,default:""},dateTimeFormat:{type:String,required:!1,default:r.b,validator:function(e){return r.a.includes(e)}},enableTruncation:{type:Boolean,required:!1,default:!1}},computed:{timeAgo(){return this.timeFormatted(this.time,this.dateTimeFormat)},tooltipText(){return this.enableTruncation?void 0:this.tooltipTitle(this.time)}}},l=i("tBpV"),c=Object(l.a)(s,(function(){var e=this,t=e._self._c;return t("time",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.viewport",value:{placement:e.tooltipPlacement},expression:"{ placement: tooltipPlacement }",modifiers:{viewport:!0}}],class:e.cssClass,attrs:{title:e.tooltipText,datetime:e.time}},[e._t("default",(function(){return[e.enableTruncation?[t("gl-truncate",{attrs:{text:e.timeAgo,"with-tooltip":""}})]:[e._v(e._s(e.timeAgo))]]}),{timeAgo:e.timeAgo})],2)}),[],!1,null,null,null);t.a=c.exports},IZAz:function(e,t,i){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAAAAAAdJSU2AAACNElEQVR4AdXYBa7jMBCA4b3/JZahzIkjp2qt+BWUWnG5ln2XxaJJb2b5F2ukL4wvzK/rP7bUcbf92u6oftLSe1ldk8efsfaVeEjusZZeC6e1RllaCk/yG6ag1lZ4WwPX69uyD6tAe/g2ipAlNMRS37awDLaFrpcMWxXQOi0jnWCWjFkSZomYJWDWKmatYNZyEWkJsvQimoZYah5NgdaLxagCtF6GRy0DshZPkeYwS/KIJWGWYjwYUzDLxCwDtJ54OKglimBLqHWahii2g1pmHLLGBmwVoRjcKlmgOdw65H5qKuGWCVi5Qlhs6m1sENZi4q3AWNvca5UYy2RjT/SAsiZey6CsIvc0wVlV5lJ0ibPMyLUGCmlxQq0IM0hLdWyro7CWEc3sXsqaK4O2zLxOsmtpfW5Q1u68ZrVmepaaNXEewawtI9X5Xl3U3n1qND6+rfPzvqoIWz/fklNCSLY153YV53J/XUxGCJnKZ1lajsn3/Ffegf6Y5pV2LUsSNL2UHzxUfh3TlYpZqqTpXZm0KZk9zJcqaEmaWPHDw0pxe05K7bWOLHFLWXVetqpYmrjle4+1y0aBaF4UOQ1NU+lYezJClkjLUnSEjqhH6zjAW4OjtY39Ibq+sawUb6W2RQfoqG0VeKuwrRJvlba17faRdbe2pTtYq6Nty/S7yAbGsQjWIq41wVoT1+IdZNy1djUcVdu5lklQWC0xHkt1X31qNEE1Pr3qKv/9XiSNj6Aaifj3/69+AYujsR/MvkpZAAAAAElFTkSuQmCC"},J7NB:function(e,t,i){"use strict";var n=i("7xOh");t.a=Object(n.a)()},L9Ro:function(e,t,i){"use strict";var n=i("z1xw"),a=i("Mp8J"),r={name:"BlameInfo",components:{CommitInfo:i("b/FR").a},directives:{GlTooltip:n.a,SafeHtml:a.a},props:{blameInfo:{type:Array,required:!0}}},o=i("tBpV"),s=Object(o.a)(r,(function(){var e=this._self._c;return e("div",{staticClass:"blame gl-border-r gl-bg-gray-10"},[e("div",{staticClass:"blame-commit !gl-border-none"},this._l(this.blameInfo,(function(t,i){return e("commit-info",{key:i,staticClass:"gl-absolute gl-flex gl-px-3",class:{"gl-border-t":"0px"!==t.blameOffset},style:{top:t.blameOffset},attrs:{commit:t.commit,span:t.span,"prev-blame-link":t.commitData&&t.commitData.projectBlameLink}})})),1)])}),[],!1,null,null,null);t.a=s.exports},"MA/v":function(e,t,i){"use strict";i.r(t),i.d(t,"initAuxiliaryViewer",(function(){return b})),i.d(t,"handleBlobRichViewer",(function(){return h})),i.d(t,"BlobViewer",(function(){return g}));i("ZzK0"),i("z6RN"),i("BzOf");var n=i("EmJ/"),a=i.n(n),r=i("EJYk"),o=i("jlnU"),s=i("/lV4"),l=i("0ch9"),c=i("lnTC"),d=i("nc9B"),u=i("2ibD"),p=i("NmEs"),m=i("J7NB");const f=function(e){const t=e,{url:i}=t.dataset;return!i||t.dataset.loaded||t.dataset.loading?Promise.resolve(t):(t.dataset.loading="true",u.a.get(i).then((function({data:e}){return t.innerHTML=e.html,window.requestIdleCallback((function(){delete t.dataset.loading})),t})))},b=function(){const e=document.querySelector('.blob-viewer[data-type="auxiliary"]');e&&f(e)},h=function(e,t){e&&t&&function(e){switch(e){case"notebook":return Promise.all([i.e(27),i.e(48),i.e(68),i.e(152),i.e(454)]).then(i.bind(null,"k9KH"));case"openapi":return Promise.all([i.e(216),i.e(455)]).then(i.bind(null,"NoLt"));case"csv":return Promise.all([i.e(27),i.e(48),i.e(244)]).then(i.bind(null,"l+3u"));case"pdf":return Promise.all([i.e(41),i.e(219),i.e(795)]).then(i.bind(null,"5EiH"));case"sketch":return Promise.all([i.e(41),i.e(228),i.e(803)]).then(i.bind(null,"vm94"));case"stl":return Promise.all([i.e(823),i.e(805)]).then(i.bind(null,"p/rF"));default:return Promise.resolve()}}(t).then((function(t){return null==t?void 0:t.default(e)})).catch((function(e){throw Object(o.createAlert)({message:Object(s.a)("Error loading file viewer.")}),e}))};class g{constructor(){var e;Object(c.a)({mark:l.u});const t=document.querySelector('.blob-viewer[data-type="rich"]'),i=null==t||null===(e=t.dataset)||void 0===e?void 0:e.richType;b(),h(t,i),this.initMainViewers()}initMainViewers(){this.$fileHolder=a()(".file-holder"),this.$fileHolder.length&&(this.switcher=document.querySelector(".js-blob-viewer-switcher"),this.switcherBtns=document.querySelectorAll(".js-blob-viewer-switch-btn"),this.copySourceBtn=document.querySelector(".js-copy-blob-source-btn"),this.copySourceBtnTooltip=document.querySelector(".js-copy-blob-source-btn-tooltip"),this.simpleViewer=this.$fileHolder[0].querySelector('.blob-viewer[data-type="simple"]'),this.richViewer=this.$fileHolder[0].querySelector('.blob-viewer[data-type="rich"]'),this.initBindings(),this.switchToInitialViewer())}switchToInitialViewer(){let e=this.$fileHolder[0].querySelector(".blob-viewer:not(.hidden)").dataset.type;this.switcher&&0===window.location.hash.indexOf("#L")&&(e="simple"),this.switchToViewer(e)}initBindings(){var e=this;this.switcherBtns.length&&Array.from(this.switcherBtns).forEach((function(t){t.addEventListener("click",e.switchViewHandler.bind(e))})),this.copySourceBtn&&this.copySourceBtn.addEventListener("click",(function(){return e.copySourceBtn.classList.contains("disabled")?e.copySourceBtn.blur():e.switchToViewer("simple")}))}switchViewHandler(e){const t=e.currentTarget;e.preventDefault(),this.switchToViewer(t.dataset.viewer)}toggleCopyButtonState(){this.copySourceBtn&&(this.simpleViewer.dataset.loaded?(this.copySourceBtnTooltip.setAttribute("title",Object(s.a)("Copy file contents")),this.copySourceBtn.classList.remove("disabled")):this.activeViewer===this.simpleViewer?(this.copySourceBtnTooltip.setAttribute("title",Object(s.a)("Wait for the file to load to copy its contents")),this.copySourceBtn.classList.add("disabled")):(this.copySourceBtnTooltip.setAttribute("title",Object(s.a)("Switch to the source to copy the file contents")),this.copySourceBtn.classList.add("disabled")),Object(d.c)(a()(this.copySourceBtnTooltip)))}switchToViewer(e){var t=this;Object(c.a)({mark:l.v});const i=this.$fileHolder[0].querySelector(`.blob-viewer[data-type='${e}']`);if(this.activeViewer===i)return;const n=document.querySelector(".js-blob-viewer-switch-btn.selected"),a=document.querySelector(`.js-blob-viewer-switch-btn[data-viewer='${e}']`),d=this.$fileHolder[0].querySelector(`.blob-viewer:not([data-type='${e}'])`);n&&n.classList.remove("selected"),a&&(a.classList.add("selected"),a.blur()),d&&d.classList.add("hidden"),i.classList.remove("hidden"),this.activeViewer=i,this.toggleCopyButtonState(),f(i).then((function(e){Object(r.a)(e),window.requestIdleCallback((function(){t.$fileHolder.trigger("highlight:line"),Object(p.n)(),e.dataset.loaded="true",t.toggleCopyButtonState(),m.a.$emit("showBlobInteractionZones",e.dataset.path)})),Object(c.a)({mark:l.t,measures:[{name:l.s,start:l.u},{name:l.w,start:l.v}]})})).catch((function(){return Object(o.createAlert)({message:Object(s.a)("Error loading viewer")})}))}}},"ND+z":function(e,t,i){"use strict";i("3UXl"),i("iyoE");function n(e){return parseInt(e.tagName.match(/\d+/)[0],10)}var a={components:{GlDisclosureDropdown:i("Bo17").a},data:()=>({isHidden:!1,items:[]}),mounted(){var e=this;this.blobViewer=document.querySelector('.blob-viewer[data-type="rich"]');const t=function(t){return e.blobViewer.getAttribute(t)};this.observer=new MutationObserver((function(){e.blobViewer.classList.contains("hidden")||"rich"!==t("data-type")?e.isHidden=!0:"true"===t("data-loaded")&&(e.isHidden=!1,e.generateHeaders(),e.observer.disconnect())})),this.blobViewer&&this.observer.observe(this.blobViewer,{attributes:!0})},beforeDestroy(){this.observer&&this.observer.disconnect()},methods:{generateHeaders(){const e=[...this.blobViewer.querySelectorAll("h1,h2,h3,h4,h5,h6")];if(0===e.length)return;const t=n(e[0]);this.items=e.map((function(e){return{text:e.textContent.trim(),href:"#"+e.querySelector("a").getAttribute("id"),extraAttrs:{style:{paddingLeft:16+Math.max(8*(n(e)-t),0)+"px"}}}}))}}},r=i("tBpV"),o=Object(r.a)(a,(function(){var e=this._self._c;return!this.isHidden&&this.items.length?e("gl-disclosure-dropdown",{staticClass:"gl-mr-2",attrs:{icon:"list-bulleted",items:this.items}}):this._e()}),[],!1,null,null,null);t.a=o.exports},RQlu:function(e,t,i){"use strict";var n=i("EJYk"),a={props:{isLoading:{type:Boolean,required:!1,default:!1}},watch:{isLoading(){this.handleGFM()}},mounted(){this.handleGFM()},methods:{handleGFM(){this.isLoading||Object(n.a)(this.$el)}}},r=i("tBpV"),o=Object(r.a)(a,(function(){return(0,this._self._c)("div",[this._t("default")],2)}),[],!1,null,null,null);t.a=o.exports},SNRI:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"f",(function(){return s})),i.d(t,"e",(function(){return l})),i.d(t,"g",(function(){return c})),i.d(t,"b",(function(){return d})),i.d(t,"c",(function(){return u})),i.d(t,"d",(function(){return m}));var n=i("/lV4"),a=i("GuZl");function r(e){return e/(a.d*a.d)}function o(e){return e/(a.d*a.d*a.d)}function s({size:e,digits:t=2,locale:i}={}){const s=Math.abs(e),l={minimumFractionDigits:t,maximumFractionDigits:t},c=function(e){return Object(n.c)(e,l,i)};return s<a.d?[e.toString(),Object(n.a)("B")]:s<a.d**2?[c((d=e,d/a.d)),Object(n.a)("KiB")]:s<a.d**3?[c(r(e)),Object(n.a)("MiB")]:[c(o(e)),Object(n.a)("GiB")];var d}function l(e,t=2,i){const[a,r]=s({size:e,digits:t,locale:i});switch(r){case Object(n.a)("B"):return Object(n.h)(Object(n.a)("%{size} B"),{size:a});case Object(n.a)("KiB"):return Object(n.h)(Object(n.a)("%{size} KiB"),{size:a});case Object(n.a)("MiB"):return Object(n.h)(Object(n.a)("%{size} MiB"),{size:a});case Object(n.a)("GiB"):return Object(n.h)(Object(n.a)("%{size} GiB"),{size:a});default:return""}}function c(e,t=!1){if(e<a.k)return e.toString();return e<a.i?`${Number((e/a.k).toFixed(1))}${t?"K":"k"}`:`${Number((e/a.i).toFixed(1))}${t?"M":"m"}`}const d=function(e,t){return e===t?0:Math.round((t-e)/Math.abs(e)*100)},u=function(e){return!Number.isNaN(parseInt(e,10))},p=/^[0-9]+$/,m=function(e){return p.test(e)}},ZHzM:function(e,t,i){"use strict";var n=i("mFhR"),a=i("z1xw"),r=i("FxFN"),o={name:"UserAvatarLinkNew",components:{UserAvatarImage:i("+kWK").a,GlAvatarLink:n.a},directives:{GlTooltip:a.a},props:{lazy:{type:Boolean,required:!1,default:!1},linkHref:{type:String,required:!1,default:""},imgSrc:{type:String,required:!1,default:""},imgAlt:{type:String,required:!1,default:""},imgCssClasses:{type:String,required:!1,default:""},imgCssWrapperClasses:{type:String,required:!1,default:""},imgSize:{type:[Number,Object],required:!0},tooltipText:{type:String,required:!1,default:""},tooltipPlacement:{type:String,required:!1,default:"top"},popoverUserId:{type:[String,Number],required:!1,default:""},popoverUsername:{type:String,required:!1,default:""},username:{type:String,required:!1,default:""}},computed:{userId(){return Object(r.e)(this.popoverUserId)},shouldShowUsername(){return this.username.length>0},avatarTooltipText(){return this.popoverUserId||this.shouldShowUsername?"":this.tooltipText}}},s=i("tBpV"),l=Object(s.a)(o,(function(){var e=this,t=e._self._c;return t("gl-avatar-link",{staticClass:"user-avatar-link js-user-link",attrs:{href:e.linkHref,"data-user-id":e.userId,"data-username":e.popoverUsername},on:{click:function(e){e.stopPropagation()}}},[t("user-avatar-image",{class:e.imgCssWrapperClasses,attrs:{"img-src":e.imgSrc,"img-alt":e.imgAlt,"css-classes":e.imgCssClasses,size:e.imgSize,"tooltip-text":e.avatarTooltipText,"tooltip-placement":e.tooltipPlacement,lazy:e.lazy}},[e._t("default")],2),e._v(" "),e.shouldShowUsername?t("span",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],staticClass:"gl-ml-1",attrs:{title:e.tooltipText,"tooltip-placement":e.tooltipPlacement,"data-testid":"user-avatar-link-username"}},[e._v("\n    "+e._s(e.username)+"\n  ")]):e._e(),e._v(" "),e._t("avatar-badge")],2)}),[],!1,null,null,null);t.a=l.exports},"b/FR":function(e,t,i){"use strict";var n=i("4lAS"),a=i("MV2A"),r=i("z1xw"),o=i("/lV4"),s=i("Mp8J"),l=i("IZAz"),c=i("Fsq/"),d=i("ZHzM"),u=i("+kWK"),p=i("jEr0"),m={components:{UserAvatarLink:d.a,TimeagoTooltip:c.a,GlButton:n.a,GlLink:a.a,UserAvatarImage:u.a},directives:{GlTooltip:r.a,SafeHtml:s.a},mixins:[p.a],props:{commit:{type:Object,required:!0},span:{type:Number,required:!1,default:null},prevBlameLink:{type:String,required:!1,default:null}},data:()=>({showDescription:!1}),computed:{commitDescription(){var e;return null===(e=this.commit)||void 0===e||null===(e=e.descriptionHtml)||void 0===e?void 0:e.replace(/^&#x000A;/,"")},avatarLinkAltText(){return Object(o.h)(Object(o.a)("%{username}'s avatar"),{username:this.commit.authorName})},truncateAuthorName(){return"number"==typeof this.span&&this.span<3}},methods:{toggleShowDescription(){this.showDescription=!this.showDescription}},defaultAvatarUrl:l.a,safeHtmlConfig:{ADD_TAGS:["gl-emoji"]},i18n:{toggleCommitDescription:Object(o.a)("Toggle commit description"),authored:Object(o.a)("authored")}},f=i("tBpV"),b=Object(f.a)(m,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"well-segment commit gl-flex gl-min-h-8 gl-w-full gl-p-2"},[e.commit.author?t("user-avatar-link",{staticClass:"gl-my-2 gl-mr-3",attrs:{"link-href":e.commit.author.webPath,"img-src":e.commit.author.avatarUrl,"img-alt":e.avatarLinkAltText,"img-size":32}}):t("user-avatar-image",{staticClass:"gl-my-2 gl-mr-3",attrs:{"img-src":e.commit.authorGravatar||e.$options.defaultAvatarUrl,size:32}}),e._v(" "),t("div",{staticClass:"commit-detail flex-list gl-flex gl-min-w-0 gl-grow"},[t("div",{staticClass:"commit-content gl-inline-flex gl-w-full gl-flex-wrap gl-items-baseline",attrs:{"data-testid":"commit-content"}},[t("div",{staticClass:"gl-inline-flex gl-basis-full gl-items-center gl-gap-x-3"},[t("gl-link",{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfig]",value:e.commit.titleHtml,expression:"commit.titleHtml",arg:e.$options.safeHtmlConfig}],staticClass:"commit-row-message item-title gl-line-clamp-1 gl-whitespace-normal !gl-break-all",class:{"gl-italic":!e.commit.message},attrs:{href:e.commit.webPath}}),e._v(" "),e.commit.descriptionHtml?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],staticClass:"text-expander !gl-ml-0",class:{open:e.showDescription},attrs:{title:e.$options.i18n.toggleCommitDescription,"aria-label":e.$options.i18n.toggleCommitDescription,selected:e.showDescription,icon:"ellipsis_h"},on:{click:e.toggleShowDescription}}):e._e()],1),e._v(" "),t("div",{staticClass:"committer gl-basis-full gl-truncate gl-text-sm",class:{"gl-inline-flex":e.truncateAuthorName},attrs:{"data-testid":"committer"}},[e.commit.author?t("gl-link",{staticClass:"commit-author-link js-user-link",class:{"gl-inline-block gl-truncate":e.truncateAuthorName},attrs:{href:e.commit.author.webPath}},[e._v("\n          "+e._s(e.commit.author.name))]):[e._v("\n          "+e._s(e.commit.authorName)+"\n        ")],e._v("\n        "+e._s(e.$options.i18n.authored)+"\n        "),t("timeago-tooltip",{attrs:{time:e.commit.authoredDate,"tooltip-placement":"bottom"}})],2),e._v(" "),e.commitDescription?t("pre",{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfig]",value:e.commitDescription,expression:"commitDescription",arg:e.$options.safeHtmlConfig}],staticClass:"commit-row-description gl-mb-3 gl-whitespace-pre-wrap",class:{"!gl-block":e.showDescription}}):e._e()]),e._v(" "),t("div",{staticClass:"gl-grow"}),e._v(" "),e._t("default")],2),e._v(" "),e.prevBlameLink?t("div",{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfig]",value:e.prevBlameLink,expression:"prevBlameLink",arg:e.$options.safeHtmlConfig}],attrs:{"data-event-tracking":"click_previous_blame_on_blob_page"}}):e._e()],1)}),[],!1,null,null,null);t.a=b.exports},bds0:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return l}));i("ZzK0"),i("z6RN"),i("BzOf");const n=["gl-border-t","gl-border-gray-500"],a=function(e){return document.getElementById("L"+e)},r=function(e){return document.getElementById("LC"+e)},o=function(e){var t,i;if(1===e)return"0px";const n=null===(t=document.querySelector(".file-holder .blob-viewer"))||void 0===t?void 0:t.getBoundingClientRect().top;return(null===(i=r(e))||void 0===i?void 0:i.getBoundingClientRect().top)-n+"px"},s=function(e,t){var i;const n=e[t-1],a=e[t],r=a.commit.sha===(null==n||null===(i=n.commit)||void 0===i?void 0:i.sha),o=a.lineno<(null==n?void 0:n.lineno);return!r||o},l=function(e,t){const i=t?"add":"remove";e.forEach((function({lineno:t,span:o},l){var c,d;if(!s(e,l))return;const u=null===(c=a(t))||void 0===c?void 0:c.parentElement,p=r(t),m=null===(d=a(t+o-1))||void 0===d?void 0:d.parentElement,f=r(t+o-1);null==u||u.classList[i]("!gl-pt-3"),null==p||p.classList[i]("!gl-pt-3"),1!==t&&(null==u||u.classList[i](...n),null==p||p.classList[i](...n)),1===o?(null==m||m.classList[i]("!gl-pb-6"),null==f||f.classList[i]("!gl-pb-6")):(null==m||m.classList[i]("!gl-pb-3"),null==f||f.classList[i]("!gl-pb-3"))}))}},"f/vg":function(e,t){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getRef"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ref"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]},{kind:"Field",name:{kind:"Name",value:"escapedRef"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:52}};i.loc.source={body:"query getRef {\n  ref @client\n  escapedRef @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),n[e.name.value]=t}})),e.exports=i,e.exports.getRef=function(e,t){var i={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=n[t]||new Set,o=new Set,s=new Set;for(r.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var n=a(e,t);n&&i.definitions.push(n)})),i}(i,"getRef")},gDA2:function(e,t){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getUserInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gitpodEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"preferencesGitpodPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileEnableGitpodPath"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:121}};i.loc.source={body:"query getUserInfo {\n  currentUser {\n    id\n    gitpodEnabled\n    preferencesGitpodPath\n    profileEnableGitpodPath\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),n[e.name.value]=t}})),e.exports=i,e.exports.getUserInfo=function(e,t){var i={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=n[t]||new Set,o=new Set,s=new Set;for(r.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var n=a(e,t);n&&i.definitions.push(n)})),i}(i,"getUserInfo")},jEr0:function(e,t,i){"use strict";var n=i("f/vg"),a=i.n(n);t.a={apollo:{ref:{query:a.a,manual:!0,result({data:e,loading:t}){e&&!t&&(this.ref=e.ref,this.escapedRef=e.escapedRef)}}},data:()=>({ref:"",escapedRef:""})}},mFhR:function(e,t,i){"use strict";var n=i("MV2A"),a=i("Pyw5"),r=i.n(a);const o={name:"AvatarLink",components:{GlLink:n.a}};const s=r()({render:function(){var e=this.$createElement;return(this._self._c||e)("gl-link",this._g(this._b({staticClass:"gl-avatar-link"},"gl-link",this.$attrs,!1),this.$listeners),[this._t("default")],2)},staticRenderFns:[]},void 0,o,void 0,!1,void 0,!1,void 0,void 0,void 0);t.a=s},"rK/1":function(e,t,i){"use strict";var n=i("o4PY"),a=i.n(n),r=i("z1xw"),o=i("4lAS"),s=i("D+x4"),l=i("/lV4"),c=i("cmKv"),d={name:"ClipboardButton",i18n:{copied:Object(l.a)("Copied"),error:c.c},CLIPBOARD_SUCCESS_EVENT:c.b,CLIPBOARD_ERROR_EVENT:c.a,directives:{GlTooltip:r.a},components:{GlButton:o.a},props:{text:{type:String,required:!0},gfm:{type:String,required:!1,default:null},title:{type:String,required:!0},tooltipPlacement:{type:String,required:!1,default:"top"},tooltipContainer:{type:[String,Boolean],required:!1,default:!1},tooltipBoundary:{type:String,required:!1,default:null},cssClass:{type:String,required:!1,default:null},category:{type:String,required:!1,default:"secondary"},size:{type:String,required:!1,default:"medium"},variant:{type:String,required:!1,default:"default"}},data(){return{localTitle:this.title,titleTimeout:null,id:null}},computed:{clipboardText(){return null!==this.gfm?JSON.stringify({text:this.text,gfm:this.gfm}):this.text},tooltipDirectiveOptions(){return{placement:this.tooltipPlacement,container:this.tooltipContainer,boundary:this.tooltipBoundary}},sanitizedLocalTitle(){return Object(s.a)(this.localTitle)}},created(){this.id=a()("clipboard-button-")},methods:{updateTooltip(e){var t=this;this.localTitle=e,this.$root.$emit("bv::show::tooltip",this.id),clearTimeout(this.titleTimeout),this.titleTimeout=setTimeout((function(){t.localTitle=t.title,t.$root.$emit("bv::hide::tooltip",t.id)}),1e3)}}},u=i("tBpV"),p=Object(u.a)(d,(function(){var e=this;return(0,e._self._c)("gl-button",e._g({directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover.focus.click.viewport.html",value:e.tooltipDirectiveOptions,expression:"tooltipDirectiveOptions",modifiers:{hover:!0,focus:!0,click:!0,viewport:!0,html:!0}}],ref:"copyButton",class:e.cssClass,attrs:{id:e.id,title:e.sanitizedLocalTitle,"data-clipboard-text":e.clipboardText,"data-clipboard-handle-tooltip":"false",category:e.category,size:e.size,icon:"copy-to-clipboard",variant:e.variant,"aria-label":e.sanitizedLocalTitle,"aria-live":"polite"},on:e._d({},[e.$options.CLIPBOARD_SUCCESS_EVENT,function(t){return e.updateTooltip(e.$options.i18n.copied)},e.$options.CLIPBOARD_ERROR_EVENT,function(t){return e.updateTooltip(e.$options.i18n.error)}])},e.$listeners),[e._t("default")],2)}),[],!1,null,null,null);t.a=p.exports},s6YX:function(e,t,i){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getBlameData"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filePath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fromLine"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"toLine"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ref"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"fullPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blobs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ref"},value:{kind:"Variable",name:{kind:"Name",value:"ref"}}},{kind:"Argument",name:{kind:"Name",value:"paths"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"filePath"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blame"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fromLine"},value:{kind:"Variable",name:{kind:"Name",value:"fromLine"}}},{kind:"Argument",name:{kind:"Name",value:"toLine"},value:{kind:"Variable",name:{kind:"Name",value:"toLine"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstLine"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"groups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lineno"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"span"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"commit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"titleHtml"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authoredDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorGravatar"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Author"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sha"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"commitData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectBlameLink"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:884}};n.loc.source={body:'#import "~/graphql_shared/fragments/author.fragment.graphql"\n\nquery getBlameData(\n  $fullPath: ID!\n  $filePath: String!\n  $fromLine: Int\n  $toLine: Int\n  $ref: String!\n) {\n  project(fullPath: $fullPath) {\n    id\n    repository {\n      blobs(ref: $ref, paths: [$filePath]) {\n        nodes {\n          id\n          blame(fromLine: $fromLine, toLine: $toLine) {\n            firstLine\n            groups {\n              lineno\n              span\n              commit {\n                id\n                authorName\n                titleHtml\n                message\n                authoredDate\n                authorGravatar\n                webPath\n                author {\n                  ...Author\n                }\n                sha\n              }\n              commitData {\n                projectBlameLink\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};n.definitions=n.definitions.concat(i("5JsC").definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var r={};function o(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),r[e.name.value]=t}})),e.exports=n,e.exports.getBlameData=function(e,t){var i={kind:e.kind,definitions:[o(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var n=r[t]||new Set,a=new Set,s=new Set;for(n.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var n=o(e,t);n&&i.definitions.push(n)})),i}(n,"getBlameData")},waRY:function(e,t){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getApplicationInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gitpodEnabled"},arguments:[],directives:[]}]}}],loc:{start:0,end:45}};i.loc.source={body:"query getApplicationInfo {\n  gitpodEnabled\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),n[e.name.value]=t}})),e.exports=i,e.exports.getApplicationInfo=function(e,t){var i={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=n[t]||new Set,o=new Set,s=new Set;for(r.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var n=a(e,t);n&&i.definitions.push(n)})),i}(i,"getApplicationInfo")}}]);
//# sourceMappingURL=commons-pages.projects.blob.show-pages.projects.show-pages.projects.snippets.show-pages.projects.tre-c684fcf6.4f9b1343.chunk.js.map