"use strict";this.default_b=this.default_b||{};(function(__){var window=this;
try{
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
 @param {!_ZonePrivate} api
 @param {?} target
 @param {string} targetName
 @param {string} method
 @param {!Array<string>} callbacks
 @return {void}
*/
/*

 The MIT License

 Copyright (c) 2014-2016 Google, Inc. http://angular.io

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

 SPDX-License-Identifier: Apache-2.0
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var g,aa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,aa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b);this.reportErrorToServer=!0},ba=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");aa.call(this,c+a[d])},ca=function(a,b){if(a)throw Error("u");b.push(65533)},aaa=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b},ea=function(a){da.setTimeout(function(){throw a;
},0)},fa=function(){var a=da.navigator;return a&&(a=a.userAgent)?a:""},baa=function(a){return ha?ia?ia.brands.some(function(b){return(b=b.brand)&&ka(b,a)}):!1:!1},la=function(a){return ka(fa(),a)},ma=function(){return ha?!!ia&&0<ia.brands.length:!1},caa=function(){return ma()?!1:la("Opera")},daa=function(){return ma()?!1:la("Trident")||la("MSIE")},eaa=function(){return la("Firefox")||la("FxiOS")},gaa=function(){return la("Safari")&&!(faa()||(ma()?0:la("Coast"))||caa()||(ma()?0:la("Edge"))||(ma()?
baa("Microsoft Edge"):la("Edg/"))||(ma()?baa("Opera"):la("OPR"))||eaa()||la("Silk")||la("Android"))},faa=function(){return ma()?baa("Chromium"):(la("Chrome")||la("CriOS"))&&!(ma()?0:la("Edge"))||la("Silk")},haa=function(){return la("Android")&&!(faa()||eaa()||caa()||la("Silk"))},iaa=function(){var a=fa();if(daa()){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])a=b[1];else{b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";
break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];a=b}}else a="";return a},jaa=function(){if(ma()){var a=ia.brands.find(function(b){return"Internet Explorer"===b.brand});if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=iaa();if(""===a)return NaN;a=a.split(".")}return 0===a.length?NaN:Number(a[0])},pa=function(){return ha?!!ia&&!!ia.platform:!1},kaa=function(){return pa()?"Android"===ia.platform:la("Android")},qa=function(){return la("iPhone")&&
!la("iPod")&&!la("iPad")},ra=function(){return qa()||la("iPad")||la("iPod")},laa=function(){return pa()?"macOS"===ia.platform:la("Macintosh")},sa=function(a){return a[a.length-1]},maa=function(a,b){var c=0;ta(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},naa=function(a,b){for(var c="string"===typeof a?a.split(""):a,d=a.length-1;0<=d;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1},va=function(a,b){return 0<=ua(a,b)},oaa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];
a.length=0},za=function(a,b){b=ua(a,b);var c;(c=0<=b)&&xa(a,b);return c},xa=function(a,b){Array.prototype.splice.call(a,b,1)},Aa=function(a,b){a:{for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}0<=b&&xa(a,b)},Ba=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},Ea=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ca(d)){var e=a.length||0,f=d.length||0;a.length=
e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}},qaa=function(a,b,c,d){return Array.prototype.splice.apply(a,paa(arguments,1))},paa=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Ja=function(a,b,c){b=b||a;var d=function(q){return Fa(q)?"o"+Ia(q):(typeof q).charAt(0)+q};c=c||d;for(var e=d=0,f={};e<a.length;){var h=a[e++],k=c(h);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=h)}b.length=d},Ka=function(a,b){a.sort(b||raa)},
saa=function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]={index:d,value:a[d]};var e=b||raa;Ka(c,function(f,h){return e(f.value,h.value)||f.index-h.index});for(b=0;b<a.length;b++)a[b]=c[b].value},raa=function(a,b){return a>b?1:a<b?-1:0},taa=function(){for(var a=[],b=0;5>b;b+=1)a.push(b);return a},uaa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},waa=function(a){if(!vaa)return La(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,
a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)},yaa=function(a){return xaa[a]||""},Baa=function(a){if(!vaa)return zaa(a);Aaa.test(a)&&(a=a.replace(Aaa,yaa));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b},Ma=function(a){return Caa&&null!=a&&a instanceof Uint8Array},Na=function(){return Daa||(Daa=new Uint8Array(0))},Eaa=function(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;
return!0},Faa=function(a){return 0==a.length?Oa():new Pa(a,Sa)},Gaa=function(a){if("string"===typeof a)return{buffer:Baa(a),isImmutable:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===Uint8Array)return{buffer:a,isImmutable:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===Pa)return{buffer:Ta(a)||Na(),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),
isImmutable:!1};throw Error("I");},Xa=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=l(Haa(c,a)),b=c.next().value,a=c.next().value,c=b);Va=c>>>0;Wa=a>>>0},Iaa=function(a,b){return 4294967296*b+(a>>>0)},Jaa=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=Iaa(a,b);return c?-a:a},Maa=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else Kaa?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,
a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+Laa(c)+Laa(a));return c},Laa=function(a){a=String(a);return"0000000".slice(a.length)+a},Naa=function(a){if(16>a.length)Xa(Number(a));else if(Kaa)a=BigInt(a),Va=Number(a&BigInt(4294967295))>>>0,Wa=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);Wa=Va=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),Wa*=1E6,Va=1E6*Va+d,4294967296<=
Va&&(Wa+=Math.trunc(Va/4294967296),Wa>>>=0,Va>>>=0);b&&(b=l(Haa(Va,Wa)),a=b.next().value,b=b.next().value,Va=a,Wa=b)}},Haa=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},Ya=function(a){return Array.prototype.slice.call(a)},Oaa=function(a){var b=Za(a);1!==(b&1)&&(Object.isFrozen(a)&&(a=Ya(a)),bb(a,b|1))},Paa=function(a,b){Object.isFrozen(a)&&(a=Ya(a));bb(a,b);return a},eb=function(a){cb(a,1);return a},fb=function(a){cb(a,34);return a},Qaa=function(a){cb(a,32);return a},Raa=function(a,b){bb(b,(a|0)&
-255)},Saa=function(a,b){bb(b,(a|34)&-221)},gb=function(a){a=a>>11&1023;return 0===a?536870912:a},hb=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object},ib=function(a,b,c,d){if(null==a){if(!c)throw Error();}else if("string"===typeof a)a=a?new Pa(a,Sa):Oa();else if(a.constructor!==Pa)if(Ma(a))a=d?Faa(a):a.length?new Pa(new Uint8Array(a),Sa):Oa();else{if(!b)throw Error();a=void 0}return a},Taa=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=Za(a);
if(d&1)return!0;if(!b||!b.includes(c))return!1;bb(a,d|1);return!0},jb=function(a){if(a&2)throw Error();},kb=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();},Uaa=function(a,b){if("number"!==typeof b||0>b||b>a.length)throw Error();},Vaa=function(a,b){(b=lb?b[lb]:void 0)&&(a[lb]=Ya(b))},Waa=function(a){return a|0},Xaa=function(a){if("number"!==typeof a)throw Error("J`"+typeof a+"`"+a);return a},nb=function(a){return null==a?a:Xaa(a)},Yaa=function(a){if(null==a)return a;if("number"===
typeof a||"NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)},pb=function(a){if(null!=a){if("boolean"!==typeof a)throw Error("K`"+ob(a)+"`"+a);a=!!a}return a},Zaa=function(a){if(null==a)return a;if("boolean"===typeof a||"number"===typeof a)return!!a},qb=function(a){return"number"===typeof a&&Number.isFinite(a)||!!a&&"string"===typeof a&&isFinite(a)},rb=function(a){return a},$aa=function(a){return a},sb=function(a){return"number"===typeof a},tb=function(a){if(!sb(a))throw Error();return a},
ub=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if(sb(a))return a},aba=function(){if(!sb(0))throw Error();return 0},bba=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if(sb(a))return a},vb=function(a){if(!qb(a))throw Error("L`"+a+"`"+ob(a));return"string"===typeof a?a:a},wb=function(a){return null==a?a:vb(a)},cba=function(a){if(null==a)return a;if(qb(a))return"number"===typeof a?a:a},dba=function(a){if(null==a)return a;if(qb(a))return"string"===
typeof a?a:a},xb=function(a){if(!qb(a))throw Error("M`"+a+"`"+ob(a));return"string"===typeof a?a:a},eba=function(a){if(null==a)return a;if(qb(a)){if("string"===typeof a)return a;if("number"===typeof a)return a}},yb=function(a){if("string"!==typeof a)throw Error();return a},fba=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a},gba=function(a){return null==a||"string"===typeof a?a:void 0},Bb=function(a,b,c,d){var e=!1;if(null!=a&&"object"===typeof a&&!(e=Array.isArray(a))&&a.messagePrototypeMarker===
zb)return a;if(!e)return c?d&2?hba(b):new b:void 0;e=c=Za(a);0===e&&(e|=d&32);e|=d&2;e!==c&&bb(a,e);return new b(a)},hba=function(a){var b=a[iba];if(b)return b;b=new a;fb(b.internalArray_);return a[iba]=b},Cb=function(a){return a},Db=function(a,b,c){return"boolean"===typeof a||"number"===typeof a?!!a:c?!1:void 0},jba=function(a,b,c){b=typeof a;return"number"===b||"string"===b?Waa(a):c?0:void 0},kba=function(a,b,c){b=typeof a;a="number"===b||"string"===b?a:c?0:void 0;return"string"===typeof a&&(c=
+a,Number.isSafeInteger(c))?c:a},Eb=function(a,b,c){return"string"===typeof a?a:c?"":void 0},Hb=function(a,b){Fb=b;a=new a(b);Fb=void 0;return a},mba=function(a){switch(typeof a){case "number":return 0<a?void 0:0===a?lba||(lba=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}},m=function(a,b,c){null==a&&(a=Fb);Fb=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-2095105|(b&1023)<<11)}else{if(!Array.isArray(a))throw Error();d=Za(a);if(d&64)return Ib&&delete a[Ib],a;
d|=64;if(c&&(d|=512,c!==a[0]))throw Error();a:{c=a;var e=c.length;if(e){var f=e-1,h=c[f];if(hb(h)){d|=256;b=+!!(d&512)-1;e=f-b;1024<=e&&(nba(c,b,h),e=1023);d=d&-2095105|(e&1023)<<11;break a}}b&&(h=+!!(d&512)-1,b=Math.max(b,e-h),1024<b&&(nba(c,h,{}),d|=256,b=1023),d=d&-2095105|(b&1023)<<11)}}bb(a,d);return a},nba=function(a,b,c){for(var d=1023+b,e=a.length,f=d;f<e;f++){var h=a[f];null!=h&&h!==c&&(c[f-b]=h)}a.length=d+1;a[d]=c},oba=function(a,b){if("string"===typeof b)try{b=Baa(b)}catch(c){return!1}return Ma(b)&&
Eaa(a,b)},pba=function(a,b){if(a.messagePrototypeMarker===zb){var c=a.constructor.repeatedFields_;a=a.internalArray_}else if(!Array.isArray(a))return!1;if(b.messagePrototypeMarker===zb)c=c||b.constructor.repeatedFields_,b=b.internalArray_;else if(!Array.isArray(b))return!1;return Jb(a,b,c,!0)},Jb=function(a,b,c,d){if(a===b||null==a&&null==b)return!0;if(a instanceof Kb)return qba(a,b);if(b instanceof Kb)return qba(b,a);if(null==a||null==b)return!1;if(a instanceof Pa)return rba(a,b);if(b instanceof
Pa)return rba(b,a);if(Ma(a))return oba(a,b);if(Ma(b))return oba(b,a);var e=typeof a,f=typeof b;if("object"!==e||"object"!==f)return Number.isNaN(a)||Number.isNaN(b)?String(a)===String(b):"string"===e&&"number"===f||"number"===e&&"string"===f?+a===+b:"boolean"===e&&"number"===f||"number"===e&&"boolean"===f?!a===!b:!1;if(a.messagePrototypeMarker===zb||b.messagePrototypeMarker===zb)return pba(a,b);if(a.constructor!=b.constructor)return!1;if(a.constructor===Array){f=Za(a);var h=Za(b),k=a.length,q=b.length,
u=Math.max(k,q);e=+!!((f|h)&512)-1;c||d||!(f&64||h&64)||f&1||h&1||(d=Ib||(Ib=Symbol()),c||(c=a[d]),c||(c=b[d]));d=k&&a[k-1];f=q&&b[q-1];hb(d)||(d=null);hb(f)||(f=null);k=k-e-+!!d;q=q-e-+!!f;for(h=0;h<u;h++)if(!sba(h-e,a,d,k,b,f,q,e,c))return!1;if(d)for(var x in d){u=a;h=d;var y=b,E=f,H=c,J=+x;if(!(!Number.isFinite(J)||J<k||J<q||sba(J,u,h,k,y,E,q,e,H)))return!1}if(f)for(var O in f)if((x=d&&O in d)||(x=a,u=d,h=b,y=f,E=c,H=+O,x=!Number.isFinite(H)||H<k||H<q?!0:sba(H,x,u,k,h,y,q,e,E)),!x)return!1;return!0}if(a.constructor===
Object)return Jb([a],[b]);throw Error();},sba=function(a,b,c,d,e,f,h,k,q){b=tba(a,b,c,d,k);e=tba(a,e,f,h,k);return null==e&&Taa(b,q,a)||null==b&&Taa(e,q,a)?!0:Jb(b,e)},tba=function(a,b,c,d,e){var f;return null!=(f=a<d?b[a+e]:void 0)?f:null==c?void 0:c[a]},uba=function(a,b,c,d,e,f){a=Bb(a,d,c,f);e&&(a=Mb(a));return a},vba=function(a){return a},wba=function(a,b){if(a.size!=b.size)return!1;var c=!0;a.forEach(function(d,e){Jb(d,b.get(e))||(c=!1)});return c},xba=function(a,b){if(!Array.isArray(a)||!Array.isArray(b))return 0;
a=a[0];b=b[0];return a===b?0:a<b?-1:1},yba=function(a,b){if(null==b)return 0===a.size;if(!Array.isArray(b)||a.size>b.length)return!1;b=Array.prototype.slice.call(b);b.sort(xba);for(var c=0,d=void 0,e=b.length-1;0<=e;e--){var f=b[e];if(!f||!Array.isArray(f)||2!==f.length)return!1;var h=f[0];if(h!==d){if(!Jb(a.get(h),f[1]))return!1;d=h;c++}}return c===a.size},zba=function(a){return[a,this.get(a)]},Bba=function(a,b){return Aba(b)},Aba=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);
case "boolean":return a?1:0;case "object":if(a&&!Array.isArray(a)){if(Ma(a))return waa(a);if(a instanceof Pa)return Nb(a);if(a instanceof Kb)return Cba(a)}}return a},Dba=function(a,b,c){var d=Ya(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var h in f)b[h]=c(f[h])}Vaa(d,a);return d},Eba=function(a,b,c,d,e,f){if(null!=a){if(Array.isArray(a))a=e&&0==a.length&&Za(a)&1?void 0:f&&Za(a)&2?a:Ob(a,b,c,void 0!==d,e,f);else if(hb(a)){var h={},k;for(k in a)h[k]=
Eba(a[k],b,c,d,e,f);a=h}else a=b(a,d);return a}},Ob=function(a,b,c,d,e,f){var h=d||c?Za(a):0;d=d?!!(h&32):void 0;for(var k=Ya(a),q=0;q<k.length;q++)k[q]=Eba(k[q],b,c,d,e,f);c&&(Vaa(k,a),c(h,k));return k},Gba=function(a){return Eba(a,Fba,void 0,void 0,!1,!1)},Fba=function(a){return a.messagePrototypeMarker===zb?a.toJSON():a instanceof Kb?Cba(a,Gba):Aba(a)},Hba=function(a,b,c){c=void 0===c?Saa:c;if(null!=a){if(Caa&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=Za(a);
return d&2?a:!b||d&68||!(d&32||0===d)?Ob(a,Hba,d&4?Saa:c,!0,!1,!0):(bb(a,d|34),a)}a.messagePrototypeMarker===zb?(b=a.internalArray_,c=Pb(b),a=c&2?a:Hb(a.constructor,Qb(b,c,!0))):a instanceof Kb&&(b=fb(Iba(a,Hba)),a=new Kb(b,a.valueCtor,a.keyToApi,a.valueToApi));return a}},Qb=function(a,b,c){var d=c||b&2?Saa:Raa,e=!!(b&32);a=Dba(a,b,function(f){return Hba(f,e,d)});cb(a,32|(c?2:0));return a},Mb=function(a){var b=a.internalArray_,c=Pb(b);return c&2?Hb(a.constructor,Qb(b,c,!1)):a},Sb=function(a,b,c,d,
e){var f=gb(b);if(c>=f||e){e=b;if(b&256)f=a[a.length-1];else{if(null==d)return;f=a[f+(+!!(b&512)-1)]={};e|=256}f[c]=d;e!==b&&bb(a,e)}else a[c+(+!!(b&512)-1)]=d,b&256&&(a=a[a.length-1],c in a&&delete a[c])},Xb=function(a,b,c,d,e){var f=b&2,h=Tb(a,b,c,e);Array.isArray(h)||(h=Wb);var k=Za(h);k&1||eb(h);if(f)k&2||fb(h),d&1||Object.freeze(h);else{f=!(d&2);var q=k&2;d&1||!q?f&&k&32&&!q&&Jba(h,32):(h=eb(Ya(h)),Sb(a,b,c,h,e))}return h},Yb=function(a,b,c,d,e){a=a.internalArray_;var f=Pb(a),h=f&2,k=Xb(a,f,
b,null!=e?e:1,d),q=Za(k);if(!(q&4)){Object.isFrozen(k)&&(q=0,k=Ya(k),Sb(a,f,b,k,d));for(var u=0,x=0;u<k.length;u++){var y=c(k[u]);null!=y&&(k[x++]=y)}x<u&&(k.length=x);q|=5;h&&(q|=34);bb(k,q);q&2&&Object.freeze(k)}if(2===e)return k;!h&&(q&2||Object.isFrozen(k))&&(k=Ya(k),cb(k,5),Sb(a,f,b,k,d));return k},Kba=function(a){return ib(a,!0,!0,!0)},Lba=function(a){return ib(a,!0,!0,!1)},Oba=function(){var a;return null!=(a=Mba)?a:Mba=new Kb(fb([]),void 0,void 0,void 0,Nba)},Pba=function(a,b,c,d,e,f,h){var k=
b&2;a:{var q=c,u=b&2;c=!1;if(null==q){if(u){a=Oba();break a}q=[]}else if(q.constructor===Kb){if(0==(q.arrayState&2)||u){a=q;break a}q=Iba(q)}else Array.isArray(q)?c=!!(Za(q)&2):q=[];if(u){if(!q.length){a=Oba();break a}c||(c=!0,fb(q))}else if(c){c=!1;u=Ya(q);for(q=0;q<u.length;q++){var x=u[q]=Ya(u[q]);Array.isArray(x[1])&&(x[1]=fb(x[1]))}q=u}c||(Za(q)&64?Jba(q,32):32&b&&Qaa(q));f=new Kb(q,e,f,h);Sb(a,b,d,f,!1);a=f}if(null==a)return a;!k&&e&&(a.callToMutableOnAccess=!0);return a},Zb=function(a,b,c){a=
a.internalArray_;var d=Pb(a);return Pba(a,d,Tb(a,d,b),b,void 0,Eb,c)},$b=function(a,b,c,d){a=a.internalArray_;var e=Pb(a);return Pba(a,e,Tb(a,e,b),b,c,d)},ac=function(a,b,c,d){var e=a.internalArray_,f=Pb(e);jb(f);if(null==c)return Sb(e,f,b),a;if(!(Za(c)&4)){Object.isFrozen(c)&&(c=Ya(c));for(var h=0;h<c.length;h++)c[h]=d(c[h]);bb(c,5)}Sb(e,f,b,c);return a},bc=function(a,b,c,d){var e=a.internalArray_,f=Pb(e);jb(f);Sb(e,f,b,("0"===d?0===Number(c):c===d)?void 0:c);return a},cc=function(a,b,c,d){var e=
a.internalArray_,f=Pb(e);jb(f);b=Xb(e,f,b,2);void 0!=d?b.splice(d,0,c):b.push(c);return a},dc=function(a,b,c,d,e){jb(Pb(a.internalArray_));b=e(a,b,!1,2);Uaa(b,c);b[c]=d;return a},Qba=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=Tb(a,b,f)&&(0!==d&&Sb(a,b,d),d=f)}return d},Rba=function(a,b,c,d,e,f){var h=!!(b&2),k=Xb(a,b,d,1,e);if(k===Wb||!(Za(k)&4)){var q=k;k=!!(b&2);var u=!!(Za(q)&2);h=q;!k&&u&&(q=Ya(q));var x=b|(u?2:0);u=u||void 0;for(var y=0,E=0;y<q.length;y++){var H=Bb(q[y],
c,!1,x);void 0!==H&&(u=u||Pb(H.internalArray_)&2,q[E++]=H)}E<y&&(q.length=E);c=q;q=Za(c);x=q|5;u=u?x&-9:x|8;q!=u&&(c=Paa(c,u));q=c;h!==q&&Sb(a,b,d,q,e);(k&&2!==f||1===f)&&Object.freeze(q);return q}if(3===f)return k;h?2===f&&(f=Za(k),k=Ya(k),bb(k,f),Sb(a,b,d,k,e)):(h=Object.isFrozen(k),1===f?h||Object.freeze(k):(f=Za(k),c=f&-35,h&&(k=Ya(k),f=0,Sb(a,b,d,k,e)),f!==c&&bb(k,c)));return k},ec=function(a,b,c,d,e,f,h){a=a.internalArray_;var k=Pb(a);jb(k);b=Rba(a,k,c,b,f,2);c=null!=d?d:new c;h&&Uaa(b,e);void 0!=
e?b.splice(e,h,c):b.push(c);c.isImmutable()&&Jba(b,8);return c},fc=function(a,b){return null!=a?a:b},Sba=function(a){return ib(a,!1,!1,!1)},hc=function(a){return ib(a,!1,!0,!1)},Tba=function(a,b,c){var d=a.constructor.repeatedFields_,e=gb(Pb(c?a.internalArray_:b)),f=!1;if(d){if(!c){b=Ya(b);var h;if(b.length&&hb(h=b[b.length-1]))for(f=0;f<d.length;f++)if(d[f]>=e){Object.assign(b[b.length-1]={},h);break}f=!0}e=b;c=!c;h=Pb(a.internalArray_);a=gb(h);h=+!!(h&512)-1;for(var k,q,u=0;u<d.length;u++)if(q=
d[u],q<a){q+=h;var x=e[q];null==x?e[q]=c?Wb:eb([]):c&&x!==Wb&&Oaa(x)}else k||(x=void 0,e.length&&hb(x=e[e.length-1])?k=x:e.push(k={})),x=k[q],null==k[q]?k[q]=c?Wb:eb([]):c&&x!==Wb&&Oaa(x)}d=b.length;if(!d)return b;var y;if(hb(k=b[d-1])){a:{var E=k;e={};c=!1;for(var H in E)a=E[H],Array.isArray(a)&&a!=a&&(c=!0),null!=a?e[H]=a:c=!0;if(c){for(var J in e){E=e;break a}E=null}}E!=k&&(y=!0);d--}for(;0<d;d--){k=b[d-1];if(null!=k)break;var O=!0}if(!y&&!O)return b;var R;f?R=b:R=Array.prototype.slice.call(b,
0,d);b=R;f&&(b.length=d);E&&b.push(E);return b},Yba=function(a){var b=a[Uba];if(!b){var c=Vba(a),d=c.messageSetReader;b=d?function(e,f){return d(e,f,c)}:function(e,f){for(;Wba(f)&&4!=f.nextWireType_;){var h=f.nextField_,k=c[h];if(!k){var q=c.extensions;q&&(q=q[h])&&(k=c[h]=Xba(q))}k&&k(f,e,h)||(k=f,h=k.fieldCursor_,ic(k),k.discardUnknownFields?k=void 0:(q=k.decoder_.getCursor()-h,k.decoder_.cursor_=h,k=k.decoder_.readByteString(q)),h=e,k&&(lb||(lb=Symbol()),(q=h[lb])?q.push(k):h[lb]=[k]))}(f=c.repeatedFields)&&
(e[Ib||(Ib=Symbol())]=f)};a[Uba]=b}return b},Zba=function(a){if(a=a.binaryFieldsInitializer)return Yba(a)},Xba=function(a){var b=Zba(a),c=a.readerWriterSelector.$$binaryReaderFn;if(b){var d=Vba(a.binaryFieldsInitializer).messageMetadata;return function(e,f,h){return c(e,f,h,d,b)}}return function(e,f,h){return c(e,f,h)}},$ba=function(a,b,c,d){b.messageMetadata=mba(a[0]);var e=1;if(a.length>e&&!(a[e]instanceof jc)){var f=a[e++];if(Array.isArray(f))return b.messageSetReader=f[0],b.extensions=f[1],b;
b.extensions=f}for(f=0;e<a.length;){var h=a[e++],k=a[e];"number"===typeof k?(e++,f+=k):f++;h.$$isRepeated&&(k=b.repeatedFields,k||(b.repeatedFields=k=[]),k.push(f));for(k=e;k<a.length&&!(a[k]instanceof jc);)k++;if(k-=e){var q=a,u=e,x=q[u];"function"==typeof x&&(x=x(),q[u]=x);if((q=Array.isArray(x))&&!(q=kc in x||lc in x)&&(q=0<x.length)){q=x;u=q[0];var y=mba(u);null!=y&&y!==u&&(q[0]=y);q=null!=y}(x=q?x:void 0)?(e++,b[f]=1===k?d(h,x):d(h,x,a[e++])):b[f]=c(h,a[e++])}else b[f]=c(h)}return b},cca=function(a){var b=
a[aca];if(!b){var c=mc(a);b=function(d,e){return bca(d,e,c)};a[aca]=b}return b},dca=function(a){return a.$$binaryWriterFn},eca=function(a,b){var c,d,e=a.$$binaryWriterFn;return function(f,h,k){return e(f,h,k,d||(d=mc(b).messageMetadata),c||(c=cca(b)))}},mc=function(a){var b=a[lc];if(b)return b;b=$ba(a,a[lc]={},dca,eca);kc in a&&lc in a&&(a.length=0);return b},fca=function(a,b){var c=a.$$binaryReaderFn;return b?function(d,e,f){return c(d,e,f,b)}:c},gca=function(a,b,c){var d=a.$$binaryReaderFn,e,f;
return function(h,k,q){return d(h,k,q,f||(f=Vba(b).messageMetadata),e||(e=Yba(b)),c)}},Vba=function(a){var b=a[kc];if(b)return b;b=$ba(a,a[kc]={},fca,gca);kc in a&&lc in a&&(a.length=0);return b},hca=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){var d=c.binaryFieldsInitializer,e=c.readerWriterSelector.$$binaryWriterFn;if(d){var f=cca(d),h=mc(d).messageMetadata;c=function(k,q,u){return e(k,q,u,h,f)}}else c=e;return a[b]=c}},bca=function(a,b,c){for(var d=Pb(a),e=+!!(d&512)-1,f=
a.length,h=f+(d&256?-1:0),k=d&512?1:0;k<h;k++){var q=a[k];if(null!=q){var u=k-e,x=hca(c,u);x&&x(b,q,u)}}if(d&256){d=a[f-1];for(var y in d)e=+y,Number.isNaN(e)||(f=d[y],null!=f&&(h=hca(c,e))&&h(b,f,e))}if(a=lb?a[lb]:void 0)for(nc(b,b.encoder_.end()),c=0;c<a.length;c++)nc(b,Ta(a[c])||Na())},oc=function(a,b){return new jc(a,b,!1)},pc=function(a,b,c,d){return new ica(a,b,c,d)},qc=function(a,b){for(var c=[],d=0;d<a.length;d++)c.push(b(a[d]));return c},kca=function(a,b,c){for(var d in c){var e=c[d],f=e.isRepeated?
a.getExtension(e):jca(a,e);if(null!=f){var h=void 0;for(h in e.fieldName)if(e.fieldName.hasOwnProperty(h))break;var k=e.toObjectFn;b[h]=k?e.isRepeated?qc(f,k):k(f):f}}},lca=function(a){null!=a&&(a=a.value_||"",a="string"===typeof a?a:new Uint8Array(a));return a},rc=function(a){return null===a?void 0:a},mca=function(a){return null==a?void 0:Array.isArray(a)?a.map(function(b){return Nb(b)}):Nb(a)},sc=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("Q`"+ob(b)+"`"+b);fb(b);
return new a(b)}},tc=function(a){return function(b){return nca(a,b)}},uc=function(a){if(Za(a.internalArray_)&2)throw Error("T");},vc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},wc=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},oca=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},pca=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},qca=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},rca=function(a,
b){return null!==a&&b in a},sca=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},tca=function(a,b){return(b=sca(a,b))&&a[b]},xc=function(a){for(var b in a)return!1;return!0},uca=function(a){for(var b in a)delete a[b]},yc=function(a,b){b in a&&delete a[b]},zc=function(a,b){return null!==a&&b in a?a[b]:void 0},Ac=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Bc=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<vca.length;f++)c=
vca[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},wca=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return wca.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},Dca=function(a){if(a instanceof Dc)return'url("'+Ec(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Fc)a=Gc(a);else{a=String(a);var b=a.replace(xca,"$1").replace(xca,"$1").replace(yca,"url");if(zca.test(b)){if(b=!Aca.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=
a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Bca(a)}a=b?Cca(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new ba("Value does not allow [{;}], got: %s.",[a]);return a},Bca=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b},Cca=function(a){return a.replace(yca,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,k,q){f=k;return q});
b=(Eca(d)||Hc).getTypedStringValue();return c+f+b+f+e})},Fca=function(a,b){return Zone.current.wrap(a,b)},Gca=function(a,b){for(var c=a.length-1;0<=c;c--)"function"===typeof a[c]&&(a[c]=Fca(a[c],b+"_"+c));return a},Ica=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={name$jscomp$176:d.name$jscomp$176},e++){d.name$jscomp$176=b[e];var f=a[d.name$jscomp$176];if(f){var h=Ic(a,d.name$jscomp$176);Hca(h)&&(a[d.name$jscomp$176]=function(k){return function(q){var u=
function(){return q.apply(this,Gca(arguments,c+"."+k.name$jscomp$176))};Kc(u,q);return u}}(d)(f))}}},Hca=function(a){return a?!1===a.writable?!1:!("function"===typeof a.get&&"undefined"===typeof a.set):!0},Lca=function(a,b,c){var d=Ic(a,b);!d&&c&&Ic(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=Lc("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,h=b.slice(2),k=Mc[h];k||(k=Mc[h]=Lc("ON_PROPERTY"+h));d.set=function(q){var u=this;
u||a!==Nc||(u=Nc);u&&("function"===typeof u[k]&&u.removeEventListener(h,Jca),f&&f.call(u,null),u[k]=q,"function"===typeof q&&u.addEventListener(h,Jca,!1))};d.get=function(){var q=this;q||a!==Nc||(q=Nc);if(!q)return null;var u=q[k];return u?u:e&&(u=e.call(this))?(d.set.call(this,u),"function"===typeof q.removeAttribute&&q.removeAttribute(b),u):null};Kca(a,b,d);a[c]=!0}},Mca=function(a,b,c){if(b)for(var d=0;d<b.length;d++)Lca(a,"on"+b[d],c);else{b=[];for(d in a)"on"==d.slice(0,2)&&b.push(d);for(d=0;d<
b.length;d++)Lca(a,b[d],c)}},Pc=function(a){var b=Nc[a];if(b){Nc[Lc(a)]=b;Nc[a]=function(){var e=Gca(arguments,a);switch(e.length){case 0:this[Oc]=new b;break;case 1:this[Oc]=new b(e[0]);break;case 2:this[Oc]=new b(e[0],e[1]);break;case 3:this[Oc]=new b(e[0],e[1],e[2]);break;case 4:this[Oc]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("ka");}};Kc(Nc[a],b);var c=new b(function(){}),d;for(d in c)"XMLHttpRequest"===a&&"responseBlob"===d||function(e){"function"===typeof c[e]?Nc[a].prototype[e]=
function(){return this[Oc][e].apply(this[Oc],arguments)}:Kca(Nc[a].prototype,e,{set:function(f){"function"===typeof f?(this[Oc][e]=Fca(f,a+"."+e),Kc(this[Oc][e],f)):this[Oc][e]=f},get:function(){return this[Oc][e]}})}(d);for(d in b)"prototype"!==d&&b.hasOwnProperty(d)&&(Nc[a][d]=b[d])}},Qc=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=Nca(d);!d&&a[b]&&(d=a);a=Lc(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&Ic(d,b);if(Hca(f)){var h=c(e,a,b);d[b]=function(){return h(this,
arguments)};Kc(d[b],e)}}return e},Oca=function(a,b,c){function d(f){var h=f.data;h.args[h.cbIdx]=function(){f.invoke.apply(this,arguments)};e.apply(h.target,h.args);return f}var e=null;e=Qc(a,b,function(f){return function(h,k){var q=c(h,k);return 0<=q.cbIdx&&"function"===typeof k[q.cbIdx]?Zone.current.scheduleMacroTask(q.name,k[q.cbIdx],q,d):f.apply(h,k)}})},Kc=function(a,b){a[Lc("OriginalDelegate")]=b},Rca=function(){if(Pca)return Qca;Pca=!0;try{var a=Rc.navigator.userAgent;if(-1!==a.indexOf("MSIE ")||
-1!==a.indexOf("Trident/")||-1!==a.indexOf("Edge/"))Qca=!0}catch(b){}return Qca},Sca=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=Sc+c;b=Sc+b;Tc[a]={};Tc[a]["false"]=c;Tc[a]["true"]=b},Yca=function(a,b,c,d){function e(U,Z,na){if(Z=Z||a.event){U=U||Z.target||a;var oa=U[Tc[Z.type][na?"true":"false"]];if(oa){na=[];if(1===oa.length)(Z=E(oa[0],U,Z))&&na.push(Z);else{oa=oa.slice();for(var wa=0;wa<oa.length&&(!Z||!0!==Z[Tca]);wa++){var Da=E(oa[wa],U,Z);Da&&na.push(Da)}}if(1===na.length)throw na[0];
Z={};for(U=0;U<na.length;Z={err$jscomp$23:Z.err$jscomp$23},U++)Z.err$jscomp$23=na[U],b.nativeScheduleMicroTask(function(Ga){return function(){throw Ga.err$jscomp$23;}}(Z))}}}function f(U,Z){if(!U)return!1;var na=!0;Z&&void 0!==Z.useG&&(na=Z.useG);var oa=Z&&Z.vh,wa=!0;Z&&void 0!==Z.chkDup&&(wa=Z.chkDup);var Da=!1;Z&&void 0!==Z.rt&&(Da=Z.rt);for(var Ga=U;Ga&&!Ga.hasOwnProperty(h);)Ga=Nca(Ga);!Ga&&U[h]&&(Ga=U);if(!Ga||Ga[x])return!1;var Ub=Z&&Z.eventNameToString,Vb={},$a=Ga[x]=Ga[h],ja=Ga[Lc(k)]=Ga[k];
U=Ga[Lc(q)]=Ga[q];var ya=Ga[Lc(u)]=Ga[u],Ha;Z&&Z.prepend&&(Ha=Ga[Lc(Z.prepend)]=Ga[Z.prepend]);var ab=function(db){if(!db.isRemoved){var Gb=Tc[db.eventName],Lb;Gb&&(Lb=Gb[db.capture?"true":"false"]);if(Gb=Lb&&db.target[Lb])for(var Rb=0;Rb<Gb.length;Rb++)if(Gb[Rb]===db){Gb.splice(Rb,1);db.isRemoved=!0;0===Gb.length&&(db.allRemoved=!0,db.target[Lb]=null);break}}if(db.allRemoved)return ja.call(db.target,db.eventName,db.capture?J:H,db.options)},Ra=function(db){return $a.call(Vb.target,Vb.eventName,db.invoke,
Vb.options)},Jc=function(db){return Ha.call(Vb.target,Vb.eventName,db.invoke,Vb.options)},Ua=function(db){return ja.call(db.target,db.eventName,db.invoke,db.options)};Ra=na?function(){if(!Vb.isExisting)return $a.call(Vb.target,Vb.eventName,Vb.capture?J:H,Vb.options)}:Ra;ab=na?ab:Ua;Ua=function(db,Gb){var Lb=typeof Gb;return"function"===Lb&&db.callback===Gb||"object"===Lb&&db.originalDelegate===Gb};var mb=Z&&Z.diff?Z.diff:Ua,Qa=Zone[Lc("UNPATCHED_EVENTS")],Ab=a[Lc("PASSIVE_EVENTS")];Ua=function(db,
Gb,Lb,Rb,Cc,Tf){Cc=void 0===Cc?!1:Cc;Tf=void 0===Tf?!1:Tf;return function(){var yd=this||a,me=arguments[0];Z&&Z.transferEventName&&(me=Z.transferEventName(me));var tj=arguments[1];if(!tj||Uc&&"uncaughtException"===me)return db.apply(this,arguments);var Y$=!1;if("function"!==typeof tj){if(!tj.handleEvent)return db.apply(this,arguments);Y$=!0}if(!oa||oa(db,tj,yd,arguments)){var Es=Vc&&!!Ab&&-1!==Ab.indexOf(me);var ug=arguments[2];ug=!Vc&&"object"===typeof ug&&ug?!!ug.capture:Vc&&Es?"boolean"===typeof ug?
{capture:ug,passive:!0}:ug?"object"===typeof ug&&!1!==ug.passive?Object.assign({},ug,{passive:!0}):ug:{passive:!0}:ug;if(Qa)for(var xP=0;xP<Qa.length;xP++)if(me===Qa[xP])return Es?db.call(yd,me,tj,ug):db.apply(this,arguments);Es=ug?"boolean"===typeof ug?!0:ug.capture:!1;xP=ug&&"object"===typeof ug?ug.once:!1;var zcb=Zone.current,Fs=Tc[me];Fs||(Sca(me,Ub),Fs=Tc[me]);var gw=Fs[Es?"true":"false"];Fs=yd[gw];var $G=!1;if(Fs){if($G=!0,wa)for(gw=0;gw<Fs.length;gw++)if(mb(Fs[gw],tj))return}else Fs=yd[gw]=
[];var tm;gw=yd.constructor.name;var RFa=Uca[gw];RFa&&(tm=RFa[me]);tm||(tm=gw+Gb+(Ub?Ub(me):me));Vb.options=ug;xP&&(Vb.options.once=!1);Vb.target=yd;Vb.capture=Es;Vb.eventName=me;Vb.isExisting=$G;if($G=na?Vca:void 0)$G.taskData=Vb;tm=zcb.scheduleEventTask(tm,tj,$G,Lb,Rb);Vb.target=null;$G&&($G.taskData=null);xP&&(ug.once=!0);if(Vc||"boolean"!==typeof tm.options)tm.options=ug;tm.target=yd;tm.capture=Es;tm.eventName=me;Y$&&(tm.originalDelegate=tj);Tf?Fs.unshift(tm):Fs.push(tm);if(Cc)return yd}}};Ga[h]=
Ua($a,y,Ra,ab,Da);Ha&&(Ga.prependListener=Ua(Ha,".prependListener:",Jc,ab,Da,!0));Ga[k]=function(){var db=this||a,Gb=arguments[0];Z&&Z.transferEventName&&(Gb=Z.transferEventName(Gb));var Lb=arguments[2],Rb=Lb?"boolean"===typeof Lb?!0:Lb.capture:!1;Lb=arguments[1];if(!Lb)return ja.apply(this,arguments);if(!oa||oa(ja,Lb,db,arguments)){var Cc=Tc[Gb],Tf;Cc&&(Tf=Cc[Rb?"true":"false"]);if(Rb=Tf&&db[Tf])for(Cc=0;Cc<Rb.length;Cc++){var yd=Rb[Cc];if(mb(yd,Lb)){Rb.splice(Cc,1);yd.isRemoved=!0;0===Rb.length&&
(yd.allRemoved=!0,db[Tf]=null,"string"===typeof Gb&&(db[Sc+"ON_PROPERTY"+Gb]=null));yd.zone.cancelTask(yd);if(Da)return db;return}}return ja.apply(this,arguments)}};Ga[q]=function(db){var Gb=this||a,Lb=db;Z&&Z.transferEventName&&(Lb=Z.transferEventName(Lb));db=[];Gb=Wca(Gb,Ub?Ub(Lb):Lb);for(Lb=0;Lb<Gb.length;Lb++){var Rb=Gb[Lb];db.push(Rb.originalDelegate?Rb.originalDelegate:Rb.callback)}return db};Ga[u]=function(db){var Gb=this||a;if(db){Z&&Z.transferEventName&&(db=Z.transferEventName(db));var Lb=
Tc[db];if(Lb){var Rb=Gb[Lb["false"]];Gb=Gb[Lb["true"]];if(Rb)for(Rb=Rb.slice(),Lb=0;Lb<Rb.length;Lb++){var Cc=Rb[Lb];this[k].call(this,db,Cc.originalDelegate?Cc.originalDelegate:Cc.callback,Cc.options)}if(Gb)for(Gb=Gb.slice(),Rb=0;Rb<Gb.length;Rb++)Lb=Gb[Rb],this[k].call(this,db,Lb.originalDelegate?Lb.originalDelegate:Lb.callback,Lb.options)}}else{db=Object.keys(Gb);for(Gb=0;Gb<db.length;Gb++)(Rb=(Rb=Xca.exec(db[Gb]))&&Rb[1])&&"removeListener"!==Rb&&this[u].call(this,Rb);this[u].call(this,"removeListener")}if(Da)return this};
Kc(Ga[h],$a);Kc(Ga[k],ja);ya&&Kc(Ga[u],ya);U&&Kc(Ga[q],U);return!0}for(var h=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",u=d&&d.rmAll||"removeAllListeners",x=Lc(h),y="."+h+":",E=function(U,Z,na){if(!U.isRemoved){var oa=U.callback;"object"===typeof oa&&oa.handleEvent&&(U.callback=function(Ga){return oa.handleEvent(Ga)},U.originalDelegate=oa);try{U.invoke(U,Z,[na])}catch(Ga){var wa=Ga}var Da=U.options;Da&&"object"===typeof Da&&Da.once&&Z[k].call(Z,
na.type,U.originalDelegate?U.originalDelegate:U.callback,Da);return wa}},H=function(U){return e(this,U,!1)},J=function(U){return e(this,U,!0)},O=[],R=0;R<c.length;R++)O[R]=f(c[R],d);return O},Wca=function(a,b){if(!b){var c=[],d;for(d in a){var e=Xca.exec(d);if((e=e&&e[1])&&(!b||e===b)&&(e=a[d]))for(var f=0;f<e.length;f++)c.push(e[f])}return c}c=Tc[b];c||(Sca(b),c=Tc[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():[]},Zca=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,
"stopImmediatePropagation",function(c){return function(d,e){d[Tca]=!0;c&&c.apply(d,e)}})},$ca=function(a,b){b.patchMethod(a,"queueMicrotask",function(){return function(c,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])}})},Xc=function(a,b,c,d){function e(u){var x=u.data;x.args[0]=function(){return u.invoke.apply(this,arguments)};x.handleId=h.apply(a,x.args);return u}function f(u){return k.call(a,u.data.handleId)}var h=null,k=null;b+=d;c+=d;var q={};h=Qc(a,b,function(u){return function(x,y){if("function"===
typeof y[0]){var E={isPeriodic:"Interval"===d,delay:"Timeout"===d||"Interval"===d?y[1]||0:void 0,args:y},H=y[0];y[0]=function(){try{return H.apply(this,arguments)}finally{E.isPeriodic||("number"===typeof E.handleId?delete q[E.handleId]:E.handleId&&(E.handleId[Wc]=null))}};x=Zone.current.scheduleMacroTask(b,y[0],E,e,f);if(!x)return x;y=x.data.handleId;"number"===typeof y?q[y]=x:y&&(y[Wc]=x);y&&y.ref&&y.unref&&"function"===typeof y.ref&&"function"===typeof y.unref&&(x.ref=y.ref.bind(y),x.unref=y.unref.bind(y));
return"number"===typeof y||y?y:x}return u.apply(a,y)}});k=Qc(a,c,function(u){return function(x,y){x=y[0];if("number"===typeof x)var E=q[x];else(E=x&&x[Wc])||(E=x);E&&"string"===typeof E.type?"notScheduled"!==E.state&&(E.cancelFn&&E.data.isPeriodic||0===E.runCount)&&("number"===typeof x?delete q[x]:x&&(x[Wc]=null),E.zone.cancelTask(E)):u.apply(a,y)}})},ada=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var h=b[f]=b[d];b[d]=function(k,q,u){q&&q.prototype&&e.forEach(function(x){var y=c+"."+d+
"::"+x,E=q.prototype;try{if(E.hasOwnProperty(x)){var H=a.ObjectGetOwnPropertyDescriptor(E,x);H&&H.value?(H.value=a.wrapWithCurrentZone(H.value,y),a._redefineProperty(q.prototype,x,H)):E[x]&&(E[x]=a.wrapWithCurrentZone(E[x],y))}else E[x]&&(E[x]=a.wrapWithCurrentZone(E[x],y))}catch(J){}});return h.call(b,k,q,u)};a.attachOriginToPatched(b[d],h)}},bda=function(a,b,c){if(!c||0===c.length)return b;c=c.filter(function(e){return e.target===a});if(!c||0===c.length)return b;var d=c[0].ignoreProperties;return b.filter(function(e){return-1===
d.indexOf(e)})},cda=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&2<b.length}).map(function(b){return b.substring(2)})},jda=function(){dda=Zone.__symbol__;eda=Object[dda("defineProperty")]=Object.defineProperty;fda=Object[dda("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor;gda=Object.create;Yc=dda("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[Yc]&&a[Yc][b])throw new TypeError("oa`"+b+"`"+a);var d=c.configurable;"prototype"!==
b&&(c=hda(a,b,c));return ida(a,b,c,d)};Object.defineProperties=function(a,b){Object.keys(b).forEach(function(f){Object.defineProperty(a,f,b[f])});for(var c=l(Object.getOwnPropertySymbols(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;(null==(e=Object.getOwnPropertyDescriptor(b,d))?0:e.enumerable)&&Object.defineProperty(a,d,b[d])}return a};Object.create=function(a,b){"object"!==typeof b||Object.isFrozen(b)||Object.keys(b).forEach(function(c){b[c]=hda(a,c,b[c])});return gda(a,b)};Object.getOwnPropertyDescriptor=
function(a,b){var c=fda(a,b);c&&a&&a[Yc]&&a[Yc][b]&&(c.configurable=!1);return c}},kda=function(a,b,c){var d=c.configurable;c=hda(a,b,c);return ida(a,b,c,d)},hda=function(a,b,c){Object.isFrozen(c)||(c.configurable=!0);c.configurable||(a[Yc]||Object.isFrozen(a)||eda(a,Yc,{writable:!0,value:{}}),a[Yc]&&(a[Yc][b]=!0));return c},ida=function(a,b,c,d){try{return eda(a,b,c)}catch(e){if(c.configurable){"undefined"==typeof d?delete c.configurable:c.configurable=d;try{return eda(a,b,c)}catch(f){d=!1;if("createdCallback"===
b||"attachedCallback"===b||"detachedCallback"===b||"attributeChangedCallback"===b)d=!0;if(!d)throw f;d=null;try{d=JSON.stringify(c)}catch(h){d=c.toString()}console.log("Attempting to configure '"+b+"' with descriptor '"+d+"' on object '"+a+"' and got error, giving up: "+f)}}else throw e;}},lda=function(a,b){var c=b.getGlobalObjects(),d=c.eventNames,e=c.globalSources,f=c.zoneSymbolEventNames,h=c.TRUE_STR,k=c.FALSE_STR,q=c.ZONE_SYMBOL_PREFIX,u="ApplicationCache EventSource FileReader InputMethodContext MediaController MessagePort Node Performance SVGElementInstance SharedWorker TextTrack TextTrackCue TextTrackList WebKitNamedFlow Window Worker WorkerGlobalScope XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor DBIndex WebSocket".split(" ");
c=[];var x="Anchor Area Audio BR Base BaseFont Body Button Canvas Content DList Directory Div Embed FieldSet Font Form Frame FrameSet HR Head Heading Html IFrame Image Input Keygen LI Label Legend Link Map Marquee Media Menu Meta Meter Mod OList Object OptGroup Option Output Paragraph Pre Progress Quote Script Select Source Span Style TableCaption TableCell TableCol Table TableRow TableSection TextArea Title Track UList Unknown Video".split(" ");a.wtf?c=x.map(function(Z){return"HTML"+Z+"Element"}).concat(u):
a.EventTarget?c.push("EventTarget"):c=u;var y=a.__Zone_disable_IE_check||!1,E=a.__Zone_enable_cross_context_check||!1,H=b.isIEOrEdge(),J={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"};for(u=0;u<d.length;u++){var O=d[u],R=q+(O+k),U=q+(O+h);f[O]={};f[O][k]=R;f[O][h]=U}for(f=0;f<x.length;f++)for(h=
x[f],k=e[h]={},q=0;q<d.length;q++)u=d[q],k[u]=h+".addEventListener:"+u;d=[];for(e=0;e<c.length;e++)x=a[c[e]],d.push(x&&x.prototype);b.patchEventTarget(a,b,d,{vh:function(Z,na,oa,wa){if(!y&&H)if(E)try{var Da=na.toString();if("[object FunctionWrapper]"===Da||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==Da)return Z.apply(oa,wa),!1}catch(Ga){return Z.apply(oa,wa),!1}else{if(na=na.toString(),"[object FunctionWrapper]"===na||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==
na)return Z.apply(oa,wa),!1}else if(E)try{na.toString()}catch(Ga){return Z.apply(oa,wa),!1}return!0},transferEventName:function(Z){return J[Z]||Z}});Zone[b.symbol("patchEventTarget")]=!!a.EventTarget},mda=function(a,b){var c=a.getGlobalObjects(),d=c.ADD_EVENT_LISTENER_STR,e=c.REMOVE_EVENT_LISTENER_STR,f=b.WebSocket;b.EventTarget||a.patchEventTarget(b,a,[f.prototype]);b.WebSocket=function(k,q){var u=1<arguments.length?new f(k,q):new f(k),x=a.ObjectGetOwnPropertyDescriptor(u,"onmessage");if(x&&!1===
x.configurable){var y=a.ObjectCreate(u);var E=u;[d,e,"send","close"].forEach(function(H){y[H]=function(){var J=a.ArraySlice.call(arguments);if(H===d||H===e){var O=0<J.length?J[0]:void 0;O&&(O=Zone.__symbol__("ON_PROPERTY"+O),u[O]=y[O])}return u[H].apply(u,J)}})}else y=u;a.patchOnProperties(y,["close","error","message","open"],E);return y};c=b.WebSocket;for(var h in f)c[h]=f[h]},nda=function(a,b){var c=a.getGlobalObjects(),d=c.isMix;if((c.isBrowser||d)&&!a.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,
"onclick")&&"undefined"!==typeof Element){if((c=a.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick"))&&!c.configurable)return!1;if(c)return a.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}}),d=!!document.createElement("div").onclick,a.ObjectDefineProperty(Element.prototype,"onclick",c),d}var e=b.XMLHttpRequest;if(!e)return!1;c=e.prototype;if(d=a.ObjectGetOwnPropertyDescriptor(c,"onreadystatechange"))return a.ObjectDefineProperty(c,
"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}}),e=!!(new e).onreadystatechange,a.ObjectDefineProperty(c,"onreadystatechange",d||{}),e;var f=a.symbol("fake");a.ObjectDefineProperty(c,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[f]},set:function(h){this[f]=h}});a=new e;c=function(){};a.onreadystatechange=c;c=a[f]===c;a.onreadystatechange=null;return c},pda=function(a){for(var b=a.symbol("unbound"),c={},d=0;d<oda.length;c={onproperty:c.onproperty},
d++){var e=oda[d];c.onproperty="on"+e;self.addEventListener(e,function(f){return function(h){h=h.target;var k;for(k=h?h.constructor.name+"."+f.onproperty:"unknown."+f.onproperty;h;){if(h[f.onproperty]&&!h[f.onproperty][b]){var q=a.wrapWithCurrentZone(h[f.onproperty],k);q[b]=h[f.onproperty];h[f.onproperty]=q}h=h.parentElement}}}(c),!0)}},Zc=function(a){for(var b in a)if(a[b]===Zc)return b;throw Error("pa");},qda=function(a,b){for(var c in b)b.hasOwnProperty(c)&&!a.hasOwnProperty(c)&&(a[c]=b[c])},$c=
function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},ad=function(a){return{providers:a.providers||[],imports:a.imports||[]}},tda=function(a){var b;(b=a.hasOwnProperty(rda)?a[rda]:null)||(b=a.hasOwnProperty(sda)?a[sda]:null);return b},uda=function(a){return(a=a&&(a[rda]||a[sda]))?a:null},xda=function(a){return a&&(a.hasOwnProperty(vda)||a.hasOwnProperty(wda))?a[vda]:null},bd=function(a){return"string"===typeof a?a:null==a?"":String(a)},cd=function(a){if("string"===
typeof a)return a;if(Array.isArray(a))return"["+a.map(cd).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return""+a.overriddenName;if(a.name)return""+a.name;a=a.toString();if(null==a)return""+a;var b=a.indexOf("\n");return-1===b?a:a.substring(0,b)},yda=function(a,b){return null==a||""===a?null===b?"":b:null==b||""===b?a:a+" "+b},zda=function(){throw new dd(-201,!1);},ed=function(a){var b=Ada;Ada=a;return b},Bda=function(a,b,c){var d=tda(a);if(d&&"root"==d.providedIn)return void 0===d.value?
d.value=d.factory():d.value;if(c&8)return null;if(void 0!==b)return b;zda(cd(a))},fd=function(a){a.__forward_ref__=fd;a.toString=function(){return cd(this())};return a},gd=function(a){return Cda(a)?a():a},Cda=function(a){return"function"===typeof a&&a.hasOwnProperty(Dda)&&a.__forward_ref__===fd},id=function(a){var b=hd;hd=a;return b},Eda=function(a,b){b=void 0===b?0:b;if(void 0===hd)throw new dd(-203,!1);return null===hd?Bda(a,void 0,b):hd.get(a,b&8?null:void 0,b)},n=function(a,b){b=void 0===b?0:
b;return(Ada||Eda)(gd(a),b)},jd=function(a,b){return n(a,Fda(void 0===b?0:b))},Fda=function(a){return"undefined"===typeof a||"number"===typeof a?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},Gda=function(a){for(var b=[],c=0;c<a.length;c++){var d=gd(a[c]);if(Array.isArray(d)){if(0===d.length)throw new dd(900,!1);for(var e=void 0,f=0,h=0;h<d.length;h++){var k=d[h],q=k.__NG_DI_FLAG__;"number"===typeof q?-1===q?e=k.token:f|=q:e=k}b.push(n(e,f))}else b.push(n(d))}return b},kd=function(a,
b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},Hda=function(a,b){for(var c=0,d=a.length;;){c=a.indexOf(b,c);if(-1===c)return c;if(0===c||32>=a.charCodeAt(c-1)){var e=b.length;if(c+e===d||32>=a.charCodeAt(c+e))return c}c+=1}},Ida=function(a,b,c){for(var d=0;d<c.length;){var e=c[d];if("number"===typeof e){if(0!==e)break;d++;e=c[d++];var f=c[d++],h=c[d++];a.setAttribute(b,f,h,e)}else f=c[++d],64===e.charCodeAt(0)?a.setProperty(b,e,f):a.setAttribute(b,e,f),d++}},ld=function(a,b){if(null!==
b&&0!==b.length)if(null===a||0===a.length)a=b.slice();else for(var c=-1,d=0;d<b.length;d++){var e=b[d];"number"===typeof e?c=e:0!==c&&(-1===c||2===c?Jda(a,c,e,b[++d]):Jda(a,c,e,null))}return a},Jda=function(a,b,c,d){var e=0,f=a.length;if(-1===b)f=-1;else for(;e<a.length;){var h=a[e++];if("number"===typeof h)if(h===b){f=-1;break}else if(h>b){f=e-1;break}}for(;e<a.length;){h=a[e];if("number"===typeof h)break;else if(h===c){null!==d&&(a[e+1]=d);return}e++;null!==d&&e++}-1!==f&&(a.splice(f,0,b),e=f+1);
a.splice(e++,0,c);null!==d&&a.splice(e++,0,d)},Kda=function(a,b,c){var d=4,e=a.attrs||[],f;a:{for(f=0;f<e.length;f++){var h=e[f];if(3===h||4===h||6===h)break a}f=e.length}h=!1;for(var k=0;k<b.length;k++){var q=b[k];if("number"===typeof q){if(!h&&0!==(d&1)&&0!==(q&1))return!1;h&&0===(q&1)||(h=!1,d=q|d&1)}else if(!h)if(d&4){if(d=2|d&1,""!==q&&q!==(4!==a.type||c?a.value:"ng-template")||""===q&&1===b.length){if(0===(d&1))return!1;h=!0}}else{var u=d&8?q:b[++k];if(d&8&&null!==a.attrs){a:{q=a.attrs;for(var x=
c,y=0,E=!0;y<q.length;){var H=q[y++];if("string"===typeof H&&E){var J=q[y++];if(x&&"class"===H&&-1!==Hda(J.toLowerCase(),u)){u=!0;break a}}else if(1===H){for(;y<q.length&&"string"==typeof(H=q[y++]);)if(H.toLowerCase()===u){u=!0;break a}break}else"number"===typeof H&&(E=!1)}u=!1}if(!u){if(0===(d&1))return!1;h=!0}}else{a:if(q=d&8?"class":q,null===e)q=-1;else if(x=0,c||4!==a.type||"ng-template"===a.value){for(y=!1;x<e.length;){E=e[x];if(E===q){q=x;break a}if(3===E||6===E)y=!0;else if(1===E||2===E){for(E=
e[++x];"string"===typeof E;)E=e[++x];continue}else if(4===E)break;else if(0===E){x+=4;continue}x+=y?1:2}q=-1}else b:{x=e.indexOf(4);if(-1<x)for(x++;x<e.length;){y=e[x];if("number"===typeof y)break;if(y===q){q=x;break b}x++}q=-1}if(-1===q){if(0===(d&1))return!1;h=!0}else if(""!==u&&(q=q>f?"":e[q+1].toLowerCase(),(x=d&8?q:null)&&-1!==Hda(x,u)||d&2&&u!==q)){if(0===(d&1))return!1;h=!0}}}}return 0===(d&1)||h},Lda=function(a,b,c){c=void 0===c?!1:c;for(var d=0;d<b.length;d++)if(Kda(a,b[d],c))return!0;return!1},
Mda=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var h=a[c];if("string"===typeof h)if(d&2){var k=a[++c];e+="["+h+(0<k.length?'="'+k+'"':"")+"]"}else d&8?e+="."+h:d&4&&(e+=" "+h);else""!==e&&0!==(h&1)&&(b+=f?":not("+e.trim()+")":e,e=""),d=h,f=f||0!==(d&1);c++}""!==e&&(b+=f?":not("+e.trim()+")":e);return b},md=function(a){return{toString:a}.toString()},od=function(a){return md(function(){var b=Nda(a),c;b=Object.assign({},b,{decls:a.decls,vars:a.vars,template:a.template,consts:a.consts||
null,ngContentSelectors:a.ngContentSelectors,onPush:0===a.changeDetection,directiveDefs:null,pipeDefs:null,dependencies:b.standalone&&a.dependencies||null,getStandaloneInjector:null,signals:null!=(c=a.signals)?c:!1,data:a.data||{},encapsulation:a.encapsulation||0,styles:a.styles||nd,_:null,schemas:a.schemas||null,tView:null,id:""});Oda(b);c=a.dependencies;b.directiveDefs=Pda(c,!1);b.pipeDefs=Pda(c,!0);c=0;var d=[b.selectors,b.ngContentSelectors,b.hostVars,b.hostAttrs,b.consts,b.vars,b.decls,b.encapsulation,
b.standalone,b.signals,b.exportAs,JSON.stringify(b.inputs),JSON.stringify(b.outputs),Object.getOwnPropertyNames(b.type.prototype),!!b.contentQueries,!!b.viewQuery].join("|");d=l(d);for(var e=d.next();!e.done;e=d.next())c=Math.imul(31,c)+e.value.charCodeAt(0)<<0;b.id="c"+(c+2147483648);return b})},Rda=function(a){return a[pd]||a[Qda]||null},Sda=function(a){return null!==a},qd=function(a){return md(function(){return{type:a.type,bootstrap:a.bootstrap||nd,declarations:a.declarations||nd,imports:a.imports||
nd,exports:a.exports||nd,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},Tda=function(a,b){if(null==a)return rd;var c={},d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d],f=e;Array.isArray(e)&&(f=e[1],e=e[0]);c[e]=d;b&&(b[e]=f)}return c},sd=function(a){return md(function(){var b=Nda(a);Oda(b);return b})},td=function(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,standalone:!0===a.standalone,onDestroy:a.type.prototype.ngOnDestroy||null}},Vda=function(a){return a[Uda]||
null},Nda=function(a){var b={};return{type:a.type,providersResolver:null,factory:null,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:b,inputTransforms:null,inputConfig:a.inputs||rd,exportAs:a.exportAs||null,standalone:!0===a.standalone,signals:!0===a.signals,selectors:a.selectors||nd,viewQuery:a.viewQuery||null,features:a.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Tda(a.inputs,
b),outputs:Tda(a.outputs)}},Oda=function(a){var b;null==(b=a.features)||b.forEach(function(c){return c(a)})},Pda=function(a,b){if(!a)return null;var c=b?Vda:Rda;return function(){return("function"===typeof a?a():a).map(function(d){return c(d)}).filter(Sda)}},ud=function(a){return a.hasOwnProperty(Wda)?a[Wda]:null},Xda=function(a,b){a.forEach(function(c){return Array.isArray(c)?Xda(c,b):b(c)})},Yda=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},Zda=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b);
return c},wd=function(a,b,c){var d=vd(a,b);if(0<=d)a[d|1]=c;else{var e=d=~d,f=a.length;if(f==e)a.push(b,c);else if(1===f)a.push(c,a[0]),a[0]=b;else{f--;for(a.push(a[f-1],a[f]);f>e;)a[f]=a[f-2],f--;a[e]=b;a[e+1]=c}}return d},$da=function(a,b){b=vd(a,b);if(0<=b)return a[b|1]},vd=function(a,b){for(var c=0,d=a.length>>1;d!==c;){var e=c+(d-c>>1),f=a[e<<1];if(b===f)return e<<1;f>b?d=e:c=e+1}return~(d<<1)},bea=function(){return{"\u0275providers":aea(!0,xd.apply(0,arguments)),"\u0275fromNgModule":!0}},aea=
function(a){var b=[],c=new Set,d,e=function(f){b.push(f)};Xda(xd.apply(1,arguments),function(f){cea(f,e,[],c)&&(d||(d=[]),d.push(f))});void 0!==d&&dea(d,e);return b},dea=function(a,b){for(var c={},d=0;d<a.length;c={providers$jscomp$2:c.providers$jscomp$2,ngModule:c.ngModule},d++){var e=a[d];c.ngModule=e.ngModule;c.providers$jscomp$2=e.providers;eea(c.providers$jscomp$2,function(f){return function(h){b(h,f.ngModule)}}(c))}},cea=function(a,b,c,d){a=gd(a);if(!a)return!1;var e=null,f=xda(a),h=!f&&(a[pd]||
null);if(f||h){if(h&&!h.standalone)return!1;e=a}else{var k=a.ngModule;if(f=xda(k))e=k;else return!1}k=d.has(e);if(h){if(k)return!1;d.add(e);if(h.dependencies)for(f="function"===typeof h.dependencies?h.dependencies():h.dependencies,f=l(f),k=f.next();!k.done;k=f.next())cea(k.value,b,c,d)}else if(f){if(null!=f.imports&&!k){d.add(e);var q;Xda(f.imports,function(x){cea(x,b,c,d)&&(q||(q=[]),q.push(x))});void 0!==q&&dea(q,b)}k||(h=ud(e)||function(){return new e},b({provide:e,useFactory:h,deps:nd},e),b({provide:fea,
useValue:e,multi:!0},e),b({provide:gea,useValue:function(){return n(e)},multi:!0},e));f=f.providers;if(null!=f&&!k){var u=a;eea(f,function(x){b(x,u)})}}else return!1;return e!==a&&void 0!==a.providers},eea=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&c.\u0275providers&&(c=c.\u0275providers),Array.isArray(c)?eea(c,b):b(c)},iea=function(a){return null!==a&&"object"==typeof a&&hea in a},zd=function(a){return"function"===typeof a},lea=function(){void 0===jea&&(jea=new kea);
return jea},nea=function(a){var b=tda(a);b=null!==b?b.factory:ud(a);if(null!==b)return b;if(a instanceof Ad)throw new dd(204,!1);if(a instanceof Function)return mea(a);throw new dd(204,!1);},mea=function(a){var b=a.length;if(0<b)throw Zda(b,"?"),new dd(204,!1);var c=uda(a);return null!==c?function(){return c.factory(a)}:function(){return new a}},qea=function(a){if(iea(a))return Bd(void 0,a.useValue);a=oea(a);return Bd(a,pea)},oea=function(a){var b=void 0;if(zd(a))return b=gd(a),ud(b)||nea(b);if(iea(a))b=
function(){return gd(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,p(Gda(a.deps||[])))};else if(a&&a.useExisting)b=function(){return n(gd(a.useExisting))};else{var c=gd(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,[null].concat(p(Gda(a.deps)))))};else return ud(c)||nea(c)}return b},Bd=function(a,b,c){return{factory:a,value:b,multi:(void 0===c?0:c)?[]:void 0}},rea=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=
c.value,Array.isArray(c)?rea(c,b):c&&c&&c.\u0275providers?rea(c.\u0275providers,b):b(c)},sea=function(a){return function(){var b=xd.apply(0,arguments);if(a){b=a.apply(null,p(b));for(var c in b)this[c]=b[c]}}},Cd=function(a){return md(function(){function b(){function d(h,k,q){for(k=h.hasOwnProperty("__parameters__")?h.__parameters__:Object.defineProperty(h,"__parameters__",{value:[]}).__parameters__;k.length<=q;)k.push(null);(k[q]=k[q]||[]).push(f);return h}var e=xd.apply(0,arguments);if(this instanceof
b)return c.apply(this,e),this;var f=new (Function.prototype.bind.apply(b,[null].concat(p(e))));d.annotation=f;return d}var c=sea(a);return b})},Dd=function(a){return Array.isArray(a)&&"object"===typeof a[1]},Ed=function(a){return Array.isArray(a)&&!0===a[1]},Fd=function(){return tea},tea=function(a){a.type.prototype.ngOnChanges&&(a.setInput=uea);return vea},vea=function(){var a=this.__ngSimpleChanges__||null,b=null==a?void 0:a.current;if(b){var c=a.previous;if(c===rd)a.previous=b;else for(var d in b)c[d]=
b[d];a.current=null;this.ngOnChanges(b)}},uea=function(a,b,c,d){c=this.declaredInputs[c];var e;(e=a.__ngSimpleChanges__||null)||(e=a.__ngSimpleChanges__={previous:rd,current:null});var f=e;e=f.current||(f.current={});f=f.previous;var h=f[c];e[c]=new wea(h&&h.currentValue,b,f===rd);a[d]=b},Gd=function(a){for(;Array.isArray(a);)a=a[0];return a},Hd=function(a,b){return Gd(b[a.index])},Id=function(a,b){a=b[a];return Dd(a)?a:a[0]},Jd=function(a,b){return null===b||void 0===b?null:a[b]},yea=function(a){a[2]&
1024&&(a[2]&=-1025,xea(a,-1))},xea=function(a,b){a=a[3];if(null!==a){a[5]+=b;var c=a;for(a=a[3];null!==a&&(1===b&&1===c[5]||-1===b&&0===c[5]);)a[5]+=b,c=a,a=a[3]}},r=function(){return Kd.lView},t=function(a){Kd.contextLView=a;return a[8]},v=function(a){Kd.contextLView=null;return a},Ld=function(){for(var a=Kd.currentTNode;null!==a&&64===a.type;)a=a.parent;return a},Md=function(a,b){var c=Kd;c.currentTNode=a;c.isParent=b},Nd=function(){var a=Kd,b=a.bindingRootIndex;-1===b&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);
return b},Od=function(a){var b=Kd,c=b.bindingIndex;b.bindingIndex+=a;return c},zea=function(a){var b=Kd.currentDirectiveIndex;return-1===b?null:a[b]},Bea=function(a,b,c){if(c&4){for(;!(b=b.parent,null!==b||c&1);){b=a[1];b=2===b.type?b.declTNode:1===b.type?a[6]:null;if(null===b)break;a=a[14];if(b.type&10)break}if(null===b)return!1}c=Kd=Aea();c.currentTNode=b;c.lView=a;return!0},Cea=function(a){var b=Aea(),c=a[1];Kd=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;
b.inI18n=!1},Aea=function(){var a=Kd,b=null===a?null:a.child;return null===b?Dea(a):b},Dea=function(a){var b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:a,child:null,inI18n:!1};null!==a&&(a.child=b);return b},Eea=function(){var a=Kd;Kd=a.parent;a.currentTNode=null;a.lView=null;return a},Fea=function(){var a=Eea();a.isParent=!0;
a.tView=null;a.selectedIndex=-1;a.contextLView=null;a.elementDepthCount=0;a.currentDirectiveIndex=-1;a.currentNamespace=null;a.bindingRootIndex=-1;a.bindingIndex=-1;a.currentQueryIndex=0},Pd=function(){var a=Kd;return a.tView.data[a.selectedIndex]},Qd=function(){Kd.currentNamespace="svg"},Rd=function(a){var b=Gea;Gea=a;return b},Hea=function(a){var b=Rd(null);try{return a()}finally{Rd(b)}},Iea=function(a,b){var c=b.directiveStart;for(b=b.directiveEnd;c<b;c++){var d=a.data[c].type.prototype,e=d.ngAfterContentInit,
f=d.ngAfterContentChecked,h=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;if(e){var q=void 0,u=void 0;(null!=(u=(q=a).contentHooks)?u:q.contentHooks=[]).push(-c,e)}f&&(q=e=void 0,(null!=(q=(e=a).contentHooks)?q:e.contentHooks=[]).push(c,f),q=e=void 0,(null!=(q=(e=a).contentCheckHooks)?q:e.contentCheckHooks=[]).push(c,f));h&&(e=f=void 0,(null!=(e=(f=a).viewHooks)?e:f.viewHooks=[]).push(-c,h));k&&(f=h=void 0,(null!=(f=(h=a).viewHooks)?f:h.viewHooks=[]).push(c,k),f=h=void 0,(null!=(f=(h=a).viewCheckHooks)?
f:h.viewCheckHooks=[]).push(c,k));null!=d&&(h=k=void 0,(null!=(h=(k=a).destroyHooks)?h:k.destroyHooks=[]).push(c,d))}},Jea=function(a,b,c,d){(a[2]&3)===c&&Sd(a,b,c,d)},Kea=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&8191)+1)},Sd=function(a,b,c,d){for(var e=null!=d?d:-1,f=b.length-1,h=0,k=void 0!==d?a[17]&65535:0;k<f;k++)if("number"===typeof b[k+1]){if(h=b[k],null!=d&&h>=d)break}else{0>b[k]&&(a[17]+=65536);if(h<e||-1==e){var q=0>b[k],u=b[k+1],x=a[q?-b[k]:b[k]];q?a[2]>>13<a[17]>>16&&(a[2]&3)===c&&
(a[2]+=8192,Lea(x,u)):Lea(x,u);a[17]=(a[17]&4294901760)+k+2}k++}},Lea=function(a,b){var c=Rd(null);try{b.call(a)}finally{Rd(c)}},Mea=function(a,b){for(a>>=16;0<a;)b=b[14],a--;return b},Oea=function(a){var b=Nea;Nea=a;return b},Qea=function(a,b,c){var d;"string"===typeof c?d=c.charCodeAt(0)||0:c.hasOwnProperty(Td)&&(d=c[Td]);null==d&&(d=c[Td]=Pea++);c=d&255;b.data[a+(c>>5)]|=1<<c},Uea=function(a,b){var c=Rea(a,b);if(-1!==c)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Sea(c.data,a),
Sea(b,null),Sea(c.blueprint,null));c=Tea(a,b);a=a.injectorIndex;if(-1!==c)for(var d=c&32767,e=Mea(c,b),f=e[1].data,h=0;8>h;h++)b[a+h]=e[d+h]|f[d+h];b[a+8]=c;return a},Sea=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Rea=function(a,b){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===b[a.injectorIndex+8]?-1:a.injectorIndex},Tea=function(a,b){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;a=0;for(var c=b;null!==c;){b=Vea(c);if(null===b)break;
a++;c=c[14];if(-1!==b.injectorIndex)return b.injectorIndex|a<<16}return-1},Ud=function(a){var b=Ld();if("class"===a)return b.classes;if("style"===a)return b.styles;if(b=b.attrs)for(var c=b.length,d=0;d<c;){var e=b[d];if(3===e||4===e||6===e)break;if(0===e)d+=2;else if("number"===typeof e)for(d++;d<c&&"string"===typeof b[d];)d++;else{if(e===a)return b[d+1];d+=2}}return null},Wea=function(a,b,c,d){c&8&&void 0===d&&(d=null);if(0===(c&3)){a=a[9];var e=ed();try{return a?a.get(b,d,c&8):Bda(b,d,c&8)}finally{ed(e)}}c&
8||void 0!==d?b=d:(zda(),b=void 0);return b},Yea=function(a,b,c,d,e){d=void 0===d?0:d;if(null!==a){if(b[2]&2048&&!(d&2)){a:{var f=d;for(var h=Vd,k=a,q=b;null!==k&&null!==q&&q[2]&2048&&!(q[2]&512);){var u=Xea(k,q,c,f|2);if(u!==Vd){f=u;break a}k=k.parent;if(!k){if(k=q[20])if(k=k.get(c,Vd,f),k!==Vd){f=k;break a}k=Vea(q);q=q[14]}}f=h}if(f!==Vd)return f}a=Xea(a,b,c,d);if(a!==Vd)return a}return Wea(b,c,d,e)},Xea=function(a,b,c,d){var e=Vd;if("string"===typeof c)var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(Td)?
c[Td]:void 0,f="number"===typeof f?0<=f?f&255:Zea:f;if("function"===typeof f){if(!Bea(b,a,d))return d&1?d&8||void 0!==e?b=e:(zda(),b=void 0):b=Wea(b,c,d,e),b;try{var h=f(d);if(null!=h||d&8)return h;zda()}finally{Eea()}}else if("number"===typeof f){h=null;var k=Rea(a,b),q=d&1?b[15][6]:null;if(-1===k||d&4){var u=-1===k?Tea(a,b):b[k+8];-1===u||d&2?k=-1:(h=b[1],k=u&32767,b=Mea(u,b))}for(;-1!==k;){a=b[1];if(a.data[k+(f>>5)]&1<<f){u=b[1];var x=u.data[k+8],y=$ea(x,u,c,null==h?-1<x.componentOffset&&Nea:h!=
u&&0!==(x.type&3),d&1&&q===x);u=null!==y?Wd(b,u,y,x):Vd;if(u!==Vd)return u}u=b[k+8];-1!==u&&!(d&2||d&1&&b[1].data[k+8]===q)&&b[k+(f>>5)]&1<<f?(h=a,k=u&32767,b=Mea(u,b)):k=-1}}return e},$ea=function(a,b,c,d,e){var f=a.providerIndexes,h=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var q=f>>20;f=e?k+q:a;for(d=d?k:k+q;d<f;d++)if(k=h[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=h[b])&&e.template&&e.type===c?b:null},Wd=function(a,b,c,d){var e=a[c],f=b.data;if(e instanceof Xd){var h=e;
if(h.resolving)throw a=f[c],new dd(-200,"Circular dependency in DI detected for "+("function"===typeof a?a.name||a.toString():"object"===typeof a&&null!=a&&"function"===typeof a.type?a.type.name||a.type.toString():bd(a)));var k=Oea(h.canSeeViewProviders);h.resolving=!0;var q=h.injectImpl?ed(h.injectImpl):null;Bea(a,d,0);try{if(e=a[c]=h.factory(void 0,f,a,d),b.firstCreatePass&&c>=d.directiveStart){var u=f[c],x=u.type.prototype,y=x.ngOnInit,E=x.ngDoCheck;if(x.ngOnChanges){var H=tea(u),J;(null!=(J=b.preOrderHooks)?
J:b.preOrderHooks=[]).push(c,H);var O;(null!=(O=b.preOrderCheckHooks)?O:b.preOrderCheckHooks=[]).push(c,H)}if(y){var R;(null!=(R=b.preOrderHooks)?R:b.preOrderHooks=[]).push(-c,y)}if(E){var U;(null!=(U=b.preOrderHooks)?U:b.preOrderHooks=[]).push(c,E);var Z;(null!=(Z=b.preOrderCheckHooks)?Z:b.preOrderCheckHooks=[]).push(c,E)}}}finally{null!==q&&ed(q),Oea(k),h.resolving=!1,Eea()}}return e},Zea=function(){return new Yd(Ld(),r())},Zd=function(a){return md(function(){var b=a.prototype.constructor;b=b[Wda]||
afa(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[Wda]||afa(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},afa=function(a){return Cda(a)?function(){var b=afa(gd(a));return b&&b()}:ud(a)},Vea=function(a){var b=a[1],c=b.type;return 2===c?b.declTNode:1===c?a[6]:null},dfa=function(a,b,c,d){a=bfa(a,void 0===b?null:b,void 0===c?null:c,d);cfa(a);return a},bfa=function(a,b,c,d,e){b=void 0===b?null:b;e=void 0===e?new Set:
e;c=[(void 0===c?null:c)||nd,bea(a)];d=d||("object"===typeof a?void 0:cd(a));return new $d(c,b||lea(),d||null,e)},ffa=function(){if(void 0!==efa)return efa;if("undefined"!==typeof document)return document;throw new dd(210,!1);},be=function(a,b){return new ae(Hd(a,b))},gfa=function(a){return a instanceof ae?a.nativeElement:a},ce=function(a){return a.ownerDocument.defaultView},hfa=function(a){return a.ownerDocument},de=function(a,b){Dd(b)?(a.__ngContext__=b[19],ifa.set(b[19],b)):a.__ngContext__=b},
jfa=function(a){a=a[3];return Ed(a)?a[3]:a},kfa=function(a){for(;null!==a&&!Ed(a);)a=a[4];return a},lfa=function(a){for(;a;){a[2]|=64;var b=jfa(a);if(0!==(a[2]&512)&&!b)break;a=b}},w=function(a){mfa(Kd.tView,r(),Kd.selectedIndex+a)},mfa=function(a,b,c){3===(b[2]&3)?(a=a.preOrderCheckHooks,null!==a&&Sd(b,a,3,c)):(a=a.preOrderHooks,null!==a&&Jea(b,a,0,c));Kd.selectedIndex=c},z=function(a,b){b=void 0===b?0:b;var c=r();return null===c?n(a,b):Yea(Ld(),c,gd(a),b)},ee=function(){throw Error("ta");},pfa=
function(){return"".replace(nfa,function(a){return a.replace(ofa,"\u200b$1\u200b")})},fe=function(a,b,c,d,e){if(null!=d){var f=!1;if(Ed(d))var h=d;else Dd(d)&&(f=!0,d=d[0]);d=Gd(d);if(0===a&&null!==c)null==e?b.appendChild(c,d):b.insertBefore(c,d,e||null,!0);else if(1===a&&null!==c)b.insertBefore(c,d,e||null,!0);else if(2===a){var k=b.parentNode(d);k&&b.removeChild(k,d,f)}else 3===a&&b.destroyNode(d);if(null!=h)for(d=h[7],f=Gd(h),d!==f&&fe(a,b,c,d,e),e=11;e<h.length;e++)f=h[e],ge(b,a,f[1].firstChild,
f,c,d,!1)}},qfa=function(a,b){a=a[9];var c=a.indexOf(b);yea(b);a.splice(c,1)},rfa=function(a,b){if(!(11>=a.length)){var c=11+b,d=a[c];if(d){var e=d[16];null!==e&&e!==a&&qfa(e,d);0<b&&(a[c-1][4]=d[4]);a=Yda(a,11+b);ge(d[11],2,d[1].firstChild,d,null,null,!1);d[0]=null;d[6]=null;b=a[18];null!==b&&b.detachView(a[1]);d[3]=null;d[4]=null;d[2]&=-129}return d}},tfa=function(a,b){if(!(b[2]&256)){var c=b[11],d;null==(d=b[23])||d.destroy();var e;null==(e=b[24])||e.destroy();c.destroyNode&&ge(c,3,a.firstChild,
b,null,null,!1);if(a=b[12])for(;a;){c=null;Dd(a)?c=a[12]:(d=a[11])&&(c=d);if(!c){for(;a&&!a[4]&&a!==b;)Dd(a)&&sfa(a[1],a),a=a[3];null===a&&(a=b);Dd(a)&&sfa(a[1],a);c=a&&a[4]}a=c}else sfa(b[1],b)}},sfa=function(a,b){if(!(b[2]&256)){b[2]&=-129;b[2]|=256;var c;if(null!=a&&null!=(c=a.destroyHooks))for(var d=0;d<c.length;d+=2){var e=b[c[d]];if(!(e instanceof Xd)){var f=c[d+1];if(Array.isArray(f))for(var h=0;h<f.length;h+=2)f[h+1].call(e[f[h]]);else f.call(e)}}c=a.cleanup;d=b[7];if(null!==c)for(e=0;e<c.length-
1;e+=2)if("string"===typeof c[e]){f=c[e+3];if(0<=f)d[f]();else d[-f].unsubscribe();e+=2}else c[e].call(d[c[e+1]]);null!==d&&(b[7]=null);c=b[21];if(null!==c)for(b[21]=null,d=0;d<c.length;d++)(0,c[d])();1===b[1].type&&b[11].destroy();c=b[16];null!==c&&Ed(b[3])&&(c!==b[3]&&qfa(c,b),c=b[18],null!==c&&c.detachView(a));ifa.delete(b[19])}},ufa=function(a,b,c){for(;null!==b&&b.type&40;)b=b.parent;if(null===b)return c[0];var d=b.componentOffset;return-1<d&&(a=a.data[b.directiveStart+d].encapsulation,2===a||
0===a)?null:Hd(b,c)},vfa=function(a,b,c,d){a=ufa(a,d.parent,b);var e=b[11];d=d.parent||b[6];b=d.type&40?Hd(d,b):null;if(null!=a)if(Array.isArray(c))for(d=0;d<c.length;d++){var f=c[d];null!==b?e.insertBefore(a,f,b,!1):e.appendChild(a,f)}else null!==b?e.insertBefore(a,c,b,!1):e.appendChild(a,c)},xfa=function(a,b){if(null!==b){var c=b.type;if(c&3)return Hd(b,a);if(c&4)return wfa(-1,a[b.index]);if(c&8){c=b.child;if(null!==c)return xfa(a,c);a=a[b.index];return Ed(a)?wfa(-1,a):Gd(a)}if(c&32)return(void 0)(b,
a)()||Gd(a[b.index]);c=null!==b?a[15][6].projection[b.projection]:null;if(null!==c){if(Array.isArray(c))return c[0];a=jfa(a[15]);return xfa(a,c)}return xfa(a,b.next)}return null},wfa=function(a,b){a+=12;if(a<b.length){a=b[a];var c=a[1].firstChild;if(null!==c)return xfa(a,c)}return b[7]},ge=function(a,b,c,d,e,f,h){for(;null!=c;){var k=d[c.index],q=c.type;h&&0===b&&(k&&de(Gd(k),d),c.flags|=2);if(32!==(c.flags&32))if(q&8)ge(a,b,c.child,d,e,f,!1),fe(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var u;u=
q();)fe(b,a,e,u,f);fe(b,a,e,k,f)}else q&16?yfa(a,b,d,c,e,f):fe(b,a,e,k,f);c=h?c.projectionNext:c.next}},yfa=function(a,b,c,d,e,f){var h=c[15];c=h[6].projection[d.projection];if(Array.isArray(c))for(d=0;d<c.length;d++)fe(b,a,e,c[d],f);else h=h[3],128===(d.flags&128)&&(c.flags|=128),ge(a,b,c,h,e,f,!0)},zfa=function(a,b,c){var d=c.mergedAttrs,e=c.classes;c=c.styles;null!==d&&Ida(a,b,d);null!==e&&(""===e?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));null!==c&&a.setAttribute(b,"style",c)},
Afa=function(){null!=he||(he=new ie);return he},Bfa=function(a,b){var c;return null!=(c=a[b])?c:Afa()},Cfa=function(a,b){var c=Afa();c.hasReadASignal&&(a[b]=he,c.lView=a,he=new ie)},ke=function(a){return a instanceof je?a.changingThisBreaksApplicationSecurity:a},le=function(a,b){a=a instanceof je&&a.getTypeName()||null;if(null!=a&&a!==b){if("ResourceURL"===a&&"URL"===b)return!0;throw Error("ua`"+b+"`"+a);}return a===b},Efa=function(){if(void 0===Dfa&&(Dfa=null,ne.trustedTypes))try{Dfa=ne.trustedTypes.createPolicy("angular",
{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Dfa},Ffa=function(a){var b;return(null==(b=Efa())?void 0:b.createHTML(a))||a},Hfa=function(a){a=String(a);return a.match(Gfa)?a:"unsafe:"+a},oe=function(a){var b={};a=l(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},pe=function(){for(var a={},b=l(xd.apply(0,arguments)),c=b.next();!c.done;c=b.next()){c=c.value;for(var d in c)c.hasOwnProperty(d)&&
(a[d]=!0)}return a},Kfa=function(a){return a.replace(/&/g,"&amp;").replace(Ifa,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Jfa,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},Ufa=function(a,b){var c=null;try{var d;if(!(d=Lfa)){var e=new Mfa(a);try{var f=!!(new window.DOMParser).parseFromString(Ffa(""),"text/html")}catch(U){f=!1}d=f?new Nfa(e):e}Lfa=d;var h=b?String(b):"";c=Lfa.getInertBodyElement(h);a=5;
b=h;do{if(0===a)throw Error("wa");a--;h=b;b=c.innerHTML;c=Lfa.getInertBodyElement(h)}while(h!==b);var k=new Ofa,q=(("content"in c&&c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName?c.content:null)||c).firstChild;for(h=!0;q;){if(q.nodeType===Node.ELEMENT_NODE){a=k;b=q;var u=b.nodeName.toLowerCase();if(Pfa.hasOwnProperty(u)){a.buf.push("<");a.buf.push(u);var x=b.attributes;for(b=0;b<x.length;b++){var y=x.item(b),E=y.name,H=E.toLowerCase();if(Qfa.hasOwnProperty(H)){var J=y.value;Rfa[H]&&(J=Hfa(J));
a.buf.push(" ",E,'="',Kfa(J),'"')}}a.buf.push(">");h=!0}else h=!Sfa.hasOwnProperty(u)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(Kfa(q.nodeValue));if(h&&q.firstChild)q=q.firstChild;else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var O=Tfa(q,q.nextSibling);if(O){q=O;break}q=Tfa(q,q.parentNode)}}var R=k.buf.join("");return Ffa(R)}finally{if(c)for(c=("content"in c&&c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName?c.content:null)||c;c.firstChild;)c.removeChild(c.firstChild)}},Wfa=
function(){if(void 0===Vfa&&(Vfa=null,ne.trustedTypes))try{Vfa=ne.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Vfa},Xfa=function(a){var b;return(null==(b=Wfa())?void 0:b.createHTML(a))||a},Yfa=function(a){var b;return(null==(b=Wfa())?void 0:b.createScriptURL(a))||a},qe=function(a){var b=Zfa();return b?Xfa(b.sanitize(1,a)||""):le(a,"HTML")?Xfa(ke(a)):Ufa(ffa(),bd(a))},
$fa=function(a){var b=Zfa();return b?b.sanitize(2,a)||"":le(a,"Style")?ke(a):bd(a)},re=function(a){var b=Zfa();return b?b.sanitize(4,a)||"":le(a,"URL")?ke(a):Hfa(bd(a))},aga=function(a){var b=Zfa();if(b)return Yfa(b.sanitize(5,a)||"");if(le(a,"ResourceURL"))return Yfa(ke(a));throw new dd(904,!1);},Zfa=function(){var a=r();return a&&a[10].sanitizer},cga=function(a,b,c,d,e,f,h,k,q,u,x){var y=b.blueprint.slice();y[0]=e;y[2]=d|140;if(null!==u||a&&a[2]&2048)y[2]|=2048;y[17]=0;y[3]=y[14]=a;y[8]=c;y[10]=
h||a&&a[10];y[11]=k||a&&a[11];y[9]=q||a&&a[9]||null;y[6]=f;y[19]=bga++;y[22]=x;y[20]=u;y[15]=2==b.type?a[15]:y;return y},se=function(a,b,c,d,e){var f=a.data[b];if(null===f){f=Kd.currentTNode;var h=Kd.isParent,k=a.data,q=h?f:f&&f.parent,u=q?q.injectorIndex:-1,x=0;null!==dga&&(x|=128);b=k[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:u,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:x,providerIndexes:0,value:d,attrs:e,mergedAttrs:null,
localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:q,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};null===a.firstChild&&(a.firstChild=b);null!==f&&(h?null==f.child&&null!==b.parent&&(f.child=b):null===f.next&&(f.next=b,b.prev=f));f=b;Kd.inI18n&&(f.flags|=32)}else f.type&64&&(f.type=c,f.value=d,f.attrs=
e,a=Kd,b=a.currentTNode,a=a.isParent?b:b.parent,f.injectorIndex=null===a?-1:a.injectorIndex);Md(f,!0);return f},ega=function(a,b,c,d){if(0===c)return-1;for(var e=b.length,f=0;f<c;f++)b.push(d),a.blueprint.push(d),a.data.push(null);return e},fga=function(a,b,c,d,e){var f=Bfa(b,23),h=Kd.selectedIndex,k=d&2;try{if(Kd.selectedIndex=-1,k&&25<b.length&&mfa(a,b,25),k)f.runInContext(c,d,e);else{var q=Rd(null);try{c(d,e)}finally{Rd(q)}}}finally{k&&null===b[23]&&Cfa(b,23),Kd.selectedIndex=h}},gga=function(a,
b,c){if(0!==(b.flags&4)){var d=Rd(null);try{for(var e=b.directiveEnd,f=b.directiveStart;f<e;f++){var h=a.data[f];h.contentQueries&&h.contentQueries(1,c[f],f)}}finally{Rd(d)}}},lga=function(a,b,c){var d=Hd(c,b),e=c.directiveStart,f=c.directiveEnd;if(-1<c.componentOffset){var h=a.data[e+c.componentOffset],k=Hd(c,b),q=hga(h),u=b[10].rendererFactory,x=16;h.signals?x=4096:h.onPush&&(x=64);h=iga(b,cga(b,q,null,x,k,c,null,u.createRenderer(k,h),null,null,null));b[c.index]=h}a.firstCreatePass||Uea(c,b);de(d,
b);d=c.initialInputs;for(h=e;h<f;h++){k=a.data[h];q=Wd(b,a,h,c);de(q,b);if(null!==d&&(u=d[h-e],null!==u))for(x=0;x<u.length;){var y=u[x++],E=u[x++],H=u[x++];jga(k,q,y,E,H)}k.template&&(Id(c.index,b)[8]=Wd(b,a,h,c))}64===(c.flags&64)&&kga(a,b,c)},mga=function(a,b,c){c=void 0===c?Hd:c;var d=b.localNames;if(null!==d)for(var e=b.index+1,f=0;f<d.length;f+=2){var h=d[f+1];h=-1===h?c(b,a):a[h];a[e++]=h}},hga=function(a){var b=a.tView;return null===b||b.incompleteFirstPass?a.tView=nga(1,null,a.template,a.decls,
a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts,a.id):b},nga=function(a,b,c,d,e,f,h,k,q,u,x){d=25+d;e=d+e;for(var y=[],E=0;E<e;E++)y.push(E<d?null:te);u="function"===typeof u?u():u;return y[1]={type:a,blueprint:y,template:c,queries:null,viewQuery:k,declTNode:b,data:y.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:e,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,
contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"===typeof f?f():f,pipeRegistry:"function"===typeof h?h():h,firstChild:null,schemas:q,consts:u,incompleteFirstPass:!1,ssrId:x}},oga=function(a,b,c,d){for(var e in a)if(a.hasOwnProperty(e)){c=null===c?{}:c;var f=a[e];if(null===d){var h=c,k=b,q=e;h.hasOwnProperty(q)?h[q].push(k,f):h[q]=[k,f]}else d.hasOwnProperty(e)&&(h=c,k=b,q=d[e],h.hasOwnProperty(q)?
h[q].push(k,f):h[q]=[k,f])}return c},ue=function(a,b,c,d,e,f,h,k){var q=Hd(b,c),u=b.inputs,x;!k&&null!=u&&(x=u[d])?(pga(a,c,x,d,e),-1<b.componentOffset&&(a=Id(b.index,c),a[2]&16||(a[2]|=64))):b.type&3&&(d="class"===d?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,e=null!=h?h(e,b.value||"",d):e,f.setProperty(q,d,e))},sga=function(a,b,c,d){var e=null===d?null:{"":-1};var f=a.directiveRegistry;var h=null,
k=null;if(f)for(var q=0;q<f.length;q++){var u=f[q];if(Lda(c,u.selectors,!1))if(h||(h=[]),u.template)if(null!==u.findHostDirectiveDefs){var x=[];k=k||new Map;u.findHostDirectiveDefs(u,x,k);h.unshift.apply(h,[].concat(p(x),[u]));qga(a,c,x.length)}else h.unshift(u),qga(a,c,0);else{k=k||new Map;var y=x=void 0;null==(y=(x=u).findHostDirectiveDefs)||y.call(x,u,h,k);h.push(u)}}f=null===h?null:[h,k];null===f?f=h=null:(h=l(f),f=h.next().value,h=h.next().value);null!==f&&rga(a,b,c,f,e,h);if(e&&d)for(a=c.localNames=
[],b=0;b<d.length;b+=2){f=e[d[b+1]];if(null==f)throw new dd(-301,!1);a.push(d[b],f)}c.mergedAttrs=ld(c.mergedAttrs,c.attrs)},rga=function(a,b,c,d,e,f){for(var h=0;h<d.length;h++){var k=Uea(c,b);Qea(k,a,d[h].type)}h=a.data.length;k=d.length;c.flags|=1;c.directiveStart=h;c.directiveEnd=h+k;c.providerIndexes=h;for(h=0;h<d.length;h++)k=d[h],k.providersResolver&&k.providersResolver(k);var q=!1,u=!1;h=ega(a,b,d.length,null);for(k=0;k<d.length;k++){var x=d[k];c.mergedAttrs=ld(c.mergedAttrs,x.hostAttrs);
var y=a,E=c,H=b,J=h;y.data[J]=x;var O=x.factory||(x.factory=ud(x.type));O=new Xd(O,!!x.template);y.blueprint[J]=O;H[J]=O;var R=E;H=ega(y,H,x.hostVars,te);if(E=x.hostBindings){O=y.hostBindingOpCodes;null===O&&(O=y.hostBindingOpCodes=[]);y=~R.index;a:{for(R=O.length;0<R;){var U=O[--R];if("number"===typeof U&&0>U){R=U;break a}}R=0}R!=y&&O.push(y);O.push(J,H,E)}y=h;if(J=e){if(x.exportAs)for(H=0;H<x.exportAs.length;H++)J[x.exportAs[H]]=y;x.template&&(J[""]=y)}null!==x.contentQueries&&(c.flags|=4);if(null!==
x.hostBindings||null!==x.hostAttrs||0!==x.hostVars)c.flags|=64;x=x.type.prototype;!q&&(x.ngOnChanges||x.ngOnInit||x.ngDoCheck)&&(y=q=void 0,(null!=(y=(q=a).preOrderHooks)?y:q.preOrderHooks=[]).push(c.index),q=!0);u||!x.ngOnChanges&&!x.ngDoCheck||(x=u=void 0,(null!=(x=(u=a).preOrderCheckHooks)?x:u.preOrderCheckHooks=[]).push(c.index),u=!0);h++}b=c.directiveEnd;a=a.data;d=c.attrs;e=[];k=h=null;for(q=c.directiveStart;q<b;q++){u=a[q];y=(x=f?f.get(u):null)?x.outputs:null;h=oga(u.inputs,q,h,x?x.inputs:
null);k=oga(u.outputs,q,k,y);if(null===h||null===d||4===c.type&&"ng-template"!==c.value)u=null;else{u=h;x=q;y=null;for(J=0;J<d.length;)if(H=d[J],0===H)J+=4;else{if(5!==H){if("number"===typeof H)break;if(u.hasOwnProperty(H))for(null===y&&(y=[]),E=u[H],O=0;O<E.length;O+=2)if(E[O]===x){y.push(H,E[O+1],d[J+1]);break}}J+=2}u=y}e.push(u)}null!==h&&(h.hasOwnProperty("class")&&(c.flags|=8),h.hasOwnProperty("style")&&(c.flags|=16));c.initialInputs=e;c.inputs=h;c.outputs=k},kga=function(a,b,c){var d=c.directiveStart,
e=c.directiveEnd,f=c.index;c=Kd.currentDirectiveIndex;try{for(Kd.selectedIndex=f;d<e;d++){var h=a.data[d],k=b[d];Kd.currentDirectiveIndex=d;null===h.hostBindings&&0===h.hostVars&&null===h.hostAttrs||null===h.hostBindings||h.hostBindings(1,k)}}finally{Kd.selectedIndex=-1,Kd.currentDirectiveIndex=c}},qga=function(a,b,c){b.componentOffset=c;var d;(null!=(d=a.components)?d:a.components=[]).push(b.index)},tga=function(a,b,c,d,e,f){var h=Hd(a,b);b=b[11];a=a.value;null==d?b.removeAttribute(h,c,f):(d=null==
e?bd(d):e(d,a||"",c),b.setAttribute(h,c,d,f))},jga=function(a,b,c,d,e){var f=Rd(null);try{var h=a.inputTransforms;null!==h&&h.hasOwnProperty(d)&&(e=h[d].call(b,e));null!==a.setInput?a.setInput(b,e,c,d):b[d]=e}finally{Rd(f)}},uga=function(a,b){var c=a.contentQueries;if(null!==c)for(var d=0;d<c.length;d+=2){var e=c[d],f=c[d+1];if(-1!==f){var h=a.data[f];Kd.currentQueryIndex=e;h.contentQueries(2,b[f],f)}}},iga=function(a,b){a[12]?a[13][4]=b:a[12]=b;return a[13]=b},vga=function(a,b,c){Kd.currentQueryIndex=
0;var d=Rd(null);try{b(a,c)}finally{Rd(d)}},wga=function(a,b,c){if(null===a||a.template)a:{for(a=c[b.index];Array.isArray(a);){if("object"===typeof a[1]){c=a;break a}a=a[0]}c=null}return c[11]},xga=function(a,b){(a=(a=a[9])?a.get(ve,null):null)&&a.handleError(b)},pga=function(a,b,c,d,e){for(var f=0;f<c.length;){var h=c[f++],k=c[f++];jga(a.data[h],b[h],d,k,e)}},yga=function(a,b){var c=Gd(a[Kd.selectedIndex]);a[11].setValue(c,b)},zga=function(a,b,c){Cea(b);try{var d=a.viewQuery;null!==d&&vga(1,d,c);
var e=a.template;null!==e&&fga(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);a.staticContentQueries&&uga(a,b);a.staticViewQueries&&vga(2,a.viewQuery,c);var f=a.components;if(null!==f)for(c=0;c<f.length;c++){var h=Id(f[c],b),k=h[1];d=k;e=h;for(var q=e.length;q<d.blueprint.length;q++)e.push(d.blueprint[q]);null!==h[0]&&null===h[22]&&(h[22]=null);zga(k,h,h[8])}}catch(u){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),u;}finally{b[2]&=-5,Fea()}},Aga=function(a,b,c){var d=
c?a.styles:null,e=c?a.classes:null,f=0;if(null!==b)for(var h=0;h<b.length;h++){var k=b[h];if("number"===typeof k)f=k;else if(1==f)e=yda(e,k);else if(2==f){var q=b[++h];d=yda(d,k+": "+q+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},Bga=function(a,b,c,d,e){for(e=void 0===e?!1:e;null!==c;){var f=b[c.index];null!==f&&d.push(Gd(f));if(Ed(f)){for(var h=11;h<f.length;h++){var k=f[h],q=k[1].firstChild;null!==q&&Bga(k[1],k,q,d)}f[7]!==f[0]&&d.push(f[7])}f=c.type;if(f&8)Bga(a,
b,c.child,d);else if(f&32)for(f=(void 0)(c,b);h=f();)d.push(h);else f&16&&(f=null!==c?b[15][6].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,p(f)):(h=jfa(b[15]),Bga(h[1],h,f,d,!0)));c=e?c.projectionNext:c.next}return d},Dga=function(a,b,c,d){d=void 0===d?!0:d;var e=b[10],f=e.rendererFactory,h=e.afterRenderEventManager,k;null==(k=f.begin)||k.call(f);null==h||h.begin();try{Cga(a,b,a.template,c)}catch(x){throw d&&xga(b,x),x;}finally{var q;null==(q=f.end)||q.call(f);var u;null==(u=e.effectManager)||
u.flush();null==h||h.end()}},Cga=function(a,b,c,d){var e=b[2];if(256!==(e&256)){var f;null!=(f=b[10].effectManager)&&f.flush();Cea(b);try{b[17]=0;Kd.bindingIndex=a.bindingStartIndex;null!==c&&fga(a,b,c,2,d);if(c=3===(e&3)){var h=a.preOrderCheckHooks;null!==h&&Sd(b,h,3,null)}else{var k=a.preOrderHooks;null!==k&&Jea(b,k,0,null);Kea(b,0)}for(var q=kfa(b[12]);null!==q;q=kfa(q[4]))if(q[2]){var u=q[9];for(h=0;h<u.length;h++){var x=u[h];0===(x[2]&1024)&&(x[2]|=1024,xea(x,1))}}Ega(b,2);null!==a.contentQueries&&
uga(a,b);if(c){var y=a.contentCheckHooks;null!==y&&Sd(b,y,3)}else{var E=a.contentHooks;null!==E&&Jea(b,E,1);Kea(b,1)}var H=a.hostBindingOpCodes;if(null!==H){var J=Bfa(b,24);try{for(q=0;q<H.length;q++){var O=H[q];if(0>O)Kd.selectedIndex=~O;else{u=O;var R=H[++q],U=H[++q];x=Kd;x.bindingIndex=x.bindingRootIndex=R;Kd.currentDirectiveIndex=u;J.runInContext(U,2,b[u])}}}finally{null===b[24]&&Cfa(b,24),Kd.selectedIndex=-1}}var Z=a.components;if(null!==Z)for(H=0;H<Z.length;H++){var na=Id(Z[H],b);Fga(na,0)}var oa=
a.viewQuery;null!==oa&&vga(2,oa,d);if(c){var wa=a.viewCheckHooks;null!==wa&&Sd(b,wa,3)}else{var Da=a.viewHooks;null!==Da&&Jea(b,Da,2);Kea(b,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1);b[2]&=-73;yea(b)}finally{Fea()}}},Ega=function(a,b){for(a=kfa(a[12]);null!==a;a=kfa(a[4]))for(var c=11;c<a.length;c++)Fga(a[c],b)},Fga=function(a,b){if(128===(a[2]&128)){var c=a[1];if(a[2]&80&&0===b||a[2]&1024||2===b)Cga(c,a,c.template,a[8]);else if(0<a[5]&&(Ega(a,1),b=a[1].components,null!==b))for(c=0;c<b.length;c++){var d=
Id(b[c],a);Fga(d,1)}}},Gga=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push({propName:a[c],templateName:c});return b},Hga=function(){Iea(r()[1],Ld())},Iga=function(a,b,c){return new we(a,b,c)},Kga=function(a,b,c){return(new Jga({providers:a,parent:b,debugName:void 0===c?null:c,runEnvironmentInitializers:!0})).injector},xe=function(a){return!!a&&"function"===typeof a.then},Lga=function(a){return!!a&&"function"===typeof a.subscribe},ye=function(a){var b=a.toLowerCase().replace(/_/g,"-");
if(a=Mga(b))return a;b=b.split("-")[0];if(a=Mga(b))return a;if("en"===b)return Nga;throw new dd(701,!1);},Mga=function(a){a in Oga||(Oga[a]=ne.ng&&ne.ng.common&&ne.ng.common.locales&&ne.ng.common.locales[a]);return Oga[a]},ze=function(a){setTimeout(function(){throw a;},0)},Ae=function(a){return"function"===typeof a},Pga=function(a){return null!==a&&"object"===typeof a},Qga=function(a){return a instanceof Be||a&&"closed"in a&&"function"===typeof a.remove&&"function"===typeof a.add&&"function"===typeof a.unsubscribe},
Rga=function(a){return a.reduce(function(b,c){return b.concat(c instanceof Ce?c.errors:c)},[])},Sga=function(a){for(;a;){var b=a,c=b.destination,d=b.isStopped;if(b.closed||d)return!1;c&&c instanceof De?a=c:a=null}return!0},Ee=function(a){return a},Uga=function(){return Tga(xd.apply(0,arguments))},Tga=function(a){return 0===a.length?Ee:1===a.length?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},Vga=function(a){return a&&"function"===typeof a.next&&"function"===typeof a.error&&"function"===
typeof a.complete},Wga=function(a){a||(a=Fe.Promise||Promise);if(!a)throw Error("za");return a},Xga=function(a){return new Ge(function(b){return a.schedule(function(){return b.complete()})})},Yga=function(a,b){return new Ge(function(c){var d=new Be,e=0;d.add(b.schedule(function(){e===a.length?c.complete():(c.next(a[e++]),c.closed||d.add(this.schedule()))}));return d})},He=function(a,b){return b?Yga(a,b):new Ge(Zga(a))},Ie=function(a){return a&&"function"===typeof a.schedule},$ga=function(){var a=
xd.apply(0,arguments),b=a[a.length-1];return Ie(b)?(a.pop(),Yga(a,b)):He(a)},aha=function(a){a.subscriber.error(a.error)},Je=function(a,b){if(a&&"function"===typeof a.lift)return a.lift(b);throw new TypeError("Aa");},bha=function(a,b,c){if(a&&"function"===typeof a.lift)return a.lift.call(b,c);throw new TypeError("Aa");},Ke=function(){return function(a){return Je(a,new cha)}},A=function(a){return function(b){if("function"!==typeof a)throw new TypeError("Ba");return Je(b,new dha(a))}},eha=function(a,
b,c){if(b)if(Ie(b))c=b;else return function(){return eha(a,c).apply(null,p(xd.apply(0,arguments))).pipe(A(function(d){return Le(d)?b.apply(null,p(d)):b(d)}))};return function(){var d=xd.apply(0,arguments),e=this,f,h={context:e,subject:void 0,callbackFunc:a,scheduler:c};return new Ge(function(k){if(c)return c.schedule(fha,0,{args:d,subscriber:k,params:h});if(!f){f=new Me;var q=function(){var u=xd.apply(0,arguments);f.next(1>=u.length?u[0]:u);f.complete()};try{a.apply(e,[].concat(p(d),[q]))}catch(u){Sga(f)?
f.error(u):console.warn(u)}}return f.subscribe(k)})}},fha=function(a){var b=this,c=a.args,d=a.subscriber,e=a.params;a=e.callbackFunc;var f=e.context,h=e.scheduler,k=e.subject;if(!k){k=e.subject=new Me;e=function(){var q=xd.apply(0,arguments);b.add(h.schedule(gha,0,{value:1>=q.length?q[0]:q,subject:k}))};try{a.apply(f,[].concat(p(c),[e]))}catch(q){k.error(q)}}this.add(k.subscribe(d))},gha=function(a){var b=a.subject;b.next(a.value);b.complete()},hha=function(a,b,c){if(b)if(Ie(b))c=b;else return function(){return hha(a,
c).apply(null,p(xd.apply(0,arguments))).pipe(A(function(d){return Le(d)?b.apply(null,p(d)):b(d)}))};return function(){var d=xd.apply(0,arguments),e={subject:void 0,args:d,callbackFunc:a,scheduler:c,context:this};return new Ge(function(f){var h=e.context,k=e.subject;if(c)return c.schedule(iha,0,{params:e,subscriber:f,context:h});if(!k){k=e.subject=new Me;var q=function(){var u=xd.apply(0,arguments),x=u.shift();x?k.error(x):(k.next(1>=u.length?u[0]:u),k.complete())};try{a.apply(h,[].concat(p(d),[q]))}catch(u){Sga(k)?
k.error(u):console.warn(u)}}return k.subscribe(f)})}},iha=function(a){var b=this,c=a.params,d=a.subscriber;a=a.context;var e=c.callbackFunc,f=c.args,h=c.scheduler,k=c.subject;if(!k){k=c.subject=new Me;c=function(){var q=xd.apply(0,arguments),u=q.shift();u?b.add(h.schedule(jha,0,{err:u,subject:k})):b.add(h.schedule(kha,0,{value:1>=q.length?q[0]:q,subject:k}))};try{e.apply(a,[].concat(p(f),[c]))}catch(q){this.add(h.schedule(jha,0,{err:q,subject:k}))}}this.add(k.subscribe(d))},kha=function(a){var b=
a.subject;b.next(a.value);b.complete()},jha=function(a){a.subject.error(a.err)},lha=function(a){return!!a&&"function"!==typeof a.subscribe&&"function"===typeof a.then},nha=function(a){return function(b){mha(a,b).catch(function(c){return b.error(c)})}},mha=function(a,b){var c,d,e,f,h,k;return Ne(function(q){switch(q.nextAddress){case 1:Oe(q,2,3);var u=a[Symbol.asyncIterator];f=void 0!==u?u.call(a):new oha(l(a));case 5:return q.yield(f.next(),8);case 8:d=q.yieldResult;if(d.done){q.jumpTo(3);break}h=
d.value;b.next(h);q.jumpTo(5);break;case 3:Pe(q);q.catchAddress_=0;q.finallyAddress_=9;if(!d||d.done||!(e=f.return)){q.jumpTo(9);break}return q.yield(e.call(f),9);case 9:Pe(q,0,0,1);if(c)throw c.error;Qe(q,10,1);break;case 10:Qe(q,4);break;case 2:k=Re(q);c={error:k};q.jumpTo(3);break;case 4:b.complete(),Se(q)}})},Te=function(a,b){if(!b.closed)return a instanceof Ge?a.subscribe(b):pha(a)(b)},qha=function(a,b){if(!a)throw Error("Ea");return new Ge(function(c){var d=new Be;d.add(b.schedule(function(){var e=
a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(h){h.done?c.complete():(c.next(h.value),f.schedule())})}))}));return d})},rha=function(a,b){if(!a)throw Error("Ea");return new Ge(function(c){var d=new Be,e;d.add(function(){e&&"function"===typeof e.return&&e.return()});d.add(b.schedule(function(){e=a[Ue]();d.add(b.schedule(function(){if(!c.closed){try{var f=e.next();var h=f.value;var k=f.done}catch(q){c.error(q);return}k?c.complete():(c.next(h),this.schedule())}}))}));
return d})},sha=function(a,b){return new Ge(function(c){var d=new Be;d.add(b.schedule(function(){var e=a[Ve]();d.add(e.subscribe({next:function(f){d.add(b.schedule(function(){return c.next(f)}))},error:function(f){d.add(b.schedule(function(){return c.error(f)}))},complete:function(){d.add(b.schedule(function(){return c.complete()}))}}))}));return d})},tha=function(a,b){return new Ge(function(c){var d=new Be;d.add(b.schedule(function(){return a.then(function(e){d.add(b.schedule(function(){c.next(e);
d.add(b.schedule(function(){return c.complete()}))}))},function(e){d.add(b.schedule(function(){return c.error(e)}))})}));return d})},vha=function(a,b){if(null!=a){if(a&&"function"===typeof a[Ve])return sha(a,b);if(lha(a))return tha(a,b);if(uha(a))return Yga(a,b);if(a&&"function"===typeof a[Ue]||"string"===typeof a)return rha(a,b);if(Symbol&&Symbol.asyncIterator&&"function"===typeof a[Symbol.asyncIterator])return qha(a,b)}throw new TypeError("Fa`"+(null!==a&&typeof a||a));},We=function(a,b){return b?
vha(a,b):a instanceof Ge?a:new Ge(pha(a))},Xe=function(a,b){var c=void 0===c?Infinity:c;if("function"===typeof b)return function(d){return d.pipe(Xe(function(e,f){return We(a(e,f)).pipe(A(function(h,k){return b(e,h,f,k)}))},c))};"number"===typeof b&&(c=b);return function(d){return Je(d,new wha(a,c))}},Ye=function(a){a=void 0===a?Infinity:a;return Xe(Ee,a)},Ze=function(){return Ye(1)($ga.apply(null,p(xd.apply(0,arguments))))},xha=function(a){return new Ge(function(b){try{var c=a()}catch(d){b.error(d);
return}return We(c).subscribe(b)})},Aha=function(a){return new Ge(function(b){var c=a||yha,d=c.now(),e=function(h){var k=c.now();b.next({timestamp:a?k:h,elapsed:k-d});b.closed||(f=zha(e))};var f=zha(e);return function(){return f.unsubscribe()}})},Bha=function(a,b){return new Ge(function(c){var d=a.length;if(0===d)c.complete();else for(var e=Array(d),f=0,h=0,k={i$jscomp$323:0};k.i$jscomp$323<d;k={hasValue:k.hasValue,i$jscomp$323:k.i$jscomp$323},k.i$jscomp$323++){var q=We(a[k.i$jscomp$323]);k.hasValue=
!1;c.add(q.subscribe({next:function(u){return function(x){u.hasValue||(u.hasValue=!0,h++);e[u.i$jscomp$323]=x}}(k),error:function(u){return c.error(u)},complete:function(u){return function(){f++;f!==d&&u.hasValue||(h===d&&c.next(b?b.reduce(function(x,y,E){return x[y]=e[E],x},{}):e),c.complete())}}(k)}))}})},Cha=function(a,b,c,d){Ae(c)&&(d=c,c=void 0);return d?Cha(a,b,c).pipe(A(function(e){return Le(e)?d.apply(null,p(e)):d(e)})):new Ge(function(e){Dha(a,b,function(f){1<arguments.length?e.next(Array.prototype.slice.call(arguments)):
e.next(f)},e,c)})},Dha=function(a,b,c,d,e){if(a&&"function"===typeof a.addEventListener&&"function"===typeof a.removeEventListener){a.addEventListener(b,c,e);var f=function(){return a.removeEventListener(b,c,e)}}else if(a&&"function"===typeof a.on&&"function"===typeof a.off)a.on(b,c),f=function(){return a.off(b,c)};else if(a&&"function"===typeof a.addListener&&"function"===typeof a.removeListener)a.addListener(b,c),f=function(){return a.removeListener(b,c)};else if(a&&a.length)for(var h=0,k=a.length;h<
k;h++)Dha(a[h],b,c,d,e);else throw new TypeError("Ga");d.add(f)},Eha=function(a,b,c){return c?Eha(a,b).pipe(A(function(d){return Le(d)?c.apply(null,p(d)):c(d)})):new Ge(function(d){var e=function(){var h=xd.apply(0,arguments);return d.next(1===h.length?h[0]:h)};try{var f=a(e)}catch(h){d.error(h);return}if(Ae(b))return function(){return b(e,f)}})},Fha=function(a){var b=a.subscriber,c=a.condition;if(!b.closed){if(a.needIterate)try{a.state=a.iterate(a.state)}catch(f){b.error(f);return}else a.needIterate=
!0;if(c){try{var d=c(a.state)}catch(f){b.error(f);return}if(!d){b.complete();return}if(b.closed)return}try{var e=a.resultSelector(a.state)}catch(f){b.error(f);return}if(!b.closed&&(b.next(e),!b.closed))return this.schedule(a)}},Gha=function(a){return!Le(a)&&0<=a-parseFloat(a)+1},Hha=function(a){var b=a.subscriber,c=a.counter;a=a.period;b.next(c);this.schedule({subscriber:b,counter:c+1,period:a},a)},$e=function(){},Iha=function(){var a=xd.apply(0,arguments);if(0===a.length)return af;var b=l(a),c=b.next().value,
d=bf(b);return 1===a.length&&Le(c)?Iha.apply(null,p(c)):new Ge(function(e){var f=function(){return e.add(Iha.apply(null,p(d)).subscribe(e))};return We(c).subscribe({next:function(h){e.next(h)},error:f,complete:f})})},Jha=function(a){var b=a.keys,c=a.index,d=a.subscriber,e=a.subscription;a=a.obj;if(!d.closed)if(c<b.length){var f=b[c];d.next([f,a[f]]);e.add(this.schedule({keys:b,index:c+1,subscriber:d,subscription:e,obj:a}))}else d.complete()},cf=function(a,b){return function(c){return Je(c,new Kha(a,
b))}},Lha=function(a,b){function c(){return!c.pred.apply(c.thisArg,arguments)}c.pred=a;c.thisArg=b;return c},Nha=function(){var a=xd.apply(0,arguments);if(1===a.length)if(Le(a[0]))a=a[0];else return We(a[0]);return Je(He(a),new Mha)},Oha=function(a){var b=a.start,c=a.index,d=a.subscriber;c>=a.count?d.complete():(d.next(b),d.closed||(a.index=c+1,a.start=b+1,this.schedule(a)))},Pha=function(a){return a instanceof Date&&!isNaN(a)},Rha=function(a,b,c){a=void 0===a?0:a;var d=-1;null!=b&&(Ie(b)?c=b:d=b);
Ie(c)||(c=df);return new Ge(function(e){var f=Math.max(0,Pha(a)?+a-c.now():a);return c.schedule(Qha,f,{counter:0,period:d,subscriber:e})})},Qha=function(a){var b=a.period,c=a.subscriber,d=a.counter++;c.next(d);if(!c.closed){if(0>b)return c.complete();this.schedule(a,b)}},ef=function(a){var b;return function(c){var d=void 0,e=void 0,f=null,h;b=null!=(h=b)?h:df;if(Pha(a))var k=a;else if("number"===typeof a)d=a;else{k=a.first;d=a.each;e=a.with;b=a.scheduler||df;var q;f=null!=(q=a.meta)?q:null}var u;
e=null!=(u=e)?u:Sha;if(null==k&&null==d)throw new TypeError("Ia");return Je(c,function(x){var y=this,E=new Be,H,J=null,O=null,R=0,U=function(Z){E.add(J=b.schedule(function(){var na={meta:f,lastValue:O,seen:R};try{var oa=We(e(na))}catch(wa){y.error(wa);return}H.unsubscribe();E.add(oa.subscribe(y))},Z))};E.add(H=x.subscribe({next:function(Z){var na;null==(na=J)||na.unsubscribe();J=null;R++;O=Z;null!=d&&0<d&&U(d);y.next(Z)},error:function(Z){return y.error(Z)},complete:function(){return y.complete()}}));
x=null!=k?"number"===typeof k?k:+k-b.now():d;U(x);return E})}},Sha=function(a){throw new Tha(a);},Vha=function(a){return a in Uha?(delete Uha[a],!0):!1},Wha=function(a){return function(b){setTimeout(a,void 0,b)}},Xha=function(){},Zha=function(a){return function(b){return Je(b,new Yha(a))}},ff=function(a,b){b=void 0===b?df:b;return Zha(function(){return Rha(a,b)})},aia=function(a){return function(b){return Je(b,new $ha(a))}},gf=function(a){return function(b){return Je(b,function(c){var d=this,e=new Be,
f=null,h=!1,k;f=c.subscribe({next:function(q){return d.next(q)},error:function(q){try{k=We(a(q,gf(a)(c)))}catch(u){d.error(u)}k&&(f?(f.unsubscribe(),f=null,e.add(k.subscribe(d))):h=!0)},complete:function(){return d.complete()}});h?(f.unsubscribe(),f=null,e.add(k.subscribe(d))):e.add(f);return e})}},cia=function(){var a=xd.apply(0,arguments),b=void 0;"function"===typeof a[a.length-1]&&(b=a.pop());1===a.length&&Le(a[0])&&(a=a[0].slice());return function(c){return bha(c,We([c].concat(p(a))),new bia(b))}},
hf=function(){return cia.apply(null,p(xd.apply(0,arguments)))},dia=function(){var a=xd.apply(0,arguments);return function(b){return bha(b,Ze.apply(null,[b].concat(p(a))))}},eia=function(){var a=xd.apply(0,arguments);return function(b){return bha(b,Ze.apply(null,[b].concat(p(a))))}},gia=function(a){return function(b){return Je(b,new fia(a))}},jf=function(a,b){b=void 0===b?df:b;return function(c){return Je(c,new hia(a,b))}},jia=function(a){iia(a)},kf=function(a){a=void 0===a?null:a;return function(b){return Je(b,
new kia(a))}},lf=function(a,b){b=void 0===b?df:b;var c=Pha(a)?+a-b.now():Math.abs(a);return function(d){return Je(d,new lia(c,b))}},mf=function(a){return function(b){return Je(b,new mia(a))}},nf=function(){if(isNaN(1))throw new TypeError("Ja");return function(a){return Je(a,new nia)}},qia=function(a){a=void 0===a?oia:a;return function(b){return Je(b,new pia(a))}},oia=function(){return new of},pf=function(a){return function(b){return Je(b,new ria(a))}},qf=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?
cf(function(e,f){return a(e,f,d)}):Ee,nf(),c?kf(b):qia(function(){return new of}))}},tia=function(){return function(a){return Je(a,new sia)}},rf=function(){if(isNaN(1))throw new TypeError("Ja");return function(a){return Je(a,new uia)}},via=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?cf(function(e,f){return a(e,f,d)}):Ee,rf(),c?kf(b):qia(function(){return new of}))}},sf=function(a){return function(b){return Je(b,new wia(a))}},yia=function(a,b){var c=!1;2<=arguments.length&&
(c=!0);return function(d){return Je(d,new xia(a,b,c))}},zia=function(a,b){return 2<=arguments.length?function(c){return Uga(yia(a,b),rf(),kf(b))(c)}:function(c){return Uga(yia(function(d,e,f){return a(d,e,f+1)}),rf())(c)}},Bia=function(a){return function(b){var c="function"===typeof a?a:function(){return a};var d=Object.create(b,Aia);d.source=b;d.subjectFactory=c;return d}},Cia=function(){var a=new tf(1,void 0,void 0);return function(b){return Bia(function(){return a})(b)}},Dia=function(){var a=xd.apply(0,
arguments);return function(b){return 0===a.length?b:bha(b,Nha.apply(null,[b].concat(p(a))))}},Eia=function(){return new uf},vf=function(){return function(a){return Ke()(Bia(Eia)(a))}},wf=function(a){var b;a&&"object"===typeof a?b=a:b={bufferSize:a,windowTime:void 0,refCount:!1,scheduler:void 0};return function(c){return Je(c,Fia(b))}},Fia=function(a){var b=void 0===a.bufferSize?Infinity:a.bufferSize,c=void 0===a.windowTime?Infinity:a.windowTime,d=a.refCount,e=a.scheduler,f,h=0,k;return function(q){h++;
if(f)var u=f.subscribe(this);else f=new tf(b,c,e),u=f.subscribe(this),k=q.subscribe({next:function(x){f.next(x)},error:function(x){var y=f;f=k=void 0;y.error(x)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);this.add(function(){h--;u.unsubscribe();d&&0===h&&k&&(k.unsubscribe(),f=k=void 0)})}},xf=function(a){return function(b){return Je(b,new Gia(a))}},yf=function(){var a=xd.apply(0,arguments),b=a[a.length-1];return Ie(b)?(a.pop(),function(c){return Ze(a,c,b)}):function(c){return Ze(a,
c)}},zf=function(a){return function(b){return Je(b,new Hia(a))}},Af=function(a){return function(b){return Je(b,new Iia(a))}},Kia=function(a){var b=void 0===b?!1:b;return function(c){return Je(c,new Jia(a,b))}},Bf=function(a,b){return function(c){return Je(c,new Lia(a,b))}},Oia=function(a){var b=void 0===b?Mia:b;return function(c){return Je(c,new Nia(a,!!b.leading,!!b.trailing))}},Pia=function(a,b,c){if(0===c)return[b];a.push(b);return a},Cf=function(){var a=xd.apply(0,arguments);return function(b){var c;
"function"===typeof a[a.length-1]&&(c=a.pop());return Je(b,new Qia(a,c))}},Ria=function(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(function(){return a.onStable.emit(null)})}finally{a.isStable=!0}}},Tia=function(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(ne,function(){a.fakeTopEventTask||
(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){a.lastRequestAnimationFrameId=-1;Sia(a);a.isCheckStableRunning=!0;Ria(a);a.isCheckStableRunning=!1},void 0,function(){},function(){}));a.fakeTopEventTask.invoke()}),Sia(a))},Via=function(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,h){try{return Uia(a),b.invokeTask(d,e,f,h)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===e.type||a.shouldCoalesceRunChangeDetection)&&
Tia(a),a._nesting--,Ria(a)}},onInvoke:function(b,c,d,e,f,h,k){try{return Uia(a),b.invoke(d,e,f,h,k)}finally{a.shouldCoalesceRunChangeDetection&&Tia(a),a._nesting--,Ria(a)}},onHasTask:function(b,c,d,e){b.hasTask(d,e);c===d&&("microTask"==e.change?(a._hasPendingMicrotasks=e.microTask,Sia(a),Ria(a)):"macroTask"==e.change&&(a.hasPendingMacrotasks=e.macroTask))},onHandleError:function(b,c,d,e){b.handleError(d,e);a.runOutsideAngular(function(){return a.onError.emit(e)});return!1}})},Sia=function(a){a.hasPendingMicrotasks=
a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId?!0:!1},Uia=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},Yia=function(){var a=jd(Df),b=!0;return(0,B.merge)(new B.Observable(function(c){b=a.isStable&&!a.hasPendingMacrotasks&&!a.hasPendingMicrotasks;a.runOutsideAngular(function(){c.next(b);c.complete()})}),(new B.Observable(function(c){var d;a.runOutsideAngular(function(){d=a.onStable.subscribe(function(){Wia();
queueMicrotask(function(){b||a.hasPendingMacrotasks||a.hasPendingMicrotasks||(b=!0,c.next(!0))})})});var e=a.onUnstable.subscribe(function(){if(!Xia())throw new dd(909,!1);b&&(b=!1,a.runOutsideAngular(function(){c.next(!1)}))});return function(){d.unsubscribe();e.unsubscribe()}})).pipe(vf()))},$ia=function(a){var b;null==(b=a.get(Zia,null))||b.forEach(function(c){return c()})},dja=function(a,b,c){c=void 0===c?[]:c;var d="Platform: "+b,e=new Ad(d);return function(f){f=void 0===f?[]:f;var h=aja();if(!h||
h.injector.get(bja,!1))if(f=[].concat(p(c),p(f),[{provide:e,useValue:!0}]),a)a(f);else{f=cja(f,d);if(Ef&&!Ef.get(bja,!1))throw new dd(400,!1);Ef=f;f.get(Ff);$ia(f)}f=aja();if(!f)throw new dd(401,!1);return f}},cja=function(a,b){a=void 0===a?[]:a;return Gf({name:b,providers:[{provide:eja,useValue:"platform"},{provide:fja,useValue:new Set([function(){return Ef=null}])}].concat(p(a))})},aja=function(){var a,b;return null!=(b=null==(a=Ef)?void 0:a.get(Ff))?b:null},gja=function(a){var b,c;return{enableLongStackTrace:!1,
shouldCoalesceEventChangeDetection:null!=(b=null==a?void 0:a.eventCoalescing)?b:!1,shouldCoalesceRunChangeDetection:null!=(c=null==a?void 0:a.runCoalescing)?c:!1}},hja=function(a,b){a=void 0===a?"zone.js":a;return"noop"===a?new Hf:"zone.js"===a?new Df(b):a},ija=function(a,b,c){try{var d=c();return xe(d)?d.catch(function(e){b.runOutsideAngular(function(){return a.handleError(e)});throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a.handleError(e)}),e;}},jja=function(a,b){return Array.isArray(b)?
b.reduce(jja,a):Object.assign({},a,b)},kja=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)},lja=function(){var a=jd(Df),b=jd(ve);return function(c){return a.runOutsideAngular(function(){return b.handleError(c)})}},oja=function(a){return[{provide:Df,useFactory:a},{provide:gea,multi:!0,useFactory:function(){var b=jd(If,{optional:!0});return function(){return b.initialize()}}},{provide:mja,useFactory:lja},{provide:nja,useFactory:Yia}]},Jf=function(a){for(var b=Object.getPrototypeOf(a.type.prototype).constructor,
c=!0,d=[a];b;){if(a.template)var e=b.\u0275cmp||b.\u0275dir;else{if(b.\u0275cmp)throw new dd(903,!1);e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=pja(a.inputs);f.inputTransforms=pja(a.inputTransforms);f.declaredInputs=pja(a.declaredInputs);f.outputs=pja(a.outputs);var h=e.hostBindings;h&&qja(a,h);h=e.viewQuery;var k=e.contentQueries;h&&rja(a,h);k&&sja(a,k);qda(a.inputs,e.inputs);qda(a.declaredInputs,e.declaredInputs);qda(a.outputs,e.outputs);null!==e.inputTransforms&&(null===f.inputTransforms&&
(f.inputTransforms={}),qda(f.inputTransforms,e.inputTransforms));e.template&&e.data.animation&&(f=a.data,f.animation=(f.animation||[]).concat(e.data.animation))}if(e=e.features)for(f=0;f<e.length;f++)(h=e[f])&&h.ngInherit&&h(a),h===Jf&&(c=!1)}b=Object.getPrototypeOf(b)}a=0;b=null;for(c=d.length-1;0<=c;c--)e=d[c],e.hostVars=a+=e.hostVars,e.hostAttrs=ld(e.hostAttrs,b=ld(b,e.hostAttrs))},pja=function(a){return a===rd?{}:a===nd?[]:a},rja=function(a,b){var c=a.viewQuery;a.viewQuery=c?function(d,e){b(d,
e);c(d,e)}:b},sja=function(a,b){var c=a.contentQueries;a.contentQueries=c?function(d,e,f){b(d,e,f);c(d,e,f)}:b},qja=function(a,b){var c=a.hostBindings;a.hostBindings=c?function(d,e){b(d,e);c(d,e)}:b},tja=function(a){var b=a.inputConfig,c={},d;for(d in b)if(b.hasOwnProperty(d)){var e=b[d];Array.isArray(e)&&e[2]&&(c[d]=e[2])}a.inputTransforms=c},vja=function(a){return uja(a)?Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a:!1},wja=function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);
else for(a=a[Symbol.iterator]();!(c=a.next()).done;)b(c.value)},uja=function(a){return null!==a&&("function"===typeof a||"object"===typeof a)},Kf=function(a,b,c){return a[b]=c},Lf=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},Mf=function(a,b,c,d){c=Lf(a,b,c);return Lf(a,b+1,d)||c},Nf=function(a,b,c,d){var e=r(),f=Kd.bindingIndex++;Lf(e,f,b)&&(f=Pd(),tga(f,e,a,b,c,d));return Nf},Of=function(a,b,c,d){return Lf(a,Kd.bindingIndex++,c)?b+bd(c)+d:te},xja=function(a,b,c,d,e,f){a=Mf(a,Kd.bindingIndex,
c,e);Od(2);return a?b+bd(c)+d+bd(e)+f:te},Pf=function(a,b,c,d,e,f){var h=r();b=Of(h,b,c,d);b!==te&&(c=Pd(),tga(c,h,a,b,e,f));return Pf},Qf=function(a,b,c,d,e,f,h,k){var q=r();b=xja(q,b,c,d,e,f);b!==te&&(c=Pd(),tga(c,q,a,b,h,k));return Qf},yja=function(a,b,c,d,e,f,h,k,q,u){var x=r();var y=Kd.bindingIndex;var E=Mf(x,y,c,e);y=Lf(x,y+2,h)||E;Od(3);b=y?b+bd(c)+d+bd(e)+f+bd(h)+k:te;b!==te&&(c=Pd(),tga(c,x,a,b,q,u));return yja},C=function(a,b,c){var d=r(),e=Kd.bindingIndex++;if(Lf(d,e,b)){e=Kd.tView;var f=
Pd();ue(e,f,d,a,b,d[11],c,!1)}return C},zja=function(a,b,c,d,e){e=e?"class":"style";pga(a,c,b.inputs[e],e,d)},Aja=function(a,b,c,d){for(var e=a[c+1],f=null===b,h=d?e>>17&32767:(e&131068)>>2,k=!1;0!==h&&(!1===k||f);){var q=a[h+1],u=a[h],x=b;if(null===u||null==x||(Array.isArray(u)?u[1]:u)===x||Array.isArray(u)&&"string"===typeof x&&0<=vd(u,x))k=!0,a[h+1]=d?q|1:q|2;h=d?q>>17&32767:(q&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},Bja=function(a,b){var c=Rf;if(c===b)return-1;for(b=Sf=b;b<c&&32<a.charCodeAt(b);)b++;
b=Uf=b;return Vf(a,b,c)},Gja=function(a,b){var c=Rf;b=Sf=Vf(a,b,c);if(c===b)return-1;for(var d;b<c&&(45===(d=a.charCodeAt(b))||95===d||65<=(d&-33)&&90>=(d&-33)||48<=d&&57>=d);)b++;b=Uf=b;b=Cja(a,b,c);d=b=Dja=Vf(a,b,c);for(var e=b=-1,f=-1,h=d,k=h;h<c;){var q=a.charCodeAt(h++);if(59===q)break;else 34===q||39===q?k=h=Eja(a,q,h,c):d===h-4&&85===f&&82===e&&76===b&&40===q?k=h=Eja(a,41,h,c):32<q&&(k=h);f=e;e=b;b=q&-33}b=Fja=k;return Cja(a,b,c)},Vf=function(a,b,c){for(;b<c&&32>=a.charCodeAt(b);)b++;return b},
Cja=function(a,b,c){b=Vf(a,b,c);b<c&&b++;return b},Eja=function(a,b,c,d){for(var e=-1;c<d;){var f=a.charCodeAt(c++);if(f==b&&92!==e)return c;e=92==f&&92===e?0:f}throw Error();},Wf=function(a,b,c){Hja(a,b,c,!1);return Wf},Xf=function(a,b){Hja(a,b,null,!0);return Xf},Jja=function(a,b){var c;Fja=Dja=Uf=Sf=0;Rf=b.length;for(c=Gja(b,Vf(b,0,Rf));0<=c;c=Gja(b,c))Ija(a,b.substring(Sf,Uf),b.substring(Dja,Fja))},Yf=function(a){Kja(Lja,Mja,a,!0)},Mja=function(a,b){var c;Fja=Dja=Uf=Sf=0;Rf=b.length;for(c=Bja(b,
Vf(b,0,Rf));0<=c;c=Bja(b,c))wd(a,b.substring(Sf,Uf),!0)},Hja=function(a,b,c,d){var e=r(),f=Kd.tView,h=Od(2);f.firstUpdatePass&&Nja(f,a,h,d);if(b!==te&&Lf(e,h,b)){var k=f.data[Kd.selectedIndex],q=e[11];null!=b&&""!==b&&("string"===typeof c?b+=c:"object"===typeof b&&(b=cd(ke(b))));Oja(f,k,e,q,a,e[h+1]=b,d,h)}},Kja=function(a,b,c,d){var e=Kd.tView,f=Od(2);e.firstUpdatePass&&Nja(e,null,f,d);var h=r();if(c!==te&&Lf(h,f,c)){var k=e.data[Kd.selectedIndex];if(0===(k.flags&(d?8:16))||f>=e.expandoStartIndex){var q=
h[11],u=h[f+1];if(null==c||""===c)a=nd;else{var x=[];c=ke(c);if(Array.isArray(c))for(b=0;b<c.length;b++)a(x,c[b],!0);else if("object"===typeof c)for(var y in c)c.hasOwnProperty(y)&&a(x,y,c[y]);else"string"===typeof c&&b(x,c);a=x}a=h[f+1]=a;u===te&&(u=nd);b=x=0;c=0<u.length?u[0]:null;for(y=0<a.length?a[0]:null;null!==c||null!==y;){var E=x<u.length?u[x+1]:void 0,H=b<a.length?a[b+1]:void 0,J=null,O=void 0;c===y?(x+=2,b+=2,E!==H&&(J=y,O=H)):null===y||null!==c&&c<y?(x+=2,J=c):(b+=2,J=y,O=H);null!==J&&
Oja(e,k,h,q,J,O,d,f);c=x<u.length?u[x]:null;y=b<a.length?a[b]:null}}else f=d?k.classesWithoutHost:k.stylesWithoutHost,null!==f&&(c=yda(f,c?c:"")),zja(e,k,h,c,d)}},Nja=function(a,b,c,d){var e=a.data;if(null===e[c+1]){var f=e[Kd.selectedIndex];a=c>=a.expandoStartIndex;0!==(f.flags&(d?8:16))&&null===b&&!a&&(b=!1);var h=zea(e),k=d?f.residualClasses:f.residualStyles;if(null===h)0===(d?f.classBindings:f.styleBindings)&&(b=Pja(null,e,f,b,d),b=Zf(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(-1===
q||e[q]!==h)if(b=Pja(h,e,f,b,d),null===k)h=d?f.classBindings:f.styleBindings,h=0!==(h&131068)>>2?e[h>>17&32767]:void 0,void 0!==h&&Array.isArray(h)&&(h=Pja(null,e,f,h[1],d),h=Zf(h,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=h);else{k=void 0;h=f.directiveEnd;for(q=1+f.directiveStylingLast;q<h;q++)k=Zf(k,e[q].hostAttrs,d);k=Zf(k,f.attrs,d)}}void 0!==k&&(d?f.residualClasses=k:f.residualStyles=k);q=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=q;var u=!1;if(Array.isArray(q)){if(h=
q[1],null===h||0<vd(q,h))u=!0}else h=q;a?0!==k?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,0!==a&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,0!==b&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,0===b?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);u&&(e[c+1]=e[c+1]|2);Aja(e,h,c,!0);Aja(e,h,c,!1);a=d?f.residualClasses:f.residualStyles;null!=a&&"string"==typeof h&&0<=vd(a,h)&&(e[c+1]=e[c+1]|1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},Pja=function(a,b,c,d,e){var f=c.directiveEnd,
h=c.directiveStylingLast;for(-1===h?h=c.directiveStart:h++;h<f;){var k=b[h];d=Zf(d,k.hostAttrs,e);if(k===a)break;h++}null!==a&&(c.directiveStylingLast=h);return d},Zf=function(a,b,c){var d=c?1:2,e=-1;if(null!==b)for(var f=0;f<b.length;f++){var h=b[f];"number"===typeof h?e=h:e===d&&(Array.isArray(a)||(a=void 0===a?[]:["",a]),wd(a,h,c?!0:b[++f]))}return void 0===a?null:a},Ija=function(a,b,c){wd(a,b,ke(c))},Lja=function(a,b,c){b=String(b);""===b||b.includes(" ")||wd(a,b,c)},Oja=function(a,b,c,d,e,f,
h,k){if(b.type&3){a=a.data;var q=a[k+1];void 0===(1===(q&1)?Qja(a,b,c,e,(q&131068)>>2,h):void 0)&&(void 0!==f||2==(q&2)&&(f=Qja(a,null,c,e,k,h)),b=Gd(c[Kd.selectedIndex]),h?f?d.addClass(b,e):d.removeClass(b,e):(h=-1===e.indexOf("-")?void 0:2,null==f?d.removeStyle(b,e,h):("string"===typeof f&&f.endsWith("!important")&&(f=f.slice(0,-10),h|=1),d.setStyle(b,e,f,h))))}},Qja=function(a,b,c,d,e,f){for(var h=null===b,k=void 0;0<e;){var q=a[e],u=Array.isArray(q),x=u?q[1]:q,y=null===x,E=c[e+1];E===te&&(E=y?
nd:void 0);x=y?$da(E,d):x===d?E:void 0;u&&void 0===x&&(x=$da(q,d));if(void 0!==x&&(k=x,h))return k;e=a[e+1];e=h?e>>17&32767:(e&131068)>>2}null!==b&&(a=f?b.residualClasses:b.residualStyles,null!=a&&(k=$da(a,d)));return k},$f=function(a,b,c){a=Of(r(),a,b,c);Kja(wd,Mja,a,!0)},D=function(a,b,c,d){var e=r(),f=Kd.tView,h=25+a;a=e[11];if(f.firstCreatePass){var k=f.consts;c=Jd(k,c);c=se(f,h,2,b,c);sga(f,e,c,Jd(k,d));null!==c.attrs&&Aga(c,c.attrs,!1);null!==c.mergedAttrs&&Aga(c,c.mergedAttrs,!0);null!==f.queries&&
f.queries.elementStart(f,c);k=c}else k=f.data[h];ag=!0;b=a.createElement(b,Kd.currentNamespace);e[h]=b;h=1===(k.flags&1);Md(k,!0);zfa(a,b,k);32!==(k.flags&32)&&ag&&vfa(f,e,b,k);0===Kd.elementDepthCount&&de(b,e);Kd.elementDepthCount++;h&&(lga(f,e,k),gga(f,k,e));null!==d&&mga(e,k);return D},F=function(){var a=Ld();Kd.isParent?Kd.isParent=!1:(a=a.parent,Md(a,!1));var b=a;dga===b&&(dga=null);Kd.elementDepthCount--;var c=Kd.tView;c.firstCreatePass&&(Iea(c,a),0!==(a.flags&4)&&c.queries.elementEnd(a));null!=
b.classesWithoutHost&&0!==(b.flags&8)&&zja(c,b,r(),b.classesWithoutHost,!0);null!=b.stylesWithoutHost&&0!==(b.flags&16)&&zja(c,b,r(),b.stylesWithoutHost,!1);return F},G=function(a,b,c,d){D(a,b,c,d);F();return G},I=function(a,b,c){var d=r(),e=Kd.tView;a+=25;if(e.firstCreatePass){var f=e.consts;var h=Jd(f,b);b=se(e,a,8,"ng-container",h);null!==h&&Aga(b,h,!0);f=Jd(f,c);sga(e,d,b,f);null!==e.queries&&e.queries.elementStart(e,b);f=b}else f=e.data[a];Md(f,!0);ag=!0;b=d[11].createComment(pfa());d[a]=b;ag&&
vfa(e,d,b,f);de(b,d);1===(f.flags&1)&&(lga(e,d,f),gga(e,f,d));null!=c&&mga(d,f);return I},K=function(){var a=Ld(),b=Kd.tView;Kd.isParent?Kd.isParent=!1:(a=a.parent,Md(a,!1));b.firstCreatePass&&(Iea(b,a),0!==(a.flags&4)&&b.queries.elementEnd(a));return K},bg=function(a,b,c){I(a,b,c);K();return bg},cg=function(a,b,c){var d=r(),e=Kd.bindingIndex++;if(Lf(d,e,b)){e=Kd.tView;var f=Pd();ue(e,f,d,a,b,d[11],c,!0)}return cg},dg=function(a,b,c){var d=r(),e=Kd.bindingIndex++;if(Lf(d,e,b)){e=Kd.tView;var f=Pd(),
h=wga(zea(e.data),f,d);ue(e,f,d,a,b,h,c,!0)}return dg},L=function(a,b,c,d){c=r();Rja(Kd.tView,c,c[11],Ld(),a,b,d);return L},Sja=function(a,b){var c=Ld(),d=r(),e=Kd.tView,f=wga(zea(e.data),c,d);Rja(e,d,f,c,a,b);return Sja},Tja=function(a,b,c,d){a=a.cleanup;if(null!=a)for(var e=0;e<a.length-1;e+=2){var f=a[e];if(f===c&&a[e+1]===d)return b=b[7],c=a[e+2],b.length>c?b[c]:null;"string"===typeof f&&(e+=2)}return null},Rja=function(a,b,c,d,e,f,h){var k=1===(d.flags&1),q=a.firstCreatePass&&(a.cleanup||(a.cleanup=
[])),u=b[7]||(b[7]=[]),x=!0;if(d.type&3||h){var y=Hd(d,b),E=h?h(y):y;y=u.length;var H=h?function(R){return h(Gd(R[d.index]))}:d.index,J=null;!h&&k&&(J=Tja(a,b,e,d.index));null!==J?((J.__ngLastListenerFn__||J).__ngNextListenerFn__=f,J.__ngLastListenerFn__=f,x=!1):(f=Uja(d,b,f),a=c.listen(E,e,f),u.push(f,a),q&&q.push(e,H,y,y+1))}else f=Uja(d,b,f);a=d.outputs;var O;if(x&&null!==a&&(O=a[e])&&(x=O.length))for(a=0;a<x;a+=2)c=b[O[a]][O[a+1]].subscribe(f),k=u.length,u.push(f,c),q&&q.push(e,d.index,k,-(k+
1))},Vja=function(a,b,c){try{return!1!==b(c)}catch(d){return xga(a,d),!1}finally{}},Uja=function(a,b,c){return function f(e){if(e===Function)return c;var h=-1<a.componentOffset?Id(a.index,b):b;lfa(h);h=Vja(b,c,e);for(var k=f.__ngNextListenerFn__;k;)h=Vja(b,k,e)&&h,k=k.__ngNextListenerFn__;return h}},M=function(a){var b=Kd;a=void 0===a?1:a;for(var c=Kd.contextLView;0<a;)c=c[14],a--;return(b.contextLView=c)[8]},eg=function(a){var b=r()[15][6];if(!b.projection){var c=b.projection=Zda(a?a.length:1,null),
d=c.slice();for(b=b.child;null!==b;){if(a)a:{var e=b;var f=a,h=null;b:{var k=e.attrs;if(null!=k){var q=k.indexOf(5);if(0===(q&1)){k=k[q+1];break b}}k=null}for(q=0;q<f.length;q++){var u=f[q];if("*"===u)h=q;else{if(null===k)u=Lda(e,u,!0);else b:{var x=0;c:for(;x<u.length;x++){var y=u[x];if(k.length===y.length){for(var E=0;E<k.length;E++)if(k[E]!==y[E])continue c;u=!0;break b}}u=!1}if(u){e=q;break a}}}e=h}else e=0;null!==e&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b);b=b.next}}},fg=function(a,b,c){b=
void 0===b?0:b;var d=r(),e=Kd.tView;a=se(e,25+a,16,null,c||null);null===a.projection&&(a.projection=b);Kd.isParent=!1;d[22]&&null===dga||32===(a.flags&32)||(b=d[11],e=ufa(e,a.parent,d),c=a.parent||d[6],c=c.type&40?Hd(c,d):null,yfa(b,0,d,a,e,c))},hg=function(a,b,c){gg(a,"",b,"",c);return hg},gg=function(a,b,c,d,e){var f=r();b=Of(f,b,c,d);b!==te&&(c=Kd.tView,d=Pd(),ue(c,d,f,a,b,f[11],e,!1));return gg},ig=function(a,b,c,d,e,f,h){var k=r();b=xja(k,b,c,d,e,f);b!==te&&(c=Kd.tView,d=Pd(),ue(c,d,k,a,b,k[11],
h,!1));return ig},N=function(a){return Kd.contextLView[25+a]},P=function(a,b,c,d,e,f,h,k){var q=r(),u=Kd.tView,x=a+25;if(u.firstCreatePass){var y=u.consts;e=se(u,x,4,e||null,Jd(y,f));sga(u,q,e,Jd(y,h));Iea(u,e);b=e.tView=nga(2,e,b,c,d,u.directiveRegistry,u.pipeRegistry,null,u.schemas,y,null);null!==u.queries&&(u.queries.template(u,e),b.queries=u.queries.embeddedTView(e));b=e}else b=u.data[x];Md(b,!1);a=Wja(u,q,b,a);ag&&vfa(u,q,a,b);de(a,q);iga(q,q[x]=[a,!0,!1,q,null,0,b,a,null,null,null]);1===(b.flags&
1)&&lga(u,q,b);null!=h&&mga(q,b,k)},Xja=function(a,b){ag=!0;return b[11].createComment("")},Q=function(a,b){b=void 0===b?"":b;var c=r(),d=Kd.tView;a+=25;var e=d.firstCreatePass?se(d,a,1,b,null):d.data[a];ag=!0;b=c[11].createText(b);c[a]=b;ag&&vfa(d,c,b,e);Md(e,!1)},jg=function(a){S("",a,"");return jg},S=function(a,b,c){var d=r();a=Of(d,a,b,c);a!==te&&yga(d,a);return S},kg=function(a,b,c,d,e){var f=r();a=xja(f,a,b,c,d,e);a!==te&&yga(f,a);return kg},Yja=function(a,b,c,d,e,f,h,k,q){var u=r();var x=Kd.bindingIndex;
var y=Mf(u,x,b,d);x=Mf(u,x+2,f,k)||y;Od(4);a=x?a+bd(b)+c+bd(d)+e+bd(f)+h+bd(k)+q:te;a!==te&&yga(u,a);return Yja},Zja=function(a,b,c,d,e){a=gd(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)Zja(a[f],b,c,d,e);else{f=Kd.tView;var h=r(),k=Ld(),q=zd(a)?a:gd(a.provide),u=oea(a),x=k.providerIndexes&1048575,y=k.directiveStart,E=k.providerIndexes>>20;if(zd(a)||!a.multi)d=new Xd(u,e),u=$ja(q,b,e?x:x+E,y),-1===u?(u=Uea(k,h),Qea(u,f,q),aka(f,a,b.length),b.push(q),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=
1048576),c.push(d),h.push(d)):(c[u]=d,h[u]=d);else{y=$ja(q,b,x+E,y);x=$ja(q,b,x,x+E);var H=0<=y&&c[y];E=0<=x&&c[x];e&&!E||!e&&!H?(y=Uea(k,h),Qea(y,f,q),y=c.length,H=new Xd(e?bka:cka,e),H.multi=[],H.index=y,H.componentProviders=0,d&&!e&&H.componentProviders++,H.multi.push(u),!e&&E&&(c[x].providerFactory=H),aka(f,a,b.length,0),b.push(q),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(H),h.push(H)):(b=c[e?x:y],!e&&d&&b.componentProviders++,b=b.multi.push(u)-1,aka(f,a,-1<y?
y:x,b));!e&&d&&E&&c[x].componentProviders++}}},aka=function(a,b,c,d){var e=zd(b),f=!!b.useClass;if(e||f)if(f=(f?gd(b.useClass):b).prototype.ngOnDestroy)a=a.destroyHooks||(a.destroyHooks=[]),!e&&b.multi?(b=a.indexOf(c),-1===b?a.push(c,[d,f]):a[b+1].push(d,f)):a.push(c,f)},$ja=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},cka=function(){return dka(this.multi,[])},bka=function(a,b,c,d){b=this.multi;if(this.providerFactory){var e=this.providerFactory.componentProviders;d=Wd(c,c[1],this.providerFactory.index,
d);c=d.slice(0,e);dka(b,c);for(b=e;b<d.length;b++)c.push(d[b])}else c=[],dka(b,c);return c},dka=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},lg=function(a){var b=void 0===b?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=Kd.tView;f.firstCreatePass&&(d=!!d.template,Zja(b,f.data,f.blueprint,d,!0),Zja(e,f.data,f.blueprint,d,!1))}}},eka=function(a){a.getStandaloneInjector=function(b){b=b.get(mg);if(a.standalone){if(!b.cachedInjectors.has(a)){var c=aea(!1,
a.type);c=0<c.length?Kga([c],b._injector,"Standalone["+a.type.name+"]"):null;b.cachedInjectors.set(a,c)}b=b.cachedInjectors.get(a)}else b=null;return b}},ng=function(a,b){a=Nd()+a;var c=r();return c[a]===te?Kf(c,a,b()):c[a]},og=function(a,b,c){return fka(r(),Nd(),a,b,c)},pg=function(a,b,c,d){return gka(r(),Nd(),a,b,c,d)},qg=function(a,b,c,d){return hka(r(),Nd(),2,a,b,c,d)},jka=function(a,b,c,d,e,f){var h=ika,k=Nd()+8,q=r();var u=Mf(q,k,a,b);u=Mf(q,k+2,c,d)||u;return Mf(q,k+4,e,f)||u?Kf(q,k+6,h(a,
b,c,d,e,f)):q[k+6]},kka=function(a,b){a=a[b];return a===te?void 0:a},fka=function(a,b,c,d,e,f){b+=c;return Lf(a,b,e)?Kf(a,b+1,f?d.call(f,e):d(e)):kka(a,b+1)},gka=function(a,b,c,d,e,f,h){b+=c;return Mf(a,b,e,f)?Kf(a,b+2,h?d.call(h,e,f):d(e,f)):kka(a,b+2)},hka=function(a,b,c,d,e,f,h,k){b+=c;c=Mf(a,b,e,f);return Lf(a,b+2,h)||c?Kf(a,b+3,k?d.call(k,e,f,h):d(e,f,h)):kka(a,b+3)},T=function(a,b){var c=Kd.tView;a+=25;if(c.firstCreatePass){a:{var d=c.pipeRegistry;if(d)for(var e=d.length-1;0<=e;e--){var f=d[e];
if(b===f.name){b=f;break a}}b=void 0}c.data[a]=b;if(b.onDestroy){var h;(null!=(h=c.destroyHooks)?h:c.destroyHooks=[]).push(a,b.onDestroy)}}else b=c.data[a];h=b.factory||(b.factory=ud(b.type));b=ed(z);try{var k=Oea(!1),q=h();Oea(k);var u=r();a>=c.data.length&&(c.data[a]=null,c.blueprint[a]=null);u[a]=q}finally{ed(b)}},V=function(a,b,c){a+=25;var d=r(),e=d[a];return d[1].data[a].pure?fka(d,Nd(),b,e.transform,c,e):e.transform(c)},rg=function(a,b,c,d){a+=25;var e=r(),f=e[a];return e[1].data[a].pure?gka(e,
Nd(),b,f.transform,c,d,f):f.transform(c,d)},lka=function(a,b,c,d){a+=25;var e=r(),f=e[a];return e[1].data[a].pure?hka(e,Nd(),b,f.transform,c,0,d,f):f.transform(c,0,d)},mka=function(){return this._results[Symbol.iterator]()},oka=function(){return nka(Ld(),r())},nka=function(a,b){return a.type&4?new sg(b,a,be(a,b)):null},qka=function(){return pka(Ld(),r())},rka=function(a){return a[8]||(a[8]=[])},pka=function(a,b){var c=b[a.index];if(Ed(c))var d=c;else d=[c,!0,!1,b,null,0,a,null,null,null,null],b[a.index]=
d,iga(b,d);ska(d,b,a,c);return new tg(d,a,b)},tka=function(a,b,c,d){if(!a[7]){if(c.type&8)d=Gd(d);else{d=b[11];var e=d.createComment("");c=Hd(c,b);b=d.parentNode(c);c=d.nextSibling(c);d.insertBefore(b,e,c,!1);d=e}a[7]=d}},uka=function(a,b,c,d){d=b[18].queries[d];if(null===d.matches){a=a.data;for(var e=c.matches,f=[],h=0;h<e.length;h+=2){var k=e[h];if(0>k)f.push(null);else{var q=f,u=q.push,x=b,y=a[k],E=e[h+1];k=c.metadata.read;-1===E?(k=y,x=k.type&11?be(k,x):k.type&4?nka(k,x):null):-2===E?x=k===ae?
be(y,x):k===vg?nka(y,x):k===wg?pka(y,x):void 0:x=Wd(x,x[1],E,y);u.call(q,x)}}d.matches=f}return d.matches},vka=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(null!==f)for(a=uka(a,b,e,c),c=0;c<f.length;c+=2){var h=f[c];if(0<h)d.push(a[c/2]);else{e=f[c+1];h=b[-h];for(var k=11;k<h.length;k++){var q=h[k];q[16]===q[3]&&vka(q[1],q,e,d)}if(null!==h[9])for(h=h[9],k=0;k<h.length;k++)q=h[k],vka(q[1],q,e,d)}}return d},yg=function(a){var b=r(),c=Kd.tView,d=Kd.currentQueryIndex;Kd.currentQueryIndex=
d+1;var e=c.queries.queries[d];return a.dirty&&4===(b[2]&4)===(2===(e.metadata.flags&2))?(null===e.matches?a.reset([]):(b=e.crossesNgTemplate?vka(c,b,d,[]):uka(c,b,e,d),a.reset(b,gfa),xg(a)),!0):!1},zg=function(a,b,c){var d=Kd.tView;d.firstCreatePass&&(wka(d,new xka(a,b,c),-1),2===(b&2)&&(d.staticViewQueries=!0));yka(d,b)},Ag=function(a,b,c,d){var e=Kd.tView;e.firstCreatePass&&(wka(e,new xka(b,c,d),Ld().index),b=e.contentQueries||(e.contentQueries=[]),a!==(b.length?b[b.length-1]:-1)&&b.push(e.queries.length-
1,a),2===(c&2)&&(e.staticContentQueries=!0));yka(e,c)},Bg=function(){return r()[18].queries[Kd.currentQueryIndex].queryList},yka=function(a,b){var c=r();b=new Cg(4===(b&4));var d=b.destroy,e=c[7]||(c[7]=[]);e.push(b);a.firstCreatePass&&(a.cleanup||(a.cleanup=[])).push(d,e.length-1);null===c[18]&&(c[18]=new zka);c[18].queries.push(new Aka(b))},wka=function(a,b,c){null===a.queries&&(a.queries=new Bka);a.queries.track(new Dg(b,c))},Cka=function(a,b){a=a.\u0275cmp;a.directiveDefs=Pda(b,!1);a.pipeDefs=
Pda([],!0)},Eg=function(a,b){return nka(a,b)},Dka=function(a){var b=Ld(),c=r();-1<b.componentOffset&&16!==(a&16)?(a=Id(b.index,c),a=new Fg(a,a)):a=b.type&47?new Fg(c[15],c):null;return a},Eka=function(a,b,c){a=a.previousIndex;if(null===a)return a;var d=0;c&&a<c.length&&(d=c[a]);return a+b+d},Gg=function(a){return"boolean"===typeof a?a:null!=a&&"false"!==a},Fka=function(a){var b=a[pd]||null;if(!b)return null;var c=new Hg(b);return{get selector(){return c.selector},get type(){return c.componentType},
get inputs(){return c.inputs},get outputs(){return c.outputs},get ngContentSelectors(){return c.ngContentSelectors},get isStandalone(){return b.standalone},get isSignal(){return b.signals}}},Gka=function(a,b){if(b&&!b.createEmbeddedView)throw Error("La`"+a+"`"+cd(b));},Hka=function(a,b,c){a=ye(a);b=Ig([a[1],a[2]],b);return Ig(b,c)},Ika=function(a,b,c){a=ye(a);b=Ig([a[3],a[4]],b);return Ig(b,c)},Jka=function(a,b,c){a=ye(a);b=Ig([a[5],a[6]],b);return Ig(b,c)},Kka=function(a,b){a=ye(a)[7];return Ig(a,
b)},Lka=function(a,b){a=ye(a);return Ig(a[10],b)},Mka=function(a,b){a=ye(a);return Ig(a[11],b)},Nka=function(a,b){a=ye(a)[12];return Ig(a,b)},Jg=function(a,b){a=ye(a);var c=a[13][b];if("undefined"===typeof c){if(12===b)return a[13][0];if(13===b)return a[13][1]}return c},Oka=function(a){if(!a[21])throw Error("Ma`"+a[0]);},Qka=function(a){a=ye(a);Oka(a);return(a[21][2]||[]).map(function(b){return"string"===typeof b?Pka(b):[Pka(b[0]),Pka(b[1])]})},Rka=function(a,b,c){a=ye(a);Oka(a);b=Ig([a[21][0],a[21][1]],
b)||[];return Ig(b,c)||[]},Ig=function(a,b){for(;-1<b;b--)if("undefined"!==typeof a[b])return a[b];throw Error("Na");},Pka=function(a){var b=l(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},Kg=function(){return new dd(2100,!1)},$ka=function(a,b,c,d){var e=Ska(a);b=Lg(c,b)||b;a=[];for(var f;b;)if(f=Tka.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);break}var h=e.getTimezoneOffset();d&&(h=Uka(d,h),e=Vka(e,d));var k="";a.forEach(function(q){a:if(Wka[q])var u=
Wka[q];else{switch(q){case "G":case "GG":case "GGG":u=Mg(3,1);break;case "GGGG":u=Mg(3,2);break;case "GGGGG":u=Mg(3,0);break;case "y":u=Ng(0,1,0,!1,!0);break;case "yy":u=Ng(0,2,0,!0,!0);break;case "yyy":u=Ng(0,3,0,!1,!0);break;case "yyyy":u=Ng(0,4,0,!1,!0);break;case "Y":u=Xka(1);break;case "YY":u=Xka(2,!0);break;case "YYY":u=Xka(3);break;case "YYYY":u=Xka(4);break;case "M":case "L":u=Ng(1,1,1);break;case "MM":case "LL":u=Ng(1,2,1);break;case "MMM":u=Mg(2,1);break;case "MMMM":u=Mg(2,2);break;case "MMMMM":u=
Mg(2,0);break;case "LLL":u=Mg(2,1,1);break;case "LLLL":u=Mg(2,2,1);break;case "LLLLL":u=Mg(2,0,1);break;case "w":u=Yka(1);break;case "ww":u=Yka(2);break;case "W":u=Yka(1,!0);break;case "d":u=Ng(2,1);break;case "dd":u=Ng(2,2);break;case "c":case "cc":u=Ng(7,1);break;case "ccc":u=Mg(1,1,1);break;case "cccc":u=Mg(1,2,1);break;case "ccccc":u=Mg(1,0,1);break;case "cccccc":u=Mg(1,3,1);break;case "E":case "EE":case "EEE":u=Mg(1,1);break;case "EEEE":u=Mg(1,2);break;case "EEEEE":u=Mg(1,0);break;case "EEEEEE":u=
Mg(1,3);break;case "a":case "aa":case "aaa":u=Mg(0,1);break;case "aaaa":u=Mg(0,2);break;case "aaaaa":u=Mg(0,0);break;case "b":case "bb":case "bbb":u=Mg(0,1,1,!0);break;case "bbbb":u=Mg(0,2,1,!0);break;case "bbbbb":u=Mg(0,0,1,!0);break;case "B":case "BB":case "BBB":u=Mg(0,1,0,!0);break;case "BBBB":u=Mg(0,2,0,!0);break;case "BBBBB":u=Mg(0,0,0,!0);break;case "h":u=Ng(3,1,-12);break;case "hh":u=Ng(3,2,-12);break;case "H":u=Ng(3,1);break;case "HH":u=Ng(3,2);break;case "m":u=Ng(4,1);break;case "mm":u=Ng(4,
2);break;case "s":u=Ng(5,1);break;case "ss":u=Ng(5,2);break;case "S":u=Ng(6,1);break;case "SS":u=Ng(6,2);break;case "SSS":u=Ng(6,3);break;case "Z":case "ZZ":case "ZZZ":u=Zka(0);break;case "ZZZZZ":u=Zka(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":u=Zka(1);break;case "OOOO":case "ZZZZ":case "zzzz":u=Zka(2);break;default:u=null;break a}Wka[q]=u}k+=u?u(e,c,h):"''"===q?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},ala=function(a,b,c){var d=new Date(0);d.setFullYear(a,
b,c);d.setHours(0,0,0);return d},Lg=function(a,b){var c=ye(a)[0];Og[c]=Og[c]||{};if(Og[c][b])return Og[c][b];var d="";switch(b){case "shortDate":d=Lka(a,0);break;case "mediumDate":d=Lka(a,1);break;case "longDate":d=Lka(a,2);break;case "fullDate":d=Lka(a,3);break;case "shortTime":d=Mka(a,0);break;case "mediumTime":d=Mka(a,1);break;case "longTime":d=Mka(a,2);break;case "fullTime":d=Mka(a,3);break;case "short":d=Lg(a,"shortTime");var e=Lg(a,"shortDate");d=bla(Nka(a,0),[d,e]);break;case "medium":d=Lg(a,
"mediumTime");e=Lg(a,"mediumDate");d=bla(Nka(a,1),[d,e]);break;case "long":d=Lg(a,"longTime");e=Lg(a,"longDate");d=bla(Nka(a,2),[d,e]);break;case "full":d=Lg(a,"fullTime"),e=Lg(a,"fullDate"),d=bla(Nka(a,3),[d,e])}d&&(Og[c][b]=d);return d},bla=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return null!=b&&d in b?b[d]:c}));return a},Pg=function(a,b,c,d,e){c=void 0===c?"-":c;var f="";if(0>a||e&&0>=a)e?a=-a+1:(a=-a,f=c);for(a=String(a);a.length<b;)a="0"+a;d&&(a=a.slice(a.length-b));return f+
a},Ng=function(a,b,c,d,e){c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!1:e;return function(f,h){f=cla(a,f);if(0<c||f>-c)f+=c;if(3===a)0===f&&-12===c&&(f=12);else if(6===a)return Pg(f,3).substring(0,b);h=Jg(h,5);return Pg(f,b,h,d,e)}},cla=function(a,b){switch(a){case 0:return b.getFullYear();case 1:return b.getMonth();case 2:return b.getDate();case 3:return b.getHours();case 4:return b.getMinutes();case 5:return b.getSeconds();case 6:return b.getMilliseconds();case 7:return b.getDay();default:throw Error("Oa`"+
a);}},Mg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;return function(e,f){return dla(e,f,a,b,c,d)}},dla=function(a,b,c,d,e,f){switch(c){case 2:return Jka(b,e,d)[a.getMonth()];case 1:return Ika(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=Qka(b),a=Rka(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var u=l(q);q=u.next().value;u=u.next().value;var x=h>=q.hours&&k>=q.minutes,y=h<u.hours||h===u.hours&&k<u.minutes;if(q.hours<u.hours){if(x&&y)return!0}else if(x||
y)return!0}else if(q.hours===h&&q.minutes===k)return!0;return!1}),-1!==c)?a[c]:Hka(b,e,d)[12>h?0:1];case 3:return Kka(b,d)[0>=a.getFullYear()?0:1];default:throw Error("Pa`"+c);}},Zka=function(a){return function(b,c,d){b=-1*d;c=Jg(c,5);var e=0<b?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(0<=b?"+":"")+Pg(e,2,c)+Pg(Math.abs(b%60),2,c);case 1:return"GMT"+(0<=b?"+":"")+Pg(e,1,c);case 2:return"GMT"+(0<=b?"+":"")+Pg(e,2,c)+":"+Pg(Math.abs(b%60),2,c);case 3:return 0===d?"Z":(0<=b?"+":"")+Pg(e,
2,c)+":"+Pg(Math.abs(b%60),2,c);default:throw Error("Qa`"+a);}}},ela=function(a){return ala(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))},Yka=function(a,b){b=void 0===b?!1:b;return function(c,d){if(b){var e=(new Date(c.getFullYear(),c.getMonth(),1)).getDay()-1;c=c.getDate();e=1+Math.floor((c+e)/7)}else{e=ela(c);c=e.getFullYear();var f=ala(c,0,1).getDay();c=ala(c,0,1+(4>=f?4:11)-f);e=1+Math.round((e.getTime()-c.getTime())/6048E5)}return Pg(e,a,Jg(d,5))}},Xka=function(a,b){b=void 0===b?
!1:b;return function(c,d){c=ela(c).getFullYear();return Pg(c,a,Jg(d,5),b)}},Uka=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},Vka=function(a,b){var c=a.getTimezoneOffset();b=Uka(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},Ska=function(a){if(a instanceof Date&&!isNaN(a.valueOf()))return a;if("number"===typeof a&&!isNaN(a))return new Date(a);if("string"===typeof a){a=a.trim();if(/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(a)){var b=
l(a.split("-").map(function(d){return+d}));a=b.next().value;var c=b.next().value;c=void 0===c?1:c;b=b.next().value;return ala(a,c-1,void 0===b?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(fla))return gla(b)}b=new Date(a);if(!(b instanceof Date)||isNaN(b.valueOf()))throw Error("Ra`"+a);return b},gla=function(a){var b=new Date(0),c=0,d=0,e=a[8]?b.setUTCFullYear:b.setFullYear,f=a[8]?b.setUTCHours:b.setHours;a[9]&&(c=Number(a[9]+a[10]),d=Number(a[9]+a[11]));e.call(b,Number(a[1]),
Number(a[2])-1,Number(a[3]));f.call(b,Number(a[4]||0)-c,Number(a[5]||0)-d,Number(a[6]||0),Math.floor(1E3*parseFloat("0."+(a[7]||0))));return b},hla=function(a,b){a=a.key;b=b.key;if(a===b)return 0;if(void 0===a)return 1;if(void 0===b)return-1;if(null===a)return 1;if(null===b)return-1;if("string"==typeof a&&"string"==typeof b)return a<b?-1:1;if("number"==typeof a&&"number"==typeof b)return a-b;if("boolean"==typeof a&&"boolean"==typeof b)return a<b?-1:1;a=String(a);b=String(b);return a==b?0:a<b?-1:1},
nla=function(a,b,c,d){var e=void 0===e?!1:e;var f="",h=!1;if(isFinite(a)){h=ila(a);e&&(h=jla(h));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var q=d.match(kla);if(null===q)throw Error("Sa`"+d);d=q[1];var u=q[3];q=q[5];null!=d&&(f=lla(d));null!=u&&(e=lla(u));null!=q?k=lla(q):null!=u&&e>k&&(k=e)}mla(h,e,k);d=h.digits;q=h.integerLen;e=h.exponent;k=[];for(h=d.every(function(x){return!x});q<f;q++)d.unshift(0);for(;0>q;q++)d.unshift(0);0<q?k=d.splice(q,d.length):(k=d,d=[0]);f=[];for(d.length>=b.lgSize&&
f.unshift(d.splice(-b.lgSize,d.length).join(""));d.length>b.gSize;)f.unshift(d.splice(-b.gSize,d.length).join(""));d.length&&f.unshift(d.join(""));f=f.join(Jg(c,1));k.length&&(f+=Jg(c,0)+k.join(""));e&&(f+=Jg(c,6)+"+"+e)}else f=Jg(c,9);return f=0>a&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},jla=function(a){if(0===a.digits[0])return a;var b=a.digits.length-a.integerLen;a.exponent?a.exponent+=2:(0===b?a.digits.push(0,0):1===b&&a.digits.push(0),a.integerLen+=2);return a},ila=function(a){a=Math.abs(a)+
"";var b=0,c,d,e,f;-1<(c=a.indexOf("."))&&(a=a.replace(".",""));0<(d=a.search(/e/i))?(0>c&&(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):0>c&&(c=a.length);for(d=0;"0"===a.charAt(d);d++);if(d===(f=a.length)){var h=[0];c=1}else{for(f--;"0"===a.charAt(f);)f--;c-=d;h=[];for(e=0;d<=f;d++,e++)h[e]=Number(a.charAt(d))}22<c&&(h=h.splice(0,21),b=c-1,c=1);return{digits:h,exponent:b,integerLen:c}},mla=function(a,b,c){if(b>c)throw Error("Ta`"+b+"`"+c);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,
e),c);var f=c+a.integerLen,h=d[f];if(0<f){d.splice(Math.max(a.integerLen,f));for(var k=f;k<d.length;k++)d[k]=0}else for(e=Math.max(0,e),a.integerLen=1,d.length=Math.max(1,f=c+1),d[0]=0,k=1;k<f;k++)d[k]=0;if(5<=h)if(0>f-1){for(h=0;h>f;h--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);var q=0!==c,u=b+a.integerLen;if(b=d.reduceRight(function(x,y,E,H){y+=x;H[E]=10>y?y:y-10;q&&(0===H[E]&&E>=u?H.pop():q=!1);return 10<=y?1:0},0))d.unshift(b),a.integerLen++},
lla=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Ua`"+a);return b},ola=function(a,b){if(0==a.length)return b;if(0==b.length)return a;var c=0;a.endsWith("/")&&c++;b.startsWith("/")&&c++;return 2==c?a+b.substring(1):1==c?a+b:a+"/"+b},pla=function(a){var b=a.match(/#|\?|$/);b=b&&b.index||a.length;return a.slice(0,b-("/"===a[b-1]?1:0))+a.slice(b)},Qg=function(a){return a&&"?"!==a[0]?"?"+a:a},qla=function(a){return RegExp("^(https?:)?//").test(a)?(a=l(a.split(/\/\/[^\/]+/)),a.next(),a.next().value):
a},rla=function(a){return null==a||("string"===typeof a||Array.isArray(a))&&0===a.length},sla=function(a){return function(b){if(rla(b.value)||rla(a))return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:null}},tla=function(a){return rla(a.value)?{required:!0}:null},ula=function(a){return function(b){var c=b.value;return null!=c&&"number"===typeof c.length&&b.value.length>a?{maxlength:{requiredLength:a,actualLength:b.value.length}}:null}},wla=function(a){if(!a)return vla;
if("string"===typeof a){var b="";"^"!==a.charAt(0)&&(b+="^");b+=a;"$"!==a.charAt(a.length-1)&&(b+="$");var c=new RegExp(b)}else b=a.toString(),c=a;return function(d){if(rla(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},vla=function(){return null},xla=function(a){return null!=a},yla=function(a){return xe(a)?(0,B.from)(a):a},zla=function(a){var b={};a.forEach(function(c){b=null!=c?Object.assign({},b,c):b});return 0===Object.keys(b).length?null:b},
Ala=function(a,b){return b.map(function(c){return c(a)})},Bla=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Cla=function(a){if(!a)return null;var b=a.filter(xla);return 0==b.length?null:function(c){return zla(Ala(c,b))}},Dla=function(a){return null!=a?Cla(Bla(a)):null},Ela=function(a){if(!a)return null;var b=a.filter(xla);return 0==b.length?null:function(c){c=Ala(c,b).map(yla);return(0,B.forkJoin)(c).pipe(A(zla))}},Fla=function(a){return null!=a?Ela(Bla(a)):
null},Gla=function(a,b){return null===a?[b]:Array.isArray(a)?[].concat(p(a),[b]):[a,b]},Hla=function(a,b){return[].concat(p(b.path),[a])},Rg=function(a,b,c){c=void 0===c?"whenDisabledForLegacyCode":c;Ila(a,b);b.valueAccessor.writeValue(a.value);if(a.disabled||"always"===c){var d,e;null==(e=(d=b.valueAccessor).setDisabledState)||e.call(d,a.disabled)}Jla(a,b);Kla(a,b);Lla(a,b);Mla(a,b)},Ola=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));
Nla(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Pla=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},Mla=function(a,b){if(b.valueAccessor.setDisabledState){var c=function(d){b.valueAccessor.setDisabledState(d)};a._onDisabledChange.push(c);b._registerOnDestroy(function(){a._unregisterOnDisabledChange(c)})}},Ila=function(a,b){var c=a._rawValidators;null!==b.validator?Qla(a,Gla(c,b.validator)):"function"===typeof c&&
Qla(a,[c]);c=a._rawAsyncValidators;null!==b.asyncValidator?Rla(a,Gla(c,b.asyncValidator)):"function"===typeof c&&Rla(a,[c]);c=function(){return Sg(a)};Pla(b._rawValidators,c);Pla(b._rawAsyncValidators,c)},Nla=function(a,b){var c=!1;if(null!==a){if(null!==b.validator){var d=a._rawValidators;if(Array.isArray(d)&&0<d.length){var e=d.filter(function(f){return f!==b.validator});e.length!==d.length&&(c=!0,a._assignValidators(e))}}null!==b.asyncValidator&&(d=a._rawAsyncValidators,Array.isArray(d)&&0<d.length&&
(e=d.filter(function(f){return f!==b.asyncValidator}),e.length!==d.length&&(c=!0,a._assignAsyncValidators(e))))}a=function(){};Pla(b._rawValidators,a);Pla(b._rawAsyncValidators,a);return c},Jla=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;"change"===a.updateOn&&Sla(a,b)})},Lla=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;"blur"===a.updateOn&&a._pendingChange&&Sla(a,b);"submit"!==a.updateOn&&Tla(a)})},
Sla=function(a,b){a._pendingDirty&&Ula(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},Kla=function(a,b){var c=function(d,e){b.valueAccessor.writeValue(d);e&&b.viewToModelUpdate(d)};a.registerOnChange(c);b._registerOnDestroy(function(){a._unregisterOnChange(c)})},Vla=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.isFirstChange()?!0:!Object.is(b,a.currentValue)},Wla=function(a,b){a._syncPendingControls();b.forEach(function(c){var d=
c.control;"submit"===d.updateOn&&d._pendingChange&&(c.viewToModelUpdate(d._pendingValue),d._pendingChange=!1)})},Xla=function(a){if(!a)return null;Array.isArray(a);var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===Tg?b=e:Object.getPrototypeOf(e.constructor)===Ug?c=e:d=e});return d?d:c?c:b?b:null},Yla=function(a){return(Vg(a)?a.validators:a)||null},Vg=function(a){return null!=a&&!Array.isArray(a)&&"object"===typeof a},Zla=function(a,b){a._forEachChild(function(c,d){if(void 0===b[d])throw new dd(1002,
"");})},$la=function(a){return"object"===typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a},cma=function(){if(ama)return ama;if("object"!==typeof document||!document)return ama=new Set(bma);var a=document.createElement("input");return ama=new Set(bma.filter(function(b){a.setAttribute("type",b);return a.type===b}))},dma=function(){if(null==Wg&&"undefined"!==typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Wg=!0}}))}finally{Wg=
Wg||!1}return Wg},Xg=function(a){return dma()?a:!!a.capture},ema=function(){if(null==Yg){if("object"!==typeof document||!document||"function"!==typeof Element||!Element)return Yg=!1;if("scrollBehavior"in document.documentElement.style)Yg=!0;else{var a=Element.prototype.scrollTo;Yg=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return Yg},gma=function(){if("object"!==typeof document||!document)return 0;if(null==fma){var a=document.createElement("div"),b=a.style;a.dir="rtl";b.width="1px";b.overflow=
"auto";b.visibility="hidden";b.pointerEvents="none";b.position="absolute";b=document.createElement("div");var c=b.style;c.width="2px";c.height="1px";a.appendChild(b);document.body.appendChild(a);fma=0;0===a.scrollLeft&&(a.scrollLeft=1,fma=0===a.scrollLeft?1:2);a.remove()}return fma},ima=function(a){if(null==hma){var b="undefined"!==typeof document?document.head:null;hma=!(!b||!b.createShadowRoot&&!b.attachShadow)}return hma&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&
a instanceof ShadowRoot)?a:null},Zg=function(){for(var a="undefined"!==typeof document&&document?document.activeElement:null;a&&a.shadowRoot;){var b=a.shadowRoot.activeElement;if(b===a)break;else a=b}return a},$g=function(a){return a.composedPath?a.composedPath()[0]:a.target},jma=function(){return"undefined"!==typeof __karma__&&!!__karma__||"undefined"!==typeof jasmine&&!!jasmine||"undefined"!==typeof jest&&!!jest||"undefined"!==typeof Mocha&&!!Mocha},kma=function(a){if(!a.hasAttribute("tabindex")||
void 0===a.tabIndex)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},lma=function(a){if(!kma(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},mma=function(a){return Array.isArray(a)?a:[a]},ah=function(a){return null!=a&&"false"!==""+a},bh=function(a){return null==a?"":"string"===typeof a?a:a+"px"},ch=function(a){return a instanceof ae?a.nativeElement:a},dh=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?void 0===b?0:b:Number(a)},
nma=function(a){var b=void 0===b?/\s+/:b;var c=[];if(null!=a)for(a=Array.isArray(a)?a:(""+a).split(b),a=l(a),b=a.next();!b.done;b=a.next())(b=(""+b.value).trim())&&c.push(b);return c},oma=function(a){return 0===a.buttons||0===a.offsetX&&0===a.offsetY},pma=function(a){a=a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0];return!!a&&-1===a.identifier&&(null==a.radiusX||1===a.radiusX)&&(null==a.radiusY||1===a.radiusY)},eh=function(a){var b=xd.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):
a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},rma=function(a,b){return b.map(function(c){return c.replace(qma,a)})},sma=function(a){var b=new Map;0<a.length&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");if(-1==d)var e=[decodeURIComponent(c),""];else e=c.slice(0,d),e=decodeURIComponent(e),c=c.slice(d+1),c=decodeURIComponent(c),e=[e,c];c=l(e);e=c.next().value;c=c.next().value;d=b.get(e)||[];d.push(c);b.set(e,d)});return b},vma=function(a){return encodeURIComponent(a).replace(tma,
function(b,c){var d;return null!=(d=uma[c])?d:b})},wma=function(a){return""+a},xma=function(a){return"undefined"!==typeof ArrayBuffer&&a instanceof ArrayBuffer},yma=function(a){return"undefined"!==typeof Blob&&a instanceof Blob},zma=function(a){return"undefined"!==typeof FormData&&a instanceof FormData},Ama=function(a,b){return{body:b,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}},
Bma=function(a,b){return b(a)},Cma=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,d)}})}},Dma=function(a,b,c){return function(d,e){return c.runInContext(function(){return b(d,function(f){return a(f,e)})})}},Hma=function(a,b){var c=a.url.toLowerCase();if(!jd(Ema)||"GET"===a.method||"HEAD"===a.method||c.startsWith("http://")||c.startsWith("https://"))return b(a);c=jd(Fma).getToken();var d=jd(Gma);null==c||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,
c)}));return b(a)},Ima=function(a){return-1===a.toString().indexOf("`")},Kma=function(a){a:if(Jma){try{var b=new URL(a)}catch(c){b="https:";break a}b=b.protocol}else b:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break b}b=b.protocol;b=":"===b||""===b?"https:":b}if("javascript:"!==b)return a},Lma=function(a){return a instanceof Dc?Ec(a):Kma(a)},hh=function(a,b){b=void 0===b?{}:b;if(a instanceof fh)return a;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,
"&quot;").replace(/'/g,"&apos;");b.preserveSpaces&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));b.preserveNewlines&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));b.preserveTabs&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));return gh(a)},jh=function(a){return gh(a.map(function(b){return ih(hh(b))}).join(""))},Oma=function(a){if(!Mma.test(a))throw Error("X");if(-1!==Nma.indexOf(a.toUpperCase()))throw Error("X");},kh=function(a,b,c){Oma(a);var d="<"+a;b&&(d+=Pma(b));Array.isArray(c)||(c=
void 0===c?[]:[c]);-1!==Qma.indexOf(a.toUpperCase())?d+=">":(b=jh(c.map(function(e){return e instanceof fh?e:hh(String(e))})),d+=">"+b.toString()+"</"+a+">");return gh(d)},Pma=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!Mma.test(e))throw Error("X");if(void 0!==f&&null!==f){if(/^on/i.test(e))throw Error("X");-1!==Rma.indexOf(e.toLowerCase())&&(f=f instanceof Dc?f.toString():Kma(String(f))||"about:invalid#zClosurez");e=e+'="'+hh(String(f))+'"';b+=" "+e}}return b},
mh=function(a){var b=xd.apply(1,arguments);if(0===b.length)return lh(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return lh(c)},nh=function(a){return new Sma(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},ph=function(a){var b=void 0===b?Tma:b;a:{b=void 0===b?Tma:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Sma&&d.isValid(a)){a=oh(a);break a}}a=void 0}return a||Hc},Wma=function(a,b){var c=[];"string"==typeof a?a.split(/\s*,\s*/).forEach(function(d){a:{if(":"==
d[0]&&(d=Uma(d,b),"function"==typeof d)){c.push(d);d=void 0;break a}var e=d.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==e||4>e.length)b.push(new dd(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(Vma(d,e));"<"!=f[0]||"*"==d&&"*"==e||c.push(Vma(e,d));d=void 0}}return d}):c.push(a);return c},Uma=function(a,b){switch(a){case ":enter":return"void => *";case ":leave":return"* => void";case ":increment":return function(c,d){return parseFloat(d)>parseFloat(c)};case ":decrement":return function(c,
d){return parseFloat(d)<parseFloat(c)};default:return b.push(new dd(3016,!1)),"* => *"}},Vma=function(a,b){var c=Xma.has(a)||Yma.has(a),d=Xma.has(b)||Yma.has(b);return function(e,f){var h="*"==a||a==e,k="*"==b||b==f;!h&&c&&"boolean"===typeof e&&(h=e?Xma.has(a):Yma.has(a));!k&&d&&"boolean"===typeof f&&(k=f?Xma.has(b):Yma.has(b));return h&&k}},qh=function(a,b){return{type:7,name:a,definitions:b,options:{}}},rh=function(a,b){return{type:4,styles:void 0===b?null:b,timings:a}},Zma=function(a){return{type:3,
steps:a,options:null}},sh=function(a){return{type:6,styles:a,offset:null}},th=function(a,b){return{type:0,name:a,styles:b,options:void 0}},uh=function(a,b,c){return{type:1,expr:a,animation:b,options:void 0===c?null:c}},vh=function(){return{type:9,options:null}},wh=function(a,b){var c={optional:!0};return{type:11,selector:a,animation:b,options:void 0===c?null:c}},yh=function(a){switch(a.length){case 0:return new xh;case 1:return a[0];default:return new $ma(a)}},cna=function(a,b,c){b=void 0===b?new Map:
b;c=void 0===c?new Map:c;var d=[],e=[],f=-1,h=null;a.forEach(function(k){var q=k.get("offset"),u=q==f,x=u&&h||new Map;k.forEach(function(y,E){var H=E;if("offset"!==E)switch(H=ana(H),y){case "!":y=b.get(E);break;case "*":y=c.get(E);break;default:y=bna(H,y,d)}x.set(H,y)});u||e.push(x);h=x;f=q});if(d.length)throw new dd(3502,!1);return e},ena=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&dna(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&dna(c,"done",a))});
break;case "destroy":a.onDestroy(function(){return d(c&&dna(c,"destroy",a))})}},dna=function(a,b,c){var d=c.totalTime;b=fna(a.element,a.triggerName,a.fromState,a.toState,b||a.phaseName,void 0==d?a.totalTime:d,c.disabled?!0:!1);a=a._data;null!=a&&(b._data=a);return b},fna=function(a,b,c,d,e,f,h){return{element:a,triggerName:b,fromState:c,toState:d,phaseName:void 0===e?"":e,totalTime:void 0===f?0:f,disabled:!!h}},zh=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},gna=function(a){var b=a.indexOf(":"),
c=a.substring(1,b);a=a.slice(b+1);return[c,a]},ina=function(a){a=a.parentNode||a.host||null;return a===hna?null:a},jna=function(a,b){for(;b;){if(b===a)return!0;b=ina(b)}return!1},kna=function(a,b,c){return c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[]},Ah=function(a){if("number"==typeof a)return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||2>a.length?0:lna(parseFloat(a[1]),a[2])},lna=function(a,b){switch(b){case "s":return 1E3*a;default:return a}},mna=function(a,b,c){if(a.hasOwnProperty("duration"))b=
a;else a:{var d=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,e=0,f="";if("string"===typeof a){d=a.match(d);if(null===d){b.push(new dd(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=lna(parseFloat(d[1]),d[2]);var h=d[3];null!=h&&(e=lna(parseFloat(h),d[4]));(d=d[5])&&(f=d)}c||(c=!1,d=b.length,0>a&&(b.push(new dd(3100,!1)),c=!0),0>e&&(b.push(new dd(3101,!1)),c=!0),c&&b.splice(d,0,new dd(3E3,!1)));b={duration:a,delay:e,easing:f}}return b},Bh=function(a){var b=void 0===
b?{}:b;Object.keys(a).forEach(function(c){b[c]=a[c]});return b},nna=function(a){var b=new Map;Object.keys(a).forEach(function(c){b.set(c,a[c])});return b},ona=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return nna(b)}):[]},Ch=function(a,b,c){b=void 0===b?new Map:b;if(c){c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b.set(d,e)}}a=l(a);for(c=a.next();!c.done;c=a.next())d=l(c.value),c=d.next().value,d=d.next().value,b.set(c,d);
return b},Dh=function(a,b,c){b.forEach(function(d,e){var f=ana(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d})},Eh=function(a,b){b.forEach(function(c,d){d=ana(d);a.style[d]=""})},Fh=function(a){return Array.isArray(a)?1==a.length?a[0]:{type:2,steps:a,options:null}:a},qna=function(a,b,c){var d=b.params||{};a=pna(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new dd(3001,!1))})},pna=function(a){var b=[];if("string"===typeof a){for(var c;c=rna.exec(a);)b.push(c[1]);rna.lastIndex=
0}return b},Gh=function(a,b,c){var d=a.toString(),e=d.replace(rna,function(f,h){h=b[h];null==h&&(c.push(new dd(3003,!1)),h="");return h.toString()});return e==d?a:e},sna=function(a){for(var b=[],c=a.next();!c.done;)b.push(c.value),c=a.next();return b},ana=function(a){return a.replace(tna,function(){return xd.apply(0,arguments)[1].toUpperCase()})},una=function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(h,k){d.has(k)||e.push(k);d.set(k,h)});if(e.length){c={};for(var f=1;f<b.length;c=
{kf$jscomp$2:c.kf$jscomp$2},f++)c.kf$jscomp$2=b[f],e.forEach(function(h){return function(k){var q=h.kf$jscomp$2,u=q.set;var x=window.getComputedStyle(a)[k];return u.call(q,k,x)}}(c))}}return b},Hh=function(a,b,c){switch(b.type){case 7:return a.visitTrigger(b,c);case 0:return a.visitState(b,c);case 1:return a.visitTransition(b,c);case 2:return a.visitSequence(b,c);case 3:return a.visitGroup(b,c);case 4:return a.visitAnimate(b,c);case 5:return a.visitKeyframes(b,c);case 6:return a.visitStyle(b,c);case 8:return a.visitReference(b,
c);case 9:return a.visitAnimateChild(b,c);case 10:return a.visitAnimateRef(b,c);case 11:return a.visitQuery(b,c);case 12:return a.visitStagger(b,c);default:throw new dd(3004,!1);}},wna=function(a){var b=a.split(/\s*,\s*/).find(function(c){return":self"==c})?!0:!1;b&&(a=a.replace(vna,""));a=a.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(c){return".ng-trigger-"+c.slice(1)}).replace(/:animating/g,".ng-animating");return[a,b]},xna=function(a){if("string"==typeof a)return null;var b=null;Array.isArray(a)?
a.forEach(function(c){c instanceof Map&&c.has("offset")&&(b=parseFloat(c.get("offset")),c.delete("offset"))}):a instanceof Map&&a.has("offset")&&(b=parseFloat(a.get("offset")),a.delete("offset"));return b},yna=function(a,b){if(a.hasOwnProperty("duration"))return a;if("number"==typeof a)return{duration:mna(a,b).duration,delay:0,easing:""};if(a.split(/\s+/).some(function(c){return"{"==c.charAt(0)&&"{"==c.charAt(1)}))return b={duration:0,delay:0,easing:"",dynamic:!0},b.strValue=a,b;a=mna(a,b);return{duration:a.duration,
delay:a.delay,easing:a.easing}},Ih=function(a){if(a){if(a=Bh(a),a.params){var b=a;var c=(c=a.params)?Bh(c):null;b.params=c}}else a={};return a},zna=function(a,b,c,d,e,f,h,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,delay:f,totalTime:e+f,easing:void 0===h?null:h,subTimeline:void 0===k?!1:k}},Bna=function(a,b,c,d,e,f,h,k,q,u){f=void 0===f?new Map:f;h=void 0===h?new Map:h;u=void 0===u?[]:u;return(new Ana).buildKeyframes(a,b,c,d,e,f,h,k,q,u)},Cna=function(a){var b=
Math.pow(10,2);return Math.round(a*b)/b},Dna=function(a,b){var c=new Map,d;a.forEach(function(e){if("*"===e){d=d||b.keys();e=l(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else Ch(e,c)});return c},Ena=function(a,b,c,d,e,f,h,k,q,u,x,y,E){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,fromStyles:f,toState:d,toStyles:h,timelines:k,queriedElements:q,preStyleProps:u,postStyleProps:x,totalTime:y,errors:E}},Fna=function(a,b,c,d,e){return a.some(function(f){return f(b,
c,d,e)})},Gna=function(a,b){b=Bh(b);for(var c in a)a.hasOwnProperty(c)&&null!=a[c]&&(b[c]=a[c]);return b},Hna=function(a,b){return new Jh(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},Ina=function(a,b,c){a.has(b)?a.has(c)||a.set(c,a.get(b)):a.has(c)&&a.set(b,a.get(c))},Jna=function(a){return a&&1===a.nodeType},Kna=function(a,b){var c=a.style.display;a.style.display=null!=b?b:"none";return c},Mna=function(a,b,c,d,e){var f=
[];c.forEach(function(q){return f.push(Kna(q))});var h=[];d.forEach(function(q,u){var x=new Map;q.forEach(function(y){var E=b.computeStyle(u,y,e);x.set(y,E);E&&0!=E.length||(u.__ng_removed=Lna,h.push(u))});a.set(u,x)});var k=0;c.forEach(function(q){return Kna(q,f[k++])});return h},Nna=function(a,b){function c(h){if(!h)return 1;var k=f.get(h);if(k)return k;var q=h.parentNode;d.has(q)?k=q:e.has(q)?k=1:k=c(q);f.set(h,k);return k}var d=new Map;a.forEach(function(h){return d.set(h,[])});if(0==b.length)return d;
var e=new Set(b),f=new Map;b.forEach(function(h){var k=c(h);1!==k&&d.get(k).push(h)});return d},Kh=function(a,b){var c;null==(c=a.classList)||c.add(b)},Lh=function(a,b){var c;null==(c=a.classList)||c.remove(b)},Ona=function(a,b,c){yh(c).onDone(function(){return Mh(a,b)})},Qna=function(a){var b=[];Pna(a,b);return b},Pna=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof $ma?Pna(d.players,b):b.push(d)}},Rna=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;
for(d=0;d<c.length;d++){var e=c[d];if(!b.hasOwnProperty(e)||a[e]!==b[e])return!1}return!0},Sna=function(a,b,c){var d=c.get(a);if(!d)return!1;var e=b.get(a);e?d.forEach(function(f){return e.add(f)}):b.set(a,d);c.delete(a);return!0},Vna=function(a,b){var c=null,d=null;Array.isArray(b)&&b.length?(c=Tna(b[0]),1<b.length&&(d=Tna(b[b.length-1]))):b instanceof Map&&(c=Tna(b));return c||d?new Una(a,c,d):null},Tna=function(a){var b=null;a.forEach(function(c,d){if("display"===d||"position"===d)b=b||new Map,
b.set(d,c)});return b},Wna=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},Xna=function(a){var b=a.indexOf("."),c=a.substring(0,b);a=a.slice(b+1);return[c,a]},Yna=function(a){return{matches:"all"===a||""===a,media:a,addListener:function(){},removeListener:function(){}}},Zna=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,c){return b.concat(c)}).map(function(b){return b.trim()})},$na=
function(){return null},boa=function(a,b,c){var d=aoa(a,b);d.some(function(e){return e.trim()==c.trim()})||(d.push(c.trim()),a.setAttribute(b,d.join(" ")))},Nh=function(a,b,c){var d=aoa(a,b).filter(function(e){return e!=c.trim()});d.length?a.setAttribute(b,d.join(" ")):a.removeAttribute(b)},aoa=function(a,b){return(a.getAttribute(b)||"").match(/\S+/g)||[]},coa=function(a,b){return"string"===typeof a?(b||"")+"/"+a:a},eoa=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+doa++)},foa=function(){return jd(Oh)},
goa=function(a,b){return b.some(function(c){var d=a.top>c.bottom,e=a.right<c.left,f=a.left>c.right;return a.bottom<c.top||d||e||f})},hoa=function(a,b){return b.some(function(c){var d=a.bottom>c.bottom,e=a.left<c.left,f=a.right>c.right;return a.top<c.top||d||e||f})},ioa=function(a){return a&&"function"===typeof a.connect&&!(a instanceof B.ConnectableObservable)},Ph=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},koa=function(a){if("number"!==typeof a&&null!=a){var b=l(a.split(joa));
a=b.next().value;return(b=b.next().value)&&"px"!==b?null:parseFloat(a)}return a||null},loa=function(a){return{top:Math.floor(a.top),right:Math.floor(a.right),bottom:Math.floor(a.bottom),left:Math.floor(a.left),width:Math.floor(a.width),height:Math.floor(a.height)}},Rh=function(a,b){var c=function(){var d=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};W(c,a);Qh.Object.defineProperties(c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},
set:function(d){d=d||this.defaultColor;d!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),d&&this._elementRef.nativeElement.classList.add("mat-"+d),this._color=d)}}});return c},Sh=function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._disableRipple=!1;return c};W(b,a);Qh.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=
ah(c)}}});return b},Th=function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._disabled=!1;return c};W(b,a);Qh.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=ah(c)}}});return b},Uh=function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c.errorState=!1;return c};W(b,a);b.prototype.updateErrorState=function(){var c=(this.errorStateMatcher||
this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);c!==this.errorState&&(this.errorState=c,this.stateChanges.next())};return b},moa=function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._isInitialized=!1;c._pendingSubscribers=[];c.initialized=new B.Observable(function(d){c._isInitialized?c._notifySubscriber(d):c._pendingSubscribers.push(d)});return c};W(b,a);b.prototype._markInitialized=
function(){this._isInitialized=!0;this._pendingSubscribers.forEach(this._notifySubscriber);this._pendingSubscribers=null};b.prototype._notifySubscriber=function(c){c.next();c.complete()};return b},Vh=function(a,b){b=void 0===b?0:b;var c=function(){var d=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;d._tabIndex=b;d.defaultTabIndex=b;return d};W(c,a);Qh.Object.defineProperties(c.prototype,{tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:this._tabIndex},set:function(d){this._tabIndex=
null!=d?dh(d):this.defaultTabIndex}}});return c},noa=function(){return jd(Wh)},ooa=function(a,b){var c=void 0===c?"mat":c;a.changes.pipe(yf(a)).subscribe(function(d){d=d.length;b.nativeElement.classList.toggle(c+"-2-line",!1);b.nativeElement.classList.toggle(c+"-3-line",!1);b.nativeElement.classList.toggle(c+"-multi-line",!1);2===d||3===d?b.nativeElement.classList.toggle(c+"-"+d+"-line",!0):3<d&&b.nativeElement.classList.toggle(c+"-multi-line",!0)})},poa=function(a,b,c){a=Math.max(Math.abs(a-c.left),
Math.abs(a-c.right));b=Math.max(Math.abs(b-c.top),Math.abs(b-c.bottom));return Math.sqrt(a*a+b*b)},qoa=function(a){a&1&&(D(0,"tr",3)(1,"td",4),Q(2),F()());a&2&&(a=M(),w(1),Wf("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Nf("colspan",a.numCols),w(1),S(" ",a.label," "))},roa=function(a){a&1&&(D(0,"td",4),Q(1),F());a&2&&(a=M(2),Wf("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Nf("colspan",a._firstRowOffset),w(1),S(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:
""," "))},soa=function(a,b){if(a&1){var c=r();D(0,"td",8)(1,"button",9);L("click",function(f){var h=t(c).$implicit,k=M(2);return v(k._cellClicked(h,f))})("focus",function(f){var h=t(c).$implicit,k=M(2);return v(k._emitActiveDateChange(h,f))});D(2,"span",10);Q(3);F();G(4,"span",11);F()()}if(a&2){a=b.$implicit;b=b.index;var d=M().index,e=M();Wf("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);Nf("data-mat-row",d)("data-mat-col",b);w(1);Xf("mat-calendar-body-disabled",
!a.enabled)("mat-calendar-body-active",e._isActiveCell(d,b))("mat-calendar-body-range-start",e._isRangeStart(a.compareValue))("mat-calendar-body-range-end",e._isRangeEnd(a.compareValue))("mat-calendar-body-in-range",e._isInRange(a.compareValue))("mat-calendar-body-comparison-bridge-start",e._isComparisonBridgeStart(a.compareValue,d,b))("mat-calendar-body-comparison-bridge-end",e._isComparisonBridgeEnd(a.compareValue,d,b))("mat-calendar-body-comparison-start",e._isComparisonStart(a.compareValue))("mat-calendar-body-comparison-end",
e._isComparisonEnd(a.compareValue))("mat-calendar-body-in-comparison-range",e._isInComparisonRange(a.compareValue))("mat-calendar-body-preview-start",e._isPreviewStart(a.compareValue))("mat-calendar-body-preview-end",e._isPreviewEnd(a.compareValue))("mat-calendar-body-in-preview",e._isInPreview(a.compareValue));C("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);Nf("aria-label",a.ariaLabel)("aria-disabled",!a.enabled||null)("aria-pressed",e._isSelected(a.compareValue))("aria-current",
e.todayValue===a.compareValue?"date":null)("aria-describedby",e._getDescribedby(a.compareValue));w(1);Xf("mat-calendar-body-selected",e._isSelected(a.compareValue))("mat-calendar-body-comparison-identical",e._isComparisonIdentical(a.compareValue))("mat-calendar-body-today",e.todayValue===a.compareValue);w(1);S(" ",a.displayValue," ")}},toa=function(a,b){a&1&&(D(0,"tr",5),P(1,roa,2,6,"td",6),P(2,soa,5,48,"td",7),F());if(a&2){a=b.$implicit;b=b.index;var c=M();w(1);C("ngIf",0===b&&c._firstRowOffset);
w(1);C("ngForOf",a)}},uoa=function(a){return"TD"===(null==a?void 0:a.nodeName)},voa=function(a){if(uoa(a))var b=a;else if(uoa(a.parentNode))b=a.parentNode;else{var c;uoa(null==(c=a.parentNode)?void 0:c.parentNode)&&(b=a.parentNode.parentNode)}var d;return null!=(null==(d=b)?void 0:d.getAttribute("data-mat-row"))?b:null},woa=function(a,b,c){return null!==c&&b!==c&&a<c&&a===b},xoa=function(a,b,c){return null!==b&&b!==c&&a>=b&&a===c},yoa=function(a,b,c,d){return d&&null!==b&&null!==c&&b!==c&&a>=b&&a<=
c},zoa=function(a){a=a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},Aoa=function(a,b){a&1&&(D(0,"th",5)(1,"span",6),Q(2),F(),D(3,"span",7),Q(4),F()());a&2&&(a=b.$implicit,w(2),jg(a.long),w(2),jg(a.narrow))},Coa=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=Boa(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},Xh=function(a,b,c,d){return((a.getYear(b)-Boa(a,c,d))%24+24)%24},Boa=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},Doa=
function(){},Eoa=function(a){if(a&1){var b=r();D(0,"mat-month-view",5);L("activeDateChange",function(c){t(b);var d=M();return v(d.activeDate=c)})("_userSelection",function(c){t(b);var d=M();return v(d._dateSelected(c))})("dragStarted",function(c){t(b);var d=M();return v(d._dragStarted(c))})("dragEnded",function(c){t(b);var d=M();return v(d._dragEnded(c))});F()}a&2&&(a=M(),C("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",
a.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName)("activeDrag",a._activeDrag))},Foa=function(a){if(a&1){var b=r();D(0,"mat-year-view",6);L("activeDateChange",function(c){t(b);var d=M();return v(d.activeDate=c)})("monthSelected",function(c){t(b);var d=M();return v(d._monthSelectedInYearView(c))})("selectedChange",function(c){t(b);var d=M();return v(d._goToDateInView(c,
"month"))});F()}a&2&&(a=M(),C("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Goa=function(a){if(a&1){var b=r();D(0,"mat-multi-year-view",7);L("activeDateChange",function(c){t(b);var d=M();return v(d.activeDate=c)})("yearSelected",function(c){t(b);var d=M();return v(d._yearSelectedInMultiYearView(c))})("selectedChange",function(c){t(b);var d=M();return v(d._goToDateInView(c,"year"))});F()}a&2&&(a=M(),
C("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Hoa=function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._disableRipple=!1;return c};W(b,a);Qh.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=ah(c)}}});return b},Ioa=function(a,b,c){if(c.length){b=b.toArray();
c=c.toArray();for(var d=0,e=0;e<a+1;e++)b[e].group&&b[e].group===c[d]&&d++;return d}return 0},Joa=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):c},Koa=function(a){a&1&&G(0,"mat-pseudo-checkbox",5);a&2&&(a=M(),C("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},Loa=function(a){a&1&&(D(0,"span",6),Q(1),F());a&2&&(a=M(),w(1),S("(",a.group.label,")"))},Moa=function(){},Noa=function(a,b){for(var c=a.length;c--;)b(a[c])},Ooa=function(){},Poa=function(a,b){for(var c=a.nativeElement.parentElement;c&&
!c.classList.contains("mat-dialog-container");)c=c.parentElement;return c?b.find(function(d){return d.id===c.id}):null},Qoa=function(a){a&1&&(I(0),D(1,"div",14),G(2,"div",15)(3,"div",16)(4,"div",17),F(),D(5,"div",18),G(6,"div",15)(7,"div",16)(8,"div",17),F(),K())},Roa=function(a){if(a&1){var b=r();D(0,"div",19);L("cdkObserveContent",function(){t(b);var c=M();return v(Yh(c))});fg(1,1);F()}a&2&&(a=M(),C("cdkObserveContentDisabled","outline"!=a.appearance))},Soa=function(a){a&1&&(I(0),fg(1,2),D(2,"span"),
Q(3),F(),K());a&2&&(a=M(2),w(3),jg(a._control.placeholder))},Toa=function(a){a&1&&fg(0,3,["*ngSwitchCase","true"])},Uoa=function(a){a&1&&(D(0,"span",23),Q(1," *"),F())},Voa=function(a){if(a&1){var b=r();D(0,"label",20,21);L("cdkObserveContent",function(){t(b);var c=M();return v(Yh(c))});P(2,Soa,4,1,"ng-container",12);P(3,Toa,1,0,"ng-content",12);P(4,Uoa,2,0,"span",22);F()}a&2&&(a=M(),Xf("mat-empty",a._control.empty&&!a._shouldAlwaysFloat())("mat-form-field-empty",a._control.empty&&!a._shouldAlwaysFloat())("mat-accent",
"accent"==a.color)("mat-warn","warn"==a.color),C("cdkObserveContentDisabled","outline"!=a.appearance)("id",a._labelId)("ngSwitch",a._hasLabel()),Nf("for",a._control.id)("aria-owns",a._control.id),w(2),C("ngSwitchCase",!1),w(1),C("ngSwitchCase",!0),w(1),C("ngIf",!a.hideRequiredMarker&&a._control.required&&!a._control.disabled))},Woa=function(a){a&1&&(D(0,"div",24),fg(1,4),F())},Xoa=function(a){a&1&&(D(0,"div",25),G(1,"span",26),F());a&2&&(a=M(),w(1),Xf("mat-accent","accent"==a.color)("mat-warn","warn"==
a.color))},Yoa=function(a){a&1&&(D(0,"div"),fg(1,5),F());a&2&&(a=M(),C("@transitionMessages",a._subscriptAnimationState))},Zoa=function(a){a&1&&(D(0,"div",30),Q(1),F());a&2&&(a=M(2),C("id",a._hintLabelId),w(1),jg(a.hintLabel))},$oa=function(a){a&1&&(D(0,"div",27),P(1,Zoa,2,2,"div",28),fg(2,6),G(3,"div",29),fg(4,7),F());a&2&&(a=M(),C("@transitionMessages",a._subscriptAnimationState),w(1),C("ngIf",a.hintLabel))},bpa=function(){if(void 0===apa&&(apa=null,"undefined"!==typeof window)){var a=window;void 0!==
a.trustedTypes&&(apa=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return apa},cpa=function(a){var b;return(null==(b=bpa())?void 0:b.createHTML(a))||a},dpa=function(){var a=jd(Oh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},Zh=function(a){a&&"function"==typeof a.dispose&&a.dispose()},epa=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];Ca(d)?epa.apply(null,d):Zh(d)}},fpa=function(){function a(){e[0]=
1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;x=u=0}function b(y){for(var E=h,H=0;64>H;H+=4)E[H/4]=y[H]<<24|y[H+1]<<16|y[H+2]<<8|y[H+3];for(H=16;80>H;H++)y=E[H-3]^E[H-8]^E[H-14]^E[H-16],E[H]=(y<<1|y>>>31)&4294967295;y=e[0];var J=e[1],O=e[2],R=e[3],U=e[4];for(H=0;80>H;H++){if(40>H)if(20>H){var Z=R^J&(O^R);var na=1518500249}else Z=J^O^R,na=1859775393;else 60>H?(Z=J&O|R&(J|O),na=2400959708):(Z=J^O^R,na=3395469782);Z=((y<<5|y>>>27)&4294967295)+Z+U+na+E[H]&4294967295;U=R;R=
O;O=(J<<30|J>>>2)&4294967295;J=y;y=Z}e[0]=e[0]+y&4294967295;e[1]=e[1]+J&4294967295;e[2]=e[2]+O&4294967295;e[3]=e[3]+R&4294967295;e[4]=e[4]+U&4294967295}function c(y,E){if("string"===typeof y){y=unescape(encodeURIComponent(y));for(var H=[],J=0,O=y.length;J<O;++J)H.push(y.charCodeAt(J));y=H}E||(E=y.length);H=0;if(0==u)for(;H+64<E;)b(y.slice(H,H+64)),H+=64,x+=64;for(;H<E;)if(f[u++]=y[H++],x++,64==u)for(u=0,b(f);H+64<E;)b(y.slice(H,H+64)),H+=64,x+=64}function d(){var y=[],E=8*x;56>u?c(k,56-u):c(k,64-
(u-56));for(var H=63;56<=H;H--)f[H]=E&255,E>>>=8;b(f);for(H=E=0;5>H;H++)for(var J=24;0<=J;J-=8)y[E++]=e[H]>>J&255;return y}for(var e=[],f=[],h=[],k=[128],q=1;64>q;++q)k[q]=0;var u,x;a();return{reset:a,update:c,digest:d,digestString:function(){for(var y=d(),E="",H=0;H<y.length;H++)E+="0123456789ABCDEF".charAt(Math.floor(y[H]/16))+"0123456789ABCDEF".charAt(y[H]%16);return E}}},gpa=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},
hpa=function(a){a&1&&(Qd(),D(0,"svg",3),G(1,"polygon",4),F())},ipa=function(a){a&1&&(Qd(),D(0,"svg",2),G(1,"polygon",3),F())},jpa=function(a){if(a&1){var b=r();D(0,"div",0);L("keydown",function(c){t(b);var d=M();return v(d._handleKeydown(c))})("click",function(){t(b);var c=M();return v(c.closed.emit("click"))})("@transformMenu.start",function(c){t(b);var d=M();return v(d._onAnimationStart(c))})("@transformMenu.done",function(c){t(b);var d=M();return v(d._onAnimationDone(c))});D(1,"div",1);fg(2);F()()}a&
2&&(a=M(),C("id",a.panelId)("ngClass",a._classList)("@transformMenu",a._panelAnimationState),Nf("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},$h=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);},mpa=function(a){var b=ai(a,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new kpa:new lpa;if(b.startsWith("application/x-protobuf")){a=
ai(a,"Content-Transfer-Encoding");if(!a)return new bi;if("base64"==a.toLowerCase())return new ci}return null},npa=function(a,b){if(a.nodeType===Node.ELEMENT_NODE&&b){var c,d;b=((null==(c=a.getAttribute)?void 0:null==(d=c.call(a,"aria-labelledby"))?void 0:d.split(/\s+/g))||[]).reduce(function(q,u){(u=document.getElementById(u))&&q.push(u);return q},[]);if(b.length)return b.map(function(q){return npa(q,!1)}).join(" ")}if(a.nodeType===Node.ELEMENT_NODE){var e;if(c=null==(e=a.getAttribute("aria-label"))?
void 0:e.trim())return c}if("INPUT"===a.nodeName||"TEXTAREA"===a.nodeName){var f;if(null==(f=a.labels)?0:f.length)return Array.from(a.labels).map(function(q){return npa(q,!1)}).join(" ");var h;if(e=null==(h=a.getAttribute("placeholder"))?void 0:h.trim())return e;var k;if(h=null==(k=a.getAttribute("title"))?void 0:k.trim())return h}return(a.textContent||"").replace(/\s+/g," ").trim()},opa=function(){return{color:"accent"}},ppa=function(a){return"nonprod"===a.environment?"https://autopushcorp-devopsconsole-pa-googleapis.corp.google.com":
"https://devopsconsole-pa-googleapis.corp.google.com"},qpa=function(a){a=a.tagName;if("SCRIPT"===a||"STYLE"===a)throw Error("X");},rpa=function(a,b){a.src=di(b).toString()},ei=function(a,b){a.src=di(b);var c,d;(c=(b=null==(d=(c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:d.call(c,"script[nonce]"))?b.nonce||b.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",c)},spa=function(a,b,c){b=Lma(b);void 0!==b&&a.open(b,c,void 0)},tpa=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;
default:return null}},upa=function(a){switch(a){case "TYPE_UNSPECIFIED":case "BUG":case "FEATURE_REQUEST":case "CUSTOMER_ISSUE":case "INTERNAL_CLEANUP":case "PROCESS":case "VULNERABILITY":case "PRIVACY_ISSUE":case "PROJECT":case "FEATURE":case "MILESTONE":case "EPIC":case "STORY":case "TASK":return a;default:return null}},vpa=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},wpa=function(a){return fi(a.replace(/_/g," ").toLowerCase())},xpa=function(a){return gi({id:a.getId(),
std_offset:hi(a,3),names:ii(a,2),transitions:ji(a,4)||[]})},ypa=function(a,b){return a.size!==b.size?!1:[].concat(p(a)).every(function(c){return b.has(c)})},zpa=function(a){var b=new Set;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=l(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},Apa=function(a,b){if(!ypa(a,b)){var c=[].concat(p(b)).filter(function(e){return!a.has(e)}),d=[].concat(p(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},Bpa=function(a,b){var c=
a.size>b.size?a:b;return new Set([].concat(p(a===c?b:a)).filter(function(d){return c.has(d)}))},Cpa=function(a,b){return a.size>=b.size&&[].concat(p(b)).every(function(c){return a.has(c)})},ki=function(a,b){if(a===b)return!0;if(null==a||null==b)return a===b;if(Array.isArray(a)){if(!Array.isArray(b))return!1;var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(!ki(a[d],b[d]))return!1;return!0}if(a instanceof Date)return b instanceof Date?a.getTime()===b.getTime():!1;if(a instanceof RegExp)return b instanceof
RegExp?a.toString()===b.toString():!1;if(a instanceof Set||b instanceof Set)return a instanceof Set&&b instanceof Set?ypa(a,b):!1;if(a instanceof X||b instanceof X)return a instanceof X&&b instanceof X?a==b||!(!a||!b)&&a instanceof b.constructor&&pba(a,b):!1;if("object"===typeof a){if("object"!==typeof b)return!1;c=Object.keys(a);d=c.length;if(d!==Object.keys(b).length)return!1;for(var e=0;e<d;e++){var f=c[e];if(!Dpa.call(b,f)||!ki(a[f],b[f]))return!1}return!0}return!1},Epa=function(a){var b=[];a=
l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=l(b),f=e.next();!f.done;f=e.next())if(ki(c,f.value)){d=!0;break}d||b.push(c)}return b},Fpa=function(a,b){for(var c=a.length-1;0<=c;c--)ki(a[c],b)&&a.splice(c,1)},Gpa=function(a,b,c){c=void 0===c?Infinity:c;if(a===b)return!0;if((null==a||null==b)&&a!==b)return!1;var d=Object.keys(a),e=Object.keys(b);if(d.length!==e.length)return!1;c=Math.min(d.length,c);for(e=0;e<c;e++){var f=d[e];if(a[f]!==b[f]&&("object"!==typeof a[f]||"object"!==
typeof b[f]))return!1}return!0},Ipa=function(a){return Object.assign.apply(Object,[{}].concat(p(Hpa.map(function(b){var c={};return c[b]=a[b],c}))))},li=function(a){if(null!==a&&void 0!==a&&-1===["boolean","function","number","string"].indexOf(typeof a))if(Array.isArray(a)){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(li(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof Map){b=new Map;a=l(a);for(c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;
d=d.next().value;b.set(li(c),li(d))}a=b}else if(a instanceof X)a=a.clone();else{b={};c=l(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b[d]=li(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},Jpa=function(a){return"number"===typeof a},mi=function(a){return"string"===typeof a},ni=function(a){return Array.isArray(a)&&a.every(mi)},Kpa=function(a){return Array.isArray(a)&&a.every(Jpa)},Lpa=function(a){if(null==a)return!1;a=String(a).trim();
if(2>=a.length)return!1;var b=Number(a);return isNaN(b)?!1:String(b).length===a.length},oi=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},ri=function(a){if(a){if(Jpa(a)){var b=new Date(a);47E3<b.getFullYear()&&(b=new Date(a/1E3));return new pi(b)}b=a.split("/");if(3===b.length)return a=qi(b[2]),50>a?a+=2E3:100>a&&(a+=1900),new pi(a,qi(b[0])-1,qi(b[1]));if(1===b.length)return ri(Number(a))}return new pi},Mpa=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,
"")},Npa=function(a){return!(!a||!si(a,"text/")&&!si(a,"image/")&&"application/pdf"!==a)},Opa=function(a,b){return a.map(function(c){return c[b]})},Ppa=function(a,b){return a.filter(function(c){return!b.has(c)})},Qpa=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())if(!b.has(d.value))return!1;b=l(b);for(d=b.next();!d.done;d=b.next())if(!a.has(d.value))return!1;return!0},ti=function(a,b){return Ppa(a,new Set(b))},Rpa=function(a,b){var c=/[,;]/;(void 0===b||b)&&(c=/[\s,;]/);return a.split(c).map(ui).filter(function(d){return!!d})},
Spa=function(a,b){a=new URL(a);return a.host+a.pathname+b},Tpa=function(a){return void 0!==a.user},Upa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return fi(a.replace(/_/g," ").toLowerCase())}},Vpa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||"ACTIVE"===a||"UNSPECIFIED"===a},wi=function(a){return a?a.map(vi):[]},xi=function(a){a=wi(a);a.sort();return a},vi=function(a){return a&&a.getUserGaiaStatus?
Wpa(yi(a)):Wpa(a)},Wpa=function(a){return a?"DELETED"===a.userGaiaStatus?"[Deleted User]":"UNAVAILABLE"===a.userGaiaStatus?"[Unavailable User]":Vpa(a)?Xpa(a)||"[No Data]":"[No Data]":""},zi=function(a){return a&&a.getUserGaiaStatus?Xpa(yi(a)):Xpa(a)},Xpa=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},yi=function(a){if(null!=a){var b={},c;if(c=a.getEmailAddress())b.emailAddress=c;if(c=a.getObfuscatedEmailAddress())b.obfuscatedEmailAddress=c;if(c=a.getUserGaiaStatus())b.userGaiaStatus=
Ypa[c];(c=a.getAliasesList())&&0<c.length&&(b.aliases=c);return b}},Ai=function(a){if(!a)return null;var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())(c=yi(c.value))&&b.push(c);return b},Ci=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Bi;b&&e.setEmailAddress(b);c&&e.setObfuscatedEmailAddress(c);d&&e.setAliasesList(d);a&&e.setUserGaiaStatus(Zpa[a]);return e},Di=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},$pa=
function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(Di(c.value));return b},bqa=function(a){var b=a.getTrackerId(),c=a.getName(),d=a.getComponentId(),e=Ei(a,4);var f=Fi(a,Gi,5);f=null!=f?{logoUrl:f.getLogoUrl(),cocUrl:Hi(f,3),theme:aqa[f.getTheme()]}:void 0;return{trackerId:b,name:c,componentId:d,associatedTrackerIds:e,branding:null!=f?f:null,internalBaseUrl:Ii(a,6)?Hi(a,6):void 0,externalBaseUrl:Ii(a,7)?Hi(a,7):void 0,collaboratorGroups:0<Ji(a,Bi,8).length?Ai(Ji(a,Bi,8)):void 0}},
cqa=function(a){var b;return(null!=(b=a.getTrackersList())?b:[]).map(bqa)},dqa=function(a){return{trackers:a.getTrackersList().map(bqa),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},Ki=function(a){if(null==a)return"UNSPECIFIED_FORMATTING_MODE";switch(eqa[a]){case 2:return"MARKDOWN";case 1:return"PLAIN";case 3:return"LITERAL";default:return"UNSPECIFIED_FORMATTING_MODE"}},Mi=function(a){"duplicateOfIssueId"===a&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Li({type:String(a).replace(/([A-Z])/g,
"_$1").toUpperCase()}):0===b?a=null:(a={customFieldId:b},a=new Li({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},fqa=function(a){a=Ni(a);if(Oi(a))return null;var b=a.split(":");if(2!==b.length||Oi(b[1]))return null;a="asc"===b[1].toLowerCase()?"ASCENDING":"DESCENDING";return(b=Mi(b[0]))&&a?new Pi(b,a):null},tqa=function(a){var b={};Qi(a,1)&&(b.showFullHistory=Ri(a,1));Qi(a,2)&&(b.useCodefont=Ri(a,2));Si(a,5)&&(b.resultsPerPage=hi(a,5));Qi(a,26)&&(b.showRecentEventsFirst=
Ri(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(gqa)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(hqa)};Ii(a,7)&&(b.bannerMessageId=Hi(a,7));if(c=Fi(a,iqa,3)){var d={};Ti(c,1)&&(d.reportedPriority=Ui[Vi(c,1,0)]);Ti(c,2)&&(d.assignedPriority=Ui[Vi(c,2,0)]);Ti(c,3)&&(d.verifiedPriority=Ui[Vi(c,3,0)]);Ti(c,4)&&(d.ccdPriority=Ui[Vi(c,4,0)]);Ti(c,9)&&(d.collaboratorPriority=Ui[Vi(c,9,0)]);Ti(c,5)&&(d.starredPriority=Ui[Vi(c,5,0)]);Qi(c,
6)&&(d.excludeChangesByMe=Ri(c,6));Qi(c,7)&&(d.unsubscribeFromAll=Ri(c,7));Qi(c,8)&&(d.enableV2Prefs=Ri(c,8));b.notificationPreferences=d}if(d=Fi(a,jqa,9)){c={showHotlists:Ri(d,1),showStatusIcons:Ri(d,4),wrapComponents:Ri(d,3),wrapTitles:Ri(d,2),rtlComponentPath:Ri(d,5)};var e=Zb(d,6,Eb);c.fieldStatus=Object.fromEntries(e.entries());d=Zb(d,7,Eb);c.modeForField=Object.fromEntries(d.entries());b.listViewPreferences=c}if(c=a.getLayoutPreferences())d={},Si(c,1)&&(d.leftSidebarWidth=hi(c,1)),Qi(c,2)&&
(d.expandIssueSlo=Ri(c,2)),Si(c,3)&&(d.rightSidebarWidth=hi(c,3)),b.layoutPreferences=d;if(c=a.getDateTimePreferences())d={},Ii(c,1)&&(d.calendarFormat=Hi(c,1)),Ii(c,2)&&(d.timeFormat=Hi(c,2)),c.hasTimeZone()&&(d.timeZone=c.getTimeZone()),Ti(c,7)&&(d.sloEtaViewAs=kqa[Vi(c,7,0)]),b.dateTimePreferences=d;if(c=Fi(a,Wi,8))d={},Ti(c,1)&&(d.density=lqa[c.getDensity()]),b.themePreferences=d;if(c=a.getHomepagePreferences())d={},c.hasResourceType()&&(d.resourceType=mqa(c.getResourceType())),c.hasResourceId()&&
(d.resourceId=c.getResourceId()),b.homepagePreferences=d;if(c=Fi(a,nqa,17))d={},Qi(c,1)&&(d.enableAllHotkeys=Ri(c,1,!0)),b.keyboardPreferences=d;Xi(a,16)&&(b.newFeaturesAcknowledgedMillis=Yi(a,16));Qi(a,18)&&(b.autoCcOnComment=Ri(a,18));Zi(a,$i,20)&&(d=Fi(a,$i,20),c=Vi(d,2,0),d=Vi(d,1,0),b.textDisplayPreferences={commentDisplayOverride:oqa(c),lastPublishMode:oqa(d)});Zi(a,aj,21)&&(c=Fi(a,aj,21),d={},Qi(c,2)&&(d.announcementDismissed=Ri(c,2)),Qi(c,1)&&(d.enableBugScreensaver=Ri(c,1)),b.bugScreensaverPreferences=
d);Zi(a,bj,24)&&(c=Fi(a,bj,24),d={},cj(c,1)&&(d.announcementDismissedMillis=dj(c,1)),b.g3nPreferences=d);if(c=Fi(a,ej,23))b.teamWarningPreferences={componentTeamWarnings:Ji(c,fj,1).map(pqa)};c=$b(a,25,gj,Eb);c.size&&(b.dismissalTimestamps=qqa(c));c=a.getCollapsedMap();c.size&&(b.collapsed=Object.fromEntries(c.entries()));Qi(a,29)&&(b.showInlineImages=a.getShowInlineImages());Zi(a,hj,28)&&(c=Fi(a,hj,28),d={},Ti(c,1)&&(d.commentFilter=rqa(Vi(c,1,0))),b.commentFilterPreferences=d);Zi(a,ij,30)&&(b.needsAttentionPreferences=
sqa(Fi(a,ij,30)));if(c=Fi(a,jj,31))a={},a.workAreaUrls=ii(c,1),c=c.getCollapsedMap(),c.size&&(a.collapsed=Object.fromEntries(c.entries())),b.missionControlPreferences=a;return b},gqa=function(a){var b={};a.hasType()&&(b.type=uqa[a.getType()]);a.hasCustomFieldId()&&(b.customFieldId=a.getCustomFieldId());return b},hqa=function(a){var b={};if(Ti(a,2)){a:{var c=Vi(a,2,1);switch(c){case 1:c="ASCENDING";break a;case 2:c="DESCENDING";break a;default:c=$h(c,"Unknown sortOrder: "+c)}}b.order=c}if(a=a.getColumn())b.column=
gqa(a);return b},oqa=function(a){if(0!==a)return eqa[a]},mqa=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";case 4:return"NEEDS_ATTENTION";case 5:return"MISSION_CONTROL";case 6:return"ASSIGNED_TO_ME";default:return $h(a,"Unknown resourceType: "+a)}},pqa=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId());cj(a,2)&&(b.dismissMillis=dj(a,2));return b},qqa=function(a){a=Array.from(a.entries()).map(function(b){var c=l(b);b=
c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},rqa=function(a){switch(a){case 0:return"FULL_HISTORY";case 1:return"ALL_COMMENTS";case 2:return"HUMAN_ONLY";case 3:return"TEAM_AND_ASSIGNEE";default:return $h(a,"Unknown resourceType: "+a)}},sqa=function(a){var b={};b.selectedSignals=kj(a,1).map(function(c){return vqa[c]});return b},Hqa=function(a){var b=new lj;null!=a.showFullHistory&&mj(b,1,a.showFullHistory);null!=a.useCodefont&&mj(b,2,a.useCodefont);null!=a.resultsPerPage&&
nj(b,5,a.resultsPerPage);null!=a.displayColumns&&b.setDisplayColumns(wqa(a.displayColumns));if(null!=a.sortColumns){var c=xqa(a.sortColumns);oj(b,pj,6,c)}null!=a.bannerMessageId&&qj(b,7,a.bannerMessageId);if(null!=a.notificationPreferences){c=a.notificationPreferences;var d=new iqa;d=rj(d,1,sj[c.reportedPriority]);d=rj(d,2,sj[c.assignedPriority]);d=rj(d,3,sj[c.verifiedPriority]);d=rj(d,4,sj[c.ccdPriority]);d=rj(d,9,sj[c.collaboratorPriority]);d=rj(d,5,sj[c.starredPriority]);d=mj(d,6,c.excludeChangesByMe);
d=mj(d,7,c.unsubscribeFromAll);c=mj(d,8,c.unsubscribeFromAll);oj(b,iqa,3,c)}null!=a.listViewPreferences&&(c=a.listViewPreferences,d=new jqa,d=mj(d,1,c.showHotlists),d=mj(d,2,c.wrapTitles),d=mj(d,3,c.wrapComponents),d=mj(d,4,c.showStatusIcons),d=mj(d,5,c.rtlComponentPath),null!=c.fieldStatus&&yqa(c.fieldStatus,Zb(d,6,Eb)),null!=c.modeForField&&yqa(c.modeForField,Zb(d,7,Eb)),oj(b,jqa,9,d));null!=a.layoutPreferences&&(c=a.layoutPreferences,d=new zqa,null!=c.leftSidebarWidth&&nj(d,1,c.leftSidebarWidth),
null!=c.expandIssueSlo&&mj(d,2,c.expandIssueSlo),null!=c.rightSidebarWidth&&nj(d,3,c.rightSidebarWidth),oj(b,zqa,10,d));null!=a.dateTimePreferences&&(c=a.dateTimePreferences,d=new uj,d=qj(d,1,c.calendarFormat),d=qj(d,2,c.timeFormat).setTimeZone(c.timeZone),c=rj(d,7,Aqa[c.sloEtaViewAs]),oj(b,uj,11,c));null!=a.themePreferences&&(c=a.themePreferences,c=(new Wi).setDensity(Bqa[c.density]),oj(b,Wi,8,c));null!=a.homepagePreferences&&(c=a.homepagePreferences,d=new vj,null!=c.resourceType&&d.setResourceType(Cqa(c.resourceType)),
null!=c.resourceId&&d.setResourceId(c.resourceId),oj(b,vj,13,d));null!=a.keyboardPreferences&&(c=a.keyboardPreferences,d=new nqa,c=mj(d,1,c.enableAllHotkeys),oj(b,nqa,17,c));null!=a.newFeaturesAcknowledgedMillis&&wj(b,16,a.newFeaturesAcknowledgedMillis);null!=a.autoCcOnComment&&mj(b,18,a.autoCcOnComment);null!=a.textDisplayPreferences&&(c=a.textDisplayPreferences,d=new $i,c.commentDisplayOverride&&rj(d,2,Dqa(c.commentDisplayOverride)),c.lastPublishMode&&rj(d,1,Dqa(c.lastPublishMode)),oj(b,$i,20,d));
null!=a.bugScreensaverPreferences&&(c=a.bugScreensaverPreferences,d=new aj,null!=c.enableBugScreensaver&&mj(d,1,c.enableBugScreensaver),null!=c.announcementDismissed&&mj(d,2,c.announcementDismissed),oj(b,aj,21,d));null!=a.g3nPreferences&&(c=a.g3nPreferences,d=new bj,null!=c.announcementDismissedMillis&&xj(d,1,c.announcementDismissedMillis),oj(b,bj,24,d));null!=a.teamWarningPreferences&&(c=Eqa(a.teamWarningPreferences),oj(b,ej,23,c));if(null!=a.dismissalTimestamps){c=$b(b,25,gj,Eb);d=l(Object.entries(a.dismissalTimestamps));
for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;var h=f.next().value;f=c;var k=f.set,q=new gj,u=q;h=h.getTime();Number.isFinite(h)||(h=0);u.setSeconds(Math.trunc(h/1E3)).setNanos(Math.trunc(h%1E3*1E6));k.call(f,e,q)}}null!=a.collapsed&&yqa(a.collapsed,b.getCollapsedMap());null!=a.showRecentEventsFirst&&mj(b,26,a.showRecentEventsFirst);null!=a.showInlineImages&&mj(b,29,a.showInlineImages);null!=a.commentFilterPreferences&&(d=a.commentFilterPreferences,c=new hj,null!=d.commentFilter&&
(d=Fqa(d.commentFilter),rj(c,1,d)),oj(b,hj,28,c));null!=a.needsAttentionPreferences&&(d=a.needsAttentionPreferences,c=new ij,d.selectedSignals&&(d=d.selectedSignals.map(Gqa),ac(c,1,d,rb)),oj(b,ij,30,c));null!=a.missionControlPreferences&&(a=a.missionControlPreferences,c=new jj,a.workAreaUrls&&yj(c,1,a.workAreaUrls),a.collapsed&&yqa(a.collapsed,c.getCollapsedMap()),oj(b,jj,31,c));return b},wqa=function(a){return(new zj).setColumnList(a.column.map(function(b){return Iqa(b)}))},Iqa=function(a){var b=
new Aj,c=b.setType,d=a.type;if(!Bj.hasOwnProperty(d))throw Error("Pb`"+d);b=c.call(b,Jqa[d]);null!=a.customFieldId&&b.setCustomFieldId(a.customFieldId);return b},xqa=function(a){return(new pj).setColumnList(a.column.map(function(b){var c=(new Cj).setColumn(Iqa(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=$h(b,"Unknown sortOrder: "+b)}return rj(c,2,b)}))},Cqa=function(a){switch(a){case "HOTLIST":return 1;case "SAVED_SEARCH":return 2;case "BOOKMARK_GROUP":return 3;
case "NEEDS_ATTENTION":return 4;case "MISSION_CONTROL":return 5;case "ASSIGNED_TO_ME":return 6;default:return $h(a,"Unknown resourceType: "+a)}},Dqa=function(a){switch(eqa[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},Eqa=function(a){var b=new ej;null!=a.componentTeamWarnings&&Kqa(b,a.componentTeamWarnings.map(function(c){var d=new fj;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&xj(d,2,c.dismissMillis);return d}));return b},Fqa=function(a){switch(a){case "FULL_HISTORY":return 0;
case "ALL_COMMENTS":return 1;case "HUMAN_ONLY":return 2;case "TEAM_AND_ASSIGNEE":return 3;default:return $h(a,"Unknown commentFilterType: "+a)}},Gqa=function(a){return Lqa[a]},yqa=function(a,b){a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}},Mqa=function(a){a=ih(a).toString();var b=new Dj;qj(b,2,a);return b},Nqa=function(a){if(!a)return null;a=Ej(a,2);var b;null===a||void 0===a?b=null:b=gh(a);return b},Mj=function(){var a=
Oqa();var b=a.hasUser()?a.getUser():new Fj;b=Ri(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),sessionIdentifier:b.getSessionIdentifier()};var c=Zi(a,Gj,2)?a.getConfig():new Gj;for(var d=new Map,e=l(Zb(c,4,Db).entries()),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;d.set(f,h)}c={analyticsId:c.getAnalyticsId(),appName:c.getAppName(),documentationBaseUrl:c.getDocumentationBaseUrl(),
enabledFlags:d,environmentType:c.getEnvironmentType(),maxAccurateSearchResults:c.getMaxAccurateSearchResults(),onePickUrl:c.getOnePickUrl(),onePickSecretToken:c.getOnePickSecretToken(),commentNumberLimit:c.getCommentNumberLimit(),createComponentRedirectDelay:c.getCreateComponentRedirectDelay(),whitelistedWhitelistDomainPartnerComponentIds:Ei(c,10),isDogfooder:Ri(c,11),createRestrictedSubresourcesComponentWhitelist:Hj(c,13)};d=tqa(Zi(a,lj,7)?a.getUserPreferences():new lj);f=Zi(a,Ij,9)?Fi(a,Ij,9):new Ij;
e=Ji(f,Jj,1).map(xpa);Zi(f,Kj,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:Hi(f,2),dismissible:Ri(f,3),tags:ii(f,4)}):f=null;e={timezones:e,announcement:f};f=a.getXsrfToken();h=a.getCspNonce();var k=a.getFrontendAccessMode(),q=a.getMustAcknowledgeTerms(),u=a.getShowNewFeaturesDialog(),x=a.getAppBaseHref(),y=Zi(a,Lj,11)?bqa(a.getTracker()):null;Zi(a,Pqa,12)?(a=a.getPassiveLoginIframeUrl())?(a=Ej(a,4),a=null===a||void 0===a?null:lh(a)):a=null:a=null;return{user:b,config:c,xsrfToken:f,
cspNonce:h,frontendAccessMode:k,mustAcknowledgeTerms:q,showNewFeaturesDialog:u,userPreferences:d,preload:e,appBaseHref:x,tracker:y,passiveLoginIframeUrl:a}},Oqa=function(){null==Nj&&(Nj=new Qqa(Rqa.buganizerSessionJspb));if(!Zi(Nj,Gj,2)){var a=Nj,b=new Gj;oj(a,Gj,2,b)}Zi(Nj,Ij,9)||(a=Nj,b=new Ij,oj(a,Ij,9,b));Nj.hasUser()||Nj.setUser(new Fj);Zi(Nj,lj,7)||(a=Nj,b=new lj,oj(a,lj,7,b));return Nj},Sqa=function(a){a&1&&(D(0,"button",16)(1,"span"),Q(2,"Edit"),F(),G(3,"b-icon",17),F());if(a&2){a=M();var b=
N(7);C("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},Tqa=function(a){a&1&&(D(0,"button",16)(1,"span"),Q(2,"Link"),F(),G(3,"b-icon",17),F());if(a&2){a=M();var b=N(69);C("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},Uqa=function(a){a&1&&(D(0,"button",16)(1,"span"),Q(2,"CC"),F(),G(3,"b-icon",17),F());if(a&2){a=M();var b=N(85);C("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},Vqa=function(a){if(a&1){var b=r();D(0,"button",3);L("click",function(){t(b);var c=M();return v(c.bulkEdit("ESTIMATED_EFFORT"))});
Q(1,"Estimated Effort");F()}},Wqa=function(a,b){if(a&1){var c=r();D(0,"button",3);L("click",function(){var d=t(c).$implicit,e=M();return v(e.quickBulkEdit("PRIORITY",d))});Q(1);F()}a&2&&(a=b.$implicit,w(1),S(" ",a," "))},Xqa=function(a,b){if(a&1){var c=r();D(0,"button",3);L("click",function(){var d=t(c).$implicit,e=M();return v(e.quickBulkEdit("SEVERITY",d))});Q(1);F()}a&2&&(a=b.$implicit,w(1),S(" ",a," "))},Yqa=function(a,b){if(a&1){var c=r();D(0,"button",3);L("click",function(){var d=t(c).$implicit,
e=M();return v(e.quickBulkEdit("STATUS",d))});Q(1);F()}a&2&&(a=b.$implicit,b=M(),w(1),S(" ",b.STATUS_JS_FULL_TEXT[a]," "))},Zqa=function(a,b){if(a&1){var c=r();D(0,"button",18);L("click",function(){var e=t(c).$implicit,f=M();return v(f.quickBulkEdit("TYPE",e))});Q(1);F()}if(a&2){a=b.$implicit;b=M();var d;C("matTooltip",null!==(d=b.constants.issueTypesShortDescriptions.get(a))&&void 0!==d?d:"");w(1);S(" ",b.constants.issueTypesDisplayNames.get(a)," ")}},$qa=function(a){if(a&1){var b=r();D(0,"button",
5);L("click",function(){t(b);var c=M(2);return v(c.exportCsvClicked.emit())});Q(1,"Export issues to CSV ");F()}},ara=function(a){if(a&1){var b=r();D(0,"button",5);L("click",function(){t(b);var c=M(2);return v(c.flagAsSpamClicked.emit())});Q(1,"Flag issues as spam ");F()}},bra=function(a){a&1&&(I(0),D(1,"button",1)(2,"span"),Q(3,"More"),F(),G(4,"b-icon",2),F(),D(5,"mat-menu",null,3),P(7,$qa,2,0,"button",4),P(8,ara,2,0,"button",4),F(),K());if(a&2){var b=N(6);a=M();w(1);C("disabled",a.isAnonymous)("matMenuTriggerFor",
b);w(6);C("ngIf",a.showExportCsv);w(1);C("ngIf",a.showFlagIssuesAsSpam)}},cra=function(a){a&1&&(I(0),Q(1," Network connection has been interrupted. "),K())},dra=function(a){a&1&&Q(0," Network connection has been interrupted or login credentials may have expired. ")},gra=function(a){if(a&1){var b=r();D(0,"button",5);L("click",function(c){t(b);M(2);c.stopPropagation();c.preventDefault();var d={width:690,height:500,top:window.screenTop+(window.outerHeight-500)/2,left:window.screenLeft+(window.outerWidth-
690)/2};c=window;var e=Eca("undefined"!=typeof"/refreshSso".href?"/refreshSso".href:"/refreshSso")||Hc;var f=void 0!==self.crossOriginIsolated,h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);var k="unsafe-url"===h;h=d.noreferrer;if(f&&h){if(k)throw Error("Qb");h=!1}f=d.target||"/refreshSso".target;k=[];for(var q in d)switch(q){case "width":case "height":case "top":case "left":k.push(q+"="+d[q]);break;case "target":case "noopener":case "noreferrer":break;default:k.push(q+
"="+(d[q]?1:0))}q=k.join(",");ra()&&c.navigator&&c.navigator.standalone&&f&&"_self"!=f?(d=Oj(document,"A"),e=e instanceof Dc?e:era(e),d.href=Ec(e),d.target=f,h&&(d.rel="noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),d.dispatchEvent(e)):h?(c=fra("",c,f,q),e=Ec(e),c&&(Pj&&ka(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,""===e&&(e="javascript:''"),e=gh('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Qj(e)+'">'),
(c=c.document)&&c.write&&(c.write(ih(e)),c.close()))):((c=fra(e,c,f,q))&&d.noopener&&(c.opener=null),c&&d.noreferrer&&(c.opener=null));return v()});Q(1," Log in again ");F()}},hra=function(a){a&1&&(D(0,"b-callout",1)(1,"b-callout-body"),P(2,cra,2,0,"ng-container",2),P(3,dra,1,0,"ng-template",null,3,Eg),F(),D(5,"b-callout-actions"),P(6,gra,2,0,"button",4),F()());if(a&2){var b=N(4);a=M();C("messageType","error");w(2);C("ngIf",a.isAnonymous)("ngIfElse",b);w(4);C("ngIf",!a.isAnonymous)}},Rj=function(){return new ira},
mra=function(a){var b={};a=$b(a,1,jra,Eb);a=l(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:kra[Vi(d,1,0)],detailedUserType:lra[Vi(d,2,0)]}}return b},nra=function(a,b){return a.map(function(c){return b[c]||null})},ora=function(a){return a},Tj=function(a){return Sj(a,ora)},Sj=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},pra=function(a){return function(b){return Sj(b,a)}},qra=
function(a,b){var c=void 0===a?[]:a;a=void 0===b?[]:b;if(0===c.length)return a;b=a.filter(function(d){return 0>c.indexOf(d)});return b.length===a.length?a:b},rra=function(a,b){if(a.length!==b.length)return!1;a=[].concat(p(a)).sort();b=[].concat(p(b)).sort();return a.every(function(c,d){return c===b[d]})},sra=function(a,b){if(0===a.length)return b;b=b.slice();b=qra(a,b);return[].concat(p(a),p(b))},tra=function(a,b){var c=new Set(a),d=new Set(b);return{added:b.filter(function(e){return!c.has(e)}),removed:a.filter(function(e){return!d.has(e)})}},
ura=function(a,b){var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b(d),f=void 0,h=null!=(f=c.get(e))?f:[];h.push(d);c.set(e,h)}return[].concat(p(c.values()))},vra=function(a){for(var b=[],c=0;c<a.length;c+=100){var d=a.slice(c,c+100);b.push(d)}return b},wra=function(){return{principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}},xra=function(a){a&1&&(D(0,"a",1),Q(1," Hiring!\n"),F())},yra=function(a){return a instanceof Uj?a:new Uj(a,{})},Vj=function(a){a=yra(a);
return new Uj(a.char,Object.assign({},a.modifiers,{shift:!0}))},zra=function(a){a=yra(a);return new Uj(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},Ara=function(){var a=Vj("f");a=yra(a);return new Uj(a.char,Object.assign({},a.modifiers,{alt:!0}))},Cra=function(a){if(a instanceof Uj){var b=Bra(a.char);a.modifiers.ctrl&&(b="ctrl+"+b);a.modifiers.alt&&(b="alt+"+b);a.modifiers.shift&&(b="shift+"+b);return b}return a instanceof Array?a.map(Cra).join(" "):Bra(a)},Wj=function(){return xd.apply(0,arguments)},
Bra=function(a){switch(a){case "a":case "b":case "c":case "d":case "e":case "f":case "g":case "h":case "i":case "j":case "k":case "l":case "m":case "n":case "o":case "p":case "q":case "r":case "s":case "t":case "u":case "v":case "w":case "x":case "y":case "z":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":case "0":case "/":case "*":case ".":case "<":case ">":case "?":return a;case "F1":return"f1";case "F3":return"f3";case "DOWN":return"down";case "UP":return"up";
case "RIGHT":return"right";case "LEFT":return"left";case "SPACE":return"space";case "ENTER":return"enter";default:return $h(a)}},Dra=function(){for(var a={},b=l(Object.entries(Xj)),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;1<d&&(a[c]=d)}return a},Era=function(a,b){return a+b},Fra=function(){var a=Object.values(Xj),b=a.map(function(c){return c-1}).reduce(Era,0);a=a.reduce(Era,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},Gra=function(a,
b,c){var d=c.path.split("/");if(d.length>a.length||"full"===c.pathMatch&&(b.hasChildren()||d.length<a.length))return null;b={};for(c=0;c<d.length;c++){var e=d[c],f=a[c];if(e.startsWith(":"))b[e.substring(1)]=f;else if(e!==f.path)return null}return{consumed:a.slice(0,d.length),posParams:b}},Yj=function(a,b){var c=a?Object.keys(a):void 0,d=b?Object.keys(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!Hra(a[d],b[d]))return!1;return!0},Hra=function(a,b){if(Array.isArray(a)&&
Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(p(a)).sort();var c=[].concat(p(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},Zj=function(a){return(0,B.isObservable)(a)?a:xe(a)?(0,B.from)(Promise.resolve(a)):(0,B.of)(a)},Kra=function(a,b,c){return Ira[c.paths](a.root,b.root,c.matrixParams)&&Jra[c.queryParams](a.queryParams,b.queryParams)&&!("exact"===c.fragment&&a.fragment!==b.fragment)},Lra=function(a,b){return Yj(a,b)},Nra=function(a,b,c){if(!ak(a.segments,
b.segments)||!Mra(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!Nra(a.children[d],b.children[d],c))return!1;return!0},Ora=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return Hra(a[c],b[c])})},Qra=function(a,b,c){return Pra(a,b,b.segments,c)},Pra=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),ak(a,c)&&!b.hasChildren()&&Mra(a,c,d)?!0:
!1;if(a.segments.length===c.length){if(!ak(a.segments,c)||!Mra(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!Qra(a.children[e],b.children[e],d))return!1;return!0}e=c.slice(0,a.segments.length);c=c.slice(a.segments.length);return ak(a.segments,e)&&Mra(a.segments,e,d)&&a.children.primary?Pra(a.children.primary,b,c,d):!1},Mra=function(a,b,c){return b.every(function(d,e){return Jra[c](a[e].parameters,d.parameters)})},Rra=function(a,b){return ak(a,b)&&a.every(function(c,d){return Yj(c.parameters,
b[d].parameters)})},ak=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},Sra=function(a,b){var c=[];Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;"primary"===d&&(c=c.concat(b(e,d)))});Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;"primary"!==d&&(c=c.concat(b(e,d)))});return c},Vra=function(a){return a.segments.map(function(b){return Tra(b.path)+Ura(b.parameters)}).join("/")},
bk=function(a,b){if(!a.hasChildren())return Vra(a);if(b){b=a.children.primary?bk(a.children.primary,!1):"";var c=[];Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;"primary"!==d&&c.push(d+":"+bk(e,!1))});return 0<c.length?b+"("+c.join("//")+")":b}b=Sra(a,function(d,e){return"primary"===e?[bk(a.children.primary,!1)]:[e+":"+bk(d,!1)]});return 1===Object.keys(a.children).length&&null!=a.children.primary?Vra(a)+"/"+b[0]:Vra(a)+"/("+b.join("//")+")"},Wra=function(a){return encodeURIComponent(a).replace(/%40/g,
"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},Xra=function(a){return Wra(a).replace(/%3B/gi,";")},Tra=function(a){return Wra(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},Ura=function(a){return Object.keys(a).map(function(b){return";"+Tra(b)+"="+Tra(a[b])}).join("")},Yra=function(a){var b=Object.keys(a).map(function(c){var d=a[c];return Array.isArray(d)?d.map(function(e){return Xra(c)+"="+Xra(e)}).join("&"):Xra(c)+"="+Xra(d)}).filter(function(c){return!!c});
return b.length?"?"+b.join("&"):""},$ra=function(a){return(a=a.match(Zra))?a[0]:""},asa=function(a){var b={};return 0<a.segments.length?new ck([],(b.primary=a,b)):a},bsa=function(a){for(var b={},c=l(Object.keys(a.children)),d=c.next();!d.done;d=c.next()){d=d.value;var e=bsa(a.children[d]);if("primary"===d&&0===e.segments.length&&e.hasChildren())for(d=l(Object.entries(e.children)),e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;b[e]=f}else if(0<e.segments.length||
e.hasChildren())b[d]=e}a=new ck(a.segments,b);1===a.numberOfChildren&&a.children.primary&&(b=a.children.primary,a=new ck(a.segments.concat(b.segments),b.children));return a},ek=function(a){return a instanceof dk},csa=function(a){function b(f){for(var h={},k=l(f.children),q=k.next();!q.done;q=k.next()){q=q.value;var u=b(q);h[q.outlet]=u}h=new ck(f.url,h);f===a&&(c=h);return h}var c,d=b(a.root);d=asa(d);var e;return null!=(e=c)?e:d},isa=function(a,b,c,d){for(var e=a;e.parent;)e=e.parent;if(0===b.length)return dsa(e,
e,e,c,d);b=esa(b);if(b.isAbsolute&&1===b.commands.length&&"/"==b.commands[0])return dsa(e,e,new ck([],{}),c,d);var f=e;if(b.isAbsolute)a=new fsa(f,!0,0);else if(a)if(null===a.parent)a=new fsa(a,!0,0);else{f=a;a=a.segments.length-1+(gsa(b.commands[0])?0:1);for(var h=b.numberOfDoubleDots;h>a;){h-=a;f=f.parent;if(!f)throw new dd(4005,!1);a=f.segments.length}a=new fsa(f,!1,a-h)}else a=new fsa(f,!1,NaN);b=a.processChildren?fk(a.segmentGroup,a.index,b.commands):hsa(a.segmentGroup,a.index,b.commands);return dsa(e,
a.segmentGroup,b,c,d)},gsa=function(a){return"object"===typeof a&&null!=a&&!a.outlets&&!a.segmentPath},gk=function(a){return"object"===typeof a&&null!=a&&a.outlets},dsa=function(a,b,c,d,e){var f={};d&&Object.entries(d).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;f[h]=Array.isArray(k)?k.map(function(q){return""+q}):""+k});a=a===b?c:jsa(a,b,c);a=asa(bsa(a));return new dk(a,f,e)},jsa=function(a,b,c){var d={};Object.entries(a.children).forEach(function(e){var f=l(e);e=f.next().value;
f=f.next().value;d[e]=f===b?c:jsa(f,b,c)});return new ck(a.segments,d)},esa=function(a){if("string"===typeof a[0]&&1===a.length&&"/"===a[0])return new ksa(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,e,f){if("object"===typeof e&&null!=e){if(e.outlets){var h={};Object.entries(e.outlets).forEach(function(k){var q=l(k);k=q.next().value;q=q.next().value;h[k]="string"===typeof q?q.split("/"):q});return[].concat(p(d),[{outlets:h}])}if(e.segmentPath)return[].concat(p(d),[e.segmentPath])}return"string"!==typeof e?
[].concat(p(d),[e]):0===f?(e.split("/").forEach(function(k,q){if(0!=q||"."!==k)0==q&&""===k?c=!0:".."===k?b++:""!=k&&d.push(k)}),d):[].concat(p(d),[e])},[]);return new ksa(c,b,a)},lsa=function(a){if(gk(a[0]))return a[0].outlets;var b={};return b.primary=a,b},hsa=function(a,b,c){a||(a=new ck([],{}));if(0===a.segments.length&&a.hasChildren())return fk(a,b,c);a:{var d=a;for(var e=0,f=b,h={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=h;break a}var k=d.segments[f],q=c[e];
if(gk(q))break;q=""+q;var u=e<c.length-1?c[e+1]:null;if(0<f&&void 0===q)break;if(q&&u&&"object"===typeof u&&void 0===u.outlets){if(q!=k.path||!Yj(u,k.parameters)){d=h;break a}e+=2}else{u={};if(q!=k.path||!Yj(u,k.parameters)){d=h;break a}e++}f++}d={match:!0,pathIndex:f,commandIndex:e}}e=c.slice(d.commandIndex);return d.match&&d.pathIndex<a.segments.length?(b=new ck(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new ck(a.segments.slice(d.pathIndex),a.children),fk(b,0,e)):d.match&&0===e.length?
new ck(a.segments,{}):d.match&&!a.hasChildren()?msa(a,b,c):d.match?fk(a,0,e):msa(a,b,c)},fk=function(a,b,c){if(0===c.length)return new ck(a.segments,{});var d=lsa(c),e={};if(Object.keys(d).some(function(f){return"primary"!==f})&&a.children.primary&&1===a.numberOfChildren&&0===a.children.primary.segments.length)return c=fk(a.children.primary,b,c),new ck(a.segments,c.children);Object.entries(d).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;"string"===typeof h&&(h=[h]);null!==h&&(e[f]=
hsa(a.children[f],b,h))});Object.entries(a.children).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;void 0===d[f]&&(e[f]=h)});return new ck(a.segments,e)},msa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(gk(f))return a=nsa(f.outlets),new ck(d,a);if(0===e&&gsa(c[0]))d.push(new hk(a.segments[b].path,osa(c[0]))),e++;else{f=gk(f)?f.outlets.primary:""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&gsa(h)?(d.push(new hk(f,osa(h))),e+=2):(d.push(new hk(f,{})),
e++)}}return new ck(d,{})},nsa=function(a){var b={};Object.entries(a).forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;"string"===typeof d&&(d=[d]);null!==d&&(b[c]=msa(new ck([],{}),0,d))});return b},osa=function(a){var b={};Object.entries(a).forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b[c]=""+d});return b},psa=function(a,b){if(a===b.value)return b;b=l(b.children);for(var c=b.next();!c.done;c=b.next())if(c=psa(a,c.value))return c;return null},qsa=function(a,
b){if(a===b.value)return[b];for(var c=l(b.children),d=c.next();!d.done;d=c.next())if(d=qsa(a,d.value),d.length)return d.unshift(b),d;return[]},ik=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},tsa=function(){var a=new rsa("",new jk(new kk([],{},{},"",{},"primary",null,null,{}),[])),b=new lk(new B.BehaviorSubject([new hk("",{})]),new B.BehaviorSubject({}),new B.BehaviorSubject({}),new B.BehaviorSubject(""),new B.BehaviorSubject({}),"primary",null,a.root);
b.snapshot=a.root;return new ssa(new jk(b,[]),a)},vsa=function(a,b){a=a.pathFromRoot;var c=0;if("always"!==(void 0===b?"emptyOnly":b))for(c=a.length-1;1<=c;){b=a[c];var d=a[c-1];if(b.routeConfig&&""===b.routeConfig.path)c--;else if(d.component)break;else c--}return usa(a.slice(c))},usa=function(a){return a.reduce(function(b,c){var d=Object.assign({},b.params,c.params),e=Object.assign({},b.data,c.data),f;b=Object.assign({},c.data,b.resolve,null==(f=c.routeConfig)?void 0:f.data,c._resolvedData);return{params:d,
data:e,resolve:b}},{params:{},data:{},resolve:{}})},wsa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return wsa(a,c)})},xsa=function(a){var b=0<a.children.length?" { "+a.children.map(xsa).join(", ")+" } ":"";return""+a.value+b},ysa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Yj(b.queryParams,c.queryParams)||a.queryParamsSubject.next(c.queryParams);b.fragment!==c.fragment&&a.fragmentSubject.next(c.fragment);Yj(b.params,c.params)||a.paramsSubject.next(c.params);
a:{var d=b.url;var e=c.url;if(d.length!==e.length)d=!1;else{for(var f=0;f<d.length;++f)if(!Yj(d[f],e[f])){d=!1;break a}d=!0}}d||a.urlSubject.next(c.url);Yj(b.data,c.data)||a.dataSubject.next(c.data)}else a.snapshot=a._futureSnapshot,a.dataSubject.next(a._futureSnapshot.data)},zsa=function(a,b){var c=Yj(a.params,b.params)&&Rra(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||zsa(a.parent,b.parent))},Csa=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;
d._futureSnapshot=b.value;b=Asa(a,b,c);return new jk(d,b)}d=Bsa(b.value);b=b.children.map(function(e){return Csa(a,e)});return new jk(d,b)},Asa=function(a,b,c){return b.children.map(function(d){for(var e=l(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return Csa(a,d,f);return Csa(a,d)})},Bsa=function(a){return new lk(new B.BehaviorSubject(a.url),new B.BehaviorSubject(a.params),new B.BehaviorSubject(a.queryParams),new B.BehaviorSubject(a.fragment),
new B.BehaviorSubject(a.data),a.outlet,a.component,a)},Esa=function(a){var b=ek(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,c=b.redirectTo;b=b.navigationBehaviorOptions;a=Dsa(0,a);a.url=c;a.navigationBehaviorOptions=b;return a},Dsa=function(a,b){var c=Error("Xb`");c.ngNavigationCancelingError=!0;c.cancellationCode=a;b&&(c.url=b);return c},Fsa=function(a,b){a.providers&&!a._injector&&(a._injector=Kga(a.providers,b,"Route: "+a.path));var c;return null!=(c=a._injector)?c:b},Gsa=function(a){var b=
a.children&&a.children.map(Gsa);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||"primary"===a.outlet||(a.component=mk);return a},nk=function(a){return a.outlet||"primary"},Hsa=function(a,b){var c=a.filter(function(d){return nk(d)===b});c.push.apply(c,p(a.filter(function(d){return nk(d)!==b})));return c},ok=function(a){if(!a)return null;var b;if(null==(b=a.routeConfig)?0:b._injector)return a.routeConfig._injector;for(a=a.parent;a;a=
a.parent){b=a.routeConfig;var c=void 0;if(null==(c=b)?0:c._loadedInjector)return b._loadedInjector;c=void 0;if(null==(c=b)?0:c._injector)return b._injector}return null},pk=function(){return zf(function(a){return(0,B.combineLatest)(a.map(function(b){return b.pipe(nf(),yf(Isa))})).pipe(A(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,!0!==c){if(c===Isa)return Isa;if(!1===c||c instanceof dk)return c}return!0}),cf(function(b){return b!==Isa}),nf())})},qk=function(a,b){var c=Symbol(),
d=b.get(a,c);return d===c?"function"!==typeof a||null!==tda(a)?b.get(a):a:d},rk=function(a,b,c,d,e){e=void 0===e?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=ik(b);a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),u=e;u=void 0===u?{canDeactivateChecks:[],canActivateChecks:[]}:u;var x=h.value,y=k?k.value:null,E=c?c.getContext(h.value.outlet):null;if(y&&x.routeConfig===y.routeConfig){var H=Jsa(y,x,x.routeConfig.runGuardsAndResolvers);H?u.canActivateChecks.push(new Ksa(q)):
(x.data=y.data,x._resolvedData=y._resolvedData);x.component?rk(h,k,E?E.children:null,q,u):rk(h,k,c,q,u);H&&E&&E.outlet&&E.outlet.isActivated&&u.canDeactivateChecks.push(new Lsa(E.outlet.component,y))}else y&&sk(k,E,u),u.canActivateChecks.push(new Ksa(q)),x.component?rk(h,null,E?E.children:null,q,u):rk(h,null,c,q,u);delete f[h.value.outlet]});Object.entries(f).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;return sk(k,c.getContext(h),e)});return e},Jsa=function(a,b,c){if("function"===
typeof c)return c(a,b);switch(c){case "pathParamsChange":return!ak(a.url,b.url);case "pathParamsOrQueryParamsChange":return!ak(a.url,b.url)||!Yj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!zsa(a,b)||!Yj(a.queryParams,b.queryParams);default:return!zsa(a,b)}},sk=function(a,b,c){var d=ik(a),e=a.value;Object.entries(d).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;e.component?b?sk(h,b.children.getContext(f),c):sk(h,null,c):sk(h,b,c)});
e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new Lsa(b.outlet.component,e)):c.canDeactivateChecks.push(new Lsa(null,e)):c.canDeactivateChecks.push(new Lsa(null,e))},tk=function(a){return"function"===typeof a},Msa=function(a){return a instanceof B.EmptyError||"EmptyError"===(null==a?void 0:a.name)},Psa=function(a,b){return Xe(function(c){var d=c.targetSnapshot,e=c.currentSnapshot,f=c.guards,h=f.canActivateChecks;f=f.canDeactivateChecks;return 0===f.length&&0===h.length?
(0,B.of)(Object.assign({},c,{guardsResult:!0})):Nsa(f,d,e,a).pipe(Xe(function(k){return k&&"boolean"===typeof k?Osa(d,h,a,b):(0,B.of)(k)}),A(function(k){return Object.assign({},c,{guardsResult:k})}))})},Nsa=function(a,b,c,d){return(0,B.from)(a).pipe(Xe(function(e){return Qsa(e.component,e.route,c,b,d)}),qf(function(e){return!0!==e},!0))},Osa=function(a,b,c,d){return(0,B.from)(b).pipe(Xe(function(e){var f=B.concat;var h=e.route.parent;null!==h&&d&&d(new Rsa(h));h=(0,B.of)(!0);var k=e.route;null!==
k&&d&&d(new Ssa(k));k=(0,B.of)(!0);return f.call(B,h,k,Tsa(a,e.path,c),Usa(a,e.route,c))},1),qf(function(e){return!0!==e},!0))},Usa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||0===d.length)return(0,B.of)(!0);d=d.map(function(e){return(0,B.defer)(function(){var f,h=null!=(f=ok(b))?f:c,k=qk(e,h);f=k&&tk(k.canActivate)?k.canActivate(b,a):h.runInContext(function(){return k(b,a)});return Zj(f).pipe(qf())})});return(0,B.of)(d).pipe(pk())},Tsa=function(a,b,c){var d=b[b.length-
1];b=b.slice(0,b.length-1).reverse().map(function(e){var f=e.routeConfig?e.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:e,guards:f}:null}).filter(function(e){return null!==e}).map(function(e){return(0,B.defer)(function(){var f=e.guards.map(function(h){var k,q=null!=(k=ok(e.node))?k:c,u=qk(h,q);h=u&&tk(u.canActivateChild)?u.canActivateChild(d,a):q.runInContext(function(){return u(d,a)});return Zj(h).pipe(qf())});return(0,B.of)(f).pipe(pk())})});return(0,B.of)(b).pipe(pk())},Qsa=function(a,
b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||0===f.length)return(0,B.of)(!0);f=f.map(function(h){var k,q=null!=(k=ok(b))?k:e,u=qk(h,q);h=u&&tk(u.canDeactivate)?u.canDeactivate(a,b,c,d):q.runInContext(function(){return u(a,b,c,d)});return Zj(h).pipe(qf())});return(0,B.of)(f).pipe(pk())},Wsa=function(a,b,c){var d=b.canLoad;if(void 0===d||0===d.length)return(0,B.of)(!0);d=d.map(function(e){var f=qk(e,a);e=f&&tk(f.canLoad)?f.canLoad(b,c):a.runInContext(function(){return f(b,
c)});return Zj(e)});return(0,B.of)(d).pipe(pk(),Vsa())},Vsa=function(){return(0,B.pipe)(Bf(function(a){if(ek(a))throw Esa(a);}),A(function(a){return!0===a}))},Xsa=function(a,b,c){var d=b.canMatch;if(!d||0===d.length)return(0,B.of)(!0);d=d.map(function(e){var f=qk(e,a);e=f&&tk(f.canMatch)?f.canMatch(b,c):a.runInContext(function(){return f(b,c)});return Zj(e)});return(0,B.of)(d).pipe(pk(),Vsa())},uk=function(a){return(0,B.throwError)(new Ysa(a))},ata=function(a,b,c,d){var e=Zsa(a,b,c);if(!e.matched)return(0,B.of)(e);
d=Fsa(b,d);return Xsa(d,b,c).pipe(A(function(f){return!0===f?e:Object.assign({},$sa)}))},Zsa=function(a,b,c){if(""===b.path)return"full"===b.pathMatch&&(a.hasChildren()||0<c.length)?Object.assign({},$sa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||Gra)(c,a,b);if(!a)return Object.assign({},$sa);var d={},e;Object.entries(null!=(e=a.posParams)?e:{}).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;d[h]=k.path});e=0<a.consumed.length?
Object.assign({},d,a.consumed[a.consumed.length-1].parameters):d;var f;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:e,positionalParamSegments:null!=(f=a.posParams)?f:{}}},eta=function(a,b,c,d){if(0<c.length&&bta(a,c,d)){var e=ck;a=new ck(c,a.children);c={};c.primary=a;a=l(d);for(d=a.next();!d.done;d=a.next())if(d=d.value,""===d.path&&"primary"!==nk(d)){var f=new ck([],{});c[nk(d)]=f}c={segmentGroup:new e(b,c),slicedSegments:[]}}else if(0===
c.length&&cta(a,c,d)){b=ck;e=a.segments;f=a.children;var h={};d=l(d);for(var k=d.next();!k.done;k=d.next())if(k=k.value,dta(a,c,k)&&!f[nk(k)]){var q=new ck([],{});h[nk(k)]=q}a=Object.assign({},f,h);c={segmentGroup:new b(e,a),slicedSegments:c}}else c={segmentGroup:new ck(a.segments,a.children),slicedSegments:c};return c},bta=function(a,b,c){return c.some(function(d){return dta(a,b,d)&&"primary"!==nk(d)})},cta=function(a,b,c){return c.some(function(d){return dta(a,b,d)})},dta=function(a,b,c){return(a.hasChildren()||
0<b.length)&&"full"===c.pathMatch?!1:""===c.path},fta=function(a){a.sort(function(b,c){return"primary"===b.value.outlet?-1:"primary"===c.value.outlet?1:b.value.outlet.localeCompare(c.value.outlet)})},gta=function(a){return(a=a.value.routeConfig)&&""===a.path},hta=function(a){var b=[],c=new Set;a=l(a);for(var d=a.next(),e={};!d.done;e={node$jscomp$111:e.node$jscomp$111},d=a.next())e.node$jscomp$111=d.value,gta(e.node$jscomp$111)?(d=b.find(function(f){return function(h){return f.node$jscomp$111.value.routeConfig===
h.value.routeConfig}}(e)),void 0!==d?(d.children.push.apply(d.children,p(e.node$jscomp$111.children)),c.add(d)):b.push(e.node$jscomp$111)):b.push(e.node$jscomp$111);a=l(c);for(e=a.next();!e.done;e=a.next())e=e.value,d=hta(e.children),b.push(new jk(e.value,d));return b.filter(function(f){return!c.has(f)})},jta=function(a,b,c,d,e,f){return Xe(function(h){return(new ita(a,b,c,d,h.extractedUrl,void 0===f?"emptyOnly":f,e)).recognize().pipe(A(function(k){return Object.assign({},h,{targetSnapshot:k.state,
urlAfterRedirects:k.tree})}))})},lta=function(a,b){return Xe(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return(0,B.of)(c);var f=0;return(0,B.from)(e).pipe(Xe(function(h){return kta(h.route,d,a,b)},1),Bf(function(){return f++}),rf(),Xe(function(){return f===e.length?(0,B.of)(c):B.EMPTY}))})},kta=function(a,b,c,d){var e=a.routeConfig,f=a._resolve;void 0!==(null==e?void 0:e.title)&&"string"!==typeof e.title&&null!==e.title&&(f[vk]=e.title);return mta(f,a,b,d).pipe(A(function(h){a._resolvedData=
h;a.data=vsa(a,c).resolve;!e||"string"!==typeof e.title&&null!==e.title||(a.data[vk]=e.title);return null}))},mta=function(a,b,c,d){var e=nta(a);if(0===e.length)return(0,B.of)({});var f={};return(0,B.from)(e).pipe(Xe(function(h){return ota(a[h],b,c,d).pipe(qf(),Bf(function(k){f[h]=k}))}),rf(),sf(f),gf(function(h){return Msa(h)?B.EMPTY:(0,B.throwError)(h)}))},nta=function(a){return[].concat(p(Object.keys(a)),p(Object.getOwnPropertySymbols(a)))},ota=function(a,b,c,d){var e,f=null!=(e=ok(b))?e:d,h=qk(a,
f);a=h.resolve?h.resolve(b,c):f.runInContext(function(){return h(b,c)});return Zj(a)},pta=function(a){return zf(function(b){var c=a(b);return c?(0,B.from)(c).pipe(A(function(){return b})):(0,B.of)(b)})},qta=function(a){return a&&"object"===typeof a&&"default"in a?a["default"]:a},rta=function(a,b){a.events.pipe(cf(function(c){return c instanceof wk||c instanceof xk||c instanceof yk||c instanceof zk}),A(function(c){return c instanceof wk||c instanceof zk?0:c instanceof xk&&(0===c.code||1===c.code)?
2:1}),cf(function(c){return 2!==c}),nf()).subscribe(function(){b()})},sta=function(a){throw a;},tta=function(a,b){return b.parse("/")},uta=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},vta=function(a){for(var b=[];a;){var c=void 0,d=void 0;b.push(null!=(d=null==(c=a.routeConfig)?void 0:c.path)?d:"");c=void 0;a=null==(c=a.children)?void 0:c[0]}return b.join("/")},wta=function(a){return a instanceof wk},xta=function(a){return a instanceof Ak},Bk=function(a){return null==console?!1:"function"===
typeof console[a]},Ck=function(){Bk("debug")&&console.debug.apply(console,xd.apply(0,arguments))},Dk=function(){Bk("info")&&console.info.apply(console,xd.apply(0,arguments))},yta=function(){Bk("log")&&console.log.apply(console,xd.apply(0,arguments))},Ek=function(){Bk("warn")&&console.warn.apply(console,xd.apply(0,arguments))},zta=function(){Bk("error")&&console.error.apply(console,xd.apply(0,arguments))},Ata=function(a){return function(b){return new B.Observable(function(c){return b.subscribe(function(d){return void a.run(function(){return void c.next(d)})},
function(d){return void a.run(function(){return void c.error(d)})},function(){return void a.run(function(){return void c.complete()})})})}},Fk=function(a,b){b=new B.BehaviorSubject(b);a.subscribe(b);return b},Gk=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},Hk=function(){return mf(function(a,b){return ki(a,b)})},Bta=function(){return function(a){return a.pipe(A(function(b){return{event:b,timestamp:Date.now()}}),aia(a.pipe(jf(1E4,B.asapScheduler))))}},Cta=function(a){return a.keys.join("-")+
"-"+a.description+"-"+a.displayAs},Dta=function(a,b){a&1&&(D(0,"tr")(1,"td",5),Q(2),F(),D(3,"td"),Q(4,":"),F(),D(5,"td",6),Q(6),F()());a&2&&(a=b.$implicit,w(2),jg(a.displayAs),w(4),jg(a.description))},Eta=function(a,b){a&1&&(D(0,"thead")(1,"tr"),G(2,"th",3),D(3,"th",4),Q(4),F()(),P(5,Dta,7,2,"tr",1),F());a&2&&(a=b.$implicit,w(4),jg(a.title),w(1),C("ngForOf",a.hotkeys))},Ik=function(){return Fta.performance&&Fta.PerformanceObserver&&"function"===typeof window.performance.getEntriesByType&&"function"===
typeof window.performance.mark&&"function"===typeof window.performance.measure},Gta=function(a){var b=a.name;if(null!=b&&(a=Math.round(a.duration),!isNaN(a))){var c=l(b.split(" -> ")),d=c.next().value;c=c.next().value;if(null==d||null==c)console.warn("can't parse 'from' and 'to' in PerformanceEntry: "+b);else return{from:d,to:c,duration:a}}},Ita=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(Hta);if(null!=b){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===
c})}},Mta=function(){var a=window.performance.getEntries(),b=Ita(a);if(null==b)return[];var c=b.startTime;return a.filter(Jta).filter(Kta).filter(Lta).filter(function(d){return d.startTime<=c})},Hta=function(a){var b=a.name;return"measure"===a.entryType&&0===b.indexOf("browserStart")},Jta=function(a){return 0!==a.name.indexOf("Zone")},Lta=function(a){return"resource"===a.entryType},Nta=function(a){return"xmlhttprequest"===a.initiatorType},Kta=function(a){return null==a.name.match(/\.html$/)},Ota=
function(a,b){var c=b.transferSize||0,d=a.count+1,e=a.cacheHits+(0===c?1:0);return{count:d,duration:a.duration+b.duration,transferSize:a.transferSize+c,cacheHits:e,cacheHitRate:e/d}},Kk=function(a){return function(){var b=Jk.getItem(a);return null==b?!1:!!JSON.parse(b)}},Pta=function(a){return function(b){!0===b?Jk.setItem(a,"1"):Jk.removeItem(a)}},Qta=function(){return"function"===typeof Lk.gtag},Rta=function(a){if(null!=a&&!(3E4<=a.duration))return{hitType:"event",eventCategory:"cf",eventAction:a.from,
eventLabel:a.to,eventValue:a.duration}},Uta=function(a){a=a.getEntries().map(Gta).map(Rta);a=l(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c&&c.hitType){b=c.hitType;var d=c.eventAction;var e=c.eventCategory,f=c.eventLabel;c=c.eventValue;d=Object.assign({},void 0!==d?{event_action:d}:{},void 0!==e?{event_category:e}:{},void 0!==f?{event_label:f}:{},void 0!==c?{event_value:c}:{});Sta(b,d)}}setTimeout(Tta,100)},Tta=function(){if(!Vta){var a=Mta(),b=a.filter(function(c){return!Nta(c)}).reduce(Ota,
Wta());Mk("r-until-cf","asset","count",b.count);Mk("r-until-cf","asset","transferSize",b.transferSize);Mk("r-until-cf","asset","duration",b.duration);Mk("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(Nta).reduce(Ota,Wta());Mk("r-until-cf","xhr","count",a.count);Mk("r-until-cf","xhr","transferSize",a.transferSize);Mk("r-until-cf","xhr","duration",a.duration);Vta=!0}},Mk=function(a,b,c,d){Sta(a,Object.assign({},void 0!==b?{event_action:b}:{},void 0!==c?{event_label:c}:{},void 0!==d?
{event_value:d}:{}))},Sta=function(a,b){null!=b&&(Xta("page_location","Scrubbed Page URL"),Xta("page_title","Scrubbed Page Title"),Qta()&&Lk.gtag("event",a,b),Yta&&Dk("[stub gtag.ts] gtag('event')",a,b))},Ok=function(a,b){Nk(a,b)},Xta=function(a,b){if(Qta()){var c={};Lk.gtag("set",(c[a]=b,c))}Yta&&Dk("[stub gtag.ts] gtag('set', {"+a+": "+b+")}")},Nk=function(a,b){if(Qta()){var c={};Lk.gtag("set","user_properties",(c[a]=b,c))}Yta&&Dk("[stub gtag.ts] gtag('set', 'user_properties', {"+a+": "+b+")}")},
Zta=function(a){a=void 0===a?!1:a;var b=Fra(),c=b.total,d=b.redundancyRatio;Mk("after-60s","xhr","redundant",b.redundant);Mk("after-60s","xhr","total",c);Mk("after-60s","xhr","redundancyRatio",d);a&&(console.table(Dra()),console.log(b))},Qk=function(a,b){return Pk("issues/:issueId",{id:a,params:b})},$ta=function(a,b){return Pk("issues/:issueId/dependencies",{id:a,params:b})},Sk=function(a){return Rk("issues",{params:a})},aua=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):
null},bua=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},cua=function(a,b){return Pk("components/:componentId/manage",{id:a,tab:b})},dua=function(a){return a?Rk("settings/:settingsTab?",{id:a,token:":settingsTab?"}):Rk("settings")},Pk=function(a,b){b=void 0===b?{}:b;return null==b.id?"":Rk(a,b)},Rk=function(a,b){var c=b=void 0===b?{}:b;b=c.id;var d=c.params,e=c.tab;c=c.token;var f=a;null!=b&&(f=a.replace(c?c:/:\w+/,b.toString()));d&&(f=eua(f,d));e&&(f=
f+"#"+e);return f},fua=function(a,b){b=(void 0===b?{}:b).comment;return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},Tk=function(a,b){b=void 0===b?{}:b;b=void 0===b?{}:b;a={q:"status:open componentid:"+a};b.includeArchived&&(a.q+=" archived:all");a={path:"/issues",queryParams:a};a.queryParams.s="created_time:desc";return a},gua=function(a){var b={};a=(b.component=a?String(a):void 0,b);a=void 0===a?{}:a;return{path:"/issues/new",queryParams:a}},hua=function(a){return{path:"/components/"+a}},iua=
function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},jua=function(a){return{path:"/slos/"+a+"/edit"}},kua=function(a){for(var b={},c=l(a.keys),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.getAll(d);b[d]=1<e.length?e:e[0]}return b},Vk=function(a,b,c,d){return{status:a,displayValue:Uk[a],open:b,assigneeRequirement:c,sortOrder:d}},nua=function(a,b){var c=new lua;mua(c,a,b);return c},mua=function(a,b,c){var d=sa(b.snapshot),e=b.aggregatedData;var f=b&&b.accessLimit?
b.accessLimit.accessLevel:void 0;a.accessLevel=f;a.id=b.issueId;a.issueId=b.issueId;a.trackerId=b.trackerId;d.componentId&&(a.componentId=d.componentId);c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?a.componentPath=c.componentPathInfo:a.componentPath=[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var h;a.isClosed=!(null==(h=Wk[d.status])?0:h.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=vi(d.reporterUser);
a.assignee=vi(d.assigneeUser);a.assigneeEmail=zi(d.assigneeUser);a.verifier=vi(d.verifierUser);a.verifierEmail=zi(d.verifierUser);a.cc=wi(d.ccUsers);a.collaborator=wi(d.collaboratorsUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:0;a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&e.resolvedTimeMicros?
Math.round(e.resolvedTimeMicros/1E3):null;a.verifiedTime=e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;d.inProd&&(a.inProd=
d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;a.starred=b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.collaboratorCount=d.collaboratorsUsers?d.collaboratorsUsers.length:0;a.lastModifier=vi(d.authorUser);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(b=l(c.componentPathInfo.allCustomField),
c=b.next();!c.done;c=b.next())c=c.value,a.customFieldMap[String(c.customFieldId)]=c,a.customFieldNameToIdMap[c.name.toLowerCase()]=c.customFieldId;if(d.customField)for(b=l(d.customField),c=b.next();!c.done;c=b.next())c=c.value,a.customFieldValueMap[String(c.customFieldId)]=c;a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?e.sloStatus||null:null;a.sloStartTime=d.sloStartTime;a.sloEndTime=d.sloEndTime;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;
d.effort&&(a.effort=d.effort);a.issueAccessLevel=d.issueAccessLimitLevel},Xk=function(a){if(null!=a&&(a=String(a),""!==a.trim()))return a=Number(a),isNaN(a)?void 0:a},Yk=function(a){if(null!=a)return String(a)},Zk=function(a){if(null!=a&&"0"!==a)return a},$k=function(a){return null==a?void 0:a},al=function(a){return null==a?null:a},bl=function(a){return function(b){return null==b?a:b}},cl=function(a){return null!=a},pua=function(a){if(!a.getType())throw Error("bc");var b={type:oua[a.getType()]};if(a=
Xk(a.getCustomFieldId()))b.customFieldId=a;return b},rua=function(a){var b=new dl;void 0!==a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));void 0!==a.type&&b.setType(qua[a.type]);return b},sua=function(a){var b=a.getField();if(!b)throw Error("cc");if(!a.getDirection())throw Error("dc");return{field:pua(b),direction:1===a.getDirection()?"ASCENDING":"DESCENDING"}},tua=function(a){var b=new el;b.setField(rua(a.field));b.setDirection("ASCENDING"===a.direction?1:2);return b},vua=function(a){return"CUSTOM_FIELD"===
a.type?[uua[qua[a.type]],a.customFieldId].join(":"):uua[qua[a.type]]},xua=function(a){return a.includes(":")?(a=l(a.split(":")),a.next(),a=a.next().value,{type:"CUSTOM_FIELD",customFieldId:fl(a)}):{type:oua[wua[a]]}},yua=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=ii(a,1))?void 0:b.map(xua))?c:[]},zua=function(a){var b=new gl;a=a.map(vua);return yj(b,1,a)},Aua=function(a){var b=l(a.trim().split(" ")),c=b.next().value;a=b.next().value;bf(b);b=xua(c);c="DESCENDING";"asc"===a&&(c="ASCENDING");
return{field:b,direction:c}},Bua=function(a){return a.split(",").filter(Boolean).map(Aua)},Cua=function(a){return vua(a.field)+" "+("ASCENDING"===a.direction?"asc":"desc")},Dua=function(a){if(null!=a){var b=a.getYear();if(null==b)Ek("No year. dateToJs");else{var c=a.getDay();if(null==c)Ek("No day. dateToJs");else if(a=a.getMonth(),null==a)Ek("No month. dateToJs");else return{year:b,day:c,month:a}}}},Eua=function(a){var b=new hl;il(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},jl=function(a){if(null!=
a){var b=a.getSeconds();a=a.getNanos();return{seconds:b,nanos:a}}},kl=function(a){var b=new gj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Fua=function(a){var b=new ll;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Gua=function(a){if(null!=a)return Number(a.toDate())},Hua=function(a){var b=void 0===a.seconds?0:a.seconds;a=void 0===a.nanos?0:a.nanos;if(-1E9>=a||1E9<=a)b+=Math.trunc(a/1E9),a%=1E9;0>a&&(a+=1E9,--b);return kl({seconds:b,nanos:a})},Iua=function(a){if(!a)return 0;a=1E9*
a.getSeconds()+a.getNanos();return Math.round(a/1E3)},Jua=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new ml;b&&e.setEmailAddress(b);c&&e.setObfuscatedEmailAddress(c);(null==d?0:d.length)&&e.setAliasesList(d);if(a)switch(a){case "UNSPECIFIED":e.setUserGaiaStatus(0);break;case "ACTIVE":e.setUserGaiaStatus(1);break;case "DELETED":e.setUserGaiaStatus(2);break;case "UNAVAILABLE":e.setUserGaiaStatus(3);break;default:$h(a)}return e},nl=function(a){var b=
{},c=a.getEmailAddress();c&&(b.emailAddress=c);if(c=a.getObfuscatedEmailAddress())b.obfuscatedEmailAddress=c;c=a.getUserGaiaStatus();switch(c){case 0:b.userGaiaStatus="UNSPECIFIED";break;case 1:b.userGaiaStatus="ACTIVE";break;case 2:b.userGaiaStatus="DELETED";break;case 3:b.userGaiaStatus="UNAVAILABLE";break;default:$h(c)}a=a.getAliasesList();if(null==a?0:a.length)b.aliases=a;return b},ol=function(a,b){if(Kua()&&!ki(a,b)){var c=function(d,e){return void 0===e?null:e};console.error("Discrepancy of messages during LeanFE migration.\n    ### obj1: "+
JSON.stringify(a,c,2)+"\n\n    ### obj2: "+JSON.stringify(b,c,2)+"\n    ");console.log({obj1:a,obj2:b})}},pl=function(a){var b,c;return null!=(c=null==(b=Oqa().getConfig())?void 0:Zb(b,4,Db).get(a))?c:!1},Pua=function(a){var b=new ql;b.setHotlistId(""+a.hotlistId);b.setName(a.name);b.setDescription(a.description);b.setArchived(a.archived);b.setCreatedTimeMicros(a.createdTimeMicros);b.setModifiedTimeMicros(a.modifiedTimeMicros);var c;b.setDisplayColumnList((null!=(c=a.displayColumn)?c:[]).map(rua));
var d;b.setSortOrderList((null!=(d=a.sortOrder)?d:[]).map(tua));void 0!==a.etag&&b.setEtag(a.etag);if(Lua){var e;c=zua(null!=(e=a.displayColumn)?e:[]);oj(b,gl,17,c);var f;e=(null!=(f=a.sortOrder)?f:[]).map(Cua).join(",");qj(b,16,e)}if(Mua){f=b.setIt;var h,k,q,u,x;e=(new rl).setHotlistId(a.hotlistId).setName(a.name).setDescription(a.description).setArchived(a.archived).setDefaultOrderBy((null!=(q=a.sortOrder)?q:[]).map(Cua).join(","));q=e.setDisplayPreferences;c=new gl;d=null!=(u=null==(h=a.displayColumn)?
void 0:h.map(vua))?u:[];h=yj(c,1,d);h=q.call(e,h).setCreatedTime(Hua({seconds:0,nanos:1E3*a.createdTimeMicros})).setModifiedTime(Hua({seconds:0,nanos:1E3*a.modifiedTimeMicros})).setOwnersList(null!=(x=null==(k=a.adminUsers)?void 0:k.map(Jua))?x:[]);if(void 0!==a.etag){k=h.setEtag;x=a.etag;if(x.length){u=!0;u=void 0===u?!1:u;if(Nua){if(u&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(x))throw Error("v");x=(Oua||(Oua=new TextEncoder)).encode(x)}else{q=0;e=new Uint8Array(3*
x.length);for(c=0;c<x.length;c++)if(d=x.charCodeAt(c),128>d)e[q++]=d;else{if(2048>d)e[q++]=d>>6|192;else{if(55296<=d&&57343>=d){if(56319>=d&&c<x.length){var y=x.charCodeAt(++c);if(56320<=y&&57343>=y){d=1024*(d-55296)+y-56320+65536;e[q++]=d>>18|240;e[q++]=d>>12&63|128;e[q++]=d>>6&63|128;e[q++]=d&63|128;continue}else c--}if(u)throw Error("v");d=65533}e[q++]=d>>12|224;e[q++]=d>>6&63|128}e[q++]=d&63|128}x=q===e.length?e:e.subarray(0,q)}x=new Pa(x,Sa)}else x=Oa();k.call(h,x)}f.call(b,h)}var E;b.setAdminUsersList((null!=
(E=a.adminUsers)?E:[]).map(Ci));return b},sl=function(a){if(!a.getHotlistId())throw Error("ic");if(!a.getName())throw Error("jc");if(!a.getCreatedTimeMicros())throw Error("kc");if(!a.getModifiedTimeMicros())throw Error("lc");var b,c,d,e,f={hotlistId:Number(a.getHotlistId()),name:a.getName(),description:null!=(b=a.getDescription())?b:"",archived:null!=(c=a.getArchived())?c:!1,createdTimeMicros:a.getCreatedTimeMicros(),modifiedTimeMicros:a.getModifiedTimeMicros(),displayColumn:(null!=(d=a.getDisplayColumnList())?
d:[]).map(pua),sortOrder:(null!=(e=a.getSortOrderList())?e:[]).map(sua),etag:a.getEtag(),adminUsers:Ai(a.getAdminUsersList())};Lua&&Zi(a,gl,17)&&(b=yua(Fi(a,gl,17)),ol(f.displayColumn,b),f.displayColumn=b);Lua&&Hi(a,16)&&(b=Bua(Hi(a,16)),ol(f.sortOrder,b),f.sortOrder=b);if(Mua&&a.hasIt()){a=a.getIt();if(!a.getHotlistId())throw Error("ec");if(!a.getName())throw Error("fc");if(!a.getCreatedTime())throw Error("gc");if(!a.getModifiedTime())throw Error("hc");var h,k,q,u;b=a.getHotlistId();c=a.getName();
d=null!=(k=a.getDescription())?k:"";k=null!=(q=a.getArchived())?q:!1;q=Iua(a.getCreatedTime());e=Iua(a.getModifiedTime());var x=yua(a.getDisplayPreferences()),y=Bua(a.getDefaultOrderBy()),E=a.getEtag(),H={};H=void 0===H.parsingErrorsAreFatal?!0:H.parsingErrorsAreFatal;if(E=Ta(E)){var J=E.length;if(Qua){var O=E;var R;H?(R=Rua)||(R=Rua=new TextDecoder("utf-8",{fatal:!0})):(R=Sua)||(R=Sua=new TextDecoder("utf-8",{fatal:!1}));O=J===O.length?O:O.subarray(0,J);try{var U=R.decode(O)}catch(Da){if(f=H){if(void 0===
Tua){try{R.decode(new Uint8Array([128]))}catch(Ga){}try{R.decode(new Uint8Array([97])),Tua=!0}catch(Ga){Tua=!1}}f=!Tua}f&&(Rua=void 0);throw Da;}}else{U=0;J=U+J;for(var Z=[],na=null,oa,wa;U<J;)oa=E[U++],128>oa?Z.push(oa):224>oa?U>=J?ca(H,Z):(wa=E[U++],194>oa||128!==(wa&192)?(U--,ca(H,Z)):Z.push((oa&31)<<6|wa&63)):240>oa?U>=J-1?ca(H,Z):(wa=E[U++],128!==(wa&192)||224===oa&&160>wa||237===oa&&160<=wa||128!==((O=E[U++])&192)?(U--,ca(H,Z)):Z.push((oa&15)<<12|(wa&63)<<6|O&63)):244>=oa?U>=J-2?ca(H,Z):(wa=
E[U++],128!==(wa&192)||0!==(oa<<28)+(wa-144)>>30||128!==((O=E[U++])&192)||128!==((R=E[U++])&192)?(U--,ca(H,Z)):(oa=(oa&7)<<18|(wa&63)<<12|(O&63)<<6|R&63,oa-=65536,Z.push((oa>>10&1023)+55296,(oa&1023)+56320))):ca(H,Z),8192<=Z.length&&(na=aaa(na,Z),Z.length=0);U=aaa(na,Z)}O=U}else O="";O={hotlistId:b,name:c,description:d,archived:k,createdTimeMicros:q,modifiedTimeMicros:e,displayColumn:x,sortOrder:y,etag:O||void 0,adminUsers:null!=(u=null==(h=a.getOwnersList())?void 0:h.map(nl))?u:[]};ol(f,O);return O}return f},
Uua=function(a){var b;return(null!=(b=Ji(a,ql,1))?b:[]).map(sl)},Wua=function(a){if(a)return{accessLevel:Vua[a.getAccessLevel()]}},Yua=function(a){return(new tl).setAccessLevel(Xua[a.accessLevel])},ul=function(a){return new pi(a.year,a.month-1,a.day)},vl=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},Zua=function(a){return!(!a||null==a.day||null==a.month||null==a.year)},$ua=function(a){return a?vl(ri(a)):null},ava=function(a){return a?(a=fl(a),isNaN(a)?null:a):null},
bva=function(a){var b=new wl;b.customFieldId=a.customFieldId;b.componentId=a.componentId;b.name=a.name;b.type=a.type;b.description=a.description||"";a.typedDefaultValue&&(b.typedDefaultValue=new xl(a.typedDefaultValue));b.required=!!a.required;b.fieldSignificance=a.fieldSignificance||"MINOR";b.allowedValue=a.allowedValue||null;var c;b.stateOnIssues=null!=(c=a.stateOnIssues)?c:"INHERIT";c=a.enabledOnIssues;b.enabledOnIssues=null==c?!0:c;b.shared=a.shared;return b},cva=function(a){return String(a)},
yl=function(a){var b=Xk(a);if(null==b)throw Error("mc`"+a);return b},eva=function(a){if(null!=a)return{customFieldId:$k(a.getCustomFieldId()),standardField:dva[a.getStandardField()]}},gva=function(a){var b=new zl;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&b.setStandardField(fva[a.standardField]);return b},iva=function(a){if(a&&(a=hva(a)))return bva(a)},jva=function(a){if(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())(c=iva(c.value))&&b.push(c);return b}},hva=function(a){if(null!=
a){var b=a.getName();if(null==b)Ek("No name. customFieldToJs");else{var c=Xk(a.getCustomFieldId());if(null==c)Ek("No customFieldId. customFieldToJs");else{if(a.hasType())return{name:b,description:$k(a.getDescription()),required:$k(Ri(a,4)),enabledOnIssues:!!a.getEnabledOnIssues(),type:kva[a.getType()],customFieldId:c,componentId:Xk(a.getComponentId()),allowedValue:$k(ii(a,8)),stateOnIssues:lva[a.getStateOnIssues()],fieldSignificance:mva[Vi(a,9,0)],typedDefaultValue:nva(Fi(a,Al,10)),shared:!!a.getShared()};
Ek("No type. customFieldToJs")}}}},nva=function(a){if(null!=a){var b=Xk(a.getCustomFieldId());if(null==b)Ek("No customFieldId. customFieldValueToJs");else{var c=$k(ii(a,12));b={customFieldId:b,displayValues:c};switch(Bl(a,Cl)){case 4:b.textValue=$k(Hi(a,Dl(a,Cl,4)));break;case 5:b.dateValue=Dua(a.getDateValue());break;case 6:b.enumValue=$k(Hi(a,Dl(a,Cl,6)));break;case 7:b.numericValue=$k(El(a,Dl(a,Cl,7)));break;case 8:var d,e;b.repeatedTextValue={values:null!=(e=null==(d=Fl(a,Gl,8,Cl))?void 0:d.getValuesList())?
e:[]};break;case 10:var f,h;b.repeatedEnumValue={values:null!=(h=null==(f=Fl(a,Gl,10,Cl))?void 0:f.getValuesList())?h:[]};break;case 11:var k,q;b.repeatedNumericValue={values:null!=(q=null==(k=Fl(a,Hl,11,Cl))?void 0:k.getValuesList())?q:[]};break;case 9:var u,x,y,E;b.repeatedDateValue={values:null!=(E=null==(u=Fl(a,Il,9,Cl))?void 0:null==(x=u.getValuesList())?void 0:null==(y=x.map(Dua))?void 0:y.filter(cl))?E:[]}}return b}}},ova=function(a){var b=new Al;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));
a.displayValues&&yj(b,12,a.displayValues);if(void 0!==a.textValue)Jl(b,4,Cl,a.textValue);else if(void 0!==a.enumValue)Jl(b,6,Cl,a.enumValue);else if(void 0!==a.numericValue)Kl(b,7,Cl,nb(a.numericValue));else if(void 0!==a.dateValue)a=Eua(a.dateValue),Ll(b,5,Cl,a);else if(void 0!==a.repeatedTextValue){var c=new Gl;c.setValuesList(a.repeatedTextValue.values);Ll(b,8,Cl,c)}else void 0!==a.repeatedEnumValue?(c=new Gl,c.setValuesList(a.repeatedEnumValue.values),Ll(b,10,Cl,c)):void 0!==a.repeatedNumericValue?
(c=new Hl,c.setValuesList(a.repeatedNumericValue.values),Ll(b,11,Cl,c)):void 0!==a.repeatedDateValue&&(c=new Il,c.setValuesList(a.repeatedDateValue.values.map(Eua)),Ll(b,9,Cl,c));return b},pva=function(a){return iva(Fi(a,Ml,1))},tva=function(a){var b=new Ml;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(qva[a.type]);mj(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=ova(a.typedDefaultValue);
oj(b,Al,10,c)}a.allowedValue&&yj(b,8,a.allowedValue);b.setFieldSignificance(rva[a.fieldSignificance]);b.setStateOnIssues(sva[a.stateOnIssues]);b.setEnabledOnIssues(a.enabledOnIssues);b.setShared(a.shared);return b},uva=function(a,b){b&&(a.enabledOnIssues=b.enabledOnIssues,a.stateOnIssues=b.stateOnIssues)},vva=function(a){var b;return{paths:null!=(b=ii(a,1))?b:[]}},wva=function(a){return{noAccessEmails:ii(a,1),unknownEmails:ii(a,2)}},xva=function(a){if(null!=a){var b={},c;if(c=a.getUser())b.user=yi(c);
if(c=a.getGroup())b.group=yi(c);if(c=Hi(a,Dl(a,Nl,3)))b.alias=c;return b}},Pl=function(a){var b=new Ol;if(Tpa(a))return b.setUser(Ci(a.user)),b;if(void 0!==a.group)return b.setGroup(Ci(a.group)),b;void 0!==a.alias&&Jl(b,3,Nl,a.alias);return b},zva=function(a){var b=yva[Vi(a,10,0)],c,d,e,f,h,k,q,u,x,y;return{admins:Ql(null!=(c=Ji(a,Ol,2))?c:[]),appenders:Ql(null!=(d=a.getAppendersList())?d:[]),editors:Ql(null!=(e=Ji(a,Ol,4))?e:[]),readers:Ql(null!=(f=a.getReadersList())?f:[]),restrictedReaders:Ql(null!=
(h=Ji(a,Ol,11))?h:[]),restrictedPlusReaders:Ql(null!=(k=Ji(a,Ol,12))?k:[]),inheritedAdmins:Ql(null!=(q=Ji(a,Ol,3))?q:[]),implicitAppenders:Ql(null!=(u=Ji(a,Ol,7))?u:[]),implicitEditors:Ql(null!=(x=Ji(a,Ol,5))?x:[]),implicitReaders:Ql(null!=(y=Ji(a,Ol,9))?y:[]),implicitAccess:b}},Ql=function(a){return a.map(xva).filter(cl)},Ava=function(a){switch(a){case 2:return"PII";case 3:return"SPII";case 0:case 1:return"NONE_DETECTED";default:return $h(a,"Unexpected pii severity")}},Bva=function(a){switch(a){case "PII":return 2;
case "SPII":return 3;case "NONE_DETECTED":return 1;case "PII_SEVERITY_UNSPECIFIED":return 0;default:return $h(a,"Unexpected pii severity")}},Rl=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},Cva=function(a){switch(a){case "NONE_DETECTED":return 1;case "PII":return 2;case "SPII":return 3;default:return 1}},Dva=function(a){switch(a){case "PII":return"Restricted";case "SPII":return"Restricted+";default:return""}},Eva=function(a){var b=Xi(a,1)?Yi(a,1):void 0,c=a.hasResourcePath()?
a.getResourcePath():void 0,d=Ava(a.getSeverity());return{contentJudgementId:b,resourcePath:c,severity:d,judgementReason:a.getJudgementReason(),contentJudge:Hi(a,5)}},Fva=function(a){var b=new Sl;b.setJudgementReason(a.judgementReason);b.setSeverity(Bva(a.severity));return b},Hva=function(a){if(Tl(a,Ul,1,Vl)){var b=Fl(a,Ul,1,Vl);var c;b={plainSection:(null!=(c=Ji(b,Wl,1))?c:[]).map(Gva)}}else b=void 0;return{plainFormat:b,markdownFormat:Tl(a,Xl,2,Vl)?{content:Fl(a,Xl,2,Vl).getContent()}:void 0,literalFormat:Tl(a,
Yl,3,Vl)?{content:Fl(a,Yl,3,Vl).getContent()}:void 0}},Gva=function(a){return{isQuoted:Ri(a,1),content:a.getContent()}},Iva=function(a){var b=new Wl;return mj(b,1,a.isQuoted).setContent(a.content)},Ova=function(a){var b=new Zl;a.inherit&&b.setInherit(a.inherit);a.id&&b.setId(a.id);a.name&&b.setName(a.name);a.customFieldId&&b.setCustomFieldId(a.customFieldId);a.numericSpec&&Jva(b,Kva(new Lva,a.numericSpec.multiplier));if(a.enumSpec){var c;Mva(b,Nva(new $l,(null!=(c=a.enumSpec.options)?c:[]).map(function(d){return(new am).setLabel(d.label).setValue(d.value)})))}if(a.aggregationType){a:switch(a.aggregationType){case "MAX":a=
2;break a;case "SUM":a=1;break a;default:a=0}bm(b,6,a)}return b},Qva=function(a){return{retentionSelection:Pva[Vi(a,1,0)],retentionPeriodDays:hi(a,2),piiRetentionSelection:Pva[Vi(a,3,0)],piiRetentionPeriodDays:hi(a,4),spiiRetentionPeriodDays:hi(a,5)}},Sva=function(a){var b=new cm;rj(b,1,Rva[a.retentionSelection]);null!==a.retentionPeriodDays&&nj(b,2,a.retentionPeriodDays);rj(b,3,Rva[a.piiRetentionSelection]);null!==a.piiRetentionPeriodDays&&nj(b,4,a.piiRetentionPeriodDays);null!==a.spiiRetentionPeriodDays&&
nj(b,5,a.spiiRetentionPeriodDays);return b},Uva=function(a){if(null!=a){var b=al(jl(a.getRetentionPeriod())),c=al(jl(a.getScheduledDeletionTime()));b={retentionPeriod:b,scheduledDeletionTime:c};if(Tva&&a.hasIt()){c=a.getIt();if(null!=c){var d,e;a={retentionPeriod:null!=(d=jl(c.getRetentionPeriod()))?d:null,scheduledDeletionTime:null!=(e=jl(c.getScheduledDeletionTime()))?e:null}}else a=void 0;d=a;ol(b,d);return d}return b}},Wva=function(a){if(null!=a){a:{a=Fi(a,dm,1);if(null!=a){if(a.hasSeverity()){a=
{severity:Vva[a.getSeverity()]};break a}Ek("No severity. piiVerdictToJs")}a=void 0}return{piiVerdict:a}}},Xva=function(a){return{startTime:jl(null==a?void 0:a.getStartTime()),targetTime:jl(null==a?void 0:a.getTargetTime()),endTime:jl(null==a?void 0:a.getEndTime())}},Yva=function(a){var b=new em;a.startTime&&b.setStartTime(kl(a.startTime));a.targetTime&&b.setTargetTime(kl(a.targetTime));a.endTime&&b.setEndTime(kl(a.endTime));return b},Zva=function(a){return{startTime:jl(a.getStartTime()),endTime:jl(a.getEndTime()),
targetTime:jl(a.getTargetTime())}},$va=function(a){var b=new fm;a.startTime&&b.setStartTime(kl(a.startTime));a.endTime&&b.setEndTime(kl(a.endTime));a.targetTime&&b.setTargetTime(kl(a.targetTime));return b},bwa=function(a){var b=new gm;b.setInherit(a.inherit);b.setSource(awa[a.source]);b.setId(a.id);b.setComment(a.comment);wj(b,6,a.sourceComponentId);b.setSourceTeamId(a.sourceTeamId);return b},cwa=function(a){var b;return 1===(null==(b=a.getTeamSloEditPolicy())?void 0:Vi(b,2,0))},dwa=function(a){var b;
return 1===(null==(b=Fi(a,hm,1))?void 0:b.getEffectiveSloEditPolicy())},ewa=function(a){var b=Fi(a,ml,2);a:{var c=Vi(a,3,0);switch(c){case 1:c="daily";break a;case 2:c="weekly";break a;case 3:c="monthly";break a;case 0:break;default:$h(c)}c=void 0}var d=a.getTimeZone(),e=Fi(a,im,6);if(null==b)throw Error("nc");if(null==c)throw Error("oc");if(null==d)throw Error("pc");if(null==e)throw Error("qc");var f=a.getId();b=nl(b);a=hi(a,4);var h={id:d.getId()};d.getVersion()&&(h.version=d.getVersion());return{id:f,
lead:b,frequency:c,ordinal:a,timeZone:h,timeOfDay:{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds(),nanos:e.getNanos()}}},gwa=function(a){var b=(new jm).setId(a.id),c=Jua(a.lead);b=oj(b,ml,2,c).setFrequency(fwa(a.frequency));b=il(b,4,a.ordinal);c=b.setTimeZone;var d=a.timeZone,e=(new km).setId(d.id);d.version&&e.setVersion(d.version);b=c.call(b,e);a=a.timeOfDay;a=(new im).setHours(a.hours).setMinutes(a.minutes).setSeconds(a.seconds).setNanos(a.nanos);return oj(b,im,6,a)},jwa=function(a){return{metric:hwa[a.getMetric()],
matcher:a.getMatcher(),dayType:iwa[a.getDayType()],objective:jl(a.getObjective()),businessDays:a.getBusinessDays()}},mwa=function(a){var b=new lm;return rj(b,1,kwa[a.metric]).setMatcher(a.matcher).setDayType(lwa[a.dayType]).setObjective(Fua(a.objective)).setBusinessDays(a.businessDays)},mm=function(a){var b,c;return{sloId:a.getSloId(),version:a.getVersion(),name:a.getName(),description:a.getDescription(),parentId:a.getParentId(),elements:(null!=(b=Ji(a,lm,6))?b:[]).map(jwa),effectiveElements:(null!=
(c=Ji(a,lm,7))?c:[]).map(jwa),isArchived:a.getIsArchived(),alertState:nwa[Vi(a,9,0)]}},pwa=function(a){var b=(new nm).setSloId(a.sloId).setVersion(a.version).setName(a.name).setDescription(a.description).setParentId(a.parentId);var c=a.elements.map(mwa);b=om(b,6,c);c=a.effectiveElements.map(mwa);b=om(b,7,c).setIsArchived(a.isArchived);return rj(b,9,owa[a.alertState])},qwa=function(a){return{author:yi(a.getAuthor()),timestamp:jl(a.getTimestamp()),add:mm(a.getAdd()),remove:mm(a.getRemove()),addMask:vva(a.getAddMask()),
removeMask:vva(a.getRemoveMask())}},fwa=function(a){switch(a){case "daily":return 1;case "weekly":return 2;case "monthly":return 3;default:return $h(a)}},rwa=function(a){if(null!=a)return{tag:a.getTag(),text:a.getText()}},Awa=function(a){if(null!=a){var b,c,d,e,f,h,k,q,u=a.getTitle()||"",x=al(a.getComment()),y=swa(a.getFormattingMode()),E=al(a.getVersion()),H=al(a.getCreatedTimeMicros()),J=!!a.getIsArchived(),O=!!a.getInProd(),R=al(a.getIsDeleted()),U=al(ii(a,18)),Z=al(ii(a,35)),na=al(ii(a,19)),oa=
al(ii(a,20)),wa=al(ii(a,21)),Da=al(Xk(a.getComponentId())),Ga=null!=(h=Zk(Yi(a,15)))?h:null;h=al(null==(b=Ei(a,14))?void 0:b.map(Xk).filter(cl));b=al(null==(c=Ei(a,16))?void 0:c.map(Zk).filter(cl));c=al(null==(d=Ei(a,17))?void 0:d.map(Zk).filter(cl));d=al(null==(e=a.getHotlistIdList())?void 0:e.map(Xk).filter(cl));e=al(null==(f=Ei(a,30))?void 0:f.map(Zk).filter(cl));f=null!=(k=jl(a.getSloStartTime()))?k:null;k=null!=(q=jl(a.getSloEndTime()))?q:null;q=al(yi(Fi(a,Bi,36)));var Ub=al(yi(Fi(a,Bi,37))),
Vb=al(yi(Fi(a,Bi,38))),$a=al(yi(Fi(a,Bi,39))),ja=al(Ai(Ji(a,Bi,40))),ya=al(Ai(Ji(a,Bi,51))),Ha=Ji(a,Al,24).map(nva).filter(cl),ab=twa[a.getRetention()],Ra=mva[a.getSignificanceOverride()],Jc=uwa[Vi(a,28,0)],Ua=a.hasType()?vwa[a.getType()]:null,mb=a.hasPriority()?wwa[a.getPriority()]:null,Qa=a.hasSeverity()?xwa[a.getSeverity()]:null,Ab=a.hasStatus()?pm[a.getStatus()]:null,db=Ti(a,52)?ywa[Vi(a,52,0)]:null,Gb=a.hasAccessLimitLevel()?zwa[a.getAccessLimitLevel()]:null;a.hasEffort()?(a=a.getEffort(),a=
{specId:dj(a,1),estimate:Hi(a,2),averageDays:El(a,3),totalOpen:El(a,4),totalComplete:El(a,5)}):a=void 0;return{title:u,comment:x,formattingMode:y,version:E,createdTimeMicros:H,isArchived:J,inProd:O,isDeleted:R,changelist:U,postmortems:Z,foundInVersion:na,targetedToVersion:oa,verifiedInVersion:wa,componentId:Da,duplicateOfIssueId:Ga,attachmentId:h,blockedByIssueId:b,blockingIssueId:c,hotlistId:d,duplicateIssueId:e,sloStartTime:f,sloEndTime:k,authorUser:q,reporterUser:Ub,assigneeUser:Vb,verifierUser:$a,
ccUsers:ja,collaboratorsUsers:ya,customField:Ha,retention:ab,significanceOverride:Ra,deletionReason:Jc,type:Ua,priority:mb,severity:Qa,status:Ab,sloSnoozeType:db,issueAccessLimitLevel:Gb,effort:a}}},Kwa=function(a){var b=new qm;if(a.authorUser){var c=Ci(a.authorUser);oj(b,Bi,36,c)}a.createdTimeMicros&&b.setCreatedTimeMicros(a.createdTimeMicros);a.componentId&&b.setComponentId(String(a.componentId));a.version&&b.setVersion(a.version);a.type&&b.setType(Bwa[a.type]);a.status&&b.setStatus(Cwa[a.status]);
a.priority&&b.setPriority(Dwa[a.priority]);a.severity&&b.setSeverity(Ewa[a.severity]);void 0!==a.title&&b.setTitle(a.title);a.reporterUser&&(c=Ci(a.reporterUser),oj(b,Bi,37,c));a.assigneeUser&&(c=Ci(a.assigneeUser),oj(b,Bi,38,c));a.verifierUser&&(c=Ci(a.verifierUser),oj(b,Bi,39,c));a.ccUsers&&(c=a.ccUsers.map(Ci),om(b,40,c));a.collaboratorsUsers&&(c=a.collaboratorsUsers.map(Ci),om(b,51,c));a.attachmentId&&(c=a.attachmentId.map(cva),rm(b,14,c));a.duplicateOfIssueId&&wj(b,15,a.duplicateOfIssueId);a.blockedByIssueId&&
rm(b,16,a.blockedByIssueId);a.blockingIssueId&&rm(b,17,a.blockingIssueId);a.changelist&&yj(b,18,a.changelist);a.postmortems&&yj(b,35,a.postmortems);a.foundInVersion&&yj(b,19,a.foundInVersion);a.targetedToVersion&&yj(b,20,a.targetedToVersion);a.verifiedInVersion&&yj(b,21,a.verifiedInVersion);a.hotlistId&&b.setHotlistIdList(a.hotlistId.map(cva));a.customField&&(c=a.customField.map(ova),om(b,24,c));a.comment&&b.setComment(a.comment);a.formattingMode&&b.setFormattingMode(Fwa[a.formattingMode]);a.retention&&
b.setRetention(Gwa[a.retention]);a.isDeleted&&b.setIsDeleted(a.isDeleted);a.deletionReason&&b.setDeletionReason(Hwa[a.deletionReason]);a.significanceOverride&&b.setSignificanceOverride(rva[a.significanceOverride]);a.duplicateIssueId&&rm(b,30,a.duplicateIssueId);void 0!==a.inProd&&b.setInProd(a.inProd);void 0!==a.isArchived&&b.setIsArchived(a.isArchived);a.sloStartTime&&b.setSloStartTime(kl(a.sloStartTime));a.sloEndTime&&b.setSloEndTime(kl(a.sloEndTime));a.sloSnoozeType&&b.setSloSnoozeType(Iwa[a.sloSnoozeType]);
a.issueAccessLimitLevel&&b.setAccessLimitLevel(Jwa[a.issueAccessLimitLevel]);if(a.effort){c=b.setEffort;a=a.effort;var d=new sm;a.specId&&um(d,1,a.specId);a.estimate&&wm(d,2,a.estimate);a.averageDays&&bc(d,3,nb(a.averageDays),0);a.totalOpen&&bc(d,4,nb(a.totalOpen),0);a.totalComplete&&bc(d,5,nb(a.totalComplete),0);c.call(b,d)}return b},Lwa=function(a,b,c,d){a=(new xm).setIssueId(a);b&&(b=Jwa[b])&&(b=(new ym).setAccessLevel(b),a.setIssueAccessLimit(b));c&&a.setAddedCollaboratorsList(c.map(Ci));d&&a.setRemovedCollaboratorsList(d.map(Ci));
return a},Mwa=function(a){var b=new zm;b.setIssueId(String(a));return b},Owa=function(a){var b=new Nwa;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},Qwa=function(a){var b=new Pwa;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},Rwa=function(a){return{issueId:Zk(a.getIssueId()),status:pm[a.getStatus()],title:a.getTitle()}},Uwa=function(a){var b=new Swa;b.setFieldName(a.fieldName);a.value&&b.setValue(a.value);a.actionType&&b.setActionType(Twa[a.actionType]);
a.customFieldValue&&b.setCustomFieldValue(ova(a.customFieldValue));return b},Wwa=function(a){var b=new Vwa;b.setIssueId(String(a.issueId));b.setActionsList(a.actions.map(Uwa));return b},Zwa=function(a){var b=new Am,c=a.addHotlistIds.map(String);rm(b,1,c);c=a.removeHotlistIds.map(String);rm(b,2,c);var d=a.hotlistIssue;a=new Bm;a.setIssueId(String(d.issueId));d.position&&a.setPosition(d.position);if(d.issue){c=a.setIssue;d=d.issue;var e=new Cm;e.setIssueId(String(d.issueId));var f,h=(null!=(f=d.snapshot)?
f:[]).map(Kwa);om(e,2,h);if(d.userData){f=e.setUserData;h=d.userData;var k=new Dm;h.voted&&k.setVoted(h.voted);h.starred&&k.setStarred(h.starred);h.notificationSubscription&&k.setNotificationSubscription(Xwa[h.notificationSubscription]);void 0!==h.lastViewedTimeMicros&&xj(k,5,h.lastViewedTimeMicros);f.call(e,k)}if(d.aggregatedData){h=d.aggregatedData;f=new Em;xj(f,1,h.voteCount);f.setCreatedTimeMicros(h.createdTimeMicros);xj(f,4,h.resolvedTimeMicros);xj(f,5,h.verifiedTimeMicros);f.setModifiedTimeMicros(h.modifiedTimeMicros);
k=Ci(h.lastModifier);oj(f,Bi,10,k);f.setSloId(String(h.sloId));f.setTeamId(String(h.teamId));if(h.retentionState){k=f.setRetentionState;var q=h.retentionState,u=new Fm;if(Tva){var x=u.setIt,y=new Gm;q.retentionPeriod&&y.setRetentionPeriod(Fua(q.retentionPeriod));q.scheduledDeletionTime&&y.setScheduledDeletionTime(kl(q.scheduledDeletionTime));x.call(u,y)}q.retentionPeriod&&u.setRetentionPeriod(Fua(q.retentionPeriod));q.scheduledDeletionTime&&u.setScheduledDeletionTime(kl(q.scheduledDeletionTime));
k.call(f,u)}h.sloStatus&&(k=f.setSloStatus,h=h.sloStatus,q=new Hm,Ywa&&(u=q.setIt,x=new Im,h.assignmentBounds&&x.setAssignmentBounds(Yva(h.assignmentBounds)),h.responseBounds&&x.setResponseBounds(Yva(h.responseBounds)),h.closureBounds&&x.setClosureBounds(Yva(h.closureBounds)),u.call(q,x)),h.assignmentBounds&&q.setAssignmentBounds($va(h.assignmentBounds)),h.responseBounds&&q.setResponseBounds($va(h.responseBounds)),h.closureBounds&&q.setClosureBounds($va(h.closureBounds)),k.call(f,q));oj(e,Em,4,f)}d.accessLimit&&
e.setAccessLimit(Yua(d.accessLimit));f=d.customFields.map(bva).map(tva);om(e,15,f);var E;f=(null!=(E=d.visibleFields)?E:[]).map(gva);om(e,6,f);xj(e,7,d.majorModifiedTimeMicros);e.setParentIssueIdsList(d.parentIssueIds);if(d.ancestors)for(E=e.getAncestorsMap(),f=l(d.ancestors.entries()),h=f.next();!h.done;h=f.next())h=l(h.value),u=h.next().value,h=h.next().value,k=E,q=k.set,u=Number(u),x=new Jm,x.setSourceIssueIdsList(h.sourceIssueIds.map(Xk).filter(cl)),q.call(k,u,x);nj(e,10,d.childIssueCount);e.setIsArchived(d.isArchived);
c.call(a,e)}oj(b,Bm,3,a);return b},$wa=function(a){var b;return{issueDigests:(null!=(b=a.getIssueDigestsList())?b:[]).map(Rwa),numTotalResults:a.getNumTotalResults()}},cxa=function(a){var b=new axa;b.setIssueId(String(a.issueId));var c=a.targetIds.map(String);rm(b,2,c);b.setRelation(bxa[a.relation]);b.setActionType(Twa[a.actionType]);return b},exa=function(a){var b=new dxa;b.setIssueId(String(a.issueId));b.setRetention(Gwa[a.retention]);a.significanceOverride&&b.setSignificanceOverride(rva[a.significanceOverride]);
return b},gxa=function(a){var b=new fxa;b.setSnapshot(Kwa(a.snapshot));a.attachments&&b.setAttachmentsList(a.attachments);a.templateId&&b.setTemplateId(String(a.templateId));a.contentJudgement&&b.setContentJudgement(Fva(a.contentJudgement));return b},hxa=function(a){return{issueId:Zk(a.getIssueId())}},Lm=function(a){return{issueId:Zk(a.getIssueId()),updateText:Hi(a,2),formattedText:Zi(a,Km,3)?Hva(Fi(a,Km,3)):void 0,formattingMode:swa(a.getFormattingMode()),author:$k(yi(a.getAuthor())),updateTime:$k(jl(a.getUpdateTime())),
version:a.getVersion()}},swa=function(a){switch(a){case 0:break;case 1:return"PLAIN";case 2:return"MARKDOWN";case 3:return"LITERAL";default:return $h(a)}},ixa=function(a){var b=(new Mm).setQuery(a.query);b=rj(b,2,rva[a.minimumSignificance]);return nj(b,3,a.maximumSize)},jxa=function(a){a:{var b=a.getStatus();switch(b){case 1:b=0;break a;case 2:b=1;break a;case 3:b=2;break a;case 0:throw Error("rc");default:$h(b)}b=void 0}return{status:b,summary:Hi(a,2)}},kxa=function(a){var b=a.getFieldId();b=null!=
b?{customFieldId:$k(Xk(b.getCustomFieldId())),standardField:dva[b.getStandardField()]}:void 0;return{fieldId:b,stateOnIssues:lva[a.getStateOnIssues()],enabledOnIssues:a.getEnabledOnIssues()}},lxa=function(a){return{id:a.getId(),name:a.getName(),description:a.getDescription()}},nxa=function(a){var b=a.getTeamId(),c=a.getVersion(),d=a.getName(),e=a.getDescription(),f=a.getPathNamesList(),h=a.getPathIdsList().map(String),k=a.getCollapsedPathNamesList(),q=a.getMembersList().map(mxa),u=a.getDeleted(),
x=dj(a,9);var y=a.getSlo();y=null!=y?{inherit:y.getInherit(),sloId:y.getSloId(),comment:y.getComment(),sourceTeamId:y.getSourceTeamId()}:void 0;return{teamId:b,version:c,name:d,description:e,pathNames:f,pathIds:h,collapsedPathNames:k,members:q,deleted:u,estimatedComponentCount:x,slo:y,sloLead:yi(Fi(a,Bi,12)),defaultSloLead:yi(Fi(a,Bi,13))}},mxa=function(a){var b;return{user:null!=(b=yi(a.getUser()))?b:{},isLead:a.getIsLead()}},pxa=function(a){var b=new oxa;b.setIsLead(a.isLead);b.setUser(Ci(a.user));
return b},qxa=function(a){var b=new Nm;if(null==a)return b;b.setInherit(a.inherit);b.setSloId(a.sloId);b.setComment(a.comment);b.setSourceTeamId(a.sourceTeamId);return b},rxa=function(a){var b=new Om;b.setInherit(a.inherit);b.setId(String(a.id));return b},sxa=function(a){return{teamId:a.getId(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(),pathIds:a.getPathIdsList()}},txa=function(a){return{teamId:a.getTeamId(),score:a.getScore()}},uxa=function(a){var b=new Pm;b.setTeamId(a.teamId);
b.setScore(a.score);return b},vxa=function(a){return{author:yi(a.getAuthor()),timestamp:jl(a.getTimestamp()),add:Qm(a.getAdd()),remove:Qm(a.getRemove()),addMask:vva(a.getAddMask()),removeMask:vva(a.getRemoveMask())}},wxa=function(a){var b;return{updates:(null!=(b=a.getUpdatesList())?b:[]).map(vxa)}},yxa=function(a){var b,c=null!=(b=jva(Ji(a,Ml,4)))?b:[];b=Ji(a,xxa,5).map(kxa);if(b.length){b=new Map(b.map(function(h){return[h.fieldId.customFieldId,h]}));for(var d=l(c),e=d.next();!e.done;e=d.next())e=
e.value,uva(e,b.get(e.customFieldId))}var f;return{componentPathId:(null!=(f=Ei(a,1))?f:[]).map(yl),componentPathName:ii(a,2),allCustomField:c}},Qm=function(a){var b=a.hasRetentionSettings()?Qva(a.getRetentionSettings()):void 0,c=Zi(a,Rm,10)?yxa(Fi(a,Rm,10)):void 0;if(a.hasSlo()){var d=a.getSlo();d={inherit:d.getInherit(),source:zxa[d.getSource()],id:d.getId(),sourceComponentId:Yi(d,6),sourceTeamId:d.getSourceTeamId(),comment:d.getComment()}}else d=void 0;if(Zi(a,Zl,24)){var e=a.getEffortSpec();var f=
e.getInherit();var h=e.getId(),k=e.getName();a:switch(Vi(e,6,0)){case 2:var q="MAX";break a;case 1:q="SUM";break a;default:q="AGGREGATION_TYPE_UNSPECIFIED"}f={inherit:f,id:h,name:k,aggregationType:q,customFieldId:e.getCustomFieldId()};if(Tl(e,Lva,4,Sm)){var u=Fl(e,Lva,4,Sm);u&&(f.numericSpec={multiplier:El(u,1)})}else if(Tl(e,$l,5,Sm)&&(e=Fl(e,$l,5,Sm),f.enumSpec={options:[]},e&&0<(null==e?void 0:null==(u=Ji(e,am,1))?void 0:u.length)))for(u=l(Ji(e,am,1)),e=u.next();!e.done;e=u.next())e=e.value,k=
h=void 0,null==(h=f.enumSpec)||null==(k=h.options)||k.push({label:e.getLabel(),value:e.getValue()})}else f=void 0;a.hasTeam()?(u=a.getTeam(),u={inherit:u.getInherit(),id:u.getId()}):u=void 0;e=Wua(a.getAccessLimit());h=Vi(a,27,0);h=2===h?"ALL_PROTECTIONS":1===h?"NO_PROTECTIONS":e?"EXTERNAL_PUBLIC"===e.accessLevel?"ALL_PROTECTIONS":"NO_PROTECTIONS":"NO_PROTECTIONS";var x;k=yl(a.getComponentId());q=yl(Yi(a,2));var y=a.getName(),E=a.getDescription(),H=a.getArchived(),J=Hi(a,13);var O=1===Vi(a,15,0)?
"ENABLED":"DISABLED";return{componentId:k,parentComponentId:q,name:y,description:E,archived:H,componentPathInfo:c,accessLimit:e,emailAlias:J,commentEditState:O,defaultTemplateId:yl(Yi(a,18)),slo:d,bugscopeSloId:Yi(a,20),retentionSettings:b,fieldOrdering:Axa[Vi(a,23,0)],effortSpec:f,team:u,teamSuggestions:(null!=(x=a.getTeamSuggestionsList())?x:[]).map(txa),trackerId:"0"!==a.getTrackerId()?a.getTrackerId():void 0,spamProtection:h}},Bxa=function(a){var b=new Tm;wj(b,2,String(a.parentComponentId));b.setName(a.name);
b.setDescription(a.description);a.commentEditState&&b.setCommentEditState("ENABLED"===a.commentEditState?1:2);a.retentionSettings&&b.setRetentionSettings(Sva(a.retentionSettings));return b},Cxa=function(a){var b;return(null!=(b=Ji(a,Tm,1))?b:[]).map(Qm)},Dxa=function(a){return{warningHeader:Hi(a,1),warning:Hi(a,2),isAllowed:Ri(a,3),isExternalMove:Ri(a,4)}},Exa=function(a){return{templateId:a.getTemplateId(),componentId:yl(a.getComponentId()),default:!!a.getDefault(),name:a.getName(),description:a.getDescription(),
snapshot:Awa(a.getSnapshot())}},Fxa=function(a){var b=new Um;b.setTemplateId(a.templateId);b.setComponentId(String(a.componentId));b.setDefault(a.default);b.setName(a.name);b.setDescription(a.description);b.setSnapshot(Kwa(a.snapshot));return b},Gxa=function(a){var b={},c=$b(a,2,Ml,Eb).entries();c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;(e=iva(e))&&(b[yl(d)]=e)}return{snapshot:Awa(a.getSnapshot()),customFieldMap:b}},Hxa=function(a){var b;return(null!=
(b=Ji(a,Tm,1))?b:[]).map(Qm)},Ixa=function(a){var b=Qva(a.getRetentionSettings());return{componentPath:a.getComponentPath(),retentionSettings:b}},Jxa=function(a){return Ji(a,Vm,2).map(Ixa)},Lxa=function(a){return{encryptedMedia:Nb(Kxa(a,1)),errorMessage:a.getErrorMessage()}},Nxa=function(a){var b=new Mxa;rj(b,1,hc(a.attachment));void 0!==a.contentJudgement&&b.setContentJudgement(Fva(a.contentJudgement));return b},Pxa=function(a){var b;return{attachments:(null!=(b=a.getAttachmentsList())?b:[]).map(Oxa)}},
Oxa=function(a){if(null!=a){var b=Xk(a.getAttachmentId()),c=Hi(a,7),d=a.getEtag(),e=a.getContentType(),f=a.getDescription(),h=a.getFilename(),k=a.getLength(),q=twa[a.getPiiRetention()],u=Uva(a.getPiiRetentionState()),x=Qxa(a.getEntityStatus()),y=Wva(Fi(a,Rxa,9));a=Fi(a,Sxa,3);a=null!=a?{filename:$k(Ej(a,5)),length:$k(Wm(a,4)),contentType:$k(Ej(a,1))}:void 0;return{attachmentId:b,filecompUrl:c,etag:d,contentType:e,description:f,filename:h,length:k,piiRetention:q,piiRetentionState:u,entityStatus:x,
contentVerdict:y,media:a}}},Qxa=function(a){if(null!=a)return{reason:Txa[a.getReason()],status:Uxa[a.hasStatus()?a.getStatus():0]}},Zxa=function(a){if(null!=a){var b=a.getName();if(null==b)Ek("No name. eventDiffToJs");else{b={name:b,displayName:$k(a.getDisplayName()),timestamp:Gua(a.getTimestamp()),important:!!Ri(a,5),type:Vxa[a.getType()]};if(Tl(a,Xm,6,Ym)){var c=Fl(a,Xm,6,Ym);if(Tl(c,Wxa,1,Zm)){var d=Fl(c,Wxa,1,Zm);b.isUser=!0;b.oldValue=bl("<none>")(zi(null==d?void 0:Fi(d,Bi,1)));b.newValue=bl("<none>")(zi(null==
d?void 0:Fi(d,Bi,2)))}if(Tl(c,$m,2,Zm)){var e,f;b.oldValue=$k(null==(e=Fl(a,Xm,6,Ym))?void 0:null==(f=Fl(e,$m,2,Zm))?void 0:f.getOldValue());var h,k;b.newValue=$k(null==(h=Fl(a,Xm,6,Ym))?void 0:null==(k=Fl(h,$m,2,Zm))?void 0:k.getNewValue())}}else if(Tl(a,an,9,Ym)){var q;b.customFieldId=$k(null==(q=Fl(a,an,9,Ym))?void 0:q.getCustomFieldId());var u;b.oldValue=$k(null==(u=Fl(a,an,9,Ym))?void 0:u.getOldValue());var x;b.newValue=$k(null==(x=Fl(a,an,9,Ym))?void 0:x.getNewValue())}else if(Tl(a,bn,10,Ym))e=
Fl(a,bn,10,Ym),b.isUser=!0,a=(null==e?void 0:e.getAddedList())||[],e=(null==e?void 0:e.getRemovedList())||[],b.added=a.map(function(H){return zi(H)}).map(bl("<none>")),b.removed=e.map(function(H){return zi(H)}).map(bl("<none>"));else if(Tl(a,cn,7,Ym)){var y;b.added=(null==(y=Fl(a,cn,7,Ym))?void 0:y.getAddedList())||[];var E;b.removed=(null==(E=Fl(a,cn,7,Ym))?void 0:E.getRemovedList())||[]}else Tl(a,dn,8,Ym)?(e=(null==(d=Fl(a,dn,8,Ym))?void 0:d.getAddedList())||[],a=(null==(c=Fl(a,dn,8,Ym))?void 0:
c.getRemovedList())||[],b.added=e.map(Xxa).filter(cl),b.removed=a.map(Xxa).filter(cl)):Tl(a,Yxa,11,Ym)?(a=Qxa(Fl(a,Yxa,11,Ym).getEntityStatus()),b.statusUpdateDiff={entityStatus:a}):Ek("Unhandled diff type '"+b.type+"'");return b}}},Xxa=function(a){if(null!=a){var b=a.getValue();if(null==b)Ek("No value. linkedItemToJs");else if(a=a.getHref(),null==a)Ek("No href. linkedItemToJs");else return{value:b,href:a}}},$xa=function(a){return{targetIssueId:String(dj(a,1)),afterIssueId:dj(a,2)?String(dj(a,2)):
void 0}},aya=function(a){switch(a){case 1:return"BUG";case 3:return"CUSTOMER_ISSUE";case 2:return"FEATURE_REQUEST";case 4:return"INTERNAL_CLEANUP";case 5:return"PROCESS";case 6:return"VULNERABILITY";case 7:return"PRIVACY_ISSUE";case 10:return"PROJECT";case 11:return"FEATURE";case 12:return"MILESTONE";case 13:return"EPIC";case 14:return"STORY";case 15:return"TASK";case 8:return"TYPE_UNSPECIFIED";case 9:return"TYPE_UNSPECIFIED";case 0:return"TYPE_UNSPECIFIED";default:return"TYPE_UNSPECIFIED"}},en=function(a){if(null!=
a){var b=a.getIssueId();if(null==b)Ek("No issueId. issueToJs");else{for(var c=new Map,d=l(a.getAncestorsMap().entries()),e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c.set(String(e),{sourceIssueIds:f.getSourceIssueIdsList().map(String)})}var h,k,q,u;d=a.getUserData();if(null!=d){var x;d={voted:al(d.getVoted()),starred:al(d.getStarred()),notificationSubscription:bya[Vi(d,4,0)],lastViewedTimeMicros:null!=(x=dj(d,5))?x:0}}else d=void 0;x=Wua(a.getAccessLimit());e=
Ji(a,qm,2).map(Awa).filter(cl);f=Ji(a,Ml,15).map(hva).filter(cl);var y=Ji(a,zl,6).map(eva).filter(cl);var E=Fi(a,Em,4);if(null!=E){var H=void 0;if(E.hasSloStatus()){H=E.getSloStatus();var J={assignmentBounds:H.hasAssignmentBounds()?Zva(H.getAssignmentBounds()):void 0,responseBounds:H.hasResponseBounds()?Zva(H.getResponseBounds()):void 0,closureBounds:H.hasClosureBounds()?Zva(H.getClosureBounds()):void 0};Ywa&&H.hasIt()?(H=H.getIt(),H={assignmentBounds:(null==H?0:H.hasAssignmentBounds())?Xva(H.getAssignmentBounds()):
void 0,responseBounds:(null==H?0:H.hasResponseBounds())?Xva(H.getResponseBounds()):void 0,closureBounds:(null==H?0:H.hasClosureBounds())?Xva(H.getClosureBounds()):void 0},ol(J,H)):H=J}var O,R,U,Z,na;J={voteCount:null!=(O=dj(E,1))?O:0,createdTimeMicros:null!=(R=E.getCreatedTimeMicros())?R:0,resolvedTimeMicros:null!=(U=dj(E,4))?U:0,verifiedTimeMicros:null!=(Z=dj(E,5))?Z:0,modifiedTimeMicros:null!=(na=E.getModifiedTimeMicros())?na:0,lastModifier:yi(Fi(E,Bi,10)),sloId:Xk(E.getSloId()),teamId:Xk(E.getTeamId()),
retentionState:Uva(E.getRetentionState()),sloStatus:H}}else J=void 0;return{issueId:b,userData:d,accessLimit:x,snapshot:e,customFields:f,visibleFields:y,aggregatedData:J,majorModifiedTimeMicros:null!=(h=dj(a,7))?h:0,parentIssueIds:null!=(k=a.getParentIssueIdsList())?k:[],ancestors:c,childIssueCount:null!=(q=hi(a,10))?q:0,isArchived:a.getIsArchived(),relatedLinks:(null!=(u=Ji(a,cya,12))?u:[]).map(dya),trackerId:"0"!==a.getTrackerId()?a.getTrackerId():void 0,statusUpdate:a.hasStatusUpdate()?Lm(a.getStatusUpdate()):
void 0}}}},fya=function(a){if(null!=a){var b=Gua(Fi(a,gj,4));if(null==b)Ek("No modifiedDate. issueEventToJs");else{var c=!!Ri(a,8),d,e=null!=(d=eya(a.getComment()))?d:{};d=a.hasStatusUpdate()?Lm(a.getStatusUpdate()):void 0;var f,h=null==(f=Ji(a,fn,2))?void 0:f.map(Zxa).filter(cl),k;f=null==(k=Ji(a,fn,3))?void 0:k.map(Zxa).filter(cl);var q;k=null==(q=Ji(a,gn,9))?void 0:q.map(rwa).filter(cl);q=a.getAttachmentsList().map(Oxa).filter(cl);var u=zi(Fi(a,Bi,5));u=bl("<none>")(u);var x=yi(Fi(a,Bi,5));return Object.assign({},
e,{attachments:q,issueId:a.getIssueId(),version:a.getVersion(),modifiedDate:b,preDiffs:h,postDiffs:f,isMajorEvent:c,statusUpdate:d,taggedSummary:k,userPerformingAction:u,userPerformingActionUser:x})}}},eya=function(a){if(null==a)var b={};else{a=hn(a);var c;b=a.lastModified;b={version:a.version,unlinkifiedComment:a.unlinkifiedComment,commentNumber:a.commentNumber,commentVersion:a.version,commentLastModifiedAtDate:null!=b?b/1E3:void 0,commentRedacted:$k(a.redacted),commentContentVerdict:a.commentContentVerdict,
commentRetentionState:a.piiRetentionState,commentDeletionStatus:null==(c=a.entityStatus)?void 0:c.status,commentRetention:a.piiRetention,lastCommentEditorUser:a.lastEditorUser,formattingMode:a.formattingMode,formattedComment:a.formattedComment,commentEtag:a.etag,commentReactions:a.commentReactions}}return b},kn=function(a){if(null!=a){var b=en(a.getIssue());if(null==b)Ek("No issue. issueFetchResponseToJs");else return a=fya(Fi(a,jn,5)),{issue:b,firstEvent:a}}},gya=function(a){var b=[];a=l(a.entries());
for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.getIssueRelationshipsList().map($xa),totalChildCount:d.getTotalSize()})}return b},hya=function(a){var b=new ln;b.setIssueIdsList(a.issueIds.map(String));b.setActionsList(a.actions.map(Uwa));return b},iya=function(a){return{issueId:a.getIssueId(),message:a.getMessage()}},jya=function(a){var b={};var c=$b(a,1,Cm,Eb);c=l(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=
l(d.value);d=e.next().value;e=e.next().value;b[Number(d)]=en(e)}c={};d=$b(a,3,Tm,Eb);d=l(d.entries());for(e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c[Number(e)]=Qm(f)}var h;a=(null!=(h=Ji(a,mn,2))?h:[]).map(iya);return{affectedIssues:b,componentMap:c,errors:a}},kya=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(eya)},dya=function(a){var b=Bl(a,lya);switch(b){case 2:return b=Fl(a,nn,2,lya),0!==b.getCommentNumber()?{type:"issueReference",
issueId:String(b.getIssueId()),commentNumber:b.getCommentNumber(),sourceCommentNumber:hi(a,3)}:{type:"issueReference",issueId:String(b.getIssueId()),sourceCommentNumber:hi(a,3)};case 1:return{type:"hyperlink",href:Fl(a,mya,1,lya).getHref(),sourceCommentNumber:hi(a,3)};case 0:throw Error("sc");default:return $h(b)}},nya=function(a){return{readTimestamp:dj(a,1)}},pya=function(a){var b=a.getIssueState();b={componentId:b.getComponentId(),type:vwa[b.getType()],status:pm[b.getStatus()],priority:wwa[b.getPriority()],
severity:xwa[b.getSeverity()],accessLimitLevel:b.hasAccessLimitLevel()?zwa[b.getAccessLimitLevel()]:null};b={issueId:String(a.getIssueId()),issueState:b,modifiedTime:jl(a.getModifiedTime()),teamId:a.getTeamId()};if(oya&&a.hasIt()){var c;a=a.getIt();var d=a.getIssueState(),e=null==(c=d.getAccessLimit())?void 0:c.getAccessLevel();c={type:aya(d.getType()),status:pm[d.getStatus()],priority:wwa[d.getPriority()],severity:xwa[d.getSeverity()],componentId:d.getComponentId(),accessLimitLevel:null!=e?zwa[e]:
null};c={issueId:String(a.getIssueId()),issueState:c,modifiedTime:jl(a.getModifiedTime()),teamId:a.getTeamId()};ol(b,c);return c}return b},qya=function(a){switch(a){case "PLAIN":return 1;case "MARKDOWN":return 2;case "LITERAL":return 3;case void 0:case null:case "UNSPECIFIED_FORMATTING_MODE":return 0;default:return $h(a,"Unexpected formatting mode")}},hn=function(a){var b=void 0;Zi(a,Rxa,14)&&(b=Wva(Fi(a,Rxa,14)));return{issueId:a.getIssueId(),commentNumber:a.getCommentId(),commentContentVerdict:b,
formattingMode:rya[a.getFormattingMode()],formattedComment:a.hasFormattedComment()?Hva(a.getFormattedComment()):void 0,lastEditorUser:yi(Fi(a,Bi,8)),lastModified:dj(a,5),version:a.getVersion(),unlinkifiedComment:Hi(a,7),entityStatus:Qxa(a.getEntityStatus()),piiRetentionState:Uva(a.getPiiRetentionState()),piiRetention:twa[a.getPiiRetention()],redacted:Ri(a,15),etag:a.getEtag(),commentReactions:sya(Fi(a,on,18))}},tya=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(hn)},sya=function(a){var b=
null==a?void 0:Ji(a,pn,1);a=new Map;b=l(b||[]);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=null!=(d=uya[c.getType()])?d:"REACTION_TYPE_UNSPECIFIED",f=d=void 0,h=void 0,k=void 0,q={type:e,hasReacted:null!=(f=Ri(c,1))?f:!1,count:null!=(h=c.getCount())?h:0,recentResponders:null!=(k=null==(d=Ji(c,Bi,3))?void 0:d.map(yi).filter(cl))?k:[]};a.set(e,q)}return a},vya=function(a){return{user:yi(Fi(a,Bi,1)),createdTime:jl(a.getCreatedTime())}},wya=function(a){return{responders:Ji(a,qn,1).map(vya),
totalSize:a.getTotalSize(),nextPageToken:a.getNextPageToken()}},xya=function(a){var b=a.getIssuesList();if(b){var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())(d=d.value)&&(d=en(d))&&c.push(d)}else c=[];b=a.getNumTotalResults();var e=a.getComponentsMap();d={};e=l(e.entries());for(var f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;d[Number(f)]=Qm(h)}f=Zb(a,4,jba);if(void 0!==f)for(e={},f=l(f.entries()),h=f.next();!h.done;h=f.next()){var k=l(h.value);h=k.next().value;
k=k.next().value;e[Number(h)]=k}else e=void 0;return{issues:c,numTotalResults:b,componentMap:d,positionMap:e,nextPageToken:a.getNextPageToken()}},zya=function(a){for(var b={},c=l(a.getComponentsMap().entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b[Number(d)]=Qm(e)}var f,h;return{issuesWithSignals:Ji(a,rn,1).map(yya),numTotalResults:null!=(f=a.getNumTotalResults())?f:0,components:b,nextPageToken:null!=(h=a.getNextPageToken())?h:""}},yya=function(a){return{issue:en(a.getIssue()),
signals:a.getSignalsList().map(Aya)}},Aya=function(a){return{signalType:vqa[Vi(a,1,0)],timestamp:jl(a.getTimestamp())}},Bya=function(a){return{dismissTimestamp:Zi(a,gj,1)?jl(Fi(a,gj,1)):void 0}},Cya=function(a){return Lqa[a]},Dya=function(a){if(a&1){var b=r();D(0,"div",2)(1,"button",3);L("click",function(){t(b);var c=M();return v(c.action())});Q(2);F()()}a&2&&(a=M(),w(2),jg(a.data.action))},Eya=function(){},Fya=function(a){a&1&&(D(0,"span",6),Q(1),F());a&2&&(a=M(),w(1),jg(a.data.message))},Gya=function(a){a&
1&&G(0,"span",7);a&2&&(a=M(),C("innerHtml",a.data.htmlMessage,qe))},Iya=function(a){if(a&1){var b=r();D(0,"button",8);L("click",function(){t(b);var c=M();return v(Hya(c.snackBarRef))});Q(1);F()}a&2&&(a=M(),w(1),S(" ",a.data.actionLabel," "))},Jya=function(a){if(a&1){var b=r();D(0,"button",8);L("click",function(){t(b);var c=M();return v(c.snackBarRef.dismiss())});Q(1);F()}a&2&&(a=M(),w(1),S(" ",a.data.dismissLabel," "))},Kya=function(a){if(a&1){var b=r();D(0,"button",9);L("click",function(){t(b);var c=
M();return v(c.snackBarRef.dismiss())});G(1,"mat-icon",10);F()}},Lya=function(a){var b;return void 0!==(null==(b=a.error)?void 0:b.message)},sn=function(a){return!!a&&Fa(a)&&(!!a.data&&void 0!==a.data.message||Lya(a))},tn=function(a){return a.data&&void 0!==a.data.message&&a.data&&a.data.message?a.data.message:Lya(a)&&a.error&&a.error.message?a.error.message:""},Mya=function(){},Nya=function(a){return 0<Object.values(a).length},Oya=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),
b)))},Pya=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},Qya=function(a,b){var c=a.getValue(),d={};c=l(Object.entries(c));for(var e=c.next();!e.done;e=c.next()){var f=l(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},Rya=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(p(a)).sort());return JSON.stringify(b)},Sya=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},
Tya=function(a){a=void 0===a?{}:a;return Ipa(a)},Uya=function(a){var b=new B.Subject,c=a.subscribe(b);a=(0,B.firstValueFrom)(b);a.finally(function(){c.unsubscribe()});return a},Vya=function(a){return null==a?new Promise(function(){}):Promise.resolve(a)},Wya=function(){return new Promise(function(){})},un=function(a){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,
"=").replace(/%2B/gi,"+")},Xya=function(a){return new B.Observable(function(b){a.on("data",function(c){b.next(c)});a.on("error",function(c){b.error(c)});a.on("status",function(c){b.error(c)});a.on("end",function(){b.complete()});return function(){a.cancel()}})},vn=function(a,b){switch(a){case "HOTLIST":return"hotlists/"+b;case "BOOKMARK_GROUP":return"bookmarkGroups/"+b;case "SAVED_SEARCH":return"savedSearches/"+b;case "COMPONENT":return"components/"+b;case "COMPONENT_SLO":return"components/"+b+"/slo";
case "ISSUE":return"issues/"+b;case "ISSUE_DEFAULTS":return"components/"+b+"/issueDefaults";case "SLO":return"slos/"+b;case "TEAM":return"teams/"+b;default:throw Error("Dc`"+a);}},Yya=function(a){var b={};if(null==a)return b;a=l(Ji(a,wn,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getResource(),e={admin:!1,writer:!1,appender:!1,reader:!1};b[d]=b[d]||e;switch(c.getRelation()){case 1:b[d].admin=!0;break;case 2:b[d].writer=!0;break;case 3:b[d].appender=!0;break;case 4:b[d].reader=!0}}return b},
Zya=function(a,b){return a.map(function(c){var d=c.resourceName;c=c.relation;return void 0!==b[d]&&void 0!==b[d][c]?b[d][c]:!1})},$ya=function(a){if(a)return{status:pm[a.getStatus()],issueIds:a.getIssueIdsList().map(Yk).filter(cl)}},aza=function(a){if(a)return{priority:wwa[a.getPriority()],issueIds:a.getIssueIdsList().map(Yk).filter(cl)}},bza=function(a){var b;return{changelistNumbers:null!=(b=ji(a,1))?b:[]}},eza=function(a){return{changelists:Ji(a,cza,1).map(dza),nextPageToken:a.getNextPageToken()}},
dza=function(a){var b,c;return{author:a.getAuthor(),changelistNumber:hi(a,2),pending:a.getPending(),timestamp:jl(a.getTimestamp()),issueIds:null!=(b=a.getIssueIdsList())?b:[],fixedIssueIds:null!=(c=Ei(a,6))?c:[]}},fza=function(a){var b;return{author:a.getAuthor(),description:a.getDescription(),pending:a.getPending(),timestamp:a.getTimestamp(),affectedFiles:null!=(b=ii(a,5))?b:[]}},xn=function(a){return!a||"0"===a},gza=function(a){return Exa(Fi(a,Um,1))},hza=function(a){return(Ji(a,Um,1)||[]).map(Exa)},
iza=function(a){if(null==a)return[0,0];var b=0,c=0;a=l(a.aggregatedStatus);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0===d.issueIds?[]:d.issueIds,f=void 0;(null==(f=Wk[d.status])?0:f.open)||(b+=e.length);c+=e.length}return[b,c]},jza=function(a,b){if(null==a)return 0;var c=0;a=l(a.aggregatedStatus);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0===d.issueIds?[]:d.issueIds;d.status===b&&(c+=e.length)}return c},kza=function(a){var b,c;return null!=(c=null==a?void 0:null==
(b=a.changelists)?void 0:b.length)?c:0},lza=function(a){if(null==a)return[];a=[].concat(p(a.assignees.map(function(b){return b.emailAddress})),p(a.collaborators.map(function(b){return b.emailAddress})),p(a.verifiers.map(function(b){return b.emailAddress})),p(a.reporters.map(function(b){return b.emailAddress})));return Tj(a).filter(cl)},mza=function(a,b){var c;a=null==(c=a.componentPathInfo)?void 0:c.allCustomField;if(!a)return!0;c=l(a);var d=c.next();for(a={};!d.done;a={customField$jscomp$11:a.customField$jscomp$11},
d=c.next())if(a.customField$jscomp$11=d.value,a.customField$jscomp$11.required){d=!!a.customField$jscomp$11.typedDefaultValue;var e=void 0,f=void 0,h=null==(e=b)?void 0:null==(f=e.snapshot.customField)?void 0:f.some(function(k){return function(q){return q.customFieldId===k.customField$jscomp$11.customFieldId}}(a));if(!d&&!h)return!1}return!0},oza=function(a){return null==a?!1:nza.has(a.name)},pza=function(a){return"hotlist"===(null==a?void 0:a.name)},qza=function(a){return null==a?!1:null!=a.href&&
null!=a.value},rza=function(a){return Array.isArray(a)?a.every(qza):!1},yn=function(a){return!!a&&sza.test(a)&&!tza.test(a)},vza=function(a){a=void 0===a?"":a;return a.endsWith("@prod.google.com")||a.endsWith("-robots@google.com")||uza(a)},uza=function(a){return wza.some(function(b){return a.endsWith(b)})},zn=function(a){return a?1E3*a.seconds+a.nanos/1E6:0},An=function(a){var b=a+" day"+(1<a?"s":"");if(365>a)return b;a=Math.round(a/365*10)/10;return b+" (~"+(a+" year"+(1<a?"s":""))+")"},xza=function(a){if(a){var b=
new Bn;b.setTime(a.getTime());return b}},yza=function(a){if(null!=a)return new Date(a.year,a.month-1,a.day)},zza=function(a){if(null==a)return"";var b=a.toLocaleDateString(void 0,{dateStyle:"medium"});return(new Date).getFullYear()===a.getFullYear()?b.split(", ")[0]:b},Cn=function(a,b){return function(c,d){return Aza(c,a,b,d)}},Aza=function(a,b,c,d){d=void 0===d?"":d;return""===d?a:[].concat(p(a)).sort(function(e,f){var h="asc"===d?1:-1;return c(b(e),b(f))*h})},Dn=function(a,b){return null==a||null==
b?null==a&&null==b?0:null==a?1:null==b?-1:0:isNaN(a)&&isNaN(b)?0:isNaN(a)?1:isNaN(b)?-1:a>b?1:a<b?-1:0},Bza=function(a,b){return null==a||null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:a.localeCompare(b)},En=function(a){return!(null==a||!a.commentNumber)},Fn=function(a){var b;return 0<(null==(b=a.attachments)?void 0:b.length)},Cza=function(a,b){return Object.assign({},a,{commentRedacted:b.redacted,unlinkifiedComment:b.unlinkifiedComment})},Dza=function(a,b,c){var d=a.findIndex(function(f){return f.commentNumber===
b}),e=a[d];if(null==e)return a;c=Object.assign({},e,c);return[].concat(p(a.slice(0,d)),[c],p(a.slice(d+1)))},Eza=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Fza=function(a){var b;return vi(null==(b=Gn(a))?void 0:b.assigneeUser)||void 0},Gza=function(a){if(null==a)return"";var b,c,d,e,f=a.etag,h=a.piiRetention;var k=a.piiRetentionState;k=null==k?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,
h,k,null==(b=a.entityStatus)?void 0:b.reason,null==(c=a.entityStatus)?void 0:c.status,null==(d=a.contentVerdict)?void 0:null==(e=d.piiVerdict)?void 0:e.severity].join("-")},Hza=function(a){if(null==a)return"";var b=a.attachments.map(Gza).join("-"),c=[];if(a.commentReactions&&0<a.commentReactions.size){var d,e=l(null==(d=a.commentReactions)?void 0:d.entries());for(d=e.next();!d.done;d=e.next()){var f=l(d.value);d=f.next().value;f=f.next().value;c.push(d+"-"+f.count)}}c=c.join("-");var h,k;return[a.modifiedDate,
a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,null==(h=a.commentContentVerdict)?void 0:null==(k=h.piiVerdict)?void 0:k.severity,a.commentDeletionStatus,a.commentRetention,"["+c+"]"].join("-")},Iza=function(a){return a.map(function(b){return b.commentNumber}).filter(cl).reduce(function(b,c){return Math.max(b,c)},1)},Jza=function(a,b){if(a===b)return!0;if(null==a||null==b||a.length!==b.length)return!1;for(var c=a.length-1;0<=c;c--){var d=a[c],e=b[c];if(d!==e&&(null==d||null==
e||Hza(d)!==Hza(e)))return!1}return!0},Hn=function(a){if(null==a||(null==a?0:a.isArchived))return!1;var b,c;a=null==a?void 0:null==(b=a.snapshot)?void 0:null==(c=b[0])?void 0:c.status;if(null==a)return!1;var d,e;return null!=(e=null==(d=Wk[a])?void 0:d.open)?e:!1},Kza=function(a){if(null==a||a.isArchived)return!1;var b,c;a=null==a?void 0:null==(b=a.snapshot)?void 0:null==(c=b[0])?void 0:c.status;if(null==a)return!1;b=Wk[a];return null==b?!1:!(null==b?0:b.open)},Lza=function(a,b){if(null==a?0:a.isArchived)return!1;
var c,d;return b===(null==a?void 0:null==(c=a.snapshot)?void 0:null==(d=c[0])?void 0:d.status)},In=function(a){return null==a.isArchived?!1:!a.isArchived},Nza=function(){var a=Jn;return Cn(function(b){var c,d;return null!=(d=Mza[null==(c=a(b))?void 0:c.snapshot[0].status])?d:0},Dn)},Oza=function(){var a=Jn;return Cn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].assigneeUser)?void 0:d.emailAddress},Bza)},Pza=function(){var a=Jn;return Cn(function(b){var c;return null==(c=
a(b))?void 0:c.snapshot[0].type},Bza)},Qza=function(){var a=Jn;return Cn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].reporterUser)?void 0:d.emailAddress},Bza)},Rza=function(){var a=Jn;return Cn(function(b){var c,d,e;return null!=(e=null==(c=a(b))?void 0:null==(d=c.aggregatedData)?void 0:d.createdTimeMicros)?e:0},Dn)},Sza=function(){var a=Jn;return Cn(function(b){var c,d,e;return null!=(e=null==(c=a(b))?void 0:null==(d=c.aggregatedData)?void 0:d.modifiedTimeMicros)?e:0},
Dn)},Tza=function(a){var b;return 0<(null!=(b=a.snapshot[0].version)?b:0)},Kn=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Gn=function(a){var b;return null==a?void 0:null==(b=a.snapshot)?void 0:b[0]},Uza=function(a,b){a=Gn(a);b=[null==a?void 0:a.authorUser,null==a?void 0:a.reporterUser,null==a?void 0:a.assigneeUser,null==a?void 0:a.verifierUser].concat(p(b.map(function(c){return c.userPerformingActionUser})));return Sj(b.filter(cl),zi)},Vza=
function(a,b){b=Uza(a,b);var c,d,e;a=null!=(e=null==(c=Gn(a))?void 0:null==(d=c.ccUsers)?void 0:d.length)?e:0;return b.length+a},Wza=function(a){return function(b){var c,d;return(null!=(d=null==b?void 0:null==(c=b.snapshot[0])?void 0:c.customField)?d:[]).find(function(e){return e.customFieldId===a})}},Xza=function(a){var b=a.map(function(c){return c.detailedUserType});return b.includes("PUBLIC")?3:b.includes("EXTERNAL")?0:b.includes("TVC")?4:a.map(function(c){return c.principalType}).includes("GROUP")?
1:b.includes("UNRESTRICTED_GOOGLER")?5:2},Yza=function(a,b){switch(a){case 3:return"public user";case 0:return"external partner";case 4:return"restricted user (TVC)";case 5:return"user";default:return b?"user":"unknown user"}},Zza=function(a){var b=a.newEditors,c=a.newImplicitUsers,d=a.isExternalSession,e=a.issueId,f=a.actionIssueId;a=Xza(a.userPrincipals);d="Allow "+(1===a?"members of the group to ":Yza(a,d)+" to ")+(0===b.length?"comment?":"edit?");b="Adding "+c.join(", ")+" will allow "+(1===a?
"all members of the group":"them")+" to "+(0===b.length?"comment on ":"edit ")+(e===f?"issue "+f:"canonical issue "+f)+".";return{title:d,content:b}},$za=function(a){return a.filter(function(b){var c,d;return!!b.signals&&0<(null!=(d=null==(c=b.signals)?void 0:c.length)?d:0)})},aAa=function(a,b){var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0;switch(null==(e=d.resource)?void 0:e.source){case "Critique":e=void 0;var f=null==(e=d.resource)?void 0:e.critiqueResource;f&&(f.ccEmails.includes(b)||
f.comments.some(function(h){return h.authorEmail===b}))&&c.push(d)}}return c},cAa=function(a){a=a.getFavorite();return{user:yi(a.getUser()),resourceType:bAa[a.getResourceType()],resourceId:Number(a.getResourceId()),name:a.getName()}},eAa=function(a){var b,c,d={searchId:Number(Yi(a,1)),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:(null!=(b=a.getSortOrderList())?b:[]).map(sua),displayColumn:(null!=(c=a.getDisplayColumnList())?c:[]).map(pua),adminUsers:Ai(a.getAdminUsersList())};
if(dAa&&a.hasIt()){a=a.getIt();var e;a={searchId:Number(a.getSavedSearchId()),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:Bua(a.getDefaultOrderBy()),displayColumn:yua(a.getDisplayPreferences()),adminUsers:(null!=(e=a.getOwnersList())?e:[]).map(nl)};ol(d,a);return a}return d},fAa=function(a){var b;return(null!=(b=Ji(a,Ln,1))?b:[]).map(eAa)},gAa=function(a){return{id:a.getId(),name:a.getName(),description:a.getDescription(),adminUsers:Ai(a.getAdminUsersList()),starred:a.getStarred(),
resourceType:a.getResourceType()}},hAa=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),adminUsers:Ai(a.getAdminUsersList()),starred:a.getStarred(),sublinks:(null!=(b=Ji(a,Mn,6))?b:[]).map(gAa)}},iAa=function(a){var b,c,d,e;return{hotlists:(null!=(b=a.getHotlistsList())?b:[]).map(gAa),bookmarkGroups:(null!=(c=Ji(a,Nn,2))?c:[]).map(hAa),archivedHotlists:(null!=(d=Ji(a,Mn,3))?d:[]).map(gAa),archivedBookmarkGroups:(null!=(e=Ji(a,Nn,4))?e:[]).map(hAa)}},kAa=function(){var a=
window.defrostedResourcesJspb;if(a&&Array.isArray(a)&&(a=Ji(new jAa(a),On,1))&&1===a.length)return kn(a[0])},pAa=function(){var a=void 0===a?Mk:a;var b=Date.now(),c=Pn(b);Pn(lAa())!==c?a("retention","first-visit"):(c=Pn(b),Pn(lAa())===c&&1===mAa()&&a("retention","second-visit"));a=Pn(b);Pn(lAa())!==a?nAa(1):(a=mAa()||0,nAa(a+1));oAa(b)},Pn=function(a){if(null!=a)return(new Date(a)).toLocaleDateString()},qAa=function(){return xd.apply(0,arguments).map(String).join("__")},rAa=function(a,b){var c=b.filter(function(e){return!a.includes(e)}).map(function(e){return"+"+
e}).join(),d=a.filter(function(e){return!b.includes(e)}).map(function(e){return"-"+e}).join();return c+d},sAa=function(a){var b=Object.assign({},a);a=a.issue;b=(delete b.issue,b);return Object.assign({},b,{issueId:a.issueId})},tAa=function(a){var b=1E3;b=void 0===b?150:b;var c,d=[];return function(e){d.push(e);c&&clearTimeout(c);c=setTimeout(function(){a(d);d=[];c=void 0},b)}},uAa=function(a){function b(){var e,f,h,k;return Ne(function(q){if(1==q.nextAddress){if(d||0===c.length)return q.return();
d=!0;e=[].concat(p(c));c=[];f=l(e);h=f.next()}if(3!=q.nextAddress){if(h.done)return d=!1,q.yield(b(),0);k=h.value;return q.yield(a.apply(null,p(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}h=f.next();return q.jumpTo(2)})}var c=[],d=!1;return function(){var e=xd.apply(0,arguments),f=new ira;c.push({args:e,returnValue:f});b();return f.promise}},vAa=function(a){var b=!1;return function(){var c=xd.apply(0,arguments);if(!b)return b=!0,a.apply(null,p(c))}},wAa=function(a){return!(null==
a||!a.relatedChildren.length)},yAa=function(a,b){var c=[].concat(p(a));a=new Set(a.map(function(h){return h.targetIssueId}));b=l(b);for(var d=b.next(),e={};!d.done;e={newItem$jscomp$4:e.newItem$jscomp$4},d=b.next())if(e.newItem$jscomp$4=d.value,!a.has(e.newItem$jscomp$4.targetIssueId)){d=c.findIndex(function(h){return function(k){return k.targetIssueId===h.newItem$jscomp$4.afterIssueId}}(e));var f=void 0;f=e.newItem$jscomp$4.afterIssueId?-1===d?c.length:d+1:0;c.splice(f,0,e.newItem$jscomp$4);a.add(e.newItem$jscomp$4.targetIssueId)}return xAa(c)},
zAa=function(a,b){return xAa(a.filter(function(c){return c.targetIssueId!==b}))},xAa=function(a){for(var b=[],c=l(a.entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;var f=e.next().value;e=void 0;d=Object.assign({},f,{afterIssueId:null==(e=a[d-1])?void 0:e.targetIssueId});b.push(d)}return b},AAa=function(a){var b=new Map;a=l(a);for(var c=a.next(),d={};!c.done;d={previousOperation:d.previousOperation},c=a.next()){var e=c.value;c=e.issues.map(function(f){return f.issueId}).join(",");
d.previousOperation=b.get(c);d.previousOperation?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:d.previousOperation.issues,eventTimestamps:[].concat(p(d.previousOperation.eventTimestamps),p(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(d.previousOperation.done.resolve).catch(function(f){return function(h){f.previousOperation.done.reject(h);throw h;}}(d)),b.set(c,e)):b.set(c,e)}b=[].concat(p(b.values()));a=l(b);c=a.next();
for(d={};!c.done;d={operation$jscomp$5:d.operation$jscomp$5},c=a.next())d.operation$jscomp$5=c.value,d.operation$jscomp$5.newRelations=d.operation$jscomp$5.newRelations.map(function(f){return function(h){return f.operation$jscomp$5.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===h.targetIssueId})}}(d));return b.sort(function(f,h){var k=f.newParentChildrenSnapshot,q=h.newParentChildrenSnapshot;f=Math.min.apply(Math,p(f.issues.map(function(u){return k.findIndex(function(x){return x.targetIssueId===
u.issueId})})));h=Math.min.apply(Math,p(h.issues.map(function(u){return q.findIndex(function(x){return x.targetIssueId===u.issueId})})));return f===h?0:f<h?-1:1})},BAa=function(a){return eAa(a.getSearch())},CAa=function(a){return Ji(a,Ln,1).map(eAa)},KAa=function(a){var b=DAa(Ji(a,EAa,2));return a.getTasksList().map(function(c){var d,e,f=Hi(c,1);var h=c.getResource();if(h){var k;var q={resourceId:h.getResourceId(),source:Hi(h,1),title:h.getTitle(),lastModifiedTimestamp:null!=(k=Xk(h.getLastModifiedTimestamp()))?
k:0,externalLink:h.getExternalLink()};if(Tl(h,Qn,8,Rn))h=Fl(h,Qn,8,Rn),h={description:h.getDescription(),category:FAa(Vi(h,2,0)),status:GAa(h.getStatus()),reviewerEmails:ii(h,6),comments:h.getCommentsList().map(HAa),authorEmail:h.getAuthorEmail(),needsAttention:Ri(h,12),attentionSetUsers:ii(h,17),ccEmails:ii(h,11)},q.critiqueResource=h;else if(Tl(h,Sn,5,Rn))h=Fl(h,Sn,5,Rn),h={type:IAa(h.getMimeType()),createdTimestamp:h.getCreatedTimestamp(),createdByMe:Ri(h,2),ownedByMe:h.getOwnedByMe(),sharedWithMe:Ri(h,
14)},q.driveResource=h;else if(Tl(h,Tn,9,Rn))h=Fl(h,Tn,9,Rn),h={description:h.getDescription(),ownedByMe:h.getOwnedByMe(),needApprovalFromMe:Ri(h,8),creatorEmail:h.getCreatorEmail()},q.launchResource=h;else throw Error("Hc");}else q=void 0;return{taskId:f,resource:q,createdTimestamp:null!=(d=Xk(c.getCreatedTimestamp()))?d:0,updatedTimestamp:null!=(e=Xk(c.getUpdatedTimestamp()))?e:0,signals:b.has(Hi(c,1))?JAa(b.get(Hi(c,1))):void 0}})},DAa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=
a.next())if(c=c.value,b.has(c.getResourceId())){var d=b.get(c.getResourceId());b.set(c.getResourceId(),[].concat(p(d),[c]))}else b.set(c.getResourceId(),[c]);return b},JAa=function(a){return a.map(function(b){return{resourceId:b.getResourceId(),timestamp:jl(b.getTimestamp()),suggestedAction:Hi(Fi(b,LAa,2),4),signalSpec:MAa(Fi(b,LAa,2))}}).filter(function(b){return NAa.has(b.signalSpec)})},MAa=function(a){if(null!=Un(a,Dl(a,Vn,2)))switch(Vi(a,Dl(a,Vn,2),0)){case 0:return"CHANGELIST_SIGNAL_UNSPECIFIED";
case 1:return"THREAD_MENTIONS_ME";case 3:return"AUTHOR_GOING_OOO";case 4:return"NEEDS_ATTENTION";case 5:return"NUDGED";case 6:return"READY_TO_SUBMIT";default:return"CHANGELIST_SIGNAL_UNSPECIFIED"}else if(null!=Un(a,Dl(a,Vn,3)))switch(Vi(a,Dl(a,Vn,3),0)){case 0:return"DRIVE_SIGNAL_UNSPECIFIED";case 1:return"TAGGED_IN_COMMENT";case 2:return"REQUIRES_APPROVAL";case 3:return"COMMENTS_REQUIRE_ATTENTION";default:return"DRIVE_SIGNAL_UNSPECIFIED"}else if(null!=Un(a,Dl(a,Vn,5)))switch(Vi(a,Dl(a,Vn,5),0)){case 0:return"LAUNCH_SIGNAL_UNSPECIFIED";
case 1:return"NEAR_LAUNCH_DATE";default:return"LAUNCH_SIGNAL_UNSPECIFIED"}return"SIGNAL_UNSPECIFIED"},FAa=function(a){switch(a){case 0:return"CATEGORY_UNSPECIFIED";case 1:return"INCOMING";case 2:return"OUTGOING";case 3:return"CC_REVIEW";case 4:return"PENDING_REVIEW";default:return"CATEGORY_UNSPECIFIED"}},GAa=function(a){switch(a){case 0:return"STATUS_UNSPECIFIED";case 1:return"LGTM";case 2:return"PENDING";case 3:return"UNRESOLVED";case 4:return"REQUIRES_ATTN";case 5:return"SUBMITTED";case 6:return"DELETED";
default:return"STATUS_UNSPECIFIED"}},HAa=function(a){return{authorEmail:a.getAuthorEmail()}},IAa=function(a){switch(a){case "document":return"Docs";case "spreadsheet":return"Sheets";case "presentation":return"Slides";default:return"File"}},OAa=function(a){switch(a){case "ARIANE":return 3;case "CRITIQUE":return 1;case "DRIVE":return 4;default:return 0}},PAa=function(a){return{teamId:a,version:0,name:a,description:"",pathIds:[a],pathNames:[a],collapsedPathNames:[a],members:[],deleted:!1,estimatedComponentCount:0}},
QAa=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},RAa=function(a){var b;return null!=(b=Xk(a))?b:null},SAa=function(a){var b;return null!=(b=Yk(a))?b:null},TAa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.starred)||!1},UAa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.lastViewedTimeMicros)||0},VAa=function(a){var b;return null==(b=Kn(a))?void 0:b.title},WAa=function(a){var b,c;return null!=
(c=null==(b=Kn(a))?void 0:b.status)?c:void 0},XAa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.priority)?c:void 0},YAa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.assigneeUser)?c:void 0},ZAa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.reporterUser)?c:void 0},$Aa=function(a){var b,c;a=null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.teamId;return Yk(a)},aBa=function(a){var b;a=null==(b=Kn(a))?void 0:b.componentId;return Yk(a)},
bBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.ccUsers)?c:[]},cBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.issueAccessLimitLevel)?c:"LIMIT_NONE"},dBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.collaboratorsUsers)?c:[]},eBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.type)?c:void 0},fBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.foundInVersion)?c:[]},gBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:
b.targetedToVersion)?c:[]},hBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.changelist)?c:[]},iBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.postmortems)?c:[]},jBa=function(a){var b;return(null==(b=Kn(a))?void 0:b.inProd)||!1},kBa=function(a){var b;return null==(b=Kn(a))?void 0:b.effort},lBa=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.voteCount},mBa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?
void 0:null==(c=b.userData)?void 0:c.voted)||!1},oBa=function(a){return nBa(null==a?void 0:a.issue)},nBa=function(a){var b,c;return null!=(c=null==(b=Gn(a))?void 0:b.isDeleted)?c:!1},qBa=function(a){return pBa(null==a?void 0:a.issue)},pBa=function(a){var b;return null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel},rBa=function(a){var b;return(a=null==a?void 0:null==(b=a.issue)?void 0:b.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},tBa=function(a){return sBa(null==a?void 0:a.issue)},
sBa=function(a){var b,c;return null!=(c=null==(b=Gn(a))?void 0:b.retention)?c:void 0},uBa=function(a){var b,c;return null!=(c=null==(b=Kn(a))?void 0:b.duplicateOfIssueId)?c:void 0},wBa=function(a){return vBa(null==a?void 0:a.issue)},vBa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.aggregatedData)?void 0:b.retentionState)?c:void 0},xBa=function(a){var b;return Yk(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloId)},yBa=function(a){var b;return null==a?void 0:null==(b=a.issue.aggregatedData)?
void 0:b.createdTimeMicros},zBa=function(a){return null==a?void 0:a.effortSpec},ABa=function(a){a=zBa(a);return!(!a||!a.name&&!a.inherit)},BBa=function(a){return null==a?void 0:a.componentPathInfo},CBa=function(a){if(!a)return{};var b,c=l(null!=(b=a.match(RegExp("comment([0-9]+)")))?b:[]);c.next();b=c.next().value;var d;a=l(null!=(d=a.match(RegExp("comment[0-9]+version([0-9]+)")))?d:[]);a.next();d=a.next().value;return{commentNumber:Xk(b),commentVersion:Xk(d)}},DBa=function(a){switch(a){case "ALL":case "ALL_UPDATES":return"All Updates";
case "IMPORTANT":case "MAJOR_UPDATES":return"Major Updates";case "CLOSURE_ONLY":return"Closure Only";case "MINIMAL":return"Minimal";case "NONE":return"None";default:return a}},EBa=function(a){return a?fi(a.replace(/_/g," ").toLowerCase()):""},FBa=function(a){return a?a.join(", "):""},GBa=function(a,b){if(!a)return hh("");if(!b)return hh(a);b=b.split(" ").map(Mpa);b=b.filter(function(h){return!!h});b=b.map(Wn);if(0===b.length)return hh(a);b=new RegExp("(\\W|^)("+b.join("|")+")(\\w*)","i");for(var c=
[];a;){var d=b.exec(a);if(!d){c.push(a);break}var e=d.index+d[1].length,f=d[2];d=d[3];c.push(a.substring(0,e));c.push(kh("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return jh(c)},HBa=function(a){return a?"Yes":"No"},IBa=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},JBa=function(a){if(1073741824<=a){a/=1073741824;var b="GB"}else 1048576<=a?(a/=1048576,b="MB"):1024<=a?(a/=1024,b="KB"):b="B";a=10>a?Math.round(10*a)/10:Math.round(a);return a+" "+b},KBa=function(a){if(!a)return null;
var b=new Bn;b.setTime(1E3*a.seconds);return b},LBa=function(a){if(a&&yn(a))return a},Xn=function(a){return null==a?"":String(a)},MBa=function(a){var b;return null!=(b=null==a?void 0:a.filter(function(c){return!!c.trim()}).join(", "))?b:""},NBa=function(a){a&1&&G(0,"bug-screensaver")},OBa=function(a){a&1&&fg(0)},PBa=function(a){a&1&&bg(0)},QBa=function(a){if(a&1){var b=r();D(0,"button",7,8);L("click",function(e){t(b);var f=M();return v(f.onClick(e))});P(2,PBa,1,0,"ng-container",9);F()}if(a&2){a=M();
var c=N(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);w(2);C("ngTemplateOutlet",c)}},RBa=function(a){a&1&&bg(0)},SBa=function(a){if(a&1){var b=r();D(0,"button",10,8);L("click",function(e){t(b);var f=M();return v(f.onClick(e))});P(2,RBa,1,0,"ng-container",9);F()}if(a&2){a=M();var c=N(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==
(d=a.tooltip)&&void 0!==d?d:"");Nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);w(2);C("ngTemplateOutlet",c)}},TBa=function(a){a&1&&bg(0)},UBa=function(a){if(a&1){var b=r();D(0,"button",11,8);L("click",function(e){t(b);var f=M();return v(f.onClick(e))});P(2,TBa,1,0,"ng-container",9);F()}if(a&2){a=M();var c=N(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);
w(2);C("ngTemplateOutlet",c)}},VBa=function(a){a&1&&bg(0)},WBa=function(a){if(a&1){var b=r();D(0,"button",12,8);L("click",function(e){t(b);var f=M();return v(f.onClick(e))});P(2,VBa,1,0,"ng-container",9);F()}if(a&2){a=M();var c=N(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);w(2);C("ngTemplateOutlet",c)}},XBa=function(a){a&1&&bg(0)},YBa=function(a){if(a&1){var b=r();
D(0,"button",7,8);L("click",function(e){t(b);var f=M();return v(f.onClick(e))});P(2,XBa,1,0,"ng-container",9);F()}if(a&2){a=M();var c=N(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Nf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);w(2);C("ngTemplateOutlet",c)}},ZBa=function(a,b){a&1&&(D(0,"div")(1,"span",3),Q(2,"|"),F(),D(3,"a",6),Q(4,"Code of Conduct"),F()());a&2&&(a=b.ngIf,w(3),C("href",a,re))},$Ba=function(a){a&
1&&(D(0,"footer"),G(1,"img",1),T(2,"async"),D(3,"span",2),Q(4),T(5,"async"),F(),Q(6," Powered by Google "),D(7,"span",3),Q(8,"|"),F(),D(9,"a",4),Q(10,"Privacy"),F(),D(11,"span",3),Q(12,"|"),F(),D(13,"a",5),Q(14,"Terms"),F(),P(15,ZBa,5,1,"div",0),T(16,"async"),F());a&2&&(a=M(),w(1),C("src",V(2,3,a.trackerLogo$),re),w(3),S("",V(5,5,a.trackerName$)," Issue Tracker"),w(11),C("ngIf",V(16,7,a.trackerCoc$)))},aCa=function(a,b){if(a&1){var c=r();D(0,"a",8);L("click",function(){var d=t(c).$implicit,e=M(2);
return v(e.clickSegment.emit(d.name||d.path))});Q(1);F()}a&2&&(a=b.$implicit,C("href",a.path,re),w(1),S(" ",a.name||a.path," "))},bCa=function(a){a&1&&(I(0),D(1,"button",4),G(2,"mat-icon",5),F(),D(3,"mat-menu",null,6),P(5,aCa,2,2,"a",7),F(),K());if(a&2){var b=N(4);a=M();w(1);C("matMenuTriggerFor",b);w(4);C("ngForOf",a.segments)}},cCa=function(a,b){if(a&1){var c=r();I(0);D(1,"b-fab-segmented",1);L("clickMain",function(f){t(c);var h=M(3);return v(h.trackClick(f))})("clickSegment",function(f){t(c);var h=
M(3);return v(h.trackClick(f))});F();K()}if(a&2){a=b.ngIf;b=M().ngIf;var d=M().ngIf,e=M();w(1);C("label",b)("icon",a)("href",e.createIssuePath)("segments",d)}},dCa=function(a){a&1&&(I(0),P(1,cCa,2,4,"ng-container",0),T(2,"async"),K());a&2&&(a=M(2),w(1),C("ngIf",V(2,1,a.buttonIcon$)))},eCa=function(a){a&1&&(I(0),P(1,dCa,3,3,"ng-container",0),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.buttonLabel$)))},fCa=function(a){a&1&&(D(0,"span",7),fg(1,1),F())},gCa=function(a){a&1&&(D(0,"span",8),fg(1,
2),F())},hCa=function(a){a&1&&(D(0,"span",8),fg(1,1),D(2,"span",9),Qd(),D(3,"svg",10),G(4,"path",11),F()()())},iCa=function(a){a&1&&(D(0,"span",12),fg(1,2),F())},jCa=function(a,b){a&1&&(D(0,"mat-chip-option",2),Q(1),F());a&2&&(a=b.$implicit,b=M(),C("selected",b.selectedSources.includes(a)),w(1),S(" ",a," "))},kCa=function(a){if(!a)return"";switch(a.source){case "Critique":return"check_circle_filled";case "Drive":var b;switch(null==(b=a.driveResource)?void 0:b.type){case "Docs":return"drive_document";
case "Sheets":return"drive_spreadsheet";case "Slides":return"drive_presentation";default:return"link"}default:return""}},mCa=function(a){return a.map(function(b){var c,d,e,f,h;return{id:b.taskId,type:null==(c=b.resource)?void 0:c.source,description:null!=(f=null==(d=b.resource)?void 0:d.title)?f:"",timestamp:lCa(b),signals:b.signals.map(function(k){return k.signalSpec}),icon:kCa(b.resource),link:null!=(h=null==(e=b.resource)?void 0:e.externalLink)?h:""}})},oCa=function(a){return a.filter(function(b){var c;
return null==(c=b.issue)?void 0:c.issueId}).map(function(b){var c,d,e,f,h;return{id:"b/"+(null==(c=b.issue)?void 0:c.issueId),type:"Buganizer",description:null!=(h=null==(d=b.issue)?void 0:null==(e=d.snapshot[0])?void 0:e.title)?h:"",timestamp:nCa(b),signals:b.signals.map(function(k){return k.signalType}),icon:"bug_report",link:"issues/"+(null==(f=b.issue)?void 0:f.issueId)}})},lCa=function(a){a=a.signals.sort(function(b,c){var d,e;return(null!=(d=zn(c.timestamp))?d:0)-(null!=(e=zn(b.timestamp))?
e:0)})[0].timestamp;return zn(a)},nCa=function(a){var b=a.signals.sort(function(c,d){var e,f,h,k;return(null!=(h=null==(e=KBa(d.timestamp))?void 0:e.getTime())?h:0)-(null!=(k=null==(f=KBa(c.timestamp))?void 0:f.getTime())?k:0)})[0].timestamp;return b&&0!==zn(b)?zn(b):a.issue.majorModifiedTimeMicros/1E3},pCa=function(a,b,c,d){var e=[];c.includes("Buganizer")&&e.push.apply(e,p(b));e.push.apply(e,p(a.filter(function(h){return Yn.includes(h.type)&&c.includes(h.type)})));var f=(new Date).getTime()-864E5*
d.numberOfDays;return e.filter(function(h){return h.timestamp>f}).sort(function(h,k){return k.timestamp-h.timestamp})},qCa=function(a){return mCa($za(a.results))},rCa=function(a){return oCa(a.issuesWithSignals)},sCa=function(a){switch(Bl(a,Zn)){case 1:var b=a.getHotlist(),c=null==b?void 0:b.getHotlist(),d,e,f;return{hotlistId:null!=(d=null==b?void 0:b.getHotlistId())?d:0,name:null!=(e=null==c?void 0:c.getName())?e:"",description:null!=(f=null==c?void 0:c.getDescription())?f:"",resourceType:"HOTLIST"};
case 2:d=a.getSavedSearch();e=null==d?void 0:d.getSavedSearch();var h;return{savedSearchId:null!=(b=null==d?void 0:d.getSavedSearchId())?b:0,name:null!=(c=null==e?void 0:e.getName())?c:"",description:null!=(h=null==e?void 0:e.getDescription())?h:"",resourceType:"SAVED_SEARCH"};default:throw Error("Jc");}},tCa=function(a){var b=new $n;"HOTLIST"===a.resourceType&&a.hotlistId&&b.setHotlist((new ao).setHotlistId(a.hotlistId).setHotlist((new rl).setName(a.name).setDescription(a.description)));"SAVED_SEARCH"===
a.resourceType&&a.savedSearchId&&b.setSavedSearch((new bo).setSavedSearchId(a.savedSearchId).setSavedSearch((new co).setName(a.name).setDescription(a.description)));return b},uCa=function(a){return{archived:a.getArchived(),bookmarkGroupId:a.getBookmarkGroupId(),description:a.getDescription(),item:Ji(a,$n,5).map(sCa),name:a.getName(),adminUsers:a.getOwnersList().map(nl)}},vCa=function(a){return uCa(a.getIt())},wCa=function(a){var b;return(null!=(b=Ji(a,eo,2))?b:[]).map(uCa)},xCa=function(a,b){a=void 0===
a?"":a;b=void 0===b?48:b;var c=void 0===c?"...":c;var d=[].concat(p(a));if(d.length<=b)return a;a=b-[].concat(p(c)).length;d=d.slice(0,a).join("");null!=String.prototype.trimEnd&&(d=d.trimEnd());return d+c},yCa=function(a){a=void 0===a?"":a;var b=new Set([].concat(p('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(p(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return 0===a.length?[]:a.split(/[\s]+/g)},zCa=function(a){return a.split("").every(function(b){return 1===b.length&&0<=
b.charCodeAt(0)&&255>=b.charCodeAt(0)})},BCa=function(a){if(null!=a){a=[].concat(p(a)).slice(0,100);a=l(a);for(var b=a.next();!b.done;b=a.next())if(b=ACa[b.value])return b}},CCa=function(a){if(a.includes('"')||a.includes("'"))return[];var b=[].concat(p(a.matchAll(RegExp("(^|[;,\\-\\s])+(\\d+)","g"))));if(b.length)return b.map(function(c){c=l(c);c.next();c.next();return c.next().value});a=[].concat(p(a.matchAll(RegExp("(b|b-qa|issues)\\/(\\d+)","g"))));return a.length?a.map(function(c){c=l(c);c.next();
c.next();return c.next().value}):[]},DCa=function(a){if(a&1){var b=r();D(0,"button",5);L("click",function(){t(b);var c=M();return v(c.dialogRef.close(!1))});Q(1);F()}a&2&&(a=M(),w(1),S(" ",a.cancelButtonText," "))},ECa=function(a){a&1&&bg(0)},FCa=function(a){a&1&&bg(0)},GCa=function(a){a&1&&(I(0),P(1,FCa,1,0,"ng-container",1),K());a&2&&(a=M(),w(1),C("ngTemplateOutlet",a.content))},HCa=function(a){a&1&&Q(0," Archived ")},ICa=function(a){a&1&&(D(0,"button",16),L("click",function(c){return c.stopPropagation()}),
G(1,"mat-icon",17),F());if(a&2){M();var b=N(5);C("matMenuTriggerFor",b)}},JCa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M(3).$implicit;return v(c.unstar())});Q(1," Unstar ");F()}},KCa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M(3).$implicit;return v(c.unarchive())});Q(1," Unarchive ");F()}},LCa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M(2).$implicit,d=M(3);return v(d.handleBookmarkGroupOpen(c.id))});
Q(1," Open ");F();D(2,"button",18);L("click",function(){t(b);var c=M(2).$implicit,d=M(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");F();D(4,"button",18);L("click",function(){t(b);var c=M(2).$implicit,d=M(3);return v(d.openEditBookmarkGroup(c.id))});Q(5," Settings ");F();P(6,JCa,2,0,"button",19);P(7,KCa,2,0,"button",19)}a&2&&(a=M(2).$implicit,w(6),C("ngIf",a.isUnstarable()),w(1),C("ngIf",a.isEditable()))},MCa=function(a){a&1&&(D(0,"div",11)(1,"span",12),Q(2),F(),P(3,ICa,2,
1,"button",13),D(4,"mat-menu",null,14),P(6,LCa,8,2,"ng-template",15),F()());a&2&&(a=M().$implicit,Pf("id","bv2-user-archived-bookmarkgroup-item-",a.id,""),w(2),jg(a.name),w(1),C("ngIf",a))},NCa=function(a,b){if(a&1){var c=r();D(0,"li",22)(1,"a",23);L("click",function(d){var e=t(c).$implicit,f=M(5);return v(f.onAnchorClick(e.href,d))});D(2,"span",12);Q(3);F()()()}a&2&&(a=b.$implicit,b=M(2).$implicit,Xf("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item",
"SAVED_SEARCH"==a.type),yja("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),C("title",a.name),w(1),C("href",a.href,re),w(2),S(" ",a.name," "))},OCa=function(a){a&1&&(D(0,"ul",20),P(1,NCa,4,12,"li",21),F());a&2&&(a=M().$implicit,w(1),C("ngForOf",a.items))},PCa=function(a,b){a&1&&(D(0,"li",7)(1,"sidebar-zippy",8),P(2,MCa,7,3,"ng-template",null,9,Eg),P(4,OCa,2,1,"ng-template",null,10,Eg),F()());if(a&2){a=b.$implicit;var c=N(3),d=N(5);C("title",a.name);w(1);C("header",c)("content",d)}},QCa=
function(a){a&1&&(D(0,"button",28),G(1,"mat-icon",17),F());if(a&2){M();var b=N(6);C("matMenuTriggerFor",b)}},RCa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M(2).$implicit;return v(c.unstar())});Q(1," Unstar ");F()}},SCa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M(2).$implicit;return v(c.unarchive())});Q(1," Unarchive ");F()}},TCa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M().$implicit,d=M(3);
return v(d.openEditHotlist(c.id))});Q(1," Settings ");F();P(2,RCa,2,0,"button",19);P(3,SCa,2,0,"button",19)}a&2&&(a=M().$implicit,w(2),C("ngIf",a.isUnstarable()),w(1),C("ngIf",a.isEditable()))},UCa=function(a,b){if(a&1){var c=r();D(0,"li",24)(1,"a",25);L("click",function(d){var e=t(c).$implicit,f=M(3);return v(f.onAnchorClick(e.href,d))});D(2,"span",12);Q(3);F()();P(4,QCa,2,1,"button",26);D(5,"mat-menu",null,27);P(7,TCa,4,2,"ng-template",15);F()()}a&2&&(a=b.$implicit,Xf("selected",a.isSelected()),
gg("id","bv2-user-hotlists-archived-hotlist-item-",a.id,""),C("title",a.name),w(1),C("href",a.href,re),w(2),jg(a.name),w(1),C("ngIf",a))},VCa=function(a){a&1&&(D(0,"ul",4),P(1,PCa,6,3,"li",5),P(2,UCa,8,7,"li",6),F());a&2&&(a=M(2),w(1),C("ngForOf",a.bookmarkGroups),w(1),C("ngForOf",a.hotlists))},WCa=function(a){a&1&&(D(0,"div"),G(1,"hr"),D(2,"sidebar-zippy",1),P(3,HCa,1,0,"ng-template",null,2,Eg),P(5,VCa,3,2,"ng-template",null,3,Eg),F()());if(a&2){var b=N(4),c=N(6);w(2);C("header",b)("content",c)}},
XCa=function(){return{diameter:100}},YCa=function(a){a&1&&(Qd(),G(0,"circle",4));if(a&2){a=M();var b=N(1);Wf("animation-name","mat-progress-spinner-stroke-rotate-"+a._spinnerAnimationLabel)("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Nf("r",a._getCircleRadius())}},ZCa=function(a){a&1&&(Qd(),G(0,"circle",4));if(a&2){a=M();var b=N(1);Wf("stroke-dashoffset",
a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Nf("r",a._getCircleRadius())}},$Ca=function(a){a&1&&G(0,"mat-spinner",2);a&2&&(a=M(),C("diameter",36),Nf("aria-label",a.ariaLabel))},aDa=function(a){a&1&&G(0,"mat-spinner",3);a&2&&(a=M(),C("diameter",16)("strokeWidth",2),Nf("aria-label",a.ariaLabel))},cDa=function(a){if(null==bDa){var b="undefined"!==typeof document?document.head:
null;bDa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return bDa&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},dDa=function(a){if(a&1){var b=r();D(0,"div",0);L("clickOutside",function(){t(b);var c=M();return v(c.closeHovercard$.next())})("mouseenter",function(){t(b);M().isOnHover$.next(!0);return v()})("mouseleave",function(){t(b);M().isOnHover$.next(!1);return v()});fg(1);F()}a&2&&(a=M(),Yf(a.className),C("cdkTrapFocusAutoCapture",
a.wasTriggeredByKeyboard))},eDa=function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}},fDa=function(a,b){a&1&&(D(0,"div",0,1),fg(2),F());a&2&&(a=b.id,b=M(),C("id",b.id)("ngClass",b._classList),Nf("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},gDa=function(a){a&1&&G(0,"b-spinner")},hDa=function(a){if(a&1){var b=r();D(0,"b-star-toggle",15);L("starClicked",function(){t(b);var c=M().$implicit,d=M();
return v(d.toggleStar(c))});F()}a&2&&(a=M().$implicit,C("starMessage","Star this item")("unStarMessage","Un-star this item")("starred",a.isStarred))},iDa=function(a){a&1&&G(0,"b-hotlist-card",16);a&2&&(a=M().$implicit,C("hotlist",a))},jDa=function(a){a&1&&G(0,"b-bookmark-group-card",17);a&2&&(a=M().$implicit,C("bookmarkGroup",a))},kDa=function(a,b){a&1&&(D(0,"mat-option",8)(1,"div",9),P(2,hDa,1,3,"b-star-toggle",10),D(3,"onedev-hovercard",null,11),P(5,iDa,1,1,"b-hotlist-card",12),P(6,jDa,1,1,"b-bookmark-group-card",
13),F(),D(7,"span",14),Q(8),F()()());if(a&2){a=b.$implicit;var c=N(4);b=M();C("value",a);w(1);Xf("bv2-bookmark-group",b.showHotlists&&a.isGroup);w(1);C("ngIf",b.shouldShowStar(a));w(3);C("ngIf",!a.isGroup);w(1);C("ngIf",!!a.isGroup);w(1);C("onedevHovercardTrigger",c);w(1);jg(a.name)}},lDa=function(){return gia(function(){return(0,B.from)(Promise.resolve(void 0))})},mDa=function(a){a&1&&G(0,"a",1)},nDa=function(a){if(a&1){var b=r();D(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",
3);L("itemSelect",function(c){t(b);var d=M();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return v()});F()()()}a&2&&(a=M(),w(2),C("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",!0))},oDa=function(a){if(a&1){var b=r();D(0,"span");Q(1,"Bookmark groups");F();D(2,"b-hotlist-search-popup",4);L("itemSelect",function(c){t(b);var d=M();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return v()})("click",function(c){return c.stopPropagation()});
F()}a&2&&(w(2),C("showHotlists",!1))},pDa=function(a){a&1&&(D(0,"button",17),L("click",function(c){return c.stopPropagation()}),G(1,"mat-icon",18),F());if(a&2){M();var b=N(5);C("matMenuTriggerFor",b)}},qDa=function(a){if(a&1){var b=r();D(0,"button",19);L("click",function(){t(b);var c=M(3).$implicit;return v(c.unstar())});Q(1," Unstar ");F()}},rDa=function(a){if(a&1){var b=r();D(0,"button",19);L("click",function(){t(b);var c=M(3).$implicit;return v(c.archive())});Q(1," Archive ");F()}},sDa=function(a){if(a&
1){var b=r();D(0,"button",19);L("click",function(){t(b);var c=M(3).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");F()}},tDa=function(a){if(a&1){var b=r();D(0,"button",19);L("click",function(){t(b);var c=M(2).$implicit,d=M(3);return v(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");F();D(2,"button",19);L("click",function(){t(b);var c=M(2).$implicit,d=M(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");F();D(4,"button",19);L("click",function(){t(b);var c=
M(2).$implicit,d=M(3);return v(d.editBookmarkGroup(c.id))});Q(5," Settings ");F();P(6,qDa,2,0,"button",20);P(7,rDa,2,0,"button",20);P(8,sDa,2,0,"button",20)}a&2&&(a=M(2).$implicit,w(6),C("ngIf",a.isUnstarable()),w(1),C("ngIf",a.isEditable()),w(1),C("ngIf",!a.isPreferredHomepage()))},uDa=function(a){a&1&&(D(0,"div",12)(1,"span",13),Q(2),F(),P(3,pDa,2,1,"button",14),D(4,"mat-menu",null,15),P(6,tDa,9,3,"ng-template",16),F()());a&2&&(a=M().$implicit,Pf("id","bv2-user-bookmarkgroup-item-",a.id,""),w(2),
jg(a.name),w(1),C("ngIf",a))},vDa=function(a){a&1&&(D(0,"button",27),G(1,"mat-icon",18),F());if(a&2){M();var b=N(6);C("matMenuTriggerFor",b)}},wDa=function(a){if(a&1){var b=r();D(0,"button",19);L("click",function(){t(b);var c=M(2).$implicit;return v(c.unstar())});Q(1," Unstar ");F()}},xDa=function(a){if(a&1){var b=r();D(0,"button",19);L("click",function(){t(b);var c=M(2).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");F()}},yDa=function(a){if(a&1){var b=r();D(0,"button",
19);L("click",function(){t(b);var c=M().$implicit,d=M(5);"HOTLIST"===c.type?d.location.url(d.paths.editHotlist(c.id)):d.location.url(d.paths.editSavedSearch(c.id));return v()});Q(1," Settings ");F();P(2,wDa,2,0,"button",20);P(3,xDa,2,0,"button",20)}a&2&&(a=M().$implicit,w(2),C("ngIf",a.isUnstarable()),w(1),C("ngIf",!a.isPreferredHomepage()))},zDa=function(a,b){if(a&1){var c=r();D(0,"li",23)(1,"a",24);L("click",function(d){var e=t(c).$implicit,f=M(5);return v(f.onAnchorClick(e.href,d))});D(2,"span",
13);Q(3);F()();P(4,vDa,2,1,"button",25);D(5,"mat-menu",null,26);P(7,yDa,4,2,"ng-template",16);F()()}a&2&&(a=b.$implicit,b=M(2).$implicit,Xf("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),yja("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),C("title",a.getDisplayName()),w(1),C("href",a.href,re),w(2),S(" ",a.getDisplayName()," "),w(1),C("ngIf",b))},ADa=function(a){a&1&&(D(0,"ul",21),P(1,
zDa,8,13,"li",22),F());a&2&&(a=M().$implicit,w(1),C("ngForOf",a.items))},BDa=function(a,b){a&1&&(D(0,"li",8)(1,"sidebar-zippy",9),P(2,uDa,7,3,"ng-template",null,10,Eg),P(4,ADa,2,1,"ng-template",null,11,Eg),F()());if(a&2){a=b.$implicit;var c=N(3),d=N(5);C("title",a.name);w(1);C("header",c)("content",d)("expanded",!1)}},CDa=function(a){a&1&&(D(0,"ul",6),P(1,BDa,6,4,"li",7),F());a&2&&(a=M(2),w(1),C("ngForOf",a.bookmarkGroups))},DDa=function(a){a&1&&P(0,CDa,2,1,"ul",5);a&2&&(a=M(),C("ngIf",a.bookmarkGroups))},
EDa=function(a){if(a&1){var b=r();D(0,"span");Q(1,"Hotlists");F();D(2,"b-hotlist-search-popup",4);L("itemSelect",function(c){t(b);var d=M();d.analytics.trackEvent("hotlistSearch","goToHotlist");d.location.url(c.href);return v()})("click",function(c){return c.stopPropagation()});F()}a&2&&(w(2),C("showGroups",!1))},FDa=function(a){a&1&&(D(0,"button",14),G(1,"mat-icon",15),F());if(a&2){M();var b=N(6);C("matMenuTriggerFor",b)}},GDa=function(a){if(a&1){var b=r();D(0,"button",16);L("click",function(){t(b);
var c=M(2).$implicit;return v(c.unstar())});Q(1," Unstar ");F()}},HDa=function(a){if(a&1){var b=r();D(0,"button",16);L("click",function(){t(b);var c=M(2).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");F()}},IDa=function(a){if(a&1){var b=r();D(0,"button",16);L("click",function(){t(b);var c=M().$implicit,d=M(3);return v(d.openEditHotlist(c.id))});Q(1," Settings ");F();P(2,GDa,2,0,"button",17);P(3,HDa,2,0,"button",17)}a&2&&(a=M().$implicit,w(2),C("ngIf",a.isUnstarable()),w(1),
C("ngIf",!a.isPreferredHomepage()))},JDa=function(a,b){if(a&1){var c=r();D(0,"li",8)(1,"a",9);L("click",function(d){var e=t(c).$implicit,f=M(3);return v(f.onAnchorClick(e.href,d))});D(2,"span",10);Q(3);F()();P(4,FDa,2,1,"button",11);D(5,"mat-menu",null,12);P(7,IDa,4,2,"ng-template",13);F()()}a&2&&(a=b.$implicit,Xf("selected",a.isSelected()),gg("id","bv2-user-hotlists-hotlist-item-",a.id,""),C("title",a.name),w(1),C("href",a.href,re),w(2),jg(a.name),w(1),C("ngIf",a))},KDa=function(a){a&1&&(D(0,"ul",
6),P(1,JDa,8,7,"li",7),F());a&2&&(a=M(2),w(1),C("ngForOf",a.hotlists))},LDa=function(a){a&1&&P(0,KDa,2,1,"ul",5);a&2&&(a=M(),C("ngIf",a.hotlists))},MDa=function(a){a&1&&(D(0,"span"),Q(1,"Saved searches"),F())},NDa=function(a){if(a&1){var b=r();D(0,"button",14);L("click",function(){t(b);var c=M(2).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");F()}},PDa=function(a){if(a&1){var b=r();D(0,"button",14);L("click",function(){t(b);var c=M().$implicit,d=M(3);return v(d.openEditSavedSearch(c.id))});
Q(1," Settings ");F();P(2,NDa,2,0,"button",15);D(3,"button",14);L("click",function(){t(b);var c=M().$implicit,d=M(3);return v(ODa(d,c))});Q(4," Delete ");F()}a&2&&(a=M().$implicit,w(2),C("ngIf",!a.isPreferredHomepage()))},QDa=function(a,b){if(a&1){var c=r();D(0,"li",7)(1,"a",8);L("click",function(e){var f=t(c).$implicit,h=M(3);return v(h.onAnchorClick(f.href,e))});D(2,"span",9);Q(3);F()();D(4,"button",10);G(5,"mat-icon",11);F();D(6,"mat-menu",null,12);P(8,PDa,5,1,"ng-template",13);F()()}if(a&2){a=
b.$implicit;var d=N(7);Xf("selected",a.isSelected());Pf("id","bv2-saved-searches-search-item-",a.id,"");C("title",a.name);w(1);C("href",a.href,re);w(2);jg(a.name);w(1);C("matMenuTriggerFor",d)}},RDa=function(a){a&1&&(D(0,"ul",5),P(1,QDa,9,7,"li",6),F());a&2&&(a=M(2),w(1),C("ngForOf",a.searches))},SDa=function(a){a&1&&P(0,RDa,2,1,"ul",4);a&2&&(a=M(),C("ngIf",a.searches))},VDa=function(a){var b=a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);
b=a.filter(TDa).length;var c=a.filter(function(d){return!TDa(d)}).filter(UDa).length;return{filters:b,text:a.length-b-c,resourceIds:c}},UDa=function(a){a=String(a);a=a.replace("http://b/","");a=a.replace("https://b/","");a=a.replace("b/","");a=a.trim();return 3>a.length?!1:fo(a)},TDa=function(a){return!!a.match(/\w:\w/g)},WDa=function(a,b){return(null!=a?a:0)+(null!=b?b:0)},XDa=function(a,b){for(a.has(b)&&a.delete(b);50<=a.size;)a.delete(a.keys().next().value);a.set(b,void 0)},YDa=function(a,b){var c;
b=null!=(c=null==b?void 0:b.split(","))?c:[];a.clear();c=l(b);for(b=c.next();!b.done;b=c.next())a.set(b.value,void 0)},ZDa=function(a,b){if(a&1){var c=r();D(0,"button",7);L("click",function(){var d=t(c).$implicit,e=M();e.selectedTimeBoundary=d;e.change.emit(d);return v()});Q(1);F()}a&2&&(a=b.$implicit,b=M(),C("disabled",a.numberOfDays===b.selectedTimeBoundary.numberOfDays),w(1),S(" ",a.label," "))},$Da=function(){return"NEAR_SLO MENTIONED UNBLOCKED NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_BLOCKING ASSIGNED".split(" ")},
aEa=function(a,b){switch(a.signalType){case "NEAR_SLO":return b?"SLO violation occurs on "+b:"This issue is near or past an SLO deadline";case "MENTIONED":return b?"You were mentioned on "+b:"You were mentioned on this issue recently";case "UNBLOCKED":return b?"The last blocking issue was closed on "+b:"The last blocking issue was closed recently";case "NEEDS_REPORTER_INPUT":return b?"Issue was assigned back to reporter (you) on "+b:"Issue was assigned back to reporter (you) recently";case "REPLIED_TO_MENTION":return b?
"Someone replied to your mention on "+b:"Someone replied to your mention recently";case "NEWLY_BLOCKING":return b?"This issue started blocking another issue on "+b:"This issue started blocking another issue recently";case "ASSIGNED":return b?"This issue was newly assigned to you on "+b:"This issue was newly assigned to you recently";default:return"This issue requires your attention"}},bEa=function(a){switch(a.signalType){case "NEAR_SLO":return"Issues which have less than 20% of SLO time remaining";
case "MENTIONED":return"Someone mentioned you in a comment";case "NEEDS_REPORTER_INPUT":return"Issue is assigned back to reporter (you) for more context";case "UNBLOCKED":return"All blocking issues are closed";case "NEWLY_BLOCKING":return"Issues that are blocking other issues";case "REPLIED_TO_MENTION":return"Someone you mentioned replied to your comment";case "ASSIGNED":return"Issue newly assigned to you";default:return""}},cEa=function(a,b){a&1&&G(0,"mat-icon",27);a&2&&(a=b.$implicit,C("matBadge",
99<a?"99+":a)("matBadgeHidden",0===a)("matBadgeDescription","Badge indicating "+a+" tasks need attention"))},dEa=function(a){a&1&&G(0,"mat-icon",28)},eEa=function(a){a&1&&(D(0,"button",29),G(1,"mat-icon",30),F());if(a&2){M();var b=N(11);C("matMenuTriggerFor",b)}},gEa=function(a){if(a&1){var b=r();D(0,"button",31);L("click",function(){t(b);var c=M(2);fEa(c,"MISSION_CONTROL");return v()});Q(1," Set as homepage ");F()}},hEa=function(a){if(a&1){var b=r();I(0);D(1,"li",22)(2,"a",7);L("click",function(d){t(b);
var e=M();e.onAnchorClick(e.missionControlPath,d);e.appSearchState.clear();return v()});P(3,cEa,1,3,"mat-icon",23);T(4,"async");P(5,dEa,1,0,"ng-template",null,24,Eg);Q(7," Home ");F();P(8,eEa,2,1,"button",25);T(9,"async");D(10,"mat-menu",null,26);P(12,gEa,2,0,"ng-template",10);F()();K()}if(a&2){var c=N(6);a=M();w(1);Xf("selected",!!a.location.path().match(/^\/home\b/));w(1);C("href",a.missionControlPath,re);w(1);C("ngIf",V(4,6,a.missionControlTaskCount$))("ngIfElse",c);w(5);C("ngIf",!V(9,8,a.isHomepageMissionControl$))}},
iEa=function(a,b){a&1&&G(0,"mat-icon",35);a&2&&(a=b.$implicit,C("matBadge",99<a?"99+":a)("matBadgeHidden",0===a)("matBadgeDescription","Badge indicating "+a+" issues need attention"))},jEa=function(a){a&1&&G(0,"mat-icon",36)},kEa=function(a){a&1&&(I(0),D(1,"button",37),G(2,"mat-icon",30),F(),K());if(a&2){M();var b=N(10);w(1);C("matMenuTriggerFor",b)}},lEa=function(a){if(a&1){var b=r();D(0,"button",31);L("click",function(){t(b);var c=M(2);fEa(c,"NEEDS_ATTENTION");return v()});Q(1," Set as homepage ");
F()}},mEa=function(a){if(a&1){var b=r();D(0,"li",32)(1,"a",7);L("click",function(d){t(b);var e=M();return v(e.onAnchorClick(e.needsAttentionPath,d))});P(2,iEa,1,3,"mat-icon",33);T(3,"async");P(4,jEa,1,0,"ng-template",null,24,Eg);Q(6," Needs attention ");F();P(7,kEa,3,1,"ng-container",4);T(8,"async");D(9,"mat-menu",null,34);P(11,lEa,2,0,"ng-template",10);F()()}if(a&2){var c=N(5);a=M();Xf("selected",!!a.location.path().match(/^\/attention\b/));w(1);C("href",a.needsAttentionPath,re);w(1);C("ngIf",V(3,
6,a.needsAttentionIssueCount$))("ngIfElse",c);w(5);C("ngIf",!V(8,8,a.isHomepageNeedsAttention$))}},nEa=function(a){a&1&&(I(0),D(1,"button",38),G(2,"mat-icon",30),F(),K());if(a&2){M();var b=N(14);w(1);C("matMenuTriggerFor",b)}},oEa=function(a){if(a&1){var b=r();D(0,"button",31);L("click",function(){t(b);var c=M();fEa(c,"ASSIGNED_TO_ME");return v()});Q(1," Set as homepage ");F()}},qEa=function(a){if(a&1){var b=r();D(0,"li")(1,"a",7);L("click",function(c){t(b);var d=M();return v(d.onAnchorClick(d.votedPath,
c))});G(2,"mat-icon",39);Q(3," Upvoted by me ");F()()}a&2&&(a=M(),Xf("selected",pEa(a.appSearchState)),w(1),C("href",a.votedPath,re))},rEa=function(a,b){if(a&1){var c=r();D(0,"li")(1,"a",7);L("click",function(d){var e=t(c).$implicit,f=M();return v(f.onAnchorClick(e,d))});G(2,"mat-icon",40);Q(3," Recently Viewed ");F()()}a&2&&(a=b.$implicit,b=M(),Xf("selected",!!b.location.path().match(/^\/recent\b/)),w(1),C("href",a,re))},sEa=function(){return{diameter:100}},tEa=function(){return{color:"accent",clickAction:"check-indeterminate"}},
uEa=function(a,b){b=void 0===b?156:b;var c=document.createElement("i");c.id=a;c.title=a;c.style.width="10px";c.style.height="10px";c.style.borderRadius="10px";c.style.backgroundColor="#ccc";c.style.zIndex="999";c.style.position="absolute";c.style.top="34px";c.style.left=b+"px";c.style.opacity="0";document.body.appendChild(c);return c},vEa=function(a,b,c){a.style.animation="";a.style.backgroundColor=b;setTimeout(function(){a.style.animation="blink-then-fade "+c+"ms ease-in 1"},0)},xEa=function(a,b,
c){b=void 0===b?"#ccc":b;c=void 0===c?400:c;wEa++;var d=156;d+=12*(wEa-1);return function(e){e=void 0===e?b:e;var f,h=null!=(f=document.getElementById(a))?f:uEa(a,d);vEa(h,e,c)}},yEa=function(a,b){if(a&1){var c=r();I(0);D(1,"iframe",6);L("load",function(){t(c);var d=M();return v(d.contentLoaded=!0)});F();K()}a&2&&(a=b.$implicit,b=M(),w(1),Xf("loading",!b.contentLoaded),C("src",a,aga))},zEa=function(a){a&1&&G(0,"mat-spinner",7)},BEa=function(a){return AEa.some(function(b){return b.test(a)})},CEa=function(a){var b;
return null==(b=a.formContent)?void 0:b.locale},GEa=function(a,b){var c=CEa(a);c=(c&&DEa.includes(c)?CEa(a):"en").replaceAll("-","_").toLowerCase();var d;a=(null==(d=a.initializationData)?0:d.useNightlyRelease)?"nightly":"live";var e;return(null==b?0:null==(e=b.getEnableAlohaBinarySplit)?0:e.call(b))?mh(EEa,a):mh(FEa,a,c)},IEa=function(a,b,c,d){if(HEa)return HEa;var e=GEa(a,d);return HEa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,h){var k=Oj(document,
"SCRIPT");ei(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):h("feedbackV2GlobalObject not found on window.")};k.onerror=function(){h("Feedback binary script tag failed to load: "+e.toString())};c.body.appendChild(k)})},KEa=function(a,b,c,d){if(JEa)return JEa;var e=GEa(a,d);return JEa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,h){var k=Oj(document,"SCRIPT");ei(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):
h("feedbackV2GlobalObject not found on window.")};k.onerror=function(){h("Feedback binary script tag failed to load: "+e.toString())};c.body.appendChild(k)})},LEa=function(a,b,c,d,e){e=void 0===e?!0:e;var f,h,k,q,u;return Ne(function(x){switch(x.nextAddress){case 1:return f=Date.now(),x.yield(IEa(a,c,d,b),2);case 2:h=x.yieldResult;if(!(e||(null==(q=a.initializationData)?0:q.useNightlyRelease)||(null==(u=a.initializationData)?0:u.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);x.jumpTo(3);break}return x.yield(h.initializeFeedbackClientAsync(a,
f,b),4);case 4:k=x.yieldResult;case 3:return k.initiateAloha(),x.return(k)}})},MEa=function(a,b,c,d){var e,f,h;return Ne(function(k){if(1==k.nextAddress)return e=Date.now(),k.yield(KEa(a,c,d.document,b),2);if(3!=k.nextAddress)return f=k.yieldResult,k.yield(f.initializeFeedbackClientAsync(a,e,b,d),3);h=k.yieldResult;h.initiateAloha();return k.return(h)})},NEa=function(a,b,c){var d=!0;d=void 0===d?!0:d;var e,f,h,k,q,u,x,y,E,H;return Ne(function(J){e=c||da;if(null==(f=b)?0:null==(k=(h=f).getEnableAlohaBinarySplit)?
0:k.call(h)){q=e;if(q.isFormOpened)throw u=Error("Mc"),u.name="DuplicateFormError",u;q.isFormOpened=!0;a.callbacks=a.callbacks||{};x=a.callbacks.onClose||function(){};a.callbacks.onClose=function(O){q.isFormOpened=!1;x(O)};try{return J.return(MEa(a,b,q,e))}catch(O){throw q.isFormOpened=!1,O;}}else{y=e;if(y.isFormOpened)throw E=Error("Mc"),E.name="DuplicateFormError",E;y.isFormOpened=!0;a.callbacks=a.callbacks||{};H=a.callbacks.onClose||function(){};a.callbacks.onClose=function(O){y.isFormOpened=!1;
H(O)};try{return J.return(LEa(a,b,y,e.document,d))}catch(O){throw y.isFormOpened=!1,O;}}})},REa=function(a,b){return Ne(function(c){return c.return(new Promise(function(d){var e=OEa(null!=b?b:"")+"/aloha_form_properties?productId="+a;go(e,function(f){f=f.target;var h=null;try{h=nca(PEa,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new PEa,h=QEa(),h=ho(h,7,!0),h=ho(h,10,!0),h=ho(h,12,!0),h=ho(h,13,!1),h=ho(h,14,!0),h=ho(h,15,!0),h=ho(h,20,!1),h=oj(f,io,1,h)}d(h)},"GET","",{},2E3,!0)}))})},
OEa=function(a){return BEa(a)?a:"https://www.google.com/tools/feedback"},SEa=function(a){if(a&1){var b=r();D(0,"button",4);L("click",function(){t(b);var c=M();return v(c.toggle())});G(1,"mat-icon",5);F()}a&2&&(a=M(),Xf("isClosed",a.isClosed),C("ngClass",a.direction)("matTooltip",a.toggleButtonLabel),Nf("aria-label",a.toggleButtonLabel),w(1),C("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},TEa=function(a){a=a.getBoundingClientRect();return 0<=a.top&&a.bottom<=window.innerHeight},UEa=function(a){a=
a.getBoundingClientRect();return 0<a.bottom&&a.top<window.innerHeight},VEa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?function(f){return c.partially(f)}:function(f){return c.fully(f)};return(new B.Observable(function(f){f.next(e(a));var h=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});h.observe(a);return function(){h.unobserve(a)}})).pipe(mf())},WEa=function(a,b,c){var d=(void 0===c?0:c)?function(e){return b.partially(e)}:function(e){return b.fully(e)};return(0,B.merge)((0,B.of)(void 0),
(0,B.fromEvent)(window,"scroll").pipe(jf(500))).pipe(A(function(){return d(a)}),mf())},YEa=function(a){return!!a.match(XEa)&&!a.endsWith("/history")},jo=function(a){return"hyperlink"===a.type},ZEa=function(a){return jo(a)&&YEa(a.href)},aFa=function(a){return jo(a)&&!!a.href.match($Ea)},bFa=function(a){if(a.endsWith("/history"))return null;var b,c;return(a=null!=(c=null==(b=a.match(XEa))?void 0:b[2])?c:null)?"https://screenshot.googleplex.com/"+a+".png":null},cFa=function(a){return"issueReference"===
a.type},dFa=function(a){return jo(a)&&!ZEa(a)&&!(jo(a)&&a.href.startsWith("mailto:"))},eFa=function(a){a&1&&(I(0),G(1,"img",3),T(2,"async"),K());if(a&2){a=M(2);var b;w(1);C("src",V(2,2,a.srcRedirected$),re);Nf("alt",null!==(b=a.alt)&&void 0!==b?b:"user provided image")}},fFa=function(a){a&1&&(I(0),P(1,eFa,3,4,"ng-container",0),T(2,"async"),K());if(a&2){a=M();var b=N(3);w(1);C("ngIf",V(2,2,a.showImage$))("ngIfElse",b)}},gFa=function(a){if(a&1){var b=r();D(0,"a",4);L("click",function(c){t(b);var d=
M();return v(d.trigger(c))})("keydown.enter",function(c){t(b);var d=M();return v(d.trigger(c))});T(1,"async");T(2,"async");D(3,"b-glue");G(4,"mat-icon",5);F();I(5);Q(6);T(7,"async");K();F()}a&2&&(a=M(),C("href",V(1,3,a.src$),re)("title",V(2,5,a.src$)),w(6),jg(V(7,7,a.srcTruncated$)))},hFa=function(a){a&1&&(G(0,"mat-icon",6),T(1,"async"));a&2&&(a=M(),gg("matTooltip","Unable to load image ",V(1,1,a.srcTruncated$),""))},iFa=function(a){a&1&&(I(0),G(1,"br"),D(2,"a",4),G(3,"b-secure-image-widget",5),F(),
G(4,"br"),K());if(a&2){a=M().ngIf;var b=M();w(2);C("href",a,re)("rel",b.EXTERNAL_LINK_REL);w(1);C("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},jFa=function(a){a&1&&G(0,"b-secure-image-widget",6);if(a&2){a=M().ngIf;var b=M();C("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!1)}},kFa=function(a){a&1&&(I(0)(1,1),T(2,"async"),P(3,iFa,5,5,"ng-container",2),P(4,jFa,1,3,"b-secure-image-widget",3),K()());a&2&&(a=M(),w(1),C("ngSwitch",V(2,3,a.displayMode$)),w(2),
C("ngSwitchCase",a.DisplayMode.SHOW),w(1),C("ngSwitchCase",a.DisplayMode.COLLAPSE))},mFa=function(a){if(a&1){var b=r();D(0,"a",8);L("keydown.enter",function(){t(b);var c=M(2);return v(lFa(c))})("keydown.space",function(){t(b);var c=M(2);return v(lFa(c))})("click",function(){t(b);var c=M(2);return v(lFa(c))});Q(1," Dismiss");F()}},nFa=function(a){a&1&&(D(0,"div",4)(1,"div",5),G(2,"span",6),P(3,mFa,2,0,"a",7),F()());a&2&&(a=M(),w(2),C("innerHtml",a.announcement.message,qe),w(1),C("ngIf",a.announcement.dismissible))},
pFa=function(a){if(a&1){var b=r();D(0,"b-resizable-sidebar",9);L("widthChanged",function(c){t(b);var d=M();c!==d.matSidebarWidth&&(d.matSidebarWidth=c,oFa(d,c));return v()});G(1,"b-sidebar");F()}a&2&&(a=M(),C("size",a.matSidebarWidth)("disableToggleBtn",!0))},qFa=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},rFa=function(a){a&1&&(D(0,"div",2),Q(1," You are about to access a file marked as restricted. Access will be logged and audited. You must delete any downloaded files from local storage when finished. "),
D(2,"a",13),Q(3," Learn more "),F()());a&2&&(a=M(2),w(2),C("href",a.getRestrictedAccessHelpLink(),re))},tFa=function(a){a&1&&(I(0),P(1,rFa,4,1,"div",8),K());a&2&&(a=M(),w(1),C("ngIf",sFa(a)))},uFa=function(a){a&1&&(D(0,"div",2)(1,"span",14),Q(2," You do not have access to view this attachment. "),F()())},vFa=function(a){a&1&&G(0,"mat-spinner",15)},wFa=function(a,b){a&1&&(I(0),D(1,"time",1),T(2,"async"),Q(3),F(),K());if(a&2){a=b.ngIf;b=M();w(1);var c=Of(r(),"padding-left: ",b.paddingLeftPx,"px");Kja(Ija,
Jja,c,!1);C("title",a.title);Nf("datetime",V(2,6,b.timestampIso$));w(2);jg(a.formatted)}},yFa=function(a){if(a&1){var b=r();D(0,"button",10);L("click",function(){t(b);var c=M(2),d=new pi;c.date=d;c.dateSelectionChange.emit(d);xFa(c,c.date);c.calendar._getCurrentViewComponent()._focusActiveCell(!1);c.dateChange.emit(c.date);return v(c.saveClicked.emit())});Q(1,"Today");F()}},zFa=function(a){if(a&1){var b=r();D(0,"button",11);L("click",function(){t(b);var c=M(2);c.date=void 0;c.dateSelectionChange.emit(void 0);
c.dateChange.emit(c.date);return v(c.saveClicked.emit())});Q(1,"None");F()}},AFa=function(a){a&1&&(D(0,"div",1),P(1,yFa,2,0,"button",8),P(2,zFa,2,0,"button",9),G(3,"mat-divider"),F());a&2&&(a=M(),w(1),C("ngIf",a.todayButtonEnabled),w(1),C("ngIf",a.noneButtonEnabled&&!a.required))},BFa=function(a){a&1&&G(0,"b-formatted-date-time",4);a&2&&(a=M(),C("date",a.value))},CFa=function(a){a&1&&(I(0),Q(1,"---"),K())},DFa=function(a){a&1&&G(0,"mat-pseudo-checkbox",5);a&2&&(a=M(),C("state",a.selected?"checked":
"unchecked")("disabled",a.disabled))},EFa=function(a,b){if(a&1){var c=r();D(0,"div",8)(1,"mat-checkbox",9);L("change",function(){var d=t(c).$implicit,e=M();e.focusFilterBox();var f=e.valueMap.get(d);f?e.valueMap.set(d,!1):!1===f?(f=null===e.originalValueMap.get(d),e.valueMap.set(d,f?null:!0)):e.valueMap.set(d,!0);e.onSave.emit({valueMap:e.valueMap,valueChanged:e.valueChanged()});return v()})("click",function(d){return d.stopPropagation()});Q(2);F()()}a&2&&(a=b.$implicit,b=M(),C("title",b.getDisplayString(a)),
w(1),C("checked",!!b.valueMap.get(a))("indeterminate",null===b.valueMap.get(a)),w(1),S(" ",b.getDisplayString(a)," "))},GFa=function(a){if(a&1){var b=r();D(0,"input",10,11);L("keydown",function(c){t(b);var d=M();"Enter"===c.key&&(FFa(d)&&d.addValue(),c.preventDefault());return v()})("click",function(c){return c.stopPropagation()})("ngModelChange",function(c){t(b);var d=M();return v(d.filterValue=c)});F()}a&2&&(a=M(),C("type","REPEATED_NUMERIC"===a.type?"number":"text")("ngModel",a.filterValue)("placeholder",
"REPEATED_ENUM"===a.type?"Filter values":"Add or filter values"))},HFa=function(a){a&1&&G(0,"mat-divider")},IFa=function(a){if(a&1){var b=r();D(0,"div",12);L("click",function(c){t(b);var d=M();c.stopPropagation();return v(d.addValue())});Q(1," Add ");F()}},JFa=function(a){if(a&1){var b=r();D(0,"div")(1,"b-date-time-input",13);L("valueChange",function(c){t(b);var d=M();return v(d.currentSelectedDate=c)});F();D(2,"div",14);L("click",function(c){t(b);var d=M();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=
c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;return v()});Q(3," Add ");F()()}a&2&&(a=M(),w(1),C("value",a.currentSelectedDate))},KFa=function(a){if(a&1){var b=r();D(0,"div",0);L("keydown",function(c){t(b);var d=M();return v(d.processKeydown(c))});fg(1);F()}a&2&&(a=M(),Yf(a.className),Nf("id",a.id))},LFa=function(a){a&1&&bg(0)},NFa=function(a){if(a&1){var b=r();D(0,"div",3);L("click",function(){t(b);var d=M();return v(d.select(void 0))});P(1,LFa,
1,0,"ng-container",4);F()}if(a&2){a=M();var c=N(3);C("option",void 0);Nf("aria-selected",a.isSelected(void 0));w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",ng(4,MFa))}},OFa=function(a){a&1&&bg(0)},QFa=function(a){if(a&1){var b=r();D(0,"div",3);L("click",function(){t(b);var e=M().$implicit,f=M();return v(f.select(e))});P(1,OFa,1,0,"ng-container",4);F()}if(a&2){a=M().$implicit;var c=M(),d=N(3);C("option",a);Nf("aria-selected",c.isSelected(a));w(1);C("ngTemplateOutlet",d)("ngTemplateOutletContext",
og(4,PFa,a))}},SFa=function(a,b){a&1&&(I(0),P(1,QFa,2,6,"div",0),K());a&2&&(a=b.$implicit,w(1),C("ngIf",a))},TFa=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M(2).$implicit,w(1),S(" ",a," "))},UFa=function(a){a&1&&(D(0,"span",8),Q(1,"--"),F())},VFa=function(a){a&1&&(I(0),P(1,TFa,2,1,"ng-container",5),P(2,UFa,2,0,"ng-template",null,7,Eg),K());if(a&2){var b=N(3);a=M().$implicit;w(1);C("ngIf",null!=a)("ngIfElse",b)}},WFa=function(a){a&1&&bg(0)},XFa=function(a){a&1&&P(0,WFa,1,0,"ng-container",4);if(a&2){a=
M().$implicit;var b=M();C("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",og(2,PFa,a))}},YFa=function(a){a&1&&(P(0,VFa,4,2,"ng-container",5),P(1,XFa,1,4,"ng-template",null,6,Eg));if(a&2){var b=N(2);a=M();C("ngIf",!a.optionTemplate)("ngIfElse",b)}},ZFa=function(a){a&1&&bg(0)},aGa=function(a){a&1&&(I(0),P(1,ZFa,1,0,"ng-container",10),K());a&2&&(a=M(),w(1),C("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",og(2,$Fa,a.value)))},bGa=function(a){a&1&&bg(0)},cGa=function(a){a&
1&&(I(0),P(1,bGa,1,0,"ng-container",10),K());a&2&&(a=M(2),w(1),C("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",og(2,$Fa,a.value)))},dGa=function(a){a&1&&P(0,cGa,2,4,"ng-container",3);if(a&2){a=M();var b=N(8);C("ngIf",a.optionTemplate)("ngIfElse",b)}},eGa=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M(2),w(1),S(" ",a.value," "))},fGa=function(a){a&1&&(D(0,"span",12),Q(1,"--"),F())},gGa=function(a){a&1&&(P(0,eGa,2,1,"ng-container",3),P(1,fGa,2,0,"ng-template",null,11,Eg));if(a&2){var b=
N(2);a=M();C("ngIf",null!=a.value)("ngIfElse",b)}},hGa=function(a){a&1&&(Qd(),D(0,"svg",13),G(1,"path",14),F())},iGa=function(a){a&1&&(D(0,"div"),Q(1," The selected issues have no custom fields in common. "),F())},jGa=function(a){a&1&&(D(0,"span"),Q(1,"*"),F())},kGa=function(a){if(a&1){var b=r();D(0,"input",16);L("ngModelChange",function(c){t(b);var d=M(2).$implicit;return v(d.textValue=c)});F()}a&2&&(a=M(2).$implicit,M(),C("ngModel",a.textValue),Nf("aria-labelledby",ko(a)))},lGa=function(a){if(a&
1){var b=r();D(0,"input",17);L("ngModelChange",function(c){t(b);var d=M(2).$implicit;return v(d.numericValue=c)});F()}a&2&&(a=M(2).$implicit,M(),C("ngModel",a.numericValue),Nf("aria-labelledby",ko(a)))},nGa=function(a){if(a&1){var b=r();D(0,"div")(1,"b-date-time-input",18);L("valueChange",function(e){t(b);var f=M(2).$implicit;M();return v(f.dateValue=e?vl(e):void 0)});F()()}if(a&2){a=M(2).$implicit;var c=M(),d;w(1);C("value",null!==(d=mGa(a.dateValue))&&void 0!==d?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",
ko(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},pGa=function(a){if(a&1){var b=r();D(0,"onedev-single-select",19);L("valueChange",function(d){t(b);var e=M(2).$implicit;return v(e.enumValue=d)});F()}if(a&2){a=M(2).$implicit;M();var c;C("value",a.enumValue)("options",null!==(c=a.allowedValue)&&void 0!==c?c:ng(3,oGa));Nf("aria-labelledby",ko(a))}},rGa=function(a){if(a&1){var b=r();D(0,"b-bulk-repeated-field-picker",20);L("onSave",function(e){t(b);var f=M(2).$implicit,h=M();return v(qGa(h,
f.customFieldId,e))});F()}if(a&2){a=M(2).$implicit;var c=M(),d;C("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",null!==(d=a.allowedValue)&&void 0!==d?d:ng(3,oGa))}},sGa=function(a){a&1&&(I(0,10),P(1,kGa,1,2,"input",11),P(2,lGa,1,2,"input",12),P(3,nGa,2,4,"div",13),P(4,pGa,1,4,"onedev-single-select",14),P(5,rGa,1,4,"b-bulk-repeated-field-picker",15),K());if(a&2){a=M().$implicit;var b=M();C("ngSwitch",b.getCustomFieldType(a));w(1);C("ngSwitchCase",
"TEXT");w(1);C("ngSwitchCase","NUMERIC");w(1);C("ngSwitchCase","DATE");w(1);C("ngSwitchCase","ENUM")}},tGa=function(a){if(a&1){var b=r();D(0,"span");Q(1," Multiple values ");F();D(2,"a",21);L("click",function(){t(b);var c=M().$implicit,d=M();return v(d.clearCustomFieldValue(c))});Q(3,"X");F()}},uGa=function(a,b){a&1&&(D(0,"div",5)(1,"div",6)(2,"label",7),Q(3),P(4,jGa,2,0,"span",1),F()(),P(5,sGa,6,5,"ng-template",8),P(6,tGa,4,0,"ng-template",null,9,Eg),F());if(a&2){a=b.$implicit;var c=N(7);M();w(2);
C("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]");Nf("id",ko(a));w(1);S(" ",a.name," ");w(1);C("ngIf",a.required);w(1);C("ngIf",!a.hasMultipleValues)("ngIfElse",c)}},vGa=function(a){a&1&&G(0,"img",9);a&2&&(a=M(),C("src",a.person.imageUrl,re)("alt",a.person.name+"'s profile picture"))},wGa=function(a){a&1&&(D(0,"div",10),Q(1),F());a&2&&(a=M(),w(1),S(" ",a.person.email," "))},xGa=function(a){a&1&&(D(0,"div",11)(1,"onedev-chip",12),G(2,"mat-icon",13),Q(3),F()());a&2&&(a=M(),w(3),S("",
a.outOfOfficeDescription," "))},yGa=function(a){a&1&&(D(0,"li"),Q(1),F());a&2&&(a=M(2),w(1),jg(a.person.title))},zGa=function(a){a&1&&G(0,"li",18)},AGa=function(a){a&1&&(D(0,"li"),Q(1),F());a&2&&(a=M(2),w(1),jg(a.person.department))},BGa=function(a){a&1&&(I(0),G(1,"mat-icon",14),D(2,"div",15)(3,"ul",16),P(4,yGa,2,1,"li",8),P(5,zGa,1,0,"li",17),P(6,AGa,2,1,"li",8),F()(),K());a&2&&(a=M(),w(4),C("ngIf",a.person.title),w(1),C("ngIf",a.person.title&&a.person.department),w(1),C("ngIf",a.person.department))},
CGa=function(a){a&1&&(I(0),G(1,"mat-icon",19),D(2,"div",15),Q(3),F(),K());a&2&&(a=M(),w(3),jg(a.person.location))},DGa=function(a){a&1&&(D(0,"li")(1,"a",21),Q(2,"Teams"),F()());a&2&&(a=M(2),w(1),C("href","https://moma.corp.google.com/person/"+a.person.ldap,re))},EGa=function(a){a&1&&G(0,"li",18)},FGa=function(a){a&1&&(I(0),G(1,"mat-icon",20),D(2,"div",15)(3,"ul",16),P(4,DGa,3,1,"li",8),P(5,EGa,1,0,"li",17),D(6,"li")(7,"a",21),Q(8,"Whostory"),F()(),G(9,"li",18),D(10,"li")(11,"a",21),Q(12,"Calendar"),
F()(),G(13,"li",18),D(14,"li")(15,"a",21),Q(16,"CLs"),F()(),G(17,"li",18),D(18,"li")(19,"a",21),Q(20,"Readability"),F()()()(),K());a&2&&(a=M(),w(4),C("ngIf",a.person.title||a.person.department),w(1),C("ngIf",a.person.title||a.person.department),w(2),C("href","https://whostory.corp.google.com/"+a.person.ldap,re),w(4),C("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",re),w(4),C("href","https://critique.corp.google.com/"+a.person.ldap,re),w(4),C("href",
"https://icanread.corp.google.com/s/"+a.person.ldap,re))},GGa=function(a,b){if(null==a)return null;a=a.getRequestHook(b);return null==a?null:a},HGa=function(a){if(null!=a.queryParams){var b={},c;for(c in a.queryParams)void 0!==a.queryParams[c]&&(b[c]=a.queryParams[c]);a.queryParams=b}},IGa=function(a,b,c){c=void 0===c?{}:c;b=l(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=l(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},JGa=function(a){return Object.assign({},
{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},KGa=function(a,b){return lo(b,a)},LGa=function(a,b,c){b[a]=c},MGa=function(){return{}},RGa=function(a,b){var c=new a;return null==b?c:NGa(b,OGa,PGa,QGa,a)},OGa=function(a,b){return b[a]},PGa=function(a,b,c){b.Serializable$values[a]=c},QGa=function(a){if(null==a)throw Error("gd");return new a},NGa=function(a,b,c,d,e){e=d(e);for(var f=SGa(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},u=l(f.keys||
[]),x=u.next(),y={};!x.done;y={mapMetadata:y.mapMetadata},x=u.next()){x=x.value;var E=b(x,a);if(null!=E){var H=void 0;if(h.hasOwnProperty(x)){if(f.emptyArrayIsUnset&&0===E.length)continue;H=TGa(E,b,c,d,!0,!0,h[x])}else if(k.hasOwnProperty(x))H=TGa(E,b,c,d,!1,!0,k[x]);else if(q.hasOwnProperty(x))y.mapMetadata=q[x],H=y.mapMetadata.isPropertyArray?E.map(function(J){return function(O){return UGa(O,J.mapMetadata,b,c,d)}}(y)):UGa(E,y.mapMetadata,b,c,d);else if(Array.isArray(E)){if(f.emptyArrayIsUnset&&
0===E.length)continue;H=TGa(E,b,c,d,!0,!1)}else H=E;c(x,e,H)}}return e},UGa=function(a,b,c,d,e){for(var f={},h=l(Object.keys(a)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a[k];null!=q&&(f[k]=TGa(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},TGa=function(a,b,c,d,e,f,h){if(f&&null==h)throw Error("hd");if(null==a)return a;var k;e&&f?k=a.map(function(q){return NGa(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):k=!e&&f?NGa(a,b,c,d,h):"object"===typeof a?JSON.parse(JSON.stringify(a)):
a;return k},SGa=function(a,b){if(b instanceof mo)a=JGa(b.getPartialClassMetadata());else if(a instanceof mo)a=JGa(a.getPartialClassMetadata());else throw Error("id");return a},WGa=function(a){return a&&VGa.test(a)?a.split("@")[0]:""},XGa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},YGa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},ZGa=function(a,b){return a.map(function(c){var d,
e,f,h=null==(e=null==b?void 0:null==(d=b.matches)?void 0:d.find(function(H){return H.lookupId===c}))?void 0:null==(f=e.personId)?void 0:f[0];if(!h)return{ldap:WGa(c),name:"",email:c};var k;d=null==b?void 0:null==(k=b.people)?void 0:k[h];var q;h=null==(q=YGa(null==d?void 0:d.email))?void 0:q.value;var u,x;q=null==d?void 0:null==(u=d.name)?void 0:null==(x=u[0])?void 0:x.displayName;var y,E;u=null==d?void 0:null==(y=d.photo)?void 0:null==(E=y[0])?void 0:E.url;x=XGa(null==d?void 0:d.organization);y=null==
x?void 0:x.title;E=null==x?void 0:x.department;x=null==x?void 0:x.location;return{ldap:WGa(h),email:h||c||"",name:q||"",imageUrl:u,title:y,department:E,location:x}})},$Ga=function(a,b){a&1&&(D(0,"onedev-person-hovercard-body",1),T(1,"async"),fg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),fg(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),F());a&2&&(a=b.ngIf,b=M(),C("person",a)("outOfOfficeDescription",V(1,2,b.outOfOfficeDescription$)))},
aHa=function(a){a&1&&(D(0,"onedev-person-hovercard",1,2),fg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),F());if(a&2){var b=N(1);a=M();C("email",a.email)("enableWaldo",!0)("onedevIsHovercardReady",b.init)}},bHa=function(a){a&1&&bg(0)},cHa=function(a){a&1&&(I(0),D(1,"span",2),P(2,bHa,1,0,"ng-container",3),F(),D(3,"onedev-hovercard",null,4),G(5,"b-person-card",5),F(),K());if(a&2){var b=N(4);a=M();var c=N(2);w(1);C("onedevHovercardTrigger",b)("onedevHovercardActive",!!a.email);
w(1);C("ngTemplateOutlet",c);w(3);C("email",a.email)}},dHa=function(a){a&1&&fg(0)},eHa=function(a,b){a&1&&(D(0,"div",1),Qd(),D(1,"svg",2)(2,"g"),G(3,"path",3),F()(),Kd.currentNamespace=null,D(4,"span",4),Q(5),F()());a&2&&(a=b.ngIf,Nf("aria-label",a)("title",a),w(5),jg(a))},fHa=function(a){a&1&&G(0,"waldo-availability-chip",1);a&2&&(a=M(),C("user",a.user),Nf("coinonly",a.coinonly))},no=function(a){return"string"===typeof a?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},gHa=function(a){var b=
[];a=[].concat.apply([],p(a.map(function(e){return e.actions})));a=l(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$48:d.action$jscomp$48},c=a.next())d.action$jscomp$48=c.value,b.some(function(e){return function(f){return ki(e.action$jscomp$48,f)}}(d))||b.push(d.action$jscomp$48);return b},hHa=function(a){return Array.from(new Set([].concat.apply([],p(a.map(function(b){return b.issueIds})))))},iHa=function(a,b){a&1&&(D(0,"li"),Q(1),F());a&2&&(a=b.$implicit,w(1),jg(a))},jHa=function(a,b,c,d){c&&
c.targetTime&&(c.endTime?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},kHa=function(a,b){return a.sloBounds.targetTime.seconds-b.sloBounds.targetTime.seconds},oo=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},po=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},lHa=function(a,b){return po([].concat(p(a.keys())),function(c){return b(a.get(c))})},mHa=function(){return{startTime:Date.now(),firstActionSeen:!1,editCount:0,
variations:new Set}},qo=function(a){return a?ka(a,"@")?a:"[Deleted User]"===a?a:a+"@google.com":""},nHa=function(a){return a.customFieldValue?String(a.customFieldValue.customFieldId):a.fieldName},qHa=function(a){if(a&1){var b=r();I(0,3);D(1,"onedev-hovercard-action",4);L("onAction",function(){t(b);var e=M();return v(oHa(e))});T(2,"async");D(3,"span");Q(4);F()();D(5,"onedev-hovercard-action",4);L("onAction",function(){t(b);var e=M();return v(pHa(e))});T(6,"async");D(7,"span");Q(8);F()();K()}if(a&2){a=
M();var c,d;w(1);C("disabled",null!==(c=V(2,4,a.actionService.assigneeUpdating$))&&void 0!==c?c:!1);w(3);jg(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");w(1);C("disabled",null!==(d=V(6,6,a.actionService.ccUpdating$))&&void 0!==d?d:!1);w(3);jg(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},rHa=function(a){a&1&&(I(0),G(1,"b-availability-chip",3),K());a&2&&(a=M(2).ngIf,w(1),C("user",a.email))},sHa=function(a){a&1&&(I(0),Q(1),K(),P(2,rHa,2,1,"ng-container",0));if(a&
2){a=M().ngIf;var b=M();w(1);jg(a.content);w(1);C("ngIf",b.enableWaldoAvailability&&b.availabilityChipEnabled)}},tHa=function(a){a&1&&bg(0)},uHa=function(a){a&1&&(I(0),D(1,"span",4),P(2,tHa,1,0,"ng-container",5),F(),D(3,"onedev-hovercard",null,6),G(5,"b-issue-person-card",7),F(),K());if(a&2){var b=N(4);a=M().ngIf;var c=N(2),d=M();w(1);C("onedevHovercardTrigger",b);Nf("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);w(1);C("ngTemplateOutlet",c);w(3);C("email",a.email)}},vHa=function(a,
b){a&1&&(I(0),P(1,sHa,3,2,"ng-template",null,1,Eg),P(3,uHa,6,4,"ng-container",2),K());if(a&2){a=b.ngIf;var c=N(2);b=M();w(3);C("ngIf",b.hovercardEnabled&&b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},wHa=function(a){a&1&&G(0,"b-user-display-name",2);a&2&&(a=M(),C("email",a.getEmailAddress())("hovercardEnabled",!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},xHa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(),w(1),jg(a.getDisplayString()))},
yHa=function(a){a&1&&bg(0)},zHa=function(a){a&1&&(I(0),D(1,"span",3),P(2,yHa,1,0,"ng-container",4),F(),D(3,"onedev-hovercard",null,5),G(5,"b-issue-person-card",6),F(),K());if(a&2){var b=N(4);a=M().ngIf;var c=N(3);w(1);C("onedevHovercardTrigger",b);w(1);C("ngTemplateOutlet",c);w(3);C("email",a.email)}},BHa=function(a){a&1&&(I(0),G(1,"img",8),K());a&2&&(a=M(2).ngIf,M(),w(1),C("src",AHa[a.email],re))},CHa=function(a){a&1&&G(0,"img",11);a&2&&(a=M(3).ngIf,C("src",a.src,re)("srcset",a.srcset))},DHa=function(a){a&
1&&(D(0,"span",9),P(1,CHa,1,2,"img",10),F());a&2&&(a=M(2).ngIf,Xf("anonymous",!a.showImage),w(1),C("ngIf",a.showImage))},FHa=function(a){a&1&&(P(0,BHa,2,1,"ng-container",0),P(1,DHa,2,3,"span",7));if(a&2){a=M().ngIf;var b=M();C("ngIf",a.email&&EHa(b,a.email));w(1);C("ngIf",!EHa(b,a.email))}},GHa=function(a,b){a&1&&(I(0),P(1,zHa,6,3,"ng-container",1),P(2,FHa,2,2,"ng-template",null,2,Eg),K());if(a&2){a=b.ngIf;var c=N(3);b=M();w(1);C("ngIf",b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},HHa=function(a){a&
1&&(D(0,"div",8),G(1,"b-spinner"),F())},IHa=function(a){a&1&&G(0,"code",22);a&2&&(a=M(2).$implicit,M(2),C("innerHtml",ih(a.formattingModeDiff),qe))},JHa=function(a){a&1&&(D(0,"code",23),Q(1),F());a&2&&(a=M(2).$implicit,w(1),S(" ",a.formattingMode," "))},KHa=function(a){a&1&&(D(0,"p",19),Q(1," Formatting: "),P(2,IHa,1,1,"code",20),P(3,JHa,2,1,"code",21),F());a&2&&(a=M(3),w(2),C("ngIf",a.diffView),w(1),C("ngIf",!a.diffView))},LHa=function(a){if(a&1){var b=r();D(0,"div")(1,"span",24)(2,"b-person-hovercard",
25);T(3,"omitObfuscatedEmail");Q(4);T(5,"appendDomain");F()();D(6,"a",26);L("click",function(c){t(b);var d=M().$implicit,e=M(2);d=d.version;c.stopPropagation();c=e.paths.editIssue(e.issueId)+("#comment"+e.commentNumber+"version"+d);e.location.replaceState(c);return v()});Q(7);F()()}a&2&&(a=M().$implicit,M(2),w(2),C("email",V(3,5,zi(a.lastEditorUser))),w(2),S(" <",V(5,7,zi(a.lastEditorUser)),"> "),w(2),Pf("aria-label","Comment version ",a.version,""),gg("id","bv2-edit-issue-comment-",a.version,""),
w(1),S(" #",a.version,""))},MHa=function(a){a&1&&(D(0,"div",30),Q(1),F());a&2&&(a=M(2).$implicit,w(1),jg(a.preview))},NHa=function(a){a&1&&(D(0,"div",31),Q(1,"Comment deleted."),F())},OHa=function(a){a&1&&(D(0,"div",32),Q(1,"Comment history restricted."),F())},PHa=function(a){a&1&&(I(0),P(1,MHa,2,1,"div",27),P(2,NHa,2,0,"div",28),P(3,OHa,2,0,"div",29),K());a&2&&(a=M().$implicit,w(1),C("ngIf",!a.restricted&&!a.deleted),w(1),C("ngIf",!a.restricted&&a.deleted),w(1),C("ngIf",a.restricted))},QHa=function(a){a&
1&&(D(0,"div",35),Q(1,"Comment deleted."),F())},RHa=function(a){a&1&&(D(0,"div",36),T(1,"async"),F());if(a&2){a=M(2).$implicit;var b=M(2);Xf("codefont",V(1,3,b.codefont.codefont$));C("innerHtml",a.unlinkifiedComment,qe)}},SHa=function(a){a&1&&(D(0,"div",36),T(1,"async"),F());if(a&2){a=M(2).$implicit;var b=M(2);Xf("codefont",V(1,3,b.codefont.codefont$));C("innerHtml",ih(a.diff),qe)}},THa=function(a){a&1&&(D(0,"div",32),Q(1," This comment is not available due to present or past restrictions on the comment. "),
F())},UHa=function(a){a&1&&(I(0),P(1,QHa,2,0,"div",33),P(2,RHa,2,5,"div",34),P(3,SHa,2,5,"div",34),P(4,THa,2,0,"div",29),K());if(a&2){a=M().$implicit;var b=M(2);w(1);C("ngIf",!a.restricted&&a.deleted);w(1);C("ngIf",!b.diffView&&!a.restricted&&!a.deleted);w(1);C("ngIf",b.diffView&&!a.restricted&&!a.deleted);w(1);C("ngIf",a.restricted)}},VHa=function(a,b){if(a&1){var c=r();D(0,"li",11)(1,"div",12);G(2,"b-user-image",13);F();D(3,"div",14);L("click",function(){var d=t(c).$implicit;return v(d.open=!d.open)});
G(4,"b-user-display",15)(5,"b-formatted-date-time",16);P(6,KHa,4,2,"p",17);P(7,LHa,8,9,"div",18);P(8,PHa,4,3,"ng-container",18);F();P(9,UHa,5,4,"ng-container",18);F()}a&2&&(a=b.$implicit,M(2),Xf("comment-version-open",a.open),w(2),C("email",zi(a.lastEditorUser)),w(2),C("model",a.lastEditorUser),w(1),C("timestamp",a.lastModified),w(1),C("ngIf",!a.deleted),w(1),C("ngIf",a.open),w(1),C("ngIf",!a.open),w(1),C("ngIf",a.open))},WHa=function(a){a&1&&(D(0,"ul",9),P(1,VHa,10,9,"li",10),F());a&2&&(a=M(),w(1),
C("ngForOf",a.history)("ngForTrackBy",a.trackByIndex))},XHa=function(){},$Ha=function(){var a={timeout:5E3};a=void 0===a?{}:a;return null!=YHa?YHa:YHa=ZHa(a)},aIa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},ZHa=function(a){a=void 0===a?{}:a;var b;return Ne(function(c){if(1==c.nextAddress)return(b=window.gapi)&&b.client&&b.client.load?c.return(b):c.yield(bIa(mh(cIa),a),2);if(3!=c.nextAddress){b=window.gapi;if(!b)throw Error("md");return b.client&&
b.client.load?c.jumpTo(3):c.yield(aIa(),3)}return c.return(b)})},dIa=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},fIa=function(a,b){b=void 0===b?0:b;var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(eIa.has(a))return eIa.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){eIa.delete(a)});eIa.set(a,b);return b}return Promise.resolve()},gIa=function(a,b){var c;return a.client.init({apiKey:b.apiKey,clientId:b.clientId,
scope:b.scope,discoveryDocs:b.discoveryDocs,hostedDomain:b.hostedDomain,fetchBasicProfile:null!=(c=b.fetchBasicProfile)?c:!0})},hIa=function(a){a&1&&G(0,"b-user-image",5);a&2&&(a=M(),C("email",a.email))},iIa=function(a){a&1&&bg(0)},jIa=function(a){a&1&&(I(0),D(1,"span",6),P(2,iIa,1,0,"ng-container",7),F(),D(3,"onedev-hovercard",null,8),G(5,"b-issue-person-card",9),F(),K());if(a&2){var b=N(4);a=M();var c=N(4);w(1);C("onedevHovercardTrigger",b);w(1);C("ngTemplateOutlet",c);w(3);C("email",a.email)}},
kIa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(),w(1),jg(a.email))},lIa=function(a){a&1&&(D(0,"span",10),G(1,"b-availability-chip",11),F());a&2&&(a=M(),w(1),C("user",a.email))},mIa=function(a){a&1&&G(0,"b-icon",7)},nIa=function(a){a&1&&G(0,"b-user-image",8);a&2&&(a=M(2),C("email",a.email))},oIa=function(a){a&1&&(I(0),P(1,mIa,1,0,"b-icon",5),P(2,nIa,1,1,"ng-template",null,6,Eg),K());if(a&2){var b=N(3);a=M();w(1);C("ngIf",a.enableGroupIcon&&a.isGroup)("ngIfElse",b)}},pIa=function(a){a&1&&G(0,
"b-user-display-name",9);a&2&&(a=M(),C("email",a.email)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},qIa=function(a){a&1&&bg(0)},rIa=function(a){a&1&&(I(0),D(1,"span",12),P(2,qIa,1,0,"ng-container",13),F(),D(3,"onedev-hovercard",null,14),G(5,"b-issue-person-card",15),F(),K());if(a&2){var b=N(4);M();var c=N(2);a=M();w(1);C("onedevHovercardTrigger",b);w(1);C("ngTemplateOutlet",c);w(3);C("email",a.email)}},sIa=function(a){a&1&&(D(0,"span",16),Q(1),F());a&2&&(a=M(2),w(1),jg(a.email))},
tIa=function(a){a&1&&(P(0,rIa,6,3,"ng-container",10),P(1,sIa,2,1,"ng-template",null,11,Eg));if(a&2){var b=N(2);a=M();C("ngIf",a.isNonObfuscatedEmail(a.email))("ngIfElse",b)}},uIa=function(a){a&1&&(G(0,"mat-icon",17),T(1,"async"),T(2,"async"));if(a&2){a=M();var b,c;C("svgIcon",null!==(b=V(1,2,a.iconName$))&&void 0!==b?b:"")("matTooltip",null!==(c=V(2,4,a.iconToolTip$))&&void 0!==c?c:"")}},vIa=function(a){a&1&&(I(0),G(1,"b-availability-chip",18),K());a&2&&(a=M(),w(1),C("user",a.email))},yIa=function(a,
b){var c=new wIa;a=ro(c,a,b);xIa(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return so("SPAN",{"class":"diff-removed"},d);case 1:return so("SPAN",{"class":"diff-added"},d);case 0:return so("SPAN",{"class":null},d);default:throw Error("od`"+e);}});return to(c)},zIa=function(a){var b;return"DELETED"===(null==(b=a.entityStatus)?void 0:b.status)},AIa=function(a){return new Set(a.map(function(b){return oi(b)}))},uo=function(a,b,c){return a.has(b)?c:""},BIa=function(a,b,c){return a.has(b)?
c:[]},vo=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}},EIa=function(a){if(!a)return"";var b=CIa.get(a.retentionSelection),c=a.retentionPeriodDays,d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=DIa.get(a.piiRetentionSelection);c=a.piiRetentionPeriodDays;a=a.spiiRetentionPeriodDays;d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},GIa=function(a){if(!a)return"";var b=a.inherit,c=FIa.get(a.source),
d=a.comment;a="Inherit: "+b+", Source: "+c+", ID: "+a.id;return d?a+(", Justification: "+d):a},HIa=function(a){return a?"Inherit: "+a.inherit+", ID: "+a.id:""},IIa=function(a){a&1&&bg(0)},JIa=function(a){if(a&1){var b=r();D(0,"div",3);L("mouseenter",function(){t(b);var c=M();return v(c.toggle(!0))})("mouseleave",function(){t(b);var c=M();return v(c.toggle(!1))})("mousemove",function(){t(b);M().activity.next();return v()});P(1,IIa,1,0,"ng-container",4);F()}a&2&&(a=M(),C("ngClass",a.bubbleStyle)("@fade",
void 0),w(1),C("ngTemplateOutlet",a.panelTemplate))},KIa=function(a){a&1&&(I(0),D(1,"span",3),Q(2),T(3,"toAccessLevelLabel"),F(),K());a&2&&(a=M(2),w(1),Xf("xs",a.compactMode),C("ngClass",a.chipClass),w(1),S(" ",rg(3,4,a.accessLevel,a.compactMode)," "))},LIa=function(a){a&1&&(D(0,"div",7),Q(1),D(2,"a",8),Q(3," Learn more"),F()());a&2&&(a=M(3),w(1),S(" ",a.bubbleText," "),w(1),C("href",wo(a.documentationLinks),re))},MIa=function(a){a&1&&(D(0,"xap-bubble",4)(1,"span",5),Q(2),T(3,"toAccessLevelLabel"),
F(),P(4,LIa,4,2,"ng-template",null,6,Eg),F());if(a&2){var b=N(5);a=M(2);C("panelTemplate",b);w(1);Xf("xs",a.compactMode);C("ngClass",a.chipClass);w(1);S(" ",rg(3,5,a.accessLevel,a.compactMode)," ")}},NIa=function(a){a&1&&(I(0),P(1,KIa,4,7,"ng-container",1),P(2,MIa,6,8,"ng-template",null,2,Eg),K());if(a&2){var b=N(3);a=M();w(1);C("ngIf",a.labelOnlyMode)("ngIfElse",b)}},OIa=function(a){a&1&&(D(0,"li")(1,"a",4),Q(2," Create an issue in this component"),F()());a&2&&(a=M(2),w(1),C("href",a.createIssueUrl,
re))},PIa=function(a,b){a&1&&(I(0),D(1,"h3"),Q(2),F(),D(3,"p"),Q(4),F(),G(5,"b-access-level-indicator",3),D(6,"p"),Q(7),F(),D(8,"ul")(9,"li")(10,"a",4),Q(11," View recent open issues"),F()(),P(12,OIa,3,1,"li",2),D(13,"li")(14,"a",4),Q(15," View component"),F()()(),K());a&2&&(a=b.ngIf,b=M(),w(2),jg(a.name),w(2),S("ID: ",b.componentId,""),w(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel)("labelOnlyMode",!0),w(2),jg(a.description),w(3),C("href",b.recentIssuesUrl,re),w(2),C("ngIf",
!b.isAnonymous),w(2),C("href",b.viewComponentUrl,re))},QIa=function(a){a&1&&(D(0,"span",8),Q(1),F());a&2&&(a=M(),w(1),jg(a.placeholder))},RIa=function(a){a&1&&(D(0,"span",12),Q(1),F());a&2&&(a=M(2),w(1),jg(a.triggerValue))},SIa=function(a){a&1&&fg(0,0,["*ngSwitchCase","true"])},TIa=function(a){a&1&&(D(0,"span",9),P(1,RIa,2,1,"span",10),P(2,SIa,1,0,"ng-content",11),F());a&2&&(a=M(),C("ngSwitch",!!a.customTrigger),w(2),C("ngSwitchCase",!0))},UIa=function(a){if(a&1){var b=r();D(0,"div",13)(1,"div",14,
15);L("@transformPanel.done",function(c){t(b);var d=M();return v(d._panelDoneAnimatingStream.next(c.toState))})("keydown",function(c){t(b);var d=M();return v(d._handleKeydown(c))});fg(3,1);F()()}a&2&&(a=M(),C("@transformPanelWrap",void 0),w(1),$f("mat-select-panel ",a._getPanelTheme(),""),Wf("transform-origin",a._transformOrigin)("font-size",a._triggerFontSize,"px"),C("ngClass",a.panelClass)("@transformPanel",a.multiple?"showing-multiple":"showing"),Nf("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",
a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},VIa=function(a,b){a&1&&(D(0,"mat-option",19),Q(1),F());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",a," "))},WIa=function(a){if(a&1){var b=r();D(0,"mat-form-field",16)(1,"mat-select",17);L("selectionChange",function(c){t(b);var d=M(2);return v(d._changePageSize(c.value))});P(2,VIa,2,2,"mat-option",18);F()()}a&2&&(a=M(2),C("appearance",a._formFieldAppearance)("color",a.color),w(1),C("value",a.pageSize)("disabled",a.disabled)("panelClass",
a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering)("aria-label",a._intl.itemsPerPageLabel),w(1),C("ngForOf",a._displayedPageSizeOptions))},XIa=function(a){a&1&&(D(0,"div",20),Q(1),F());a&2&&(a=M(2),w(1),jg(a.pageSize))},YIa=function(a){a&1&&(D(0,"div",12)(1,"div",13),Q(2),F(),P(3,WIa,3,8,"mat-form-field",14),P(4,XIa,2,1,"div",15),F());a&2&&(a=M(),w(2),S(" ",a._intl.itemsPerPageLabel," "),w(1),C("ngIf",1<a._displayedPageSizeOptions.length),w(1),C("ngIf",
1>=a._displayedPageSizeOptions.length))},ZIa=function(a){if(a&1){var b=r();D(0,"button",21);L("click",function(){t(b);var c=M();if(c.hasPreviousPage()){var d=c.pageIndex;c.pageIndex=0;c._emitPageEvent(d)}return v()});Qd();D(1,"svg",7);G(2,"path",22);F()()}a&2&&(a=M(),C("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),Nf("aria-label",a._intl.firstPageLabel))},$Ia=function(a){if(a&1){var b=
r();Qd();Kd.currentNamespace=null;D(0,"button",23);L("click",function(){t(b);var c=M();if(c.hasNextPage()){var d=c.pageIndex;c.pageIndex=(c.pageSize?Math.ceil(c.length/c.pageSize):0)-1;c._emitPageEvent(d)}return v()});Qd();D(1,"svg",7);G(2,"path",24);F()()}a&2&&(a=M(),C("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),Nf("aria-label",a._intl.lastPageLabel))},aJa=function(a){if(a&1){var b=r();D(0,"mat-paginator",
3);L("page",function(c){t(b);var d=M(),e=c.pageIndex*c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return v()});F()}a&2&&(a=M(),C("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},bJa=function(a,b){if(a&1){var c=r();D(0,"li")(1,"a",4);L("click",function(){var e=t(c).$implicit,f=M();return v(f.onVisit.emit(e))});Q(2);F();D(3,"onedev-hovercard",null,5);G(5,"b-component-card",6);F()()}if(a&2){a=b.$implicit;var d=N(4);b=M();w(1);C("onedevHovercardTrigger",
d)("href",b.paths.manageComponent(a.componentId),re);w(1);S(" ",a.name," ");w(3);C("componentId",a.componentId.toString())}},cJa=function(a){if(a&1){var b=r();D(0,"button",6);L("click",function(){t(b);var c=M();return v(c.onClickCopyIssueShortLinks.emit())});Q(1);F()}a&2&&(a=M(),w(1),S(" Copy '",a.shortLinkPrefix,"'' links "))},dJa=function(a,b){a&1&&(D(0,"span",5)(1,"a",6),Q(2),F(),D(3,"onedev-hovercard",null,7),G(5,"b-component-card",8),F()());if(a&2){a=b.$implicit;var c=N(4);w(1);C("onedevHovercardTrigger",
c)("routerLinkObj",a.route);w(1);jg(a.name);w(3);C("componentId",a.id.toString())}},eJa=function(a){a&1&&(D(0,"span",9),Q(1,"[Archived]"),F())},xo=function(a,b){b=void 0===b?Tk:b;var c,d=null!=(c=null==a?void 0:a.componentPathId)?c:[],e,f=null!=(e=null==a?void 0:a.componentPathName)?e:[];return d.map(function(h,k){var q;k=null!=(q=f[k])?q:String(h);q=b(h);return{id:h,name:k,route:q}})},fJa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,w(1),jg(a.text))},gJa=function(a){a&1&&(D(0,"span"),
G(1,"b-access-level-indicator",2),F());a&2&&(a=M().$implicit,w(1),C("accessLevel",a.accessLevel))},hJa=function(a,b){a&1&&(D(0,"span"),P(1,fJa,2,1,"span",1),P(2,gJa,2,1,"span",1),F());a&2&&(a=b.$implicit,b=M(),w(1),C("ngIf",b.isText(a)),w(1),C("ngIf",!b.isText(a)))},jJa=function(a,b){var c=iJa.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return 0<=a?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null},kJa=function(a){if(a&1){var b=r();D(0,"div");G(1,"br");D(2,"mat-checkbox",8);L("ngModelChange",
function(c){t(b);var d=M();return v(d.acknowledged=c)});F();D(3,"span");Q(4,"All information in this issue is suitable for external sharing.");F()()}a&2&&(a=M(),w(2),C("ngModel",a.acknowledged))},lJa=function(a){if(a&1){var b=r();D(0,"button",9);L("click",function(){t(b);var c=M();return v(c.allow())});Q(1," Move Issue ");F()}a&2&&(a=M(),C("disabled",!a.acknowledged))},yo=function(a){var b=Object.keys(a);return Promise.all(Object.values(a)).then(function(c){return Object.fromEntries(b.map(function(d,
e){return[d,c[e]]}))})},zo=function(){var a=0;a=void 0===a?0:a;return new Promise(function(b){setTimeout(b,a)})},mJa=function(a){a&1&&(I(0),Q(1," Trackers are distinct communities with their own branding. "),K())},nJa=function(a){a&1&&(D(0,"a",10),Q(1,"Learn More"),F());a&2&&(a=M(2),C("href",a.documentationLinks.baseDocumentationUrl+"/concepts/trackers",re))},oJa=function(a){a&1&&(I(0),D(1,"button",1),G(2,"img",2)(3,"img",3),D(4,"span",4),Q(5),F()(),D(6,"onedev-hovercard",null,5)(8,"div",6)(9,"div",
7)(10,"span",8),Q(11),P(12,mJa,2,0,"ng-container",0),F(),D(13,"div",9)(14,"a",10),Q(15),F(),P(16,nJa,2,1,"a",11),F()()()(),K());if(a&2){var b=N(7);a=M();w(1);Xf("xs",a.compactMode);C("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);w(1);C("src",a.logoLight,re);w(1);C("src",a.logoDark,re);w(2);jg(a.name);w(6);S(" This component or issue is part of ",a.extendedName,". ");w(1);C("ngIf",!a.isGlobalBuganizer);w(2);C("href",a.redirectUrl,re);w(1);S("View ",a.extendedName,"");w(1);C("ngIf",
!a.isGlobalBuganizer)}},pJa=function(a){a&1&&(G(0,"b-tracker-chip",1),T(1,"async"));a&2&&(a=M(),C("tracker",V(1,4,a.tracker$)||void 0)("compactMode",a.compactMode)("showHovercard",a.showHovercard)("isGlobalBuganizer",a.isGlobalBuganizer))},qJa=function(a){if(a&1){var b=r();D(0,"a",18);L("click",function(){t(b);var c=M().$implicit,d=M();return v(d.showChildren(c))});G(1,"mat-icon",19);F()}},rJa=function(a){if(a&1){var b=r();D(0,"a",20);L("click",function(){t(b);var c=M().$implicit;return v(c.showChildren=
!1)});G(1,"mat-icon",21);F()}},tJa=function(a){a&1&&(D(0,"a",22),Q(1," (Recent Issues) "),F());if(a&2){a=M().$implicit;var b=M();C("href",b.paths.listIssues(og(1,sJa,"status:open componentid:"+a.componentId)),re)}},uJa=function(a){a&1&&(D(0,"span"),Q(1,"[Archived]"),F())},vJa=function(a){a&1&&(D(0,"a",23),Q(1," Create issue "),F());if(a&2){a=M().$implicit;var b=M();C("href",b.paths.createIssue()+"?component="+a.componentId,re)}},wJa=function(a){a&1&&(D(0,"div",28),Q(1," No child components found. "),
F())},xJa=function(a){a&1&&(D(0,"div",29),G(1,"b-spinner"),F())},yJa=function(a){if(a&1){var b=r();D(0,"component-subtree-list",30);L("childClosed",function(d){t(b);var e=M(3);return v(e.onSubtreeChildClosed(d))});F()}if(a&2){a=M(2).$implicit;var c=M();C("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},zJa=function(a){a&1&&(D(0,"div",24),P(1,wJa,2,0,"div",25),P(2,xJa,2,0,"div",26),P(3,yJa,1,4,"component-subtree-list",27),F());
a&2&&(a=M().$implicit,w(1),C("ngIf",a.noChildren),w(1),C("ngIf",!(a.noChildren||a.children)),w(1),C("ngIf",a.children))},AJa=function(a,b){if(a&1){var c=r();D(0,"li",2);L("click",function(d){var e=t(c).$implicit,f=M();return v(f.setSelected(e.componentId,d))});D(1,"div",3);G(2,"div",4);D(3,"div",5);P(4,qJa,2,0,"a",6);P(5,rJa,2,0,"a",7);F();D(6,"div",8)(7,"div")(8,"a",9);Q(9);F();P(10,tJa,2,3,"a",10);P(11,uJa,2,0,"span",11);G(12,"b-access-level-indicator",12)(13,"b-tracker-chip-smart",13);F();D(14,
"div",14);Q(15);F()();D(16,"div",15);P(17,vJa,2,1,"a",16);F()();P(18,zJa,4,3,"div",17);F()}a&2&&(a=b.$implicit,b=M(),gg("id","component-",a.componentId,""),w(4),C("ngIf",!a.showChildren),w(1),C("ngIf",a.showChildren),w(3),C("href",b.paths.viewComponent(a.componentId),re),w(1),S(" ",a.name," "),w(1),C("ngIf",!a.archived),w(1),C("ngIf",a.archived),w(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),w(1),C("trackerId",a.trackerId),w(2),jg(a.description),w(2),C("ngIf",!a.archived),
w(1),C("ngIf",a.showChildren))},BJa=function(a){if(a&1){var b=r();D(0,"a",18);L("click",function(){t(b);var c=M().$implicit,d=M();return v(d.showChildren(c))});G(1,"mat-icon",19);F()}},CJa=function(a){if(a&1){var b=r();D(0,"a",20);L("click",function(){t(b);var c=M().$implicit;return v(c.showChildren=!1)});G(1,"mat-icon",21);F()}},EJa=function(a){a&1&&(D(0,"a",22),Q(1," (Recent Issues) "),F());if(a&2){a=M().$implicit;var b=M();C("href",b.paths.listIssues(og(1,DJa,"status:open componentid:"+a.componentId)),
re)}},FJa=function(a){a&1&&(D(0,"span"),Q(1,"[Archived]"),F())},GJa=function(a){a&1&&(D(0,"a",23),Q(1," Create issue "),F());if(a&2){a=M().$implicit;var b=M();C("href",b.paths.createIssue()+"?component="+a.componentId,re)}},HJa=function(a){a&1&&(D(0,"div",28),Q(1," No child components found. "),F())},IJa=function(a){a&1&&(D(0,"div",29),G(1,"b-spinner"),F())},JJa=function(a){if(a&1){var b=r();D(0,"component-subtree-list",30);L("childClosed",function(d){t(b);var e=M(3);return v(e.onSubtreeChildClosed(d))});
F()}if(a&2){a=M(2).$implicit;var c=M();C("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},KJa=function(a){a&1&&(D(0,"div",24),P(1,HJa,2,0,"div",25),P(2,IJa,2,0,"div",26),P(3,JJa,1,4,"component-subtree-list",27),F());a&2&&(a=M().$implicit,w(1),C("ngIf",a.noChildren),w(1),C("ngIf",!(a.noChildren||a.children)),w(1),C("ngIf",a.children))},LJa=function(a,b){if(a&1){var c=r();D(0,"li",2);L("click",function(d){var e=t(c).$implicit,f=
M();return v(f.setSelected(e.componentId,d))});D(1,"div",3);G(2,"div",4);D(3,"div",5);P(4,BJa,2,0,"a",6);P(5,CJa,2,0,"a",7);F();D(6,"div",8)(7,"div")(8,"a",9);Q(9);F();P(10,EJa,2,3,"a",10);P(11,FJa,2,0,"span",11);G(12,"b-access-level-indicator",12)(13,"b-tracker-chip-smart",13);F();D(14,"div",14);Q(15);F()();D(16,"div",15);P(17,GJa,2,1,"a",16);F()();P(18,KJa,4,3,"div",17);F()}a&2&&(a=b.$implicit,b=M(),C("id","component-"+a.componentId),w(4),C("ngIf",!a.showChildren),w(1),C("ngIf",a.showChildren),
w(3),C("href",b.paths.viewComponent(a.componentId),re),w(1),S(" ",a.name," "),w(1),C("ngIf",!a.archived),w(1),C("ngIf",a.archived),w(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),w(1),C("trackerId",a.trackerId),w(2),jg(a.description),w(2),C("ngIf",!a.archived),w(1),C("ngIf",a.showChildren))},Bo=function(a){return(null!=a?a:[]).map(Ao)},Do=function(a){return(null!=a?a:[]).map(Co)},Ao=function(a){if(null==a)return"";var b=a.user,c=a.group;a=a.alias;if(null!=b){var d="USER";
var e=b.emailAddress||b.obfuscatedEmailAddress||void 0}else null!=c?(d="GROUP",e=c.emailAddress||c.obfuscatedEmailAddress||void 0):null!=a&&(d="ALIAS",e=a);return null==d||null==e?"":d+":"+e},Eo=function(a){return(null!=a?a:[]).map(Ao)},MJa=function(a){return(null!=a?a:[]).map(Co)},Co=function(a){var b=l(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("pd`"+b);switch(a){case "USER":return{user:{emailAddress:b}};case "GROUP":return{group:{emailAddress:b}};case "ALIAS":return{alias:b};
default:throw Error("qd`"+b);}},Fo=function(){return{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},Go=function(a){return{admins:Bo(a.admins),editors:Bo(a.editors),appenders:Bo(a.appenders),readers:Bo(a.readers),restrictedReaders:Bo(a.restrictedReaders),restrictedPlusReaders:Bo(a.restrictedPlusReaders),inheritedAdmins:Bo(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},Ho=function(a){return{admins:Do(a.admins),
editors:Do(a.editors),appenders:Do(a.appenders),readers:Do(a.readers),restrictedReaders:Do(a.restrictedReaders),restrictedPlusReaders:Do(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}},Io=function(a){return null==a?"":"number"===typeof a?isFinite(a)?String(a):"":a&&(a=String(a),254>=a.length)?a:""},QJa=function(){var a=Jo("gapi.config.get");if((a=Io(a&&a("googleapis.config/sessionIndex")))||(a=Io(da.__X_GOOG_AUTHUSER))||(a=Io(Jo("google.authuser"))))return a;var b=da.location.href||"",
c=NJa.exec(b);try{a=Io(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=OJa.exec(b);try{a=Io(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=PJa.exec(b);return(a=Io(a&&a[1]))?a:""},RJa=function(){var a=Jo("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Jo("gapi.auth2.getAuthInstance"))?a():null;if(!a||!a.isSignedIn.get())return null;a=(b=a.currentUser.get().getAuthResponse(!0))&&b.access_token;if(!a)return null;b=b.token_type}return{Authorization:(b||"Bearer")+
" "+a}},SJa=function(a){a=void 0===a?"":a;var b;if(!(b=RJa())){b=a;var c=void 0===c?QJa():c;a={};var d=Ko([]);d&&(a.Authorization=d);b||(b=(b=Jo("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},TJa=function(a,b){b=void 0===b?0:b;var c;if(c=0===b)c=(c=Jo("gapi.config.get"))?(c=c("oauth-flow/authUrl"))&&(0<c.indexOf("staging")||0<c.indexOf("test"))?2:1:0,c=2===c;c&&(b=7);switch(b){case 7:b="dev-";c="-googleapis.corp";break;case 1:b=
"autopush-";c="-googleapis.sandbox";break;case 2:b="staging-";c="-googleapis.sandbox";break;default:b="",c=".clients6"}a="https://"+b+a+c+".google.com";(b=(b=Jo("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},VJa=function(a,b){return 1>a||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return da.setTimeout(c,b)})).then(function(){return UJa(a-1,2*b)})},UJa=function(a,b){a=void 0===a?0:a;b=void 0===b?5E3:b;var c=da;try{do var d=c.gapi;while(!d&&
c!==c.top&&(c=c.parent))}catch(e){}if(!d)return VJa(a,b);da.gapi||(da.gapi=d);return d.client?Promise.resolve(d):new Promise(function(e,f){d.load("client",function(){d.client?e(d):f("gapi.client missing")})})},WJa=function(){var a=void 0===a?"":a;var b=void 0===b?QJa():b;var c=Jo("gapi.config.update");c("googleapis.config/auth/useFirstPartyAuth",!0);c("googleapis.config/auth/useFirstPartyAuthV2",!0);b&&c("googleapis.config/sessionIndex",b);a&&c("client/apiKey",a)},XJa=function(a){return(new Lo).setEventType(2).setRpcType(2).setLookupType(a)},
YJa=function(a){a=Math.round(1E3*a);return isFinite(a)?a:null},Mo=function(a){var b;return null!=(b=null==a?void 0:a.trim())?b:""},No=function(a){var b=void 0===b?ZJa:b;var c=Ia(a),d=function(e){e=l(e);e.next();e=bf(e);return b(c,e)};return function(){var e=xd.apply(0,arguments),f=this||da,h=$Ja.get(f);h||(h={},$Ja.set(f,h));f=h;h=[this].concat(p(e));e=d?d(h):h;if(Object.prototype.hasOwnProperty.call(f,e))f=f[e];else{var k=l(h);h=k.next().value;k=bf(k);h=a.apply(h,k);f=f[e]=h}return f}},bKa=function(a,
b,c,d){d=void 0===d?"":d;a=new Oo(a,b);d&&(a.destinationUrl=d);c&&c.length&&(d=new aKa,ac(d,3,c,tb),a.setClearExperimentIds(d));return a.build()},Ro=function(a,b,c,d){Po.call(this);this.initialized_=!1;this.title_=null;this.cache_=b;this.id_=c;this.transport_=a;cKa(this.transport_,this.id_);d&&Qo(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},dKa=function(a){var b={};if(a){a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.containerType;d=d.id||"";c&&d&&(b[c]=b[c]||d)}}return b},
fKa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return eKa(b.name,b.email)}).join(", "):""},iKa=function(a,b,c){var d=[];a&&(gKa("name",a.name,b,d,c),gKa("phone",a.phone,b,d,c),gKa("photo",a.photo,b,d,c));return d.map(function(e){return new hKa(e)})},gKa=function(a,b,c,d,e){if(b){b=l(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,"CONTACT"!==Jo("metadata.containerType",f)){var h=c,k=d,q=e,u=Jo("metadata.encodedContainerId",
f),x=Jo("metadata.containerType",f);if(h.contains(u,x))var y=h.get(u,x)||0;else y=k.length,h.set(u,x,y),k.push({}),q.push(u);y=k[y];y[a]=y[a]||[];y[a].push(f)}}},kKa=function(a,b){if(a){a=jKa(a);for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasValue()&&(!b||b(d.getMetaData())))return d.getValue()}}return null},lKa=function(a,b){if(a){a=a.getPhone();for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasValue()&&(!b||b(d.getMetaData())))return d.getValue()}}return null},
mKa=function(a,b){if(a){a=a.getPhoto();for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasUrl()&&(!b||b(d.getMetaData())))return d.getUrl()}}return null},nKa=function(a){this.query_=a;this.error_=0},To=function(a,b){b=a(b||oKa,void 0);a=So();b&&b.renderAsElement?a=b.renderAsElement():(a=a.createElement("DIV"),b=pKa(b),qKa(a,b));1==a.childNodes.length&&(b=a.firstChild,1==b.nodeType&&(a=b));return a},pKa=function(a){return Fa(a)?a.toSafeHtml&&(a=a.toSafeHtml(),a instanceof fh)?a:Uo("zSoyz"):
Uo(String(a))},Wo=function(a,b,c,d,e,f,h){this.serverBase_="string"===typeof a?new Vo(a):a;this.useApiary_=!!c;this.apiaryClientDeferred_=d;this.onAuthError_=e;this.testGaia_=!!f;this.contactStoreConfig_=h;this.commonAcParams_={};this.acWrappers_={};this.onAcCompleteListeners_={};this.inputToAcWrapper_={};this.focusedElement_=null},rKa=function(a){a=a.getEmail();if(!a)return!1;for(var b=l(["-pager","+pager","-oncall","+oncall","lifeguard-ng"]),c=b.next();!c.done;c=b.next())if(0<=a.indexOf(c.value))return!0;
return!1},vKa=function(a,b,c){a=a.filter(sKa());if(!c)return a;c=c.map(function(d){return{contact:d,toString:function(){return d.text}}});b=tKa(new uKa(c),b,c.length);return a.concat(b.map(function(d){return d.contact}))},wKa=function(a){a&1&&(G(0,"div"),T(1,"lowercase"));a&2&&(a=M(3),$f("bv2-edit-icon ",V(1,3,a.type),""))},xKa=function(a){a&1&&(D(0,"div")(1,"label"),Q(2),F(),P(3,wKa,2,5,"div",11),F());a&2&&(a=M(2),$f("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),w(2),S(" ",a.title,
" "),w(1),C("ngIf",!a.readonly&&!a.disabled))},yKa=function(a){a&1&&bg(0)},zKa=function(a){if(a&1){var b=r();D(0,"div",16);L("menuClosed",function(){t(b);var e=M(3);return v(Xo(e,null,!1,!0))});P(1,yKa,1,0,"ng-container",17);F()}if(a&2){M(2);var c=N(7);M();var d=N(7);C("matMenuTriggerFor",d);w(1);C("ngTemplateOutlet",c)}},BKa=function(a,b){a&1&&(D(0,"a",22),Q(1),F());a&2&&(a=b.ngIf,b=M(4),Qf("aria-label","customfield",b.customFieldId,":",a,""),C("queryParams",og(4,AKa,"customfield"+b.customFieldId+
':"'+a+'"')),w(1),S(" ",a," "))},CKa=function(a){a&1&&Q(0," -- ")},DKa=function(a){if(a&1){var b=r();D(0,"div",18);P(1,BKa,2,6,"a",19);P(2,CKa,1,0,"ng-template",null,20,Eg);G(4,"br");D(5,"button",21);L("menuClosed",function(){t(b);var e=M(3);return v(Xo(e,null,!1,!0))});Q(6," Edit ");F()()}if(a&2){var c=N(3);a=M(3);var d=N(7);w(1);C("ngIf",a.getDisplayValue(""))("ngIfElse",c);w(4);Pf("aria-label","Edit item for ",a.title,"");C("matMenuTriggerFor",d)}},EKa=function(a){a&1&&(I(0),P(1,zKa,2,2,"div",
14),P(2,DKa,7,4,"ng-template",null,15,Eg),K());if(a&2){var b=N(3);a=M(2);w(1);C("ngIf",!a.enableCustomFieldSearchImprovements||0===a.customFieldId)("ngIfElse",b)}},FKa=function(a){a&1&&bg(0)},GKa=function(a){a&1&&(D(0,"div",23),P(1,FKa,1,0,"ng-container",17),F());if(a&2){M();var b=N(7);w(1);C("ngTemplateOutlet",b)}},HKa=function(a){a&1&&G(0,"b-user-membership-chip",32);a&2&&(a=M(5),C("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",!0))},IKa=function(a){a&1&&G(0,"b-user-image",
33);a&2&&(a=M(5),C("email",a.value))},JKa=function(a){a&1&&(D(0,"span",34)(1,"b-person-hovercard",35),Q(2),F()());a&2&&(a=M(5),w(1),C("email",a.value),w(1),S(" ",a.getDisplayValue("--")," "))},KKa=function(a){a&1&&(I(0),D(1,"div",28),P(2,HKa,1,4,"b-user-membership-chip",29),P(3,IKa,1,1,"b-user-image",30),P(4,JKa,3,2,"span",31),F(),K());a&2&&(a=M(4),w(2),C("ngIf",a.enableTeamAnnotations&&!!a.value),w(1),C("ngIf",!a.enableTeamAnnotations&&!!a.value),w(1),C("ngIf",!a.enableTeamAnnotations))},LKa=function(a){a&
1&&(D(0,"div"),P(1,KKa,5,3,"ng-container",3),F());a&2&&(a=M(3),w(1),C("ngIf",a.isUser))},MKa=function(a){a&1&&G(0,"b-truncated-span",40);a&2&&(a=M(4),C("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},NKa=function(a){a&1&&G(0,"b-truncated-span",41);a&2&&(a=M(4),C("ngClass",a.getPriority(a.value))("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},OKa=function(a){a&1&&G(0,"b-truncated-span",40);a&2&&(a=M(4),$f("chippy status-",a.value,""),
C("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},PKa=function(a){a&1&&G(0,"div",42)},QKa=function(a){a&1&&(D(0,"div"),P(1,MKa,1,3,"b-truncated-span",36),P(2,NKa,1,4,"b-truncated-span",37),P(3,OKa,1,6,"b-truncated-span",38),P(4,PKa,1,0,"div",39),F());a&2&&(a=M(3),w(1),C("ngIf","Priority"!==a.title&&"Status"!==a.title),w(1),C("ngIf","Priority"===a.title),w(1),C("ngIf","Status"===a.title),w(1),C("ngIf",!a.title&&!a.readonly&&!a.disabled))},RKa=function(a){a&1&&(D(0,"div",
43),G(1,"mat-icon",44),F())},SKa=function(a){a&1&&(D(0,"div",45),G(1,"mat-icon",46),F())},UKa=function(a){if(a&1){var b=r();D(0,"div",24,25);L("keydown",function(c){t(b);var d=M(2);return v(TKa(d,c))})("click",function(c){t(b);var d=M(2);return v(Xo(d,c,!0,!1))});P(2,LKa,2,1,"div",3);P(3,QKa,5,4,"div",3);P(4,RKa,2,0,"div",26);P(5,SKa,2,0,"div",27);F()}a&2&&(a=M(2),Xf("edit-field-user-container",a.isUser)("edit-field-activated",a.isActive),w(2),C("ngIf",a.isUser),w(1),C("ngIf",!a.isUser),w(1),C("ngIf",
"ENUM"!=a.type),w(1),C("ngIf","ENUM"==a.type))},VKa=function(a){if(a&1){var b=r();D(0,"div",9,10);L("click",function(c){t(b);var d=M();return v(Xo(d,c,!0,!1))})("keydown",function(c){t(b);var d=M();return v(TKa(d,c))})("keydown.escape",function(){t(b);var c=N(2);return v(c.hide())});P(3,xKa,4,5,"div",11);P(4,EKa,4,2,"ng-container",3);P(5,GKa,2,1,"div",12);P(6,UKa,6,8,"ng-template",null,13,Eg);F()}a&2&&(a=M(),$f("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,""),Xf("bv2-disabled",
a.disabled)("bv2-readonly",a.readonly),Qf("aria-label","",a.title," value is ",a.getDisplayValue("empty"),""),C("matTooltip",a.getTooltip()),Nf("aria-disabled",!1),w(3),C("ngIf",a.title),w(1),C("ngIf","ENUM"===a.type),w(1),C("ngIf","ENUM"!==a.type))},WKa=function(a){if(a&1){var b=r();D(0,"div",50);L("click",function(){t(b);var c=M(2);return v(c.setFieldValue(!c.value))});D(1,"label");Q(2);F()()}a&2&&(a=M(2),$f("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),w(2),jg(a.title))},YKa=
function(a){if(a&1){var b=r();D(0,"div",47);P(1,WKa,3,4,"div",48);D(2,"b-slide-toggle",49);L("modelChange",function(){t(b);var d=M();return v(d.setFieldValue(!d.value))});F()()}if(a&2){a=M();var c;$f("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,"");C("ngClass",pg(10,XKa,a.disabled,a.readonly))("matTooltip",a.getTooltip());Nf("aria-disabled",!1);w(1);C("ngIf",a.title);w(1);C("disabled",a.disabled||a.readonly)("aria-label",a.name)("model",null!==(c=a.value)&&void 0!==c?c:void 0)}},
ZKa=function(a){a&1&&G(0,"b-availability-chip",52);a&2&&(a=M(2),C("user",a.value))},$Ka=function(a){a&1&&(I(0),P(1,ZKa,1,1,"b-availability-chip",51),K());a&2&&(a=M(),w(1),C("ngIf",a.value&&a.enableWaldoAvailability))},aLa=function(a){if(a&1){var b=r();D(0,"button",55);L("click",function(){t(b);var c=M(2);return v(c.clearFieldValue())});D(1,"span",56);G(2,"mat-icon",57);F();Q(3," \u00a0 ");F()}a&2&&(a=M(2),Xf("b-menu-item-checked",null==a.value),C("disabled",null==a.value))},bLa=function(a,b){if(a&
1){var c=r();D(0,"button",58);L("click",function(){var d=t(c).$implicit,e=M(2);return v(e.setFieldValue(d.value))});D(1,"span",56);G(2,"mat-icon",57);F();Q(3);F()}a&2&&(a=b.$implicit,b=M(2),Xf("b-menu-item-checked",b.value==a.value),C("disabled",b.value==a.value)("matTooltip",a.altText||""),Nf("aria-label",a.displayText)("title",!b.showEnumTitle||a.altText?"":a.displayText),w(3),S(" ",a.displayText," "))},cLa=function(a){a&1&&(P(0,aLa,4,3,"button",53),P(1,bLa,4,7,"button",54));a&2&&(a=M(),C("ngIf",
a.clearable),w(1),C("ngForOf",a.choices))},dLa=function(a){a&1&&bg(0)},eLa=function(a){a&1&&bg(0)},fLa=function(a){if(a&1){var b=r();D(0,"div",50);L("click",function(d){return d.stopPropagation()});D(1,"b-date-time-picker-content",64);L("dateSelectionChange",function(d){t(b);var e=M(2);return v(e.googDateValue=null!==d&&void 0!==d?d:null)})("saveClicked",function(){t(b);var d=M(2);return v(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){t(b);var d=M(2);return v(Xo(d,null,!1,!1))});
F()()}if(a&2){a=M(2);var c;w(1);C("required",!(a.clearable&&"DATE"===a.type))("date",null!==(c=a.googDateValue)&&void 0!==c?c:void 0)}},hLa=function(a){if(a&1){var b=r();D(0,"textarea",73);L("ngModelChange",function(c){t(b);var d=M(4);return v(d.textBuffer=c)})("keydown",function(c){t(b);var d=M(4);return v(gLa(d,c))});F()}a&2&&(a=M(4),C("ngModel",a.textBuffer),Nf("aria-label",a.title))},jLa=function(a){if(a&1){var b=r();D(0,"input",74);L("ngModelChange",function(c){t(b);var d=M(4);return v(d.textBuffer=
c)})("keydown",function(c){t(b);var d=M(4);return v(iLa(d,c))});F()}a&2&&(a=M(4),C("ngModel",a.textBuffer),Nf("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},kLa=function(a){a&1&&(D(0,"div"),P(1,hLa,1,2,"textarea",71),P(2,jLa,1,3,"input",72),F());a&2&&(a=M(3),w(1),C("ngIf",a.multiline),w(1),C("ngIf",!a.multiline))},lLa=function(a){if(a&1){var b=r();D(0,"textarea",77);L("ngModelChange",function(c){t(b);var d=M(4);return v(d.textBuffer=c)})("keydown",function(c){t(b);var d=M(4);return v(gLa(d,
c))})("autocompleteActive",function(c){t(b);var d=M(4);return v(d.autocompleteActive=c)});F()}a&2&&(a=M(4),C("ngModel",a.textBuffer)("bContactAutocomplete","MULTI"),Nf("aria-label",a.title))},mLa=function(a){if(a&1){var b=r();D(0,"input",78);L("ngModelChange",function(c){t(b);var d=M(4);return v(d.textBuffer=c)})("keydown",function(c){t(b);var d=M(4);return v(iLa(d,c))})("autocompleteActive",function(c){t(b);var d=M(4);return v(d.autocompleteActive=c)});F()}a&2&&(a=M(4),C("ngModel",a.textBuffer)("bContactAutocomplete",
"SINGLE"),Nf("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},nLa=function(a){a&1&&(D(0,"div"),P(1,lLa,1,3,"textarea",75),P(2,mLa,1,4,"input",76),F());a&2&&(a=M(3),w(1),C("ngIf",a.multiline),w(1),C("ngIf",!a.multiline))},pLa=function(a){if(a&1){var b=r();D(0,"div",65);L("click",function(c){return c.stopPropagation()});P(1,kLa,3,2,"div",3);P(2,nLa,3,2,"div",3);D(3,"div",66)(4,"button",67);L("click",function(){t(b);var c=M(2);return v(oLa(c))});G(5,"mat-icon",68);F();D(6,"button",
69);L("click",function(c){t(b);var d=M(2);return v(Xo(d,c,!1,!0))});G(7,"mat-icon",70);F()();D(8,"div",43);G(9,"mat-icon",44);F()()}a&2&&(a=M(2),w(1),C("ngIf",!a.isUser),w(1),C("ngIf",a.isUser),w(2),Pf("aria-label","Apply change to ",a.title,""),gg("matTooltip","Apply change to ",a.title,""),C("disabled",a.value==a.textBuffer),w(2),Pf("aria-label","Discard change to ",a.title,""),gg("matTooltip","Discard change to ",a.title,""))},qLa=function(a){a&1&&(D(0,"div",59,60),P(2,dLa,1,0,"ng-container",61),
P(3,eLa,1,0,"ng-container",61),P(4,fLa,2,2,"div",62),P(5,pLa,10,7,"div",63),F());a&2&&(a=M(),$f("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"),C("ngSwitch",a.type),w(2),C("ngSwitchCase","ENUM"),w(1),C("ngSwitchCase","BOOL"),w(1),C("ngSwitchCase","DATE"))},rLa=function(a){switch(null==a?void 0:a.type){case "ENUM":return"ENUM";case "DATE":return"DATE";case "TEXT":return"TEXT";case "NUMERIC":return"NUMERIC";default:return null}},sLa=function(a,b){a&1&&(D(0,"span",9),Q(1," by "),
G(2,"b-user-display-name",10),F());a&2&&(a=b.ngIf,w(2),C("email",a)("hovercardEnabled",!1))},tLa=function(a,b){a&1&&(D(0,"div")(1,"span"),Q(2),F(),G(3,"b-formatted-date-time",11),F());a&2&&(a=b.ngIf,b=M().ngIf,w(2),jg(b.pending?"Created on: ":"Submitted on: "),w(1),C("timestamp",a))},uLa=function(a,b){a&1&&(I(0),G(1,"br"),Q(2),K());a&2&&(a=b.$implicit,w(2),S("",a," "))},vLa=function(a,b){a&1&&(I(0),D(1,"div",3)(2,"a",4),Q(3," CL "),D(4,"span"),Q(5),F()(),P(6,sLa,3,2,"span",5),G(7,"br")(8,"br"),P(9,
tLa,4,2,"div",2),D(10,"div",6),G(11,"div",7)(12,"br"),D(13,"div"),Q(14," Affected files: "),P(15,uLa,3,1,"ng-container",8),F()()(),K());a&2&&(a=b.ngIf,b=M(),w(2),C("href","http://critique.corp.google.com/"+b.changelistId,re),w(3),jg(b.changelistId),w(1),C("ngIf",a.author),w(3),C("ngIf",a.timestamp),w(2),C("innerHTML",a.description,qe),w(4),C("ngForOf",a.affectedFiles))},wLa=function(a){a&1&&G(0,"b-changelist-card",3,4);if(a&2){var b=N(1);a=M();C("onedevIsHovercardReady",b.init)("changelistId",a.changelistId)}},
xLa=function(a){if(a&1){var b=r();D(0,"a",15);L("click",function(){t(b);var c=M();return v(c.trackClick("viewTeamAssociationOnComponent"))});D(1,"button",11);Q(2,"View team association on component");F()()}a&2&&(a=M(),C("href",a.manageComponentLink(),re))},yLa=function(a){if(a&1){var b=r();D(0,"a",6);L("click",function(){t(b);var d=M(2);return v(d.trackClick("viewTeamInMoma"))});D(1,"span");Q(2);G(3,"mat-icon",7);F()()}if(a&2){a=M(2);var c=N(3);gg("href","https://moma.corp.google.com/team/",a.teamId,
"",re);C("onedevHovercardTrigger",c);Nf("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");w(1);Nf("id",a.teamLinkId);w(1);S("",a.teamName?a.teamName:a.teamId," ")}},zLa=function(a){a&1&&(D(0,"span",8),Q(1),F());if(a&2){a=M(2);var b=N(3);C("onedevHovercardTrigger",b);w(1);jg(a.teamName?a.teamName:a.teamId)}},ALa=function(a){a&1&&(I(0),P(1,yLa,4,6,"a",4),P(2,zLa,2,2,"span",5),K());a&2&&(a=M(),w(1),C("ngIf",a.anchorLinkEnabled),w(1),
C("ngIf",!a.anchorLinkEnabled))},BLa=function(a){a&1&&G(0,"span",11)},CLa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(2),w(1),jg(a.teamNotAssignedMessage))},DLa=function(a){a&1&&(P(0,BLa,1,0,"span",9),P(1,CLa,2,1,"span",10));a&2&&(a=M(),C("ngIf","0"!=a.teamId),w(1),C("ngIf","0"==a.teamId))},ELa=function(a){a&1&&G(0,"b-icon",7);a&2&&(a=M(),C("name",a.iconName))},FLa=function(a){a&1&&(D(0,"span",8),Q(1),F());a&2&&(a=M(),w(1),jg(a.title))},GLa=function(a){a&1&&(D(0,"div",9),Q(1,"\u00a0"),F())},
HLa=function(a){a=a.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}},ILa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},Yo=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},JLa=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,h=.05*a.width,k=.05*a.height;return c>a.top-k&&c<e+k&&b>f-h&&b<d+h},NLa=function(a){var b=a.cloneNode(!0),c=b.querySelectorAll("[id]"),
d=a.nodeName.toLowerCase();b.removeAttribute("id");for(var e=0;e<c.length;e++)c[e].removeAttribute("id");"canvas"===d?KLa(a,b):("input"===d||"select"===d||"textarea"===d)&&LLa(a,b);MLa("canvas",a,b,KLa);MLa("input, textarea, select",a,b,LLa);return b},MLa=function(a,b,c,d){b=b.querySelectorAll(a);if(b.length)for(a=c.querySelectorAll(a),c=0;c<b.length;c++)d(b[c],a[c])},LLa=function(a,b){"file"!==b.type&&(b.value=a.value);"radio"===b.type&&b.name&&(b.name="mat-clone-"+b.name+"-"+OLa++)},KLa=function(a,
b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},PLa=function(a,b,c){for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];if(e){var f=void 0;a.setProperty(d,e,(null==(f=c)?0:f.has(d))?"important":"")}else a.removeProperty(d)}},Zo=function(a,b){var c=b?"":"none";PLa(a.style,{"touch-action":b?"":"none","-webkit-user-drag":b?"":"none","-webkit-tap-highlight-color":b?"":"transparent","user-select":c,"-ms-user-select":c,"-webkit-user-select":c,"-moz-user-select":c})},RLa=function(a,b){PLa(a.style,
{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},QLa)},SLa=function(a,b){return b&&"none"!=b?a+" "+b:a},TLa=function(a){var b=-1<a.toLowerCase().indexOf("ms")?1:1E3;return parseFloat(a)*b},VLa=function(a){a=getComputedStyle(a);var b=ULa(a,"transition-property"),c=b.find(function(d){return"transform"===d||"all"===d});if(!c)return 0;b=b.indexOf(c);c=ULa(a,"transition-duration");a=ULa(a,"transition-delay");return TLa(c[b])+TLa(a[b])},ULa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},
WLa=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},$o=function(a){return"t"===a.type[0]},XLa=function(a,b){a=a.rootNodes;if(1===a.length&&a[0].nodeType===b.ELEMENT_NODE)return a[0];var c=b.createElement("div");a.forEach(function(d){return c.appendChild(d)});return c},YLa=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=WLa(b.left,b.top)},ap=function(a,b,c){b=Math.max(0,Math.min(a.length-1,b));c=Math.max(0,Math.min(a.length-1,
c));if(b!==c){for(var d=a[b],e=c<b?-1:1;b!==c;b+=e)a[b]=a[b+e];a[c]=d}},ZLa=function(a,b){var c=a.top,d=a.bottom;a=.05*a.height;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},$La=function(a,b){var c=a.left,d=a.right;a=.05*a.width;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},aMa=function(a){a&1&&(D(0,"label"),Q(1),F());a&2&&(a=M(),w(1),S(" ",a.title," "))},cMa=function(a,b){a&1&&(D(0,"div",18),bg(1,19),F());if(a&2){a=b.$implicit;b=b.index;M(2);var c=N(13);w(1);C("ngTemplateOutletContext",pg(2,bMa,a,b))("ngTemplateOutlet",
c)}},dMa=function(a){a&1&&(D(0,"collapsible-panel",15),P(1,cMa,2,5,"div",16),bg(2,17),F());if(a&2){a=M();var b=N(15);C("isExpanded",a.isExpanded)("iconName",a.iconName)("hasCompactTitleBar",!0)("title",a.collapsiblePanelTitle);w(1);C("ngForOf",a.getDisplayValues())("ngForTrackBy",a.trackByIndex);w(1);C("ngTemplateOutlet",b)}},eMa=function(a,b){a&1&&(D(0,"div",18),bg(1,19),F());if(a&2){a=b.$implicit;b=b.index;M(2);var c=N(13);w(1);C("ngTemplateOutletContext",pg(2,bMa,a,b))("ngTemplateOutlet",c)}},
fMa=function(a){a&1&&(D(0,"div"),Q(1,"--"),F())},gMa=function(a){a&1&&(I(0),P(1,eMa,2,5,"div",16),bg(2,17),P(3,fMa,2,0,"div",3),K());if(a&2){a=M();var b=N(15);w(1);C("ngForOf",a.getDisplayValues())("ngForTrackBy",a.trackByIndex);w(1);C("ngTemplateOutlet",b);w(1);C("ngIf",!(null==a.values?0:a.values.length))}},jMa=function(a){if(a&1){var b=r();D(0,"button",24);L("menuOpened",function(){t(b);var d=M(2);hMa(d);d.enumPendingValues=new Set(d.values||[]);return v()})("menuClosed",function(){t(b);var d=
M(2);return v(iMa(d))});Q(1,"Edit ");F()}if(a&2){a=M(2);var c=N(17);Pf("aria-label","Add item to ",a.title,"");C("matMenuTriggerFor",c)}},kMa=function(a){a&1&&(D(0,"button",25),Q(1,"Add "),F());if(a&2){a=M(2);var b=N(22);Pf("aria-label","Add item to ",a.title,"");C("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},lMa=function(a){if(a&1){var b=r();D(0,"button",26);L("beforeOpened",function(){t(b);var d=M(2);return v(d.invalidMessage="")});Q(1,"Add ");F()}if(a&2){a=M(2);var c=
N(20);Pf("aria-label","Add item to ",a.title,"");gg("matTooltip","Add item to ",a.title,"");C("xapInlineDialogClick",c)("overlayPositions",a.OVERLAY_POSITION_LIST)}},mMa=function(a){a&1&&(I(0,20),P(1,jMa,2,2,"button",21),P(2,kMa,2,3,"button",22),P(3,lMa,2,4,"button",23),K());a&2&&(a=M(),C("ngSwitch",a.type),w(1),C("ngSwitchCase","REPEATED_ENUM"),w(1),C("ngSwitchCase","REPEATED_DATE"))},nMa=function(a){a&1&&(D(0,"div"),G(1,"b-changelist-link",39),F());if(a&2){a=M(2).item;var b=M();w(1);C("changelistId",
b.asNumber(a))}},oMa=function(a){a&1&&(D(0,"div")(1,"a",40),Q(2),F()());if(a&2){a=M(3).item;var b=M();w(1);switch(b.environmentType){case "NIGHTLY":case "PROD":b="https://taskflow.corp.google.com/workspaces";break;default:b="https://taskflow-autopush.corp.google.com/workspaces"}C("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId+"?edit=b/"+a.issueId,re);Nf("aria-label","Workspace"+a.workspaceId);w(1);S(" ",a.workspaceName," ")}},pMa=function(a){a&1&&P(0,oMa,3,3,"div",30);if(a&2){M();var b=N(6);
M();a=M();C("ngIf","WORKSPACES"===a.type)("ngIfElse",b)}},qMa=function(a){a&1&&(D(0,"div"),G(1,"b-team-display",41),F());a&2&&(a=M(3).item,w(1),C("teamId",a.teamId)("componentId",a.componentId))},rMa=function(a){a&1&&P(0,qMa,2,2,"div",30);if(a&2){M();var b=N(8);M();a=M();C("ngIf","TEAM"===a.type)("ngIfElse",b)}},sMa=function(a){if(a&1){var b=r();D(0,"div")(1,"a",42);L("click",function(){t(b);var c=M(4);return v(c.trackClick("postmortem"))});Q(2);F()()}a&2&&(a=M(3).item,w(1),gg("href","https://pm.corp.google.com/",
a,"",re),Pf("aria-label","Postmortem ",a,""),w(1),S(" ",a," "))},tMa=function(a){a&1&&P(0,sMa,3,3,"div",30);if(a&2){M();var b=N(10);M();a=M();C("ngIf","POSTMORTEMS"===a.type)("ngIfElse",b)}},vMa=function(a){if(a&1){var b=r();D(0,"div",44)(1,"a",45);L("click",function(){t(b);var d=M(4);return v(d.trackClick("repeated-enum"))});Q(2);F()()}if(a&2){a=M(3).item;var c=M();C("matTooltip",a);w(1);Qf("aria-label","customfield",c.customFieldId,":",a,"");C("queryParams",og(5,uMa,"customfield"+c.customFieldId+
':"'+a+'"'));w(1);S(" ",a," ")}},wMa=function(a){a&1&&P(0,vMa,3,7,"div",43);if(a&2){M();var b=N(12);M();a=M();C("ngIf","REPEATED_ENUM"===a.type)("ngIfElse",b)}},xMa=function(a){a&1&&(D(0,"div"),G(1,"b-truncated-span",47),F());if(a&2){a=M(3).item;var b=M();w(1);C("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},yMa=function(a){a&1&&G(0,"b-user-membership-chip",51,52);if(a&2){a=M(4).item;var b=M();C("user",b.getUser(a))("email",a)("teamId",b.teamId)("enableSmallChip",!0)("enableGroupIcon",
!0)}},zMa=function(a){a&1&&(D(0,"b-person-hovercard",53),Q(1),F());a&2&&(a=M(4).item,C("email",a),w(1),S(" ",a," "))},AMa=function(a){a&1&&(D(0,"div",48),P(1,yMa,2,5,"b-user-membership-chip",49),P(2,zMa,2,2,"b-person-hovercard",50),F());a&2&&(a=M(4),w(1),C("ngIf",a.enableTeamAnnotations),w(1),C("ngIf",!a.enableTeamAnnotations))},BMa=function(a){a&1&&(P(0,xMa,2,3,"div",3),P(1,AMa,3,2,"div",46));if(a&2){a=M(2).item;var b=M();C("ngIf",!b.isUser&&b.isString(a));w(1);C("ngIf",b.isUser&&b.isString(a))}},
CMa=function(a){if(a&1){var b=r();D(0,"b-icon",54);L("click",function(){t(b);var c=M(3);return v(c.toggleAccessLimits.emit())});F()}},DMa=function(a){if(a&1){var b=r();D(0,"button",56,57);L("click",function(){t(b);var d=M(3).$index,e=M();return v(e.removeItem(d))});F()}if(a&2){a=M(3).item;var c=M();Qf("aria-label","Remove ",a," from ",c.title,"");C("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},EMa=function(a){a&1&&P(0,DMa,2,4,"button",55);a&2&&(a=M(3),C("ngIf",!a.readonly&&"REPEATED_ENUM"!==
a.type))},FMa=function(a){a&1&&(D(0,"div",28)(1,"div",29),P(2,nMa,2,1,"div",30),P(3,pMa,1,2,"ng-template",null,31,Eg),P(5,rMa,1,2,"ng-template",null,32,Eg),P(7,tMa,1,2,"ng-template",null,33,Eg),P(9,wMa,1,2,"ng-template",null,34,Eg),P(11,BMa,2,2,"ng-template",null,35,Eg),F(),P(13,CMa,1,0,"b-icon",36),P(14,EMa,1,1,"ng-template",null,37,Eg),G(16,"div",38),F());if(a&2){var b=N(4),c=N(15);a=M().$index;var d=M();w(2);C("ngIf","CHANGELISTS"===d.type)("ngIfElse",b);w(11);C("ngIf","USERCHIP"===d.type&&d.toggleAccessLimits.observed&&
(null==d.userChips?null:d.userChips.get(a))&&(null==d.userChips?null:d.userChips.get(a).isGroup))("ngIfElse",c)}},GMa=function(a,b){a&1&&P(0,FMa,17,4,"div",27);a&2&&(a=b.$index,b=M(),C("ngIf",b.showingAll||a<b.defaultLineCount||!!b.values&&b.values.length===b.defaultLineCount+1))},HMa=function(a){if(a&1){var b=r();D(0,"div",59,60);L("click",function(c){t(b);var d=M(2);return v(bp(d,!1,c))})("keydown.enter",function(c){t(b);var d=M(2);return v(bp(d,!1,c))})("keydown.space",function(c){t(b);var d=M(2);
return v(bp(d,!1,c))});Q(2," (show fewer) ");F()}a&2&&(a=M(2),Qf("aria-label","Show at most ",a.defaultLineCount," ",a.title," items"),gg("matTooltip","Show a truncated list of at most ",a.defaultLineCount," items"))},IMa=function(a){if(a&1){var b=r();D(0,"div")(1,"div",61);Q(2);D(3,"span",62,63);L("click",function(c){t(b);var d=M(2);return v(bp(d,!0,c))})("keydown.enter",function(c){t(b);var d=M(2);return v(bp(d,!0,c))})("keydown.space",function(c){t(b);var d=M(2);return v(bp(d,!0,c))});Q(5," (show all) ");
F()()()}a&2&&(a=M(2),w(2),S(" ... and ",a.values.length-a.defaultLineCount," more "),w(1),Qf("aria-label","Show all ",null==a.values?null:a.values.length," ",a.title," items"),gg("matTooltip","Show all ",null==a.values?null:a.values.length," items in the list"))},JMa=function(a){a&1&&(P(0,HMa,3,3,"div",58),P(1,IMa,6,4,"div",3));a&2&&(a=M(),C("ngIf",a.showingAll&&!!a.values&&a.values.length>a.defaultLineCount+1),w(1),C("ngIf",!a.showingAll&&!!a.values&&a.values.length>a.defaultLineCount+1))},KMa=function(a,
b){if(a&1){var c=r();D(0,"button",65);L("click",function(d){var e=t(c).$implicit,f=M(2);e=e.value;f.enumPendingValues.has(e)?f.enumPendingValues.delete(e):f.enumPendingValues.add(e);null==d||d.stopPropagation();return v()});D(1,"span",66);G(2,"mat-icon",67);F();Q(3);F()}a&2&&(a=b.$implicit,b=M(2),Xf("b-menu-item-checked",b.enumPendingValues.has(a.value)),C("disabled",b.listFieldDisabled),Nf("aria-label",a.displayText),w(3),S(" ",a.displayText," "))},LMa=function(a){a&1&&P(0,KMa,4,5,"button",64);a&
2&&(a=M(),C("ngForOf",a.sortedEnumChoices)("ngForTrackBy",a.trackByIndex))},MMa=function(a){a&1&&G(0,"input",77);a&2&&(a=M(2),Pf("aria-label","Addition to ",a.title,""),C("bContactAutocomplete","MULTI"))},NMa=function(a){a&1&&G(0,"input",78);a&2&&(a=M(2),Pf("aria-label","Addition to ",a.title,""),C("type","REPEATED_NUMERIC"===a.type?"number":"text"))},OMa=function(a){a&1&&(D(0,"mat-error"),Q(1),F());a&2&&(a=M(2),Qf("aria-label","",a.title," error: ",a.invalidMessage,""),w(1),S(" ",a.invalidMessage,
" "))},RMa=function(a){if(a&1){var b=r();D(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",68,69);L("ngSubmit",function(){t(b);var d=N(3),e=N(4),f=M();return v(PMa(f,d,e))});P(5,MMa,1,2,"input",70);P(6,NMa,1,2,"input",71);D(7,"div",72)(8,"button",73);G(9,"mat-icon",74);F();D(10,"button",75);L("click",function(){t(b);var d=M();return v(QMa(d,!0))});G(11,"mat-icon",76);F()();P(12,OMa,2,3,"mat-error",3);F()()()}if(a&2){var c=N(3);a=M();w(5);C("ngIf",a.isUser);w(1);C("ngIf",!a.isUser);
w(2);Pf("aria-label","Apply addition to ",a.title,"");C("disabled",!c.valid||a.listFieldDisabled);w(2);Pf("aria-label","Discard addition to ",a.title,"");w(2);C("ngIf",a.invalidMessage)}},SMa=function(a){if(a&1){var b=r();D(0,"b-date-time-picker-content",79);L("dateChange",function(c){t(b);var d=M();return v(c&&d.addItems(c))})("cancelClicked",function(){t(b);var c=M();return v(QMa(c,!1))});F()}a&2&&C("required",!0)("renderPanel",!1)},cp=function(a,b){return{originX:a,originY:b}},dp=function(a,b){return{overlayX:a,
overlayY:b}},TMa=function(a){switch(null==a?void 0:a.type){case "REPEATED_TEXT":return"REPEATED_TEXT";case "REPEATED_DATE":return"REPEATED_DATE";case "REPEATED_ENUM":return"REPEATED_ENUM";case "REPEATED_NUMERIC":return"REPEATED_NUMERIC";default:return null}},UMa=function(a){if(a.match(/^(https:\/\/|http:\/\/)?(cl)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(cr)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(critique\.corp\.google\.com)/)||a.match(/^(https:\/\/|http:\/\/)?(critique-ng\.corp\.google\.com)/))a=
a.replace(/^.*\//,"");return a.match(/^[1-9]\d*$/)?a:null},XMa=function(a){if(a&1){var b=r();D(0,"b-edit-field",3);L("valueChange",function(e){t(b);var f=M(2);return v(f.save.emit(e))});F()}if(a&2){a=M().ngIf;var c=M(),d;C("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",!c.field.required)("value",VMa(c))("displayValueOverride",c.getDisplayValue())("choices",null!==(d=a.choices)&&void 0!==d?d:ng(12,
WMa))("showEnumTitle",!0)("disabled",c.disabled)("customFieldId",c.field.customFieldId)}},ZMa=function(a){if(a&1){var b=r();D(0,"b-list-field",4);L("valuesChange",function(d){t(b);var e=M(2);return v(e.save.emit(d.values))});F()}if(a&2){a=M().ngIf;var c=M();C("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("customFieldId",c.field.customFieldId)("tooltip",c.getTooltip())("values",YMa(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",
c.disabled)}},$Ma=function(a,b){a&1&&(I(0),P(1,XMa,1,13,"b-edit-field",1),P(2,ZMa,1,10,"b-list-field",2),K());a&2&&(a=b.ngIf,w(1),C("ngIf",!a.isRepeated()),w(1),C("ngIf",a.isRepeated()))},aNa=function(a){a&1&&(I(0),G(1,"mat-icon",11),K())},bNa=function(a){if(a&1){var b=r();I(0);D(1,"button",12);L("mousedown",function(c){t(b);var d=M();return v(d.back(c))});G(2,"mat-icon",13);F();K()}},cNa=function(a){if(a&1){var b=r();I(0);D(1,"button",14);L("mousedown",function(c){t(b);var d=M();return v(d.expand(d.componentOption,
c))});G(2,"mat-icon",15);F();K()}a&2&&(a=M(),w(1),C("matTooltip","View child components of "+a.componentOption.name),Nf("aria-label","View child components of "+a.componentOption.name),w(1),C("svgIcon",a.showFolderSpecialIcon?"folder_special_24px":"folder"))},dNa=function(a){if(a&1){var b=r();I(0);D(1,"a",19);L("mousedown",function(d){t(b);var e=M().$implicit;M(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});T(2,"boldPrefixMatches");T(3,"toString");F();K()}if(a&
2){a=M().$implicit;var c=M(2);w(1);C("innerHtml",rg(2,1,V(3,4,a.name),c.query),qe)}},eNa=function(a){a&1&&Q(0);a&2&&(a=M().$implicit,S(" ",a.name," "))},fNa=function(a){a&1&&(I(0),Q(1,"\u00a0>\u00a0"),K())},gNa=function(a,b){a&1&&(I(0),P(1,dNa,4,6,"ng-container",6),P(2,eNa,1,1,"ng-template",null,17,Eg),P(4,fNa,2,0,"ng-container",18),K());if(a&2){a=b.$implicit;b=b.last;var c=N(3);w(1);C("ngIf",a.name!=a.id)("ngIfElse",c);w(3);C("ngIf",!b)}},hNa=function(a){a&1&&(I(0),P(1,gNa,5,3,"ng-container",16),
K());a&2&&(a=M(),w(1),C("ngForOf",a.componentOption.componentPath))},iNa=function(a,b){if(a&1){var c=r();I(0);D(1,"a",20);L("mousedown",function(d){var e=t(c).ngIf;M(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});Q(2);F();K()}a&2&&(a=b.ngIf,w(2),S(" ",a.name," "))},jNa=function(a){a&1&&P(0,iNa,3,1,"ng-container",18);a&2&&(a=M(),C("ngIf",a.componentOption.componentPath[a.componentOption.componentPath.length-1]))},kNa=function(a){a&1&&(D(0,"span",21),Q(1," [Archived] "),
F())},lNa=function(a){return{type:"team",id:a.teamId,name:a.name,description:a.description,pathNames:a.pathNames,pathIds:a.pathIds,expanded:!1}},mNa=function(a){return{type:"team",id:a.id,name:a.name,description:a.description,expanded:!1}},nNa=function(a,b){var c,d=null!=(c=null==b?void 0:b.componentPathId)?c:[],e,f=null!=(e=null==b?void 0:b.componentPathName)?e:[];b=d.map(function(h,k){return{id:h,name:f[k],pathText:f.slice(0,k+1).join(" > ")}});return{type:"component",id:a.componentId,name:a.name,
description:a.description,accessLimit:a.accessLimit,archived:a.archived,componentPath:b,trackerId:a.trackerId}},oNa=function(a){return new Map([].concat(p(a.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.map(mNa)]}))},pNa=function(a){a&1&&G(0,"img",5);a&2&&(a=M(),Nf("src",a.getLogoUrl(),re))},qNa=function(a){a&1&&(D(0,"span",9),Q(1,"no components"),F())},rNa=function(a){a&1&&(D(0,"div",6),G(1,"div",7),T(2,"boldPrefixMatches"),P(3,qNa,2,0,"span",8),F());a&2&&(a=
M(),w(1),C("innerHtml",rg(2,2,a.teamOption.name,a.query),qe),w(2),C("ngIf",a.hasNoComponent))},sNa=function(a){if(a&1){var b=r();I(0);D(1,"a",15);L("mousedown",function(c){t(b);var d=M(2).index,e=M(2);d=null==e.teamOption.pathIds?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);return v()});Q(2);F();K()}a&2&&(a=M(2).$implicit,w(2),jg(a))},tNa=function(a){a&1&&Q(0);a&2&&(a=M(2).$implicit,jg(a))},uNa=function(a){a&1&&(I(0),P(1,sNa,3,1,"ng-container",12),
P(2,tNa,1,1,"ng-template",null,14,Eg),I(4),Q(5," \u00b7 "),K()());if(a&2){var b=N(3);a=M(3);w(1);C("ngIf",a.allowSegmentSelection)("ngIfElse",b)}},vNa=function(a){a&1&&(I(0),D(1,"strong",17),Q(2),F(),K());a&2&&(a=M(2).$implicit,w(2),jg(a))},wNa=function(a){a&1&&Q(0);a&2&&(a=M(2).$implicit,jg(a))},xNa=function(a){a&1&&(P(0,vNa,3,1,"ng-container",12),P(1,wNa,1,1,"ng-template",null,16,Eg));if(a&2){var b=N(2);a=M(3);C("ngIf",a.compact)("ngIfElse",b)}},yNa=function(a,b){a&1&&(I(0),P(1,uNa,6,2,"ng-container",
12),P(2,xNa,3,2,"ng-template",null,13,Eg),K());if(a&2){a=b.last;var c=N(3);w(1);C("ngIf",!a)("ngIfElse",c)}},zNa=function(a){a&1&&(D(0,"div",10),P(1,yNa,4,2,"ng-container",11),F());a&2&&(a=M(),w(1),C("ngForOf",a.teamOption.pathNames))},ANa=function(){var a=jd(Oh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},BNa=function(a){if(a&1){var b=r();D(0,"button",9);L("mousedown",function(c){t(b);M().clearQuery();return v(ep(c))});G(1,"mat-icon",10);F()}},CNa=function(a){a&
1&&(D(0,"div",13),Q(1," Checking for admin access... "),F())},DNa=function(a){a&1&&(D(0,"div",15),Q(1," You do not have admin access to this component. "),D(2,"a",16),Q(3,"View component admins"),F()());a&2&&(a=M(3),w(2),C("href",a.paths.manageComponent(a.selectedComponent.componentId,"access"),re))},ENa=function(a){a&1&&P(0,DNa,4,1,"div",14);a&2&&(a=M(2),C("ngIf",!a.hasAccess&&a.selectedComponent))},FNa=function(a){a&1&&(D(0,"div"),P(1,CNa,2,0,"div",11),P(2,ENa,1,1,"ng-template",null,12,Eg),F());
if(a&2){var b=N(3);a=M();w(1);C("ngIf",a.checkingAccess)("ngIfElse",b)}},GNa=function(a){a&1&&G(0,"mat-progress-bar",24)},HNa=function(a){a&1&&(I(0),Q(1,"s"),K())},JNa=function(a,b){if(a&1){var c=r();I(0);D(1,"div",30);L("mousedown",function(e){var f=t(c).$implicit,h=M(5);INa(h.searchState,f);return v(ep(e))});D(2,"team-row",31);L("selectTeamId",function(e){t(c);var f=M(5);return v(fp(f.searchState,e))});F()();K()}if(a&2){a=b.$implicit;b=M(5);var d=N(3);w(1);C("data",a);w(1);C("teamOption",a)("query",
d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},KNa=function(a){a&1&&(D(0,"div",27)(1,"div",28),Q(2," Filter components by my teams "),D(3,"span"),Q(4),P(5,HNa,2,0,"ng-container",5),F()(),P(6,JNa,3,4,"ng-container",29),G(7,"mat-divider"),F());a&2&&(a=M().ngIf,w(4),S("",a.length," team"),w(1),C("ngIf",1<a.length),w(1),C("ngForOf",a))},LNa=function(a,b){a&1&&(I(0),P(1,KNa,8,3,"div",26),K());a&2&&(a=b.ngIf,w(1),C("ngIf",a.length))},MNa=function(a){a&1&&bg(0)},ONa=function(a){a&1&&(I(0),
P(1,LNa,2,1,"ng-container",5),T(2,"async"),P(3,MNa,1,0,"ng-container",25),K());if(a&2){a=M(2);var b=N(12);w(1);C("ngIf",V(2,3,a.searchState.myTeams$));w(2);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(5,NNa,a.searchState.recentComponents))}},PNa=function(a){a&1&&(I(0),Q(1,"s"),K())},QNa=function(a){a&1&&bg(0)},TNa=function(a,b){a&1&&(I(0),P(1,QNa,1,0,"ng-container",25),K());if(a&2){a=b.$implicit;b=b.index;M(5);var c=N(10);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(4,RNa,a,og(2,
SNa,b)))}},UNa=function(a){if(a&1){var b=r();D(0,"button",33);L("mousedown",function(){t(b);var c=M(5);return v(c.searchState.showAllTeams$.next(!0))});G(1,"mat-icon",34);Q(2," Show all teams ");F()}},VNa=function(a,b){a&1&&(D(0,"div",27)(1,"div",28),Q(2," Filter components by teams "),D(3,"span"),Q(4),P(5,PNa,2,0,"ng-container",5),F()(),P(6,TNa,2,7,"ng-container",29),T(7,"async"),P(8,UNa,3,0,"button",32),T(9,"async"),G(10,"mat-divider"),F());a&2&&(a=b.ngIf,b=M(4),w(4),S("",a," team"),w(1),C("ngIf",
1<a),w(1),C("ngForOf",V(7,4,b.searchState.filteredTeamOptions$)),w(2),C("ngIf",V(9,6,b.searchState.hasHiddenTeams$)))},WNa=function(a,b){a&1&&(I(0),P(1,VNa,11,8,"div",26),K());a&2&&(a=b.ngIf,w(1),C("ngIf",a.length))},XNa=function(a){a&1&&bg(0)},ZNa=function(a){a&1&&(I(0),P(1,WNa,2,1,"ng-container",5),T(2,"async"),P(3,XNa,1,0,"ng-container",25),K());if(a&2){a=M(2);var b=N(12);w(1);C("ngIf",V(2,3,a.searchState.teamOptions$));w(2);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(5,YNa,a.searchState.componentOptions))}},
$Na=function(a){a&1&&bg(0)},bOa=function(a,b){a&1&&(I(0),P(1,$Na,1,0,"ng-container",25),K());if(a&2){a=b.$implicit;b=b.index;M(7);var c=N(10);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(4,RNa,a,og(2,aOa,b)))}},cOa=function(a){a&1&&(D(0,"div",42),P(1,bOa,2,7,"ng-container",29),F());a&2&&(a=M(2).ngIf,w(1),C("ngForOf",a))},fOa=function(a){if(a&1){var b=r();I(0);P(1,cOa,2,1,"div",41);D(2,"button",33);L("mousedown",function(c){t(b);var d=M(5),e=d.searchState.teamScope$.value;e.expanded?dOa(d.searchState,
e):eOa(d.searchState,e);return v(ep(c))});G(3,"mat-icon",34);Q(4);F();K()}a&2&&(a=M(5),w(1),C("ngIf",a.searchState.teamScope$.value.expanded),w(2),Xf("expanded",a.searchState.teamScope$.value.expanded),w(1),S(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},gOa=function(a,b){a&1&&(I(0),P(1,fOa,5,4,"ng-container",5),K());a&2&&(a=b.ngIf,w(1),C("ngIf",a.length))},jOa=function(a){if(a&1){var b=r();D(0,"div",36)(1,"div",28);Q(2," Filtering by team: ");F();D(3,"div",37)(4,"team-row",
38);L("selectTeamId",function(d){t(b);var e=M(3);return v(fp(e.searchState,d))});F();D(5,"button",39);L("mousedown",function(d){t(b);var e=M(3);hOa(e.searchState);return v(ep(d))});G(6,"mat-icon",40);F()();P(7,gOa,2,1,"ng-container",5);F()}if(a&2){a=M(3);var c=N(3);w(3);C("data",a.searchState.teamScope$.value)("listOrder",ng(7,iOa));w(1);C("teamOption",a.searchState.teamScope$.value)("query",c.value)("compact",!0)("allowSegmentSelection",!0);w(3);C("ngIf",a.searchState.getChildTeams(a.searchState.teamScope$.value.id))}},
kOa=function(a){a&1&&bg(0)},mOa=function(a){a&1&&(I(0),P(1,jOa,8,8,"div",35),P(2,kOa,1,0,"ng-container",25),K());if(a&2){a=M(2);var b=N(12);w(1);C("ngIf",a.searchState.teamScope$.value);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",pg(3,lOa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},pOa=function(a){if(a&1){var b=r();D(0,"div",44)(1,"div",45);Q(2,"Component Tree Browser");F();D(3,"component-row",46);L("goBack",function(){t(b);var c=M(3);return v(nOa(c.searchState))})("selectComponentId",
function(c){t(b);var d=M(3);return v(oOa(d.searchState,c))});F()()}a&2&&(a=M(3),w(3),C("componentOption",a.searchState.componentScope))},qOa=function(a){a&1&&bg(0)},sOa=function(a){a&1&&(I(0),P(1,pOa,4,1,"div",43),P(2,qOa,1,0,"ng-container",25),K());if(a&2){a=M(2);var b=N(12);w(1);C("ngIf",a.searchState.componentScope);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(3,rOa,a.searchState.componentOptions))}},tOa=function(a){if(a&1){var b=r();D(0,"div",17,18);L("mousedown",function(c){t(b);
M();return v(ep(c))});D(2,"div",19);P(3,GNa,1,0,"mat-progress-bar",20);F();D(4,"div",21);I(5,22);T(6,"async");P(7,ONa,4,7,"ng-container",23);P(8,ZNa,4,7,"ng-container",23);P(9,mOa,3,6,"ng-container",23);P(10,sOa,3,5,"ng-container",23);K();F()()}a&2&&(a=M(),w(3),C("ngIf",a.isLoading()),w(2),C("ngSwitch",V(6,6,a.searchState.state$)),w(2),C("ngSwitchCase","default"),w(1),C("ngSwitchCase","global"),w(1),C("ngSwitchCase","team_scope"),w(1),C("ngSwitchCase","component_scope"))},uOa=function(a){if(a&1){var b=
r();D(0,"button",50);L("mousedown",function(c){t(b);var d=M().team,e=M();d.expanded?dOa(e.searchState,d):eOa(e.searchState,d);return v(ep(c))});G(1,"mat-icon",51);F()}a&2&&(a=M().team,w(1),Xf("expanded",a.expanded))},vOa=function(a){a&1&&bg(0)},xOa=function(a,b){a&1&&(I(0),P(1,vOa,1,0,"ng-container",25),K());if(a&2){a=b.$implicit;b=b.index;var c=M(2),d=c.level;c=c.order;M();var e=N(10);w(1);C("ngTemplateOutlet",e)("ngTemplateOutletContext",qg(wOa,a,d+1,c.concat(b)))}},yOa=function(a){a&1&&(I(0),P(1,
xOa,2,6,"ng-container",29),K());if(a&2){a=M().team;var b=M();w(1);C("ngForOf",b.searchState.getChildTeams(a.id))}},zOa=function(a,b){if(a&1){var c=r();D(0,"div",47);L("mousedown",function(h){var k=t(c).team,q=M();INa(q.searchState,k);return v(ep(h))});D(1,"div",48);P(2,uOa,2,2,"button",49);D(3,"team-row",31);L("selectTeamId",function(h){t(c);var k=M();return v(fp(k.searchState,h))});F()()();P(4,yOa,2,1,"ng-container",5)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=M(),f=N(3);C("listOrder",b)("data",
a);w(1);Wf("margin-left",28*d,"px");w(1);C("ngIf",e.searchState.getChildTeams(a.id).length);w(1);Xf("indent",!e.searchState.getChildTeams(a.id).length);C("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));w(1);C("ngIf",a.expanded)}},AOa=function(a){a&1&&(I(0),Q(1,"s"),K())},COa=function(a,b){if(a&1){var c=r();D(0,"div",56);L("mousedown",function(f){var h=t(c).$implicit,k=M(3);BOa(k.searchState,h.id);return v(ep(f))});D(1,"component-row",57);L("selectComponentId",
function(f){t(c);var h=M(3);return v(BOa(h.searchState,f))})("expandComponent",function(f){t(c);var h=M(3);return v(h.searchState.expandComponent(f))});F()()}if(a&2){a=b.$implicit;b=M(2).mode;var d=M(),e=N(3);C("data",a);w(1);C("showFolderSpecialIcon",d.currentTracker.inTracker)("componentOption",a)("query",e.value)("mode",b)}},DOa=function(a,b){a&1&&(D(0,"div",54)(1,"div",28),Q(2),D(3,"span"),Q(4),P(5,AOa,2,0,"ng-container",5),F()(),P(6,COa,2,5,"div",55),F());if(a&2){a=b.ngIf;var c=M();b=c.mode;
c=c.$implicit;w(2);S(" ","recent"===b?"Select recent component":"Select component"," ");w(2);S("",a," component");w(1);C("ngIf",1<a);w(1);C("ngForOf",c)}},EOa=function(a){a&1&&(I(0),Q(1," No recent components "),K())},FOa=function(a){a&1&&(I(0),Q(1," No child components "),K())},GOa=function(a){a&1&&(I(0),Q(1),G(2,"mat-icon",61),Q(3," above ("),D(4,"a",62),Q(5,"learn more "),G(6,"mat-icon",63),F(),Q(7," about team associations)"),K());a&2&&(a=M(4).teamScope,w(1),S(" for ",a.name,". Remove the team filter by clicking on the "))},
HOa=function(a){a&1&&(I(0),Q(1," No components found "),P(2,GOa,8,1,"ng-container",5),K());a&2&&(a=M(3).teamScope,w(2),C("ngIf",a))},IOa=function(a){a&1&&(D(0,"div",59),I(1,22),P(2,EOa,2,0,"ng-container",23),P(3,FOa,2,0,"ng-container",23),P(4,HOa,3,1,"ng-container",60),K(),F());a&2&&(a=M(2).mode,w(1),C("ngSwitch",a),w(1),C("ngSwitchCase","recent"),w(1),C("ngSwitchCase","leaf"))},JOa=function(a){a&1&&P(0,IOa,5,3,"div",58);a&2&&(a=M(2),C("ngIf",!(a.componentLoading||a.searchState.componentsLoading)))},
KOa=function(a,b){a&1&&(P(0,DOa,7,4,"div",52),P(1,JOa,1,1,"ng-template",null,53,Eg));if(a&2){a=b.$implicit;var c=N(2);C("ngIf",a.length)("ngIfElse",c)}},LOa=function(a,b){b=l([a.listOrder,b.listOrder]);a=b.next().value;b=b.next().value;for(var c=0;c<Math.min(a.length,b.length);c++)if(a[c]!==b[c])return a[c]-b[c];return a.length-b.length},MOa=function(a){a&1&&(D(0,"div"),Q(1," Loading custom fields... "),F())},NOa=function(a){a&1&&(D(0,"div"),Q(1),F());a&2&&(a=M(2),w(1),S(" There are no custom fields in component ",
a.selectedComponent.name,". "))},OOa=function(a,b){a&1&&(D(0,"mat-option",9),Q(1),F());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",a.name," "))},POa=function(a){if(a&1){var b=r();D(0,"div")(1,"mat-form-field",6)(2,"mat-label");Q(3,"Custom field");F();D(4,"mat-select",7);L("selectionChange",function(c){t(b);var d=M(2);return v(d.fieldSelected.emit(c.value))});P(5,OOa,2,2,"mat-option",8);F()()()}a&2&&(a=M(2),w(5),C("ngForOf",a.customFields))},QOa=function(a){a&1&&(D(0,"div",4),P(1,MOa,2,0,"div",5),
P(2,NOa,2,1,"div",5),P(3,POa,6,1,"div",5),F());a&2&&(a=M(),w(1),C("ngIf",null==a.customFields),w(1),C("ngIf",a.customFields&&!a.customFields.length),w(1),C("ngIf",null==a.customFields?null:a.customFields.length))},ROa=function(a){a&1&&bg(0)},SOa=function(){},TOa=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M().value,w(1),jg(a.textValue))},UOa=function(a){a&1&&(I(0),G(1,"b-formatted-date-time",5),K());if(a&2){a=M().value;var b=M();w(1);C("date",b.toDate(a.dateValue))}},VOa=function(a){a&1&&(I(0),Q(1),
K());a&2&&(a=M().value,w(1),jg(a.enumValue))},WOa=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M().value,w(1),jg(a.numericValue))},XOa=function(a,b){a&1&&(I(0),Q(1),K());a&2&&(a=b.$implicit,b=b.last,w(1),kg("",a,"",b?"":", ",""))},YOa=function(a){a&1&&(I(0),P(1,XOa,2,2,"ng-container",6),K());a&2&&(a=M().value,w(1),C("ngForOf",a.repeatedTextValue.values))},ZOa=function(a,b){a&1&&(I(0),G(1,"b-formatted-date-time",5),Q(2),K());if(a&2){a=b.$implicit;b=b.last;var c=M(3);w(1);C("date",c.toDate(a));w(1);jg(b?
"":", ")}},$Oa=function(a){a&1&&(I(0),P(1,ZOa,3,2,"ng-container",6),K());a&2&&(a=M().value,w(1),C("ngForOf",a.repeatedDateValue.values))},aPa=function(a,b){a&1&&(I(0),Q(1),K());a&2&&(a=b.$implicit,b=b.last,w(1),kg("",a,"",b?"":", ",""))},bPa=function(a){a&1&&(I(0),P(1,aPa,2,2,"ng-container",6),K());a&2&&(a=M().value,w(1),C("ngForOf",a.repeatedEnumValue.values))},cPa=function(a,b){a&1&&(I(0),Q(1),K());a&2&&(a=b.$implicit,b=b.last,w(1),kg("",a,"",b?"":", ",""))},dPa=function(a){a&1&&(I(0),P(1,cPa,2,
2,"ng-container",6),K());a&2&&(a=M().value,w(1),C("ngForOf",a.repeatedNumericValue.values))},ePa=function(a,b){a&1&&(P(0,TOa,2,1,"ng-container",4),P(1,UOa,2,1,"ng-container",4),P(2,VOa,2,1,"ng-container",4),P(3,WOa,2,1,"ng-container",4),P(4,YOa,2,1,"ng-container",4),P(5,$Oa,2,1,"ng-container",4),P(6,bPa,2,1,"ng-container",4),P(7,dPa,2,1,"ng-container",4));a&2&&(a=b.value,b=M(),C("ngIf",null!=a.textValue),w(1),C("ngIf",b.isNonemptyJsonDateValue(a.dateValue)),w(1),C("ngIf",null!=a.enumValue),w(1),C("ngIf",
null!=a.numericValue),w(1),C("ngIf",null!=a.repeatedTextValue),w(1),C("ngIf",null!=a.repeatedDateValue),w(1),C("ngIf",null!=a.repeatedEnumValue),w(1),C("ngIf",null!=a.repeatedNumericValue))},gp=function(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf(":");0>e||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b},hp=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},fPa=function(a,b){for(var c in a)if(c.toLowerCase()===
b.toLowerCase()){delete a[c];break}},hPa=function(a){a=Ac(a);for(var b=0;b<gPa.length;++b){var c=gPa[b],d=hp(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,fPa(a,c))}return a},iPa=function(a){a=Ac(a);fPa(a,"X-Goog-Upload-Status");return a},kPa=function(a){if(a&1){var b=r();D(0,"button",3);L("fileSelected",function(c){t(b);var d=M();return v(jPa(d,c))});G(1,"mat-icon",4);F()}a&2&&(a=M(),C("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},lPa=function(a){if(a&
1){var b=r();D(0,"button",5);L("fileSelected",function(c){t(b);var d=M();return v(jPa(d,c))});G(1,"mat-icon",4);Q(2," Add attachments ");F()}a&2&&(a=M(),C("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},mPa=function(a){a&1&&(D(0,"span"),Q(1),T(2,"humanFileSize"),T(3,"humanFileSize"),F());if(a&2){a=M().$implicit;var b;w(1);kg(" ",V(2,2,a.transferredBytes)," of ",V(3,4,null!==(b=a.size)&&void 0!==b?b:0)," ")}},nPa=function(a){a&1&&(D(0,"span",
11),Q(1),F());a&2&&(a=M().$implicit,w(1),S(" ",a.errorMessage," "))},oPa=function(a){a&1&&(D(0,"span",11),Q(1),T(2,"humanFileSize"),F());if(a&2){a=M().$implicit;var b;w(1);S(" ",V(2,1,null!==(b=a.size)&&void 0!==b?b:0)," ")}},qPa=function(a,b){if(a&1){var c=r();D(0,"div",3)(1,"div",4);G(2,"mat-icon",5);D(3,"span",6);Q(4);F();D(5,"span",7);P(6,mPa,4,6,"span",8);P(7,nPa,2,1,"span",9);P(8,oPa,3,3,"span",9);F()();D(9,"button",10);L("click",function(){var d=t(c).$implicit,e=M(2);return v(e.cancel(d))});
F()()}a&2&&(a=b.$implicit,b=M(2),C("ngClass",og(8,pPa,a.state===b.uploadStates.ERROR)),w(3),C("matTooltip",a.name),w(1),jg(a.name),w(2),C("ngIf",a.state===b.uploadStates.UPLOADING),w(1),C("ngIf",a.state===b.uploadStates.ERROR),w(1),C("ngIf",a.state===b.uploadStates.COMPLETE),w(1),C("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),Nf("aria-label","Remove attachment"+a.name))},rPa=function(a){a&1&&(D(0,"div",1),P(1,qPa,10,10,"div",2),F());a&2&&(a=M(),w(1),C("ngForOf",
a.uploads))},sPa=function(a){this.action=a;this.wfv=!1},tPa=function(a,b){sPa.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},uPa=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},wPa=function(a,b){var c=b&&b.getWindow()||window;if(uPa(b))a();else if(vPa)vPa.push(a);else var d=vPa=[a],e=c.setInterval(function(){if(uPa(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();vPa=null}},100)},yPa=function(a,b){var c;a:{for(c=b.target;c;){if(1==c.nodeType){var d=ip(c,
"overflowY");if("auto"==d||"scroll"==d)break a}c=c.parentNode}c=null}(!c||!xPa(a,c)||c.scrollHeight==c.clientHeight||0<b.deltaY&&1>=Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))||0>b.deltaY&&0==c.scrollTop)&&b.stopPropagation()},APa=function(a,b){b?(b=Nqa(b))?(1===a.nodeType&&qpa(a),a.innerHTML=ih(b)):zPa(a):zPa(a)},zPa=function(a){for(;a.lastChild;)a.lastChild.remove()},BPa=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;a=a.nextSibling}return!0},jp=function(a){return a.endsWith("px")?
Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},CPa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},DPa=function(a){if(a&1){var b=r();D(0,"div",5);L("clickOutside",function(){t(b);var c=M();return v(c.hide())});D(1,"div",6);Q(2," Relative link may be malformed:\u00a0 ");D(3,"code");Q(4);F();D(5,"button",7);L("click",function(){t(b);var c=M();return v(c.copyToClipboard())});G(6,"mat-icon",8);F()();D(7,"div",6);Q(8," Force open as: \u00a0 ");D(9,"a",9);L("click",function(c){t(b);
var d=M();CPa(c)||(c.preventDefault(),c.stopPropagation(),kp(d.domSafe,"http://"+d.originalHref));return v()});Q(10);F()()()}a&2&&(a=M(),w(4),jg(a.originalHref),w(5),gg("href","http://",a.originalHref,"",re),w(1),S(" http://",a.originalHref," "))},EPa=function(a){a&1&&(D(0,"b-glue"),G(1,"mat-icon",5),F())},IPa=function(a){if(a&1){var b=r();D(0,"div",6);L("clickOutside",function(){t(b);var c=M();return v(c.hide())});D(1,"span",7)(2,"a",8);L("click",function(c){t(b);var d=M();return v(FPa(d,c))})("keydown",
function(c){t(b);var d=M();return v(GPa(d,c))});Q(3);F()();D(4,"button",9);L("keydown.Tab",function(c){t(b);var d=M();return v(HPa(d,c))})("click",function(){t(b);var c=M();return v(c.copyToClipboard())});G(5,"mat-icon",10);F()()}a&2&&(a=M(),w(2),C("href",a.originalHref,re)("rel",a.EXTERNAL_LINK_REL),w(1),jg(a.originalHref))},JPa=function(a){a&1&&(D(0,"div",4),bg(1,5),F());a&2&&(a=M(),C("onedevIsHovercardReady",a.hovercardReady))},KPa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},LPa=
function(a,b){a&1&&(I(0),G(1,"b-plain-format-section",2),K());a&2&&(a=b.$implicit,w(1),C("section",a))},MPa=function(a){a&1&&G(0,"b-plain-format-quoted-section",1);a&2&&(a=M(),C("section",a.section))},NPa=function(a){a&1&&G(0,"b-plain-format-unquoted-section",1);a&2&&(a=M(),C("section",a.section))},PPa=function(a){if(a&1){var b=r();D(0,"a",4);L("click",function(){t(b);var c=M();c.showQuote=!0;OPa(c);return v()});Q(1," - Show quoted text - ");F()}a&2&&(a=M(),Nf("aria-controls",a.childId))},QPa=function(a){if(a&
1){var b=r();D(0,"a",5);L("click",function(){t(b);var c=M();c.showQuote=!1;OPa(c);return v()});Q(1," - Hide quoted text - ");F()}a&2&&(a=M(),Nf("aria-controls",a.childId))},RPa=function(a,b){a&1&&(I(0),G(1,"b-literal-format-presenter",1),K());a&2&&(a=b.ngIf,w(1),C("content",a))},SPa=function(a,b){a&1&&(I(0),G(1,"b-markdown-format-presenter",1),K());a&2&&(a=b.ngIf,w(1),C("content",a))},TPa=function(a,b){a&1&&(I(0),G(1,"b-plain-format-presenter",1),K());a&2&&(a=b.ngIf,w(1),C("content",a))},UPa=function(a){switch(a.formattingMode){case "LITERAL":return(0,B.of)({literalFormat:{content:Mqa(hh(a.comment))}});
case "MARKDOWN":return a={markdownFormat:{content:Mqa(hh(""))}},(0,B.of)(a);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return a={plainFormat:{plainSection:[{isQuoted:!1,content:Mqa(hh(a.comment))}]}},(0,B.of)(a);default:return $h(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},VPa=function(a,b){a&1&&(I(0),D(1,"div",1),G(2,"b-formatted-comment-presenter",2),F(),K());a&2&&(a=b.$implicit,b=M(),w(1),Xf("invisible",""===(b.comment||"").trim())("error",a.isFallback),w(1),
C("formattedComment",a.formattedComment))},WPa=function(a){a&1&&(D(0,"a",2),G(1,"mat-icon",3),F());a&2&&(a=M(),C("href",a.mdHelpLink,re)("disableRipple",!0))},XPa=function(a){a&1&&G(0,"b-formatted-comment-presenter",4);a&2&&(a=M(),C("formattedComment",a.note.formattedComment))},YPa=function(a){a&1&&G(0,"b-live-preview",5);a&2&&(a=M(),C("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode||a.FormattingMode.PLAIN)("idPrefix",
a.idPrefix))},ZPa=function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._fitToContent=!1;return c};W(b,a);b.prototype.ngOnInit=function(){this._createInkBarElement()};b.prototype.ngOnDestroy=function(){var c;null==(c=this._inkBarElement)||c.remove();this._inkBarElement=this._inkBarContentElement=null};b.prototype._createInkBarElement=function(){var c=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=c.createElement("span");this._inkBarContentElement=
c.createElement("span");this._inkBarElement.className="mdc-tab-indicator";this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline";this._inkBarElement.appendChild(this._inkBarContentElement);this._appendInkBarElement()};b.prototype._appendInkBarElement=function(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}},$Pa=function(a){var b=function(){var c=
a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._fitToContent=!1;return c};W(b,a);b.prototype.ngOnInit=function(){this._createInkBarElement()};b.prototype.ngOnDestroy=function(){var c;null==(c=this._inkBarElement)||c.remove();this._inkBarElement=this._inkBarContentElement=null};b.prototype._createInkBarElement=function(){var c=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=c.createElement("span");this._inkBarContentElement=c.createElement("span");this._inkBarElement.className=
"mdc-tab-indicator";this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline";this._inkBarElement.appendChild(this._inkBarContentElement);this._appendInkBarElement()};b.prototype._appendInkBarElement=function(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}},aQa=function(){},bQa=function(){},cQa=function(a){a&1&&fg(0)},dQa=function(){},eQa=function(a){a&
1&&P(0,dQa,0,0,"ng-template",10);a&2&&(a=M().$implicit,C("cdkPortalOutlet",a.templateLabel))},fQa=function(a){a&1&&Q(0);a&2&&(a=M().$implicit,jg(a.textLabel))},gQa=function(a,b){if(a&1){var c=r();D(0,"div",6);L("click",function(){var f=t(c),h=f.$implicit;f=f.index;var k=M(),q=N(1);return v(k._handleClick(h,q,f))})("cdkFocusChange",function(f){var h=t(c).index,k=M();return v(k._tabFocusChanged(f,h))});D(1,"div",7);P(2,eQa,1,1,"ng-template",8);P(3,fQa,1,1,"ng-template",null,9,Eg);F()()}if(a&2){a=b.$implicit;
b=b.index;var d=N(4),e=M();Xf("mat-tab-label-active",e.selectedIndex===b);C("id",e._getTabLabelId(b))("ngClass",a.labelClass)("disabled",a.disabled)("matRippleDisabled",a.disabled||e.disableRipple);Nf("tabIndex",e._getTabIndex(b))("aria-posinset",b+1)("aria-setsize",e._tabs.length)("aria-controls",e._getTabContentId(b))("aria-selected",e.selectedIndex===b)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null);w(2);C("ngIf",a.templateLabel)("ngIfElse",
d)}},hQa=function(a,b){if(a&1){var c=r();D(0,"mat-tab-body",11);L("_onCentered",function(){t(c);var e=M();return v(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){t(c);var f=M();return v(f._setTabBodyWrapperHeight(e))});F()}if(a&2){a=b.$implicit;b=b.index;var d=M();Xf("mat-tab-body-active",d.selectedIndex===b);C("id",d._getTabContentId(b))("ngClass",a.bodyClass)("content",a.content)("position",a.position)("origin",a.origin)("animationDuration",d.animationDuration)("preserveContent",
d.preserveContent);Nf("tabindex",null!=d.contentTabIndex&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(b))}},lQa=function(a){if(a&1){var b=r();D(0,"input",7,8);L("change",function(){t(b);var c=M();if(iQa(c)){var d=lp(c);jQa(c);kQa(c,!0);lp(c).focus();d.scrollTop=c.scrollPosition;d.selectionEnd=c.textAreaLastCursorLocation;d.dispatchEvent(new KeyboardEvent("keydown"));c.contentChange.emit(c.getValue())}return v()})("keyup",function(c){t(b);var d=M();document.activeElement===
mp(d)&&("Enter"===c.key||"Tab"===c.key?(d.taggingInProgress=!1,kQa(d,!0),lp(d).focus()):kQa(d));return v()});F()}a&2&&(a=M(),C("value",a.autocompleteUserName))},mQa=function(a){a&1&&G(0,"div",9,10)},nQa=function(a){a&1&&bg(0)},oQa=function(a){a&1&&bg(0)},pQa=function(a){if(a&1){var b=r();D(0,"div",1);G(1,"mat-icon",2);D(2,"div",3);Q(3," Comment and vote +1 on this issue to increase visibility ");F();D(4,"div",4)(5,"button",5);L("click",function(){t(b);var c=M();return v(c.onClick())});Q(6,"Comment and vote +1");
F()()()}a&2&&(w(1),C("matTooltip","The +1 button is located in the top right corner of the issue details page"))},qQa=function(a){if(a&1){var b=r();I(0);D(1,"b-plus-one-comment-callout",7);L("onSubmitComment",function(){t(b);M().onSubmit.emit();return v()});F();K()}a&2&&(a=M(),w(1),C("isPlusOneText","+1"===a.comment.value.trim()))},rQa=function(a){if(a&1){var b=r();D(0,"b-drive-attachment",12);L("onPickDoc",function(c){t(b);var d=M(2);d.comment&&(d.comment.value+="\n\n"+c.url+" ("+c.name+")");return v()})("onCloneBlob",
function(c){t(b);var d=M(2);return v(d.addUpload(c))});F()}a&2&&(a=M(2),C("disabled",a.attachmentsDisabled))},sQa=function(a){if(a&1){var b=r();I(0);D(1,"button",16);L("click",function(){t(b);var c=M(3);return v(c.onRestrict.emit())});G(2,"mat-icon",17);F();K()}a&2&&(a=M(3),w(1),C("disabled",a.attachmentsDisabled))},tQa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M(3);return v(c.onRestrict.emit())});G(1,"mat-icon",17);Q(2);F()}a&2&&(a=M(3),w(2),S(" ",a.getRestrictedLabel(),
" "))},uQa=function(a){a&1&&(D(0,"div",13),P(1,sQa,3,1,"ng-container",14),P(2,tQa,3,1,"ng-template",null,15,Eg),F());if(a&2){var b=N(3);a=M(2);w(1);C("ngIf",!a.isRestricted())("ngIfElse",b)}},vQa=function(a){if(a&1){var b=r();D(0,"div",8);fg(1,2,["class","goog-inline-block"]);D(2,"b-attachment-selector",9);L("onSelect",function(d){t(b);var e=M();return v(e.uploadFile(d))});F();P(3,rQa,1,1,"b-drive-attachment",10);T(4,"async");P(5,uQa,4,2,"div",11);F()}if(a&2){a=M();var c;w(2);C("disabled",a.attachmentsDisabled);
w(1);C("ngIf",!(null!==(c=V(4,3,a.currentTracker.inTracker$))&&void 0!==c&&c));w(2);C("ngIf",a.showRestrictionOptions)}},wQa=function(a){a&1&&(D(0,"div"),G(1,"b-live-preview",19),F());a&2&&(a=M(),w(1),C("comment",a.comment.value)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.comment.formattingMode))},yQa=function(a,b){if(a&1){var c=r();D(0,"button",13);L("click",function(){var d=t(c).$implicit,e=M(3);return v(xQa(e.issueEditBuilder,d))});Q(1);F()}a&2&&(a=b.$implicit,b=M(3),C("disabled",
b.issueEditBuilder.issueState==a),w(1),S(" ",a.displayValue," "))},zQa=function(a){if(a&1){var b=r();D(0,"div",27)(1,"span");Q(2,"Multiple");F();D(3,"a",28);L("click",function(){t(b);var c=M(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");F()()}},AQa=function(a){if(a&1){var b=r();D(0,"div",27)(1,"span");Q(2,"Possibly multiple");F();D(3,"a",28);L("click",function(){t(b);var c=M(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");F()()}},CQa=function(a){if(a&1){var b=r();D(0,"div")(1,
"input",29);L("ngModelChange",function(c){t(b);var d=M(4);return v(d.issueEditBuilder.commonAssignee=c)})("ngModelChange",function(){t(b);var c=M(4);return v(BQa(c.issueEditBuilder))});F()()}a&2&&(a=M(4),w(1),C("ngModel",a.issueEditBuilder.commonAssignee)("bContactAutocomplete","SINGLE"),Nf("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},DQa=function(a){if(a&1){var b=r();D(0,"div",27)(1,"span");Q(2);F();D(3,"a",30);L("click",function(){t(b);var c=M(4);return v(c.issueEditBuilder.clearVerifier())});
Q(4,"X");F()()}a&2&&(a=M(4),Xf("bv2-invalid-multiple-user-chip",!np(a.issueEditBuilder)),w(2),S(" Multiple ",np(a.issueEditBuilder)?"":"(some unset)"," "))},EQa=function(a){if(a&1){var b=r();D(0,"div",27)(1,"span");Q(2);F();D(3,"a",30);L("click",function(){t(b);var c=M(4);return v(c.issueEditBuilder.clearVerifier())});Q(4,"X");F()()}a&2&&(a=M(4),Xf("bv2-invalid-multiple-user-chip",!np(a.issueEditBuilder)),w(2),S(" Possibly multiple ",np(a.issueEditBuilder)?"":"(some unset)"," "))},FQa=function(a){if(a&
1){var b=r();D(0,"div")(1,"input",31);L("ngModelChange",function(c){t(b);var d=M(4);return v(d.issueEditBuilder.commonVerifier=c)});F()()}a&2&&(a=M(4),w(1),C("ngModel",a.issueEditBuilder.commonVerifier)("required","VERIFIED"==(null==a.issueEditBuilder.issueState?null:a.issueEditBuilder.issueState.status))("bContactAutocomplete","SINGLE"),Nf("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},GQa=function(a){a&1&&(D(0,"div")(1,"div",21)(2,"label",22),Q(3," Assignee "),F(),D(4,"div",15),
P(5,zQa,5,0,"div",23),P(6,AQa,5,0,"div",23),P(7,CQa,2,3,"div",24),F()(),D(8,"div",21)(9,"label",25),Q(10," Verifier "),F(),D(11,"div",15),P(12,DQa,5,3,"div",26),P(13,EQa,5,3,"div",26),P(14,FQa,2,4,"div",24),F()()());a&2&&(a=M(3),w(4),C("ngSwitch",a.issueEditBuilder.selectedAssigneesStatus),w(1),C("ngSwitchCase","MULTIPLE"),w(1),C("ngSwitchCase","POSSIBLY_MULTIPLE"),w(5),C("ngSwitch",a.issueEditBuilder.selectedVerifiersStatus),w(1),C("ngSwitchCase","MULTIPLE"),w(1),C("ngSwitchCase","POSSIBLY_MULTIPLE"))},
HQa=function(a){if(a&1){var b=r();D(0,"div",21)(1,"label",32);Q(2," Issue ID ");F();D(3,"input",33);L("ngModelChange",function(c){t(b);var d=M(3);return v(d.issueEditBuilder.commonDuplicateOf=c.trim())});F()()}a&2&&(a=M(3),w(3),C("ngModel",a.issueEditBuilder.commonDuplicateOf),Nf("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},IQa=function(a,b){a&1&&(D(0,"li"),Q(1),G(2,"b-access-level-indicator",36),F());a&2&&(a=b.$implicit,w(1),S(" ",a.path," "),w(1),C("accessLevel",a.accessLevel))},
JQa=function(a){a&1&&(D(0,"div",34)(1,"div")(2,"strong"),Q(3,"You are editing issues in components that have external viewers:"),F()(),D(4,"ul"),P(5,IQa,3,2,"li",35),F()());a&2&&(a=M(3),w(5),C("ngForOf",a.externalWarnings))},KQa=function(a){if(a&1){var b=r();D(0,"div",9)(1,"button",10)(2,"span");Q(3);F();G(4,"b-icon",11);F();D(5,"mat-menu",null,12)(7,"button",13);L("click",function(){t(b);var d=M(2);return v(d.issueEditBuilder.issueState=void 0)});Q(8,"No change ");F();P(9,yQa,2,2,"button",14);F();
D(10,"div",15);P(11,GQa,15,6,"div",16);P(12,HQa,4,2,"div",17);F();D(13,"div")(14,"b-comment-box",18);L("onSubmit",function(){t(b);var d;null==(d=M(2).matDialogRef)||d.close(!0);return v()});F()();G(15,"div",19);P(16,JQa,6,1,"div",20);F()}if(a&2){var c=N(6);a=M(2);w(1);C("matMenuTriggerFor",c);w(2);jg(a.issueEditBuilder.issueState?a.issueEditBuilder.issueState.displayValue:"No change");w(4);C("disabled",!a.issueEditBuilder.issueState);w(2);C("ngForOf",a.issueStates);w(1);C("ngSwitch",!a.issueEditBuilder.issueState||
"DUPLICATE"!==a.issueEditBuilder.issueState.status);w(1);C("ngSwitchCase",!0);w(3);C("comment",a.comment)("showToolbar",!1);w(2);C("ngIf",0<a.externalWarnings.length)}},LQa=function(a){if(a&1){var b=r();D(0,"div",37)(1,"b-recaptcha",38);L("onUpdate",function(c){t(b);var d=M(2);return v(d.issueEditBuilder.recaptchaResponse=c)});F()()}},NQa=function(a){a&1&&(D(0,"form",null,1)(2,"h1",2),Q(3,"Change issue status"),F(),D(4,"div",3)(5,"span"),Q(6,"Enter updated issue status information below"),F(),P(7,
KQa,17,9,"div",4),F(),P(8,LQa,2,0,"div",5),D(9,"div",6)(10,"button",7),Q(11," Cancel "),F(),D(12,"button",8),Q(13," Save "),F()()());if(a&2){var b=N(1);a=M();w(7);C("ngIf",a.issueEditBuilder);w(1);C("ngIf",a.issueEditBuilder&&a.enableRecaptcha);w(2);C("mat-dialog-close",!1);w(2);var c=C("mat-dialog-close",!0),d;if(!(d=b.invalid))a:{if(null!=a.issueEditBuilder){d=MQa(a.issueEditBuilder);var e=d.get("status");if("DUPLICATE"===e){d=!d.get("duplicateOfIssueId");break a}if("VERIFIED"===e){d=!np(a.issueEditBuilder)&&
!d.get("verifier");break a}}d=!1}c("disabled",d||!(!a.enableRecaptcha||""!==a.issueEditBuilder.recaptchaResponse))}},op=function(a){var b;a=null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel;return"EXTERNAL_PARTNER"===a||"EXTERNAL_PUBLIC"===a},OQa=function(a){var b;return"EXTERNAL_PARTNER"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},pp=function(a){var b;return"EXTERNAL_PUBLIC"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},PQa=function(a,b){return a?
a.join(" > "):String(b)},QQa=function(a){switch(a){case "INTERNAL":return"Google internal (can be made visible to Google FTEs and TVCs)";case "EXTERNAL_PARTNER":return"Google partners (can be made visible to external Google partners)";case "EXTERNAL_PUBLIC":return"Public (can be made visible to anyone with a Google Account)";case "ACCESS_LEVEL_UNSPECIFIED":return"Not specified";default:return""}},RQa=function(a){a&1&&(D(0,"div")(1,"p"),Q(2),F()());a&2&&(a=M(),w(2),kg(" Checking if you have permissions to mark these issues as spam. Checked ",
a.issuesChecked," of ",a.issuesToFlag.length,"... "))},SQa=function(a,b){a&1&&(D(0,"li"),Q(1),F());a&2&&(a=b.$implicit,w(1),kg(" ",a.issueId," - ",a.title," "))},TQa=function(a){a&1&&(D(0,"div")(1,"p"),Q(2),F(),D(3,"ul"),P(4,SQa,2,2,"li",9),F()());a&2&&(a=M(),w(2),S(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),w(2),C("ngForOf",a.protectedIssues))},UQa=function(a){if(a&1){var b=r();D(0,"mat-dialog-content")(1,"mat-form-field")(2,"mat-label");
Q(3);F();D(4,"input",5);L("ngModelChange",function(c){t(b);var d=M();return v(d.numericEstimatedEffort=c)})("keypress",function(c){t(b);var d=M();return v(/^(\d*\.)?\d*$/.test(d.numericEstimatedEffort+c.key))});F()()()}a&2&&(a=M(),w(3),S(" ",a.effortSpecName," "),w(1),C("ngModel",a.numericEstimatedEffort))},VQa=function(a){if(a&1){var b=r();D(0,"div",6)(1,"label");Q(2);F();D(3,"onedev-single-select",7);L("valueChange",function(c){t(b);var d=M();return v(d.currentEnumLabel=c)});F()()}a&2&&(a=M(),w(2),
S(" ",a.effortSpecName," "),w(1),C("value",a.currentEnumLabel)("includeEmptyOption",!0)("options",a.allowedLabels))},$Qa=function(a,b){if(a&1){var c=r();D(0,"div",18,19);L("click",function(){var e=t(c).$implicit,f=M(2);WQa(f,e)||qp(f,e);return v()});D(2,"mat-pseudo-checkbox",20);L("click",function(e){var f=t(c).$implicit,h=M(2);e.stopPropagation();return v(XQa(h,f))});F();D(3,"span");Q(4);F()()}if(a&2){a=b.$implicit;b=b.index;var d=M(2);Wf("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");
Xf("focused",b===d.focusedRowIndex);hg("title",a.name);Nf("id","hotlist-item-"+a.hotlistId)("aria-checked",YQa(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",WQa(d,a));w(2);C("state",ZQa(d.selectedHotlistMap[a.hotlistId]))("disabled",WQa(d,a));w(2);S(" ",a.name," ")}},aRa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(2),w(1),S(" (",a.filterText,")"))},bRa=function(a){if(a&1){var b=r();D(0,"div",21,22);L("click",function(){t(b);var c=M(2);return v(c.loadHotlist())})("keydown.enter",function(){t(b);
var c=M(2);return v(c.loadHotlist())});Q(2,"Load hotlist from id ");D(3,"span");Q(4);F()()}a&2&&(a=M(2),Xf("focused",a.focusedRowIndex===a.choices.length+1),Nf("aria-label","Load hotlist from"+a.filterText),w(4),S("(",a.filterText,")"))},dRa=function(a){if(a&1){var b=r();D(0,"div",23,24);L("click",function(){t(b);var c=M(2);return v(cRa(c))})("keydown.enter",function(){t(b);var c=M(2);return v(cRa(c))});Q(2,"Apply");F()}a&2&&(a=M(2),Xf("focused",a.focusedRowIndex===a.choices.length+2))},eRa=function(a){if(a&
1){var b=r();D(0,"div",5)(1,"div",10,11);P(3,$Qa,5,11,"div",12);F()();G(4,"mat-divider");D(5,"div",13,14);L("click",function(){t(b);var c=M();return v(c.createHotlist())})("keydown.enter",function(){t(b);var c=M();return v(c.createHotlist())});Q(7,"Create new hotlist ");P(8,aRa,2,1,"span",15);F();P(9,bRa,5,4,"div",16);P(10,dRa,3,2,"div",17)}a&2&&(a=M(),w(3),C("ngForOf",a.choices),w(2),Xf("focused",a.focusedRowIndex===a.choices.length),C("disabled",!a.canCreate),Nf("aria-label","Create new hotlist"+
a.filterText),w(3),C("ngIf",!!a.filterText),w(1),C("ngIf",a.canLoad),w(1),C("ngIf",a.pendingChanges))},fRa=function(){return xd.apply(0,arguments).filter(Boolean).join(" AND ")},rp=function(a,b,c){c=void 0===c?!1:c;if(!b)return"";Array.isArray(b)||(b=[b]);b=b.filter(cl);return 0===b.length?"":a+":("+b.join("|")+")"+(c?"+":"")},gRa=function(a){a&1&&G(0,"div",2)},hRa=function(a){a&1&&(I(0),fg(1),K())},iRa=function(a){a&1&&G(0,"b-formatted-date-time",3);a&2&&(a=M(),C("mode",a.mode)("timestamp",a.createdTime))},
jRa=function(a){a&1&&Q(0,"--")},kRa=function(a){a&1&&G(0,"mat-icon",3)},lRa=function(a){a&1&&(D(0,"span",25),Q(1),F());a&2&&(a=M(3),w(1),jg(a.HOTKEYS.COPY_ISSUE_ID.displayAs))},mRa=function(a){a&1&&(D(0,"span",25),Q(1),F());a&2&&(a=M(4),w(1),jg(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs))},nRa=function(a){if(a&1){var b=r();D(0,"div",11)(1,"label",12);Q(2,"Issue shortlink");F();D(3,"input",26,27);L("onHotkey",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))})("focus",function(){t(b);var d=N(4);return v(d.select())});
F();P(5,mRa,2,1,"span",15);D(6,"button",28);L("onHotkey",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))})("click",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))});G(7,"mat-icon",17);F()()}if(a&2){var c=N(4);a=M(3);w(1);C("htmlFor",c.id);w(2);C("hotkey",a.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",a.enableHotkeys);Nf("value",a.getAppBaseUrl().replace(/^.*?:\/\//,""));w(2);C("ngIf",a.enableHotkeys);w(1);C("hotkey",a.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",a.enableHotkeys)}},oRa=function(a){a&
1&&(D(0,"span",25),Q(1),F());a&2&&(a=M(3),w(1),jg(a.HOTKEYS.COPY_ISSUE_URL.displayAs))},pRa=function(a){a&1&&(D(0,"span",25),Q(1),F());a&2&&(a=M(3),w(1),jg(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs))},qRa=function(a){a&1&&(D(0,"span",25),Q(1),F());a&2&&(a=M(4),w(1),jg(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs))},sRa=function(a){if(a&1){var b=r();D(0,"div",11)(1,"label",12);Q(2,"Issue email");F();D(3,"input",29,30);L("onHotkey",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))})("focus",function(){t(b);
var d=N(4);return v(d.select())});F();P(5,qRa,2,1,"span",15);D(6,"button",31);L("onHotkey",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))})("click",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))});G(7,"mat-icon",17);F()()}if(a&2){var c=N(4);a=M(3);w(1);C("htmlFor",c.id);w(2);C("hotkey",a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",a.enableHotkeys);Nf("value","buganizer-system"+(rRa(a.activeSession)?"":"-qa")+("+"+a.componentId+"+"+a.issueId)+"@google.com");w(2);C("ngIf",a.enableHotkeys);
w(1);C("hotkey",a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",a.enableHotkeys)}},tRa=function(a){a&1&&(D(0,"span",25),Q(1),F());a&2&&(a=M(4),w(1),jg(a.HOTKEYS.COPY_ISSUE_TODO.displayAs))},uRa=function(a){if(a&1){var b=r();D(0,"div",11)(1,"label",12);Q(2,"TODO comment");F();D(3,"input",32,33);L("onHotkey",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))})("focus",function(){t(b);var d=N(4);return v(d.select())});F();P(5,tRa,2,1,"span",15);D(6,"button",34);L("onHotkey",function(){t(b);var d=
N(4),e=M(3);return v(sp(e,d))})("click",function(){t(b);var d=N(4),e=M(3);return v(sp(e,d))});G(7,"mat-icon",17);F()()}if(a&2){var c=N(4);a=M(3);w(1);C("htmlFor",c.id);w(2);C("hotkey",a.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",a.enableHotkeys);Nf("value","TODO("+a.getAppBaseUrl().replace(/^.*?:\/\//,"")+"): "+a.issueTitle);w(2);C("ngIf",a.enableHotkeys);w(1);C("hotkey",a.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",a.enableHotkeys)}},vRa=function(a){if(a&1){var b=r();D(0,"div",10)(1,"div",11)(2,"label",
12);Q(3,"Issue ID");F();D(4,"input",13,14);L("onHotkey",function(){t(b);var f=N(5),h=M(2);return v(sp(h,f))})("focus",function(){t(b);var f=N(5);return v(f.select())});F();P(6,lRa,2,1,"span",15);D(7,"button",16);L("onHotkey",function(){t(b);var f=N(5),h=M(2);return v(sp(h,f))})("click",function(){t(b);var f=N(5),h=M(2);return v(sp(h,f))});G(8,"mat-icon",17);F()();P(9,nRa,8,7,"div",18);D(10,"div",11)(11,"label",12);Q(12,"Issue URL");F();D(13,"input",19,20);L("onHotkey",function(){t(b);var f=N(14),
h=M(2);return v(sp(h,f))})("focus",function(){t(b);var f=N(14);return v(f.select())});F();P(15,oRa,2,1,"span",15);D(16,"button",21);L("onHotkey",function(){t(b);var f=N(14),h=M(2);return v(sp(h,f))})("click",function(){t(b);var f=N(14),h=M(2);return v(sp(h,f))});G(17,"mat-icon",17);F()();D(18,"div",11)(19,"label",12);Q(20,"URL and title");F();D(21,"input",22,23);L("onHotkey",function(){t(b);var f=N(22),h=M(2);return v(sp(h,f))})("focus",function(){t(b);var f=N(22);return v(f.select())});F();P(23,
pRa,2,1,"span",15);D(24,"button",24);L("onHotkey",function(){t(b);var f=N(22),h=M(2);return v(sp(h,f))})("click",function(){t(b);var f=N(22),h=M(2);return v(sp(h,f))});G(25,"mat-icon",17);F()();P(26,sRa,8,7,"div",18);P(27,uRa,8,7,"div",18);F()}if(a&2){var c=N(5),d=N(14),e=N(22);a=M(2);C("cdkTrapFocusAutoCapture",!0);w(2);C("htmlFor",c.id);w(2);C("hotkey",a.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",a.enableHotkeys);Nf("value",a.issueId);w(2);C("ngIf",a.enableHotkeys);w(1);C("hotkey",a.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",
a.enableHotkeys);w(2);C("ngIf",a.activeSession.isInternalSession()&&!a.currentTracker.inTracker);w(2);C("htmlFor",d.id);w(2);C("hotkey",a.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",a.enableHotkeys);Nf("value",a.getIssueUrl());w(2);C("ngIf",a.enableHotkeys);w(1);C("hotkey",a.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",a.enableHotkeys);w(3);C("htmlFor",e.id);w(2);C("hotkey",a.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",a.enableHotkeys);Nf("value",a.getAppBaseUrl(a.isExternalIssue)+" "+a.issueTitle);w(2);C("ngIf",
a.enableHotkeys);w(1);C("hotkey",a.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",a.enableHotkeys);w(2);C("ngIf",a.activeSession.isInternalSession()&&!a.currentTracker.inTracker);w(1);C("ngIf",a.activeSession.isInternalSession()&&!a.currentTracker.inTracker)}},wRa=function(a){if(a&1){var b=r();I(0);D(1,"button",4,5);L("onHotkey",function(){t(b);var d=M();d.disabled||d.trigger.open();return v()})("onedevPopupPanelTriggerOpened",function(){t(b);var d=M();return v(d.isOpen=!0)})("onedevPopupPanelTriggerClosed",
function(){t(b);var d=M();return v(d.isOpen=!1)})("click",function(){t(b);var d=M();d.disabled||d.trigger.open();return v()});G(3,"mat-icon",6);F();D(4,"onedev-popup-panel",7,8);P(6,vRa,28,25,"div",9);F();K()}if(a&2){var c=N(5);a=M();w(1);C("onedevPopupPanelTriggerFor",c)("hotkey",a.HOTKEYS.HIGHLIGHT_ISSUE_ID)("hotkeyEnabled",a.enableHotkeys);Nf("aria-label","Show links for the issue "+a.issueId);w(5);C("ngIf",a.isOpen)}},xRa=function(a){a&1&&G(0,"b-issue-id-picker",2);a&2&&(a=M(),C("issueId",a.id)("showCopyOptions",
!1))},yRa=function(a){a&1&&(I(0),G(1,"b-issue-priority-display",3),K());a&2&&(a=M(),w(1),C("issuePriority",a.priority))},zRa=function(a){a&1&&Q(0,"--")},ARa=function(a,b){a&1&&(D(0,"div",3),Q(1),F());a&2&&(a=b.$implicit,b=M(),$f("chippy status-",a,""),C("title",b.STATUS_JS_FULL_TEXT[a]),w(1),S(" ",b.STATUS_JS_TERSE[a]," "))},BRa=function(a){a&1&&Q(0,"--")},CRa=function(a){if(a&1){var b=r();I(0);D(1,"span",4);Q(2);F();D(3,"a",5);L("keydown",function(c){t(b);M();"Enter"===c.key&&c.stopPropagation();
return v()})("click",function(c){return c.stopPropagation()});G(4,"mat-icon",6);F();K()}a&2&&(a=M(),w(2),jg(a.title||"--"),w(1),C("routerLink","/"+a.link)("target",a.anchorTarget))},DRa=function(a){if(a&1){var b=r();D(0,"a",7);L("keydown",function(c){t(b);M();"Enter"===c.key&&c.stopPropagation();return v()})("click",function(c){return c.stopPropagation()});Q(1);F()}a&2&&(a=M(),C("routerLink","/"+a.link)("target",a.anchorTarget),w(1),jg(a.title||"--"))},ERa=function(a){var b=a.getName(),c,d=l(null!=
(c=b.match(/components\/(\d+)\/recommendationSettings/))?c:[]);d.next();c=d.next().value;c=al(Xk(c));if(!c)throw Error("Td`"+b);return{componentId:c,duplicateAssistanceEnabled:Ri(a,2),optedOutFromDataCollection:Ri(a,4),showSettings:Ri(a,3)}},HRa=function(a){var b=(new tp).setParent(a.parent);a=a.userEngagement;var c=(new up).setType(FRa[a.type]);void 0!==a.rejectionReason&&rj(c,3,GRa[a.rejectionReason]);return oj(b,up,2,c)},LRa=function(a){var b=void 0;switch(Bl(a,IRa)){case 9:b={recommendedIssue:en(Fl(a,
Cm,9,IRa))}}return{name:a.getName(),source:a.getSource(),resource:a.getResource(),type:JRa[a.getType()],recommendation:Hi(a,5),score:a.getScore(),confidence:KRa[Vi(a,7,0)],createTime:jl(Fi(a,gj,8)),content:b}},NRa=function(a){return{recommendations:Ji(a,MRa,1).map(LRa),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},ORa=function(a){if(!a)return{left:"0",width:"0"};if(a.classList.contains("mat-tab-link")){var b=window.getComputedStyle(a),c=b.paddingLeft?Number(b.paddingLeft.replace("px",
""))||0:0;b=b.paddingRight?Number(b.paddingRight.replace("px",""))||0:0;return{left:a.offsetLeft+c+2+"px",width:a.offsetWidth-c-b-4+"px"}}b=a.querySelector(".mat-tab-label-content");if(!b)return{left:a.offsetLeft+2+"px",width:a.offsetWidth-4+"px"};c=a.offsetWidth;b=Math.min(Math.max(b.offsetWidth-4,24),c-4);return{left:a.offsetLeft+c/2-b/2+"px",width:b+"px"}},PRa=function(a){return void 0===a||null===a?[]:Object.keys(a).filter(function(b){return a.hasOwnProperty(b)})},QRa=function(){return{color:"accent"}},
RRa=function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._sticky=!1;c._hasStickyChanged=!1;return c};W(b,a);b.prototype.hasStickyChanged=function(){var c=this._hasStickyChanged;this._hasStickyChanged=!1;return c};b.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};Qh.Object.defineProperties(b.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(c){var d=this._sticky;this._sticky=ah(c);this._hasStickyChanged=
d!==this._sticky}}});return b},SRa=function(a,b){return a.concat(Array.from(b))},TRa=function(){},URa=function(a){a&1&&P(0,TRa,0,0,"ng-template")},WRa=function(a){a&1&&(I(0),P(1,URa,1,0,null,19),K());if(a&2){a=M().xapLet;var b=M(2),c=N(19);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(2,VRa,a,b.TABS.SIMILAR_ISSUES))}},XRa=function(a){a&1&&(I(0),P(1,WRa,2,5,"ng-container",18),K());if(a&2){M();var b=N(1);w(1);C("ngIf",b.isActive)}},YRa=function(a){a&1&&(D(0,"mat-tab",15,16),P(2,XRa,2,1,
"ng-container",17),T(3,"async"),F());a&2&&(a=M(),w(2),C("xapLet",V(3,1,a.similarIssues$)))},ZRa=function(){},$Ra=function(a){a&1&&P(0,ZRa,0,0,"ng-template")},aSa=function(a){a&1&&(I(0),P(1,$Ra,1,0,null,19),K());if(a&2){a=M().xapLet;var b=M(2),c=N(19);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(2,VRa,a,b.TABS.SEARCH_RESULTS))}},bSa=function(a){a&1&&(I(0),P(1,aSa,2,5,"ng-container",18),K());if(a&2){M();var b=N(1);w(1);C("ngIf",b.isActive)}},cSa=function(a){a&1&&(D(0,"mat-tab",20,16),P(2,
bSa,2,1,"ng-container",17),T(3,"async"),F());a&2&&(a=M(),w(2),C("xapLet",V(3,1,a.searchResults$)))},dSa=function(){},eSa=function(a){a&1&&P(0,dSa,0,0,"ng-template")},fSa=function(a){a&1&&(I(0),P(1,eSa,1,0,null,19),K());if(a&2){a=M().xapLet;var b=M(2),c=N(19);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(2,VRa,a,b.TABS.ISSUE_IDS))}},gSa=function(a){a&1&&(I(0),P(1,fSa,2,5,"ng-container",18),K());if(a&2){M();var b=N(1);w(1);C("ngIf",b.isActive)}},hSa=function(a){a&1&&(D(0,"mat-tab",21,16),
P(2,gSa,2,1,"ng-container",17),T(3,"async"),F());a&2&&(a=M(),w(2),C("xapLet",V(3,1,a.issuesWithIdMatches$)))},iSa=function(a){a&1&&(D(0,"th",43)(1,"span",44),Q(2,"Selection"),F()())},jSa=function(a,b){a&1&&(D(0,"td",45),G(1,"mat-radio-button",46),T(2,"async"),F());a&2&&(a=b.$implicit,b=M(3),w(1),C("checked",V(2,3,vp(b.selectedIssues,a.issueId)))("aria-label",a.snapshot[0].title)("value",a.issueId))},kSa=function(a){a&1&&(D(0,"th",43),Q(1," Title "),F())},lSa=function(a,b){a&1&&(D(0,"td",45),G(1,"b-issue-title-cell",
47),F());a&2&&(a=b.$implicit,b=M(3),w(1),C("issue",a)("issueUrlFactory",b.issueUrlFactory)("useButtonToNavigate",!0))},mSa=function(a){a&1&&(D(0,"th",43),Q(1," Id "),F())},nSa=function(a,b){a&1&&(D(0,"td",45),G(1,"b-issue-id-cell",48),F());a&2&&(a=b.$implicit,w(1),C("id",a.issueId))},oSa=function(a){a&1&&(D(0,"th",43),Q(1," Priority "),F())},pSa=function(a,b){a&1&&(D(0,"td",45),G(1,"b-issue-priority-cell",49),F());a&2&&(a=b.$implicit,w(1),C("issue",a))},qSa=function(a){a&1&&(D(0,"th",50),Q(1," Status "),
F())},rSa=function(a,b){a&1&&(D(0,"td",45),G(1,"b-issue-status-cell",49),F());a&2&&(a=b.$implicit,w(1),C("issue",a))},sSa=function(a){a&1&&(D(0,"th",43),Q(1," Dupes "),F())},tSa=function(a,b){a&1&&(D(0,"td",51),Q(1),F());if(a&2){a=b.$implicit;var c;w(1);S(" ",null!==(c=null==a.snapshot[0].duplicateIssueId?null:a.snapshot[0].duplicateIssueId.length)&&void 0!==c?c:0," ")}},uSa=function(a){a&1&&(D(0,"th",52)(1,"span",44),Q(2,"Votes"),F(),G(3,"mat-icon",53),F())},vSa=function(a,b){a&1&&(D(0,"td",51),
Q(1),F());a&2&&(a=b.$implicit,w(1),S(" ",a.aggregatedData.voteCount," "))},wSa=function(a){a&1&&(D(0,"th",54),Q(1," Created "),F())},xSa=function(a,b){a&1&&(D(0,"td",45),G(1,"b-issue-created-time-cell",55),F());a&2&&(a=b.$implicit,w(1),C("issue",a))},ySa=function(a){a&1&&G(0,"tr",56)},zSa=function(a,b){if(a&1){var c=r();D(0,"tr",57);L("keydown",function(d){var e=t(c),f=e.index;e=e.$implicit;var h=M(3);return v(h.onRowKeydown(f,e,d))})("keydown.enter",function(){var d=t(c).$implicit,e=M(2).tab,f=M();
return v(f.selectIssue(d.issueId,e))})("focusin",function(){var d=t(c).$implicit,e=M(3);return v(wp(e.focusManager,d))})("click",function(){var d=t(c),e=d.$implicit;d=d.index;var f=M(2).tab,h=M();h.selectIssue(e.issueId,f);return v(h.focusManager.setActiveItem(d))});F()}a&2&&C("row",b.$implicit)},BSa=function(a){if(a&1){var b=r();D(0,"table",25);L("contentChanged",function(){t(b);var d=M().issues,e=M();return v(ASa(e,d))});I(1,26);P(2,iSa,3,0,"th",27);D(3,"mat-radio-group",28);L("change",function(d){t(b);
var e=M().tab,f=M();return v(f.selectIssue(d.value,e))});P(4,jSa,3,5,"td",29);F();K();I(5,30);P(6,kSa,2,0,"th",27);P(7,lSa,2,3,"td",29);K();I(8,31);P(9,mSa,2,0,"th",27);P(10,nSa,2,1,"td",29);K();I(11,32);P(12,oSa,2,0,"th",27);P(13,pSa,2,1,"td",29);K();I(14,33);P(15,qSa,2,0,"th",34);P(16,rSa,2,1,"td",29);K();I(17,35);P(18,sSa,2,0,"th",27);P(19,tSa,2,1,"td",36);K();I(20,37);P(21,uSa,4,0,"th",38);P(22,vSa,2,1,"td",36);K();I(23,39);P(24,wSa,2,0,"th",40);P(25,xSa,2,1,"td",29);K();P(26,ySa,1,0,"tr",41);
P(27,zSa,1,1,"tr",42);F()}if(a&2){a=M().issues;var c=M();C("dataSource",a)("trackBy",c.trackByIssueId);w(26);C("matHeaderRowDef",c.tableColumns);w(1);C("matRowDefColumns",c.tableColumns)}},CSa=function(a){a&1&&(D(0,"div",58),G(1,"b-spinner",59),F())},DSa=function(a){a&1&&(D(0,"div",58)(1,"span",60),Q(2,"No results found"),F()())},ESa=function(a,b){a&1&&(D(0,"div",22),P(1,BSa,28,4,"table",23),P(2,CSa,2,0,"div",24),P(3,DSa,3,0,"div",24),F());a&2&&(a=b.issues,w(1),C("ngIf",a&&a.length),w(1),C("ngIf",
!a),w(1),C("ngIf",0===(null==a?null:a.length)))},FSa=function(a){if(a&1){var b=r();D(0,"button",4);L("click",function(c){t(b);M().expansionChange.emit();c.stopPropagation();return v()});G(1,"b-icon",5);F()}a&2&&(a=M(),Xf("collapsed",!a.expanded),Nf("aria-label",a.expanded?"Collapse children":"Expand children"))},GSa=function(a){a&1&&G(0,"div",6)},HSa=function(a){a&1&&(D(0,"b-person-hovercard",3),Q(1),F());a&2&&(a=M(),C("email",a.assignee),w(1),S(" ",a.assignee," "))},ISa=function(a){a&1&&Q(0,"--")},
JSa=function(a){a&1&&G(0,"b-team-display",3);a&2&&(a=M(),C("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},KSa=function(a){a&1&&Q(0,"--")},LSa=function(a){a&1&&(I(0),Q(1),T(2,"enumToHuman"),K());a&2&&(a=M(),w(1),jg(V(2,1,a.type)))},MSa=function(a){a&1&&Q(0,"--")},NSa=function(a){a&1&&(D(0,"b-person-hovercard",3),Q(1),F());a&2&&(a=M(),C("email",a.reporter),w(1),S(" ",a.reporter," "))},OSa=function(a){a&1&&Q(0,"--")},PSa=function(a){a&1&&(I(0),Q(1,"Un-"),K())},QSa=function(a){a&
1&&(D(0,"span"),Q(1," Assigned to "),G(2,"b-user-display",16),F());a&2&&(a=M(2).ngIf,w(2),C("model",a.assigneeUser)("hovercardEnabled",!1))},RSa=function(a){a&1&&(D(0,"span"),Q(1," Accepted by "),G(2,"b-user-display",16),F());a&2&&(a=M(2).ngIf,w(2),C("model",a.assigneeUser)("hovercardEnabled",!1))},SSa=function(a){a&1&&(D(0,"span"),Q(1," Duplicate of "),D(2,"a",3),Q(3),F()());if(a&2){a=M(2).ngIf;var b=M(),c;w(2);Pf("aria-label","Go to issue ",a.duplicateOfIssueId,"");C("href",b.editIssue(null!==(c=
a.duplicateOfIssueId)&&void 0!==c?c:void 0),re);w(1);S(" ",a.duplicateOfIssueId," ")}},TSa=function(a){a&1&&(D(0,"span"),Q(1),F());if(a&2){a=M().ngIf;var b=M(2);w(1);S(" ",b.STATUS_JS_FULL_TEXT[a]," ")}},USa=function(a,b){a&1&&(I(0,13),P(1,QSa,3,2,"span",14),P(2,RSa,3,2,"span",14),P(3,SSa,4,3,"span",14),P(4,TSa,2,1,"span",15),K());a&2&&(C("ngSwitch",b.ngIf),w(1),C("ngSwitchCase","ASSIGNED"),w(1),C("ngSwitchCase","ACCEPTED"),w(1),C("ngSwitchCase","DUPLICATE"))},VSa=function(a,b){a&1&&(I(0),G(1,"b-app-vote-button",
17),K());if(a&2){a=b.ngIf;b=M().ngIf;var c=M(2),d;w(1);C("issueId",c.issueId)("voteCount",b.voteCount)("upvoted",null!==(d=a.voted)&&void 0!==d?d:!1)}},WSa=function(a){a&1&&(I(0),P(1,VSa,2,3,"ng-container",1),K());a&2&&(a=M(2),w(1),C("ngIf",a.issue.userData))},YSa=function(a){if(a&1){var b=r();I(0);D(1,"button",18);L("click",function(){t(b);var c=M(2);return v(XSa(c,c.childContextId))});Q(2," Unlink parent ");F();K()}},ZSa=function(a,b){a&1&&(D(0,"li"),Q(1," Last updated by "),G(2,"b-user-display",
16),Q(3," on: "),G(4,"b-formatted-date-time",19),F());a&2&&(a=b.ngIf,b=M().ngIf,w(2),C("model",a)("hovercardEnabled",!1),w(2),C("timestamp",b.modifiedTimeMicros/1E3))},$Sa=function(a,b){a&1&&(I(0),P(1,ZSa,5,3,"li",1),D(2,"li"),Q(3," Reported by "),G(4,"b-user-display",16),Q(5," on: "),G(6,"b-formatted-date-time",19),F(),K());a&2&&(a=b.ngIf,b=M().ngIf,w(1),C("ngIf",a.lastModifier),w(3),C("model",b.reporterUser)("hovercardEnabled",!1),w(2),C("timestamp",a.createdTimeMicros/1E3))},aTa=function(a){a&
1&&(D(0,"li",20),G(1,"b-note-container",21),F());if(a&2){a=M(2);var b;w(1);C("issueId",a.issueId)("issueAccessLevel",null==a.issue.accessLimit?null:a.issue.accessLimit.accessLevel)("formattingMode",null!==(b=a.firstEvent.formattingMode)&&void 0!==b?b:a.FormattingMode.UNSPECIFIED_FORMATTING_MODE)("note",a.getNote())}},dTa=function(a,b){if(a&1){var c=r();I(0);D(1,"div",2)(2,"h3")(3,"a",3);Q(4);F();Q(5," \u00a0 ");D(6,"span",4);Q(7);F()();D(8,"ul")(9,"li",5);G(10,"b-access-level-indicator",6);F();D(11,
"li",7)(12,"span",8);Q(13);F();Q(14," \u00a0 ");P(15,USa,5,4,"ng-container",9);F()();D(16,"div",10)(17,"b-cc-button",11);L("onCc",function(f){t(c);var h=M();h.location&&f&&h.analytics.trackEvent(h.location+"_"+xp.ISSUE_CARD,"add","CC");return v()});F();P(18,WSa,2,1,"ng-container",1);P(19,YSa,3,0,"ng-container",1);F();D(20,"ul");P(21,$Sa,7,4,"ng-container",1);P(22,aTa,2,4,"li",12);F()();K()}if(a&2){a=b.ngIf;b=M();var d,e;w(3);Pf("aria-label","Go to issue ",b.issueId,"");C("href",b.editIssue(b.issueId),
re);w(1);jg(b.issueId);w(3);jg(a.title);w(3);C("labelOnlyMode",!0)("accessLevel",null==b.issue.accessLimit?null:b.issue.accessLimit.accessLevel);w(2);C("ngClass",b.priorityClass(a.priority));w(1);jg(b.ISSUE_PRIORITY_TEXT_JS[null!==(d=a.priority)&&void 0!==d?d:b.ISSUE_PRIORITY_ENUM.PRIORITY_UNSPECIFIED]);w(2);C("ngIf",a.status);w(2);C("issueId",b.issueId)("ccState",bTa(b,null!==(e=a.ccUsers)&&void 0!==e?e:ng(15,cTa)));w(1);C("ngIf",b.issue.aggregatedData);w(1);C("ngIf",b.childContextId);w(2);C("ngIf",
b.issue.aggregatedData);w(1);C("ngIf",b.firstEvent.unlinkifiedComment)}},eTa=function(a){a&1&&(D(0,"div")(1,"div",9),Q(2," An issue cannot reference itself. "),F()())},fTa=function(a){a&1&&(D(0,"mat-option",10)(1,"div",11),G(2,"b-spinner",12),F()());a&2&&(w(2),C("large",!0))},gTa=function(a){a&1&&(D(0,"mat-option",13),Q(1," No issues found. "),F())},hTa=function(a){a&1&&G(0,"mat-icon",24);if(a&2){a=M().$implicit;var b=M();C("svgIcon",b.STATUS_ICON[a.status])}},iTa=function(a){a&1&&G(0,"b-issue-card",
25,26);if(a&2){var b=N(1);a=M().$implicit;C("onedevIsHovercardReady",b.init)("issueId",a.resourceId)}},kTa=function(a,b){a&1&&(D(0,"mat-option",14)(1,"div",15),P(2,hTa,1,1,"mat-icon",16),D(3,"strong",17),Q(4),F(),D(5,"onedev-hovercard",null,18),P(7,iTa,2,2,"b-issue-card",19),F(),D(8,"a",20),L("click",function(d){return d.stopPropagation()}),G(9,"mat-icon",21),F(),D(10,"span",22),Q(11),F(),G(12,"div",23),T(13,"boldPrefixMatches"),F()());if(a&2){a=b.$implicit;var c=N(6);b=M();C("value",a);w(1);Nf("aria-label",
a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");w(1);C("ngIf",a.status);w(1);hg("title",a.resourceId);w(1);S(" ",a.resourceId," ");w(4);C("onedevHovercardTrigger",c)("href",b.getIssueLink(a),re);w(3);jg(jTa(a));w(1);hg("title",a.displayText);C("innerHTML",rg(13,10,a.displayText,b.query),qe)}},lTa=function(a,b){a&1&&(D(0,"a",13),Q(1),F());a&2&&(a=b.$implicit,b=b.last,gg("href","issues/",a.resourceId,"",re),w(1),kg(" ",a.resourceId,"",b?"":","," "))},mTa=function(a){a&
1&&(D(0,"div",11),P(1,lTa,2,3,"a",12),F());a&2&&(a=M(),w(1),C("ngForOf",a.selectedIssues))},nTa=function(a){a&1&&(D(0,"div",11)(1,"a",14)(2,"span",15),Q(3),F(),D(4,"span"),G(5,"mat-icon",16),F()()());a&2&&(a=M(),w(1),gg("href","issues/",a.selectedIssues[0].resourceId,"",re),w(2),S(" ",a.selectedIssues[0].displayText," "))},pTa=function(a){if(a&1){var b=r();D(0,"div",17)(1,"div",18);L("click",function(){t(b);var c=M();return v(oTa(c))})("keyup.space",function(){t(b);var c=M();return v(oTa(c))});F()()}a&
2&&(a=M(),w(1),C("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),Nf("aria-checked",a.isQueryRestricted))},rTa=function(a){if(a&1){var b=r();D(0,"b-app-bar-bulk-edit-menus",6);L("onBulkEdit",function(d){t(b);var e=M();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){t(b);var e=M();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){t(b);var e=M();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",
function(){t(b);var d=M();return v(d.bulkMarkIssueRead())});T(1,"async");F()}if(a&2){a=M();var c;C("readStatePrompt",qTa(a))("enableBulkEstimatedEffortOption",null!==(c=V(1,2,a.enableBulkEstimatedEffortOption$))&&void 0!==c?c:!1)}},vTa=function(a){if(a&1){var b=r();D(0,"b-copy-issue-id-button",7);L("onClickCopyIssueIds",function(){t(b);var c=M();return v(sTa(c.copyIssueIdService,yp(c)))})("onClickCopyIssueShortLinks",function(){t(b);var c=M();return v(tTa(c.copyIssueIdService,yp(c)))})("onClickCopyAsIssueSearch",
function(){t(b);var c=M();return v(uTa(c.copyIssueIdService,yp(c)))});F()}a&2&&(a=M(),C("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},wTa=function(a){if(a&1){var b=r();D(0,"div",8)(1,"b-hotlist-picker",9);L("onApply",function(c){t(b);var d=M();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){t(b);var d=M();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){t(b);var d=M();return v(d.onLoadHotlist.emit(c))});
F()()}a&2&&(a=M(),w(1),C("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},yTa=function(a){if(a&1){var b=r();D(0,"b-comment-box",16);L("commentChange",function(c){t(b);var d=M(2);return v(d.comment=c)})("onSubmit",function(){t(b);var c=M(2);return v(xTa(c))});F()}a&2&&(a=M(2),C("comment",a.comment)("showToolbar",!1))},zTa=function(a,b){a&1&&(D(0,"li"),Q(1),G(2,"b-access-level-indicator",19),F());a&2&&(a=b.$implicit,w(1),S(" ",a.path," "),w(1),C("accessLevel",a.accessLevel))},ATa=
function(a){a&1&&(D(0,"div",17)(1,"div")(2,"strong"),Q(3,"You are commenting on issues in components that have external viewers:"),F()(),D(4,"ul"),P(5,zTa,3,2,"li",18),F()());a&2&&(a=M(2),w(5),C("ngForOf",a.externalWarnings))},BTa=function(a){if(a&1){var b=r();D(0,"div",20)(1,"b-recaptcha",21);L("onUpdate",function(c){t(b);var d=M(2);return v(d.recaptchaResponse=c)});F()()}},CTa=function(a){a&1&&(D(0,"h1",10),Q(1,"Add comment"),F(),D(2,"mat-dialog-content"),P(3,yTa,1,2,"b-comment-box",11),P(4,ATa,
6,1,"div",12),F(),P(5,BTa,2,0,"div",13),D(6,"mat-dialog-actions")(7,"button",14),Q(8," Cancel "),F(),D(9,"button",15),Q(10," Save "),F()());a&2&&(a=M(),w(3),C("ngIf",a.comment),w(1),C("ngIf",0<a.externalWarnings.length),w(1),C("ngIf",a.enableRecaptcha),w(2),C("mat-dialog-close",!1),w(2),C("disabled",a.enableRecaptcha&&""===a.recaptchaResponse)("mat-dialog-close",!0))},DTa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Ap=function(a,b){b=void 0===b?{}:b;
return null==b.id?"":zp(a,b)},zp=function(a,b){var c=b=void 0===b?{}:b;b=c.params;c=c.tab;b&&(a=eua(a,b));c&&(a=a+"#"+c);return a},ETa=function(a){if(a&1){var b=r();D(0,"button",7);L("click",function(){t(b);var c=M(2);return v(c.removeHotlist.emit())});G(1,"mat-icon",8);F()}a&2&&(a=M(2),Xf("invisible",a.disabled),Nf("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},FTa=function(a){a&1&&(I(0),D(1,"span",1)(2,"span",2)(3,"a",3),Q(4),F()(),P(5,ETa,2,4,"button",4),F(),D(6,
"onedev-hovercard",null,5),G(8,"b-hotlist-card",6),F(),K());if(a&2){var b=N(7);a=M();w(1);Wf("padding-right",a.removable?0:"10px");Xf("muted",a.disabled);C("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);w(2);C("href",a.pathBuilder.viewHotlist(a.hotlist.hotlistId),re);Nf("aria-label",a.getAriaLabel(a.hotlist));w(1);jg(a.hotlist.name);w(1);C("ngIf",a.removable);w(3);C("hotlist",a.hotlist)}},HTa=function(a){for(var b=l(GTa),c=b.next();!c.done;c=b.next())if(c=c.value,c.accessLevel===
a)return c.title;return Bp.title},ITa=function(a){a&1&&G(0,"mat-icon",10);a&2&&(a=M(),C("matTooltip",a.disabledDropdownTooltip))},JTa=function(a,b){if(a&1){var c=r();D(0,"button",11);L("click",function(){var d=t(c).$implicit,e=M();e.selectedDisplay$.next(d);e.updatedAccessLimitLevel.emit(d.accessLevel);return v()});D(1,"div",12);G(2,"mat-icon",13);D(3,"span",14);Q(4);F()();D(5,"div",15);Q(6);F()()}a&2&&(a=b.$implicit,b=M(),w(2),C("svgIcon",a.icon),w(2),S(" ",a.title," "),w(2),S(" ",b.implicitAccessEnabled?
a.descriptionWithExpandedAccess:a.descriptionNoExpandedAccess," "))},KTa=function(a){a&1&&(D(0,"span"),Q(1,"Edit"),F())},LTa=function(a){a&1&&(D(0,"span"),Q(1,"Cancel"),F())},RTa=function(a){if(a&1){var b=r();I(0);D(1,"td")(2,"div")(3,"div",11);Q(4);F();D(5,"div",12)(6,"a",13);Q(7);F()()()();D(8,"td",3)(9,"mat-radio-button",14);L("change",function(d){t(b);var e=M(2);return v(MTa(e,d.value))});F()();D(10,"td",3)(11,"b-button",15);L("onAction",function(){t(b);var d=M().$implicit,e=M();return v(NTa(e,
d))});P(12,KTa,2,0,"span",9);P(13,LTa,2,0,"span",9);F()();D(14,"td",3)(15,"b-button",16);L("onAction",function(){t(b);var d=M().$implicit,e=M();return v(OTa(e,d))});Q(16," Delete ");F()();K()}if(a&2){a=M().$implicit;var c=M();w(3);Xf("selected",PTa(c,a));w(1);S(" ",a.name," ");w(2);C("href",QTa(c,a),re);Nf("aria-label",a.name+"- Click to create a new issue");w(1);S(" ",QTa(c,a)," ");w(2);gg("id","template-default-radio-",a.index,"");C("checked",c.defaultIndex===a.index)("aria-label","Make template "+
a.name+" as default template")("value",a.index);w(2);C("bAriaLabel",PTa(c,a)?"Cancel editing "+a.name:"Edit "+a.name);w(1);C("ngIf",!PTa(c,a));w(1);C("ngIf",PTa(c,a));w(2);C("bAriaLabel","Delete "+a.name)("disabled",!(0<=a.index&&!c.templates[a.index].default))}},STa=function(a){a&1&&(D(0,"h2",73),Q(1," Create Template "),F())},TTa=function(a){a&1&&(D(0,"h2",73),Q(1),F());a&2&&(a=M(2).$implicit,w(1),kg(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},VTa=function(a,
b){if(a&1){var c=r();D(0,"label",83);L("keydown.enter",function(){var d=t(c).$implicit,e=M(3).$implicit;return v(UTa(e.editableTemplate,d))})("keydown.space",function(){var d=t(c).$implicit,e=M(3).$implicit;return v(UTa(e.editableTemplate,d))})("click",function(d){return d.stopPropagation()});D(1,"mat-checkbox",84);L("change",function(){var d=t(c).$implicit,e=M(3).$implicit;return v(UTa(e.editableTemplate,d))})("click",function(d){return d.stopPropagation()});F();Q(2);F()}a&2&&(a=b.$implicit,b=M(3).$implicit,
w(1),C("checked",b.editableTemplate.collaboratorGroups.has(a)),w(1),S(" ",a," "))},WTa=function(a){a&1&&(D(0,"div",74)(1,"div",21)(2,"label",75),Q(3,"Collaborator Groups"),F(),G(4,"mat-icon",76),F(),D(5,"div")(6,"button",77)(7,"span",78),Q(8),F(),G(9,"mat-icon",79),F(),D(10,"mat-menu",80,81),P(12,VTa,3,2,"label",82),F()()());if(a&2){var b=N(11);a=M(2).$implicit;var c=M();w(4);hg("matTooltip",c.COLLABORATOR_GROUPS_TOOLTIP);w(2);C("matMenuTriggerFor",b);w(2);S(" ",a.editableTemplate.getCollaboratorGroupsString(),
" ");w(4);C("ngForOf",c.trackerCollaboratorGroups)}},YTa=function(a,b){if(a&1){var c=r();D(0,"button",85);L("click",function(){var e=t(c).$implicit,f=M(2).$implicit,h=M();f.issueType=e.value;return v(XTa(h))});Q(1);F()}if(a&2){a=b.$implicit;b=M(2).$implicit;var d;C("disabled",b.issueType===a.value)("matTooltip",null!==(d=a.altText)&&void 0!==d?d:"");w(1);S(" ",a.displayText," ")}},ZTa=function(a,b){if(a&1){var c=r();D(0,"button",86);L("click",function(){var d=t(c).$implicit,e=M(2).$implicit;e.editableTemplate.priority=
d.value;e.editableTemplate.dirty=!0;return v()});Q(1);F()}a&2&&(a=b.$implicit,b=M(2).$implicit,C("disabled",b.editableTemplate.priority===a.value),w(1),S(" ",a.displayText," "))},$Ta=function(a,b){if(a&1){var c=r();D(0,"button",86);L("click",function(){var d=t(c).$implicit,e=M(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return v()});Q(1);F()}a&2&&(a=b.$implicit,b=M(2).$implicit,C("disabled",b.editableTemplate.severity===a.value),w(1),S(" ",a.displayText," "))},aUa=
function(a,b){if(a&1){var c=r();D(0,"div",87)(1,"b-hotlist-chip",88);L("removeHotlist",function(){var d=t(c).$implicit,e=M(3);return v(e.removeHotlist(d.hotlistId))});F()()}a&2&&(a=b.$implicit,w(1),C("hotlist",a))},bUa=function(a){a&1&&(D(0,"h3"),Q(1,"Custom issue fields"),F())},cUa=function(a){if(a&1){var b=r();D(0,"input",96);L("ngModelChange",function(d){t(b);var e=M().$implicit,f=M(2).$implicit;return v(f.editableTemplate.customFieldValues[e.id].textValue=d)})("ngModelChange",function(){t(b);
M(3).$implicit.editableTemplate.dirty=!0;return v()});F()}if(a&2){a=M().$implicit;var c=M(2).$implicit;Pf("id","template-cf-",a.id,"");C("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},dUa=function(a){if(a&1){var b=r();D(0,"input",97);L("ngModelChange",function(d){t(b);var e=M().$implicit,f=M(2).$implicit;return v(f.editableTemplate.customFieldValues[e.id].numericValue=d)})("ngModelChange",function(){t(b);M(3).$implicit.editableTemplate.dirty=!0;return v()});F()}if(a&2){a=M().$implicit;
var c=M(2).$implicit;Pf("id","template-cf-",a.id,"");C("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},fUa=function(a){if(a&1){var b=r();D(0,"b-edit-field",98);L("valueChange",function(h){t(b);var k=M().$implicit,q=M(2).$implicit,u=M();return v(u.setCustomField(q,k.id,h))});F()}if(a&2){a=M().$implicit;var c=M(2).$implicit,d=M(),e,f;Pf("id","template-cf-",a.id,"");C("type",d.FieldType.ENUM)("name",a.name)("clearable",!0)("value",null!==(e=null==c.editableTemplate.customFieldValues[a.id]?
null:c.editableTemplate.customFieldValues[a.id].enumValue)&&void 0!==e?e:null)("choices",null!==(f=a.enumFields)&&void 0!==f?f:ng(6,eUa))}},gUa=function(a){if(a&1){var b=r();D(0,"bv2-input-date-picker",99);L("boundValueChange",function(e){t(b);var f=M().$implicit,h=M(2).$implicit,k=M();return v(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){t(b);M(3).$implicit.editableTemplate.dirty=!0;return v()});F()}if(a&2){a=M().$implicit;var c=M(2).$implicit,
d;Pf("id","template-cf-",a.id,"");C("boundValue",null!==(d=c.editableTemplate.customFieldValues[a.id].dateValue)&&void 0!==d?d:void 0)}},iUa=function(a){if(a&1){var b=r();D(0,"b-list-field",100);L("valuesChange",function(e){t(b);var f=M().$implicit,h=M(2).$implicit,k=M();return v(k.setCustomField(h,f.id,e.values))});F()}if(a&2){a=M().$implicit;var c=M(2).$implicit,d=M();Pf("id","template-cf-",a.id,"");C("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",hUa(c.editableTemplate.customFieldValues[a.id]))("enumChoices",
a.enumFields)("truncate",!0)}},jUa=function(a,b){a&1&&(D(0,"div")(1,"div",21)(2,"label",89),Q(3),F()(),D(4,"div",90),P(5,cUa,1,2,"input",91),P(6,dUa,1,2,"input",92),P(7,fUa,1,7,"b-edit-field",93),P(8,gUa,1,2,"bv2-input-date-picker",94),P(9,iUa,1,6,"b-list-field",95),F()());a&2&&(a=b.$implicit,$f("cell-",a.cellType,""),w(2),gg("for","template-cf-",a.id,""),w(1),kg("",a.name," (id=",a.id,")"),w(1),C("ngSwitch",a.type),w(1),C("ngSwitchCase","TEXT"),w(1),C("ngSwitchCase","NUMERIC"),w(1),C("ngSwitchCase",
"ENUM"),w(1),C("ngSwitchCase","DATE"))},oUa=function(a){if(a&1){var b=r();D(0,"td",17)(1,"div",18);P(2,STa,2,0,"h2",19);P(3,TTa,2,2,"h2",19);D(4,"div",20)(5,"div",21)(6,"label",22);Q(7,"Template Name");F()();D(8,"input",23);L("ngModelChange",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.name=h)})("ngModelChange",function(){t(b);M().$implicit.editableTemplate.dirty=!0;return v()});F()();D(9,"div",20)(10,"div",21)(11,"label",24);Q(12,"Description of Template");F()();D(13,"input",
25);L("ngModelChange",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.description=h)})("ngModelChange",function(){t(b);M().$implicit.editableTemplate.dirty=!0;return v()});F()();D(14,"div",26)(15,"h3");Q(16," Standard issue fields ");F();D(17,"div",27)(18,"div",28)(19,"div",21)(20,"label",29);Q(21,"Issue Access Level");F()();D(22,"b-issue-access-limits-dropdown",30);L("updatedAccessLimitLevel",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.onAccessLimitLevelSelected(h))});
F()();P(23,WTa,13,4,"div",31);F();D(24,"div",20)(25,"div",21)(26,"label",32);Q(27,"Title");F()();D(28,"input",33);L("ngModelChange",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.title=h)})("ngModelChange",function(){t(b);M().$implicit.editableTemplate.dirty=!0;return v()});F()();D(29,"div",34)(30,"div",21)(31,"label",35);Q(32,"Type");F()();D(33,"button",36)(34,"span");Q(35);F();G(36,"b-icon",37);F();D(37,"mat-menu",38,39);P(39,YTa,2,3,"button",40);F()();D(40,"div",34)(41,"div",
21)(42,"label",41);Q(43,"Priority");F()();D(44,"button",42)(45,"span");Q(46);F();G(47,"b-icon",37);F();D(48,"mat-menu",38,43);P(50,ZTa,2,2,"button",44);F()();D(51,"div",34)(52,"div",21)(53,"label",45);Q(54,"Severity");F()();D(55,"button",46)(56,"span");Q(57);F();G(58,"b-icon",37);F();D(59,"mat-menu",38,47);P(61,$Ta,2,2,"button",44);F()();D(62,"div",48)(63,"div",21)(64,"label",49);Q(65,"Default Hotlists");F()();D(66,"b-hotlist-picker",50);L("onApply",function(h){t(b);var k=M(2);return v(k.handleHotlistPickerSave(h))})("onCreate",
function(h){t(b);var k=M(2);return v(k.createHotlist(h))})("onLoad",function(h){t(b);var k=M(2);return v(k.loadHotlist(h))});F();P(67,aUa,2,1,"div",51);F();G(68,"div",52);D(69,"div",53)(70,"div",21)(71,"label",54);Q(72,"Assignee");F()();D(73,"input",55);L("ngModelChange",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.assignee=h)})("ngModelChange",function(){t(b);M().$implicit.editableTemplate.dirty=!0;return v()});F()();D(74,"div",53)(75,"div",21)(76,"label",56);Q(77,"Verifier");
F()();D(78,"input",57);L("ngModelChange",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.verifier=h)})("ngModelChange",function(){t(b);M().$implicit.editableTemplate.dirty=!0;return v()});F()();D(79,"div",20)(80,"div",21)(81,"label",58);Q(82,"Collaborators");F();G(83,"mat-icon",59);F();D(84,"input",60);L("ngModelChange",function(h){t(b);var k=M().$implicit;return v(kUa(k.editableTemplate,h))});F()();D(85,"div",20)(86,"div",21)(87,"label",61);Q(88,"CC");F()();D(89,"input",62);L("ngModelChange",
function(h){t(b);var k=M().$implicit;return v(lUa(k.editableTemplate,h))});F()();D(90,"div",20)(91,"div",21)(92,"label",63);Q(93,"Initial Comment");F()();D(94,"textarea",64);L("ngModelChange",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.comment=h)})("ngModelChange",function(){t(b);M().$implicit.editableTemplate.dirty=!0;return v()});Q(95,"              ");F();D(96,"b-markdown-toggle",65);L("change",function(h){t(b);var k=M().$implicit;return v(k.editableTemplate.setFormattingMode(h))});
F()();D(97,"div",20)(98,"div",21)(99,"label",66);Q(100,"In Prod");F()();D(101,"b-slide-toggle",67);L("modelChange",function(){t(b);var h=M().$implicit.editableTemplate;h.inProd=!h.inProd;h.dirty=!0;return v()});F()()();D(102,"div",68);P(103,bUa,2,0,"h3",9);P(104,jUa,10,11,"div",69);F();D(105,"div",70)(106,"b-button",71);L("onAction",function(){t(b);var h=M(2);return v(mUa(h))});Q(107," Save ");F();D(108,"b-button",72);L("onAction",function(){t(b);var h=M(2);return v(nUa(h))});Q(109," Cancel ");F()()()()}if(a&
2){var c=N(38),d=N(49),e=N(60);a=M().$implicit;var f=M();w(2);C("ngIf",a.editableTemplate.new);w(1);C("ngIf",!a.editableTemplate.new);w(5);C("ngModel",a.editableTemplate.name);w(5);C("ngModel",a.editableTemplate.description);w(9);C("disabled",!1)("defaultAccessLimitLevel",a.editableTemplate.issueAccessLimitLevel)("implicitAccessEnabled",f.implicitAccessEnabled);w(1);C("ngIf",f.enableQuickAddCollaborators&&f.trackerCollaboratorGroups.length);w(5);C("ngModel",a.editableTemplate.title);w(5);C("matMenuTriggerFor",
c);w(2);jg(a.issueType);w(2);C("overlapTrigger",!0);w(2);C("ngForOf",f.issueTypeChoices);w(5);C("matMenuTriggerFor",d);w(2);jg(a.editableTemplate.priority);w(2);C("overlapTrigger",!0);w(2);C("ngForOf",f.priorityChoices);w(5);C("matMenuTriggerFor",e);w(2);jg(a.editableTemplate.severity);w(2);C("overlapTrigger",!0);w(2);C("ngForOf",f.severityChoices);w(5);C("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);w(1);C("ngForOf",f.selectedHotlists);w(6);C("bContactAutocomplete","SINGLE")("ngModel",
a.editableTemplate.assignee);w(5);C("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.verifier);w(6);C("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.collaborators.join(", "));w(5);C("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", "));w(5);C("ngModel",a.editableTemplate.comment);w(2);C("initialValue",a.editableTemplate.formattingMode);w(5);C("model",a.editableTemplate.inProd);w(2);C("ngIf",0<f.customFieldRows.length);w(1);C("ngForOf",f.customFieldRows);
w(2);C("disabled",!a.editableTemplate.isDirty())}},pUa=function(a,b){a&1&&(D(0,"tr"),P(1,RTa,17,15,"ng-container",9),P(2,oUa,110,38,"td",10),F());a&2&&(a=b.$implicit,w(1),C("ngIf",!a.editableTemplate),w(1),C("ngIf",!!a.editableTemplate))},qUa=function(a,b){a&1&&(D(0,"div",101),Q(1),F(),D(2,"div",102)(3,"button",103),Q(4," Cancel "),F(),D(5,"button",104),Q(6," Confirm "),F()());a&2&&(a=b.$implicit,w(1),S(' Are you sure you want to delete the template "',a.name,'"? '),w(2),C("mat-dialog-close",!1),
w(2),C("mat-dialog-close",!0))},rUa=function(a,b){a&1&&(D(0,"div",101),Q(1),F(),D(2,"div",102)(3,"button",105),Q(4," Cancel "),F(),D(5,"button",105),Q(6," Don't Save "),F(),D(7,"button",106),Q(8," Save "),F()());a&2&&(a=b.$implicit,w(1),S(' Do you want to save changes to template "',a.name,'" before closing? '),w(2),C("mat-dialog-close",void 0),w(2),C("mat-dialog-close",!1),w(2),C("mat-dialog-close",!0))},sUa=function(a){a&1&&(D(0,"div"),G(1,"b-slo-time-indicator",1),F());a&2&&(a=M(),w(1),C("sloStartTime",
a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.assignmentSlo)("includeObjective",!0))},tUa=function(a){a&1&&(D(0,"div"),G(1,"b-slo-time-indicator",2),F());a&2&&(a=M(),w(1),C("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.responseSlo)("includeObjective",!0))},uUa=function(a){a&1&&(D(0,"div"),G(1,"b-slo-time-indicator",3),F());a&2&&(a=M(),w(1),C("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.closureSlo)("includeObjective",!0))},vUa=function(a){a&
1&&(D(0,"div",8),G(1,"b-slo-status-summary",9),F());a&2&&(a=M(),w(1),C("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",a.onlyShowMetric))},wUa=function(a){a&1&&(I(0),Q(1," No applicable SLO rules "),K())},xUa=function(a){a&1&&(I(0),Q(1," No SLO set on issue component "),K())},yUa=function(a){a&1&&(D(0,"div",10),P(1,wUa,2,0,"ng-container",7),P(2,xUa,2,0,"ng-container",7),F());a&2&&(a=M(),w(1),C("ngIf",a.editSloLink),w(1),C("ngIf",!a.editSloLink))},zUa=function(a){if(a&1){var b=
r();D(0,"a",12);L("click",function(){t(b);var c=M(2);return v(c.trackOpenSlo())});Q(1);F()}a&2&&(a=M(2),C("href",a.editSloLink,re),w(1),S(" ",a.sloName," "))},AUa=function(a){a&1&&(D(0,"span"),Q(1," (private) "),F())},BUa=function(a){a&1&&(D(0,"span"),Q(1," SLO definition: "),P(2,zUa,2,2,"a",11),P(3,AUa,2,0,"span",7),F());a&2&&(a=M(),w(2),C("ngIf",a.sloName),w(1),C("ngIf",!a.sloName))},DUa=function(a){if("CUSTOM_FIELD"===a.type)return new Cp({name:a.customFieldId?String(a.customFieldId):a.customFieldName||
"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:void 0!==a.customFieldId,tooltip:""});a=oi(a.type);"canonicalIssueId"===a&&(a="duplicateOfIssueId");return CUa.includes(a)?Dp(a):null},FUa=function(a){return EUa(a.map(DUa).filter(function(b){return!!b}))},GUa=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:qi(b.name),customFieldName:void 0}:(b=(b.name||"").replace(/([A-Z])/g,"_$1").toUpperCase(),"DUPLICATE_OF_ISSUE_ID"===
b&&(b="CANONICAL_ISSUE_ID"),b={type:b,customFieldId:void 0,customFieldName:void 0});return b})},EUa=function(a){return Sj(a,function(b){return b.name})},Dp=function(a){var b={name:a,label:a.toUpperCase()},c=HUa[a];c?Object.assign(b,c):CUa.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new Cp(b)},JUa=function(a,b){b=void 0===b?document.documentElement:b;return(0,B.concat)((0,B.defer)(function(){return(0,B.of)(b.querySelector(a))}),
IUa(b,{childList:!0,subtree:!0}).pipe(cf(function(c){return c.some(function(d){return 0<d.addedNodes.length})}),A(function(){return b.querySelector(a)}))).pipe(cf(cl),nf(),A(function(c){return c}))},IUa=function(a,b){return new B.Observable(function(c){var d=new MutationObserver(function(e){c.next(e)});d.observe(a,b);return function(){d.disconnect()}})},Ep=function(a,b){return function(c){if(c.target instanceof HTMLElement){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}}},KUa=function(a,
b){a&1&&G(0,"col");a&2&&$f("",b.$implicit.name,"-col")},LUa=function(a){a&1&&bg(0)},NUa=function(a,b){a&1&&(I(0),P(1,LUa,1,0,"ng-container",8),K());a&2&&(a=b.$implicit,b=M(),w(1),C("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",og(2,MUa,a)))},OUa=function(a){a&1&&bg(0)},QUa=function(a,b){a&1&&(I(0),P(1,OUa,1,0,"ng-container",8),K());if(a&2){a=b.$implicit;b=b.index;var c=M(),d=c.$implicit;c=c.index;var e=M().ngIf;w(1);C("ngTemplateOutlet",e[b])("ngTemplateOutletContext",
qg(PUa,d,a,c))}},RUa=function(a,b){if(a&1){var c=r();D(0,"tr",10,11);L("click",function(){var e=t(c).index,f=M(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()})("focus",function(){var e=t(c).index,f=M(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()});P(2,QUa,2,6,"ng-container",4);F()}if(a&2){a=b.$implicit;b=b.index;var d=M(2);Xf("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",
a.isClosed)("grid-focus",d.focusedRowIndex===b);Nf("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));w(2);C("ngForOf",d.columns)}},SUa=function(a){a&1&&(I(0),P(1,RUa,3,12,"tr",9),K());a&2&&(a=M(),w(1),C("ngForOf",a.list))},TUa=function(a,b){a&1&&(D(0,"th"),G(1,"pop-grid-default-th",12),F());a&2&&(a=b.column,w(1),C("column",a))},UUa=function(a,b){a&1&&(D(0,"td"),G(1,"pop-grid-default-cell",13),F());a&2&&(a=b.row,b=b.column,w(1),C("row",
a)("column",b))},VUa=function(a){if(a&1){var b=r();D(0,"b-sortable-header",3);L("sortChanged",function(c){t(b);var d=M();d.grid&&d.grid.sortChange.emit(c);return v()});F()}a&2&&(a=M(),C("columnLabel",a.column.label)("columnName",a.column.name)("defaultSortDirection",a.column.defaultSortDirection||"ASC")("sort",null==a.grid?null:a.grid.sort)("matTooltip",a.column.tooltip||""))},WUa=function(a){a&1&&(D(0,"span",6),Q(1),F());a&2&&(a=M(2),w(1),S("column-",a.column.name,""))},XUa=function(a){a&1&&(D(0,
"div",4),P(1,WUa,2,1,"span",5),Q(2),F());a&2&&(a=M(),Nf("aria-label",a.column.label),w(1),C("ngIf",!a.column.label),w(1),S(" ",a.column.label," "))},YUa=function(a){if(a&1){var b=r();D(0,"div",13,14);L("menuOpened",function(){t(b);var d=M();return v(d.menuOpen=!0)})("menuClosed",function(){t(b);var d=M();return v(d.menuOpen=!1)})("keydown.enter",function(d){t(b);N(1).openMenu();d.preventDefault();return v(d.stopPropagation())})("keydown.space",function(){t(b);var d=N(1);return v(d.openMenu())});F()}if(a&
2){a=M();var c=N(5);Xf("columnpicker-button-active",a.menuOpen);Pf("aria-label","",a.column.fullLabel," column configuration");C("matMenuTriggerFor",c)}},aVa=function(a,b){if(a&1){var c=r();D(0,"button",15);L("click",function(){var d=t(c).$implicit,e=M();return v(ZUa(e,d.name))});G(1,"b-icon",16);D(2,"span",17);Q(3);F()()}a&2&&(a=b.$implicit,b=M(),Xf("b-menu-item-checked",$Ua(a.name).get(b.listViewPrefs)),w(3),S(" ",a.menuItem," "))},bVa=function(a){a&1&&G(0,"mat-divider")},cVa=function(a){if(a&1){var b=
r();D(0,"button",22);L("click",function(){t(b);var c=M().$implicit,d=M().before,e=M();return v(e.add(c,d))})("keydown.enter",function(c){t(b);var d=M().$implicit,e=M().before;M().add(d,e);c.preventDefault();return v(c.stopPropagation())});Q(1);F()}a&2&&(a=M().$implicit,C("matTooltip",a.tooltip),w(1),S(" ",a.fullLabel," "))},eVa=function(a){a&1&&(D(0,"button",9)(1,"span"),Q(2),F()());if(a&2){a=M().$implicit;var b=M().before;M();var c=N(18);C("matMenuTriggerFor",c)("matMenuTriggerData",pg(3,dVa,a.columns,
b));w(2);jg(a.label)}},fVa=function(a,b){a&1&&(I(0),P(1,cVa,2,2,"button",20),P(2,eVa,3,6,"button",21),K());a&2&&(a=b.$implicit,b=M(2),w(1),C("ngIf",b.isIssueGridColumn(a)),w(1),C("ngIf",!b.isIssueGridColumn(a)))},hVa=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){var c=t(b).before,d=M();return v(gVa(d,c))});Q(1," Custom Field ");F();G(2,"mat-divider");P(3,fVa,3,2,"ng-container",19)}a&2&&(a=M(),w(3),C("ngForOf",a.currentAvailableItems))},iVa=function(a,b){if(a&1){var c=r();D(0,
"button",24);L("click",function(){var d=t(c).$implicit,e=M().before,f=M();return v(f.add(d,e))})("keydown.enter",function(d){var e=t(c).$implicit,f=M().before;M().add(e,f);d.preventDefault();return v(d.stopPropagation())});Q(1);F()}a&2&&(a=b.$implicit,w(1),S(" ",a.fullLabel," "))},jVa=function(a,b){a&1&&P(0,iVa,2,1,"button",23);a&2&&C("ngForOf",b.columns)},$Ua=function(a){switch(a){case "id-link":return{get:function(b){var c;return"link"===(null==(c=b.modeForField)?void 0:c.id)},set:function(b,c){b.modeForField=
b.modeForField||{};b.modeForField.id=c?"link":void 0}};case "id-copy":return{get:function(b){var c;return"copy"===(null==(c=b.modeForField)?void 0:c.id)},set:function(b,c){b.modeForField=b.modeForField||{};b.modeForField.id=c?"copy":void 0}};case "showHotlists":return{get:function(b){return b.showHotlists},set:function(b,c){b.showHotlists=c}};case "wrapTitles":return{get:function(b){return b.wrapTitles},set:function(b,c){b.wrapTitles=c}};case "wrapComponents":return{get:function(b){return b.wrapComponents},
set:function(b,c){b.wrapComponents=c}};case "showStatusIcons":return{get:function(b){var c;return"icon"===(null==(c=b.fieldStatus)?void 0:c.mode)},set:function(b,c){var d;b.fieldStatus=null!=(d=b.fieldStatus)?d:{};b.fieldStatus.mode=c?"icon":void 0}};case "status-plain":return{get:function(b){var c;return"plain"===(null==(c=b.fieldStatus)?void 0:c.mode)},set:function(b,c){var d;b.fieldStatus=null!=(d=b.fieldStatus)?d:{};b.fieldStatus.mode=c?"plain":void 0}};case "rtlComponentPath":return{get:function(b){return b.rtlComponentPath},
set:function(b,c){b.rtlComponentPath=c}};default:throw Error("Ud`"+a);}},kVa=function(a){return{matchedPatterns:ii(a,1)}},lVa=function(a){a&1&&(D(0,"p",12),Q(1),F());a&2&&(a=M(),w(1),S(" * Status update must be less than ",a.CHAR_LIMIT," characters. "))},mVa=function(a){a&1&&(D(0,"p",13),Q(1),D(2,"a",14),Q(3," Learn more "),F()());a&2&&(a=M(),w(1),S(" Your status update contains restricted words: ",Fp(a.bannedWordsChecker),". Review your status update before posting. "))},nVa=function(a){a&1&&(D(0,
"div",15),G(1,"b-live-preview",16),F());a&2&&(a=M(),w(1),C("comment",a.newStatusUpdate.updateText)("issueId",a.origStatusUpdate.issueId)("formattingMode",a.newStatusUpdate.formattingMode)("audience",a.formattingAudience))},rVa=function(a){var b,c;a=(a=oVa(a,pVa,5,!1))?a:hba(pVa);return{output:null!=(c=null==(b=Ji(a,qVa,1)[0])?void 0:Hi(b,1))?c:""}},sVa=function(a){return!(a.userPerformingAction.endsWith("@prod.google.com")||!a.isMajorEvent)},tVa=function(a){return function(b){return Ji(b,Gp,1).map(function(c){return{workspaceId:c.getWorkspaceId(),
workspaceName:c.getName(),issueId:a}})}},uVa=function(a){a&1&&(I(0),Q(1," > "),K())},vVa=function(a,b){a&1&&(I(0),D(1,"a",7),Q(2),F(),P(3,uVa,2,0,"ng-container",3),K());a&2&&(a=b.$implicit,b=b.last,w(1),Pf("aria-label","View recent issues in ",a.name,""),C("routerLinkObj",a.route),w(1),jg(a.name),w(1),C("ngIf",!b))},wVa=function(a){a&1&&(D(0,"span"),Q(1," [Archived]"),F())},xVa=function(a){a&1&&(D(0,"div",5),P(1,vVa,4,4,"ng-container",6),T(2,"async"),P(3,wVa,2,0,"span",3),T(4,"async"),F());a&2&&(a=
M(),w(1),C("ngForOf",V(2,2,a.componentPath$)),w(2),C("ngIf",V(4,4,a.isArchived$)))},yVa=function(a,b){a&1&&(I(0),D(1,"div",8),G(2,"mat-icon",9),D(3,"div",10),Q(4),F()(),D(5,"p",11),Q(6),F(),D(7,"p",10),Q(8),F(),K());a&2&&(a=b.$implicit,w(4),jg(a.name),w(2),S("Component ID: ",a.componentId,""),w(2),jg(a.description))},zVa=function(a,b){a&1&&(D(0,"div",12)(1,"a",13),Q(2,"View recent open issues"),F(),D(3,"a",14),Q(4,"View component settings"),F(),D(5,"a",15),Q(6,"Create issue in this component"),F()());
a&2&&(a=b.$implicit,w(1),C("routerLinkObj",a.recentIssues),w(2),C("routerLinkObj",a.componentSettings),w(2),C("routerLinkObj",a.createIssue))},AVa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,w(1),S("(",a.disabledReason,")"))},BVa=function(a,b){a&1&&(D(0,"mat-radio-button",8),Q(1),P(2,AVa,2,1,"span",9),F());a&2&&(a=b.$implicit,C("value",a)("disabled",!a.enabled),w(1),S(" ",a.displayText," "),w(1),C("ngIf",!a.enabled))},CVa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,
w(1),S("(",a.disabledReason,")"))},DVa=function(a,b){a&1&&(D(0,"mat-radio-button",8),Q(1),P(2,CVa,2,1,"span",9),F());a&2&&(a=b.$implicit,C("value",a)("disabled",!a.enabled),w(1),S(" ",a.displayText," "),w(1),C("ngIf",!a.enabled))},EVa=function(a){return a?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},FVa=function(a){a&1&&G(0,"mat-icon",7);if(a&2){a:switch(M().reactionType){case "UPVOTE":a="thumb_up_24px";break a;default:a=
"warning"}C("svgIcon",a)}},GVa=function(a){a&1&&G(0,"b-spinner")},HVa=function(a,b){a&1&&(D(0,"div")(1,"div",9),Q(2),F()());a&2&&(a=b.$implicit,M(2),w(2),jg(zi(a.user)))},IVa=function(a){a&1&&(I(0),P(1,HVa,3,1,"div",8),K());a&2&&(a=M(),w(1),C("ngForOf",a.allResponders))},JVa=function(a){switch(a){case "PII_SEVERITY_UNSPECIFIED":return 0;case "NONE_DETECTED":return 1;case "PII":return 2;case "SPII":return 3;default:throw Error("Vd`"+a);}},KVa=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(),w(1),
S("Retain ",a.resource," as long as issue?"))},LVa=function(a){a&1&&(D(0,"span"),Q(1,"Apply component retention settings?"),F())},MVa=function(a){a&1&&(D(0,"span")(1,"p"),Q(2),F(),D(3,"p")(4,"b"),Q(5,"Please note long retention is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored."),F(),G(6,"br"),Q(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),F()());
a&2&&(a=M(),w(2),S("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},NVa=function(a){a&1&&(D(0,"span")(1,"p"),Q(2),F()());a&2&&(a=M(),w(2),kg("This ",a.resource," is currently retained as long as the issue. If you select this option, this ",a.resource," will be scheduled for deletion based on the component retention settings."))},OVa=function(a){if(a&1){var b=r();D(0,"mat-checkbox",9);L("ngModelChange",function(c){t(b);var d=
M();return v(d.acknowledgeToMatchIssueRetention=c)});Q(1," I acknowledge ");F()}a&2&&(a=M(),C("ngModel",a.acknowledgeToMatchIssueRetention))},PVa=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.random_=a;this.reset()},Ip=function(a){return new Hp((a instanceof Hp?a:new Hp(a)).value,!0)},QVa=function(a){if(a.oauthTokens){var b=a.oauthTokens;return(0,B.firstValueFrom)(b).then(function(c){c=new B.BehaviorSubject(c);b.subscribe(c);return new Jp(c)})}return a.apiKey?a.appAuthTokens?Promise.resolve(new Kp(a.apiKey,
a.appAuthTokens)):Promise.resolve(new Lp(a.apiKey,a.authUser)):Promise.reject(Error("fe"))},RVa=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}},SVa=function(a){return new B.Observable(function(b){var c=Mp(function(){b.next({});b.complete()},a);return function(){Np(c)}})},TVa=function(a){var b=new Op;b.setName(a);
return b},VVa=function(a){a.isPrivate?(a=new Pp,Kl(a,2,UVa,pb(!0))):(a=new Pp,Kl(a,1,UVa,pb(!0)));return a},XVa=function(a){var b=new Qp;a=l(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new Rp;if(d.value instanceof Sp)d.isDecreasing?Kl(c,4,Tp,wb(d.value.toString())):Kl(c,2,Tp,wb(d.value.toString()));else if("string"===typeof d.value)d.isDecreasing?Jl(c,3,Tp,d.value):Jl(c,1,Tp,d.value);else if("number"===typeof d.value)d.isDecreasing?Kl(c,9,Tp,nb(d.value)):Kl(c,10,Tp,nb(d.value));
else if(d.value instanceof Uint8Array)d.isDecreasing?Kl(c,5,Tp,hc(d.value)):Kl(c,7,Tp,hc(d.value));else if(d.value instanceof Up)d.isDecreasing?(d=WVa(d.value),Ll(c,11,Tp,d)):(d=WVa(d.value),Ll(c,12,Tp,d));else if(d.value instanceof Vp){var e=d.value.rep;"number"===typeof e?d.isDecreasing?Kl(c,9,Tp,nb(e)):Kl(c,10,Tp,nb(e)):"string"===typeof e&&(d.isDecreasing?Kl(c,6,Tp,null==e?e:xb(e)):Kl(c,8,Tp,null==e?e:xb(e)))}Wp(b,1,Rp,c)}return b},bWa=function(a,b){if(a instanceof Xp)return 0<Ji(b,Rp,1).length?
null:YVa.apply(Xp,p(a.parts));a=Array.of.apply(Array,p(a.root.parts));b=l(Ji(b,Rp,1));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,Bl(c,Tp)){case 4:a.push(Ip(Yp(Zp(c,Dl(c,Tp,4)))));break;case 2:a.push(new Hp(Yp(Zp(c,Dl(c,Tp,2)))));break;case 6:a.push(Ip(new Vp(ZVa(c,Dl(c,Tp,6)))));break;case 8:a.push(new Hp(new Vp(ZVa(c,Dl(c,Tp,8)))));break;case 10:a.push(new Hp(new Vp($p(c,Dl(c,Tp,10)))));break;case 9:a.push(Ip(new Vp($p(c,Dl(c,Tp,9)))));break;case 3:a.push(Ip(aq(c,3,Tp)));break;case 1:a.push(new Hp(aq(c,
1,Tp)));break;case 7:var d=void 0;a.push(new Hp(null==(d=bq(c,Dl(c,Tp,7)))?void 0:$Va(d)));break;case 5:d=void 0;a.push(Ip(null==(d=bq(c,Dl(c,Tp,5)))?void 0:$Va(d)));break;case 12:c=aWa(Fl(c,gj,12,Tp));if(null===c)return null;a.push(new Hp(c));break;case 11:c=aWa(Fl(c,gj,11,Tp));if(null===c)return null;a.push(Ip(c));break;case 0:return null;default:return null}return YVa.apply(Xp,p(a))},cWa=function(a){a&1&&(D(0,"p",12),Q(1),D(2,"a",13),Q(3," Learn more "),F()());a&2&&(a=M(),w(1),S(" Your comment contains restricted words: ",
Fp(a.bannedWordsChecker),". Review your comment before posting. "))},dWa=function(a){a&1&&G(0,"b-live-preview",14);a&2&&(a=M(),C("comment",a.newComment.text)("issueId",a.origComment.issueId)("audience",a.origComment.audience)("formattingMode",a.newComment.formattingMode))},eWa=function(a){if(a&1){var b=r();D(0,"section")(1,"div",15)(2,"b-recaptcha",16);L("onUpdate",function(c){t(b);var d=M();return v(d.recaptchaResponse=c)});F()()()}},fWa=function(a){return function(b){var c,d;return{resourceId:b.issueId,
displayText:null!=(c=b.snapshot[0].title)?c:"",status:null!=(d=b.snapshot[0].status)?d:null,relations:[a]}}},gWa=function(a){var b=[],c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,""!==d.displayText)if(c.get(d.resourceId)){var e=c.get(d.resourceId);e.relations=[].concat(p(e.relations),p(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},hWa=function(a){a&1&&(I(0),Q(1,"\u2026 >"),K())},iWa=function(a){a&1&&(I(0),Q(1,"\u2026"),K())},jWa=function(a){if(a&1){var b=r();
D(0,"a",16);L("click",function(){t(b);var c=M(4);return v(c.compactMode$.next(!1))});P(1,hWa,2,0,"ng-container",6);P(2,iWa,2,0,"ng-container",6);F()}a&2&&(a=M().$implicit,w(1),C("ngIf",a.isSpliced),w(1),C("ngIf",a.isTruncated))},kWa=function(a){a&1&&(D(0,"a",17),Q(1),F());if(a&2){a=M().$implicit;var b=N(7);Xf("muted",a.name==a.id);C("routerLinkObj",a.route)("onedevHovercardTrigger",b);w(1);jg(a.name)}},lWa=function(a){a&1&&(D(0,"span",18),Q(1),F());a&2&&(a=M().$implicit,Xf("muted",a.name==a.id),w(1),
jg(a.name))},mWa=function(a){a&1&&(I(0),Q(1," > "),K())},nWa=function(a){a&1&&(I(0),G(1,"b-component-path-card",19,20),K());if(a&2){var b=N(2);a=M().$implicit;w(1);C("onedevIsHovercardReady",b.init)("componentId",a.id)}},oWa=function(a,b){a&1&&(I(0),P(1,jWa,3,2,"a",11),P(2,kWa,2,5,"a",12),P(3,lWa,2,3,"ng-template",null,13,Eg),P(5,mWa,2,0,"ng-container",6),D(6,"onedev-hovercard",null,14),P(8,nWa,3,2,"ng-container",15),F(),K());if(a&2){a=b.$implicit;b=b.last;var c=N(4),d=M(3);w(1);C("ngIf",a.isSpliced||
a.isTruncated);w(1);C("ngIf",!d.viewOnly)("ngIfElse",c);w(3);C("ngIf",!b)}},pWa=function(a,b){a&1&&(D(0,"span",9),P(1,oWa,9,4,"ng-container",10),F());a&2&&(a=b.$implicit,w(1),C("ngForOf",a))},qWa=function(a){a&1&&(D(0,"span"),Q(1,"[Archived]"),F())},rWa=function(a){if(a&1){var b=r();D(0,"button",21);L("click",function(){t(b);M(2).editing=!0;return v()});G(1,"mat-icon",22);F()}},sWa=function(a){a&1&&(D(0,"a",23),T(1,"async"),G(2,"mat-icon",24),F());if(a&2){a=M(2);var b;C("routerLinkObj",a.popoutLink(null==
(b=V(1,1,a.component$))?null:b.componentId))}},tWa=function(a){a&1&&(D(0,"b-async-data-placeholder",2),T(1,"async"),D(2,"div",3),G(3,"mat-icon",4),P(4,pWa,2,1,"span",5),T(5,"async"),P(6,qWa,2,0,"span",6),T(7,"async"),P(8,rWa,2,0,"button",7),P(9,sWa,3,3,"a",8),F()());a&2&&(a=M(),C("isReady",V(1,6,a.isReady$)),w(3),C("svgIcon",a.currentTracker.inTracker?"folder_special_24px":"folder"),w(1),C("ngIf",V(5,8,a.componentPath$)),w(2),C("ngIf",V(7,10,a.isArchived$)),w(2),C("ngIf",!a.viewOnly),w(1),C("ngIf",
a.popoutLink))},vWa=function(a){if(a&1){var b=r();D(0,"b-team-component-picker",25);L("selectedComponentChange",function(c){t(b);var d=M();d.editing=!1;c&&uWa(d.issueEditComponentService,d.issueId,c);return v()})("dropdownClosed",function(){t(b);M().editing=!1;return v()});T(1,"async");F()}a&2&&(a=M(),C("selectedComponent",V(1,3,a.component$))("isRequired",!0)("shouldFocus",!0))},xWa=function(a,b){if(a&1){var c=r();D(0,"div",6)(1,"b-contact-chip",7);L("chipSelection",function(){var d=t(c).index,e=
M();e.selectedChipIndex!==d&&cq(e,d)&&(wWa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return v()})("chipClear",function(){t(c);var d=M();return v(wWa(d))})("chipRemove",function(){var d=t(c).index,e=M();return v(e.removeItem(d))});F()()}a&2&&(a=b.$implicit,b=M(),w(1),C("isReadonly",a.isReadonly)("isSelected",a.isSelected)("isWidgetDisabled",b.isWidgetDisabled())("principalType",a.principalType)("detailedUserType",a.detailedUserType)("nestedChips",a.nestedChips)("value",a.value)("displayText",
a.displayText)("accessLevel",b.getAccessLevel()))},AWa=function(a){if(a&1){var b=r();D(0,"input",8,9);L("autocompleteActive",function(){t(b);var c=M();return v(c.chipifyFn())})("ngModelChange",function(c){t(b);var d=M();return v(d.typedText=c)})("focus",function(){t(b);var c=M();return v(yWa(c))})("blur",function(){t(b);var c=M();zWa(c,c.typedText.split(",")[0].trim());c.isFocused=!1;return v()});F()}a&2&&(a=M(),C("bContactAutocomplete","MULTI")("additionalContactsCallback",a.additionalContactsFn)("ngModel",
a.typedText)("disabled",a.isWidgetDisabled()))},BWa=function(a){a&1&&(D(0,"span"),Q(1," Groups cannot be granted Restricted+ reader permission. "),D(2,"a",10),Q(3,"Learn more"),F()());a&2&&(a=M(),w(2),Nf("href",wo(a.documentationLinks)+"#components",re))},CWa=function(a){a&1&&(D(0,"span"),Q(1," Invalid user(s). "),F())},DWa=function(a){a&1&&(D(0,"span"),Q(1,' "Public" or external users are not allowed for component designated as "internal access". '),F())},EWa=function(a){a&1&&(D(0,"span"),Q(1,' "Public" is not allowed for components designated as "external partner access". '),
F())},FWa=function(a){a&1&&(D(0,"span"),Q(1," SLO lead can not be a group. "),F())},GWa=function(a){a&1&&(D(0,"span"),Q(1," SLO lead can only be a full-time Googler. "),F())},IWa=function(a,b){if(a&1){var c=r();I(0);D(1,"mat-checkbox",21);L("click",function(d){return d.stopPropagation()})("change",function(d){var e=t(c).$implicit,f=M(2);e=e.value.user;d=d.source.checked;var h=f.collaboratorGroupsEmailToDetailsMap.get(e.emailAddress).specifiedOnIssue;d?(h||f.addedCollaboratorGroups.add(e),f.removedCollaboratorGroups.delete(e)):
(h&&f.removedCollaboratorGroups.add(e),f.addedCollaboratorGroups.delete(e));var k;HWa(f,null!=(k=f.updatedAccessLimitLevel$.getValue())?k:f.defaultAccessLimitLevel);return v()});Q(2);F();K()}a&2&&(a=b.$implicit,w(1),C("id",a.key)("name",a.key)("checked",a.value.specifiedOnIssue),w(1),S(" ",a.key," "))},JWa=function(a){a&1&&(I(0),D(1,"div")(2,"span",18),Q(3,"Add collaborator groups"),F(),G(4,"mat-icon",7),F(),D(5,"div",19),P(6,IWa,3,4,"ng-container",20),T(7,"keyvalue"),F(),K());a&2&&(a=M(),w(4),hg("matTooltip",
a.COLLABORATOR_GROUPS_TOOLTIP),w(2),C("ngForOf",V(7,2,a.collaboratorGroupsEmailToDetailsMap)))},LWa=function(a){if(a&1){var b=r();I(0);D(1,"button",22);L("click",function(){t(b);var c=M();return v(c.onPressCancel())});Q(2," Cancel ");F();D(3,"button",23);L("click",function(){t(b);var c=M();return v(c.onPressSave())});T(4,"async");Q(5," Save ");F();K()}a&2&&(a=M(),w(3),C("disabled",!KWa(a,V(4,1,a.hasAccessLimitLevelSelectionChanged$))))},MWa=function(a){if(a&1){var b=r();D(0,"button",24);L("click",
function(){t(b);var c=M();return v(c.onPressCancel())});Q(1," Close ");F()}},NWa=function(a){a&1&&G(0,"div",2)},OWa=function(a){a&1&&(I(0),fg(1),K())},PWa=function(a){a&1&&(Qd(),D(0,"svg",1),G(1,"path",2),F());a&2&&(a=M(),C("matTooltip",a.warning))},QWa=function(a){a&1&&bg(0)},TWa=function(a){if(a&1){var b=r();D(0,"div",1);L("keydown",function(c){t(b);var d=M();return v(d.processKeydown(c))});D(1,"div",2);P(2,QWa,1,0,"ng-container",3);F();D(3,"div",4)(4,"button",5);L("click",function(){t(b);var c=
M();return v(RWa(c))});Q(5,"Save");F();D(6,"button",6);L("click",function(){t(b);var c=M();return v(SWa(c))});Q(7,"Cancel");F()()()}a&2&&(a=M(),C("cdkTrapFocusAutoCapture",!0),w(2),C("ngTemplateOutlet",a.editorTemplate),w(2),C("disabled",a.saveDisabled))},UWa=function(a){a&1&&bg(0)},WWa=function(a){a&1&&(I(0),P(1,UWa,1,0,"ng-container",8),K());a&2&&(a=M(),w(1),C("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",og(2,VWa,a.value)))},XWa=function(a){a&1&&Q(0);a&2&&(a=M(),jg(null!=a.value?
a.value:"--"))},YWa=function(a){a&1&&(Qd(),D(0,"svg",9),G(1,"path",10),F())},ZWa=function(a){if(a&1){var b=r();D(0,"input",11);L("ngModelChange",function(c){t(b);var d=M();return v(d.editingValue=c)});F()}a&2&&(a=M(),C("ngModel",a.editingValue))},$Wa=function(a){return null!=a?Number(a):void 0},aXa=function(a){a&1&&G(0,"mat-icon",12);if(a&2){M();var b=N(5);C("onedevHovercardTrigger",b)}},bXa=function(a){if(a&1){var b=r();I(0);D(1,"onedev-numeric-field",13);L("valueChange",function(d){t(b);var e=M(2);
e.selectedNumericEstimate=d;null==d?e.effortChange.emit(void 0):e.effortChange.emit({estimate:String(d)});return v()});F();K()}if(a&2){a=M(2);var c=N(2);w(1);C("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},cXa=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M().$implicit,w(1),S(" ",a.label," "))},dXa=function(a){a&1&&Q(0," -- ")},eXa=function(a,b){a&1&&(P(0,cXa,2,1,"ng-container",16),P(1,dXa,1,0,"ng-template",null,17,Eg));if(a&2){a=b.$implicit;
var c=N(2);C("ngIf",a)("ngIfElse",c)}},gXa=function(a){if(a&1){var b=r();I(0);D(1,"onedev-single-select",14);L("valueChange",function(e){t(b);var f=M(2);return v(f.selectOption(e))});F();P(2,eXa,3,2,"ng-template",null,15,Eg);K()}if(a&2){var c=N(3);a=M(2);var d;w(1);C("value",a.selectedOption)("options",null!==(d=null==a.effortSpec.enumSpec?null:a.effortSpec.enumSpec.options)&&void 0!==d?d:ng(6,fXa))("includeEmptyOption",!0)("optionTemplate",c)("disabled",a.disabled)("displayArrowIcon",!a.disabled)}},
hXa=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M(2),w(1),S(" ",null==a.effort?null:a.effort.estimate," "))},iXa=function(a){a&1&&(D(0,"onedev-edit-field")(1,"onedev-field-label",2),Q(2),P(3,aXa,1,1,"mat-icon",3),F(),D(4,"onedev-hovercard",null,4)(6,"div",5)(7,"div",6),Q(8," This estimate was made under a different configuration and needs to be updated. "),D(9,"a",7),Q(10,"Learn more"),F()()()(),D(11,"onedev-field-value",8),I(12,9),P(13,bXa,2,4,"ng-container",10),P(14,gXa,4,7,"ng-container",10),P(15,
hXa,2,1,"ng-container",11),K(),F()());a&2&&(a=M(),w(1),C("thinking",a.thinking),w(1),S(" ",a.fieldName," "),w(1),C("ngIf",!a.isCompatibleValue),w(8),C("thinking",a.thinking),w(1),C("ngSwitch",a.fieldType),w(1),C("ngSwitchCase","NUMERIC"),w(1),C("ngSwitchCase","DROPDOWN"))},jXa=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M(2),w(1),S(" ",null==a.effort?null:a.effort.estimate," "))},kXa=function(a){a&1&&Q(0);a&2&&(a=M().$implicit,S(" ",null!=a?a:"--"," "))},lXa=function(a,b){a&1&&(P(0,jXa,2,1,"ng-container",
16),P(1,kXa,1,1,"ng-template",null,18,Eg));if(a&2){a=b.$implicit;var c=N(2);b=M();C("ngIf",b.isNaN(a))("ngIfElse",c)}},nXa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return new dq(new mXa(a,d))},pXa=function(){return new oXa(xd.apply(0,arguments))},rXa=function(){return new qXa(xd.apply(0,arguments))},tXa=function(){var a=xd.apply(0,arguments);return 1===a.length?a[0]:new sXa(a)},uXa=function(a,b){b&&(null!=b.autocompleteGroupingType&&a.setAutocompleteGroupingType(b.autocompleteGroupingType),
null!=b.autocompleteGroupingLabel&&a.setAutocompleteGroupingLabel(b.autocompleteGroupingLabel),null!=b.autocompleteHeader&&a.setAutocompleteHeader(b.autocompleteHeader),null!=b.autocompleteMaxResultsBeforeScroll&&a.setAutocompleteMaxResultsBeforeScroll(b.autocompleteMaxResultsBeforeScroll),null!=b.density&&a.setDensity(b.density),null!=b.moveAutocompleteAboveAnchorIfOffscreen&&a.setMoveAutocompleteAboveAnchorIfOffscreen(b.moveAutocompleteAboveAnchorIfOffscreen),null!=b.autoActivateFirstSuggestion&&
a.setAutoActivateFirstSuggestion(b.autoActivateFirstSuggestion),null!=b.showSuggestions&&a.setShowSuggestions(b.showSuggestions),null!=b.noResultsMessage&&a.setNoResultsMessage(b.noResultsMessage),null!=b.autoActivateFirstSearchResult&&a.setAutoActivateFirstSearchResult(b.autoActivateFirstSearchResult))},vXa=function(a){if(a&1){var b=r();D(0,"input",3,4);L("peoplekitAutocompleteSelectionChange",function(c){t(b);var d=M();0<c.length&&(d.inputValue=c[0].result().getPrimaryTarget().getValue());return v()})("ngModelChange",
function(c){t(b);var d=M();return v(d.inputValue=c)});F()}a&2&&(a=M(),C("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("ngModel",a.inputValue))},wXa=function(a){a&1&&bg(0)},yXa=function(a){a&1&&(I(0),P(1,wXa,1,0,"ng-container",6),K());a&2&&(a=M(),w(1),C("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",og(2,xXa,a.email)))},zXa=function(a){a&1&&Q(0);a&2&&(a=M(),S(" ",a.email," "))},AXa=function(a){a&1&&(Qd(),D(0,"svg",
7),G(1,"path",8),F())},BXa=function(a){a&1&&G(0,"b-user-membership-chip",4);if(a&2){a=M().$implicit;var b=M(),c;C("email",a)("teamId",null!==(c=b.teamId)&&void 0!==c?c:"")("enableSmallChip",!0)}},CXa=function(a,b){a&1&&P(0,BXa,1,3,"b-user-membership-chip",3);a&2&&C("ngIf",b.$implicit)},DXa=function(a){a&1&&G(0,"mat-icon",13)},EXa=function(a){a&1&&G(0,"mat-icon",14)},FXa=function(a){a&1&&(D(0,"span"),G(1,"b-formatted-date-time",22),F());a&2&&(a=M(2),w(1),C("timestamp",a.sloStartTime))},GXa=function(a){a&
1&&(D(0,"span"),G(1,"b-formatted-date-time",22),D(2,"span"),Q(3," (default)"),F()());a&2&&(a=M(2),w(1),C("timestamp",a.issueCreationTimestamp/1E3))},HXa=function(a){if(a&1){var b=r();D(0,"slo-edit-date-time-picker",23);L("closePicker",function(){t(b);var c=M(2);return v(c.isSloStartEditTimePickerOpen=!1)})("sloEditCommit",function(c){t(b);var d=M(2);return v(d.updateSloStartTime(c))});F()}a&2&&(a=M(2),C("sloStatus",a.sloStatus)("sloEditTime",a.sloStartTime))},IXa=function(a){if(a&1){var b=r();D(0,
"div",15)(1,"a",16);Q(2," Start Date: ");F();D(3,"div",17)(4,"a",18,19);L("keydown.enter",function(){t(b);var d=M();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("keydown.space",function(){t(b);var d=M();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("click",function(){t(b);var d=M();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()});P(6,FXa,2,1,"span",20);P(7,GXa,4,1,"span",20);F();P(8,HXa,1,2,"ng-template",21);F()()}if(a&
2){var c=N(5);a=M();w(6);C("ngIf",a.hasSloStartTime);w(1);C("ngIf",!a.hasSloStartTime);w(1);C("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",a.isSloStartEditTimePickerOpen)}},JXa=function(a){a&1&&(D(0,"span"),Q(1," Set closure SLO "),F())},KXa=function(a){a&1&&(D(0,"span"),G(1,"b-formatted-date-time",22),F());a&2&&(a=M(2),w(1),C("timestamp",a.sloEndTime))},LXa=function(a){a&1&&(D(0,"span"),G(1,"b-formatted-date-time",22),D(2,"span"),Q(3," (default)"),F()());a&2&&(a=M(2),w(1),C("timestamp",
1E3*a.closureSloTarget))},MXa=function(a){if(a&1){var b=r();D(0,"slo-edit-date-time-picker",23);L("closePicker",function(){t(b);var c=M(2);return v(c.isSloEndEditTimePickerOpen=!1)})("sloEditCommit",function(c){t(b);var d=M(2);return v(d.updateSloEndTime(c))});F()}a&2&&(a=M(2),C("sloStatus",a.sloStatus)("sloEditTime",a.sloEndTime))},NXa=function(a){if(a&1){var b=r();D(0,"div",24)(1,"a",16);Q(2," End Date: ");F();D(3,"div",17)(4,"a",25,19);L("click",function(){t(b);var d=M();d.isSloEndEditTimePickerOpen=
!d.isSloEndEditTimePickerOpen;return v()})("keydown.enter",function(){t(b);var d=M();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()})("keydown.space",function(){t(b);var d=M();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()});P(6,JXa,2,0,"span",20);P(7,KXa,2,1,"span",20);P(8,LXa,4,1,"span",20);F();P(9,MXa,1,2,"ng-template",21);F()()}if(a&2){var c=N(5);a=M();w(6);C("ngIf",!a.hasClosureSlo);w(1);C("ngIf",a.hasClosureSlo&&a.hasSloEndTime);w(1);C("ngIf",a.hasClosureSlo&&
!a.hasSloEndTime);w(1);C("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",a.isSloEndEditTimePickerOpen)}},OXa=function(a,b){if(a&1){var c=r();D(0,"a",28);L("click",function(){t(c);var d=M(2);return v(d.trackOpenSlo())});Q(1);F()}a&2&&(a=b.ngIf,b=M(2),Nf("href",b.editSloLink,re),w(1),S(" ",a.name," "))},PXa=function(a){a&1&&(D(0,"div",26),Q(1," SLO definition: "),P(2,OXa,2,2,"a",27),T(3,"async"),F());a&2&&(a=M(),w(2),C("ngIf",V(3,1,a.slo$)))},QXa=function(a){if(a&1){var b=r();D(0,"div",26)(1,
"a",29);L("click",function(){t(b);M();Mk(xp.MANAGE_COMPONENT,"open","fromIssueSloBox");return v()});Q(2,"Select an SLO");F()()}a&2&&(a=M(),w(1),Nf("href",a.componentSloLink,re))},RXa=function(a){return a&&"0"!==a.teamId?a.deleted?"DELETED":"VALID":"MISSING"},SXa=function(a){if(a&1){var b=r();D(0,"div",6);Q(1," Select a team from the suggestions below, or edit in ");D(2,"a",7);L("click",function(){t(b);var c=M();return v(c.trackClick("viewTeamAssociationOnComponent"))});Q(3,"component settings");F();
Q(4,".\n");F()}a&2&&(a=M(),w(2),C("href",a.componentSetting,re))},TXa=function(a){a&1&&(D(0,"div",6),Q(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),D(2,"a",8),Q(3,"component settings"),F(),Q(4,".\n"),F());a&2&&(a=M(),w(2),C("href",a.componentSetting,re))},UXa=function(a){if(a&1){var b=r();D(0,"mat-radio-group",9);L("ngModelChange",function(c){t(b);var d=M();return v(d.teamAction=c)});D(1,"p")(2,"mat-radio-button",10);
Q(3," Don't make any changes ");F()();D(4,"p")(5,"mat-radio-button",11);Q(6," Map component to selected team ");F()()()}a&2&&(a=M(),C("ngModel",a.teamAction))},VXa=function(a){a&1&&(I(0),D(1,"span",19),Q(2),F(),K());a&2&&(a=M().$implicit,w(2),jg(a.teamPath))},WXa=function(a){a&1&&Q(0," -- ")},XXa=function(a,b){a&1&&(P(0,VXa,3,1,"ng-container",17),P(1,WXa,1,0,"ng-template",null,18,Eg));if(a&2){a=b.$implicit;var c=N(2);C("ngIf",a)("ngIfElse",c)}},YXa=function(a){if(a&1){var b=r();D(0,"div",12)(1,"onedev-single-select",
13);L("valueChange",function(d){t(b);var e=M();return v(e.selectedTeam=d)})("valueChange",function(d){t(b);var e=M();return v(e.selectOption(d))});F();P(2,XXa,3,2,"ng-template",null,14,Eg);D(4,"a",15);L("click",function(){t(b);var d=M();return v(d.trackClick("viewTeamInMoma"))});G(5,"mat-icon",16);F()()}if(a&2){var c=N(3);a=M();w(1);C("disabled","NONE"===a.teamAction)("value",a.selectedTeam)("options",a.teamOptions)("includeEmptyOption",!1)("optionTemplate",c);w(3);Nf("href",a.getMomaTeamLink(),re)}},
ZXa=function(a){if(a&1){var b=r();D(0,"b-callout-actions")(1,"b-button",2);L("click",function(){t(b);var c=M();return v(c.openDialog())});Q(2);F()()}a&2&&(a=M(),w(2),jg(a.buttonName))},$Xa=function(){function a(){var c,d,e;return null==(c=window.google)?void 0:null==(d=c.corp)?void 0:null==(e=d.devops)?void 0:e.tools}var b=100;return new Promise(function(c,d){function e(){var f=a();null!=f?c(f):(setTimeout(e,b),b*=2)}e();setTimeout(function(){var f=a();null!=f?c(f):d("timeout: 5000")},5E3)})},aYa=
function(a){a&1&&bg(0)},bYa=function(a){a&1&&(I(0),P(1,aYa,1,0,"ng-container",49),K());if(a&2){M();var b=N(117);w(1);C("ngTemplateOutlet",b)}},dYa=function(a,b){a&1&&G(0,"b-list-field",51);a&2&&(a=b.ngIf,b=M(3),C("readonly",!0)("defaultLineCount",3)("title","Team")("type",b.ListFieldType.TEAM)("values",og(5,cYa,a)))},eYa=function(a){a&1&&(I(0),P(1,dYa,1,7,"b-list-field",50),T(2,"async"),K());a&2&&(a=M(2),w(1),C("ngIf",V(2,1,a.teamHovercardInputs$)))},gYa=function(a){if(a&1){var b=r();D(0,"div",53)(1,
"b-team-warning",54);L("updateTeam",function(){t(b);var h=M(3);h.issueFridge.poke(h.issueId);return v()});T(2,"async");T(3,"async");F()()}if(a&2){a=M().ngIf;var c=M().ngIf,d=M(),e,f;w(1);C("warningType",a)("componentId",c.componentId)("parentComponentId",(null==(e=V(2,4,d.component$))?null:e.parentComponentId)||0)("teamSuggestions",null!==(f=V(3,6,d.teamSuggestions$))&&void 0!==f?f:ng(8,fYa))}},hYa=function(a){a&1&&(I(0),P(1,gYa,4,9,"div",52),T(2,"async"),K());a&2&&(a=M(2),w(1),C("ngIf",V(2,1,a.shouldDisplayTeamSuggestions$)))},
jYa=function(a){if(a&1){var b=r();I(0);D(1,"b-edit-field",55,56);L("valueChange",function(f){t(b);var h=N(2),k=M(2);return v(iYa(k,h,null!==f&&void 0!==f?f:""))});T(3,"async");T(4,"async");T(5,"async");F();K()}if(a&2){a=M().ngIf;var c=M(),d,e;w(1);C("name","reporter")("title","Reporter")("type",c.FieldType.TEXT)("value",a.reporter)("user",null!==(d=a.reporterUser)&&void 0!==d?d:void 0)("isUser",!0)("readonly",!V(3,10,c.hasAclToEdit$))("disabled",!!V(4,12,c.isSaving$("reporter")))("showAvailability",
!0)("teamId",null!==(e=V(5,14,c.teamId$))&&void 0!==e?e:"")}},lYa=function(a){if(a&1){var b=r();D(0,"onedev-edit-field")(1,"onedev-field-label");Q(2,"Reporter");F();D(3,"onedev-field-value",57);T(4,"async");D(5,"b-user-picker",58);L("emailChange",function(e){t(b);var f=M(2);return v(kYa(f.editIssueService,f.issueId,e))});T(6,"async");T(7,"async");F()()()}if(a&2){a=M().ngIf;var c=M(),d;w(3);C("thinking",!!V(4,4,c.isSaving$("reporter")));w(2);C("user",a.reporterUser)("teamId",null!==(d=V(6,6,c.teamId$))&&
void 0!==d?d:"")("disabled",!V(7,8,c.hasAclToEdit$))}},mYa=function(a){a&1&&bg(0)},nYa=function(a){a&1&&(I(0),P(1,mYa,1,0,"ng-container",49),K());if(a&2){M();var b=N(119);w(1);C("ngTemplateOutlet",b)}},oYa=function(a,b){if(a&1){var c=r();D(0,"div",60);G(1,"div",61);D(2,"span",62);L("click",function(){var d=t(c).ngIf,e=M(3);return v(eq(e,d))})("keydown.enter",function(d){var e=t(c).ngIf;eq(M(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=t(c).ngIf;eq(M(3),
e);d.stopPropagation();return v(d.preventDefault())});T(3,"async");T(4,"async");Q(5);F()()}a&2&&(a=b.ngIf,b=M(3),w(2),Xf("disabled",!!V(3,6,b.isSaving$("status"))),C("matTooltip",a.description||""),Nf("aria-disabled",!!V(4,8,b.isSaving$("status")))("aria-label",a.displayText||null),w(3),S(" ",a.displayText," "))},pYa=function(a){a&1&&(I(0),P(1,oYa,6,10,"div",59),T(2,"async"),K());a&2&&(a=M(2),w(1),C("ngIf",V(2,1,a.issueStatusQuickAction$)))},qYa=function(a){a&1&&(G(0,"b-issue-card",63,64),T(2,"async"));
if(a&2){var b=N(1);a=M(2);C("onedevIsHovercardReady",b.init)("issueId",V(2,2,a.canonicalIssueId$))}},sYa=function(a){if(a&1){var b=r();D(0,"b-estimated-effort-row",65);L("effortChange",function(e){t(b);var f=M(2);return v(rYa(f.editIssueService,f.issueId,e))});T(1,"async");T(2,"async");T(3,"async");F()}if(a&2){a=M(2);var c,d;C("effort",null!==(c=V(1,3,a.effort$))&&void 0!==c?c:void 0)("effortSpec",null!==(d=V(2,5,a.effortSpec$))&&void 0!==d?d:void 0)("disabled",!V(3,7,a.hasAclToEdit$))}},tYa=function(a){a&
1&&(D(0,"div"),Q(1," Expanded access is turned on for this component. Assignees, verifiers and collaborators can edit issues in this component, and CC'd users can comment on them. "),D(2,"a",71),Q(3,"Learn more"),F()());a&2&&(a=M(3),w(2),C("href",wo(a.documentationLinks)+"#expanded-access",re))},uYa=function(a){a&1&&(D(0,"div",66)(1,"span",67),Q(2,"Expanded Access"),F(),D(3,"xap-bubble",68)(4,"xap-icon-trigger"),G(5,"mat-icon",69),F(),P(6,tYa,4,1,"ng-template",null,70,Eg),F()());if(a&2){var b=N(7);
w(3);C("panelTemplate",b)}},vYa=function(a){a&1&&(D(0,"span",77),T(1,"async"),Q(2),F());if(a&2){a=M().ngIf;var b=M(4);Xf("disabled",!!V(1,3,b.isSaving$("assignee")));w(2);S(" ",a.displayText," ")}},wYa=function(a,b){if(a&1){var c=r();D(0,"div",75);L("onHotkey",function(){var d=t(c).ngIf,e=M(4);return v(eq(e,d))})("click",function(){var d=t(c).ngIf,e=M(4);return v(eq(e,d))})("keydown.enter",function(d){var e=t(c).ngIf;eq(M(4),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=
t(c).ngIf;eq(M(4),e);d.stopPropagation();return v(d.preventDefault())});T(1,"async");G(2,"div",61);P(3,vYa,3,5,"span",76);T(4,"async");F()}a&2&&(a=b.ngIf,b=M(4),C("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),Nf("aria-disabled",!!V(1,5,b.isSaving$("assignee")))("aria-label",a.description),w(3),C("ngIf",V(4,7,b.hasAclToEdit$)))},xYa=function(a){a&1&&(I(0),P(1,wYa,5,9,"div",74),T(2,"async"),K());a&2&&(a=M(3),w(1),C("ngIf",V(2,1,a.issueAssigneeQuickAction$)))},zYa=
function(a){if(a&1){var b=r();I(0);D(1,"b-edit-field",72,73);L("onHotkey",function(){t(b);var f=N(2);return v(Xo(f,null,!0,!1))})("valueChange",function(f){t(b);var h=N(2),k=M(2);return v(yYa(k,h,null!==f&&void 0!==f?f:""))});T(3,"async");T(4,"async");T(5,"async");F();P(6,xYa,3,3,"ng-container",0);K()}if(a&2){a=M().ngIf;var c=M(),d,e;w(1);C("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("name","assignee")("title","Assignee")("type",c.FieldType.TEXT)("value",a.assignee)("user",null!==(d=a.assigneeUser)&&void 0!==
d?d:void 0)("isUser",!0)("readonly",!V(3,12,c.hasAclToEdit$))("disabled",!!V(4,14,c.isSaving$("assignee")))("showAvailability",!0)("teamId",null!==(e=V(5,16,c.teamId$))&&void 0!==e?e:"");w(5);C("ngIf",c.defaultAssigneeQuickActionEnabled)}},BYa=function(a){if(a&1){var b=r();D(0,"div",82);L("click",function(){t(b);var c=M(3);return v(AYa(c.editIssueService,c.issueId,""))});Q(1," Un-assign ");F()}},CYa=function(a,b){if(a&1){var c=r();D(0,"div",84);L("onHotkey",function(){var d=t(c).ngIf,e=M(4);return v(eq(e,
d))})("click",function(){var d=t(c).ngIf,e=M(4);return v(eq(e,d))})("keydown.enter",function(d){var e=t(c).ngIf;eq(M(4),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=t(c).ngIf;eq(M(4),e);d.stopPropagation();return v(d.preventDefault())});T(1,"async");T(2,"async");Q(3);F()}a&2&&(a=b.ngIf,b=M(4),Xf("disabled",!!V(1,7,b.isSaving$("assignee"))),C("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),Nf("aria-disabled",!!V(2,9,b.isSaving$("assignee")))("aria-label",
a.description),w(3),S(" ",a.displayText," "))},DYa=function(a){a&1&&(I(0),P(1,CYa,4,11,"div",83),T(2,"async"),K());a&2&&(a=M(3),w(1),C("ngIf",V(2,1,a.issueAssigneeQuickAction$)))},EYa=function(a){if(a&1){var b=r();D(0,"onedev-edit-field")(1,"onedev-field-label");Q(2,"Assignee");F();D(3,"onedev-field-value",57);T(4,"async");D(5,"b-user-picker",78,79);L("onHotkey",function(){t(b);var e=N(6);return v(e.openPopOver())})("emailChange",function(e){t(b);var f=M(2);return v(AYa(f.editIssueService,f.issueId,
e))});T(7,"async");T(8,"async");F();D(9,"div",80);P(10,BYa,2,0,"div",81);T(11,"async");P(12,DYa,3,3,"ng-container",0);T(13,"async");F()()()}if(a&2){a=M().ngIf;var c=M(),d;w(3);C("thinking",!!V(4,7,c.isSaving$("assignee")));w(2);C("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("user",a.assigneeUser)("teamId",null!==(d=V(7,9,c.teamId$))&&void 0!==d?d:"")("disabled",!V(8,11,c.hasAclToEdit$));w(5);C("ngIf",a.assigneeUser&&V(11,13,c.hasAclToEdit$));w(2);C("ngIf",c.defaultAssigneeQuickActionEnabled&&V(13,15,c.hasAclToEdit$))}},
GYa=function(a){if(a&1){var b=r();I(0);D(1,"b-edit-field",85,86);L("valueChange",function(f){t(b);var h=N(2),k=M(2);return v(FYa(k,h,null!==f&&void 0!==f?f:""))});T(3,"async");T(4,"async");T(5,"async");F();K()}if(a&2){a=M().ngIf;var c=M(),d,e;w(1);C("name","verifier")("title","Verifier")("type",c.FieldType.TEXT)("value",a.verifier)("user",null!==(d=a.verifierUser)&&void 0!==d?d:void 0)("isUser",!0)("readonly",!V(3,10,c.hasAclToEdit$))("disabled",!!V(4,12,c.isSaving$("verifier")))("showAvailability",
!0)("teamId",null!==(e=V(5,14,c.teamId$))&&void 0!==e?e:"")}},IYa=function(a){if(a&1){var b=r();D(0,"onedev-edit-field")(1,"onedev-field-label");Q(2,"Verifier");F();D(3,"onedev-field-value",57);T(4,"async");D(5,"b-user-picker",58);L("emailChange",function(e){t(b);var f=M(2);return v(HYa(f.editIssueService,f.issueId,e))});T(6,"async");T(7,"async");F()()()}if(a&2){a=M().ngIf;var c=M(),d;w(3);C("thinking",!!V(4,4,c.isSaving$("verifier")));w(2);C("user",a.verifierUser)("teamId",null!==(d=V(6,6,c.teamId$))&&
void 0!==d?d:"")("disabled",!V(7,8,c.hasAclToEdit$))}},JYa=function(a){a&1&&(D(0,"span"),Q(1," Remove me "),F())},KYa=function(a){a&1&&(D(0,"span"),Q(1," Add me "),F())},MYa=function(a){if(a&1){var b=r();D(0,"div",16);L("click",function(){t(b);var c=M(2);return v(LYa(c))})("keydown.enter",function(c){t(b);var d=M(2);LYa(d);c.stopPropagation();c.preventDefault();return v()})("keydown.space",function(c){t(b);var d=M(2);LYa(d);c.stopPropagation();c.preventDefault();return v()});T(1,"async");T(2,"async");
T(3,"async");T(4,"async");P(5,JYa,2,0,"span",0);T(6,"async");P(7,KYa,2,0,"span",0);T(8,"async");T(9,"async");F()}a&2&&(a=M(2),Xf("disabled",!!V(1,7,a.isSaving$("collaborators"))),C("matTooltip",V(4,13,a.isCurrentUserCollaborator$)?"Remove yourself from collaborators":"Add yourself to collaborators"),Nf("aria-disabled",!!V(2,9,a.isSaving$("collaborators")))("aria-label",V(3,11,a.isCurrentUserCollaborator$)?"Remove yourself from collaborators":"Add yourself to collaborators"),w(5),C("ngIf",V(6,15,a.isCurrentUserCollaborator$)),
w(2),C("ngIf",!V(8,17,a.isCurrentUserCollaborator$)&&V(9,19,a.hasAclToEdit$)))},NYa=function(a){a&1&&(D(0,"span"),Q(1," Un-CC me "),F())},OYa=function(a){a&1&&(D(0,"span"),Q(1," CC me "),F())},QYa=function(a){if(a&1){var b=r();D(0,"div",16);L("click",function(){t(b);var c=M(2);return v(PYa(c))})("keydown.enter",function(c){t(b);var d=M(2);PYa(d);c.stopPropagation();c.preventDefault();return v()})("keydown.space",function(c){t(b);var d=M(2);PYa(d);c.stopPropagation();c.preventDefault();return v()});
T(1,"async");T(2,"async");T(3,"async");T(4,"async");P(5,NYa,2,0,"span",0);T(6,"async");P(7,OYa,2,0,"span",0);T(8,"async");T(9,"async");F()}a&2&&(a=M(2),Xf("disabled",!!V(1,7,a.isSaving$("ccs"))),C("matTooltip",V(4,13,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),Nf("aria-disabled",!!V(2,9,a.isSaving$("ccs")))("aria-label",V(3,11,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),w(5),C("ngIf",V(6,15,a.isCurrentUserCCd$)),w(2),C("ngIf",!V(8,17,a.isCurrentUserCCd$)&&
V(9,19,a.isAllowedToEditCC$)))},RYa=function(a){a&1&&bg(0)},SYa=function(a){a&1&&(I(0),P(1,RYa,1,0,"ng-container",49),K());if(a&2){M();var b=N(121);w(1);C("ngTemplateOutlet",b)}},TYa=function(a){a&1&&G(0,"b-list-field",87);if(a&2){a=M().ngIf;var b=M(2);C("readonly",!0)("defaultLineCount",3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},UYa=function(a,b){a&1&&(I(0),P(1,TYa,1,6,"b-list-field",36),T(2,"async"),
K());a&2&&(a=b.ngIf,b=M(2),w(1),C("ngIf",V(2,1,b.shouldDisplayWtdmUi$)&&a.length))},VYa=function(a){a&1&&G(0,"b-list-field",87);if(a&2){a=M().ngIf;var b=M();C("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},XYa=function(a,b){a&1&&(D(0,"div"),bg(1,88),F());if(a&2){a=b.$implicit;M();var c=N(133);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,WYa,
a))}},YYa=function(a){a&1&&bg(0)},ZYa=function(a){a&1&&(I(0),P(1,YYa,1,0,"ng-container",49),K());if(a&2){M();var b=N(131);w(1);C("ngTemplateOutlet",b)}},$Ya=function(a){a&1&&G(0,"hr",89)},aZa=function(a){a&1&&bg(0)},bZa=function(a){a&1&&(I(0),P(1,aZa,1,0,"ng-container",49),K());if(a&2){M(2);var b=N(117);w(1);C("ngTemplateOutlet",b)}},cZa=function(a){a&1&&bg(0)},dZa=function(a){a&1&&(I(0),P(1,cZa,1,0,"ng-container",49),K());if(a&2){M(2);var b=N(119);w(1);C("ngTemplateOutlet",b)}},eZa=function(a){a&
1&&bg(0)},fZa=function(a){a&1&&(I(0),P(1,eZa,1,0,"ng-container",49),K());if(a&2){M(2);var b=N(121);w(1);C("ngTemplateOutlet",b)}},gZa=function(a,b){a&1&&(D(0,"div"),bg(1,88),F());if(a&2){a=b.$implicit;M(2);var c=N(133);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,WYa,a))}},hZa=function(a){a&1&&bg(0)},iZa=function(a){a&1&&(I(0),P(1,hZa,1,0,"ng-container",49),K());if(a&2){M(2);var b=N(131);w(1);C("ngTemplateOutlet",b)}},jZa=function(a){a&1&&(D(0,"collapsible-panel",90),T(1,"async"),P(2,
bZa,2,1,"ng-container",0),T(3,"async"),P(4,dZa,2,1,"ng-container",0),T(5,"async"),P(6,fZa,2,1,"ng-container",0),T(7,"async"),P(8,gZa,2,4,"div",37),T(9,"async"),P(10,iZa,2,1,"ng-container",0),T(11,"async"),F());if(a&2){a=M(2);var b;C("titleWhenCollapsed",null!==(b=V(1,8,a.showHiddenFieldsLabel$))&&void 0!==b?b:"")("titleWhenExpanded","Hide additional fields");w(2);C("ngIf",a.showSloStatus&&!V(3,10,a.isSloStatusPrimary$));w(2);C("ngIf",!V(5,12,a.isSeverityPrimary$));w(2);C("ngIf",a.showChangelists&&
!V(7,14,a.isChangelistPrimary$));w(2);C("ngForOf",V(9,16,a.hiddenCustomFields$))("ngForTrackBy",a.trackCustomField);w(2);C("ngIf",!V(11,18,a.isForgottenFourPrimary$))}},kZa=function(a){if(a&1){var b=r();D(0,"b-issue-slo-box",92);L("onSloStartTimeChange",function(h){t(b);var k=M(3);return v(k.editIssueService.updateSloStartTime(k.issueId,h.date))})("onSloEndTimeChange",function(h){t(b);var k=M(3);return v(k.editIssueService.updateSloEndTime(k.issueId,h.date))});T(1,"async");T(2,"async");T(3,"async");
T(4,"async");F()}if(a&2){a=M(2).ngIf;var c=M(),d,e,f;C("sloStatus",null!==(d=V(1,7,c.sloStatus$))&&void 0!==d?d:void 0)("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloId",null!==(e=V(2,9,c.sloId$))&&void 0!==e?e:void 0)("componentId",a.componentId)("isEditable",!!V(3,11,c.hasAclToEdit$))("issueCreationTimestamp",null!==(f=V(4,13,c.createdTimeMicros$))&&void 0!==f?f:0)}},lZa=function(a){a&1&&P(0,kZa,5,15,"ng-template",91);a&2&&(a=M(2),C("refreshable",a.refreshMonitor.getObservable()))},
nZa=function(a){if(a&1){var b=r();D(0,"b-edit-field",93);L("valueChange",function(d){t(b);var e=M(2);return v(mZa(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});T(1,"async");T(2,"async");F()}if(a&2){a=M().ngIf;var c=M();C("name","severity")("title","Severity")("type",c.FieldType.ENUM)("tooltip","Set severity, which reflects how much the issue affects the use of the product")("value",a.severity)("choices",c.severityChoices)("readonly",!V(1,8,c.hasAclToEdit$))("disabled",!!V(2,10,c.isSaving$("severity")))}},
oZa=function(a){if(a&1){var b=r();D(0,"insights-graph-btn",97);L("pressed",function(){t(b);var c=M(3).issueInsightsSidebarService;c.analytics.trackEvent(xp.SIDEBAR,"ingress-click");c.openSidebar("deployments");return v()});F()}},qZa=function(a){if(a&1){var b=r();D(0,"b-list-field",94);L("valuesChange",function(h){t(b);var k=M(2);return v(pZa(k.editIssueService,k.issueId,h.values))});T(1,"async");T(2,"async");D(3,"div",95);P(4,oZa,1,0,"insights-graph-btn",96);T(5,"async");F()();G(6,"b-list-field",
87);T(7,"async");T(8,"async");T(9,"async")}if(a&2){a=M().ngIf;var c=M(),d,e,f;C("readonly",!V(1,15,c.hasAclToEdit$))("defaultLineCount",3)("title","Changelists")("type",c.ListFieldType.CHANGELISTS)("values",a.changelist)("listFieldDisabled",!!V(2,17,c.isSaving$("changelists")));w(4);C("ngIf",V(5,19,c.issueInsightsSidebarService.shouldShowInsightsGraphButton$));w(2);Xf("bv2-issue-metadata-error",null==(d=V(7,21,c.pendingChangelists$))?null:d.hasError);C("readonly",!0)("defaultLineCount",3)("title",
"Pending Changelists")("type",c.ListFieldType.CHANGELISTS)("values",null!==(e=null==(e=V(8,23,c.pendingChangelists$))?null:e.cls)&&void 0!==e?e:ng(27,fYa))("tooltip",(null==(f=V(9,25,c.pendingChangelists$))?0:f.hasError)?"Error fetching pending CLs":"Pending changelists (auto-populated)")}},sZa=function(a){if(a&1){var b=r();D(0,"b-edit-field",98);L("valueChange",function(d){t(b);var e=M(2);return v(rZa(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});T(1,"csv");T(2,"async");T(3,"async");
F()}if(a&2){a=M().ngIf;var c=M();C("name","foundInVersion")("title","Found In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product affected by this issue (comma-separated list)")("value",V(1,8,a.foundInVersion))("readonly",!V(2,10,c.hasAclToEdit$))("disabled",!!V(3,12,c.isSaving$("foundInVersion")))}},uZa=function(a){if(a&1){var b=r();D(0,"b-edit-field",99);L("valueChange",function(d){t(b);var e=M(2);return v(tZa(e.editIssueService,e.issueId,null!==d&&void 0!==d?
d:""))});T(1,"csv");T(2,"async");T(3,"async");F()}if(a&2){a=M().ngIf;var c=M();C("name","targetedToVersion")("title","Targeted To")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)")("value",V(1,8,a.targetedToVersion))("readonly",!V(2,10,c.hasAclToEdit$))("disabled",!!V(3,12,c.isSaving$("targetedToVersion")))}},wZa=function(a){if(a&1){var b=r();D(0,"b-edit-field",98);L("valueChange",function(d){t(b);var e=
M(2);return v(vZa(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});T(1,"csv");T(2,"async");T(3,"async");F()}if(a&2){a=M().ngIf;var c=M();C("name","verifiedInVersion")("title","Verified In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue fix was verified (comma-separated list)")("value",V(1,8,a.verifiedInVersion))("readonly",!V(2,10,c.hasAclToEdit$))("disabled",!!V(3,12,c.isSaving$("verifiedInVersion")))}},yZa=function(a){if(a&1){var b=
r();D(0,"b-edit-field",100);L("valueChange",function(d){t(b);var e=M(2);return v(xZa(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:!1))});T(1,"async");T(2,"async");F()}if(a&2){a=M().ngIf;var c=M();C("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!V(1,7,c.hasAclToEdit$))("disabled",!!V(2,9,c.isSaving$("inProd")))}},zZa=function(a){a&1&&bg(0)},AZa=function(a){a&1&&bg(0)},BZa=function(a){a&1&&bg(0)},
CZa=function(a){a&1&&bg(0)},DZa=function(a){a&1&&(D(0,"div",4),P(1,zZa,1,0,"ng-container",49),P(2,AZa,1,0,"ng-container",49),P(3,BZa,1,0,"ng-container",49),P(4,CZa,1,0,"ng-container",49),F());if(a&2){M();var b=N(123),c=N(125),d=N(127),e=N(129);w(1);C("ngTemplateOutlet",b);w(1);C("ngTemplateOutlet",c);w(1);C("ngTemplateOutlet",d);w(1);C("ngTemplateOutlet",e)}},FZa=function(a,b){if(a&1){var c=r();D(0,"b-custom-field-editor",101);L("save",function(e){var f=t(c).$implicit,h=M(2);return v(EZa(h.editIssueService,
h.issueId,f.customFieldId,e))});T(1,"async");T(2,"async");F()}if(a&2){a=b.$implicit;b=M().ngIf;var d=M();C("issue",b)("field",a)("readonly",!V(1,4,d.hasAclToEdit$))("disabled",!!V(2,6,d.isSaving$(a.customFieldId)))}},LZa=function(a,b){if(a&1){var c=r();I(0);P(1,bYa,2,1,"ng-container",0);T(2,"async");P(3,eYa,3,3,"ng-container",0);P(4,hYa,3,3,"ng-container",0);T(5,"async");P(6,jYa,6,16,"ng-container",1);P(7,lYa,8,10,"ng-template",null,2,Eg);D(9,"b-edit-field",3);L("valueChange",function(H){t(c);var J=
M();return v(GZa(J.editIssueService,J.issueId,null!==H&&void 0!==H?H:""))});T(10,"async");T(11,"async");F();D(12,"div",4)(13,"b-edit-field",5);L("onHotkey",function(H){t(c);var J=M();(H=tpa("P"+H))&&HZa(J.editIssueService,J.issueId,H);return v()})("valueChange",function(H){t(c);var J=M();return v(HZa(J.editIssueService,J.issueId,null!==H&&void 0!==H?H:""))});T(14,"async");T(15,"async");F();P(16,nYa,2,1,"ng-container",0);T(17,"async");F();D(18,"div",6)(19,"b-edit-field",7);L("valueChange",function(H){t(c);
var J=M();return v(IZa(J,null!==H&&void 0!==H?H:""))});T(20,"async");T(21,"async");T(22,"async");T(23,"async");F();P(24,pYa,3,3,"ng-container",0);T(25,"async");F();D(26,"onedev-hovercard",null,8);P(28,qYa,3,4,"b-issue-card",9);F();P(29,sYa,4,9,"b-estimated-effort-row",10);T(30,"async");T(31,"async");D(32,"div",11)(33,"div",12)(34,"div",13)(35,"label");Q(36,"Access");F()();D(37,"div",14)(38,"span",15);Q(39);T(40,"async");F();D(41,"div",16);L("click",function(){t(c);var H=M();return v(H.toggleAccessLimits())})("keydown.enter",
function(H){t(c);var J=M();return v(J.toggleAccessLimitsWithKeystroke(H))})("keydown.space",function(H){t(c);var J=M();return v(J.toggleAccessLimitsWithKeystroke(H))});T(42,"async");T(43,"async");D(44,"span");Q(45);T(46,"async");F()()()();D(47,"onedev-hovercard",null,17)(49,"div",18)(50,"div",19)(51,"span",20);Q(52," Issue access level can only be set by Issue admins and it enables issue-level access control. ");D(53,"a",21);Q(54,"Learn more");F()()()()()();D(55,"div",22);T(56,"async");P(57,uYa,8,
1,"div",23);T(58,"async");D(59,"div",24);P(60,zYa,7,18,"ng-container",1);P(61,EYa,14,17,"ng-template",null,25,Eg);F();P(63,GYa,6,16,"ng-container",1);P(64,IYa,8,10,"ng-template",null,26,Eg);I(66);D(67,"b-collaborators-field",27,28);L("toggleAccessLimits",function(){t(c);var H=M();return v(H.toggleAccessLimits())})("valuesChange",function(H){t(c);var J=N(68),O=M();return v(JZa(O,J,H.values))});T(69,"async");T(70,"async");T(71,"async");D(72,"div",29);P(73,MYa,10,21,"div",30);T(74,"async");T(75,"async");
T(76,"async");F()();D(77,"onedev-hovercard",null,31)(79,"div",18)(80,"div",19)(81,"span",20);Q(82," Collaborators are users who are actively working on an issue. ");D(83,"a",32);Q(84,"Learn more.");F()()()()();D(85,"b-list-field",33,34);L("valuesChange",function(H){t(c);var J=N(86),O=M();return v(KZa(O,J,H.values))});T(87,"async");T(88,"async");T(89,"async");D(90,"div",29);P(91,QYa,10,21,"div",30);T(92,"async");T(93,"async");T(94,"async");F()();D(95,"onedev-hovercard",null,35)(97,"div",18)(98,"div",
19)(99,"span",20);Q(100," CC are users who want to receive updates. ");D(101,"a",32);Q(102,"Learn more.");F()()()()();K();F();P(103,SYa,2,1,"ng-container",0);T(104,"async");P(105,UYa,3,3,"ng-container",0);T(106,"async");P(107,VYa,1,6,"b-list-field",36);P(108,XYa,2,4,"div",37);T(109,"async");P(110,ZYa,2,1,"ng-container",0);T(111,"async");P(112,$Ya,1,0,"hr",38);T(113,"async");P(114,jZa,12,20,"collapsible-panel",39);T(115,"async");P(116,lZa,1,1,"ng-template",null,40,Eg);P(118,nZa,3,12,"ng-template",
null,41,Eg);P(120,qZa,10,28,"ng-template",null,42,Eg);P(122,sZa,4,14,"ng-template",null,43,Eg);P(124,uZa,4,14,"ng-template",null,44,Eg);P(126,wZa,4,14,"ng-template",null,45,Eg);P(128,yZa,3,11,"ng-template",null,46,Eg);P(130,DZa,5,4,"ng-template",null,47,Eg);P(132,FZa,3,8,"ng-template",null,48,Eg);K()}if(a&2){a=b.ngIf;var d=N(8),e=N(27),f=N(48),h=N(62),k=N(65),q=N(78),u=N(96);b=M();var x,y,E;w(1);C("ngIf",b.showSloStatus&&V(2,82,b.isSloStatusPrimary$));w(2);C("ngIf",b.sessionIsInternal);w(1);C("ngIf",
V(5,84,b.teamWarningType$));w(2);C("ngIf",!b.enablePeoplekitAc)("ngIfElse",d);w(3);C("name","type")("title","Type")("type",b.FieldType.ENUM)("value",a.type)("choices",b.typeChoices)("readonly",!V(10,86,b.hasAclToEdit$))("disabled",!!V(11,88,b.isSaving$("type")));w(4);C("name","priority")("title","Priority")("type",b.FieldType.ENUM)("tooltip","Set priority, which reflects how soon the issue should be fixed")("value",a.priority)("choices",b.priorityChoices)("hotkey",b.HOTKEYS.CHANGE_ISSUE_PRIORITY)("readonly",
!V(14,90,b.hasAclToEdit$))("disabled",!!V(15,92,b.isSaving$("priority")));w(3);C("ngIf",V(17,94,b.isSeverityPrimary$));w(3);C("name","status")("title","Status")("type",b.FieldType.ENUM)("value",a.status)("choices",null!==(x=V(20,96,b.statusChoices$))&&void 0!==x?x:ng(158,fYa))("readonly",!V(21,98,b.hasAclToEdit$))("disabled",!!V(22,100,b.isSaving$("status")))("onedevHovercardActive",!!V(23,102,b.canonicalIssueId$))("onedevHovercardTrigger",e);w(5);C("ngIf",V(25,104,b.hasAclToEdit$));w(5);C("ngIf",
b.sessionIsInternal&&V(30,106,b.isEffortEnabled$)&&!V(31,108,b.isWithinExternalComponent$));w(4);C("onedevHovercardTrigger",f)("onedevHovercardActive",!0)("onedevHovercardConfig",b.ACCESS_LIMITS_HOVERCARD_CONFIG);w(6);jg(b.getAccessLimitLevelDisplay(V(40,110,b.accessLimitLevel$)));w(2);C("matTooltip",V(43,114,b.hasAclToAdmin$)?"Manage issue level access limits(Press Alt + Right arrow for more information)":"View issue level access limits(Press Alt + Right arrow for more information)");Nf("aria-label",
V(42,112,b.hasAclToAdmin$)?"Edit":"View");w(4);S(" ",V(46,116,b.hasAclToAdmin$)?"Edit":"View"," ");w(8);C("href",b.documentationLinks.getIssueAccessLimit(),re);w(2);Xf("implicit-access-box",V(56,118,b.isImplicitAccessEnabled$));w(2);C("ngIf",V(58,120,b.isImplicitAccessEnabled$));w(3);C("ngIf",!b.enablePeoplekitAc)("ngIfElse",h);w(3);C("ngIf",!b.enablePeoplekitAc)("ngIfElse",k);w(4);C("readonly",!V(69,122,b.hasAclToEdit$))("collaborators",a.collaborators)("collaboratorsUsers",a.collaboratorsUsers)("listFieldDisabled",
!!V(70,124,b.isSaving$("collaborators")))("teamId",null!==(y=V(71,126,b.teamId$))&&void 0!==y?y:"")("isCollapsible",!0)("onedevHovercardTrigger",q)("onedevHovercardActive",!0)("onedevHovercardConfig",b.USER_FIELD_HOVERCARD_CONFIG);w(6);C("ngIf",V(74,128,b.isCurrentUserCollaborator$)||!V(75,130,b.isCurrentUserCollaborator$)&&V(76,132,b.hasAclToEdit$));w(12);ig("collapsiblePanelTitle","",a.cc.length," ",1===a.cc.length?"user":"users","");C("defaultLineCount",5)("readonly",!V(87,134,b.isAllowedToEditCC$))("type",
b.ListFieldType.USERCHIP)("isUser",!0)("values",a.cc)("users",a.ccUsers)("listFieldDisabled",!!V(88,136,b.isSaving$("ccs")))("isCollapsible",!0)("isExpanded",!0)("onedevHovercardTrigger",u)("onedevHovercardActive",!0)("onedevHovercardConfig",b.USER_FIELD_HOVERCARD_CONFIG)("teamId",null!==(E=V(89,138,b.teamId$))&&void 0!==E?E:"");w(6);C("ngIf",V(92,140,b.isCurrentUserCCd$)||!V(93,142,b.isCurrentUserCCd$)&&V(94,144,b.isAllowedToEditCC$));w(12);C("ngIf",b.showChangelists&&V(104,146,b.isChangelistPrimary$));
w(2);C("ngIf",V(106,148,b.workspaces$));w(2);C("ngIf",!b.sessionIsExternal&&(null==a.postmortems?null:a.postmortems.length));w(1);C("ngForOf",V(109,150,b.visibleCustomFields$))("ngForTrackBy",b.trackCustomField);w(2);C("ngIf",V(111,152,b.isForgottenFourPrimary$));w(2);C("ngIf",V(113,154,b.hasHiddenFields$));w(2);C("ngIf",V(115,156,b.hasHiddenFields$))}},MZa=function(a,b){if(a&1){var c=r();I(0);D(1,"a",13);Q(2);F();D(3,"button",14);L("click",function(){var d=t(c).ngIf,e=M();return v(e.copyIssueId(d))});
G(4,"mat-icon",15);F();K()}a&2&&(a=b.ngIf,w(1),gg("href","/issues/",a,"",re),w(1),S(" ",a," "))},OZa=function(a){if(a&1){var b=r();I(0);D(1,"span");Q(2);F();D(3,"button",32);L("click",function(){t(b);var c=M(2);return v(NZa(c))});G(4,"mat-icon",33);F();K()}a&2&&(a=M().ngIf,w(1),Nf("title",a.snapshot[0].title),w(1),S(" ",a.snapshot[0].title," "),w(1),C("matTooltipShowDelay",500))},PZa=function(a){if(a&1){var b=r();D(0,"button",39);L("click",function(){t(b);var c=M(3);return v(fq(c))});Q(1,"Cancel");
F()}},QZa=function(a){a&1&&(I(0),Q(1," Update title "),K())},RZa=function(a){if(a&1){var b=r();I(0);D(1,"mat-form-field",34)(2,"textarea",35);L("ngModelChange",function(d){t(b);var e=M(2);return v(e.draftTitle=d)});F()();D(3,"div",36);P(4,PZa,2,0,"button",37);D(5,"button",38);L("click",function(){t(b);var d=M(2);return v(d.saveTitle())});P(6,QZa,2,0,"ng-container",11);F()();K()}if(a&2){a=M(2);var c=N(16);w(2);C("cdkTextareaAutosize",!0)("cdkAutosizeMinRows",1)("ngModel",a.draftTitle)("bFocus",!0);
w(2);C("ngIf",!a.isSavingTitle);w(1);C("disabled",a.isSavingTitle);w(1);C("ngIf",!a.isSavingTitle)("ngIfElse",c)}},SZa=function(a){a&1&&(D(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"div"),Q(3," AI-generated summaries may contain inaccurate or offensive information that does not represent Google's views. Buganizer and other AI API usage does not store or log the issue's contents for any training purposes. "),F()()())},TZa=function(a){if(a&1){var b=r();D(0,"button",49);L("click",function(){t(b);
var c=M(3);c.isLoadingIssueSummary=!0;c.issueSummaryRequested$.next();c.isIssueSummaryExpanded=!0;return v()});Q(1," Generate ");F()}},UZa=function(a){a&1&&G(0,"mat-icon",51)},VZa=function(a){a&1&&G(0,"mat-icon",52)},WZa=function(a){if(a&1){var b=r();D(0,"button",50);L("click",function(){t(b);var c=M(3);return v(c.isIssueSummaryExpanded=!c.isIssueSummaryExpanded)});P(1,UZa,1,0,"mat-icon",29);P(2,VZa,1,0,"mat-icon",30);F()}a&2&&(a=M(3),C("matTooltipShowDelay",1E3),Nf("aria-expanded",a.isIssueSummaryExpanded),
w(1),C("ngIf",!a.isIssueSummaryExpanded),w(1),C("ngIf",a.isIssueSummaryExpanded))},XZa=function(a){a&1&&bg(0,53);if(a&2){M(3);var b=N(16);C("ngTemplateOutlet",b)}},YZa=function(a){a&1&&(I(0),D(1,"div",40)(2,"div",20)(3,"div",21),G(4,"mat-icon",41),D(5,"span"),Q(6,"AI-GENERATED SUMMARY"),F(),D(7,"button",42),G(8,"mat-icon",43),F(),P(9,SZa,4,0,"ng-template",null,44,Eg),F(),P(11,TZa,2,0,"button",45),P(12,WZa,3,4,"button",46),F(),D(13,"div",47),P(14,XZa,1,1,"ng-container",48),D(15,"div"),Q(16),T(17,"async"),
F()()(),K());if(a&2){var b=N(10);a=M(2);var c;w(7);C("xapInlineDialog",b)("dialogTabIndex",0);w(4);C("ngIf",!a.hasIssueSummary&&!a.isLoadingIssueSummary);w(1);C("ngIf",a.hasIssueSummary);w(1);Xf("hidden",!a.isIssueSummaryExpanded);w(1);C("ngIf",a.isLoadingIssueSummary);w(2);S(" ",null==(c=V(17,8,a.issueSummary$))?null:c.summary," ")}},ZZa=function(a){a&1&&(D(0,"span"),Q(1," No update yet "),F())},$Za=function(a){if(a&1){var b=r();D(0,"button",54);L("click",function(){t(b);var c=M(2);return v(c.editStatusUpdate())});
G(1,"mat-icon",33);F()}a&2&&C("matTooltipShowDelay",1E3)},a_a=function(a){a&1&&G(0,"mat-icon",51)},b_a=function(a){a&1&&G(0,"mat-icon",52)},c_a=function(a){if(a&1){var b=r();D(0,"button",55);L("click",function(){t(b);var c=M(2);return v(c.isStatusUpdateExpanded=!c.isStatusUpdateExpanded)});P(1,a_a,1,0,"mat-icon",29);P(2,b_a,1,0,"mat-icon",30);F()}a&2&&(a=M(2),C("matTooltipShowDelay",1E3),Nf("aria-expanded",a.isStatusUpdateExpanded),w(1),C("ngIf",!a.isStatusUpdateExpanded),w(1),C("ngIf",a.isStatusUpdateExpanded))},
d_a=function(a,b){a&1&&(G(0,"b-note-container",59),T(1,"async"));if(a&2){a=b.ngIf;b=M().ngIf;var c=M().ngIf,d=M(2),e;C("issueId",a)("note",c)("issueAccessLevel",V(1,4,d.accessLevel$))("formattingMode",null!==(e=b.formattingMode)&&void 0!==e?e:d.FormattingMode.PLAIN)}},e_a=function(a){a&1&&(D(0,"div",57),P(1,d_a,2,6,"b-note-container",58),T(2,"async"),F());if(a&2){a=M().ngIf;var b=M(2);w(1);C("ngIf",""!==a.unlinkifiedComment&&V(2,1,b.issueId$))}},f_a=function(a){a&1&&(I(0),P(1,e_a,3,3,"div",56),T(2,
"async"),K());a&2&&(a=M(2),w(1),C("ngIf",V(2,1,a.statusUpdate$)))},g_a=function(a){a&1&&(D(0,"span"),Q(1," No description yet "),F())},i_a=function(a){if(a&1){var b=r();D(0,"button",63);L("click",function(){t(b);var c=M(3);return v(h_a(c))});G(1,"mat-icon",33);F()}a&2&&C("matTooltipShowDelay",1E3)},j_a=function(a){a&1&&G(0,"mat-icon",51)},k_a=function(a){a&1&&G(0,"mat-icon",52)},l_a=function(a){if(a&1){var b=r();D(0,"button",64);L("click",function(){t(b);var c=M(3);return v(c.isDescriptionExpanded=
!c.isDescriptionExpanded)});P(1,j_a,1,0,"mat-icon",29);P(2,k_a,1,0,"mat-icon",30);F()}a&2&&(a=M(3),C("matTooltipShowDelay",1E3),Nf("aria-expanded",a.isDescriptionExpanded),w(1),C("ngIf",!a.isDescriptionExpanded),w(1),C("ngIf",a.isDescriptionExpanded))},m_a=function(a,b){a&1&&(G(0,"b-note-container",59),T(1,"async"));if(a&2){a=b.ngIf;b=M().ngIf;var c=M(2).ngIf,d=M(2),e;C("issueId",a)("note",b)("issueAccessLevel",V(1,4,d.accessLevel$))("formattingMode",null!==(e=c[0].formattingMode)&&void 0!==e?e:d.FormattingMode.PLAIN)}},
n_a=function(a){if(a&1){var b=r();D(0,"div",69)(1,"a",70);L("click",function(){t(b);var c=M(5);return v(c.showFullDescription=!0)});Q(2," Show more ");F()()}},o_a=function(a,b){a&1&&(I(0),D(1,"div",67),P(2,m_a,2,6,"b-note-container",58),T(3,"async"),F(),P(4,n_a,3,0,"div",68),K());a&2&&(a=b.ngIf,b=M(4),w(1),Xf("full-height",b.showFullDescription),w(1),C("ngIf",""!==a.unlinkifiedComment&&V(3,4,b.issueId$)),w(2),C("ngIf",!b.showFullDescription&&b.descriptionHasMore))},p_a=function(a){a&1&&(I(0),D(1,
"div",65,66),P(3,o_a,5,6,"ng-container",4),T(4,"async"),T(5,"async"),F(),K());a&2&&(a=M(3),w(3),C("ngIf",V(4,1,a.hasDescription$)&&V(5,3,a.firstNote$)))},q_a=function(a){a&1&&(I(0),D(1,"div",60)(2,"div",20)(3,"div",21)(4,"span"),Q(5,"DESCRIPTION"),F()(),D(6,"div",23),P(7,g_a,2,0,"span",4),T(8,"async"),P(9,i_a,2,1,"button",61),T(10,"async"),T(11,"async"),P(12,l_a,3,4,"button",62),T(13,"async"),F()(),P(14,p_a,6,5,"ng-container",4),F(),K());a&2&&(a=M(2),w(7),C("ngIf",!V(8,4,a.hasDescription$)),w(2),
C("ngIf",(a.isDescriptionExpanded||!V(10,6,a.hasDescription$))&&V(11,8,a.userCanEditDescription$)),w(3),C("ngIf",V(13,10,a.hasDescription$)),w(2),C("ngIf",a.isDescriptionExpanded))},r_a=function(a){a&1&&G(0,"mat-icon",51)},s_a=function(a){a&1&&G(0,"mat-icon",52)},t_a=function(a){a&1&&(D(0,"div",71),G(1,"edit-issue-metadata",72),F());a&2&&(a=M().ngIf,w(1),C("issueId",a.issueId))},u_a=function(a){if(a&1){var b=r();I(0);D(1,"div",16)(2,"div",17);P(3,OZa,5,3,"ng-container",4);P(4,RZa,7,8,"ng-container",
4);F()();D(5,"div",18);P(6,YZa,18,10,"ng-container",4);T(7,"async");D(8,"div",19)(9,"div",20)(10,"div",21);G(11,"mat-icon",22);D(12,"span");Q(13," STATUS UPDATE ");F()();D(14,"div",23);P(15,ZZa,2,0,"span",4);T(16,"async");P(17,$Za,2,1,"button",24);T(18,"async");T(19,"async");P(20,c_a,3,4,"button",25);T(21,"async");F()();P(22,f_a,3,3,"ng-container",4);T(23,"async");F();P(24,q_a,15,12,"ng-container",11);T(25,"async");D(26,"div",26)(27,"div",20)(28,"div",21);G(29,"mat-icon",27);D(30,"span");Q(31,"FIELDS");
F()();D(32,"button",28);L("click",function(){t(b);var d=M();return v(d.isFieldsExpanded=!d.isFieldsExpanded)});P(33,r_a,1,0,"mat-icon",29);P(34,s_a,1,0,"mat-icon",30);F()();P(35,t_a,2,1,"div",31);F()();K()}if(a&2){a=M();var c=N(16);w(3);C("ngIf",!a.editTitleMode);w(1);C("ngIf",a.editTitleMode);w(2);C("ngIf",a.enableLlmSummarization&&V(7,14,a.isSummarizable$));w(9);C("ngIf",!V(16,16,a.hasStatusUpdate$));w(2);C("ngIf",(a.isStatusUpdateExpanded||!V(18,18,a.hasStatusUpdate$))&&V(19,20,a.userCanEditStatusUpdate$));
w(3);C("ngIf",V(21,22,a.hasStatusUpdate$));w(2);C("ngIf",a.isStatusUpdateExpanded&&V(23,24,a.statusUpdateNote$));w(2);C("ngIf",V(25,26,a.events$))("ngIfElse",c);w(8);C("matTooltipShowDelay",1E3);Nf("aria-expanded",a.isFieldsExpanded);w(1);C("ngIf",!a.isFieldsExpanded);w(1);C("ngIf",a.isFieldsExpanded);w(1);C("ngIf",a.isFieldsExpanded)}},v_a=function(a){a&1&&(D(0,"div",73),G(1,"b-spinner"),F())},w_a=function(a){a&1&&(I(0),Q(1," This issue has not been modified since "),G(2,"b-formatted-date-time",
4),Q(3," and is scheduled for deletion on "),D(4,"strong"),G(5,"b-formatted-date-time",4),F(),Q(6,". "),K());a&2&&(a=M(2),w(2),C("mode","date")("timestamp",a.modifiedTime),w(3),C("mode","date")("timestamp",a.retentionExpireTime))},x_a=function(a){a&1&&Q(0," This issue is retained indefinitely. ")},y_a=function(a){a&1&&(I(0),P(1,w_a,7,4,"ng-container",1),P(2,x_a,1,0,"ng-template",null,2,Eg),D(4,"a",3),Q(5,"Learn more"),F(),K());if(a&2){var b=N(3);a=M();w(1);C("ngIf",a.retentionState.retentionPeriod)("ngIfElse",
b);w(3);C("href",a.documentationLink,re)}},z_a=function(a){a&1&&(D(0,"b-base-chip",1)(1,"div",2),G(2,"retention-text",3),F(),D(3,"div",4),G(4,"retention-help-text",5),F()());a&2&&(a=M(),C("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),w(2),C("retentionState",a.retentionState)("compactMode",a.compactMode),w(2),C("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},A_a=function(a){var b=void 0===b?new Date:b;var c=a.retentionPeriod;
return b.getTime()>=zn(a.scheduledDeletionTime)-Math.max(12096E5,.2*(c?1E3*c.seconds+(c.nanos||0)/1E6:0))},B_a=function(a){if(a&1){var b=r();D(0,"div",2);L("click",function(){t(b);var c=M();return v(c._onBackdropClicked())});F()}a&2&&(a=M(),Xf("mat-drawer-shown",a._isShowingBackdrop()))},C_a=function(a){a&1&&(D(0,"mat-drawer-content"),fg(1,2),F())},D_a=function(){return!1},E_a=function(a){if(a&1){var b=r();D(0,"div",2);L("click",function(){t(b);var c=M();return v(c._onBackdropClicked())});F()}a&2&&
(a=M(),Xf("mat-drawer-shown",a._isShowingBackdrop()))},F_a=function(a){a&1&&(D(0,"mat-sidenav-content"),fg(1,2),F())},G_a=function(a){a&1&&bg(0)},J_a=function(a){if(a&1){var b=r();D(0,"mat-sidenav-container",3,4)(2,"mat-sidenav",5)(3,"issue-sidebar",6);L("closeSidebar",function(){t(b);var e=M();return v(e.isIssueSidebarOpen=!1)})("navigateToNextIssue",function(){t(b);var e=M();return v(H_a(e))})("navigateToPreviousIssue",function(){t(b);var e=M();return v(I_a(e))});F()();D(4,"mat-sidenav-content");
P(5,G_a,1,0,"ng-container",7);F()()}if(a&2){a=M();var c=N(3),d;Xf("sidebar-enabled",a.isIssueSidebarEnabled);w(2);C("opened",a.isIssueSidebarOpen);w(1);C("issueId",null==(d=a.getFocusedIssue())?null:d.issueId);w(2);C("ngTemplateOutlet",c)}},K_a=function(a){a&1&&bg(0)},L_a=function(a,b){a&1&&(D(0,"th",29),P(1,K_a,1,0,"ng-container",30),F());a&2&&(a=b.column,b=M(2),Nf("data-stable-column-name",a.name),w(1),C("ngIf",b.isIssueGridColumn(a)))},M_a=function(a){a&1&&bg(0)},N_a=function(a,b){a&1&&(D(0,"th",
31),P(1,M_a,1,0,"ng-container",30),F());a&2&&(a=b.column,b=M(2),Nf("data-stable-column-name",a.name),w(1),C("ngIf",b.isIssueGridColumn(a)))},P_a=function(a){if(a&1){var b=r();I(0);D(1,"mat-pseudo-checkbox",33);L("click",function(c){t(b);var d=M(3);c.stopPropagation();return v(d.toggleAllIssueSelection())})("keydown.enter",function(c){t(b);var d=M(3);c.stopPropagation();return v(d.toggleAllIssueSelection())})("keydown.space",function(c){t(b);var d=M(3);c.stopPropagation();return v(d.toggleAllIssueSelection())});
F();K()}a&2&&(a=M(3),w(1),C("state",a.getHeaderCheckboxState()),Nf("aria-checked",O_a(a)))},Q_a=function(a,b){a&1&&(D(0,"th",32),P(1,P_a,2,2,"ng-container",30),F());a&2&&(a=b.column,b=M(2),Nf("data-stable-column-name",a.name),w(1),C("ngIf",b.isIssueGridColumn(a)))},R_a=function(a){a&1&&bg(0)},S_a=function(a,b){a&1&&(D(0,"th"),P(1,R_a,1,0,"ng-container",30),F());a&2&&(a=b.column,b=M(2),Nf("data-stable-column-name",a.name),w(1),C("ngIf",b.isIssueGridColumn(a)))},T_a=function(a){a&1&&(I(0),G(1,"pop-grid-default-th",
34),K());a&2&&(a=M().column,w(1),C("column",a))},U_a=function(a,b){a&1&&(D(0,"th"),P(1,T_a,2,1,"ng-container",30),F());a&2&&(a=b.column,b=M(2),Nf("data-stable-column-name",a.name),w(1),C("ngIf",b.isIssueGridColumn(a)))},V_a=function(a){if(a&1){var b=r();D(0,"b-column-picker",37);L("selectedColumnsChange",function(d){t(b);var e=M(4);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return v()});F()}if(a&2){a=M(2).column;var c=M(2);C("column",a)("availableColumns",c.availableColumns)("selectedColumns",
c.columns)}},W_a=function(a){a&1&&G(0,"pop-grid-default-th",34);a&2&&(a=M(2).column,C("column",a))},X_a=function(a){a&1&&(I(0),P(1,V_a,1,3,"b-column-picker",35),P(2,W_a,1,1,"pop-grid-default-th",36),K());a&2&&(a=M(3),w(1),C("ngIf",a.enableColumnSaving),w(1),C("ngIf",!a.enableColumnSaving))},Y_a=function(a,b){a&1&&(D(0,"th"),P(1,X_a,3,2,"ng-container",30),F());a&2&&(a=b.column,b=M(2),Nf("data-stable-column-name",a.name),w(1),C("ngIf",b.isIssueGridColumn(a)))},Z_a=function(a){a&1&&bg(0)},$_a=function(a){a&
1&&(D(0,"td",29),P(1,Z_a,1,0,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},a0a=function(a){a&1&&bg(0)},b0a=function(a){a&1&&(D(0,"td",38),P(1,a0a,1,0,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},c0a=function(a){if(a&1){var b=r();I(0);D(1,"mat-pseudo-checkbox",39);L("click",function(c){t(b);var d=M(),e=d.index;d=d.row;var f=M(2);c.stopPropagation();return v(f.onCheckboxClicked(c,e,d))});F();K()}a&2&&(a=M().row,w(1),C("state",a.selected?"checked":"unchecked"),Nf("aria-label","Select issue "+
a.issueId)("aria-checked",a.selected))},d0a=function(a){a&1&&(D(0,"td",32),P(1,c0a,2,3,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},e0a=function(a){if(a&1){var b=r();I(0);D(1,"b-star-toggle",41);L("starClicked",function(){t(b);var d=M().row,e=M(2);return v(e.toggleStar(d))});F();K()}if(a&2){a=M().row;var c=M(2);w(1);C("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},f0a=function(a){a&1&&(D(0,"td",40),P(1,
e0a,2,4,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},g0a=function(a){a&1&&(I(0),D(1,"span"),Q(2),F(),K());a&2&&(a=M().row,w(1),Nf("title",a.position),w(1),S(" ",a.position," "))},h0a=function(a){a&1&&(D(0,"td"),P(1,g0a,3,2,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},i0a=function(a){a&1&&(I(0),D(1,"a",46),Q(2),F(),K());if(a&2){a=M(2).row;var b=M(2);w(1);C("href",b.paths.editIssue(a.issueId),re);Nf("title",a.title);w(1);S(" ",a.issueId," ")}},j0a=function(a){a&1&&(I(0),D(1,"b-issue-id-picker",
47),L("click",function(b){return b.stopPropagation()}),F(),K());a&2&&(a=M(2).row,w(1),C("issueId",a.issueId)("showCopyOptions",!1),Nf("title",a.title))},k0a=function(a){a&1&&(I(0)(1,43),P(2,i0a,3,3,"ng-container",44),P(3,j0a,2,3,"ng-container",45),K()());a&2&&(a=M(3),w(1),C("ngSwitch",null==a.listViewPrefs?null:null==a.listViewPrefs.modeForField?null:a.listViewPrefs.modeForField.id),w(2),C("ngSwitchCase","copy"))},l0a=function(a){a&1&&(D(0,"td",42),P(1,k0a,4,2,"ng-container",30),F());a&2&&(M(2),w(1),
C("ngIf",!0))},m0a=function(a){a&1&&G(0,"archived-issue-indicator")},n0a=function(a,b){a&1&&G(0,"b-hotlist-chip-smart",58);a&2&&C("id",b.$implicit)("removable",!1)},o0a=function(a){a&1&&(D(0,"div",56),P(1,n0a,1,2,"b-hotlist-chip-smart",57),F());a&2&&(a=M(2).row,w(1),C("ngForOf",a.hotlistId))},p0a=function(a){a&1&&(I(0),D(1,"div",49),P(2,m0a,1,0,"archived-issue-indicator",30),G(3,"b-access-level-indicator",50)(4,"b-tracker-chip-smart",51)(5,"b-retention-chip",52),D(6,"div",53)(7,"a",54),Q(8),F()(),
P(9,o0a,2,1,"div",55),F(),K());if(a&2){a=M().row;var b=M(2);w(1);Xf("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);w(1);C("ngIf",a.archived);w(1);C("accessLevel",a.accessLevel)("compactMode",!0);w(1);C("trackerId",a.trackerId)("compactMode",!0);w(1);C("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);w(2);C("href",b.paths.editIssue(a.issueId),re);Nf("title",a.title);w(1);S(" ",a.title," ");w(1);C("ngIf",b.listViewPrefs&&
b.listViewPrefs.showHotlists)}},q0a=function(a){a&1&&(D(0,"td",48),P(1,p0a,10,15,"ng-container",30),F());a&2&&(a=M(2),Xf("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles),w(1),C("ngIf",!0))},s0a=function(a){a&1&&(I(0),D(1,"div",60),Q(2),F(),K());if(a&2){a=M().row;var b=M(2);w(1);C("ngClass",qg(r0a,b.isLowPriority(a),b.isHighPriority(a),b.isP0Priority(a)));w(1);S(" P",a.priority," ")}},t0a=function(a){a&1&&(D(0,"td",59),P(1,s0a,3,6,"ng-container",30),F());a&2&&(M(2),w(1),
C("ngIf",!0))},u0a=function(a){a&1&&(I(0),D(1,"div",60),Q(2),F(),K());a&2&&(a=M().row,M(2),w(1),C("ngClass",qg(r0a,2<=Number(a.severity),2>Number(a.severity),0===Number(a.severity))),w(1),S(" S",a.severity," "))},v0a=function(a){a&1&&(D(0,"td",61),P(1,u0a,3,6,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},w0a=function(a){a&1&&G(0,"mat-icon",66);if(a&2){a=M().$implicit;var b=M(4);C("svgIcon",b.ISSUE_STATUS_JS_ICON_NAME[a])}},x0a=function(a){a&1&&(I(0),Q(1),K());if(a&2){a=M().$implicit;var b=
M(4);w(1);jg(b.STATUS_JS_TERSE[a])}},y0a=function(a){a&1&&(D(0,"span"),Q(1),F());if(a&2){a=M().$implicit;var b=M(4);$f("chippy status-",a," margin-left-auto");w(1);S(" ",b.STATUS_JS_TERSE[a]," ")}},z0a=function(a,b){a&1&&(I(0),D(1,"span",63),P(2,w0a,1,1,"mat-icon",64),P(3,x0a,2,1,"ng-container",45),P(4,y0a,2,4,"span",65),F(),K());a&2&&(a=b.$implicit,b=M(4),w(1),C("ngSwitch",null==b.listViewPrefs?null:null==b.listViewPrefs.fieldStatus?null:b.listViewPrefs.fieldStatus.mode)("title",b.STATUS_JS_FULL_TEXT[a]===
b.STATUS_JS_TERSE[a]?"":b.STATUS_JS_FULL_TEXT[a]),w(1),C("ngSwitchCase","icon"),w(1),C("ngSwitchCase","plain"))},A0a=function(a){a&1&&(I(0),P(1,z0a,5,4,"ng-container",30),K());a&2&&(a=M().row,w(1),C("ngIf",a.status))},B0a=function(a){a&1&&(D(0,"td",62),P(1,A0a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},C0a=function(a){a&1&&(I(0),Q(1),T(2,"enumToHuman"),K());a&2&&(a=M().row,w(1),S(" ",V(2,1,a.type)," "))},D0a=function(a){a&1&&(D(0,"td",67),P(1,C0a,3,3,"ng-container",30),F());a&2&&(M(2),
w(1),C("ngIf",!0))},E0a=function(a){a&1&&(D(0,"b-person-hovercard",70),T(1,"omitObfuscatedEmail"),Q(2),F());a&2&&(a=M(2).row,C("email",V(1,2,a.reporter)),w(2),S(" ",a.reporter," "))},F0a=function(a){a&1&&(D(0,"span"),Q(1,"--"),F())},G0a=function(a){a&1&&(I(0),P(1,E0a,3,4,"b-person-hovercard",69),T(2,"omitObfuscatedEmail"),P(3,F0a,2,0,"span",30),K());a&2&&(a=M().row,w(1),C("ngIf",V(2,2,a.reporter)),w(2),C("ngIf",!a.reporter))},H0a=function(a){a&1&&(D(0,"td",68),P(1,G0a,4,4,"ng-container",30),F());
a&2&&(M(2),w(1),C("ngIf",!0))},I0a=function(a){a&1&&(D(0,"b-person-hovercard",70),T(1,"omitObfuscatedEmail"),Q(2),F());a&2&&(a=M(2).row,C("email",V(1,2,a.assignee)),w(2),S(" ",a.assignee," "))},J0a=function(a){a&1&&(D(0,"span"),Q(1,"--"),F())},K0a=function(a){a&1&&(I(0),P(1,I0a,3,4,"b-person-hovercard",69),T(2,"omitObfuscatedEmail"),P(3,J0a,2,0,"span",30),K());a&2&&(a=M().row,w(1),C("ngIf",V(2,2,a.assignee)),w(2),C("ngIf",!a.assignee))},L0a=function(a){a&1&&(D(0,"td",68),P(1,K0a,4,4,"ng-container",
30),F());a&2&&(M(2),w(1),C("ngIf",!0))},M0a=function(a){a&1&&(D(0,"b-person-hovercard",70),T(1,"omitObfuscatedEmail"),Q(2),F());a&2&&(a=M(2).row,C("email",V(1,2,a.verifier)),w(2),S(" ",a.verifier," "))},N0a=function(a){a&1&&(D(0,"span"),Q(1,"--"),F())},O0a=function(a){a&1&&(I(0),P(1,M0a,3,4,"b-person-hovercard",69),T(2,"omitObfuscatedEmail"),P(3,N0a,2,0,"span",30),K());a&2&&(a=M().row,w(1),C("ngIf",V(2,2,a.verifier)),w(2),C("ngIf",!a.verifier))},P0a=function(a){a&1&&(D(0,"td",68),P(1,O0a,4,4,"ng-container",
30),F());a&2&&(M(2),w(1),C("ngIf",!0))},Q0a=function(a){a&1&&(I(0),D(1,"span"),T(2,"arrayToHuman"),Q(3),T(4,"arrayToHuman"),F(),K());a&2&&(a=M().row,w(1),Nf("title",V(2,2,a.cc)),w(2),S(" ",V(4,4,a.cc)," "))},R0a=function(a){a&1&&(D(0,"td",68),P(1,Q0a,5,6,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},S0a=function(a){a&1&&(I(0),D(1,"span"),T(2,"arrayToHuman"),Q(3),T(4,"arrayToHuman"),F(),K());a&2&&(a=M().row,w(1),Nf("title",V(2,2,a.changelist)),w(2),S(" ",V(4,4,a.changelist)," "))},T0a=function(a){a&
1&&(D(0,"td",68),P(1,S0a,5,6,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},U0a=function(a){a&1&&(I(0),D(1,"span"),T(2,"arrayToHuman"),Q(3),T(4,"arrayToHuman"),F(),K());a&2&&(a=M().row,w(1),Nf("title",V(2,2,a.postmortem)),w(2),S(" ",V(4,4,a.postmortem)," "))},V0a=function(a){a&1&&(D(0,"td",68),P(1,U0a,5,6,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},W0a=function(a){a&1&&bg(0)},X0a=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},Z0a=function(a,b){a&1&&(I(0),P(1,W0a,1,0,"ng-container",
72),P(2,X0a,2,0,"span",30),K());if(a&2){a=b.$implicit;b=b.last;M(4);var c=N(5);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(3,Y0a,a));w(1);C("ngIf",!b)}},$0a=function(a){a&1&&(I(0),P(1,Z0a,3,5,"ng-container",71),K());a&2&&(a=M().row,w(1),C("ngForOf",a.blockingIssueId))},a1a=function(a){a&1&&(D(0,"td",68),P(1,$0a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},b1a=function(a){a&1&&bg(0)},c1a=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},d1a=function(a,b){a&1&&(I(0),P(1,b1a,
1,0,"ng-container",72),P(2,c1a,2,0,"span",30),K());if(a&2){a=b.$implicit;b=b.last;M(4);var c=N(5);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(3,Y0a,a));w(1);C("ngIf",!b)}},e1a=function(a){a&1&&(I(0),P(1,d1a,3,5,"ng-container",71),K());a&2&&(a=M().row,w(1),C("ngForOf",a.blockedByIssueId))},f1a=function(a){a&1&&(D(0,"td",68),P(1,e1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},g1a=function(a){a&1&&bg(0)},h1a=function(a){a&1&&(I(0),P(1,g1a,1,0,"ng-container",72),K());if(a&
2){a=M(2).row;M(2);var b=N(5);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(2,Y0a,a.duplicateOfIssueId))}},i1a=function(a){a&1&&(I(0),P(1,h1a,2,4,"ng-container",30),K());a&2&&(a=M().row,w(1),C("ngIf",a.duplicateOfIssueId))},j1a=function(a){a&1&&(D(0,"td",68),P(1,i1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},k1a=function(a){a&1&&(I(0),G(1,"b-formatted-date-time",74),K());a&2&&(a=M().row,w(1),C("timestamp",a.createdTime))},l1a=function(a){a&1&&(D(0,"td",73),P(1,k1a,2,1,
"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},m1a=function(a){a&1&&(I(0),G(1,"b-formatted-date-time",74),K());a&2&&(a=M().row,w(1),C("timestamp",a.modifiedTime))},n1a=function(a){a&1&&(D(0,"td",73),P(1,m1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},o1a=function(a){a&1&&(I(0),G(1,"b-formatted-date-time",74),K());a&2&&(a=M().row,w(1),C("timestamp",a.resolvedTime))},p1a=function(a){a&1&&(D(0,"td",73),P(1,o1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},q1a=function(a){a&
1&&(I(0),G(1,"b-formatted-date-time",74),K());a&2&&(a=M().row,w(1),C("timestamp",a.verifiedTime))},r1a=function(a){a&1&&(D(0,"td",73),P(1,q1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},s1a=function(a){a&1&&(I(0),D(1,"span"),T(2,"arrayToHuman"),Q(3),T(4,"arrayToHuman"),F(),K());a&2&&(a=M().row,w(1),Nf("title",V(2,2,a.foundInVersion)),w(2),S(" ",V(4,4,a.foundInVersion)," "))},t1a=function(a){a&1&&(D(0,"td",68),P(1,s1a,5,6,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},u1a=function(a){a&
1&&(I(0),D(1,"span"),T(2,"arrayToHuman"),Q(3),T(4,"arrayToHuman"),F(),K());a&2&&(a=M().row,w(1),Nf("title",V(2,2,a.targetedToVersion)),w(2),S(" ",V(4,4,a.targetedToVersion)," "))},v1a=function(a){a&1&&(D(0,"td",68),P(1,u1a,5,6,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},w1a=function(a){a&1&&(I(0),D(1,"span"),T(2,"arrayToHuman"),Q(3),T(4,"arrayToHuman"),F(),K());a&2&&(a=M().row,w(1),Nf("title",V(2,2,a.verifiedInVersion)),w(2),S(" ",V(4,4,a.verifiedInVersion)," "))},x1a=function(a){a&1&&
(D(0,"td",68),P(1,w1a,5,6,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},y1a=function(a){a&1&&(I(0),Q(1),T(2,"yesNo"),K());a&2&&(a=M().row,w(1),S(" ",V(2,1,a.inProd)," "))},z1a=function(a){a&1&&(D(0,"td",68),P(1,y1a,3,3,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},A1a=function(a){a&1&&(I(0),Q(1),T(2,"yesNo"),K());a&2&&(a=M().row,w(1),S(" ",V(2,1,a.archived)," "))},B1a=function(a){a&1&&(D(0,"td",68),P(1,A1a,3,3,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},C1a=function(a){a&
1&&(I(0),D(1,"div",49)(2,"div",53)(3,"span"),Q(4),F()()(),K());if(a&2){a=M().row;var b=M(2);w(3);Nf("title",b.getComponentPath(a.componentPath));w(1);jg(b.getComponentPath(a.componentPath))}},E1a=function(a){a&1&&(D(0,"td",75),P(1,C1a,5,2,"ng-container",30),F());if(a&2){a=M(2);var b;var c=!(null==(b=a.listViewPrefs)||!b.rtlComponentPath);C("ngClass",pg(2,D1a,a.listViewPrefs&&a.listViewPrefs.wrapComponents,c));w(1);C("ngIf",!0)}},F1a=function(a){a&1&&(D(0,"slo-status-card",78),G(1,"b-aggregated-slo-status-indicator",
79),F());a&2&&(a=M(2).row,C("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime),w(1),C("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime))},G1a=function(a){a&1&&(I(0),P(1,F1a,2,5,"slo-status-card",77),K());a&2&&(a=M().row,w(1),C("ngIf",a.sloStatus))},H1a=function(a){a&1&&(D(0,"td",76),P(1,G1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},I1a=function(a){a&1&&(D(0,"slo-status-card",81),G(1,"b-slo-time-indicator",82),F());a&2&&(a=M(2).row,C("sloId",a.sloId)("sloStatus",
a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","RESPONSE"),w(1),C("sloBounds",a.sloStatus.responseBounds))},J1a=function(a){a&1&&(I(0),P(1,I1a,2,5,"slo-status-card",80),K());a&2&&(a=M().row,w(1),C("ngIf",a.sloStatus))},K1a=function(a){a&1&&(D(0,"td",76),P(1,J1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},L1a=function(a){a&1&&(D(0,"slo-status-card",81),G(1,"b-slo-time-indicator",82),F());a&2&&(a=M(2).row,C("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",
"ASSIGNMENT"),w(1),C("sloBounds",a.sloStatus.assignmentBounds))},M1a=function(a){a&1&&(I(0),P(1,L1a,2,5,"slo-status-card",80),K());a&2&&(a=M().row,w(1),C("ngIf",a.sloStatus))},N1a=function(a){a&1&&(D(0,"td",76),P(1,M1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},O1a=function(a){a&1&&(D(0,"slo-status-card",81),G(1,"b-slo-time-indicator",82),F());a&2&&(a=M(2).row,C("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","CLOSURE"),w(1),C("sloBounds",
a.sloStatus.closureBounds))},P1a=function(a){a&1&&(I(0),P(1,O1a,2,5,"slo-status-card",80),K());a&2&&(a=M().row,w(1),C("ngIf",a.sloStatus))},Q1a=function(a){a&1&&(D(0,"td",76),P(1,P1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},R1a=function(a,b){a&1&&G(0,"b-formatted-date-time",84);a&2&&(a=b.$implicit,M(4),C("timestamp",1E3*a.seconds))},S1a=function(a){a&1&&(I(0),P(1,R1a,1,1,"b-formatted-date-time",83),K());a&2&&(a=M().row,w(1),C("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime))},
T1a=function(a){a&1&&(D(0,"td",68),P(1,S1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},U1a=function(a){a&1&&G(0,"div",86)},V1a=function(a){a&1&&(D(0,"div"),G(1,"b-team-display",87),F());a&2&&(a=M(2).row,w(1),C("teamId",a.teamId.toString())("componentId",a.componentId.toString())("anchorLinkEnabled",!1))},W1a=function(a){a&1&&(I(0),P(1,U1a,1,0,"div",85),P(2,V1a,2,3,"div",30),K());a&2&&(a=M(3),w(1),C("ngIf",a.isLoadingTeams),w(1),C("ngIf",!a.isLoadingTeams))},X1a=function(a){a&1&&(D(0,
"td",68),P(1,W1a,3,2,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},Y1a=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M().row,w(1),S(" ",null==a.effort?null:a.effort.estimate," "))},Z1a=function(a){a&1&&(D(0,"td",68),P(1,Y1a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},$1a=function(a){a&1&&(I(0),Q(1),K());if(a&2){a=M().row;var b=M(2);w(1);S(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:a.effort.totalOpen)||"":""," ")}},a2a=function(a){a&1&&(D(0,"td",68),P(1,$1a,2,1,"ng-container",
30),F());a&2&&(M(2),w(1),C("ngIf",!0))},b2a=function(a){a&1&&(I(0),Q(1),K());if(a&2){a=M().row;var b=M(2);w(1);S(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:a.effort.totalComplete)||"":""," ")}},c2a=function(a){a&1&&(D(0,"td",68),P(1,b2a,2,1,"ng-container",30),F());a&2&&(M(2),w(1),C("ngIf",!0))},d2a=function(a){a&1&&(I(0),Q(1),K());if(a&2){a=M().row;var b=M(2);w(1);S(" ",b.GET_ISSUE_ACCESS_LEVEL_TITLE(a.issueAccessLevel)," ")}},e2a=function(a){a&1&&(D(0,"td",76),P(1,d2a,2,1,"ng-container",
30),F());a&2&&(M(2),w(1),C("ngIf",!0))},g2a=function(a){if(a&1){var b=r();D(0,"pop-grid",8);L("columnsChange",function(c){t(b);var d=M();d.columns=c;d.columnsChange.emit(c);d.cdr.detectChanges();return v()})("focusedRowIndexChange",function(c){t(b);var d=M();d.focusedRowIndex=c;return v(d.focusedRowIndexChange.emit(d.focusedRowIndex))})("sortChange",function(c){t(b);var d=M();return v(d.sortChange.emit(c))})("rowClick",function(c){t(b);var d=M(),e=c.event.target,f,h=null!=(f=null==e?void 0:e.closest(".title-cell"))?
f:!1,k;e=null!=(k=null==e?void 0:e.closest(".issue-id-cell"))?k:!1;h||e||!d.isIssueSidebarEnabled?d.rowClick.emit(c):d.isIssueSidebarOpen=!0;return v()});P(1,L_a,2,2,"th",9);P(2,N_a,2,2,"th",10);P(3,Q_a,2,2,"th",11);P(4,S_a,2,2,"th",12);P(5,U_a,2,2,"th",12);P(6,Y_a,2,2,"th",13);P(7,$_a,2,1,"td",14);P(8,b0a,2,1,"td",15);P(9,d0a,2,1,"td",16);P(10,f0a,2,1,"td",17);P(11,h0a,2,1,"td",18);P(12,l0a,2,1,"td",19);P(13,q0a,2,3,"td",20);P(14,t0a,2,1,"td",21);P(15,v0a,2,1,"td",22);P(16,B0a,2,1,"td",23);P(17,
D0a,2,1,"td",24);P(18,H0a,2,1,"td",25);P(19,L0a,2,1,"td",25);P(20,P0a,2,1,"td",25);P(21,R0a,2,1,"td",25);P(22,T0a,2,1,"td",25);P(23,V0a,2,1,"td",25);P(24,a1a,2,1,"td",25);P(25,f1a,2,1,"td",25);P(26,j1a,2,1,"td",25);P(27,l1a,2,1,"td",26);P(28,n1a,2,1,"td",26);P(29,p1a,2,1,"td",26);P(30,r1a,2,1,"td",26);P(31,t1a,2,1,"td",25);P(32,v1a,2,1,"td",25);P(33,x1a,2,1,"td",25);P(34,z1a,2,1,"td",25);P(35,B1a,2,1,"td",25);P(36,E1a,2,5,"td",27);P(37,H1a,2,1,"td",28);P(38,K1a,2,1,"td",28);P(39,N1a,2,1,"td",28);
P(40,Q1a,2,1,"td",28);P(41,T1a,2,1,"td",25);P(42,X1a,2,1,"td",25);P(43,Z1a,2,1,"td",25);P(44,a2a,2,1,"td",25);P(45,c2a,2,1,"td",25);P(46,e2a,2,1,"td",28);F()}a&2&&(a=M(),Xf("sidebar-open",a.isIssueSidebarOpen),C("list",(null==a.searchResults?null:a.searchResults.issues)||ng(53,f2a))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("scrollContainer",".bv2-view")("sort",a.sort)("rowLabelRenderer",a.issueDescription),w(1),C("forHeaderCell","focused"),w(1),C("forHeaderCell","draghandle"),w(1),
C("forHeaderCell","selected"),w(1),C("forHeaderCell","starred"),w(1),C("forHeaderCell","position"),w(2),C("forViewCell","focused"),w(1),C("forViewCell","draghandle"),w(1),C("forViewCell","selected"),w(1),C("forViewCell","starred"),w(1),C("forViewCell","position"),w(1),C("forViewCell","issueId"),w(1),C("forViewCell","title"),w(1),C("forViewCell","priority"),w(1),C("forViewCell","severity"),w(1),C("forViewCell","status"),w(1),C("forViewCell","type"),w(1),C("forViewCell","reporter"),w(1),C("forViewCell",
"assignee"),w(1),C("forViewCell","verifier"),w(1),C("forViewCell","cc"),w(1),C("forViewCell","changelist"),w(1),C("forViewCell","postmortem"),w(1),C("forViewCell","blockingIssueId"),w(1),C("forViewCell","blockedByIssueId"),w(1),C("forViewCell","duplicateOfIssueId"),w(1),C("forViewCell","createdTime"),w(1),C("forViewCell","modifiedTime"),w(1),C("forViewCell","resolvedTime"),w(1),C("forViewCell","verifiedTime"),w(1),C("forViewCell","foundInVersion"),w(1),C("forViewCell","targetedToVersion"),w(1),C("forViewCell",
"verifiedInVersion"),w(1),C("forViewCell","inProd"),w(1),C("forViewCell","archived"),w(1),C("forViewCell","componentPath"),w(1),C("forViewCell","minSlo"),w(1),C("forViewCell","responseSlo"),w(1),C("forViewCell","assignmentSlo"),w(1),C("forViewCell","closureSlo"),w(1),C("forViewCell","deletionTime"),w(1),C("forViewCell","team"),w(1),C("forViewCell","estimate"),w(1),C("forViewCell","estimateTotalOpen"),w(1),C("forViewCell","estimateTotalComplete"),w(1),C("forViewCell","accessLevel"))},h2a=function(a){a&
1&&G(0,"b-issue-card",91,92);if(a&2){var b=N(1);a=M().id;C("onedevIsHovercardReady",b.init)("issueId",a)}},i2a=function(a,b){a&1&&(D(0,"onedev-hovercard",null,88),P(2,h2a,2,2,"b-issue-card",89),F(),D(3,"span",90),Q(4),F());if(a&2){a=b.id;var c=N(1);w(3);C("onedevHovercardTrigger",c);w(1);jg(a)}},j2a=function(a){if(a&1){var b=r();D(0,"b-app-bar-bulk-edit-menus",10);L("onBulkEdit",function(d){t(b);var e=M();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){t(b);var e=M();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",
function(d){t(b);var e=M();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){t(b);var d=M();return v(d.bulkMarkIssueRead())});T(1,"async");F()}if(a&2){a=M();var c;C("enableBulkEstimatedEffortOption",null!==(c=V(1,2,a.enableBulkEstimatedEffortOption$))&&void 0!==c?c:!1)("readStatePrompt",qTa(a))}},k2a=function(a){if(a&1){var b=r();D(0,"b-copy-issue-id-button",11);L("onClickCopyIssueIds",function(){t(b);var c=M();return v(sTa(c.copyIssueIdService,yp(c)))})("onClickCopyIssueShortLinks",
function(){t(b);var c=M();return v(tTa(c.copyIssueIdService,yp(c)))})("onClickCopyAsIssueSearch",function(){t(b);var c=M();return v(uTa(c.copyIssueIdService,yp(c)))});F()}a&2&&(a=M(),C("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},l2a=function(a){if(a&1){var b=r();D(0,"div",12)(1,"b-hotlist-picker",13);L("onApply",function(c){t(b);var d=M();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){t(b);var d=M();
return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){t(b);var d=M();return v(d.onLoadHotlist.emit(c))});F()()}a&2&&(a=M(),w(1),C("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},m2a=function(a){if(a&1){var b=r();D(0,"hotlist-add-issue-btn",16);L("issueAddedToHotlist",function(){t(b);var c=M(2);return v(c.refresh())});F()}a&2&&(a=M(2),C("hotlistId",a.currentHotlistId))},n2a=function(a){a&1&&G(0,"hotlist-archive-btn",17);a&2&&(a=M(2),C("hotlistId",a.currentHotlistId))},o2a=
function(a){a&1&&(I(0),P(1,m2a,1,1,"hotlist-add-issue-btn",14),P(2,n2a,1,1,"hotlist-archive-btn",15),K());a&2&&(a=M(),w(1),C("ngIf",a.enableBulkEditUi),w(1),C("ngIf",a.isHotlistAdmin))},p2a=function(a){a&1&&(D(0,"span",21),Q(1,"Reporting"),F())},q2a=function(a){if(a&1){var b=r();D(0,"b-button",18);L("onAction",function(){t(b);var c=M();return v(c.openInEstado())});G(1,"b-icon",19);P(2,p2a,2,0,"span",20);F()}a&2&&(a=M(),C("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?
"icon":"flat"),w(2),C("ngIf",!a.hasSelectedIssues()))},r2a=function(a){if(a&1){var b=r();D(0,"b-comment-box",28);L("commentChange",function(c){t(b);var d=M(2);return v(d.comment=c)})("onSubmit",function(){t(b);var c=M(2);return v(xTa(c))});F()}a&2&&(a=M(2),C("comment",a.comment)("showToolbar",!1))},s2a=function(a,b){a&1&&(D(0,"li"),Q(1),G(2,"b-access-level-indicator",31),F());a&2&&(a=b.$implicit,w(1),S(" ",a.path," "),w(1),C("accessLevel",a.accessLevel))},t2a=function(a){a&1&&(D(0,"div",29)(1,"div")(2,
"strong"),Q(3,"You are commenting on issues in components that have external viewers:"),F()(),D(4,"ul"),P(5,s2a,3,2,"li",30),F()());a&2&&(a=M(2),w(5),C("ngForOf",a.externalWarnings))},u2a=function(a){if(a&1){var b=r();D(0,"div",32)(1,"b-recaptcha",33);L("onUpdate",function(c){t(b);var d=M(2);return v(d.recaptchaResponse=c)});F()()}},v2a=function(a){a&1&&(D(0,"h1",22),Q(1,"Add comment"),F(),D(2,"mat-dialog-content"),P(3,r2a,1,2,"b-comment-box",23),P(4,t2a,6,1,"div",24),F(),P(5,u2a,2,0,"div",25),D(6,
"mat-dialog-actions")(7,"button",26),Q(8," Cancel "),F(),D(9,"button",27),Q(10," Save "),F()());a&2&&(a=M(),w(3),C("ngIf",a.comment),w(1),C("ngIf",0<a.externalWarnings.length),w(1),C("ngIf",a.enableRecaptcha),w(2),C("mat-dialog-close",!1),w(2),C("disabled",a.enableRecaptcha&&""===a.recaptchaResponse)("mat-dialog-close",!0))},w2a=function(a){if(a&1){var b=r();D(0,"div",7)(1,"button",8);L("click",function(){t(b);var c=M();return v(c.onPressSave())});Q(2," Save ");F();D(3,"button",9);L("click",function(){t(b);
var c=M();return v(c.onPressRevert())});Q(4," Revert changes ");F()()}a&2&&(a=M(),w(1),C("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),w(2),C("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},x2a=function(a){if(a&1){var b=r();D(0,"div",7)(1,"button",8);L("click",function(){t(b);
var d=M();return v(d.save())});Q(2," Save ");F();D(3,"button",9);L("click",function(){t(b);var d=M();return v(d.revert())});Q(4," Revert changes ");F();G(5,"hotlist-archive-btn",10);T(6,"async");F()}if(a&2){a=M();var c;w(1);C("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");w(2);C("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state");w(2);C("hotlistId",null!==
(c=V(6,5,a.id$))&&void 0!==c?c:void 0)}},y2a=function(a,b){a&1&&(I(0),Q(1),K());a&2&&(a=b.$implicit,w(1),S(" ",a.name," "))},z2a=function(a){a&1&&(D(0,"strong",4),Q(1,"(archived)"),F())},A2a=function(a){a&1&&G(0,"b-spinner")},B2a=function(a){a&1&&(G(0,"hotlist-add-issue-btn",5),T(1,"async"));if(a&2){a=M();var b;C("hotlistId",null!==(b=V(1,1,a.id$))&&void 0!==b?b:void 0)}},C2a=function(a){a&1&&(D(0,"p",8),Q(1," This hotlist cannot be edited because you are not an administrator of it. "),F())},D2a=
function(a){a&1&&(I(0),G(1,"b-edit-hotlist-toolbar",1),D(2,"div",2),G(3,"b-edit-hotlist-header",1),D(4,"mat-tab-group",3)(5,"mat-tab",4),G(6,"b-edit-hotlist-basic",5),T(7,"async"),F(),D(8,"mat-tab",6),G(9,"b-edit-hotlist-acl",5),T(10,"async"),F()(),P(11,C2a,2,0,"p",7),T(12,"async"),F(),K());a&2&&(a=M(),w(1),C("hotlistId",a.id),w(2),C("hotlistId",a.id),w(1),C("selectedIndex",a.tabIndex),w(2),C("hotlistId",a.id)("isReadOnly",!1===V(7,8,a.isAdmin$)),w(3),C("hotlistId",a.id)("isReadOnly",!1===V(10,10,
a.isAdmin$)),w(2),C("ngIf",!1===V(12,12,a.isAdmin$)))},E2a=function(a,b){a&1&&(I(0),G(1,"empty-toolbar"),D(2,"div",9)(3,"h2"),Q(4,"Error"),F(),D(5,"p"),Q(6),F()(),K());a&2&&(a=b.$implicit,w(6),jg(a))},F2a=function(a){a&1&&(D(0,"b-callout",1)(1,"b-callout-body"),Q(2),F()());a&2&&(a=M(),w(2),jg(a.error))},G2a=function(a){a&1&&bg(0)},H2a=function(a){a&1&&(D(0,"span"),Q(1,"Details"),F())},I2a=function(a){a&1&&(D(0,"span"),Q(1,"Members"),F())},K2a=function(a){a&1&&(D(0,"div",13)(1,"a",14),P(2,H2a,2,0,
"span",15),P(3,I2a,2,0,"span",15),F()());if(a&2){a=M(2);w(1);if(void 0===a.email)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=J2a(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":uza(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}C("href",b,re);w(1);C("ngIf",J2a(a.email));w(1);C("ngIf",!J2a(a.email))}},L2a=function(a){a&1&&(I(0),D(1,"span",2),P(2,G2a,1,0,"ng-container",3),F(),D(3,
"onedev-hovercard",null,4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"h3"),Q(11),F()(),D(12,"div",10),G(13,"mat-icon",11),D(14,"span"),Q(15),F()()(),P(16,K2a,4,3,"div",12),F()()()(),K());if(a&2){var b=N(4);a=M();var c=N(2);w(1);C("onedevHovercardTrigger",b);w(1);C("ngTemplateOutlet",c);w(9);jg(a.getName());w(4);jg(a.email);w(1);C("ngIf",a.shouldShowLinks())}},M2a=function(a){a&1&&fg(0)},N2a=function(a,b){a&1&&G(0,"mat-icon",8);a&2&&C("svgIcon",b.ngIf)},O2a=function(a){a&1&&(D(0,"b-person-hovercard",
9),Q(1),F());a&2&&(a=M(),C("email",a.value),w(1),S(" ",a.displayText," "))},P2a=function(a){a&1&&(D(0,"b-group-email-card",9),Q(1),F());a&2&&(a=M(),C("email",a.value),w(1),S(" ",a.displayText," "))},Q2a=function(a){a&1&&(D(0,"div"),Q(1),F());a&2&&(a=M(),w(1),S(" ",a.displayText," "))},R2a=function(a){if(a&1){var b=r();D(0,"div",10);L("click",function(){t(b);var c=M();return v(c.chipRemove.emit())})("keydown.enter",function(){t(b);var c=M();return v(c.chipRemove.emit())});G(1,"mat-icon",11);F()}a&
2&&(a=M(),gg("matTooltip","'Remove ",a.displayText,"'"),Nf("aria-label","Remove "+a.displayText))},S2a=function(a,b){a&1&&(D(0,"div",19),G(1,"b-contact-chip",20),F());a&2&&(a=b.$implicit,b=M(2),w(1),C("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},T2a=function(a){a&1&&(D(0,"div",12)(1,"div",13)(2,"div",14),P(3,S2a,2,5,"div",15),D(4,"div",16),G(5,"div",17)(6,"div",18),F()()()());a&2&&(a=M(),w(3),C("ngForOf",
a.nestedChips))},U2a=function(a){a&1&&(I(0),Q(1,", "),K())},V2a=function(a,b){a&1&&(I(0),Q(1),P(2,U2a,2,0,"ng-container",14),K());if(a&2){a=b.$implicit;b=b.last;var c=M(2);w(1);S(" ",c.convertUserToString(a)," ");w(1);C("ngIf",!b)}},W2a=function(a,b){if(a&1){var c=r();D(0,"tr",7);L("click",function(){var e=t(c).$implicit,f=M();return v(f.editHotlist(e))})("focus",function(){var e=t(c).index,f=M();return v(f.setFocusOnIndex(e))});G(1,"td",2);D(2,"td",8)(3,"a",9);L("click",function(e){return e.stopPropagation()});
Q(4);F()();D(5,"td",10);Q(6);F();D(7,"td",11);P(8,V2a,3,2,"ng-container",12);F();D(9,"td",13);Q(10);F()()}if(a&2){a=b.$implicit;b=b.index;var d=M();Xf("grid-focus",d.isFocused(b));Nf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));w(3);C("href",d.paths.editHotlist(a.hotlistId),re);w(1);S(" ",a.name," ");w(2);S(" ",a.description," ");w(2);C("ngForOf",a.adminUsers);w(2);S(" ",a.hotlistId," ")}},X2a=function(a){if(a&1){var b=r();D(0,"button",9);L("click",function(){t(b);var c=M(2);
return v(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});Q(1," Move to top ");F()}},Y2a=function(a){if(a&1){var b=r();D(0,"button",10);L("click",function(){t(b);var c=M(2);return v(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});Q(1," Move up ");F()}},Z2a=function(a){if(a&1){var b=r();D(0,"button",11);L("click",function(){t(b);var c=M(2);return v(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});Q(1," Move down ");F()}},$2a=function(a){if(a&1){var b=r();D(0,"button",12);L("click",
function(){t(b);var c=M(2);return v(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});Q(1," Move to bottom ");F()}},a3a=function(a){if(a&1){var b=r();P(0,X2a,2,0,"button",4);P(1,Y2a,2,0,"button",5);P(2,Z2a,2,0,"button",6);P(3,$2a,2,0,"button",7);D(4,"button",8);L("click",function(){t(b);var c=M();return v(c.removePanel())});Q(5," Remove ");F()}a&2&&(a=M(),C("ngIf",!a.first),w(1),C("ngIf",!a.first),w(1),C("ngIf",!a.last),w(1),C("ngIf",!a.last))},b3a=function(a){a&1&&(Qd(),Kd.currentNamespace=
null,I(0),Q(1,"Insights"),K())},c3a=function(a){if(a&1){var b=r();D(0,"b-insights-graph-menu",2);L("openSidebar",function(d){t(b);var e=M(2);return v(e.openSidebar(d.panel))});F()}if(a&2){a=M().ngIf;var c=M();C("availablePanels",a)("iconOnly",c.iconOnly)("buttonClassname",c.buttonClassname)}},d3a=function(a){a&1&&(I(0),P(1,c3a,1,3,"b-insights-graph-menu",1),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.shouldShowInsightsGraphMenu$)))},e3a=function(a){a&1&&G(0,"edit-issue-metadata",5);a&2&&(a=
M(),C("issueId",a.issueId))},f3a=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(),Nf("title",a.getValue()),w(1),S(" ",a.getValue(),"\n"))},g3a=function(a){a&1&&G(0,"b-custom-field-value-display",2);a&2&&(a=M(),C("customFieldValue",a.getCustomFieldValue()))},h3a=function(a){a&1&&(D(0,"button",5,6),G(2,"mat-icon",7),F());if(a&2){a=M();var b=N(2);C("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);Nf("aria-label",a.buttonLabel);w(2);C("svgIcon",a.buttonIcon)}},i3a=function(a){a&1&&(D(0,"div",8),
Q(1),F());a&2&&(a=M(),w(1),jg(a.header))},j3a=function(a){a&1&&G(0,"mat-icon",7);a&2&&(a=M(2).$implicit,C("svgIcon",a.icon))},k3a=function(a){a&1&&(D(0,"span",14),Q(1),F());a&2&&(a=M(2).$implicit,w(1),jg(a.hintText))},l3a=function(a){a&1&&G(0,"mat-icon",7);a&2&&(a=M(2).$implicit,C("svgIcon",a.icon))},m3a=function(a){a&1&&(D(0,"span",14),Q(1),F());a&2&&(a=M(2).$implicit,w(1),jg(a.hintText))},n3a=function(a){if(a&1){var b=r();D(0,"button",17);L("click",function(d){t(b);var e=M().$implicit,f=M(3);return v(f.onAction(d,
e))})("mouseup",function(d){t(b);var e=M().$implicit,f=M(3);return v(f.onAction(d,e))});P(1,l3a,1,1,"mat-icon",11);Q(2);P(3,m3a,2,1,"span",12);F()}if(a&2){a=M().$implicit;var c=M(2).$implicit;C("disabled",a.disabled)("ngClass",c.className);Nf("title",a.title);w(1);C("ngIf",a.icon);w(1);S(" ",a.label," ");w(1);C("ngIf",a.hintText)}},o3a=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(d){t(b);var e=M().$implicit,f=M(3);return v(f.onAction(d,e))})("mouseup",function(d){t(b);var e=M().$implicit,
f=M(3);return v(f.onAction(d,e))});D(1,"span",19);G(2,"mat-icon",20);F();Q(3);F()}if(a&2){a=M().$implicit;var c=M(2).$implicit;Xf("b-menu-item-checked",a.selected);C("disabled",a.disabled)("ngClass",c.className);Nf("title",a.title);w(3);S(" ",a.label," ")}},p3a=function(a,b){a&1&&(I(0),P(1,n3a,4,6,"button",15),P(2,o3a,4,6,"button",16),K());a&2&&(a=b.$implicit,w(1),C("ngIf","action"===a.type),w(1),C("ngIf","select"===a.type))},q3a=function(a){a&1&&(I(0),D(1,"button",10),P(2,j3a,1,1,"mat-icon",11),
Q(3),P(4,k3a,2,1,"span",12),F(),D(5,"mat-menu",null,13),P(7,p3a,3,2,"ng-container",4),F(),K());if(a&2){var b=N(6);a=M().$implicit;var c=M();w(1);C("matMenuTriggerFor",b);w(1);C("ngIf",a.icon);w(1);S(" ",a.label," ");w(1);C("ngIf",a.hintText);w(3);C("ngForOf",a.items)("ngForTrackBy",c.trackByIndex)}},r3a=function(a){a&1&&G(0,"mat-icon",7);a&2&&(a=M(3).$implicit,C("svgIcon",a.icon))},s3a=function(a){a&1&&(D(0,"span",14),Q(1),F());a&2&&(a=M(3).$implicit,w(1),jg(a.hintText))},t3a=function(a){if(a&1){var b=
r();D(0,"button",17);L("click",function(c){t(b);var d=M(2).$implicit,e=M();return v(e.onAction(c,d))})("mouseup",function(c){t(b);var d=M(2).$implicit,e=M();return v(e.onAction(c,d))});P(1,r3a,1,1,"mat-icon",11);Q(2);P(3,s3a,2,1,"span",12);F()}a&2&&(a=M(2).$implicit,C("disabled",a.disabled)("ngClass",a.className),Nf("title",a.title),w(1),C("ngIf",a.icon),w(1),S(" ",a.label," "),w(1),C("ngIf",a.hintText))},u3a=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(c){t(b);var d=M(2).$implicit,
e=M();return v(e.onAction(c,d))})("mouseup",function(c){t(b);var d=M(2).$implicit,e=M();return v(e.onAction(c,d))});D(1,"span",19);G(2,"mat-icon",20);F();Q(3);F()}a&2&&(a=M(2).$implicit,Xf("b-menu-item-checked",a.selected),C("disabled",a.disabled)("ngClass",a.className),Nf("title",a.title)("aria-label",a.label+" results per page"),w(3),S(" ",a.label," "))},v3a=function(a){a&1&&(I(0),P(1,t3a,4,6,"button",15),P(2,u3a,4,7,"button",16),K());a&2&&(a=M().$implicit,w(1),C("ngIf","action"===a.type),w(1),
C("ngIf","select"===a.type))},w3a=function(a,b){a&1&&(I(0),P(1,q3a,8,6,"ng-container",9),P(2,v3a,3,2,"ng-container",9),K());a&2&&(a=b.$implicit,w(1),C("ngIf","submenu"===a.type),w(1),C("ngIf","submenu"!==a.type))},x3a=function(a){a&1&&G(0,"b-actions-menu",7);a&2&&(a=M(),C("menuItems",a.menuItems))},y3a=function(a){a&1&&(D(0,"span",8)(1,"strong"),Q(2),F(),Q(3,"\u00a0of\u00a0"),D(4,"strong"),Q(5),F()());a&2&&(a=M(),w(2),kg("",a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex,""),w(3),
jg(a.searchResults.totalText))},z3a=function(a){a&1&&(D(0,"div"),Q(1," Hotlist not found. "),F())},A3a=function(a){a&1&&(D(0,"div"),Q(1," Loading details... "),F())},B3a=function(a){a&1&&G(0,"b-panel-controls",11);a&2&&(a=M(2),C("panelId",a.panel.panelId))},C3a=function(a){a&1&&(D(0,"span",12),Q(1," \u00a0(changed) "),F())},D3a=function(a){a&1&&(D(0,"div"),P(1,B3a,1,1,"b-panel-controls",6),D(2,"span",7),Q(3," Hotlist: "),D(4,"a",8)(5,"span",9),Q(6),F()()(),P(7,C3a,2,0,"span",10),F());a&2&&(a=M(),
w(1),C("ngIf",a.isDashboardEditable),w(3),C("href",a.paths.viewHotlist(a.hotlistId),re),w(1),hg("matTooltip",a.resource.description),w(1),jg(a.resource.name),w(1),C("ngIf",a.hasParamChanges()))},E3a=function(a){if(a&1){var b=r();D(0,"div",13)(1,"button",14);L("click",function(){t(b);var c=M();return v(c.save())});Q(2,"Save ");F();D(3,"button",15);L("click",function(){t(b);var c=M();return v(c.discardChanges())});Q(4," Discard changes ");F()()}},F3a=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=
M(3),w(1),S(" Searching for ",a.searchParams.query," ..."))},G3a=function(a){a&1&&(D(0,"div",19),G(1,"b-spinner",20),P(2,F3a,2,1,"span",3),F());a&2&&(a=M(2),w(1),C("large",!1),w(1),C("ngIf",a.searchParams&&(null==a.searchParams?null:a.searchParams.query)))},H3a=function(a){a&1&&(D(0,"div",21),Q(1," No issues in hotlist. "),F())},J3a=function(a){if(a&1){var b=r();D(0,"div",22)(1,"b-issues-grid",23);L("init",function(c){t(b);var d=M(2);return v(I3a(d,c))})("focusedRowIndexChange",function(c){t(b);var d=
M(2);return v(d.focusedRowIndex=c)})("columnsChange",function(c){t(b);var d=M(2);return v(d.issueColumns=c)})("sortChange",function(c){t(b);var d=M(2);return v(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){t(b);var d=M(2);return v(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){t(b);var d=M(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=M(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){t(b);var c=M(2);return v(c.goToPage(c.page-
1))});F()()}a&2&&(a=M(2),w(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},K3a=function(a){a&1&&(D(0,"div"),P(1,G3a,3,2,"div",16),P(2,H3a,2,0,"div",17),P(3,J3a,2,5,"div",18),F());a&2&&(a=M(),w(1),C("ngIf",a.isLoading),w(1),C("ngIf",!a.isLoading&&!(null==a.searchResults?0:null==a.searchResults.issues?0:a.searchResults.issues.length)),w(1),C("ngIf",!a.isLoading&&(null==a.searchResults?
null:null==a.searchResults.issues?null:a.searchResults.issues.length)))},L3a=function(a){a&1&&(D(0,"div"),Q(1," Saved search not found. "),F())},M3a=function(a){a&1&&(D(0,"div"),Q(1," Loading details... "),F())},N3a=function(a){a&1&&G(0,"b-panel-controls",11);a&2&&(a=M(2),C("panelId",a.panel.panelId))},O3a=function(a){a&1&&(D(0,"span",12),Q(1," \u00a0(changed) "),F())},P3a=function(a){a&1&&(D(0,"div",6),P(1,N3a,1,1,"b-panel-controls",7),D(2,"span",6),Q(3," Saved search: "),D(4,"a",8)(5,"span",9),
Q(6),F()()(),P(7,O3a,2,0,"span",10),F());a&2&&(a=M(),w(1),C("ngIf",a.isDashboardEditable),w(3),C("href",a.paths.viewSavedSearch(a.savedSearchId),re),w(1),hg("matTooltip",a.resource.description),w(1),jg(a.resource.name),w(1),C("ngIf",a.hasParamChanges()))},Q3a=function(a,b){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=b.ngIf,w(1),S("Searching for ",a,"..."))},R3a=function(a){a&1&&(D(0,"div",16),G(1,"b-spinner",17),P(2,Q3a,2,1,"span",3),F());a&2&&(a=M(2),w(1),C("large",!1),w(1),C("ngIf",null==a.searchParams?
null:a.searchParams.query))},S3a=function(a){a&1&&(D(0,"div",18),Q(1," No issues in saved search. "),F())},T3a=function(a){if(a&1){var b=r();D(0,"div",19)(1,"b-issues-grid",20);L("init",function(c){t(b);var d=M(2);return v(I3a(d,c))})("focusedRowIndexChange",function(c){t(b);var d=M(2);return v(d.focusedRowIndex=c)})("columnsChange",function(c){t(b);var d=M(2);return v(d.columnsChange(c))})("sortChange",function(c){t(b);var d=M(2);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);
var d=M(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=M(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){t(b);var c=M(2);return v(c.goToPage(c.page-1))});F()()}a&2&&(a=M(2),w(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},U3a=function(a){a&1&&(D(0,"div"),P(1,R3a,3,2,"div",13),P(2,S3a,2,0,"div",14),P(3,T3a,2,5,"div",15),F());a&2&&
(a=M(),w(1),C("ngIf",a.isLoading),w(1),C("ngIf",!a.isLoading&&a.searchResults&&0===a.searchResults.issues.length),w(1),C("ngIf",!a.isLoading&&a.searchResults&&0!==a.searchResults.issues.length))},V3a=function(a,b){a&1&&(D(0,"span",3)(1,"a",4),Q(2),F()());a&2&&(a=b.$implicit,w(1),gg("routerLink","/teams/",a.id,"/edit"),C("preserveFragment",!0),w(1),jg(a.name))},W3a=function(a){a&1&&(D(0,"p")(1,"span",6),Q(2,"NOTE:"),F(),Q(3),D(4,"a",7),Q(5,"Learn more"),F()());a&2&&(a=M(),w(3),S(" ",a.data.noteText,
" "),w(1),C("href",a.getDisablingFieldsHelpLink(),re))},X3a=function(a){a&1&&(I(0),G(1,"span",26)(2,"b-icon",27),K());a&2&&(a=M(),w(1),C("innerHTML",a.menuLabel,qe))},Y3a=function(a){a&1&&(D(0,"div",28),Q(1," This includes emails about major updates and: "),D(2,"ul",29)(3,"li"),Q(4,"All title, hotlist, and status changes."),F(),D(5,"li"),Q(6,"Blocking, Blocked By, or Duplicate changes."),F(),D(7,"li"),Q(8,"Changes to Reporter, Verifier, and CCs."),F(),D(9,"li"),Q(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),
F(),D(11,"li"),Q(12,"Changes to custom fields marked as minor."),F()()())},Z3a=function(a){a&1&&(D(0,"div",30),Q(1," This includes emails about: "),D(2,"ul",29)(3,"li"),Q(4,"New comments."),F(),D(5,"li"),Q(6,"Priority or Severity changes."),F(),D(7,"li"),Q(8,"Assignee changes."),F(),D(9,"li"),Q(10,"Component changes."),F(),D(11,"li"),Q(12,"Issue closure or reopening."),F(),D(13,"li"),Q(14,"Changes to custom fields marked as major."),F()()())},$3a=function(a,b){a&1&&(D(0,"mat-option",6),Q(1),F());
a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",a.name," "))},a4a=function(a){a&1&&(D(0,"span",11),Q(1," (must be between 30 days and 10 years) "),F())},c4a=function(a){if(a&1){var b=r();D(0,"div",12)(1,"b-duration-picker",13);L("durationDaysChange",function(c){t(b);var d=M();d.model.retentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);gq(d);return v()});F();D(2,"div",14);Q(3);F()()}a&2&&(a=M(),w(1),C("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),
w(2),S(" Issues will be marked for deletion when they have not been modified for ",b4a(a.model.retentionPeriodDays),". "))},d4a=function(a){a&1&&(D(0,"div",15)(1,"p"),Q(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),D(3,"b"),Q(4,"one or more"),F(),Q(5," of the following is true:"),F(),D(6,"ol")(7,"li"),Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),F(),D(9,"li"),Q(10,
"You have a process in place to manually delete this data within an approved period of time."),F(),D(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),F()()())},e4a=function(a){a&1&&(D(0,"span",11),Q(1," (Issue Retention is shorter than default Restricted Retention) "),F())},g4a=function(a){a&1&&(D(0,"span",11),Q(1),F());a&2&&(a=M(),w(1),S(" ",f4a(a)," "))},h4a=function(a){a&1&&(D(0,"div",21)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),
F()())},j4a=function(a){if(a&1){var b=r();D(0,"div",12)(1,"div")(2,"span",16);Q(3,"Restricted retention:");F();D(4,"b-duration-picker",17);L("durationDaysChange",function(c){t(b);var d=M();d.model.piiRetentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);gq(d);return v()});F()();D(5,"div",18)(6,"p");Q(7);F()();D(8,"div")(9,"span",16);Q(10,"Restricted+ retention:");F();D(11,"b-duration-picker",19);L("durationDaysChange",function(c){t(b);var d=M();d.model.spiiRetentionPeriodDays=
null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);gq(d);return v()});F()();D(12,"div",18)(13,"p");Q(14);F()();P(15,h4a,3,0,"div",20);F()}a&2&&(a=M(),w(4),C("disabled",!hq(a))("durationDays",a.model.piiRetentionPeriodDays),w(3),S(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",b4a(a.model.piiRetentionPeriodDays),". "),w(4),C("disabled",!hq(a))("durationDays",a.model.spiiRetentionPeriodDays),w(3),S(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
b4a(a.model.spiiRetentionPeriodDays),". "),w(1),C("ngIf",a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&i4a(a)))},k4a=function(a){a&1&&(D(0,"div",22)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),F()())},iq=function(a,b,
c,d){var e=a.slice(0,b);e=(e=l4a(e,c))&&e.index||0;var f=a.slice(b);c=(new RegExp(d||c,"gi")).exec(f);return{val:a.slice(e,(c?c.index:f.length)+b),idx:e}},l4a=function(a,b){b=new RegExp(b,"gi");for(var c,d=null;null!=(c=b.exec(a));)d=c,d.index=b.lastIndex;return d},jq=function(a,b){return(void 0===b?0:b)?-1<a.search(/^\d+\+?$/):-1<a.search(/^\d+$/)},m4a=function(a){return"-"===a.charAt(0)?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},kq=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;
var e=b.val.toLowerCase();a=a.filter(function(q){q=q.name.toLowerCase();return q!==e||d?c?si(q,e):ka(q,e):!1});b=b.idx;for(var f=b+e.length,h=l(a),k=h.next();!k.done;k=h.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},lq=function(a){var b=a.name,c=a.label,d=a.type,e=a.enableShadowPlaceholder,f=a.id,h;return{trackId:(null!=(h=a.trackIdPrefix)?h:d)+":"+b,name:b,id:null!=f?f:b,label:c,completionCfg:{enableShadowPlaceholder:null!=e?e:!0,completionValue:null!=f?f:b,
type:d}}},p4a=function(a,b){if(a&1){var c=r();D(0,"div",9)(1,"div",10);L("click",function(d){var e=t(c).$implicit,f=M();e=e.key;if(d=void 0===d?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;n4a(f);o4a(f);f.optionsChange.emit(f.options);return v()});D(2,"mat-checkbox",11);L("change",function(d){var e=t(c).$implicit,f=M();e.value.value=d.checked;n4a(f);o4a(f);f.optionsChange.emit(f.options);return v()})("click",function(d){return d.stopPropagation()});
Q(3);F()()()}a&2&&(a=b.$implicit,Nf("aria-checked",a.value.value),w(2),C("checked",a.value.value),w(1),S(" ",a.value.displayString," "))},q4a=function(a){a&1&&(D(0,"div",12),Q(1),F());a&2&&(a=M(),w(1),S(" ",a.errorString," "))},s4a=function(a){if(a&1){var b=r();D(0,"span",4)(1,"input",5);L("ngModelChange",function(c){t(b);var d=M(2);return v(d.businessDayString=c)})("ngModelChange",function(){t(b);var c=M(2);return v(r4a(c))});F();D(2,"span",8);Q(3,"days,");F()()}a&2&&(a=M(2),w(1),Xf("ng-invalid",
!!a.errorString),C("ngModel",a.businessDayString))},u4a=function(a,b){a&1&&(D(0,"mat-option",9),Q(1),F());a&2&&(a=b.$implicit,b=M(2),C("value",a),w(1),S(" ",t4a(b,a)," "))},z4a=function(a){if(a&1){var b=r();D(0,"span",2);P(1,s4a,4,3,"span",3);D(2,"span",4)(3,"input",5);L("ngModelChange",function(c){t(b);var d=M();return v(d.intervalString=c)})("ngModelChange",function(){t(b);var c=M();return v(r4a(c))});F();D(4,"mat-select",6);L("ngModelChange",function(c){t(b);var d=M();return v(d.intervalUnit=c)})("selectionChange",
function(){t(b);var c=M();v4a(c);w4a(c);return v()});P(5,u4a,2,2,"mat-option",7);F()()()}a&2&&(a=M(),w(1),C("ngIf",x4a(a)),w(2),Xf("invalid",!!a.errorString),C("ngModel",a.intervalString),w(1),C("ngModel",a.intervalUnit),w(1),C("ngForOf",x4a(a)?[mq,nq]:[mq,nq,y4a]))},A4a=function(a){a&1&&(D(0,"span",13),Q(1),F());a&2&&(a=M(2),w(1),kg(" ",a.objectiveBusinessDays," day",1!=a.objectiveBusinessDays?"s":""," "))},B4a=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},C4a=function(a){a&1&&(D(0,"span"),P(1,B4a,
2,0,"span",12),D(2,"span"),Q(3),F()());a&2&&(a=M(2),w(1),C("ngIf",a.objectiveBusinessDays),w(2),kg("",a.intervalString," ",t4a(a,a.intervalUnit),""))},D4a=function(a){a&1&&(D(0,"span",10),P(1,A4a,2,2,"span",11),P(2,C4a,4,3,"span",12),F());a&2&&(a=M(),w(1),C("ngIf",a.objectiveBusinessDays),w(1),C("ngIf",a.intervalString&&"0"!=a.intervalString))},F4a=function(a){if(a&1){var b=r();D(0,"b-icon",22);L("click",function(){t(b);var c=M(2);return v(E4a(c,0))});F()}a&2&&C("name","add")("size","small")},H4a=
function(a){if(a&1){var b=r();D(0,"span",17)(1,"span",18)(2,"span",19);P(3,F4a,1,2,"b-icon",20);F();D(4,"span",19)(5,"b-icon",21);L("click",function(c){t(b);var d=M();return v(G4a(d,c))});F()()()()}a&2&&(a=M(),w(3),C("ngIf",a.canPerformActions),w(2),C("name","delete")("size","small"))},I4a=function(a){a&1&&G(0,"td",42)},J4a=function(a){if(a&1){var b=r();D(0,"td",43)(1,"slo-element-property-picker",44);L("optionsChange",function(c){t(b);var d=M().$implicit;return v(d.typePickerValues=c)});F()()}a&
2&&(a=M().$implicit,w(1),C("selectAllText","Any type")("validator",a.validateTypePicker)("options",a.typePickerValues))},K4a=function(a){if(a&1){var b=r();D(0,"td",45)(1,"slo-element-property-picker",46);L("optionsChange",function(c){t(b);var d=M().$implicit;return v(d.priorityPickerValues=c)});F()()}a&2&&(a=M().$implicit,w(1),C("selectAllText","Any priority")("validator",a.validatePriorityPicker)("options",a.priorityPickerValues))},L4a=function(a){if(a&1){var b=r();D(0,"td",47)(1,"slo-element-property-picker",
48);L("optionsChange",function(d){t(b);var e=M().$implicit;return v(e.postmortemPickerValues=d)});F()()}if(a&2){a=M().$implicit;var c=M(2);w(1);C("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker)("options",a.postmortemPickerValues)}},N4a=function(a,b){a&1&&(D(0,"mat-option",53),Q(1),F());a&2&&(a=b.$implicit,M(4),C("value",a),w(1),S(" ",M4a(a)," "))},O4a=function(a){if(a&1){var b=r();D(0,"td",49)(1,"mat-form-field",50)(2,"mat-select",51);L("ngModelChange",function(d){t(b);
var e=M().$implicit;return v(e.selectedMetric=d)});P(3,N4a,2,2,"mat-option",52);F()()()}if(a&2){a=M().$implicit;var c=M(2);w(2);C("ngModel",a.selectedMetric)("customValidators",a.metricValidators);w(1);C("ngForOf",c.metricChoices)}},P4a=function(a){if(a&1){var b=r();D(0,"td",54)(1,"slo-objective-selector",55);L("objectiveDurationChange",function(c){t(b);var d=M().$implicit;return v(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){t(b);var d=M().$implicit;return v(d.selectedObjectiveBusinessDays=
c)});F()()}a&2&&(a=M().$implicit,w(1),C("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays)("validator",a.validateObjective)("isDisabled",!1))},R4a=function(a,b){a&1&&(D(0,"mat-option",53),Q(1),F());a&2&&(a=b.$implicit,M(4),C("value",a),w(1),S(" ",Q4a.get(a||"CALENDAR")," "))},S4a=function(a){if(a&1){var b=r();D(0,"td",56)(1,"mat-form-field",57)(2,"mat-select",58);L("ngModelChange",function(d){t(b);var e=M().$implicit;
return v(e.selectedDayType=d)})("selectionChange",function(){t(b);var d=M().$implicit;"BUSINESS"===d.selectedDayType?0===d.selectedObjectiveDuration.seconds%86400&&(d.selectedObjectiveBusinessDays=d.selectedObjectiveDuration.seconds/86400,d.selectedObjectiveDuration.seconds=0):(0===d.selectedObjectiveDuration.seconds&&(d.selectedObjectiveDuration.seconds=86400*d.selectedObjectiveBusinessDays),d.selectedObjectiveBusinessDays=0);return v()});P(3,R4a,2,2,"mat-option",52);F()()()}if(a&2){a=M().$implicit;
var c=M(2);w(2);C("ngModel",a.selectedDayType);w(1);C("ngForOf",c.dayTypes)}},W4a=function(a){if(a&1){var b=r();D(0,"td",59)(1,"span",18)(2,"span",19)(3,"b-icon",60);L("click",function(){t(b);var c=M(3);if(c.openRow)if(c.openRow.isValid())T4a(c.openRow.typePickerValues)&&T4a(c.openRow.priorityPickerValues)&&T4a(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:hh("An SLO rule that matches all issues is not allowed. These rules are considered too broad, and are typically created in error. Some filtering criteria is required to continue."),
confirmButtonText:"Ok",showCancelButton:!1}):U4a(c);else{var d=c.openRow;("BUSINESS"!==d.selectedDayType?0<d.selectedObjectiveDuration.seconds:0<d.selectedObjectiveDuration.seconds||0<d.selectedObjectiveBusinessDays)||c.confirmationDialogService.open({title:"SLO validation error",content:hh('An SLO rule must specify a valid duration.\nFor "Calendar" day objectives, the duration must be a positive integer.\nFor "Business" day objectives, a day and/or hour/minute duration must be specified.'),confirmButtonText:"Ok",
showCancelButton:!1})}return v()});F()();D(4,"span",19)(5,"b-icon",61);L("click",function(){t(b);var c=M().$implicit,d=M(2);return v(V4a(d,c))});F()()()()}a&2&&(w(3),C("name","done")("size","small"),w(2),C("name","delete")("size","small"))},X4a=function(a){a&1&&G(0,"td",62)},Y4a=function(a){a&1&&(D(0,"div"),Q(1),F());a&2&&(a=M(2).$implicit,w(1),S("ERROR: ",a.parseResult.error,""))},Z4a=function(a,b){a&1&&(D(0,"span",68)(1,"span",69),Q(2),F()());a&2&&(a=b.$implicit,w(2),jg(a))},a5a=function(a){a&1&&
(D(0,"span",66),P(1,Z4a,3,1,"span",67),F());if(a&2){a=M(2).$implicit;w(1);if(0===a.parseResult.types.length)a=["Any"];else{for(var b=[],c=l(a.controllerReference.sloParseService.enumTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push($4a(a.controllerReference,d));a=b}C("ngForOf",a)}},b5a=function(a){a&1&&(D(0,"td",63),P(1,Y4a,2,1,"div",64),P(2,a5a,2,1,"span",65),F());a&2&&(a=M().$implicit,w(1),C("ngIf",a.parseResult.error),w(1),C("ngIf",!a.parseResult.error))},
c5a=function(a){a&1&&(D(0,"div"),Q(1),F());a&2&&(a=M(2).$implicit,w(1),S("ERROR: ",a.parseResult.error,""))},d5a=function(a,b){a&1&&(D(0,"span",68)(1,"span",69),Q(2),F()());a&2&&(a=b.$implicit,w(2),jg(a))},f5a=function(a){a&1&&(D(0,"span",66),P(1,d5a,3,1,"span",67),F());if(a&2){a=M(2).$implicit;w(1);if(0===a.parseResult.priorities.length)a=["Any"];else{for(var b=[],c=l(a.controllerReference.sloParseService.enumPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&
b.push(e5a(a.controllerReference,d));a=b}C("ngForOf",a)}},g5a=function(a){a&1&&(D(0,"td",70),P(1,c5a,2,1,"div",64),P(2,f5a,2,1,"span",65),F());a&2&&(a=M().$implicit,w(1),C("ngIf",a.parseResult.error),w(1),C("ngIf",!a.parseResult.error))},h5a=function(a){a&1&&(D(0,"div"),Q(1),F());a&2&&(a=M(2).$implicit,w(1),S("ERROR: ",a.parseResult.error,""))},i5a=function(a,b){a&1&&(D(0,"span",68)(1,"span",69),Q(2),F()());a&2&&(a=b.$implicit,w(2),jg(a))},j5a=function(a){a&1&&(D(0,"span",66),P(1,i5a,3,1,"span",67),
F());if(a&2){a=M(2).$implicit;w(1);var b=a.parseResult.postmortemValues.includes("ANY"),c=a.parseResult.postmortemValues.includes("NONE");a=b===c?["Either"]:[a.controllerReference.anyNoneDisplayValues.get(a.parseResult.postmortemValues[0])];C("ngForOf",a)}},k5a=function(a){a&1&&(D(0,"td",71),P(1,h5a,2,1,"div",64),P(2,j5a,2,1,"span",65),F());a&2&&(a=M().$implicit,w(1),C("ngIf",a.parseResult.error),w(1),C("ngIf",!a.parseResult.error))},l5a=function(a){a&1&&(D(0,"td",72),Q(1),F());a&2&&(a=M().$implicit,
M(2),w(1),S(" ",M4a(a.sloElement.metric)," "))},m5a=function(a){if(a&1){var b=r();D(0,"td",73)(1,"slo-objective-selector",74);L("objectiveDurationChange",function(c){t(b);var d=M().$implicit;return v(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){t(b);var d=M().$implicit;return v(d.selectedObjectiveBusinessDays=c)});F()()}a&2&&(a=M().$implicit,w(1),C("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays)("isDisabled",
!a.isEditingInternal))},n5a=function(a){a&1&&(D(0,"td",75),Q(1),F());a&2&&(a=M().$implicit,M(2),w(1),S(" ",Q4a.get(a.sloElement.dayType||"CALENDAR")," "))},p5a=function(a){if(a&1){var b=r();D(0,"b-icon",85);L("click",function(c){t(b);var d=M(2).$implicit,e=M(2);return v(o5a(e,d,c))});F()}a&2&&C("name","edit")("size","small")},q5a=function(a){a&1&&G(0,"b-icon",86);if(a&2){M();var b=N(8);C("name","more-settings-vertical")("size","small")("matMenuTriggerFor",b)}},s5a=function(a){if(a&1){var b=r();D(0,
"button",87);L("click",function(){t(b);var c=M(2).$implicit,d=M(2);return v(r5a(d,c,1))});Q(1," Move row down ");F()}},t5a=function(a){if(a&1){var b=r();D(0,"button",88);L("click",function(){t(b);var c=M(2).$implicit,d=M(2);return v(r5a(d,c,-1))});Q(1," Move row up ");F()}},v5a=function(a){if(a&1){var b=r();D(0,"td",76)(1,"span",18)(2,"span",19);P(3,p5a,1,2,"b-icon",77);F();D(4,"span",19)(5,"span");P(6,q5a,1,3,"b-icon",78);F();D(7,"mat-menu",null,79);P(9,s5a,2,0,"button",80);P(10,t5a,2,0,"button",
81);D(11,"button",82);L("click",function(){t(b);var d=M().$implicit,e=M(2);E4a(e,e.collection.indexOf(d)+1);return v()});Q(12," Add row below ");F();D(13,"button",83);L("click",function(){t(b);var d=M().$implicit,e=M(2);E4a(e,e.collection.indexOf(d));return v()});Q(14," Add row above ");F();D(15,"button",84);L("click",function(){t(b);var d=M().$implicit,e=M(2);return v(V4a(e,d))});Q(16," Remove ");F()()()()()}if(a&2){a=M().$implicit;var c=M(2);w(3);C("ngIf",a.canEdit);w(3);C("ngIf",a.canEdit);w(3);
C("ngIf",u5a(c,a,1).valid);w(1);C("ngIf",u5a(c,a,-1).valid)}},w5a=function(a,b){a&1&&(D(0,"tr",25),P(1,I4a,1,0,"td",26),P(2,J4a,2,3,"td",27),P(3,K4a,2,3,"td",28),P(4,L4a,2,3,"td",29),P(5,O4a,4,3,"td",30),P(6,P4a,2,5,"td",31),P(7,S4a,4,2,"td",32),P(8,W4a,6,4,"td",33),P(9,X4a,1,0,"td",34),P(10,b5a,3,2,"td",35),P(11,g5a,3,2,"td",36),P(12,k5a,3,2,"td",37),P(13,l5a,2,1,"td",38),P(14,m5a,2,4,"td",39),P(15,n5a,2,1,"td",40),P(16,v5a,17,4,"td",41),F());a&2&&(a=b.$implicit,b=M(2),Xf("draggable",!b.isDisabled&&
null==b.openRow),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",a.isEditingInternal),w(1),C("ngIf",!a.isEditingInternal),w(1),C("ngIf",!a.isEditingInternal),w(1),C("ngIf",!a.isEditingInternal),w(1),C("ngIf",!a.isEditingInternal),w(1),C("ngIf",!a.isEditingInternal),w(1),C("ngIf",!a.isEditingInternal),
w(1),C("ngIf",!a.isEditingInternal),w(1),C("ngIf",!a.isEditingInternal))},x5a=function(a){if(a&1){var b=r();D(0,"tbody",23);L("cdkDropListDropped",function(c){t(b);var d=M();return v(d.onDrop(c))});P(1,w5a,17,18,"tr",24);F()}a&2&&(a=M(),C("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||null!=a.openRow),w(1),C("ngForOf",a.collection))},y5a=function(a){a&1&&(D(0,"div",89),Q(1," There are currently no rules for this SLO "),F())},z5a=function(a,b){if(a&1){var c=r();D(0,"tr",7);L("click",
function(){var e=t(c).$implicit,f=M();return v(f.editSlo(e))})("focus",function(){var e=t(c).index,f=M();return v(f.setFocusOnIndex(e))});G(1,"td",2);D(2,"td",8)(3,"a",9);L("click",function(e){return e.stopPropagation()});Q(4);F()();D(5,"td",10);Q(6);F()()}if(a&2){a=b.$implicit;b=b.index;var d=M();Xf("grid-focus",d.isFocused(b));Nf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));w(3);C("href",d.paths.editSlo(a.sloId),re);w(1);S(" ",a.name," ");w(2);S(" ",a.description," ")}},A5a=
function(a){if(a)return(Array.isArray(a)?a.map(function(b){return qi(b)}):[qi(a)]).filter(function(b){return!isNaN(b)})},B5a=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!oq(c,b)})},C5a=function(a,b){"string"===typeof a&&(a=a.trim())&&b(Di(a))},D5a=function(a,b){if(!a)return[];a=l("string"===typeof a?a.split(","):a);for(var c=a.next();!c.done;c=a.next())C5a(c.value,function(d){return b.push(d)});return Epa(b)},E5a=function(a){return null===a?function(){}:function(b){a:{if(Array.isArray(b)&&
1===b.length&&(b=b[0],Array.isArray(b))){b=new a(b);break a}b=void 0}if(void 0!==b)return b;throw Error("se");}},pq=function(a,b,c){b=[b,c].map(function(d){return null!=d?d:""}).join(";");a.setAttribute("pkd-ac-state",String(hh(b)))},F5a=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(hh(b)))},G5a=function(a,b){a.setAttribute("pkd-ps-state",String(hh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(hh("2")))},function(){a.setAttribute("pkd-ps-state",
String(hh("3")))})},K5a=function(a){var b=To(H5a,{id:qq(I5a)});a.appendChild(b);return new J5a(b)},L5a=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},O5a=function(a){if(rq){var b=M5a(a);N5a(a,b)}else a.scrollIntoView({block:"nearest"})},Q5a=function(a,b,c){return new dq(new P5a(void 0===a?0:a,null!=b?b:[],null!=c?c:null))},sq=function(a,b,c,d){d=void 0===d?[]:d;if(a){var e="";c&&c.length&&(e="; track:"+c.join(",").trim());c="";d&&d.length&&(c="; "+d.join("; ").trim());a.setAttribute("jslog",
b+e+c);a.LSWHIf=void 0}b=a.getAttribute("jslog").concat("; cid:peopleweb");a.setAttribute("jslog",b)},S5a=function(a){var b;return Object.freeze({id:"ENOWEf",iconUrl:null==(b=R5a.get(a))?void 0:b.get("ENOWEf"),label:"Hide suggestion",keyboardShortcut:[],veid:181476})},T5a=function(a){return a.map(function(b){if(tq)switch(b){case 512:return"\u2318";case 18:return"Option"}switch(b){case 16:return"Shift";case 512:return"Ctrl";case 18:return"Alt";case 191:return"/";case 39:return"\u2006\u279d";default:return String.fromCharCode(b)}})},
W5a=function(a,b){var c=qq(uq.getInstance()),d=Object,e=d.assign;c=c+":"+a.id;var f=T5a(a.keyboardShortcut);a:switch(b=b.getDensity(),b){case 0:b="googleMaterialDefaultDensity";break a;case 1:b="workspaceMaterialComfortableDensity";break a;case 2:b="workspaceMaterialCompactDensity";break a;default:throw Error("ue`"+b);}d=To(U5a,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&sq(d,a.veid,["impression","pk-click"]);return new V5a(d,a)},Y5a=function(a){var b=new X5a([]);return new vq(a,
b)},wq=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},Z5a=function(a){return Array.from(a.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(b){return!("true"===b.getAttribute("aria-hidden")||b.hasAttribute("disabled")||b.hasAttribute("hidden"))})},yq=function(a){return new xq(a)},$5a=function(a,b){b=b.ownerDocument.createEvent("CustomEvent");b.initEvent(a,!0,!0);return b},b6a=function(a,b){return new a6a(a,b)},h6a=function(a,b,c,d,e){var f=
c6a(c),h=zq(a),k=Aq(a);k&&h.intersection(d6a(k));e6a(h,So(a),So(c));a=f6a(a,b);b=h.left;a&4?b+=h.width:a&2&&(b+=h.width/2);h=new Bq(b,h.top+(a&1?h.height:0));h=Cq(h,f);a=f6a(c,d);h=g6a(h,Dq(c),a).rect;c=Aq(c);c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;f=h;f.left<c.left?f.left=c.left:f.left+f.width>c.right&&(f.left=c.right-f.width);h=f;e&&(e=h,d&1?e.top<c.top&&(d=c.top-e.top,e.top+=d,e.height-=d):(d=e.top+e.height,d>c.bottom&&(e.height-=d-c.bottom)),h=e);return h},k6a=function(a,b){Eq(a,new Bq(b.left,
b.top));b=b.getSize();i6a(Dq(a),b)||j6a(a,b)},l6a=function(a,b){return new Fq(a,b)},Gq=function(a){return $5a("pk-click",a)},o6a=function(a,b,c,d){var e=To(m6a);sq(e,28041,["impression"]);var f=new n6a(e);a.appendChild(e);return new Hq(e,b,c,f,d)},r6a=function(a,b){b=To(p6a,{label:b.label});a.appendChild(b);return new q6a(b)},t6a=function(a,b){for(var c=l(["peoplekitThemeLight","peoplekitThemeDark"]),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=s6a.get(b))&&a.classList.add(b)},w6a=
function(a,b,c,d){b=To(u6a,{content:b,header:d});a.appendChild(b);a=r6a(wq(b,"TvD9Pc"),{label:"Close"});t6a(b,c.getTheme());return new v6a(b,a)},y6a=function(a,b){var c=x6a({header:"Couldn't hide suggestion"});var d=Iq("<div>There was a problem and this person could not be hidden</div>");a=w6a(a,d,b,c);sq(a.getRoot(),131913,["impression"]);return a},z6a=function(a,b){var c=x6a({header:"Couldn't hide suggestion"});var d=Iq("<div>Groups of 2 or more people can't be hidden</div>");a=w6a(a,d,b,c);sq(a.getRoot(),
166230,["impression"]);return a},A6a=function(a,b){var c=x6a({header:"Couldn't show suggestion"});var d=Iq("<div>There was a problem and this person could not be shown in suggestions</div>");a=w6a(a,d,b,c);sq(a.getRoot(),184760,["impression"]);return a},B6a=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},Kq=function(a,b,c,d,e,f){e=void 0===e?new Jq:e;f=void 0===f?"":f;b=To(C6a,{imageUrls:b.map(function(h){return h||"https://lh3.googleusercontent.com/a/default-user"}),backupUrl:f||
"https://lh3.googleusercontent.com/a/default-user",size:c,preloadSize:d,pixelRatio:D6a()});e=new E6a(b,e);a.appendChild(b);return e},G6a=function(a,b){var c="",d=0;b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c=c+a.substring(d,e.getStart())+"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3"+a.substring(e.getStart(),e.getEnd())+"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3",d=e.getEnd();c+=a.substring(d,a.length);return F6a(F6a(Qj(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3",
"</b>")},H6a=function(a){var b=a.getDisplayName();return b?G6a(b,a.getMatchInfo().getDisplayNameMatches()):""},I6a=function(a){var b=a.getDisplayValue();return b?G6a(b,a.getMatchInfo().getDisplayValueMatches()):""},J6a=function(a,b){var c=b?H6a(a):Qj(a.getDisplayName());b=b?I6a(a):Qj(a.getDisplayValue());c=c||b;b=b||Qj(a.getDescription());var d=a.getPrimaryTarget();return{hovercardId:1===d.getTargetType()||6===d.getTargetType()?a.getDisplayValue():d.getProfileId(),label:c,sublabel:b,photos:[a.getPhotoUrl()]}},
M6a=function(a,b,c,d){var e=b.result().getMemberList();1===e.length?(b=J6a(e[0],!1),b={hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,name:"",photos:b.photos}):(e=b.result(),e=J6a(e,!1),b=b.getDisplayNameWithOverrideApplied(),b={label:Qj(b)||e.sublabel,sublabel:e.sublabel,name:b,photos:e.photos,hovercardId:e.hovercardId});var f=b.hovercardId,h=b.name;var k=b.label;var q=b.sublabel;e=Iq;f='<div peoplekit-id="'+Lq("tJHJj")+'" class="'+Lq("peoplekitComponentsHideconfirmationdialogImplHeader")+
'" data-hovercard-id="'+Lq(f)+'" data-name="'+Lq(h)+'"><div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplHeaderRow")+'"><div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplLeft")+'">';h=Iq('<div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplAvatar")+'"><div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplAvatarContainer")+'" peoplekit-id="'+Lq("d6MZcd")+'"></div></div>');f=f+h+'</div><div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplCenter")+
'">';k=Iq('<div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplLabelContainer")+'"><div peoplekit-id="'+Lq("E0kCZc")+'" class="'+Lq("peoplekitComponentsHideconfirmationdialogImplLabel")+" "+Lq("peoplekitComponentsHideconfirmationdialogImplLabelRow")+'" translate="no">'+Mq(Nq(k))+"</div>"+(q?'<div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplSublabel")+" "+Lq("peoplekitComponentsHideconfirmationdialogImplLabelRow")+'" translate="no">'+Mq(Nq(q))+"</div>":"")+"</div>");k=e(f+
k+"</div></div></div>");e=0===d?"Hide":"Show";q='<div peoplekit-id="'+Lq("bN97Pc")+'" class="'+Lq("peoplekitComponentsHideconfirmationdialogImplContent")+'"><div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplHeadline")+'">';q=(0==d?q+"Hide Suggestion?":q+"Show Suggestion?")+('</div><div class="'+Lq("peoplekitComponentsHideconfirmationdialogImplDescription")+'">');d=Iq((0==d?q+"This person won't be suggested again unless you search for them in Photos.":q+"Suggest this person when showing people results.")+
"</div></div>");d=To(K6a,{content:d,header:k});a.appendChild(d);a=r6a(wq(d,"IbE0S"),{label:"Cancel"});k=k={confirmButtonText:e};k=k.confirmButtonText;q="";switch(Fa(k)?k.toString():k){case "Confirm":q+="Confirm";break;case "Hide":q+="Hide";break;case "Show":q+="Show";break;default:q+="Apply"}k=r6a(wq(d,"McfNlf"),{label:q});t6a(d,c.getTheme());q=k.getRoot();switch(e){case "Hide":sq(q,131909,["pk-click","impression"]);break;case "Show":sq(q,131910,["pk-click","impression"])}a=new L6a(d,a,k);d=wq(a.getRoot(),
"d6MZcd");Kq(d,b.photos,36,36,c);return new Oq(a)},N6a=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("ue`"+a);}},Pq=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("ue`"+a);}},O6a=function(){var a=void 0===a?10:a;var b="";if(1>a)return b;for(;b.length<a;)b+=Math.random().toString(36).substring(2);return b.length>a?b.substring(0,
a):b},P6a=function(a){var b=a.getCaller(),c=a.getClient();a=a.getRequestType();return b&&c&&a?JSON.stringify([b.serialize(),c.serialize(),a]):null},Q6a=function(a){var b=new Qq;if(a instanceof Rq)switch(b.setErrorType(a.type),a.type){case 2:b.setErrorMessage("Failed to load flags from service");break;case 3:b.setErrorMessage("Failed to retrieve flags from cache");break;case 4:b.setErrorMessage("Operation failed to complete before timeout");break;case 6:b.setErrorMessage("Operation failed because of invalid keys.")}else b.setErrorType(5),
b.setErrorMessage(a.message);return b},Uq=function(a){a=void 0===a?null:a;var b=(new Sq).setExperimentFlags(new Tq).setSource(3);a&&b.setError(Q6a(a));return b},Y6a=function(a){var b=void 0===b?new R6a:b;if(S6a)return S6a;var c=new T6a(a),d=new U6a(a);if(b.storage_)try{b.storage_.setItem("__sak","1");b.storage_.removeItem("__sak");var e=!0}catch(f){e=!1}else e=!1;b=e?new Vq(a,b):new Wq(a);b.clean();c=new V6a(new W6a(b,c),d);return S6a=new X6a(a,c)},$6a=function(a,b,c,d){var e=J6a(a,!0);a=Z6a(a,e,
b,d);b=a.sublabel;d=a.allowSublabelTranslation;c.customSublabel&&(b=c.customSublabel.sublabel,d=c.customSublabel.shouldAllowTranslation);return{id:a.id,hovercardId:a.hovercardId,label:a.label,sublabel:c.shouldHideSublabel?"":b,photos:a.photos,densityClass:a.densityClass,tags:a.tags,allowSublabelTranslation:d}},Z6a=function(a,b,c,d){var e=[];Ri(Xq.getExperiments(),3,!1)&&c.getWarnForExternalSelections()&&2===a.getPrimaryTarget().getOrgState()&&e.push({iconUrl:"https://www.gstatic.com/people/peoplekit/icons/light_theme/domain_disabled_grey900.svg",
altText:"External",style:1});return{id:qq(a7a),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,photos:b.photos,densityClass:d,tags:e,allowSublabelTranslation:!1}},d7a=function(a,b,c){var d="",e=Qj(a.getDescription()),f=!1,h=a.getMemberList().length;if(1<h||a.getDisplayName())d=a.getMemberList().map(function(k){var q="";if(k.getPrimaryTarget().getName()){var u,x;(q=(q=null==(u=k.getPrimaryTarget())?void 0:null==(x=u.getName())?void 0:x.getGivenName())?G6a(q,k.getMatchInfo().getGivenNameMatches()):
"")||(q=H6a(k))}q||(q=I6a(k));return q}),b&&(d=d.reverse()),d=H6a(a)||b7a({memberNames:d}),e||c||null===a.getTotalMemberCount()||(e=c7a({memberCount:Number(a.getTotalMemberCount())}),f=!0);else if(1===h)return e=a.getMemberList()[0],f=J6a(e,!0),Object.assign({},f,{type:a.getPrimaryTarget().getTargetType(),flatResult:e,allowSublabelTranslation:!1});b=a.getPhotoUrl();b=a.getDisplayName()&&b?[b]:a.getMemberList().map(function(k){return k.getPhotoUrl()});return{hovercardId:"",label:d,sublabel:e,type:a.getPrimaryTarget().getTargetType(),
photos:b,allowSublabelTranslation:f}},f7a=function(a,b,c,d,e,f){a=d7a(a,d,e);if(a.flatResult)return f=Z6a(a.flatResult,a,b,f),b=f.sublabel,d=f.allowSublabelTranslation,c.customSublabel&&(b=c.customSublabel.sublabel,d=c.customSublabel.shouldAllowTranslation),{id:f.id,hovercardId:f.hovercardId,label:f.label,sublabel:c.shouldHideSublabel?"":b,photos:f.photos,densityClass:f.densityClass,tags:f.tags,type:a.type,allowSublabelTranslation:d};b=a.sublabel;d=a.allowSublabelTranslation;c.customSublabel&&(b=
c.customSublabel.sublabel,d=c.customSublabel.shouldAllowTranslation);return{id:qq(e7a),hovercardId:a.hovercardId,label:a.label,sublabel:c.shouldHideSublabel?"":b,type:a.type,photos:a.photos,densityClass:f,tags:[],allowSublabelTranslation:d}},h7a=function(a,b,c,d,e,f){return new g7a(a,b,c,d,e,f)},j7a=function(a,b){return new i7a(a,void 0===b?"":b)},k7a=function(a){var b=-1;(a=Yq(a))&&Si(a,2)&&(b=hi(a,2,0));return"index:"+b},q7a=function(a,b){var c=To(l7a,{icon:b.icon,tooltipLabel:b.tooltipLabel,ariaLabel:b.ariaLabel});
a.appendChild(c);var d=c.classList,e=d.add;a:{var f=b.density||0;switch(f){case 0:f="googleMaterialDefaultDensity";break a;case 1:f="workspaceMaterialComfortableDensity";break a;case 2:f="workspaceMaterialCompactDensity";break a;default:throw Error("ue`"+f);}}e.call(d,f);if(b.tooltipLabel){e=c.getAttribute("data-tooltip-id")||"";d={label:b.tooltipLabel,ariaLabel:b.ariaLabel};e=To(m7a,{label:d.label,id:e,ariaLabel:d.ariaLabel});a.appendChild(e);var h=new n7a(e,d.showDelayMs,d.hideDelayMs);o7a(h,c)}return new p7a(c,
b.icon,b.disabledIcon,h,b.disableDomNavigation,b.onClick)},s7a=function(a,b,c,d){var e=Object.assign({},c);e.onClick=function(f){d.select(a.getSelection(),1);var h;null==(h=c.onClick)||h.call(c,f)};return new r7a(a,b,e)},v7a=function(a,b){var c=(new t7a).filterResult(b.result)===b.result;Ri(b.clientConfig.internal,7,!1)&&c&&Zq()?a=new u7a(a,b.appearanceConfig,b.clientConfig,b.interactions):b.resultCustomization.secondaryActionButtonConfig&&(a=s7a(a,b.appearanceConfig,b.resultCustomization.secondaryActionButtonConfig,
b.interactions));return a},w7a=function(a,b){var c=(new t7a).filterResult(b.result)===b.result,d=2<=b.result.getMemberList().length;d=7!==b.result.getResultType()&&!d;Ri(b.clientConfig.internal,7,!1)&&!c&&Zq()&&d&&(a=new $q(a,b.appearanceConfig,b.clientConfig,b.result,b.ariaParent));return a},y7a=function(){return function(a){var b=a.result;var c=a.selectionsState;var d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomization,h=a.clientConfig,k=$6a(b,d,f,Pq(e.getDensity())),q=To(x7a,k);sq(q,25285,
["impression","pk-select","pk-deselect"],[k7a(b.getPrimaryTarget().getLoggingToken())]);var u=wq(q,"d6MZcd"),x=N6a(e.getDensity()),y;f=null!=(y=f.backupAvatarUrl)?y:"";e=Kq(u,k.photos,x,x,e,f);b=new ar(q,b,c,d,k.tags,e,h);c=new br(new cr(b,c));return w7a(v7a(c,a),a)}},B7a=function(a){return function(b){var c=b.result,d=b.resultConfig,e=b.appearanceConfig,f=b.clientConfig,h=b.resultCustomization;b=b.isRightToLeft;var k=c.getPrimaryTarget().getId();f=dr(k)||er(k)?f7a(c,d,h,b,Ri(f.internal,6,!1),Pq(e.getDensity())):
$6a(c,d,h,Pq(e.getDensity()));b=Object;k=b.assign;a:switch(a){case 1:var q=Iq('<div class="'+Lq("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="'+Lq(". Already selected")+'">'+Iq('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(Lq("peoplekitComponentsResultlistitemDisabledSelectedIcon")+'"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>'))+"</div>");break a;case 2:q=
Iq("");break a;default:q='<div class="'+Lq("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',q=Iq(q+"DISABLED</div>")}b=To(z7a,k.call(b,{},f,{disableReason:q}));k=wq(b,"d6MZcd");q=N6a(e.getDensity());var u;h=null!=(u=h.backupAvatarUrl)?u:"";e=Kq(k,f.photos,q,q,e,h);return new A7a(b,c,d,f.tags,e)}},D7a=function(a,b,c,d,e,f,h,k,q){b=d.getResultCustomizationCallback()(a,b);var u=!!c.get(a.getPrimaryTarget().getId());if(b.shouldDisable)u=6;else{var x=a.getPrimaryTarget().getId();u=er(x)?
3:dr(x)?2:u&&!d.getAllowResultDeselection()?5:1===a.getTargetList().length?1:1<a.getTargetList().length?4:0}u=C7a.get(u);if(!u)throw Error("Fe");return u({result:a,selectionsState:c,resultConfig:d,appearanceConfig:e,clientConfig:f,isRightToLeft:h,interactions:k,resultCustomization:b,ariaParent:q})},G7a=function(a){var b=qq(uq.getInstance());b=To(E7a,{id:b,header:a});return new F7a(b,a)},H7a=function(a,b,c){return new fr(a,b,c)},I7a=function(a,b,c){return(b=b.getGroupName(c))?new gr(a,b):a},K7a=function(a,
b,c,d){b=b.getGroupName(c);c=J7a();return b&&c.infoGroupConfig?new hr(a,c.infoGroupConfig,d):a},L7a=function(a,b,c){b=b.getGroupName(c);c=J7a();return b&&c.collapsibleGroupConfig?new ir(a,c.collapsibleGroupConfig):a},O7a=function(a,b,c,d,e,f,h,k,q){h=To(M7a,{header:h||""});a.appendChild(h);a=K5a(wq(h,"tjneg"));return{resultList:new N7a(a,b,c,d,e,f,k,q),list:a}},R7a=function(a,b,c,d,e,f,h,k,q,u){a=O7a(a,b,c,d,e,k,q,f,u);b=a.resultList;b=new P7a(b,a.list,h);return new Q7a(b,f)},T7a=function(a,b,c,d,
e,f,h,k,q){k=To(M7a,{header:k||""});a.appendChild(k);a=K5a(wq(k,"tjneg"));b=new S7a(a,b,c,d,e,f,h,q);return new Q7a(b,f)},U7a=function(a){return"XLuqBd"===a.getAttribute("peoplekit-id")},W7a=function(a,b){return new V7a(a,b)},X7a=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},jr=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},kr=function(a,b,c,d){var e;d=l(d);for(var f=
d.next();!f.done;f=d.next()){f=f.value;try{f(a,b,c)}catch(h){e||(e=h)}}if(e)throw e;},Y7a=function(a,b,c,d,e){e=l(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},$7a=function(a){if(Z7a.has(a))return Z7a.get(a);throw Error("Je`"+a);},b8a=function(a){if(a8a.has(a))return a8a.get(a);throw Error("Ke`"+a);},c8a=function(a){for(var b=new Map,c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(a[d].string,a[d].xid);return b},e8a=function(a){return a?a.__owner?a.__owner:a.parentNode&&
11===a.parentNode.nodeType?a.parentNode.host:d8a(a):null},f8a=function(a,b,c){for(c||(a=e8a(a));a&&!b(a);)a=e8a(a)},h8a=function(a,b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new lr);return g8a(a,b,c,h,d,e,f)},g8a=function(a,b,c,d,e,f,h){f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=f.internal,q=e.getEnvironmentConfig(),u=q.experimentsConfig_.getProfileId();if(u)if(k.getExperiments().getIsEnabled()){var x=Mb(i8a||(i8a=j8a('[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]')));
x=new k8a(x,7)}else x=new mr;else x=new mr;k=k.getExperiments();q=x.loadExperiments(k.getApplication(),(new nr).setPeopleApiEnv(q.apiEnv_),u);Xq=new l8a(k,q);q=To(m8a,{classes:"aU4VQc"});a.appendChild(q);t6a(q,e.getTheme());sq(q,64611,["impression"]);a=new or;u=e.getEntryPoint();u=new n8a(d,a,u);x=e.getEntryPoint();k=f.internal.getClearcut();x=new o8a(k,x);x=pr(x);k=k.getInterfaceType();k=new p8a(new q8a(x,k));var y=new r8a(h.intelligence);h=To(s8a);q.appendChild(h);x=To(t8a);sq(x,85843,["impression"]);
h.appendChild(x);var E=wq(x,"tjneg");a:{var H=e.getAutocompleteHeader(),J=e.getAutocompleteCustomGrouping();switch(e.getAutocompleteGroupingType()){case 1:y=R7a(E,e,e,f,a,u,new u8a(e.getAutocompleteGroupingLabel()),y,H,b);break a;case 2:y=R7a(E,e,e,f,a,u,new v8a(e.getAutocompleteGroupingLabel()),y,H,b);break a;case 3:if(!J)break;y=Ri(f.internal,7,!1)&&Zq()?T7a(E,e,e,f,a,u,J,H,b):R7a(E,e,e,f,a,u,J,y,H,b);break a;case 4:if(J){y=T7a(E,e,e,f,a,u,J,H,b);break a}}y=O7a(E,e,e,f,a,y,H,u,b);y=new Q7a(y.resultList,
u)}E=wq(E,"rymPhb");b.setAttribute("aria-owns",E.id);b.setAttribute("aria-controls",E.id);E.setAttribute("aria-labelledby",b.id);H=e.getNoResultsMessage();E=To(w8a);H?H.display?H=new x8a(E,H):(H=To(y8a,H),E.appendChild(H),H=new z8a):H=new A8a;x.appendChild(E);k=new B8a(x,b,y,d,k,e,H,f);Ri(f.internal,7,!1)&&Zq()&&(k=new qr(k,c,d,f,e,b));b=new C8a(h,b,k,a,e);G5a(b.getRoot(),c);c=f.internal.getClearcut();h=e.getEntryPoint();f=new rr;d=QJa();h=(new D8a).setClientId(c.getClientId()).setApplication(c.getSocialApplicationOrUndefined()).setEntryPoint(h).setVersionName("1.0").setBaselineCl(560219052);
f=new sr(f,1394,d,void 0,void 0,void 0,new E8a(h));f.setClientSideLogOnlyForDevelopment(!c.getEnableClearcut()||!1);d=new aKa;h=Xq.getExperimentIds();d=ac(d,3,h,tb);f.clearcut_.setClearExperimentIds(d);c=Ri(c,6,!0);c=void 0===c||c?new F8a(q,f):new G8a;c.start(H8a);return new I8a(q,b,a,u,c,e)},K8a=function(a){var b=[],c=a.indexOf("@");0>c?c=a.length-1:1<a.length-c&&(b.push(a.substring(c)),a=a.substring(0,c+1));if("@"===a)return b;b.push(a);J8a.lastIndex=0;for(var d=J8a.exec(a);d&&d.index<c;d=J8a.exec(a))b.push(a.substring(Number(J8a.lastIndex)));
return b},O8a=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(L8a)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=tr(M8a(c.value)).replace(N8a,"").toUpperCase().toLowerCase();c=l(K8a(c).filter(Boolean));for(var d=c.next();!d.done;d=c.next())b.add(d.value)}var e="";return Array.from(b).sort().reverse().filter(function(f){if(e.startsWith(f))return!1;e=f;return!0})},Q8a=function(a){var b;return P8a(function(c){1==c.nextAddress&&
(b=0);if(3!=c.nextAddress)return b<a?c.yield(b,3):c.jumpTo(0);b++;return c.jumpTo(2)})},R8a=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&dr(a.id)&&9!==a.id.getType()?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},U8a=function(a,b,c){if(dr(a.id)||dr(b.id)){var d=S8a.has(a.id.getType()),e=S8a.has(b.id.getType());if(d!==e)return d?-1:1;if(dr(a.id)&&dr(b.id))return T8a(a,b,c,!1)}d=R8a(a,c);c=R8a(b,c);(c=d!==c?d>c?-1:1:0)||(c=1===a.dataSource,c=c!==(1===b.dataSource)?
c?-1:1:0);c||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},T8a=function(a,b,c,d){var e=isFinite(a.itemAffinity)?a.itemAffinity:-Infinity,f=isFinite(b.itemAffinity)?b.itemAffinity:-Infinity;return e!==f?e>f?-1:1:d?U8a(a,b,c):0},Z8a=function(a,b,c){var d=ur(b.getTargetType(),b.getValue()),e=[].concat(p(b.getProfileIdList().map(V8a)),p(b.getContactIdList().map(W8a)),p(b.getCustomSourceIdList().map(X8a)));Y8a.includes(d.getType())&&e.push(d);return{id:d,containerIds:e,dataSource:b.getContactIdList().length?
1:2,isMe:!!b.getIsMe(),isPrimary:a.getTargetList()[0]===b,itemAffinity:a.hasAffinity()?a.getAffinity().getValue():-Infinity,fieldAffinity:b.hasAffinity()?b.getAffinity().getValue():-Infinity,provenance:c,resultExtendedData:a.hasExtendedData()?a.getExtendedData():void 0,targetData:b,resultData:a}},$8a=function(a){return(a||"").trim()},e9a=function(a){var b=a.resultData,c=a.targetData,d=a9a(vr(a.id).setDataSource(a.dataSource||0),!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);b.hasResultType()&&
(d.resultType_=b.getResultType());c.hasValue()&&d.setValue($8a(c.getValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();d.setName((new b9a).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&(e=c.getPhoto(),d.setPhoto((new wr).setUrl(e.getUrl()).setType(e.getType()).setSourceType(e.getSourceType()).setGlyph(e.getGlyph())));if(b.hasTotalMemberCount()){var f;
a.totalMemberCount=null!=(f=b.getTotalMemberCount())?f:void 0}b.hasAffinity()&&d.setPersonLoggingId(b.getAffinity().getLoggingId()||"");c.hasAffinity()&&d.setFieldLoggingId(c.getAffinity().getLoggingId()||"");c.hasOrgState()&&(d.orgState_=c.getOrgState());c.hasDataSource()&&d.setDataSource(c.getDataSource());c.getTagList().length&&c9a(d,c.getTagList().map(function(h){return d9a(h.altText_).setIconUrl(h.getIconUrl())}));c.hasExtendedData()&&(d.extendedData_=c.getExtendedData());return d},g9a=function(a){return a?
f9a.get(a)||0:0},j9a=function(a){switch(a.getValueCase()){case 2:return xr(a.getEmail().getValue()||"");case 3:var b=a.getPhone();return b.getOriginalValue()&&Ej(b,2)?(a=h9a(b.getOriginalValue()||""),b=h9a(Ej(b,2)||""),!a.equals(b)&&a.getValue().startsWith(b.getValue())?a:b):h9a(Ej(b,2)||b.getDisplayValue()||b.getOriginalValue()||"");case 4:a=Fl(a,yr,4,zr);if(a.hasProfileId())return a=a.getProfileId()||"",new Ar(8,Mo(a).toLowerCase(),a);switch(Bl(a,Br)){case 2:return a=a.getEmail()||"",new Ar(6,Mo(a).toLowerCase(),
a);case 3:return i9a(a.getPhone()||"")}}return Cr},l9a=function(a){return Ji(a,k9a,5).map(function(b){switch(b.getIdCase()){case 1:return V8a(b.getProfileId()||"");case 2:return W8a(b.getContactId()||"");default:return null}}).filter(Boolean)},m9a=function(a,b){return Zi(a,Dr,3)&&Fi(a,Dr,3).getIsPlaceholder()?3:Er(b,8)?1:0},n9a=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},o9a=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):
-Infinity},p9a=function(a){return!!a&&!!a.getPrimary()},r9a=function(a){var b=a.getDisplayInfo();if(!b)return"";a=[];var c=b.getName();c&&(c.hasValue()?a.push(c.getValue()):(c.hasGivenName()&&a.push(c.getGivenName()),c.hasFamilyName()&&a.push(c.getFamilyName())));(b=b.getPhoto())&&b.hasUrl()&&a.push(b.getUrl());return a.length?"NameAndPhotoOnly"+q9a(a):""},v9a=function(a){var b=void 0;if(Fi(a,Dr,3)){var c;b=null!=(c=b)?c:new s9a;Fr(b,t9a,Fi(a,Dr,3))}if(Fi(a,Gr,5)){var d;b=null!=(d=b)?d:new s9a;Fr(b,
u9a,Fi(a,Gr,5))}return b},x9a=function(a){var b=void 0;if(Fi(a,Hr,9)){var c;b=null!=(c=b)?c:new s9a;Fr(b,w9a,Fi(a,Hr,9))}return b},z9a=function(a){var b=new Ir,c=a?2:1;y9a(b.setEventType(4),c).setToken(a);return b},B9a=function(a,b){var c=new Jr;c=(new Ir).setLookupInfo(c);Kr(c.setEventType(6),9).setItemCount(a.length).setQueryScope(A9a.get(b)||0);return c},C9a=function(){var a=new Ir;Kr(a.setEventType(6),11);return a},D9a=function(){var a=new Ir;Kr(a.setEventType(6),10);return a},E9a=function(a,
b){var c=new Ir;Kr(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(A9a.get(b)||0);return c},F9a=function(a){var b=new Ir;Kr(b.setEventType(6),5).setQueryScope(A9a.get(a)||0);return b},G9a=function(a,b){switch(a){case 8:case 3:case 17:return(new Lr).setProfileId(b);case 1:case 6:return(new Lr).setEmail(b);case 7:case 2:return(new Lr).setPhone(b);default:return null}},J9a=function(a){return((a=Ji(a,H9a,2).find(function(b){return 1===Mr(b,1)}))?I9a.get(Mr(a,2)):0)||0},M9a=function(a,b){b.hasAffinity()&&
a.setFieldLoggingId(K9a(lca(bq(b.getAffinity(),1))||""));if(b.hasName()){var c=b.getName(),d=a.setName,e=(new b9a).setDisplayName(c.getValue()).setGivenName(c.getGivenName()).setFamilyName(c.getFamilyName()),f=e.setSourceType;a:switch(c.getSourceType()){case 1:c=3;break a;case 2:c=4;break a;default:c=0}d.call(a,f.call(e,c))}b.hasPhoto()&&(b=b.getPhoto(),a.setPhoto((new wr).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(L9a.get(b.getType())||0)))},O9a=function(a,b){if(b.hasProfileId())switch(Bl(b,
Br)){case 2:var c=b.getEmail()||"";return N9a(vr(a.id).setValue(b.getProfileId()||""),(new Nr).setType(1).setValue(c));case 3:return c=b.getPhone()||"",N9a(vr(a.id).setValue(b.getProfileId()||""),(new Nr).setType(2).setValue(c));default:return b=b.getProfileId()||"",vr(a.id).setValue(b)}switch(Bl(b,Br)){case 2:return b=b.getEmail()||"",N9a(vr(a.id).setValue(b),(new Nr).setType(1).setValue(b));case 3:return b=b.getPhone()||"",N9a(vr(a.id).setValue(b),(new Nr).setType(2).setValue(b));default:return b=
b.getProfileId()||"",vr(a.id).setValue(b)}},R9a=function(a,b){var c=a9a(vr(a.id),!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&M9a(c,b);a.group&&((b=Ji(a.group,P9a,6).find(function(d){return null!=aq(d,1,Q9a)}))?c.setValue(aq(b,1,Q9a)||""):a.group.hasGroupId()&&c.setValue(a.group.getGroupId()||""));a.targetExtendedData&&(c.extendedData_=a.targetExtendedData);a.target=c},T9a=function(a){return new S9a(a)},W9a=function(a){if(8===a.getTargetType()){var b=a.getOriginatingField();if(b&&
(b=b.getType(),b=U9a.get(b)))return b}return(b=V9a.get(a.getTargetType()))?b:dr(a.getId())?8:0},Y9a=function(a,b,c){var d=new Or,e=new Pr;oj(d,Pr,2,e);e.setProvenance(b);b=new Qr;oj(d,Qr,1,b);mj(b,9,1===c);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=8===W9a(a)?8:a.getIsPersonalResult()?4:3;rj(b,8,c);c=null;8===a.getTargetType()&&(e=a.getOriginatingField())&&U9a.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);dr(a.getId())||b.setName(a.getName()?
a.getName().getDisplayName():null);c=W9a(a);rj(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(3===a.getDataSource());8===Mr(b,7)&&b.setGroupId(a.getId().getValue());return new X9a(a,d)},$9a=function(a){a=Z9a.indexOf(a.provenance);return 0>a?Z9a.length:a},a$a=function(a){return a.containerIds&&a.containerIds.some(function(b){return 3===b.getType()})},c$a=function(a,b){b.useOriginalDisplayValue_&&(a=new Map(Array.from(a,
function(c){var d=l(c);c=d.next().value;d=d.next().value;if(c.equals(d.getPrimaryTarget().getId())&&c.getOriginalValue()!==d.getDisplayValue()&&d.getPrimaryTarget().getValue()===d.getDisplayValue()){var e=c.getOriginalValue(),f=d.getPrimaryTarget();d=nXa(d,new b$a(f,e))}return[c,d]})));return a},f$a=function(a){return Ri(a,21,!1)?new d$a:e$a},g$a=function(a){return 0!==a&&12!==a},h$a=function(a,b){return new Promise(function(c){0<b?setTimeout(function(){return c(a)},b):c(a)})},i$a=function(a,b,c){b=
h$a(b,c);return Promise.race([a,b])},j$a=function(a,b){var c=0;return function(d){if(!a.isCancelled()){var e=d.getMetadata();e.setCallbackNumber(c);e.setIsFirstCallback(!c);a.isDone()&&e.setIsLastCallback(!0);if(d.getResults().length||e.getIsLastCallback()||0!==e.getCode())c++,b(d)}}},m$a=function(a,b,c,d){b=k$a(a,b).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Rr(e,f)});c=k$a(a,c).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Rr(e,f)});a=k$a(a,
d).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Rr(e,f)});return new l$a(b,c,a)},n$a=function(a){switch(a.getType()){case 1:case 6:return 1;case 2:case 7:return 2;case 17:case 3:case 8:return 3;default:return 0}},o$a=function(a){return a.reduce(function(b,c){var d=n$a(c);if(b.has(d)){var e;null==(e=b.get(d))||e.push(c)}else b.set(d,[c]);return b},new Map)},p$a=function(a,b){b=void 0===b?new Sr:b;var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=
l(d.data.keys()),f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.data.get(f))}return{data:c,metadata:b}},r$a=function(a){return!a||a instanceof q$a?a:new q$a(a)},t$a=function(a,b){var c=s$a(Tr(new Ur,"PeopleStore").setLogSource(Vi(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(560219052).setEnableClearcut(a.getEnableClearcut()),[].concat(p(b.getExperiments().getExperimentIdsList()),p(Vr?Vr.getExperimentIds():[]))).setClientAgent(2);
b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());(a=Ji(a,Wr,5).find(function(d){return 0===d.getEntryPoint()}))&&c.setEventSource(Xr(a,4));return c},u$a=function(a){return(Zi(a,Yr,12)?Fi(Fi(a,Yr,12),Wr,2):a.getSources())||new Wr},v$a=function(a){return(Zi(a,Yr,12)?Fi(Fi(a,Yr,12),Wr,3):a.getSources())||new Wr},w$a=function(a,b){return a.reduce(function(c,d){var e=b(d);c.has(e)||c.set(e,[]);c.get(e).push(d);return c},new Map)},x$a=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();
return dj(a,3,0)+":"+dj(a,4,0)+":"+dj(a,5,0)+":"+a.getInstanceId()},y$a=function(a){return Zi(a,Pr,2)?Yq(a).getContext()||0:0},z$a=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getSessionState();d=d?dj(d,3,0)+"-"+dj(d,4,0)+"-"+dj(d,5,0)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},$r=function(a,b,c,d){d=void 0===d?!1:d;a=a.filter(function(h){return!Ri(h,4,!1)});if(d){d=l(a);for(var e=d.next();!e.done;e=d.next())mj(e.value,
4,!0)}if(c)for(d=a.filter(function(h){return h&&!h.hasSessionState()}),d=l(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=z$a(a);c=[];a=l(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(h){return h&&h.hasSessionState()})){e=e.getSessionState();var f=new Zr;f.setSessionState(e);f.setEventType(b);om(f,3,d);f.setEventSources(e.getSources());c.push(f)}return c},A$a=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=
a.getSource()));return b||new as},B$a=function(a){a&1&&(D(0,"a",3),Q(1),T(2,"async"),F());if(a&2){a=M();var b;C("href",a.manageComponentLink,re);w(1);jg(null==(b=V(2,2,a.component$))?null:b.name)}},C$a=function(a){a&1&&(D(0,"output"),Q(1),F());a&2&&(a=M(),w(1),jg(a.componentId))},D$a=function(a){a&1&&(D(0,"li")(1,"label"),Q(2,"Component"),F(),G(3,"b-async-component",7),F());a&2&&(a=M(2),w(3),C("componentId",a.issueComponentId))},E$a=function(a){a&1&&(D(0,"li")(1,"label"),Q(2,"Team"),F(),G(3,"b-team-display",
8),F());a&2&&(a=M(2),w(3),C("teamId",a.issueTeamId))},F$a=function(a){a&1&&(D(0,"ol",3)(1,"li")(2,"label"),Q(3,"ID"),F(),D(4,"output"),Q(5),F()(),D(6,"li")(7,"label"),Q(8,"Type"),F(),D(9,"output"),Q(10),F()(),D(11,"li")(12,"label"),Q(13,"Priority"),F(),G(14,"b-issue-priority-display",4),F(),D(15,"li")(16,"label"),Q(17,"Severity"),F(),D(18,"output"),Q(19),F()(),D(20,"li")(21,"label"),Q(22,"Status"),F(),D(23,"output"),Q(24),F()(),D(25,"li")(26,"label"),Q(27,"Last modified"),F(),D(28,"output"),Q(29),
T(30,"date"),F()(),D(31,"li")(32,"label"),Q(33,"Issue access limit"),F(),D(34,"output"),Q(35),D(36,"a",5),Q(37,"Learn more"),F()()(),P(38,D$a,4,1,"li",6),P(39,E$a,4,1,"li",6),F());a&2&&(a=M(),w(5),jg(a.issueId),w(5),jg(a.issueType),w(4),C("issuePriority",a.issuePriority),w(5),jg(a.issueSeverity),w(5),jg(a.issueStatus),w(5),jg(rg(30,10,a.issueLastModified,"medium")),w(6),S("",a.accessLimitLevel," "),w(1),C("href",a.documentationLinks.getIssueAccessLimit(),re),w(2),C("ngIf",a.issueComponentId),w(1),
C("ngIf",a.issueTeamId))},G$a=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},H$a=function(a){a.label||(a=li(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},J$a=function(a){return{type:I$a[a.getType()],value:a.getValue()}},L$a=function(a){var b,c;return{type:K$a[a.getType()],values:(null!=(b=a.getValuesList())?b:[]).map(L$a),simpleValues:(null!=(c=Ji(a,M$a,3))?c:[]).map(J$a)}},Q$a=function(a){var b,
c=N$a[a.getType()],d=(null!=(b=a.getValuesList())?b:[]).map(L$a);b=Ri(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:O$a[e.getField()],customFieldId:Number(e.getCustomFieldId())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:P$a[Vi(a,5,0)]}},V$a=function(a){switch(a.getKindCase()){case 2:return{syntaxErrorResponse:{syntaxError:Hi(Fl(a,R$a,2,S$a),1)},queryBuilderResponse:void 0};case 1:a=Fl(a,bs,1,S$a);var b;return{syntaxErrorResponse:void 0,queryBuilderResponse:{type:T$a[a.getType()],
expressions:(null!=(b=Ji(a,U$a,2))?b:[]).map(Q$a)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},W$a=function(a,b){a&1&&(D(0,"mat-option",5)(1,"div",6),Q(2),F()());a&2&&(a=b.$implicit,C("value",a),w(2),S(" ",a," "))},X$a=function(a){a&1&&(D(0,"span",11),Q(1," > "),F())},$$a=function(a,b){if(a&1){var c=r();D(0,"span")(1,"a",9);L("click",function(d){var e=t(c).$implicit,f=M(2);e=new Y$a(e.pathIds,e.pathNames);f.onTeamSelect.emit(e);d.stopPropagation();d.preventDefault();
Z$a(f.autocompleteTrigger);return v()});Q(2);F();P(3,X$a,2,0,"span",10);F()}a&2&&(a=b.$implicit,b=b.last,w(1),C("matTooltip",a.pathNameText),w(1),jg(a.name),w(1),C("ngIf",!b))},aab=function(a,b){a&1&&(D(0,"mat-option",6)(1,"div"),P(2,$$a,4,3,"span",7),F(),D(3,"span",8),Q(4),T(5,"slice"),F()());a&2&&(a=b.$implicit,C("value",a),w(2),C("ngForOf",a.teamPath),w(1),C("matTooltip",a.description),w(1),S("",lka(5,4,a.description,100)," "))},bab=function(a,b){a&1&&(D(0,"mat-option",5)(1,"div",6),Q(2),F()());
a&2&&(a=b.$implicit,C("value",a),w(2),S(" ",a.name," "))},cab=function(a,b){a&1&&(D(0,"mat-option",13),Q(1),F());a&2&&(a=b.$implicit,C("value",a.key),w(1),S(" ",a.value," "))},dab=function(a){if(a&1){var b=r();D(0,"mat-form-field",10)(1,"mat-select",11);L("ngModelChange",function(c){t(b);var d=M(2);return v(d.expressionType=c)});P(2,cab,2,2,"mat-option",12);T(3,"keyvalue");F()()}a&2&&(a=M(2),w(1),C("ngModel",a.expressionType),w(1),C("ngForOf",V(3,2,a.globalTypeLabels)))},eab=function(a,b){a&1&&(D(0,
"mat-option",13),Q(1),F());a&2&&(a=b.$implicit,C("value",a[0]),w(1),S(" ",a[1]," "))},fab=function(a,b){a&1&&(D(0,"mat-option",13),Q(1),F());if(a&2){a=b.$implicit;b=M(2).$implicit;var c=M(2);C("value",a);w(1);S(" ",c.getTypeLabel(b,a)," ")}},gab=function(a){if(a&1){var b=r();D(0,"mat-form-field",10)(1,"mat-select",21);L("ngModelChange",function(c){t(b);var d=M().$implicit;return v(d.type=c)});P(2,fab,2,2,"mat-option",12);F()()}a&2&&(a=M().$implicit,w(1),C("ngModel",a.type),w(1),C("ngForOf",a.getLegalTypes()))},
iab=function(a){if(a&1){var b=r();D(0,"div",34);L("click",function(){t(b);var c=M(2).$implicit,d=M(5);return v(hab(d,c))});D(1,"span",35);Q(2);F()()}a&2&&(a=M(2).$implicit,M(5),C("title",a.value),w(2),S(" ",a.value.replace(/"/g,"")," "))},jab=function(a){if(a&1){var b=r();D(0,"div",36)(1,"b-custom-repeated-enum-picker",37);L("onValueSelect",function(e){t(b);var f=M(7);f.chipUnderEdit.value='"'+e+'"';cs(f);return v()});F()()}if(a&2){a=M(2).$implicit;var c=M(3).$implicit,d=M(2);w(1);C("customFieldTitle",
d.getCustomFieldName(c))("selectedValue",a.value.replace(/"/g,""))("allowedValues",c.getOptions())}},kab=function(a){if(a&1){var b=r();D(0,"div",30);P(1,iab,3,2,"div",31);P(2,jab,2,3,"div",32);D(3,"button",33);L("click",function(){t(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return v(ds(f,e,d))});F()()}if(a&2){a=M().$implicit;var c=M(5);w(1);C("ngIf",c.chipUnderEdit!==a);w(1);C("ngIf",c.chipUnderEdit===a)}},lab=function(a,b){a&1&&(I(0),P(1,kab,4,2,"div",29),K());a&2&&(a=b.$implicit,b=M(5),w(1),
C("ngIf",b.chipUnderEdit===a||a.value))},mab=function(a){if(a&1){var b=r();D(0,"button",38);L("click",function(){t(b);var c=M(3).$implicit,d=M(2);return v(es(d,c))});Q(1);F()}a&2&&(a=M(3).$implicit,w(1),S(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},nab=function(a){a&1&&(D(0,"div",26),P(1,lab,2,1,"ng-container",27),P(2,mab,2,1,"button",28),F());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.values),w(1),C("ngIf",a.type))},oab=function(a,b){if(a&1){var c=r();D(0,"div",41)(1,"mat-checkbox",42);L("change",
function(d){var e=t(c).$implicit,f=M(3).$implicit;return v(f.enumValues[e.id]=d.checked)});Q(2);F()()}a&2&&(a=b.$implicit,b=M(3).$implicit,w(1),C("checked",b.enumValues[a.id]),w(1),S(" ",a.label||a.id," "))},pab=function(a){a&1&&(D(0,"div",39),P(1,oab,3,2,"div",40),F());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.getOptions()))},qab=function(a){if(a&1){var b=r();D(0,"div")(1,"input",43);L("ngModelChange",function(c){t(b);var d=M(3).$implicit;return v(d.csv=c)});F()()}a&2&&(a=M(3).$implicit,w(1),C("ngModel",
a.csv)("bContactAutocomplete","MULTI"))},rab=function(a){if(a&1){var b=r();D(0,"div",22)(1,"input",44);L("ngModelChange",function(c){t(b);var d=M(3).$implicit;return v(d.csv=c)});F()()}a&2&&(a=M(3).$implicit,w(1),C("ngModel",a.csv))},sab=function(a){if(a&1){var b=r();D(0,"div",22)(1,"input",45);L("ngModelChange",function(c){t(b);var d=M(3).$implicit;return v(d.csv=c)});F()()}a&2&&(a=M(3).$implicit,w(1),C("ngModel",a.csv))},tab=function(a){if(a&1){var b=r();D(0,"div",22)(1,"input",46);L("ngModelChange",
function(c){t(b);var d=M(3).$implicit;return v(d.csv=c)});F()()}a&2&&(a=M(3).$implicit,w(1),C("ngModel",a.csv))},uab=function(a){a&1&&(D(0,"div"),P(1,qab,2,2,"div",25),P(2,rab,2,1,"div",18),P(3,sab,2,1,"div",18),P(4,tab,2,1,"div",18),F());a&2&&(a=M(2).$implicit,w(1),C("ngIf","user"==a.getWidgetType()),w(1),C("ngIf","csv"==a.getWidgetType()),w(1),C("ngIf","id"==a.getWidgetType()),w(1),C("ngIf","number"==a.getWidgetType()))},vab=function(a,b){if(a&1){var c=r();D(0,"div",48)(1,"div",36)(2,"input",46);
L("ngModelChange",function(d){var e=t(c).$implicit;return v(e.value=d)});F()();D(3,"button",49);L("click",function(){var d=t(c).$implicit,e=M(3).$implicit,f=M(2);return v(ds(f,e,d))});F()()}a&2&&(a=b.$implicit,w(2),C("ngModel",a.value))},wab=function(a){if(a&1){var b=r();D(0,"button",38);L("click",function(){t(b);var c=M(3).$implicit,d=M(2);return v(es(d,c))});Q(1);F()}a&2&&(a=M(3).$implicit,w(1),S(" + ","OR"==a.type||"NOR"==a.type?"OR":"AND"," "))},xab=function(a){a&1&&(D(0,"div",26),P(1,vab,4,1,
"div",47),P(2,wab,2,1,"button",28),F());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.values),w(1),C("ngIf",a.type))},zab=function(a){if(a&1){var b=r();D(0,"div",34);L("click",function(){t(b);var d=M(2).$implicit,e=M(5);return v(yab(e,d))});D(1,"span",35);Q(2);F()()}if(a&2){a=M(2).$implicit;var c=M(5);C("title",c.getComponentPath(c.components[a.value]));w(2);S(" ",c.getComponentPath(c.components[a.value])," ")}},Aab=function(a){if(a&1){var b=r();D(0,"div",36)(1,"b-team-component-picker",54);L("selectedComponentChange",
function(c){t(b);var d=M(7);d.componentUnderEdit=null!==c&&void 0!==c?c:null;d.componentUnderEdit&&(d.chipUnderEdit.value=d.componentUnderEdit.componentId,d.components[d.componentUnderEdit.componentId]=d.componentUnderEdit);d.componentUnderEdit=null;cs(d);return v()});F()()}a&2&&(a=M(7),w(1),C("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},Bab=function(a){if(a&1){var b=r();D(0,"div",51);P(1,zab,3,2,"div",31);P(2,Aab,2,3,"div",32);D(3,"button",52);L("click",
function(){t(b);var d=M().$implicit;M(5);d.includeSubs=!d.includeSubs;return v()});G(4,"mat-icon",53);F();D(5,"button",33);L("click",function(){t(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return v(ds(f,e,d))});F()()}if(a&2){a=M().$implicit;var c=M(5);w(1);C("ngIf",c.chipUnderEdit!==a);w(1);C("ngIf",c.chipUnderEdit===a);w(1);C("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");Nf("aria-checked",a.includeSubs);w(1);C("svgIcon",a.includeSubs?"child-components-24px":
"child-components-hide-24px")}},Cab=function(a,b){a&1&&(I(0),P(1,Bab,6,5,"div",50),K());a&2&&(a=b.$implicit,b=M(5),w(1),C("ngIf",b.chipUnderEdit===a||a.value))},Dab=function(a){if(a&1){var b=r();D(0,"button",38);L("click",function(){t(b);var c=M(3).$implicit,d=M(2);return v(es(d,c))});Q(1);F()}a&2&&(a=M(3).$implicit,w(1),S(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},Eab=function(a){a&1&&(D(0,"div",26),P(1,Cab,2,1,"ng-container",27),P(2,Dab,2,1,"button",28),F());a&2&&(a=M(2).$implicit,w(1),
C("ngForOf",a.values),w(1),C("ngIf",a.type))},Gab=function(a){if(a&1){var b=r();D(0,"div",34);L("click",function(){t(b);var d=M(2).$implicit,e=M(5);return v(Fab(e,d))});D(1,"span",35);Q(2);F()()}if(a&2){a=M(2).$implicit;var c=M(5);C("title",null==c.trackers[a.value]?null:c.trackers[a.value].name);w(2);S(" ",null==c.trackers[a.value]?null:c.trackers[a.value].name," ")}},Hab=function(a){if(a&1){var b=r();D(0,"div",36)(1,"b-tracker-picker",57);L("onTrackerSelect",function(c){t(b);var d=M(7);d.analytics.trackEvent(xp.SEARCH,
"builder-autocomplete-select","tracker",isNaN(Number(c.trackerId))?0:Number(c.trackerId));d.chipUnderEdit.value=c.trackerId;d.trackers[c.trackerId]=c;d.trackerUnderEdit=null;cs(d);return v()});F()()}a&2&&(a=M(7),w(1),C("selectedTracker",a.trackerUnderEdit))},Iab=function(a){if(a&1){var b=r();D(0,"div",56);P(1,Gab,3,2,"div",31);P(2,Hab,2,1,"div",32);D(3,"button",33);L("click",function(){t(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return v(ds(f,e,d))});F()()}if(a&2){a=M().$implicit;var c=M(5);
w(1);C("ngIf",c.chipUnderEdit!==a);w(1);C("ngIf",c.chipUnderEdit===a)}},Jab=function(a,b){a&1&&(I(0),P(1,Iab,4,2,"div",55),K());a&2&&(a=b.$implicit,b=M(5),w(1),C("ngIf",b.chipUnderEdit===a||a.value))},Kab=function(a){if(a&1){var b=r();D(0,"button",38);L("click",function(){t(b);var c=M(3).$implicit,d=M(2);return v(es(d,c))});Q(1);F()}a&2&&(a=M(3).$implicit,w(1),S(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},Lab=function(a){a&1&&(D(0,"div",26),P(1,Jab,2,1,"ng-container",27),P(2,Kab,2,1,"button",
28),F());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.values),w(1),C("ngIf",a.type))},Nab=function(a){if(a&1){var b=r();D(0,"div",34);L("click",function(){t(b);var d=M(2).$implicit,e=M(6);return v(Mab(e,d))});T(1,"teamPath");D(2,"span",35);Q(3);T(4,"teamPath");F()()}if(a&2){a=M(2).$implicit;var c=M(6);C("title",V(1,2,c.teams[a.value]));w(3);S(" ",V(4,4,c.teams[a.value])," ")}},Pab=function(a){if(a&1){var b=r();D(0,"div",36)(1,"b-team-picker",61);L("onTeamSelect",function(c){t(b);var d=M(8);return v(Oab(d,
c))});F()()}a&2&&(a=M(8),w(1),C("teamSelected",a.teamUnderEdit))},Qab=function(a){if(a&1){var b=r();D(0,"div",59);P(1,Nab,5,6,"div",31);P(2,Pab,2,1,"div",32);D(3,"button",60);L("click",function(){t(b);var d=M().$implicit;M(6);d.includeSubs=!d.includeSubs;return v()});G(4,"mat-icon",53);F();D(5,"button",33);L("click",function(){t(b);var d=M().$implicit,e=M(4).$implicit,f=M(2);return v(ds(f,e,d))});F()()}if(a&2){a=M().$implicit;var c=M(6);w(1);C("ngIf",c.chipUnderEdit!==a);w(1);C("ngIf",c.chipUnderEdit===
a);w(1);C("title",a.includeSubs?"Subteams are included":"Subteams are not included");Nf("aria-checked",a.includeSubs);w(1);C("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},Rab=function(a,b){a&1&&(I(0),P(1,Qab,6,5,"div",58),K());a&2&&(a=b.$implicit,b=M(6),w(1),C("ngIf",b.chipUnderEdit===a||a.value))},Sab=function(a){if(a&1){var b=r();D(0,"button",38);L("click",function(){t(b);var c=M(4).$implicit,d=M(2);return v(es(d,c))});Q(1);F()}a&2&&(a=M(4).$implicit,w(1),S(" + ","OR"==a.type||
"NAND"==a.type?"OR":"AND"," "))},Uab=function(a){a&1&&(I(0),P(1,Rab,2,1,"ng-container",27),P(2,Sab,2,1,"button",28),K());a&2&&(a=M(3).$implicit,w(1),C("ngForOf",a.values),w(1),C("ngIf",a.type))},Vab=function(a){a&1&&(D(0,"div",26),P(1,Uab,3,2,"ng-container",25),F());a&2&&(a=M(4),w(1),C("ngIf",a.sessionIsInternal))},Xab=function(a){if(a&1){var b=r();D(0,"div")(1,"bv2-input-date-picker",62);L("boundValueChange",function(c){t(b);M(3).$implicit.dateFrom=Wab(c);return v()});F();Q(2," and ");D(3,"bv2-input-date-picker",
62);L("boundValueChange",function(c){t(b);M(3).$implicit.dateTo=Wab(c);return v()});F()()}a&2&&(a=M(3).$implicit,w(1),C("boundValue",a.dateFrom)("isRequired",!0),w(2),C("boundValue",a.dateTo)("isRequired",!0))},Yab=function(a){if(a&1){var b=r();D(0,"div");Q(1," the last ");D(2,"input",63);L("ngModelChange",function(c){t(b);var d=M(3).$implicit;return v(d.duration=c)});F();Q(3," days. ");F()}a&2&&(a=M(3).$implicit,w(2),C("ngModel",a.duration))},Zab=function(a){if(a&1){var b=r();D(0,"div")(1,"bv2-input-date-picker",
62);L("boundValueChange",function(c){t(b);M(3).$implicit.dateFrom=Wab(c);return v()});F()()}a&2&&(a=M(3).$implicit,w(1),C("boundValue",a.dateFrom)("isRequired",!0))},$ab=function(a){a&1&&(D(0,"div"),P(1,Xab,4,4,"div",25),P(2,Yab,4,1,"div",25),P(3,Zab,2,2,"div",25),F());a&2&&(a=M(2).$implicit,w(1),C("ngIf","RANGE"==a.type||"NRANGE"==a.type),w(1),C("ngIf","DURATION"==a.type||"NDURATION"==a.type),w(1),C("ngIf","LE"==a.type||"LT"==a.type||"GE"==a.type||"GT"==a.type||"OR"==a.type))},abb=function(a){if(a&
1){var b=r();D(0,"div",34);L("click",function(){t(b);var d=M(2).$implicit,e=M(5);return v(gs(e,d))});D(1,"span",35);Q(2);F()()}if(a&2){a=M(2).$implicit;var c=M(5);C("title",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value);w(2);S(" ",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value," ")}},bbb=function(a,b){a&1&&(D(0,"mat-option",13),Q(1),F());a&2&&(a=b.$implicit,C("value",a.hotlistId),w(1),S(" ",a.name," "))},cbb=function(a){if(a&1){var b=r();D(0,"mat-form-field",
67)(1,"mat-select",68);L("ngModelChange",function(d){t(b);var e=M(2).$implicit;return v(e.value=d)})("selectionChange",function(){t(b);var d=M(7);return v(cs(d))});P(2,bbb,2,2,"mat-option",12);F()()}if(a&2){a=M(2).$implicit;var c=M(5);w(1);C("ngModel",a.value);w(1);C("ngForOf",c.userHotlists)}},dbb=function(a){if(a&1){var b=r();D(0,"div",65);P(1,abb,3,2,"div",31);P(2,cbb,3,2,"mat-form-field",66);D(3,"button",33);L("click",function(){t(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return v(ds(f,e,
d))});F()()}if(a&2){a=M().$implicit;var c=M(5);w(1);C("ngIf",c.chipUnderEdit!==a);w(1);C("ngIf",c.chipUnderEdit===a)}},ebb=function(a,b){a&1&&(I(0),P(1,dbb,4,2,"div",64),K());a&2&&(a=b.$implicit,b=M(5),w(1),C("ngIf",b.chipUnderEdit===a||a.value))},fbb=function(a){if(a&1){var b=r();D(0,"button",38);L("click",function(){t(b);var c=M(3).$implicit,d=M(2);return v(es(d,c))});Q(1);F()}a&2&&(a=M(3).$implicit,w(1),S(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},gbb=function(a){a&1&&(D(0,"div",26),
P(1,ebb,2,1,"ng-container",27),P(2,fbb,2,1,"button",28),F());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.values),w(1),C("ngIf",a.type))},hbb=function(a){if(a&1){var b=r();D(0,"div",34);L("click",function(){t(b);var d=M(2).$implicit,e=M(5);return v(gs(e,d))});D(1,"span",35);Q(2);F()()}if(a&2){a=M(2).$implicit;var c=M(5);C("title",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value);w(2);S(" ",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value," ")}},
ibb=function(a,b){a&1&&(D(0,"mat-option",13),Q(1),F());a&2&&(a=b.$implicit,C("value",a.searchId),w(1),S(" ",a.name," "))},jbb=function(a){if(a&1){var b=r();D(0,"mat-form-field",67)(1,"mat-select",69);L("ngModelChange",function(d){t(b);var e=M(2).$implicit;return v(e.value=d)})("selectionChange",function(){t(b);var d=M(7);return v(cs(d))});P(2,ibb,2,2,"mat-option",12);F()()}if(a&2){a=M(2).$implicit;var c=M(5);w(1);C("ngModel",a.value);w(1);C("ngForOf",c.userSavedSearches)}},kbb=function(a){if(a&1){var b=
r();D(0,"div",65);P(1,hbb,3,2,"div",31);P(2,jbb,3,2,"mat-form-field",66);D(3,"button",33);L("click",function(){t(b);var d=M().$implicit,e=M(3).$implicit,f=M(2);return v(ds(f,e,d))});F()()}if(a&2){a=M().$implicit;var c=M(5);w(1);C("ngIf",c.chipUnderEdit!==a);w(1);C("ngIf",c.chipUnderEdit===a)}},lbb=function(a,b){a&1&&(I(0),P(1,kbb,4,2,"div",64),K());a&2&&(a=b.$implicit,b=M(5),w(1),C("ngIf",b.chipUnderEdit===a||a.value))},mbb=function(a){if(a&1){var b=r();D(0,"button",38);L("click",function(){t(b);
var c=M(3).$implicit,d=M(2);return v(es(d,c))});Q(1);F()}a&2&&(a=M(3).$implicit,w(1),S(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},nbb=function(a){a&1&&(D(0,"div",26),P(1,lbb,2,1,"ng-container",27),P(2,mbb,2,1,"button",28),F());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.values),w(1),C("ngIf",a.type))},obb=function(a){a&1&&(D(0,"div",22),P(1,nab,3,2,"div",23),P(2,pab,2,1,"div",24),P(3,uab,5,4,"div",25),P(4,xab,3,2,"div",23),P(5,Eab,3,2,"div",23),P(6,Lab,3,2,"div",23),P(7,Vab,2,1,"div",23),
P(8,$ab,4,3,"div",25),P(9,gbb,3,2,"div",23),P(10,nbb,3,2,"div",23),F());if(a&2){a=M().$implicit;var b=M(2);w(1);C("ngIf","repeated-enum"===a.getWidgetType());w(1);C("ngIf","enum"===a.getWidgetType());w(1);C("ngIf",a instanceof hs);w(1);C("ngIf","text"==a.getWidgetType());w(1);C("ngIf","component"==a.getWidgetType());w(1);C("ngIf",b.isTrackerSearchEnabled&&"tracker"==a.getWidgetType());w(1);C("ngIf","team"==a.getWidgetType());w(1);C("ngIf","date"===a.getWidgetType());w(1);C("ngIf","hotlist"==a.getWidgetType());
w(1);C("ngIf","savedsearch"==a.getWidgetType())}},pbb=function(a){a&1&&(D(0,"div",70),Q(1),F());if(a&2){a=M().$implicit;var b=M(2);w(1);S(" ",b.getCustomFieldName(a)," ")}},sbb=function(a){if(a&1){var b=r();D(0,"div",71)(1,"b-custom-field-picker",72);L("fieldSelected",function(c){t(b);var d=M().index,e=M(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=qbb(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);rbb(e,e.expressions[d]);return v()});F()()}},ubb=function(a,b){if(a&1){var c=r();
D(0,"div",14)(1,"div",15)(2,"mat-form-field",10)(3,"mat-select",16);L("ngModelChange",function(d){var e=t(c).$implicit;return v(e.label.field=d)})("selectionChange",function(){var d=t(c).index,e=M(2);return v(tbb(e,d))});P(4,eab,2,2,"mat-option",12);F()();P(5,gab,3,2,"mat-form-field",3);F();D(6,"button",17);L("click",function(){var d=t(c).$implicit,e=M(2);return v(e.removeExpression(d))});F();P(7,obb,11,10,"div",18);P(8,pbb,2,1,"div",19);P(9,sbb,2,0,"div",20);F()}a&2&&(a=b.$implicit,b=M(2),w(3),C("ngModel",
a.label.field),w(1),C("ngForOf",b.availableLabels),w(1),C("ngIf",!a.isPendingCustomField),w(2),C("ngIf",!a.isPendingCustomField),w(1),C("ngIf",a.label.customFieldId),w(1),C("ngIf",a.isPendingCustomField))},vbb=function(a,b){if(a&1){var c=r();D(0,"button",73);L("click",function(){var d=t(c).$implicit,e=M(2);e.expressions.push({label:{field:d[0]}});tbb(e,e.expressions.length-1);return v()});Q(1);F()}a&2&&(a=b.$implicit,w(1),S(" ",a[1]," "))},wbb=function(a){a&1&&(D(0,"div",1)(1,"span",2),Q(2,"Advanced search query builder"),
F(),P(3,dab,4,4,"mat-form-field",3),P(4,ubb,10,6,"div",4),D(5,"div",5)(6,"button",6),Q(7),F(),D(8,"mat-menu",7,8),P(10,vbb,2,1,"button",9),F()()());if(a&2){var b=N(9);a=M();w(3);C("ngIf",a.expressions.length);w(1);C("ngForOf",a.expressions)("ngForTrackBy",a.trackByIndex);w(2);C("matMenuTriggerFor",b);w(1);S(" ",a.expressionType," ... ");w(3);C("ngForOf",a.availableLabels)}},zbb=function(a){return{experimentId:a.getExperimentId(),state:xbb[a.getState()],userGroup:ybb[Vi(a,3,0)],title:a.getTitle(),
description:a.getDescription(),learnMoreLink:Hi(a,6)}},Abb=function(a){a&1&&G(0,"div",3)},Bbb=function(a){a&1&&G(0,"div",4)},Dbb=function(a){if(a&1){var b=r();D(0,"button",2);L("click",function(){t(b);var c=M();return v(Cbb(c))});G(1,"mat-icon",3);Q(2);F()}a&2&&(a=M(),C("matTooltip","Open release notes"),w(1),C("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),w(1),S(" ",a.buttonLabel," "))},Ebb=function(a){if(a&1){var b=r();D(0,"button",4);L("click",function(){t(b);var c=M();return v(Cbb(c))});
Q(1);F()}a&2&&(a=M(),w(1),S(" ",a.buttonLabel," "))},Fbb=function(a){if(a&1){var b=r();D(0,"button",9);L("click",function(c){t(b);var d=M();return v(d.manageSlos(c))});Q(1,"Manage SLOs");F()}},Gbb=function(a){a&1&&(D(0,"a",13),Q(1,"Early Access "),G(2,"b-feature-stage-label",14),F())},Hbb=function(a){a&1&&(I(0),G(1,"mat-divider")(2,"b-whats-new-button",15),K());a&2&&(w(2),C("menuMode",!0))},Ibb=function(a){a&1&&G(0,"b-whats-new-button",4);a&2&&(a=M(),C("alertMode",a.majorReleaseNotesUpdated))},Jbb=
function(a){if(a&1){var b=r();D(0,"button",5);L("click",function(){t(b);var c=M();return v(c.openFeedbackDialog())});G(1,"mat-icon",6);F()}},Kbb=function(a,b){if(a&1){var c=r();D(0,"button",6);L("click",function(){var d=t(c).$implicit,e=M();e.currentTracker.setTrackerId(d.trackerId);e.appSearchState.searchTriggered$.next("switch-trackers");return v()});G(1,"img",7);D(2,"span",8);Q(3);F()()}a&2&&(a=b.$implicit,C("value",a.trackerId),Nf("title",a.name),w(1),C("src",null==a.branding?null:a.branding.logoUrl,
re),w(2),jg(a.name))},Lbb=function(a){if(a&1){var b=r();D(0,"button",5);L("click",function(){t(b);var c=M();return v(c.clickMenu.emit())});G(1,"mat-icon",6);F()}},Obb=function(a,b){a&1&&(D(0,"output",7),Q(1),F());a&2&&(a=b.$implicit,C("ngClass",a.color?og(2,Mbb,a.color):ng(4,Nbb)),w(1),jg(a.name))},Pbb=function(a){a&1&&G(0,"tracker-switcher",2);a&2&&(a=M(),C("associatedTrackers",a.associatedTrackers))},Qbb=function(a){a&1&&(D(0,"span"),Q(1," Currently selected hotlist: "),D(2,"strong"),Q(3),F()());
a&2&&(a=M(3),w(3),jg(a.header.hotlist.name))},Rbb=function(a){a&1&&Q(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},Sbb=function(a){a&1&&(I(0),P(1,Qbb,4,1,"span",5),P(2,Rbb,1,0,"ng-template",null,6,Eg),K());if(a&2){var b=N(3);a=M(2);w(1);C("ngIf",a.header.hotlist)("ngIfElse",b)}},Tbb=function(a){a&1&&(D(0,"span"),Q(1,"Currently selected saved search: "),D(2,"strong"),Q(3),F()());a&2&&(a=M(3),w(3),jg(a.header.savedSearch.name))},Ubb=function(a){a&1&&Q(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},
Vbb=function(a){a&1&&(I(0),P(1,Tbb,4,1,"span",5),P(2,Ubb,1,0,"ng-template",null,7,Eg),K());if(a&2){var b=N(3);a=M(2);w(1);C("ngIf",a.header.savedSearch)("ngIfElse",b)}},Wbb=function(a){a&1&&(D(0,"span"),Q(1," and "),D(2,"strong"),Q(3,"subcomponents"),F()())},Xbb=function(a){a&1&&(D(0,"span"),Q(1," Currently selected component: "),D(2,"strong",9),Q(3),F(),G(4,"b-access-level-indicator",10)(5,"b-tracker-chip-smart",11),P(6,Wbb,4,0,"span",4),F());if(a&2){a=M(3);w(3);var b=a.header.component;var c=is(a.currentTracker,
b.componentPathInfo);b=c&&c.componentPathName?c.componentPathName.join(" > "):b.name;jg(b);w(1);C("accessLevel",null==a.header.component.accessLimit?null:a.header.component.accessLimit.accessLevel);w(1);C("trackerId",a.header.component.trackerId);w(1);C("ngIf",a.header.includeChildren)}},Ybb=function(a){a&1&&Q(0," Start typing a component name or ID to see auto-complete suggestions. ")},Zbb=function(a){a&1&&(I(0),P(1,Xbb,7,4,"span",5),P(2,Ybb,1,0,"ng-template",null,8,Eg),K());if(a&2){var b=N(3);a=
M(2);w(1);C("ngIf",a.header.component)("ngIfElse",b)}},$bb=function(a){a&1&&(D(0,"span"),Q(1," Currently selected tracker: "),D(2,"strong"),Q(3),F()());a&2&&(a=M(3),w(3),jg(a.header.tracker.name))},acb=function(a){a&1&&Q(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},bcb=function(a){a&1&&(I(0),P(1,$bb,4,1,"span",5),P(2,acb,1,0,"ng-template",null,12,Eg),K());if(a&2){var b=N(3);a=M(2);w(1);C("ngIf",a.header.tracker)("ngIfElse",b)}},ccb=function(a){a&1&&(D(0,"span"),Q(1,
" and "),D(2,"strong"),Q(3,"subteams"),F()())},dcb=function(a){a&1&&(D(0,"span"),Q(1," Currently selected team: "),D(2,"strong"),Q(3),F(),P(4,ccb,4,0,"span",4),F());a&2&&(a=M(3),w(3),jg(a.header.team.name),w(1),C("ngIf",a.header.includeChildren))},ecb=function(a){a&1&&Q(0," Start typing a team name or ID to see auto-complete suggestions. ")},fcb=function(a){a&1&&(I(0),P(1,dcb,5,2,"span",5),P(2,ecb,1,0,"ng-template",null,13,Eg),K());if(a&2){var b=N(3);a=M(2);w(1);C("ngIf",a.header.team)("ngIfElse",
b)}},gcb=function(a,b){a&1&&(D(0,"span"),Q(1," Currently selected custom field: "),D(2,"strong"),Q(3),F(),Q(4," of type "),D(5,"strong"),Q(6),T(7,"lowercase"),F(),Q(8,". "),F());a&2&&(a=b.$implicit,w(3),jg(a.name),w(3),jg(V(7,2,a.type)))},hcb=function(a){a&1&&Q(0," customfield[id]: [value] ")},icb=function(a){a&1&&(I(0),P(1,gcb,9,4,"span",5),P(2,hcb,1,0,"ng-template",null,14,Eg),K());if(a&2){var b=N(3);a=M(2);w(1);C("ngIf",a.header.customField)("ngIfElse",b)}},jcb=function(a){a&1&&(D(0,"div",3),P(1,
Sbb,4,2,"ng-container",4),P(2,Vbb,4,2,"ng-container",4),P(3,Zbb,4,2,"ng-container",4),P(4,bcb,4,2,"ng-container",4),P(5,fcb,4,2,"ng-container",4),P(6,icb,4,2,"ng-container",4),F());a&2&&(a=M(),w(1),C("ngIf","hotlist"===a.header.type),w(1),C("ngIf","savedsearch"===a.header.type),w(1),C("ngIf","component"===a.header.type),w(1),C("ngIf","tracker"===a.header.type),w(1),C("ngIf","team"===a.header.type),w(1),C("ngIf","customfield"===a.header.type))},kcb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,
w(1),kg(" ",a.id,": ",a.name," "))},lcb=function(a){a&1&&(D(0,"span"),Q(1),D(2,"span"),Q(3),F()());a&2&&(a=M().$implicit,w(1),S(" Hotlist ",a.hotlistId,": "),w(2),jg(a.name))},mcb=function(a){a&1&&(D(0,"span"),Q(1),D(2,"span"),Q(3),F(),G(4,"br"),D(5,"span",16),Q(6),F()());a&2&&(a=M().$implicit,w(1),S(" Saved search ",a.searchId,": "),w(2),jg(a.name),w(3),jg(a.query))},ncb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,w(1),S(" ",a.name," "))},ocb=function(a){a&1&&(D(0,"span"),Q(1," > "),
F())},qcb=function(a,b){if(a&1){var c=r();I(0);D(1,"span",19);L("click",function(d){var e=t(c).$implicit;pcb(e);return v(d.stopPropagation())});Q(2);F();P(3,ocb,2,0,"span",4);K()}a&2&&(a=b.$implicit,b=b.last,w(1),ig("title","",a.id,": ",a.name,""),w(1),jg(a.name),w(1),C("ngIf",!b))},rcb=function(a){a&1&&(D(0,"span"),Q(1," Component "),D(2,"strong",9),Q(3),F(),G(4,"b-access-level-indicator",10)(5,"b-tracker-chip-smart",11),D(6,"span",17),P(7,qcb,4,4,"ng-container",18),F()());a&2&&(a=M().$implicit,
w(3),jg(a.componentId),w(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),w(1),C("trackerId",a.trackerId),w(2),C("ngForOf",a.componentPath))},scb=function(a){a&1&&(D(0,"span"),Q(1),D(2,"span"),Q(3),F()());a&2&&(a=M().$implicit,w(1),S(" Tracker ",a.trackerId,": "),w(2),jg(a.name))},tcb=function(a){a&1&&(D(0,"span"),Q(1," > "),F())},ucb=function(a,b){if(a&1){var c=r();I(0);D(1,"span",19);L("click",function(d){var e=t(c).$implicit;pcb(e);return v(d.stopPropagation())});Q(2);F();
P(3,tcb,2,0,"span",4);K()}a&2&&(a=b.$implicit,b=b.last,w(1),ig("title","",a.id,": ",a.name,""),w(1),jg(a.name),w(1),C("ngIf",!b))},vcb=function(a){a&1&&(D(0,"span"),Q(1," Team "),D(2,"strong"),Q(3),F(),D(4,"span",17),P(5,ucb,4,4,"ng-container",18),F()());a&2&&(a=M().$implicit,w(3),jg(a.id),w(2),C("ngForOf",a.teamPath))},wcb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,w(1),kg(" ",a.label,": ",a.name," "))},ycb=function(a,b){if(a&1){var c=r();D(0,"b-app-search-auto-complete-option",
15);L("optionClicked",function(e){t(c);var f=M();0<=e&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&xcb(e),f.itemSelected.emit(e));return v()});P(1,kcb,2,2,"span",4);P(2,lcb,4,2,"span",4);P(3,mcb,7,3,"span",4);P(4,ncb,2,1,"span",4);P(5,rcb,8,4,"span",4);P(6,scb,4,2,"span",4);P(7,vcb,6,2,"span",4);P(8,wcb,2,2,"span",4);F()}if(a&2){a=b.$implicit;b=b.index;var d=M();Pf("id","b-app-search-option-",b,"");C("index",b)("isActive",0<=b&&b<d.items.length?b===d.activeItemIndex:!1);w(1);C("ngIf","issue"===
a.completionCfg.type);w(1);C("ngIf","hotlist"===a.completionCfg.type);w(1);C("ngIf","savedsearch"===a.completionCfg.type);w(1);C("ngIf","atom"===a.completionCfg.type);w(1);C("ngIf","component"===a.completionCfg.type);w(1);C("ngIf","tracker"===a.completionCfg.type);w(1);C("ngIf","team"===a.completionCfg.type);w(1);C("ngIf",!d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type))}},Bcb=function(a){if(a&1){var b=r();D(0,"div",21)(1,"input",22,23);L("ngModelChange",function(c){t(b);var d=M();return v(d.searchName=
c)})("keydown.Tab",function(){t(b);var c=M();return v(Acb(c))})("keydown.enter",function(){t(b);var c=M();return v(c.saveSearch())});F();D(3,"button",24);L("click",function(){t(b);var c=M();return v(c.saveSearch())});G(4,"mat-icon",25);F()()}a&2&&(a=M(),w(1),C("ngModel",a.searchName),w(2),C("disabled",!a.searchName))},Ccb=function(a){a&1&&(I(0),D(1,"span",10),Q(2),F(),K());a&2&&(a=M(),w(1),Xf("muted",a.disabled),w(1),jg(a.cardTitle))},Dcb=function(a){a&1&&G(0,"mat-icon",11)},Ecb=function(a){a&1&&
G(0,"mat-icon",12)},Fcb=function(a){a&1&&(D(0,"mat-select-trigger"),G(1,"mat-icon",20),D(2,"span"),Q(3),F()());a&2&&(a=M(3),w(1),C("svgIcon",a.selectedOption.icon),w(2),jg(a.selectedOption.displayText))},Gcb=function(a){a&1&&G(0,"mat-icon",20);a&2&&(a=M().$implicit,C("svgIcon",a.icon))},Hcb=function(a,b){a&1&&(D(0,"mat-option",21),P(1,Gcb,1,1,"mat-icon",22),Q(2),F());a&2&&(a=b.$implicit,C("value",a),w(1),C("ngIf",a.icon),w(1),S("",a.displayText," "))},Icb=function(a){if(a&1){var b=r();D(0,"mat-form-field",
16)(1,"mat-label");Q(2," Choose type... ");F();D(3,"mat-select",17);L("valueChange",function(c){t(b);var d=M(2);return v(d.selectedOption=c)})("selectionChange",function(c){t(b);M(2).dropdownSelectionChanged.emit(c.value);return v()});P(4,Fcb,4,2,"mat-select-trigger",18);P(5,Hcb,3,3,"mat-option",19);F()()}a&2&&(a=M(2),w(3),C("disabled",a.disabled)("value",a.selectedOption),w(1),C("ngIf",a.selectedOption&&a.selectedOption.icon),w(1),C("ngForOf",a.dropdownOptions))},Jcb=function(a){if(a&1){var b=r();
D(0,"mat-form-field",13)(1,"input",14);L("ngModelChange",function(c){t(b);var d=M();return v(d.cardTitleChange.emit(c))});F()();P(2,Icb,6,4,"mat-form-field",15)}a&2&&(a=M(),w(1),Xf("muted",a.disabled||!a.selected),C("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),Nf("aria-label",a.ariaLabelForCardTitle),w(1),C("ngIf",a.dropdownOptions.length))},Kcb=function(a){a&1&&(D(0,"div",23),fg(1),F())},Lcb=function(a){a&1&&(D(0,"button",31),G(1,"mat-icon",
32),F());a&2&&(a=M(2),C("disabled",a.disabled))},Mcb=function(a){a&1&&G(0,"mat-divider",33);a&2&&C("vertical",!0)},Ncb=function(a){a&1&&(D(0,"mat-slide-toggle",34),Q(1," Required "),F());a&2&&(a=M(2),C("disabled",a.disabled))},Ocb=function(a){if(a&1){var b=r();D(0,"mat-slide-toggle",35);L("change",function(c){t(b);var d=M(2);return v(d.isInheritedChange.emit(c))});Q(1," Inherited ");F()}a&2&&(a=M(2),C("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",
!a.inheritedDisabled))},Pcb=function(a){if(a&1){var b=r();D(0,"div",24)(1,"button",25);L("click",function(){t(b);var c=M();return v(c.onSave())});Q(2," Save ");F();D(3,"button",26);L("click",function(){t(b);var c=M();return v(c.onCancel())});Q(4," Cancel ");F();P(5,Lcb,2,1,"button",27);P(6,Mcb,1,1,"mat-divider",28);P(7,Ncb,2,1,"mat-slide-toggle",29);P(8,Ocb,2,4,"mat-slide-toggle",30);F()}a&2&&(a=M(),w(1),C("disabled",a.isSaveButtonDisabled),w(2),C("disabled",a.disabled),w(2),C("ngIf",a.showDeleteButton),
w(1),C("ngIf",a.showDeleteButton&&a.showRequiredToggle),w(1),C("ngIf",a.showRequiredToggle),w(1),C("ngIf",a.showInheritedToggle))},Qcb=function(a){return{fieldId:eva(a.getFieldId()),stateOnIssues:lva[a.getStateOnIssues()],enabledOnIssues:a.getEnabledOnIssues()}},Rcb=function(a){a&1&&(D(0,"h3"),Q(1),F());a&2&&(a=M(2),w(1),S(" Edit Custom Field ",a.editableField.customFieldId," "))},Scb=function(a){a&1&&(D(0,"h3"),Q(1," Create Custom Field "),F())},Tcb=function(a){a&1&&(D(0,"div",40),Q(1),F());a&2&&
(a=M(2),w(1),S(" ",a.serverError," "))},Vcb=function(a,b){a&1&&(D(0,"button",41),Q(1),T(2,"enumToHuman"),F());if(a&2){a=b.$implicit;M();var c=N(32);C("matMenuTriggerFor",c)("matMenuTriggerData",og(5,Ucb,a));w(1);S(" ",V(2,3,a)," ")}},Wcb=function(a,b){if(a&1){var c=r();D(0,"button",43);L("click",function(){var d=t(c).$implicit,e=M().type,f=M(2);return v(f.setType(e,"Multiple"===d))});Q(1);F()}a&2&&(a=b.$implicit,w(1),S(" ",a," "))},Xcb=function(a){a&1&&P(0,Wcb,2,1,"button",42);a&2&&(a=M(2),C("ngForOf",
a.secondaryTypes))},Zcb=function(a){if(a&1){var b=r();D(0,"td",7)(1,"label",44);Q(2," Allowed Values: ");F();D(3,"b-list-field",45);L("valuesChange",function(c){t(b);var d=M(2);return v(Ycb(d,c.values))});F()()}a&2&&(a=M(2),w(3),C("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},$cb=function(a){a&1&&(D(0,"label",46),Q(1," Default Value: "),F())},
cdb=function(a,b){if(a&1){var c=r();D(0,"b-edit-field",47);L("valueChange",function(d){t(c);var e=M(2);adb(e,d);return v()});F()}a&2&&(a=b.ngIf,b=M(2),C("name","Default")("type",a)("tooltip","Set default value")("value",bdb(b))("choices",b.allowedValues)("showEnumTitle",!0)("disabled",b.isSaving)("truncate",!0)("clearable",!0))},ddb=function(a){a&1&&(D(0,"label",48),Q(1," Default Values: "),F())},edb=function(a,b){if(a&1){var c=r();D(0,"b-list-field",49);L("valuesChange",function(d){t(c);var e=M(2);
adb(e,d.values);return v()});F()}a&2&&(a=b.ngIf,b=M(2),C("defaultLineCount",3)("type",a)("tooltip","Set default values")("values",b.getListFieldValues())("enumChoices",b.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",b.isSaving)("truncate",!0))},fdb=function(a,b){if(a&1){var c=r();D(0,"button",50);L("click",function(){var d=t(c).$implicit,e=M(2);return v(e.setFieldSignificance(d))});Q(1);T(2,"enumToHuman");F()}a&2&&(a=b.$implicit,w(1),S(" ",V(2,1,a)," "))},gdb=function(a){if(a&
1){var b=r();D(0,"div",4);P(1,Rcb,2,1,"h3",3);P(2,Scb,2,0,"h3",3);P(3,Tcb,2,1,"div",5);D(4,"form",6)(5,"div",7)(6,"label",8);Q(7,"Name:");F();D(8,"input",9);L("ngModelChange",function(h){t(b);var k=M();return v(k.editableField.name=h)});F()();D(9,"div",7)(10,"label",10);Q(11,"Description:");F();D(12,"textarea",11);L("ngModelChange",function(h){t(b);var k=M();return v(k.editableField.description=h)});F()();D(13,"table",12)(14,"tr")(15,"td",7)(16,"div",13)(17,"label",14);Q(18," Type: ");F();D(19,"onedev-hovercard",
null,15)(21,"div",16)(22,"div",17);Q(23," You can only choose type of field when creating a new custom field. You won't be able to edit it after the custom field is created. ");F()()()();D(24,"button",18);Q(25);T(26,"enumToHuman");G(27,"b-icon",19);F();D(28,"mat-menu",null,20);P(30,Vcb,3,7,"button",21);F();D(31,"mat-menu",null,22);P(33,Xcb,1,1,"ng-template",23);F()();P(34,Zcb,4,7,"td",24);D(35,"td",7);P(36,$cb,2,0,"label",25);P(37,cdb,1,9,"b-edit-field",26);P(38,ddb,2,0,"label",27);P(39,edb,1,8,"b-list-field",
28);F();D(40,"td",7)(41,"label",29);Q(42," Required: ");F();D(43,"b-edit-field",30);L("valueChange",function(h){t(b);var k=M();return v(k.editableField.required=!!h)});F()();D(44,"td",7)(45,"div",13)(46,"label",31);Q(47," Field Significance: ");F();D(48,"onedev-hovercard",null,32)(50,"div",33)(51,"div",17);Q(52," This affects whether users will receive notifications when changes are made to this field. ");G(53,"br");Q(54," See\u00a0 ");D(55,"a",34);Q(56,"Email Settings ");F()()()()();D(57,"button",
35);Q(58);T(59,"enumToHuman");G(60,"b-icon",19);F();D(61,"mat-menu",null,36);P(63,fdb,3,3,"button",37);F()()()();D(64,"button",38);L("click",function(){t(b);var h=M();return v(h.save())});Q(65," Save ");F();D(66,"button",39);L("click",function(){t(b);var h=M();return v(h.cancel())});Q(67," Cancel ");F()()()}if(a&2){var c=N(20),d=N(29),e=N(49),f=N(62);a=M();w(1);C("ngIf",!!a.editableField.customFieldId);w(1);C("ngIf",!a.editableField.customFieldId);w(1);C("ngIf",a.serverError);w(5);C("bFocus",a.editableField&&
!a.isLoading)("ngModel",a.editableField.name)("disabled",a.isSaving);w(4);C("ngModel",a.editableField.description)("disabled",a.isSaving);w(5);C("onedevHovercardTrigger",c);w(7);C("matMenuTriggerFor",d)("disabled",!!a.editableField.customFieldId);w(1);S(" ",V(26,28,a.editableField.type)," ");w(5);C("ngForOf",a.typeChoices);w(4);C("ngIf",["REPEATED_ENUM","ENUM"].includes(a.editableField.type));w(2);C("ngIf",!a.editableField.isRepeated());w(1);C("ngIf",a.getSingleEditFieldType(a.editableField));w(1);
C("ngIf",a.editableField.isRepeated());w(1);C("ngIf",a.getListFieldType(a.editableField));w(4);C("name","Required")("type",a.FieldType.BOOL)("tooltip","Whether the field is required")("value",a.editableField.required);w(3);C("onedevHovercardTrigger",e);w(9);C("href",a.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",re);w(2);C("matMenuTriggerFor",f);w(1);S(" ",V(59,30,a.editableField.fieldSignificance)," ");w(5);C("ngForOf",a.significanceChoices);w(1);C("disabled",!a.hasUnsavedChanges()||
!a.editableField.name)}},hdb=function(a){a&1&&(D(0,"div",51),G(1,"b-spinner",52),F());a&2&&(w(1),C("large",!0))},idb=function(a){a&1&&(D(0,"th"),Q(1,"Actions"),F())},kdb=function(a){if(a&1){var b=r();D(0,"td",59)(1,"button",60);L("click",function(){t(b);var c=M().index,d=M(2);return v(d.editField(c))});Q(2,"Edit");F();D(3,"button",60);L("click",function(){t(b);var c=M().index,d=M(2);return v(jdb(d,c))});Q(4,"Delete");F()()}},ldb=function(a,b){a&1&&(D(0,"tr",56)(1,"td"),Q(2),F(),D(3,"td"),Q(4),F(),
D(5,"td"),Q(6),T(7,"enumToHuman"),F(),D(8,"td"),Q(9),F(),D(10,"td"),Q(11),T(12,"yesNo"),F(),D(13,"td"),G(14,"b-custom-field-value-display",57),F(),D(15,"td"),Q(16),T(17,"arrayToHuman"),F(),D(18,"td"),Q(19),T(20,"enumToHuman"),F(),P(21,kdb,5,0,"td",58),F());a&2&&(a=b.$implicit,b=M(2),C("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field"),w(2),jg(a.name),w(2),jg(a.customFieldId),w(2),jg(V(7,10,a.type)),w(3),jg(a.description),w(2),jg(V(12,12,a.required)),w(3),C("customFieldValue",a.typedDefaultValue),
w(2),jg(V(17,14,a.allowedValue)),w(3),jg(V(20,16,a.fieldSignificance)),w(2),C("ngIf",b.editMode))},mdb=function(a){a&1&&(D(0,"tr")(1,"td",61),Q(2," There are no custom fields defined on this component. "),F()())},ndb=function(a){a&1&&(D(0,"tr")(1,"td",62)(2,"strong"),Q(3,"Fields inherited from parent components"),F()()())},odb=function(a){a&1&&(I(0),G(1,"b-component-card",69,70),K());if(a&2){var b=N(2);a=M().$implicit;w(1);C("onedevIsHovercardReady",b.init)("componentId",a.componentId.toString())}},
qdb=function(a){if(a&1){var b=r();D(0,"b-field-state-menu",71,72);L("fieldStateChange",function(d){t(b);var e=M(),f=e.$implicit;e=e.index;var h=M(3);return v(h.updateCustomFieldState(f,d,e))});F()}if(a&2){a=M().$implicit;var c=M(3);C("fieldName",a.name)("fieldState",a.stateOnIssues)("enabledOnParent",pdb(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);Nf("aria-label",c.msgFieldStateTip)}},rdb=function(a,b){if(a&1){var c=r();D(0,"tr",56)(1,"td");Q(2);F();D(3,"td");Q(4);
F();D(5,"td");Q(6);T(7,"enumToHuman");F();D(8,"td");Q(9);F();D(10,"td");Q(11);T(12,"yesNo");F();D(13,"td");G(14,"b-custom-field-value-display",57);F();D(15,"td");Q(16);T(17,"arrayToHuman");F();D(18,"td");Q(19);T(20,"enumToHuman");F();D(21,"td",59)(22,"div",63)(23,"div",64);Q(24,"Inherited From");F();D(25,"a",65);L("click",function(){t(c);var e=M(3);return v(e.trackClick("parentCustomFields"))});Q(26);F();D(27,"onedev-hovercard",null,66);P(29,odb,3,2,"ng-container",67);F()();P(30,qdb,2,6,"b-field-state-menu",
68);F()()}if(a&2){a=b.$implicit;var d=N(28);b=M(3);C("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field");w(2);jg(a.name);w(2);jg(a.customFieldId);w(2);jg(V(7,13,a.type));w(3);jg(a.description);w(2);jg(V(12,15,a.required));w(3);C("customFieldValue",a.typedDefaultValue);w(2);jg(V(17,17,a.allowedValue));w(3);jg(V(20,19,a.fieldSignificance));w(6);C("onedevHovercardTrigger",d)("href",b.paths.manageComponent(a.componentId,"customFields"),re);w(1);S(" ",b.componentIdsToNames[a.componentId]," ");
w(4);C("ngIf",b.editMode)}},sdb=function(a){a&1&&(I(0),P(1,rdb,31,21,"tr",54),K());a&2&&(a=M(2),w(1),C("ngForOf",a.inheritedCustomFields))},tdb=function(a){a&1&&(D(0,"tfoot")(1,"tr")(2,"td",62),Q(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),D(4,"a",73),Q(5,"Field Ordering"),F(),Q(6," tab."),G(7,"br"),Q(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),F()()())},udb=function(a){if(a&
1){var b=r();D(0,"div",74)(1,"button",75);L("click",function(){t(b);var c=M(2);c.editableField=new wl;c.originalEditableFieldValue=li(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return v()});Q(2," Add a Custom Field ");F()()}},vdb=function(a){a&1&&(D(0,"div")(1,"table",53)(2,"tr")(3,"th"),Q(4,"Name"),F(),D(5,"th"),Q(6,"ID"),F(),D(7,"th"),Q(8,"Type"),F(),D(9,"th"),Q(10,"Description"),F(),D(11,"th"),Q(12,"Required?"),F(),D(13,"th"),Q(14,"Default Value"),F(),D(15,"th"),Q(16,
"Allowed Values"),F(),D(17,"th"),Q(18,"Field Significance"),F(),P(19,idb,2,0,"th",3),F(),P(20,ldb,22,18,"tr",54),P(21,mdb,3,0,"tr",3),P(22,ndb,4,0,"tr",3),P(23,sdb,2,1,"ng-container",3),P(24,tdb,9,0,"tfoot",3),F(),P(25,udb,3,0,"div",55),F());a&2&&(a=M(),w(19),C("ngIf",a.editMode),w(1),C("ngForOf",a.customFields),w(1),C("ngIf",!a.customFields.length),w(1),C("ngIf",a.inheritedCustomFields.length),w(1),C("ngIf",a.inheritedCustomFields.length),w(1),C("ngIf",a.customFields.length),w(1),C("ngIf",a.editMode))},
wdb=function(a){if(a&1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M().index,d=M();return v(d.removeAtIndex.emit(c))});G(1,"mat-icon",19);F()}a&2&&(a=M().$implicit,Nf("aria-label","Delete row "+a.label))},xdb=function(a,b){if(a&1){var c=r();D(0,"div",9)(1,"div",10);G(2,"mat-icon",11);D(3,"div",1)(4,"mat-form-field",12)(5,"input",13,14);L("change",function(f){var h=t(c).index,k=M();k.options[h].label=f.target.value;k.optionsChange.emit(k.options);return v()});F()()();D(7,"div",1)(8,
"mat-form-field",12)(9,"input",15,16);L("change",function(f){var h=t(c).index,k=M();return v(k.valueChange(f,h))});F()()();P(11,wdb,2,1,"button",17);F()()}if(a&2){a=b.$implicit;var d=N(6),e=N(10);b=M();w(4);C("appearance",d.focused||e.focused?"standard":"none");w(1);Xf("muted",b.disabled);C("value",a.label)("placeholder",null==a.label?"Dropdown value":"")("disabled",b.disabled);w(3);C("appearance",d.focused||e.focused?"standard":"none");w(1);Xf("muted",b.disabled);C("value",a.value)("placeholder",
null==a.value?"Average days":"")("disabled",b.disabled);w(2);C("ngIf",!b.disabled)}},ydb=function(a){if(a&1){var b=r();D(0,"button",20);L("click",function(){t(b);var c=M();return v(c.addRow.emit())});Q(1," Add row\n");F()}},zdb=function(a){a&1&&bg(0)},Adb=function(a){a&1&&(I(0),P(1,zdb,1,0,"ng-container",5),K());if(a&2){M();var b=N(7);w(1);C("ngTemplateOutlet",b)}},Bdb=function(a){if(a&1){var b=r();I(0);D(1,"b-numeric-config",6);L("valueChange",function(c){t(b);var d=M();return v(d.numericSpecMultiplier=
c)});F();K()}a&2&&(a=M(),w(1),C("disabled",a.disabled)("value",a.numericSpecMultiplier))},Cdb=function(a){a&1&&bg(0)},Ddb=function(a){if(a&1){var b=r();D(0,"div",7)(1,"label",8);Q(2,"Aggregation Rule");F();D(3,"a",9);G(4,"mat-icon",10);F();G(5,"br");D(6,"mat-form-field",11)(7,"mat-select",12);L("valueChange",function(c){t(b);var d=M();return v(d.selectedAggregationRule=c)});D(8,"mat-select-trigger");Q(9);T(10,"aggregationRuleText");F();D(11,"mat-option",13)(12,"div",14);Q(13);T(14,"aggregationRuleText");
F();D(15,"div",15);Q(16,"All parents and children are added to the total");F()();D(17,"mat-option",13)(18,"div",14);Q(19);T(20,"aggregationRuleText");F();D(21,"div",15);Q(22,"Take the assigned estimate if larger than total of all immediate children");F()()()()()}a&2&&(a=M(),w(7),C("value",a.selectedAggregationRule)("disabled",a.disabled),w(2),S(" ",V(10,7,a.selectedAggregationRule)," "),w(2),C("value",a.aggregationRules.SUM),w(2),jg(V(14,9,a.aggregationRules.SUM)),w(4),C("value",a.aggregationRules.MAX),
w(2),jg(V(20,11,a.aggregationRules.MAX)))},Edb=function(a){if(a&1){var b=r();D(0,"b-config-grid",16);L("optionsChange",function(c){t(b);var d=M();return v(d.enumSpecOptions=c)})("addRow",function(){t(b);var c=M();return v(c.addRow())})("removeAtIndex",function(c){t(b);M().enumSpecOptions.splice(c,1);return v()});F()}a&2&&(a=M(),C("options",a.enumSpecOptions)("disabled",a.disabled||a.inherit))},Fdb=function(a){a&1&&(D(0,"div",8),G(1,"b-team-warning",9),F());a&2&&(a=M().ngIf,w(1),C("warningType",a)("messageOnly",
!0))},Gdb=function(a,b){a&1&&(I(0),P(1,Fdb,2,2,"div",7),K());a&2&&(a=b.ngIf,b=M(),w(1),C("ngIf",b.isAdmin&&("MISSING"===a||"DELETED"===a)))},Hdb=function(a){if(a&1){var b=r();D(0,"div",10)(1,"mat-checkbox",11);L("change",function(c){t(b);var d=M();d.inherit=!c.checked;d.model.inherit=d.inherit;!d.isTopLevel&&d.inherit&&d.parentModel&&(d.model.id=d.parentModel.id);d.teamIdChanged$.next(d.model.id);d.modelChange.emit(d.model);return v()});Q(2," Override the inherited team ");F()()}a&2&&(a=M(),w(1),
C("disabled",!a.isAdmin)("checked",!a.inherit))},Jdb=function(a){if(a&1){var b=r();D(0,"a",13);L("click",function(){t(b);M(2);Mk(xp.MANAGE_COMPONENT,"navigate","to-internal-team-page");return v()});G(1,"mat-icon",14);F()}a&2&&(a=M(2),C("routerLink",Idb(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},Kdb=function(a){a&1&&(I(0),P(1,Jdb,2,2,"a",12),K());a&2&&(a=M(),w(1),C("ngIf",Idb(a)))},Ldb=function(a){if(a&1){var b=r();D(0,"a",16);L("click",function(){t(b);var c=M(2);Mk(xp.MANAGE_COMPONENT,
"linkout-moma","team",Number(c.model.id));return v()});G(1,"mat-icon",14);F()}a&2&&(a=M(2),Nf("href",a.getMomaTeamLink(),re))},Mdb=function(a){a&1&&P(0,Ldb,2,1,"a",15);a&2&&(a=M(),C("ngIf",Idb(a)))},Pdb=function(a,b){if(a&1){var c=r();D(0,"li",11);L("keydown",function(e){var f=t(c).index,h=M();return v(h.onKeyDown(e,f))})("focus",function(){var e=t(c).index,f=M();return v(f.onFocus(e))});G(1,"mat-icon",12);D(2,"span");Q(3);F();D(4,"div",13)(5,"button",14);L("click",function(){var e=t(c).index,f=M();
return v(Ndb(f,e))});G(6,"mat-icon",15);F();D(7,"button",16);L("click",function(){var e=t(c).index,f=M();return v(Odb(f,e))});G(8,"mat-icon",17);F()()()}if(a&2){a=b.$implicit;b=b.index;var d=M();Nf("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);w(3);jg(a.name);w(2);Xf("invisible",0===b);w(2);Xf("invisible",b===d.fields.length-1)}},Qdb=function(a){a&1&&(D(0,"th",14),Q(1," Order"),F())},Rdb=function(a,b){a&1&&(D(0,"td",15),Q(1),F());a&2&&(a=b.index,w(1),S(" ",a+1," "))},Sdb=function(a){a&1&&
(D(0,"th",14),Q(1," Name"),F())},Tdb=function(a,b){a&1&&(D(0,"td",15),Q(1),F());a&2&&(a=b.$implicit,w(1),S(" ",a.name," "))},Udb=function(a){a&1&&(D(0,"th",14),Q(1," Type"),F())},Vdb=function(a,b){a&1&&(D(0,"td",15),Q(1),T(2,"toCustomFieldTypeDisplayValue"),F());a&2&&(a=b.$implicit,w(1),S(" ",V(2,1,a.type)," "))},Wdb=function(a){a&1&&(D(0,"th",14),Q(1," Required"),F())},Xdb=function(a,b){a&1&&(D(0,"td",15),Q(1),F());a&2&&(a=b.$implicit,w(1),S(" ",a.required?"Yes":"No"," "))},Ydb=function(a){a&1&&
(D(0,"th",14),Q(1," ID"),F())},Zdb=function(a,b){a&1&&(D(0,"td",15),Q(1),F());a&2&&(a=b.$implicit,w(1),S(" ",a.customFieldId," "))},$db=function(a){a&1&&G(0,"tr",16)},aeb=function(a){a&1&&G(0,"tr",17)},beb=function(a){a&1&&(D(0,"div",18),Q(1," There are no custom fields defined on this component. "),F())},eeb=function(a){if(a&1){var b=r();D(0,"div",19)(1,"div")(2,"button",20);L("click",function(){t(b);var c=M();return v(ceb(c))});Q(3," Reorder fields ");F();D(4,"button",20);L("click",function(){t(b);
var c=M();return v(deb(c))});Q(5," Reset ordering ");F()()()}a&2&&(a=M(),w(2),C("disabled",0===a.fields.length),w(2),C("disabled","CUSTOMIZED"!==a.fieldOrdering))},feb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(),w(1),a=a.lineNumbers.length,S(" (",a+(1==a?" TODO":" TODOs"),") "))},heb=function(a,b){if(a&1){var c=r();D(0,"li",5)(1,"a",6);L("click",function(){t(c);var d=M(2);return v(d.trackClick("lineNumber"))});Q(2);F()()}a&2&&(a=b.$implicit,b=M(2),w(1),C("href",geb(b,a),re),w(1),jg(a))},ieb=
function(a){a&1&&(D(0,"span"),Q(1," ("),D(2,"ul",3),P(3,heb,3,2,"li",4),F(),Q(4,") "),F());a&2&&(a=M(),w(3),C("ngForOf",a.lineNumbers))},jeb=function(a){a&1&&(D(0,"a",10),Q(1," Create Component "),F());a&2&&(a=M(),C("href",a.createComponentPath,re))},keb=function(a){if(a&1){var b=r();D(0,"xap-dialog-layout",11)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",12);L("selectedComponentChange",function(d){t(b);var e=M();return v(e.viewComponent(null!==d&&void 0!==d?d:null,"openFromSearch"))});
T(3,"async");F()()()}if(a&2){a=M();var c;w(2);C("includeArchived",null!==(c=V(3,4,a.includeArchived$))&&void 0!==c?c:!1)("placeholder","Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1)}},meb=function(a){if(a&1){var b=r();D(0,"div",13)(1,"b-slide-toggle",14);L("modelChange",function(d){t(b);var e=M();e.includeArchived$.next(d);d=e.componentTree;d=d.focusedController?d.focusedController.selectedId?d.focusedController.selectedId:-1:d.rootController.selectedId?d.rootController.selectedId:
-1;0<d&&leb(e,d,(0,B.firstValueFrom)(e.topLevelComponents$));return v()});T(2,"async");F()()}if(a&2){a=M();var c;w(1);C("model",null!==(c=V(2,2,a.includeArchived$))&&void 0!==c?c:!1)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components.")}},neb=function(a){a&1&&(D(0,"div",15),G(1,"b-spinner",16),F())},oeb=function(a){a&1&&(D(0,"p",3),Q(1),F());a&2&&(a=M(),w(1),jg(a.packageMentionSet.packageName))},peb=function(a,b){a&1&&(D(0,"li"),G(1,"b-file-mention",4),F());a&2&&(a=
b.$implicit,b=M(),w(1),C("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},seb=function(a){a&1&&(D(0,"span"),Q(1),D(2,"b"),Q(3),F(),Q(4," on "),D(5,"b"),Q(6),T(7,"date"),F(),Q(8,". "),F());a&2&&(a=M(4),w(1),S(" Currently, the ",a.contentType," is scheduled for deletion in "),w(2),jg(qeb(reb(a).getTime(),!0)),w(3),jg(rg(7,3,reb(a),"longDate")))},teb=function(a){a&1&&(D(0,"span")(1,"b"),Q(2,"Retention:"),
F(),Q(3),D(4,"b"),Q(5),F(),Q(6," from the last modification of the issue. "),P(7,seb,9,6,"span",11),F());if(a&2){a=M(3);var b=N(10);w(3);S(" This ",a.contentType," has a retention period of ");w(2);jg(a.getRetentionPeriod());w(2);C("ngIf",!(reb(a).getTime()<(new pi).getTime()))("ngIfElse",b)}},ueb=function(a){a&1&&(Q(0),D(1,"b"),Q(2,"overridden"),F(),Q(3," retention period set to match the issue retention period. "));a&2&&(a=M(3),S(" The ",a.contentType," has an "))},veb=function(a){a&1&&(D(0,"p",
10),P(1,teb,8,4,"span",11),P(2,ueb,4,1,"ng-template",12),F());if(a&2){a=M(2);var b=N(8);C("ngSwitch",a.retention);w(1);C("ngIf",!(a.retentionState&&!a.retentionState.scheduledDeletionTime))("ngIfElse",b);w(1);C("ngSwitchCase",a.retentionModel.INDEFINITE)}},web=function(a){a&1&&(D(0,"div",7)(1,"p")(2,"b"),Q(3,"Restricted Access:"),F(),Q(4),D(5,"a",8),Q(6," Learn More "),F()(),P(7,veb,3,4,"p",9),F());a&2&&(a=M(),w(4),S(" This ",a.contentType," is only available to users with the appropriate permissions. "),
w(1),C("rel",a.EXTERNAL_LINK_REL),Nf("href",a.documentationLinks.getRestrictedAccessHelpLink(),re),w(2),C("ngIf",a.retentionState))},xeb=function(a){a&1&&(D(0,"b"),Q(1,"Retention:"),F(),Q(2));a&2&&(a=M(),w(2),S(" This ",a.contentType," has an indefinite retention period. "))},yeb=function(a){a&1&&(Q(0," The retention has "),D(1,"b"),Q(2,"expired"),F(),Q(3),D(4,"b"),Q(5),T(6,"date"),F(),Q(7,". "));a&2&&(a=M(),w(3),S(" and the ",a.contentType," was scheduled for deletion on "),w(2),jg(rg(6,2,reb(a),
"longDate")))},zeb=function(a){a&1&&(D(0,"span",6),Q(1," Select at least one tracker "),F())},Aeb=function(a,b){if(a&1){var c=r();D(0,"div",7)(1,"mat-checkbox",8);L("change",function(d){var e=t(c).$implicit,f=M();return v(f.trackerCheckboxValues[e.trackerId]=d.checked)});Q(2);F()()}a&2&&(a=b.$implicit,b=M(),w(1),C("checked",b.trackerCheckboxValues[a.trackerId]||!1),w(1),S(" ",a.name," "))},Beb=function(a){a&1&&(G(0,"b-tracker-search",6),T(1,"async"),T(2,"async"));a&2&&(a=M(),C("currentTrackerId",
V(1,2,a.currentTracker.trackerId$))("availableTrackers",V(2,4,a.currentTracker.availableTrackers$)))},Ceb=function(a){a&1&&(D(0,"div",7),G(1,"b-spinner"),D(2,"span"),Q(3,"Initializing query builder..."),F()())},Deb=function(a){a&1&&(D(0,"div",10),G(1,"mat-icon",11),D(2,"p"),Q(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),F()())},Eeb=function(a){a&1&&(D(0,"div"),Q(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),
F())},Feb=function(a){a&1&&(D(0,"div",8),P(1,Deb,4,0,"div",9),P(2,Eeb,2,0,"div",5),F());a&2&&(a=M(),w(1),C("ngIf","NOT_REPRESENTABLE"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())),w(1),C("ngIf","SYNTAX_ERROR"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())))},Geb=function(a){a&1&&(D(0,"div",8),Q(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),F())},Heb=function(a){a&1&&G(0,"b-tracker-account-menu-hack")},
Ieb=function(a){a&1&&(D(0,"span"),Q(1),G(2,"span",16),F());a&2&&(a=M(2).$implicit,w(1),S(" ",a.diff.oldValue," "))},Jeb=function(a){a&1&&(D(0,"span")(1,"label"),Q(2),F(),P(3,Ieb,3,1,"span",15),Q(4),F());a&2&&(a=M().$implicit,w(2),S("",a.fieldName,":"),w(1),C("ngIf",a.diff.oldValue),w(1),S(" ",a.diff.newValue," "))},Keb=function(a,b){a&1&&(D(0,"div")(1,"label"),Q(2),F(),Q(3),F());a&2&&(a=b.$implicit,b=M(3).$implicit,w(2),S("-",b.fieldName,":"),w(1),S(" ",a," "))},Leb=function(a){a&1&&(I(0),P(1,Keb,
4,2,"div",17),K());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.diff.removed))},Meb=function(a,b){a&1&&(D(0,"div")(1,"label"),Q(2),F(),Q(3),F());a&2&&(a=b.$implicit,b=M(3).$implicit,w(2),S("+",b.fieldName,":"),w(1),S(" ",a," "))},Neb=function(a){a&1&&(I(0),P(1,Meb,4,2,"div",17),K());a&2&&(a=M(2).$implicit,w(1),C("ngForOf",a.diff.added))},Oeb=function(a){a&1&&(D(0,"div"),P(1,Leb,2,1,"ng-container",15),P(2,Neb,2,1,"ng-container",15),F());a&2&&(a=M().$implicit,w(1),C("ngIf",a.diff.removed),w(1),C("ngIf",
a.diff.added))},Peb=function(a,b){a&1&&(D(0,"div",14),P(1,Jeb,5,3,"span",15),P(2,Oeb,3,2,"div",15),F());a&2&&(a=b.$implicit,w(1),C("ngIf","SINGLE_VALUE"==a.diffType),w(1),C("ngIf","COLLECTION"==a.diffType))},Qeb=function(a,b){a&1&&(D(0,"li",5)(1,"div",6),G(2,"b-user-image",7),F(),D(3,"div",8)(4,"h4"),G(5,"b-user-display-name",9),D(6,"span",10),G(7,"b-formatted-date-time",11),F()(),D(8,"div",12),P(9,Peb,3,2,"div",13),F()()());a&2&&(a=b.$implicit,b=M(),w(2),C("email",b.userToDisplay(a.author)),w(3),
C("email",b.userToDisplay(a.author)),w(2),C("timestamp",a.timestamp),w(2),C("ngForOf",a.diffs))},Reb=function(a){var b=window.homepagePreferences;if(a&&"MISSION_CONTROL"===(null==b?void 0:b.resourceType))return"/home";if("NEEDS_ATTENTION"===(null==b?void 0:b.resourceType))return"/attention";if("ASSIGNED_TO_ME"===(null==b?void 0:b.resourceType)||null==b||!b.resourceId)return"/issues";switch(b.resourceType){case "BOOKMARK_GROUP":return"/dashboard/"+b.resourceId;case "SAVED_SEARCH":return"/savedsearches/"+
b.resourceId;case "HOTLIST":return"/hotlists/"+b.resourceId;default:return"/issues"}},Seb=function(a,b){a&1&&(D(0,"mat-option",3),Q(1),G(2,"br"),D(3,"span",4),Q(4),F()());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",a.title,""),w(3),jg(a.description))},Teb=function(a,b){a&1&&(I(0),bg(1,5),K());if(a&2){a=b.$implicit;M();var c=N(2);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,js,a))}},Ueb=function(a){a&1&&(I(0),bg(1,5),K());if(a&2){a=M().question;M();var b=N(4);w(1);C("ngTemplateOutlet",
b)("ngTemplateOutletContext",og(2,js,a))}},Veb=function(a){a&1&&(I(0),bg(1,5),K());if(a&2){a=M().question;M();var b=N(6);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(2,js,a))}},Web=function(a){a&1&&(I(0),bg(1,5),K());if(a&2){a=M().question;M();var b=N(8);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(2,js,a))}},Xeb=function(a,b){a&1&&(I(0,6),P(1,Ueb,2,4,"ng-container",7),P(2,Veb,2,4,"ng-container",7),P(3,Web,2,4,"ng-container",7),K());a&2&&(a=b.question,b=M(),C("ngSwitch",
a.type),w(1),C("ngSwitchCase",b.CustomQuestionType.INPUT),w(1),C("ngSwitchCase",b.CustomQuestionType.TEXT),w(1),C("ngSwitchCase",b.CustomQuestionType.SELECT))},Yeb=function(a,b){if(a&1){var c=r();G(0,"h4",8);D(1,"mat-form-field",9)(2,"input",10);L("ngModelChange",function(d){var e=t(c).question;return v(e.response=d)});F()()}a&2&&(a=b.question,C("innerHtml",a.question,qe),w(2),C("ngModel",a.response),Nf("aria-label",a.question))},Zeb=function(a,b){if(a&1){var c=r();G(0,"h4",8);D(1,"mat-form-field",
11)(2,"textarea",10);L("ngModelChange",function(d){var e=t(c).question;return v(e.response=d)});Q(3,"    ");F()()}a&2&&(a=b.question,C("innerHtml",a.question,qe),w(2),C("ngModel",a.response),Nf("aria-label",a.question))},afb=function(a,b){a&1&&(D(0,"mat-option",15),Q(1),F());a&2&&(a=b.$implicit,M(2),C("value",a),w(1),S(" ",$eb(a)?a.text:a," "))},bfb=function(a){a&1&&bg(0,5);if(a&2){a=M().question;M();var b=N(2);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(2,js,a.response.child))}},dfb=function(a,
b){if(a&1){var c=r();G(0,"h4",8);D(1,"mat-form-field",9)(2,"mat-select",12);L("valueChange",function(d){var e=t(c).question,f=M();e.response=d;return v(cfb(f))});P(3,afb,2,2,"mat-option",13);F()();P(4,bfb,1,4,"ng-container",14)}a&2&&(a=b.question,M(),C("innerHtml",a.question,qe),w(1),Nf("aria-label",a.question),w(1),C("value",a.response),w(1),C("ngForOf",a.options),w(1),C("ngIf",$eb(a.response)))},efb=function(a){a&1&&fg(0)},ffb=function(a){a&1&&bg(0,8);a&2&&(a=M(),C("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",
a._getIconContext()))},gfb=function(a){a&1&&(D(0,"span",13),Q(1),F());a&2&&(a=M(2),w(1),jg(a._getDefaultTextForState(a.state)))},hfb=function(a){a&1&&(D(0,"span",14),Q(1),F());a&2&&(a=M(2),w(1),jg(a._intl.completedLabel))},ifb=function(a){a&1&&(D(0,"span",14),Q(1),F());a&2&&(a=M(2),w(1),jg(a._intl.editableLabel))},jfb=function(a){a&1&&(D(0,"mat-icon",13),Q(1),F());a&2&&(a=M(2),w(1),jg(a._getDefaultTextForState(a.state)))},kfb=function(a){a&1&&(I(0,9),P(1,gfb,2,1,"span",10),P(2,hfb,2,1,"span",11),
P(3,ifb,2,1,"span",11),P(4,jfb,2,1,"mat-icon",12),K());a&2&&(a=M(),C("ngSwitch",a.state),w(1),C("ngSwitchCase","number"),w(1),C("ngIf","done"===a.state),w(1),C("ngIf","edit"===a.state))},lfb=function(a){a&1&&(D(0,"div",15),bg(1,16),F());a&2&&(a=M(),w(1),C("ngTemplateOutlet",a._templateLabel().template))},mfb=function(a){a&1&&(D(0,"div",15),Q(1),F());a&2&&(a=M(),w(1),jg(a.label))},nfb=function(a){a&1&&(D(0,"div",17),Q(1),F());a&2&&(a=M(),w(1),jg(a._intl.optionalLabel))},ofb=function(a){a&1&&(D(0,"div",
18),Q(1),F());a&2&&(a=M(),w(1),jg(a.errorMessage))},pfb=function(){},qfb=function(a){a&1&&(fg(0),P(1,pfb,0,0,"ng-template",0));a&2&&(a=M(),w(1),C("cdkPortalOutlet",a._portal))},rfb=function(a){a&1&&G(0,"div",11)},tfb=function(a,b){a&1&&(I(0),bg(1,9),P(2,rfb,1,0,"div",10),K());if(a&2){a=b.$implicit;var c=b.index;b=b.last;M(2);var d=N(4);w(1);C("ngTemplateOutlet",d)("ngTemplateOutletContext",pg(3,sfb,a,c));w(1);C("ngIf",!b)}},wfb=function(a,b){if(a&1){var c=r();D(0,"div",12);L("@horizontalStepTransition.done",
function(e){t(c);var f=M(2);return v(f._animationDone.next(e))});bg(1,13);F()}if(a&2){a=b.$implicit;b=b.index;var d=M(2);Xf("mat-horizontal-stepper-content-inactive",d.selectedIndex!==b);C("@horizontalStepTransition",pg(8,ufb,d._getAnimationDirection(b),og(6,vfb,d._getAnimationDuration())))("id",d._getStepContentId(b));Nf("aria-labelledby",d._getStepLabelId(b));w(1);C("ngTemplateOutlet",a.content)}},xfb=function(a){a&1&&(D(0,"div",4)(1,"div",5),P(2,tfb,3,6,"ng-container",6),F(),D(3,"div",7),P(4,wfb,
2,11,"div",8),F()());a&2&&(a=M(),w(2),C("ngForOf",a.steps),w(2),C("ngForOf",a.steps))},yfb=function(a,b){if(a&1){var c=r();D(0,"div",15);bg(1,9);D(2,"div",16)(3,"div",17);L("@verticalStepTransition.done",function(h){t(c);var k=M(2);return v(k._animationDone.next(h))});D(4,"div",18);bg(5,13);F()()()()}if(a&2){a=b.$implicit;var d=b.index;b=b.last;var e=M(2),f=N(4);w(1);C("ngTemplateOutlet",f)("ngTemplateOutletContext",pg(10,sfb,a,d));w(1);Xf("mat-stepper-vertical-line",!b);w(1);Xf("mat-vertical-stepper-content-inactive",
e.selectedIndex!==d);C("@verticalStepTransition",pg(15,ufb,e._getAnimationDirection(d),og(13,vfb,e._getAnimationDuration())))("id",e._getStepContentId(d));Nf("aria-labelledby",e._getStepLabelId(d));w(2);C("ngTemplateOutlet",a.content)}},zfb=function(a){a&1&&(I(0),P(1,yfb,6,18,"div",14),K());a&2&&(a=M(),w(1),C("ngForOf",a.steps))},Afb=function(a,b){if(a&1){var c=r();D(0,"mat-step-header",19);L("click",function(){var e=t(c).step;return v(e.select())})("keydown",function(e){t(c);var f=M();return v(f._onKeydown(e))});
F()}if(a&2){a=b.step;b=b.i;var d=M();Xf("mat-horizontal-stepper-header","horizontal"===d.orientation)("mat-vertical-stepper-header","vertical"===d.orientation);C("tabIndex",d._getFocusIndex()===b?0:-1)("id",d._getStepLabelId(b))("index",b)("state",d._getIndicatorType(b,a.state))("label",a.stepLabel||a.label)("selected",d.selectedIndex===b)("active",d._stepIsNavigable(b,a))("optional",a.optional)("errorMessage",a.errorMessage)("iconOverrides",d._iconOverrides)("disableRipple",d.disableRipple||!d._stepIsNavigable(b,
a))("color",a.color||d.color);Nf("aria-posinset",b+1)("aria-setsize",d.steps.length)("aria-controls",d._getStepContentId(b))("aria-selected",d.selectedIndex==b)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",d._stepIsNavigable(b,a)?null:!0)}},Cfb=function(a){if(a&1){var b=r();I(0);D(1,"h4",2);Q(2,"Which of the following best describes the issue that you are reporting?");F();D(3,"wizard-category-select",54);L("categoryChange",
function(c){t(b);var d=M();return v(d.model.category=c)});F();D(4,"mat-card",55)(5,"mat-card-header");Q(6," Avoid duplicate issue reports: ");F();D(7,"mat-card-content")(8,"mat-checkbox",56);L("ngModelChange",function(c){t(b);var d=M();return v(d.ackDupes=c)});Q(9," By checking this box, I'm acknowledging that I have searched for ");D(10,"a",57);Q(11,"existing issues");F();Q(12," that already report this problem. ");F()()();D(13,"div",38)(14,"button",41);Q(15," Next ");G(16,"mat-icon",42);F()();K()}a&
2&&(a=M(),w(3),C("persona",a.model.persona)("category",a.model.category),w(5),C("ngModel",a.ackDupes),w(2),C("href",a.existingIssuesLink,re),w(4),C("disabled",!Bfb(a,0)))},Dfb=function(a){a&1&&(D(0,"div")(1,"h3"),Q(2,"Prefer to file an issue manually?"),F(),D(3,"p"),Q(4," It's usually best to work through this short wizard so that your issue is given the labels needed for the right team to see it. Otherwise it might take longer for your issue to be triaged and resolved. "),F(),D(5,"p"),Q(6," However, if you are a Chromium contributor and none of the other options apply, you may use the regular issue entry "),
D(7,"a",57),Q(8,"form"),F(),Q(9,". "),F()());a&2&&(a=M(),w(7),C("href",a.paths.createIssue(),re))},Efb=function(a){a&1&&(D(0,"mat-error"),Q(1," Summary is required "),F())},Ffb=function(a){a&1&&(D(0,"mat-error"),Q(1," Steps to reproduce are required "),F())},Gfb=function(a){a&1&&(D(0,"mat-error"),Q(1," Issue description is required "),F())},Hfb=function(a){if(a&1){var b=r();D(0,"wizard-custom-questions",58);L("responses",function(c){t(b);var d=M();return v(d.model.customQuestionResponses=c)});F()}a&
2&&(a=M(),C("category",a.model.category.value))},Ifb=function(a){if(a&1){var b=r();D(0,"div",59)(1,"b-recaptcha",60);L("onUpdate",function(c){t(b);var d=M();return v(d.recaptchaResponse=c)});F()()}},Jfb=function(){},Kfb=function(){},Lfb=function(){},Nfb=function(a){return a.length?"# Custom Questions\n"+Mfb(a).map(function(b){var c;return"#### "+(null!=(c=b.answerPrefix)?c:b.question)+"\n"+b.response}).join("\n\n"):""},Mfb=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,
$eb(c.response)?(b.push({type:c.type,question:c.question,response:c.response.text}),b.push.apply(b,p(Mfb([c.response.child])))):b.push(c);return b},Ofb=function(a){a&1&&(D(0,"a",15),Q(1," Create Component "),F())},Pfb=function(a){a&1&&(D(0,"p",19),Q(1," None found. "),D(2,"a",20),Q(3,"Learn More"),F()())},Qfb=function(a){a&1&&(I(0),G(1,"b-component-path-card",31,32),K());if(a&2){var b=N(2);a=M().$implicit;w(1);C("onedevIsHovercardReady",b.init)("componentId",a.componentId)}},Rfb=function(a,b){a&1&&
(D(0,"li")(1,"a",21)(2,"div",22)(3,"span",23),Q(4),G(5,"b-access-level-indicator",24)(6,"b-tracker-chip-smart",25),F(),D(7,"p",26),Q(8),F()(),D(9,"div",27)(10,"a",28),Q(11," Edit "),F(),D(12,"a",28),Q(13," Create Issue "),F()()(),D(14,"onedev-hovercard",null,29),P(16,Qfb,3,2,"ng-container",30),F()());if(a&2){a=b.$implicit;var c=N(15);b=M(2);w(1);C("routerLinkObj",b.viewIssues(a.componentId));w(1);C("onedevHovercardTrigger",c);w(2);S(" ",a.name||a.componentId," ");w(1);C("accessLevel",null==a.accessLimit?
null:a.accessLimit.accessLevel)("labelOnlyMode",!0);w(1);C("trackerId",a.trackerId)("showHovercard",!1);w(2);jg(a.description);w(2);C("routerLinkObj",b.componentSettings(a.componentId));w(2);C("routerLinkObj",b.createIssue(a.componentId))}},Sfb=function(a,b){a&1&&(I(0),P(1,Pfb,4,0,"p",16),D(2,"ol",17),P(3,Rfb,17,10,"li",18),F(),K());a&2&&(a=b.$implicit,w(1),C("ngIf",0===a.length),w(2),C("ngForOf",a))},Ufb=function(a){a&1&&(D(0,"a",25),Q(1," Learn more "),F());a&2&&(M(),C("href",Tfb(),re))},Wfb=function(a){var b=
new Set,c=0;a=l(a.matchAll(Vfb));for(var d=a.next();!d.done;d=a.next())if(d=l(d.value).next().value,!b.has(d)){c+=d.length;if(2049<c)break;b.add(d)}return[].concat(p(b))},Xfb=function(a){a&1&&(D(0,"div"),G(1,"b-spinner"),D(2,"span"),Q(3,"Loading..."),F()())},Yfb=function(a){a&1&&(D(0,"div",2),P(1,Xfb,4,0,"div",3),F());if(a&2){a=M();var b=N(2);w(1);C("ngIf",a.isInitiallyLoading)("ngIfElse",b)}},Zfb=function(a){a&1&&(D(0,"span",17)(1,"strong"),Q(2),F(),Q(3," of "),D(4,"strong"),Q(5),F()());a&2&&(a=
M(4),w(2),kg("",a.startIndex,"\u2013",a.endIndex,""),w(3),jg(a.totalText))},$fb=function(a){if(a&1){var b=r();D(0,"div",11);P(1,Zfb,6,3,"span",12);D(2,"b-button",13);L("onAction",function(){t(b);var c=M(3);return v(c.fetchIssues(c.page-1))});G(3,"b-icon",14);F();D(4,"b-button",15);L("onAction",function(){t(b);var c=M(3);return v(c.fetchIssues(c.page+1))});G(5,"b-icon",16);F()()}a&2&&(a=M(3),w(1),C("ngIf",!a.isRefreshing),w(1),C("disabled",1>=a.page),w(2),C("disabled",a.page>=a.numPages))},agb=function(a){if(a&
1){var b=r();D(0,"button",18);L("click",function(){t(b);var c=M(3);return v(c.triggerSimilarIssuesSurvey())});G(1,"mat-icon",19);F()}},bgb=function(a){a&1&&(D(0,"li")(1,"h3"),Q(2),F(),P(3,$fb,6,3,"div",9),P(4,agb,2,0,"button",10),F());a&2&&(a=M(2),w(2),jg(a.getHeader()),w(1),C("ngIf",!a.enableSimilarIssues),w(1),C("ngIf",a.showSuggestedDupes))},cgb=function(a){a&1&&(D(0,"div",20),Q(1,"There may already be issues opened on this topic. Please consider +1 to the canonical issue if that is the case."),
F())},dgb=function(a){if(a&1){var b=r();D(0,"b-issue-card",26,27);L("init",function(){t(b);var e=M(4);return v(e.trackTitleHoverOver())});F()}if(a&2){var c=N(1);a=M().$implicit;var d=M(3);C("onedevIsHovercardReady",c.init)("issueId",a.id)("location",d.CATEGORIES.MAGIC_BOX+d.getGroupName())}},egb=function(a,b){if(a&1){var c=r();D(0,"li",22)(1,"onedev-hovercard",null,23);P(3,dgb,2,3,"b-issue-card",24);F();D(4,"a",25);L("click",function(){t(c);var e=M(3);return v(e.trackTitleClick())});Q(5);F()()}if(a&
2){a=b.$implicit;var d=N(2);b=M(3);C("ngClass",b.enableSimilarIssues?"magic-box-item-new":"magic-box-item");w(4);gg("href","issues/",a.id,"",re);C("onedevHovercardTrigger",d);w(1);S(" ",a.title," ")}},fgb=function(a){a&1&&(I(0),P(1,egb,6,4,"li",21),K());a&2&&(a=M(2),w(1),C("ngForOf",a.magicBoxIssues))},ggb=function(a){a&1&&(D(0,"li"),Q(1),F());a&2&&(a=M(2),w(1),S(" No ",a.getHeader().toLowerCase()," found. "))},igb=function(a){a&1&&(D(0,"li",28)(1,"a",29),Q(2," View All Issues \u2192 "),F()());a&
2&&(a=M(2),w(1),hg("href",a.viewAllHref,re))},jgb=function(a){if(a&1){var b=r();D(0,"li",30)(1,"button",31);L("click",function(){t(b);var c=M(2);c.fetchIssues(c.page+1);c.analytics.trackEvent(xp.MAGIC_BOX,"loadMore");return v()});G(2,"mat-icon",32);Q(3," Load more ");F()()}},kgb=function(a){if(a&1){var b=r();D(0,"li",33)(1,"a",29)(2,"button",34);L("click",function(){t(b);M(2).analytics.trackEvent(xp.MAGIC_BOX,"viewAll");return v()});Q(3,"View all ");G(4,"mat-icon",35);F()()()}a&2&&(a=M(2),w(1),hg("href",
a.viewAllHref,re))},lgb=function(a){a&1&&(D(0,"li"),G(1,"b-spinner"),D(2,"span"),Q(3,"Loading..."),F()())},mgb=function(a){a&1&&(D(0,"ul"),P(1,bgb,5,3,"li",4),P(2,cgb,2,0,"div",5),P(3,fgb,2,1,"ng-container",4),P(4,ggb,2,1,"li",4),P(5,igb,3,1,"li",6),P(6,jgb,4,0,"li",7),P(7,kgb,5,1,"li",8),P(8,lgb,4,0,"li",4),F());a&2&&(a=M(),w(1),C("ngIf",!a.hideHeader),w(1),C("ngIf",a.showSuggestedDupes),w(1),C("ngIf",!a.isRefreshing),w(1),C("ngIf",0==a.magicBoxIssues.length&&!a.isRefreshing),w(1),C("ngIf",!a.isRefreshing&&
1<a.numPages&&!a.enableSimilarIssues&&a.viewAllHref),w(1),C("ngIf",!a.isRefreshing&&a.endIndex<a.numTotalResults&&a.enableSimilarIssues),w(1),C("ngIf",!a.isRefreshing&&1<a.numPages&&a.enableSimilarIssues&&a.viewAllHref),w(1),C("ngIf",a.isRefreshing))},ngb=function(a){a&1&&bg(0)},pgb=function(a){a&1&&(I(0),P(1,ngb,1,0,"ng-container",8),K());a&2&&(a=M(),w(1),C("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",og(2,ogb,a.value)))},qgb=function(a){a&1&&Q(0);a&2&&(a=M(),jg(a.value||"--"))},
rgb=function(a){a&1&&(Qd(),D(0,"svg",9),G(1,"path",10),F());a&2&&(a=M(),Xf("centered",a.centerEditIcon))},sgb=function(a){a&1&&G(0,"textarea",15);a&2&&(a=M(3),C("formControl",a.editingValue)("cdkAutosizeMaxRows",a.multilineMaxLines))},tgb=function(a){a&1&&G(0,"input",16);a&2&&(a=M(3),C("formControl",a.editingValue))},ugb=function(a){a&1&&(I(0),D(1,"div",12),P(2,sgb,1,2,"textarea",13),P(3,tgb,1,1,"ng-template",null,14,Eg),F(),K());if(a&2){var b=N(4);a=M(2);w(2);C("ngIf",a.allowMultipleLines)("ngIfElse",
b)}},vgb=function(a){a&1&&bg(0)},xgb=function(a){a&1&&(I(0),P(1,vgb,1,0,"ng-container",8),K());a&2&&(a=M(2),w(1),C("ngTemplateOutlet",a.editorTemplate)("ngTemplateOutletContext",og(2,wgb,a.editingValue)))},ygb=function(a){a&1&&(P(0,ugb,5,2,"ng-container",11),P(1,xgb,2,4,"ng-container",11));a&2&&(a=M(),C("ngIf",!a.editorTemplate),w(1),C("ngIf",a.editorTemplate))},zgb=function(){},Agb=function(a){a&1&&G(0,"span",2);a&2&&(a=M(),C("@indicatorRotate",a._getExpandedState()))},Bgb=function(a){if(a&1){var b=
r();D(0,"b-hotlist-picker",24);L("onApply",function(c){t(b);var d=M();return v(d.handleHotlistPickerSave(c))})("onLoad",function(c){t(b);var d=M();return v(d.loadHotlist(c))})("onCreate",function(c){t(b);var d=M();return v(d.createHotlist(c))});F()}a&2&&(a=M(),C("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},Ggb=function(a){a&1&&(D(0,"div",25),G(1,"b-icon",26),D(2,"span"),Q(3),F(),D(4,"a",27),Q(5,"View access settings"),F()());a&2&&(a=M(),C("ngClass",pg(5,Cgb,Dgb(a),Egb(a))),w(1),
C("name","alert")("size","small"),w(2),S("",Fgb(a),"\u00a0"),w(1),C("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",re))},Jgb=function(a){a&1&&(D(0,"div",30),Q(1),F());a&2&&(a=M(2),w(1),S(" Error: The following required field(s) have not been filled: ",Hgb(a).concat(Igb(a)).join(", ")," "))},Kgb=function(a){a&1&&(D(0,"li"),Q(1),F());if(a&2){a=M(3);w(1);var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');
a.isParentIssueIdsValid||b.push('"Parents"');a=b?b.join(" & ")+" must be"+((1>=b.length?" a":"")+" comma separated list")+((1<b.length?"s":"")+" of issue IDs"):"";jg(a)}},Lgb=function(a){a&1&&(D(0,"li"),Q(1),F());a&2&&(a=M(3),w(1),S(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},Mgb=function(a){a&1&&(D(0,"div",30),Q(1," Error: The following field(s) have invalid values: "),D(2,"ul"),P(3,Kgb,2,1,"li",20),P(4,Lgb,2,1,"li",20),F()());a&2&&(a=M(2),w(3),C("ngIf",!a.isBlockedByIssueIdValid||
!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid),w(1),C("ngIf",!a.isCollaboratorsValid))},Ngb=function(a){a&1&&(D(0,"div",30),Q(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),F())},Pgb=function(a){a&1&&(D(0,"div",28),P(1,Jgb,2,1,"div",29),P(2,Mgb,5,2,"div",29),P(3,Ngb,2,0,"div",29),F());a&2&&(a=M(),w(1),C("ngIf",0!==Hgb(a).length||0!==Igb(a).length),w(1),C("ngIf",!a.isBlockedByIssueIdValid||!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid||
!a.isCollaboratorsValid),w(1),C("ngIf",Ogb(a.comment)))},Qgb=function(a,b){if(a&1){var c=r();D(0,"div",33)(1,"b-hotlist-chip",34);L("removeHotlist",function(){var d=t(c).$implicit,e=M(2);return v(e.removeHotlist(d.hotlistId))});F()()}a&2&&(a=b.$implicit,w(1),C("hotlist",a))},Rgb=function(a){a&1&&(D(0,"div",31),P(1,Qgb,2,1,"div",32),F());a&2&&(a=M(),w(1),C("ngForOf",a.selectedHotlists))},Sgb=function(a,b){if(a&1){var c=r();D(0,"button",43);L("click",function(){var d=t(c).$implicit,e=M(2);e.selectedTemplate=
d;e.getIssueTemplate();return v()});Q(1);F()}a&2&&(a=b.$implicit,w(1),jg(a.name))},Tgb=function(a){if(a&1){var b=r();D(0,"button",43);L("click",function(){t(b);var c=M(2);c.selectedTemplate=c.availableExistingIssueTemplate;c.getIssueTemplate();return v()});Q(1);F()}a&2&&(a=M(2),w(1),jg(a.availableExistingIssueTemplate.name))},Ugb=function(a){a&1&&(D(0,"div",35)(1,"div",14)(2,"label",36),Q(3,"Template"),F()(),D(4,"button",37),Q(5),G(6,"b-icon",38),F(),D(7,"mat-menu",39,40),P(9,Sgb,2,1,"button",41),
P(10,Tgb,2,1,"button",42),F()());if(a&2){var b=N(8);a=M();var c;w(4);C("matMenuTriggerFor",b);w(1);jg(null!==(c=null==a.selectedTemplate?null:a.selectedTemplate.name)&&void 0!==c?c:"");w(2);C("overlapTrigger",!0);w(2);C("ngForOf",a.availablePredefinedTemplates);w(1);C("ngIf",a.availableExistingIssueTemplate)}},Vgb=function(a){a&1&&(D(0,"div",44)(1,"div",30),Q(2," You do not have permission to create issues in this component. "),F()())},Wgb=function(a){if(a&1){var b=r();D(0,"div",71)(1,"b-magic-box",
72);L("headerChange",function(c){t(b);var d=M(3);return v(d.magicBoxHeader=c)});F()()}a&2&&(a=M(3),w(1),C("componentId",a.issue.componentId)("hideHeader",!0)("showInline",a.showRecentIssuesInline)("issueTitle",a.issue.title)("issue",a.issue)("customFieldMap",a.customFieldMap))},Ygb=function(a){if(a&1){var b=r();D(0,"div",67)(1,"div",68)(2,"a",69);L("click",function(){t(b);var c=M(2);return v(Xgb(c))})("keydown.enter",function(){t(b);var c=M(2);return v(Xgb(c))})("keydown.space",function(){t(b);var c=
M(2);return v(Xgb(c))});Q(3);F()();P(4,Wgb,2,6,"div",70);F()}a&2&&(a=M(2),w(3),kg(" ",a.showRecentIssuesInline?"Hide":"View"," ",a.magicBoxHeader.toLowerCase()," "),w(1),C("ngIf",a.showRecentIssuesInline&&a.issue.componentId))},Zgb=function(a){a&1&&(D(0,"p",73),Q(1),D(2,"a",74),Q(3," Learn more "),F()());a&2&&(a=M(2),w(1),S(" Your title contains restricted words: ",Fp(a.titleBannedWordsChecker),". Review your title before posting. "))},$gb=function(a,b){if(a&1){var c=r();D(0,"button",78);L("click",
function(){var d=t(c).$implicit,e=M(3);return v(e.setPriority(d.value))});Q(1);F()}a&2&&(a=b.$implicit,w(1),jg(a.displayText))},ahb=function(a){if(a&1){var b=r();D(0,"div",35)(1,"div",14)(2,"label",75);Q(3,"Priority");F()();D(4,"button",76);Q(5);G(6,"b-icon",38);F();D(7,"mat-menu",39,77)(9,"button",78);L("click",function(){t(b);var d=M(2);return v(d.setPriority(void 0))});Q(10,"--");F();P(11,$gb,2,1,"button",79);F()()}if(a&2){var c=N(8);a=M(2);w(4);C("matMenuTriggerFor",c);Nf("aria-label","Priority, required"+
(a.issue.priority?", "+a.issue.priority:""));w(1);S("",a.issue.priority?a.issue.priority:"--"," ");w(2);C("overlapTrigger",!0);w(4);C("ngForOf",a.priorityChoices)}},chb=function(a,b){if(a&1){var c=r();D(0,"button",83);L("click",function(){var d=t(c).$implicit,e=M(3);return v(bhb(e,d.value))});Q(1);F()}a&2&&(a=b.$implicit,hg("title",a.altText||""),w(1),jg(a.displayText))},dhb=function(a){if(a&1){var b=r();D(0,"div",35)(1,"div",14)(2,"label",80);Q(3,"Type");F()();D(4,"button",76);T(5,"enumToHuman");
Q(6);T(7,"enumToHuman");G(8,"b-icon",38);F();D(9,"mat-menu",39,81)(11,"button",78);L("click",function(){t(b);var d=M(2);return v(bhb(d))});Q(12,"--");F();P(13,chb,2,2,"button",82);F()()}if(a&2){var c=N(10);a=M(2);w(4);C("matMenuTriggerFor",c);Nf("aria-label","Type, required"+(a.issue.type?V(5,5,", "+a.issue.type):""));w(2);S("",V(7,7,a.issue.type||"--")," ");w(3);C("overlapTrigger",!0);w(4);C("ngForOf",a.issueTypeChoices)}},ehb=function(a){if(a&1){var b=r();D(0,"div",84)(1,"div",14)(2,"label",85);
Q(3,"Assignee");F()();D(4,"div",86)(5,"input",87);L("ngModelChange",function(c){t(b);var d=M(2);return v(d.assigneeText=c)});F()()()}a&2&&(a=M(2),w(5),C("ngModel",a.assigneeText)("bContactAutocomplete","SINGLE"))},fhb=function(a){a&1&&(D(0,"mat-error"),Q(1," Collaborators only accepts individual users. "),F())},hhb=function(a){if(a&1){var b=r();D(0,"div",88)(1,"div",14)(2,"label",89);Q(3,"Collaborators");F();G(4,"mat-icon",90);F();D(5,"div",86)(6,"input",91);L("ngModelChange",function(c){t(b);var d=
M(2);return v(d.collaboratorsText=ghb(c))});F()();P(7,fhb,2,0,"mat-error",20);F()}a&2&&(a=M(2),w(6),Xf("invalid",!a.isCollaboratorsValid),C("ngModel",ks(a.collaboratorsText))("bContactAutocomplete","MULTI"),w(1),C("ngIf",!a.isCollaboratorsValid&&a.submitRequested))},ihb=function(a){if(a&1){var b=r();D(0,"div",92)(1,"div",14)(2,"label",93);Q(3,"CC");F()();D(4,"div",86)(5,"input",94);L("ngModelChange",function(c){t(b);var d=M(2);return v(d.ccsText=ghb(c))});F()()()}a&2&&(a=M(2),w(5),C("ngModel",ks(a.ccsText))("bContactAutocomplete",
"MULTI"))},jhb=function(a){a&1&&(D(0,"p",95),Q(1),D(2,"a",74),Q(3," Learn more "),F()());a&2&&(a=M(2),w(1),S(" Your description contains restricted words: ",Fp(a.descriptionBannedWordsChecker),". Review your description before posting. "))},khb=function(a,b){if(a&1){var c=r();D(0,"label",107);L("keydown.enter",function(){var d=t(c).$implicit,e=M(5);return v(ls(e,d))})("keydown.space",function(){var d=t(c).$implicit,e=M(5);return v(ls(e,d))});D(1,"mat-checkbox",108);L("change",function(){var d=t(c).$implicit,
e=M(5);return v(ls(e,d))})("click",function(d){return d.stopPropagation()});F();Q(2);F()}a&2&&(a=b.$implicit,b=M(5),w(1),C("checked",b.selectedCollaboratorGroups.has(a)),w(1),S(" ",a," "))},lhb=function(a){a&1&&(D(0,"div",13)(1,"div",14)(2,"label",100),Q(3," Collaborator Groups "),F(),G(4,"mat-icon",101),F(),D(5,"button",102)(6,"span"),Q(7),F(),G(8,"mat-icon",103),F(),D(9,"mat-menu",104,105),P(11,khb,3,2,"label",106),F()());if(a&2){var b=N(10);a=M(4);w(4);hg("matTooltip",a.COLLABORATOR_GROUPS_TOOLTIP);
w(1);C("matMenuTriggerFor",b);w(2);jg(a.getCollaboratorGroupsString());w(4);C("ngForOf",a.trackerCollaboratorGroups)}},mhb=function(a){a&1&&(I(0),P(1,lhb,12,4,"div",99),K());a&2&&(a=M(3),w(1),C("ngIf",a.enableQuickAddCollaborators))},nhb=function(a){if(a&1){var b=r();D(0,"div",96)(1,"div",13)(2,"div",14)(3,"label",97);Q(4," Issue access level ");F()();D(5,"b-issue-access-limits-dropdown",98);L("updatedAccessLimitLevel",function(c){t(b);var d=M(2);return v(d.onAccessLimitLevelSelected(c))});F()();
P(6,mhb,2,1,"ng-container",20);F()}a&2&&(a=M(2),w(5),C("disabled",!1)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled)("defaultAccessLimitLevel",a.selectedAccessLimitLevel),w(1),C("ngIf",0<a.trackerCollaboratorGroups.length))},ohb=function(a,b){if(a&1){var c=r();D(0,"button",78);L("click",function(){var d=t(c).$implicit,e=M(3);return v(e.issue.severity=e.toIssueSeverity(d.value))});Q(1);F()}a&2&&(a=b.$implicit,w(1),jg(a.displayText))},phb=function(a){a&1&&(D(0,"span"),Q(1,"*"),F())},qhb=
function(a){a&1&&(D(0,"span"),Q(1,"*"),F())},rhb=function(a){a&1&&(D(0,"span"),Q(1,"*"),F())},thb=function(a){if(a&1){var b=r();D(0,"div",117)(1,"div",14)(2,"label",135);Q(3," Parents ");P(4,rhb,2,0,"span",20);F()();D(5,"input",136);L("ngModelChange",function(c){t(b);var d=M(3);d.parentIssueIds=shb(d,c).map(Xn);c=ks(d.parentIssueIds);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(c);return v()});F()()}a&2&&(a=M(3),w(4),C("ngIf",!a.isParentIssueIdsValid),w(1),C("ngModel",ks(a.parentIssueIds)))},
uhb=function(a){a&1&&(D(0,"span"),Q(1,"*"),F())},vhb=function(a){if(a&1){var b=r();D(0,"div",117)(1,"div",14)(2,"label",137);Q(3," Children ");P(4,uhb,2,0,"span",20);F()();D(5,"input",138);L("ngModelChange",function(c){t(b);var d=M(3);d.childrenIssueIds=shb(d,c).map(Xn);c=ks(d.childrenIssueIds);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(c);return v()});F()()}a&2&&(a=M(3),w(4),C("ngIf",!a.isChildIssueIdsValid),w(1),C("ngModel",ks(a.childrenIssueIds)))},whb=function(a){if(a&1){var b=r();D(0,
"div",117)(1,"div",14)(2,"label",97);Q(3," Issue access level ");F()();D(4,"b-issue-access-limits-dropdown",139);L("updatedAccessLimitLevel",function(c){t(b);var d=M(3);return v(d.onAccessLimitLevelSelected(c))});F()()}a&2&&(a=M(3),w(4),C("disabled",!1)("defaultAccessLimitLevel",a.selectedAccessLimitLevel)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled))},xhb=function(a,b){if(a&1){var c=r();D(0,"label",141);L("keydown.enter",function(){var d=t(c).$implicit,e=M(5);return v(ls(e,d))})("keydown.space",
function(){var d=t(c).$implicit,e=M(5);return v(ls(e,d))})("click",function(d){return d.stopPropagation()});D(1,"mat-checkbox",108);L("change",function(){var d=t(c).$implicit,e=M(5);return v(ls(e,d))})("click",function(d){return d.stopPropagation()});F();Q(2);F()}a&2&&(a=b.$implicit,b=M(5),w(1),C("checked",b.selectedCollaboratorGroups.has(a)),w(1),S(" ",a," "))},yhb=function(a){a&1&&(D(0,"div",13)(1,"div",14)(2,"label",100),Q(3," Collaborator Groups "),F(),G(4,"mat-icon",101),F(),D(5,"button",102)(6,
"span"),Q(7),F(),G(8,"mat-icon",103),F(),D(9,"mat-menu",104,105),P(11,xhb,3,2,"label",140),F()());if(a&2){var b=N(10);a=M(4);w(4);hg("matTooltip",a.COLLABORATOR_GROUPS_TOOLTIP);w(1);C("matMenuTriggerFor",b);w(2);jg(a.getCollaboratorGroupsString());w(4);C("ngForOf",a.trackerCollaboratorGroups)}},zhb=function(a){a&1&&(I(0),P(1,yhb,12,4,"div",99),K());a&2&&(a=M(3),w(1),C("ngIf",a.enableQuickAddCollaborators))},Ahb=function(a){if(a&1){var b=r();D(0,"onedev-text-field",145);L("valueChange",function(d){t(b);
var e=M(2).$implicit,f=M(3);return v(f.setCustomFieldValue(e,d))});F()}if(a&2){a=M(2).$implicit;var c=M(3);gg("id","bv2-custom-field-",a.customFieldId,"");C("value",a.textValue);Nf("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},Bhb=function(a){if(a&1){var b=r();D(0,"onedev-numeric-field",145);L("valueChange",function(d){t(b);var e=M(2).$implicit,f=M(3);return v(f.setCustomFieldValue(e,d))});F()}if(a&2){a=M(2).$implicit;var c=M(3);gg("id","bv2-custom-field-",
a.customFieldId,"");C("value",a.numericValue);Nf("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},Chb=function(a){if(a&1){var b=r();D(0,"div")(1,"bv2-input-date-picker",146);L("boundValueChange",function(d){t(b);var e=M(2).$implicit,f=M(3);return v(f.setCustomFieldValue(e,d))});F()()}if(a&2){a=M(2).$implicit;var c=M(3);w(1);hg("bv2AriaLabelledby","bv2-custom-field-"+a.customFieldId+"-label");C("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id",
"bv2-custom-field-"+a.customFieldId)}},Dhb=function(a){if(a&1){var b=r();D(0,"onedev-single-select",147);L("valueChange",function(d){t(b);var e=M(2).$implicit,f=M(3);return v(f.setCustomFieldValue(e,d))});F()}if(a&2){a=M(2).$implicit;var c=M(3);C("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",!0);Nf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},Ehb=function(a,b){a&1&&(D(0,"div"),P(1,Ahb,1,4,"onedev-text-field",143),P(2,Bhb,1,4,"onedev-numeric-field",
143),P(3,Chb,2,4,"div",20),P(4,Dhb,1,4,"onedev-single-select",144),F());a&2&&(a=b.ngIf,b=M(4),w(1),C("ngIf",a===b.FieldType.TEXT),w(1),C("ngIf",a===b.FieldType.NUMERIC),w(1),C("ngIf",a===b.FieldType.DATE),w(1),C("ngIf",a===b.FieldType.ENUM))},Fhb=function(a,b){if(a&1){var c=r();D(0,"div")(1,"b-list-field",148);L("valuesChange",function(e){t(c);var f=M().$implicit,h=M(3);return v(h.setCustomFieldValue(f,e.values))});F()()}if(a&2){a=b.ngIf;b=M().$implicit;var d=M(3);w(1);C("defaultLineCount",2)("type",
a)("values",d.getListFieldValues(b))("enumChoices",d.customFieldAllowedValuesMap[b.customFieldId]||null)("truncate",!0);Nf("aria-labelledby","bv2-custom-field-"+b.customFieldId+"-label")}},Hhb=function(a,b){a&1&&(D(0,"div",117)(1,"div",14)(2,"label",142),Q(3),F()(),P(4,Ehb,5,4,"div",20),P(5,Fhb,2,6,"div",20),F());if(a&2){a=b.$implicit;b=M(3);w(2);gg("id","bv2-custom-field-",a.customFieldId,"-label");var c=b.customFieldMap[a.customFieldId];hg("title",(c&&c.description?c.description:"Custom Field")+
" [ID: "+a.customFieldId+"]");C("ngClass",og(7,Ghb,b.isCustomFieldRequired(a)));var d=(c=b.customFieldMap[a.customFieldId])?c.name:"";c&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(d+=", required field");Nf("aria-label",d);w(1);S(" ",b.getCustomFieldName(a)," ");w(1);C("ngIf",b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]));w(1);C("ngIf",b.getListFieldType(b.customFieldMap[a.customFieldId]))}},Ihb=function(a){if(a&1){var b=r();D(0,"mat-expansion-panel",109)(1,
"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",110);Q(4,"Advanced fields (Required fields marked with");D(5,"span",111);Q(6,"*");F();Q(7,")");F()()();D(8,"div",112)(9,"div",113)(10,"div",14)(11,"label",114);Q(12," Severity ");F()();D(13,"button",115);Q(14);G(15,"b-icon",38);F();D(16,"mat-menu",39,116);P(18,ohb,2,1,"button",79);F()();D(19,"div",117)(20,"div",14)(21,"label",118);Q(22," Found in ");F()();D(23,"input",119);L("ngModelChange",function(d){t(b);var e=M(2);return v(e.issue.foundInVersion=
ghb(d))});F()();D(24,"div",120)(25,"div",14)(26,"label",121);Q(27," In prod ");F()();D(28,"mat-slide-toggle",122);L("ngModelChange",function(d){t(b);var e=M(2);return v(e.issue.inProd=d)});F()();G(29,"div",59);D(30,"div",117)(31,"div",14)(32,"label",123);Q(33," Reporter ");F()();D(34,"input",124);L("ngModelChange",function(d){t(b);var e=M(2);return v(e.reporterText=d)});F()();D(35,"div",117)(36,"div",14)(37,"label",125);Q(38," Verifier ");F()();D(39,"input",126);L("ngModelChange",function(d){t(b);
var e=M(2);return v(e.verifierText=d)});F()();D(40,"div",117)(41,"div",14)(42,"label",127);Q(43," Targeted to ");F()();D(44,"input",128);L("ngModelChange",function(d){t(b);var e=M(2);return v(e.issue.targetedToVersion=ghb(d))});F()();G(45,"div",59);D(46,"div",117)(47,"div",14)(48,"label",129);Q(49," Blocked by ");P(50,phb,2,0,"span",20);F()();D(51,"input",130);L("ngModelChange",function(d){t(b);var e=M(2);e.issue.blockedByIssueId=shb(e,d);d=ks(e.issue.blockedByIssueId);e.isBlockedByIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(d);
return v()});F()();D(52,"div",117)(53,"div",14)(54,"label",131);Q(55," Blocking ");P(56,qhb,2,0,"span",20);F()();D(57,"input",132);L("ngModelChange",function(d){t(b);var e=M(2);e.issue.blockingIssueId=shb(e,d);d=ks(e.issue.blockingIssueId);e.isBlockingIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(d);return v()});F()();P(58,thb,6,2,"div",133);P(59,vhb,6,2,"div",133);G(60,"div",59);P(61,whb,5,3,"div",133);P(62,zhb,2,1,"ng-container",20);G(63,"div",59);P(64,Hhb,6,9,"div",134);F()()}if(a&2){var c=N(17);a=
M(2);w(13);C("matMenuTriggerFor",c);Nf("aria-label","Severity"+(a.issue.severity?", "+a.issue.severity:""));w(1);jg(a.issue.severity);w(2);C("overlapTrigger",!0);w(2);C("ngForOf",a.severityChoices);w(5);C("ngModel",ks(a.originalIssueCopy.foundInVersion));w(5);C("ngModel",a.issue.inProd);w(6);C("ngModel",a.reporterText)("bContactAutocomplete","SINGLE");w(5);C("ngModel",a.verifierText)("bContactAutocomplete","SINGLE");w(5);C("ngModel",ks(a.originalIssueCopy.targetedToVersion));w(6);C("ngIf",!a.isBlockedByIssueIdValid);
w(1);C("ngModel",ks(a.issue.blockedByIssueId));w(5);C("ngIf",!a.isBlockingIssueIdValid);w(1);C("ngModel",ks(a.issue.blockingIssueId));w(1);C("ngIf",!a.sessionIsExternal);w(1);C("ngIf",!a.sessionIsExternal);w(2);C("ngIf",!pp(a.selectedComponent));w(1);C("ngIf",0<a.trackerCollaboratorGroups.length&&!pp(a.selectedComponent));w(2);C("ngForOf",a.issue.customField)}},Jhb=function(a){a&1&&(D(0,"div",25),G(1,"b-icon",26),D(2,"span"),Q(3),F(),D(4,"a",27),Q(5,"View access settings"),F()());a&2&&(a=M(2),C("ngClass",
pg(5,Cgb,Dgb(a),Egb(a))),w(1),C("name","alert")("size","small"),w(2),S("",Fgb(a),"\u00a0"),w(1),C("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",re))},Khb=function(a){if(a&1){var b=r();D(0,"div",149)(1,"b-recaptcha",150);L("onUpdate",function(c){t(b);var d=M(2);return v(d.recaptchaResponse=c)});F()()}},Phb=function(a){if(a&1){var b=r();D(0,"div");P(1,Ygb,5,3,"div",45);D(2,"div",12)(3,"div",13)(4,"div",14)(5,"label",46);Q(6,"Title");F()();D(7,"div",
47)(8,"input",48);L("ngModelChange",function(c){t(b);var d=M();return v(d.setTitle(c))});F();P(9,Zgb,4,1,"p",49);F()();P(10,ahb,12,5,"div",18);P(11,dhb,14,9,"div",18);F();I(12);D(13,"div",12);P(14,ehb,6,2,"div",50);P(15,hhb,8,5,"div",51);F();D(16,"div",12);P(17,ihb,6,2,"div",52);F();K();D(18,"div",53)(19,"div",12)(20,"div",13)(21,"div",14)(22,"label",54);Q(23,"Description");F()();D(24,"b-comment-box",55);L("commentChange",function(c){t(b);var d=M();return v(d.comment=c)})("onChange",function(){t(b);
var c=M();return v(c.saveCommentDraft())})("onSubmit",function(c){t(b);var d=M();return v(Lhb(d,c,!c.shiftKey))})("onRestrict",function(){t(b);var c=M();return v(c.showNewContentJudgementDialog())});P(25,jhb,4,1,"p",56);D(26,"b-markdown-toggle",57);L("change",function(c){t(b);var d=M();return v(d.comment.formattingMode=c)});F()()()();P(27,nhb,7,4,"div",58);G(28,"div",59);D(29,"div",60);P(30,Ihb,65,21,"mat-expansion-panel",61);F();P(31,Jhb,6,8,"div",9);P(32,Khb,2,0,"div",62);D(33,"div",63)(34,"b-button",
64);L("onAction",function(c){t(b);var d=M();return v(Lhb(d,c,!0))});Q(35);F();D(36,"b-button",65);L("onAction",function(c){t(b);var d=M();return v(Lhb(d,c,!1))});Q(37);F();D(38,"b-button",66);L("onAction",function(){t(b);var c=M();c.draftStore.$window.sessionStorage.removeItem(no("0"));Mhb(c.reloadService);return v()});Q(39," Discard ");F()()()()}a&2&&(a=M(),w(1),C("ngIf",a.selectedComponent),w(7),Xf("invalid",a.titleBannedWordsChecker.showWarning()),C("ngModel",a.issue.title)("bFocus",a.newIssueStarted),
w(1),C("ngIf",a.titleBannedWordsChecker.showWarning()),w(1),C("ngIf",a.canEditIssuesInComponent),w(1),C("ngIf",a.canEditIssuesInComponent),w(3),C("ngIf",a.canEditIssuesInComponent),w(1),C("ngIf",a.canEditIssuesInComponent),w(2),C("ngIf",a.canEditIssuesInComponent),w(7),C("supportsPreview",!0)("comment",a.comment)("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("componentId",null==a.selectedComponent?null:a.selectedComponent.componentId)("placeholder",a.piiWarningMessage)("idForAriaLabel",
a.descriptionBoxId)("audience",a.audience)("showRestrictionOptions",a.canEditIssuesInComponent)("ngClass",og(35,Nhb,Ogb(a.comment)))("warn",a.descriptionBannedWordsChecker.showWarning()),w(1),C("ngIf",a.descriptionBannedWordsChecker.showWarning()),w(1),C("initialValue",a.comment.formattingMode),w(1),C("ngIf",a.canEditIssuesInComponent&&!!pp(a.selectedComponent)),w(3),C("ngIf",a.canEditIssuesInComponent),w(1),C("ngIf",Dgb(a)||Egb(a)),w(1),C("ngIf",a.enableRecaptcha),w(2),C("disabled",Ohb(a))("color",
a.titleBannedWordsChecker.showWarning()||a.descriptionBannedWordsChecker.showWarning()?"warn":"primary"),w(1),S(" ",a.titleBannedWordsChecker.showWarning()||a.descriptionBannedWordsChecker.showWarning()?"Create Anyway":"Create"," "),w(1),C("disabled",Ohb(a))("color",a.titleBannedWordsChecker.showWarning()||a.descriptionBannedWordsChecker.showWarning()?"warn":"primary"),w(1),S(" ",a.titleBannedWordsChecker.showWarning()||a.descriptionBannedWordsChecker.showWarning()?"Create Anyway & Start Another":
"Create & Start Another"," "),w(1),C("disabled",Ohb(a)))},Qhb=function(a,b){a&1&&(D(0,"h2",151),Q(1,"This component has a default description"),F(),D(2,"mat-dialog-content"),Q(3," You have already entered a description, but the component you chose has a default description: "),D(4,"div",152),Q(5),F()(),D(6,"mat-dialog-actions")(7,"button",153),Q(8,"Use component description"),F(),D(9,"button",154),Q(10,"Keep my description"),F()());a&2&&(a=b.$implicit,w(5),jg(a),w(2),C("mat-dialog-close",!0))},Rhb=
function(a,b){b.assigneeText=vi(a.assigneeUser);b.reporterText=vi(a.reporterUser);b.verifierText=vi(a.verifierUser);b.collaboratorsText=wi(a.collaboratorsUsers);b.ccsText=wi(a.ccUsers)},Shb=function(a,b){var c=a.assigneeText;null===c?c=null:(c=c.trim(),c=c.endsWith(",")?c.slice(0,c.length-1):c);a.assigneeText=c;null!=a.assigneeText&&(b.assigneeUser=Di(a.assigneeText));null!=a.reporterText&&(b.reporterUser=Di(a.reporterText));null!=a.verifierText&&(b.verifierUser=Di(a.verifierText));a.collaboratorsText&&
(c=$pa(a.collaboratorsText),c.length?b.collaboratorsUsers=c:b.collaboratorsUsers=void 0);a.ccsText&&(a=$pa(a.ccsText),a.length?b.ccUsers=a:b.ccUsers=void 0)},Uhb=function(a,b){for(var c=l(Object.keys(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=b[d],f=Thb[d];"customField"===d||ki(e,f)||(Array.isArray(e)?a[d]?(e=Epa([].concat(p(e),p(a[d]))),a[d]=e):a[d]=e:""!==e&&(a[d]=e))}},Vhb=function(a){a=Object.assign({},a);return delete a.hotlistId,a},Whb=function(a){var b={};a=l(a);for(var c=a.next();!c.done;c=
a.next())c=c.value,c.allowedValue&&(b[c.customFieldId]=c.allowedValue.map(function(d){return{value:d,displayText:d}}));return b},Xhb=function(a){if(a&1){var b=r();D(0,"b-star-toggle",12);L("starClicked",function(){t(b);var c=M(2);return v(c.toggleStar())});F()}a&2&&(a=M(2),C("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},Yhb=function(a){a&1&&G(0,"b-star-toggle",13);a&2&&C("starMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("unStarMessage",
"You are an admin of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},Zhb=function(a){if(a&1){var b=r();D(0,"div")(1,"div",7);P(2,Xhb,1,3,"b-star-toggle",8);P(3,Yhb,1,4,"b-star-toggle",9);D(4,"span",10);Q(5);D(6,"span")(7,"button",11);L("click",function(){t(b);var c=M();return v(c.editBookmarkGroup())});F()()()()()}a&2&&(a=M(),w(2),C("ngIf",!a.isAdmin),w(1),C("ngIf",a.isAdmin),w(2),S("",a.bookmarkGroup.name," "))},bib=function(a){if(a&1){var b=r();D(0,"b-saved-search-panel",
17);L("focusedRowIndexChange",function(f){t(b);var h=M().$implicit,k=M();return v($hb(k,h,f))})("selectionChange",function(f){t(b);var h=M(2);return v(aib(h,f))})("resultsLoaded",function(f){t(b);var h=M(2);return v(h.loadHotlists(f))});F()}if(a&2){var c=M();a=c.$implicit;var d=c.first;c=c.last;var e=M();C("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",a.resourceId)("first",d)("last",c)}},cib=function(a){if(a&1){var b=r();D(0,"b-hotlist-panel",18);
L("focusedRowIndexChange",function(f){t(b);var h=M().$implicit,k=M();return v($hb(k,h,f))})("selectionChange",function(f){t(b);var h=M(2);return v(aib(h,f))})("resultsLoaded",function(f){t(b);var h=M(2);return v(h.loadHotlists(f))});F()}if(a&2){var c=M();a=c.$implicit;var d=c.first;c=c.last;var e=M();C("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",a.resourceId)("first",d)("last",c)}},dib=function(a,b){a&1&&(D(0,"div",14),P(1,bib,1,6,"b-saved-search-panel",
15),P(2,cib,1,6,"b-hotlist-panel",16),F());a&2&&(C("ngSwitch",b.$implicit.type),w(1),C("ngSwitchCase","SAVED_SEARCH"),w(1),C("ngSwitchCase","HOTLIST"))},eib=function(a){if(a&1){var b=r();D(0,"button",8);L("click",function(){t(b);var c=M();return v(c.archive())});Q(1," Archive bookmark group ");F()}a&2&&(a=M(),C("disabled",a.hasUnsavedChanges()||a.isSaving()))},fib=function(a){if(a&1){var b=r();D(0,"button",8);L("click",function(){t(b);var c=M();return v(c.unarchive())});Q(1," Unarchive bookmark group ");
F()}a&2&&(a=M(),C("disabled",a.hasUnsavedChanges()||a.isSaving()))},gib=function(a){a&1&&(D(0,"span",32),Q(1," (archived) "),F())},iib=function(a,b){if(a&1){var c=r();D(0,"div")(1,"b-hotlist-chip-smart",48);L("removeHotlist",function(){var d=t(c).ngIf,e=M(4);return v(hib(e,d))});F()()}a&2&&(a=b.ngIf,w(1),C("id",a))},kib=function(a,b){if(a&1){var c=r();D(0,"div",49)(1,"a",50);Q(2);F();D(3,"span",51);L("click",function(){var e=t(c).ngIf,f=M(4);return v(jib(f,e))})("keydown.enter",function(){var e=t(c).ngIf,
f=M(4);return v(jib(f,e))})("keydown.space",function(){var e=t(c).ngIf,f=M(4);return v(jib(f,e))});Q(4," \u00d7 ");F()()}if(a&2){a=b.ngIf;b=M().$implicit;var d=M(3);w(1);C("href",d.paths.viewSavedSearch(a),re)("matTooltip","Go to saved search: "+d.getDisplayName(b));w(1);S(" S: ",d.getDisplayName(b)," ");w(1);C("matTooltip","Remove item: "+d.getDisplayName(b));Nf("aria-label","Remove item: "+d.getDisplayName(b))}},lib=function(a){a&1&&(D(0,"span",52),Q(1,"<None>"),F())},mib=function(a,b){a&1&&(D(0,
"div",45),P(1,iib,2,1,"div",7),P(2,kib,5,5,"div",46),P(3,lib,2,0,"span",47),F());if(a&2){a=b.$implicit;b=M(3);w(1);var c;var d="HOTLIST"===a.resourceType?null==(c=a.hotlistId)?void 0:c.toString():void 0;C("ngIf",d);w(1);C("ngIf","SAVED_SEARCH"===a.resourceType?a.savedSearchId:void 0);w(1);C("ngIf",!(null==b.bookmarkGroupUnderEdit.item?0:b.bookmarkGroupUnderEdit.item.length))}},oib=function(a,b){if(a&1){var c=r();D(0,"button",61);L("click",function(){var d=t(c).$implicit,e=M(5);return v(nib(e,d))});
Q(1);F()}a&2&&(a=b.$implicit,w(1),S("",a.name," "))},pib=function(a){a&1&&P(0,oib,2,1,"button",60);a&2&&(a=M(4),C("ngForOf",a.savedSearchChoices))},qib=function(a){a&1&&(D(0,"div",53)(1,"label",54),Q(2,"Add from saved searches:"),F(),D(3,"button",55)(4,"span",56),Q(5,"Select"),F(),G(6,"mat-icon",57),F(),D(7,"mat-menu",null,58),P(9,pib,1,1,"ng-template",59),F()());if(a&2){var b=N(8);w(3);C("matMenuTriggerFor",b)}},vib=function(a){if(a&1){var b=r();I(0);D(1,"div",30)(2,"label",33)(3,"span",18);Q(4,
"Selected items");F()();D(5,"div",34,35);P(7,mib,4,3,"div",36);F()();D(8,"div",37)(9,"div",38)(10,"label",39);Q(11,"Add hotlist from favorites:");F();D(12,"b-hotlist-picker",40);L("onApply",function(c){t(b);var d=M(2);return v(rib(d,c))})("onCreate",function(c){t(b);var d=M(2);return v(sib(d,c))})("onLoad",function(c){t(b);var d=M(2);return v(tib(d,c))});F()();D(13,"div",41)(14,"label",42);Q(15,"Add hotlist by query:");F();D(16,"b-hotlist-search",43);L("itemSelect",function(c){t(b);var d=M(2);"hotlistId"in
c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(uib(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",hotlistId:c.hotlistId}));return v()});F()();P(17,qib,10,1,"div",44);F();K()}a&2&&(a=M(2),w(7),C("ngForOf",a.bookmarkGroupUnderEdit.item),w(5),C("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),w(4),C("showGroups",!1)("allowStarring",!1),w(1),C("ngIf",0<a.savedSearchChoices.length))},xib=function(a){a&1&&(D(0,"span"),Q(1),
D(2,"a",65),Q(3),F()());if(a&2){a=M().$implicit;var b=M(3);w(1);S(" Hotlist ",a.hotlistId,": ");w(1);C("href",wib(b,a),re);w(1);S(" ",a.name||"(name not available)"," ")}},yib=function(a){a&1&&(D(0,"span"),Q(1),D(2,"a",65),Q(3),F()());if(a&2){a=M().$implicit;var b=M(3);w(1);S(" Saved search ",a.savedSearchId,": ");w(1);C("href",wib(b,a),re);w(1);S(" ",a.name||"(name not available)"," ")}},zib=function(a,b){a&1&&(D(0,"li"),P(1,xib,4,3,"span",7),P(2,yib,4,3,"span",7),F());a&2&&(a=b.$implicit,w(1),C("ngIf",
"HOTLIST"===a.resourceType),w(1),C("ngIf","SAVED_SEARCH"===a.resourceType))},Aib=function(a){a&1&&(D(0,"div",62)(1,"label")(2,"span",18),Q(3,"Items"),F()(),D(4,"div",63)(5,"ul"),P(6,zib,3,2,"li",64),F()()());a&2&&(a=M(2),w(6),C("ngForOf",a.bookmarkGroup.item))},Bib=function(a){if(a&1){var b=r();D(0,"div",66)(1,"button",67);L("click",function(){t(b);var c=M(2);return v(c.saveMetadata())});Q(2," Update ");F();D(3,"button",68);L("click",function(){t(b);var c=M(2);return v(c.revertMetadataChanges())});
Q(4," Revert changes ");F()()}a&2&&(a=M(2),w(1),C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},Cib=function(a){if(a&1){var b=r();D(0,"div",66)(1,"button",67);L("click",function(){t(b);var c=M(2);return v(c.saveAccessPolicy())});Q(2," Update ");F();D(3,"button",68);L("click",function(){t(b);var c=M(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");F()()}a&2&&(a=M(2),w(1),C("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},
Gib=function(a){if(a&1){var b=r();I(0);D(1,"div",9)(2,"h2");Q(3);F();P(4,gib,2,0,"span",10);D(5,"a",11);Q(6," (View Dashboard)");F()();D(7,"mat-tab-group",12);L("selectedIndexChange",function(d){t(b);var e=M();return v(e.selectedTabIndex=d)})("selectedIndexChange",function(d){t(b);var e=M();return v(e.tabChange(d))});D(8,"mat-tab",13)(9,"div",14);G(10,"b-error-banner",15);D(11,"div",16)(12,"label",17)(13,"span",18);Q(14,"Name");F()();D(15,"input",19,20);L("ngModelChange",function(d){t(b);var e=M();
return v(e.bookmarkGroupUnderEdit.name=d)});F()();D(17,"div",16)(18,"label",21)(19,"span",18);Q(20,"Description");F()();D(21,"textarea",22);L("ngModelChange",function(d){t(b);var e=M();return v(e.bookmarkGroupUnderEdit.description=d)});F()();P(22,vib,18,7,"ng-container",23);P(23,Aib,7,1,"ng-template",null,24,Eg);P(25,Bib,5,1,"div",25);F()();D(26,"mat-tab",26)(27,"div",14)(28,"div",16)(29,"label")(30,"span",18);Q(31,"Admins");F();D(32,"p",27);Q(33," Edit access controls, edit name and description, reorder items, add/remove items ");
F()();D(34,"b-multi-user-input",28);L("usersChange",function(d){t(b);var e=M();return v(e.accessPolicyUnderEdit.admins=d)})("isValid",function(d){t(b);var e=M();return v(e.isAdminsFieldValid=d)});F()();D(35,"div",16)(36,"label")(37,"span",18);Q(38,"View only");F();D(39,"p",27);Q(40," View the bookmark group ");F();D(41,"b-multi-user-input",29);L("usersChange",function(d){t(b);var e=M();return v(e.accessPolicyUnderEdit.readers=d)})("isValid",function(d){t(b);var e=M();return v(e.isReaderFieldValid=
d)});F()()();D(42,"div",30);Q(43," See ");D(44,"a",31);Q(45,"access control documentation");F();Q(46," for an explanation of the settings. ");F();P(47,Cib,5,1,"div",25);F()()();K()}if(a&2){var c=N(24);a=M();w(3);kg(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," ");w(1);C("ngIf",a.isArchived());w(1);C("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),re);w(2);C("selectedIndex",a.selectedTabIndex);w(3);C("error",a.error);w(1);C("ngClass",og(28,Dib,a.isEditDisabled()));
w(4);C("ngModel",a.bookmarkGroupUnderEdit.name)("disabled",a.isEditDisabled());w(2);C("ngClass",og(30,Dib,a.isEditDisabled()));w(4);C("ngModel",a.bookmarkGroupUnderEdit.description)("disabled",a.isEditDisabled());w(1);C("ngIf",a.isAdmin)("ngIfElse",c);w(3);C("ngIf",a.isAdmin);w(3);C("ngClass",og(32,Dib,a.isEditDisabled()));w(6);Xf("disabled",a.isEditDisabled());C("users",a.accessPolicyUnderEdit.admins);w(1);C("ngClass",og(34,Dib,a.isEditDisabled()));w(6);Xf("disabled",a.isEditDisabled());C("users",
a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",og(38,Eib,og(36,Fib,a.accessPolicyUnderEdit.admins)));w(3);C("href",wo(a.documentationLinks)+"#bookmark-groups",re);w(3);C("ngIf",a.isAdmin)}},Hib=function(a){if(a&1){var b=r();D(0,"button",8);L("click",function(){t(b);var c=M();return v(c.delete())});Q(1," Delete saved search ");F()}a&2&&(a=M(),C("disabled",a.hasUnsavedChanges()||a.isSaving()))},Iib=function(a){a&1&&(I(0),D(1,"div",9)(2,"h2"),Q(3," Saved search not found "),
F()(),K())},Jib=function(a){if(a&1){var b=r();D(0,"div",34)(1,"button",35);L("click",function(){t(b);var c=M(2);return v(c.saveMetadata())});Q(2," Update ");F();D(3,"button",36);L("click",function(){t(b);var c=M(2);return v(c.revertMetadataChanges())});Q(4," Revert changes ");F()()}a&2&&(a=M(2),w(1),C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},Kib=function(a){if(a&1){var b=r();D(0,"div",34)(1,"button",35);L("click",function(){t(b);var c=M(2);return v(c.saveAccessPolicy())});Q(2," Update ");
F();D(3,"button",36);L("click",function(){t(b);var c=M(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");F()()}a&2&&(a=M(2),w(1),C("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},Oib=function(a){if(a&1){var b=r();I(0);D(1,"div",9)(2,"h2");Q(3);F();D(4,"a",10);Q(5," (View Issues)");F()();D(6,"mat-tab-group",11);L("selectedIndexChange",function(c){t(b);var d=M();return v(d.selectedTabIndex=c)})("selectedIndexChange",function(c){t(b);
var d=M();return v(d.tabChange(c))});D(7,"mat-tab",12)(8,"div",13);G(9,"b-error-banner",14);D(10,"div",15)(11,"label",16)(12,"span",17);Q(13,"Name");F()();D(14,"input",18,19);L("ngModelChange",function(c){t(b);var d=M();return v(d.savedSearchUnderEdit.name=c)});F()();D(16,"div",15)(17,"label",20)(18,"span",17);Q(19,"Description");F()();D(20,"textarea",21);L("ngModelChange",function(c){t(b);var d=M();return v(d.savedSearchUnderEdit.description=c)});Q(21,"            ");F()();D(22,"div",22)(23,"label",
23)(24,"span",17);Q(25,"Query");F();D(26,"p",24);Q(27," To modify query and display preferences, run the saved search and modify its parameters ");F();D(28,"div",25);Q(29);F()()();P(30,Jib,5,1,"div",26);F()();D(31,"mat-tab",27)(32,"div",13)(33,"div",15)(34,"label",28)(35,"span",17);Q(36,"Admins");F();D(37,"p",24);Q(38," Edit access controls, edit name and description, edit query ");F()();D(39,"b-multi-user-input",29);L("usersChange",function(c){t(b);var d=M();return v(d.accessPolicyUnderEdit.admins=
c)})("isValid",function(c){t(b);var d=M();return v(d.isAdminsFieldValid=c)});F()();D(40,"div",15)(41,"label",30)(42,"span",17);Q(43,"View and execute search");F()();D(44,"b-multi-user-input",31);L("usersChange",function(c){t(b);var d=M();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){t(b);var d=M();return v(d.isReaderFieldValid=c)});F()();D(45,"div",32);Q(46," See ");D(47,"a",33);Q(48,"access control documentation");F();Q(49," for an explanation of the settings. ");F();P(50,Kib,
5,1,"div",26);F()()();K()}a&2&&(a=M(),w(3),kg(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),w(1),C("href",a.paths.viewSavedSearch(a.savedSearch.searchId),re),w(2),C("selectedIndex",a.selectedTabIndex),w(3),C("error",a.error),w(1),C("ngClass",og(26,Lib,a.isEditDisabled())),w(4),C("ngModel",a.savedSearchUnderEdit.name)("disabled",a.isEditDisabled()),w(2),C("ngClass",og(28,Lib,a.isEditDisabled())),w(4),C("ngModel",a.savedSearchUnderEdit.description)("disabled",a.isEditDisabled()),
w(9),S(" ",a.savedSearch.query," "),w(1),C("ngIf",a.isAdmin),w(3),C("ngClass",og(30,Lib,a.isEditDisabled())),w(6),Xf("disabled",a.isEditDisabled()),C("users",a.accessPolicyUnderEdit.admins),w(1),C("ngClass",og(32,Lib,a.isEditDisabled())),w(4),Xf("disabled",a.isEditDisabled()),C("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",og(36,Mib,og(34,Nib,a.accessPolicyUnderEdit.admins))),w(3),C("href",wo(a.documentationLinks)+"#saved-searches",re),w(3),
C("ngIf",a.isAdmin))},Pib=function(a){a&1&&(D(0,"div",7),G(1,"b-spinner"),F())},Qib=function(a){if(a&1){var b=r();D(0,"div",39)(1,"span",40)(2,"mat-checkbox",41);L("change",function(c){t(b);var d=M(2);return v(d.alertState.setValue(c.checked))});F()();D(3,"div")(4,"strong",42);Q(5,"SLO Notifications");F();D(6,"div",43);Q(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");F()()()}a&2&&(a=M(2),Xf("bv2-edit-resource-readonly",
a.isEditDisabled()),w(2),C("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},Rib=function(a){a&1&&(D(0,"div",44),Q(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),D(2,"a",45),Q(3," Learn more "),F()())},Tib=function(a){if(a&1){var b=r();D(0,"b-button",50);L("onAction",function(){t(b);var c=M(3);return v(Sib(c,!0))});Q(1," Archive ");F()}a&2&&(a=M(3),C("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},Uib=function(a){if(a&1){var b=
r();D(0,"b-button",51);L("onAction",function(){t(b);var c=M(3);return v(Sib(c,!1))});Q(1," Unarchive ");F()}a&2&&(a=M(3),C("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},Vib=function(a){if(a&1){var b=r();D(0,"div",26)(1,"b-button",46);L("onAction",function(){t(b);var d=M(2);return v(d.saveMetadata())});Q(2," Update ");F();D(3,"b-button",47);L("onAction",function(){t(b);var d=M(2);return v(d.revertMetadataChanges())});Q(4," Revert changes ");F();P(5,Tib,2,1,"b-button",48);P(6,Uib,2,1,"b-button",
49);F()}if(a&2){M();var c=N(9);a=M();w(1);C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!a.elementPickerIsValid||!!c.pending||!!c.invalid);w(2);C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!!c.pending||!!c.invalid);w(2);C("ngIf",a.slo&&!a.slo.isArchived);w(1);C("ngIf",a.slo&&a.slo.isArchived)}},Wib=function(a){if(a&1){var b=r();D(0,"div",25)(1,"b-button",52);L("onAction",function(){t(b);var c=M(2);return v(c.saveAccessPolicy())});Q(2," Update ");F();D(3,"b-button",53);L("onAction",
function(){t(b);var c=M(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");F()()}a&2&&(a=M(2),w(1),C("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},Xib=function(a){if(a&1){var b=r();D(0,"div")(1,"div",8)(2,"h2")(3,"span",9);Q(4);F()()();D(5,"mat-tab-group",10);L("selectedIndexChange",function(c){t(b);var d=M();return v(d.selectedTabIndex=c)})("selectedIndexChange",function(c){t(b);var d=M();return v(d.tabChange(c))});D(6,"mat-tab",11)(7,"div",12)(8,
"form",13,14)(10,"div",15)(11,"label",16)(12,"span",17);Q(13,"Name");F()();D(14,"input",18);L("ngModelChange",function(c){t(b);var d=M();return v(d.editableCopy.name=c)});F()();D(15,"div",15)(16,"label",19)(17,"span",17);Q(18,"Description");F()();D(19,"textarea",20);L("ngModelChange",function(c){t(b);var d=M();return v(d.editableCopy.description=c)});Q(20,"              ");F()();P(21,Qib,8,4,"div",21);F();P(22,Rib,4,0,"div",22);D(23,"div",15)(24,"slo-elements-picker",23);L("onCollectionUpdate",function(c){t(b);
var d=M();return v(d.updateCollection(c))})("onValidation",function(c){t(b);var d=M();return v(d.elementPickerIsValid=c)});F()();D(25,"div",24)(26,"div",25)(27,"div",26)(28,"b-button",27);L("onAction",function(){t(b);var c=M();return v(c.showUpdateHistoryModal())});Q(29," View history ");F()()();D(30,"div",25);P(31,Vib,7,4,"div",28);F()()()();D(32,"mat-tab",29)(33,"div",30)(34,"form",31)(35,"div",15)(36,"label",32)(37,"span",17);Q(38,"Admins");F();D(39,"p",33);Q(40," Edit name, description and metrics ");
F()();D(41,"b-multi-user-input",34);L("usersChange",function(c){t(b);var d=M();return v(d.editableAccessPolicy.admins=c)})("isValid",function(c){t(b);var d=M();return v(d.validity.admins=c)});F()();D(42,"div",15)(43,"label",35)(44,"span",17);Q(45,"Readers");F();D(46,"p",33);Q(47," View the SLO definition (this is not required to see an issue's SLO status) ");F()();D(48,"b-multi-user-input",36);L("usersChange",function(c){t(b);var d=M();return v(d.editableAccessPolicy.readers=c)})("isValid",function(c){t(b);
var d=M();return v(d.validity.readers=c)});F()()();D(49,"div",15);Q(50," See ");D(51,"a",37);Q(52,"access control documentation");F();Q(53," for an explanation of the settings. ");F();P(54,Wib,5,1,"div",38);F()()()()}a&2&&(a=M(),w(4),kg(" SLO ",a.slo.sloId,": ",a.slo.name," "),w(1),C("selectedIndex",a.selectedTabIndex),w(5),Xf("bv2-edit-resource-readonly",a.isEditDisabled()),w(4),C("required",!0)("ngModel",a.editableCopy.name)("disabled",a.isEditDisabled()),w(1),Xf("bv2-edit-resource-readonly",a.isEditDisabled()),
w(4),C("ngModel",a.editableCopy.description)("disabled",a.isEditDisabled()),w(2),C("ngIf",a.isImportedFromBugScope||a.alertState.getSavedValue()),w(1),C("ngIf",a.isUneditedFromBugScope&&a.isAdmin()),w(1),Xf("bv2-edit-resource-readonly",a.isEditDisabled()),w(1),C("isDisabled",a.isEditDisabled())("collection",a.editableCopy.elements),w(7),C("ngIf",a.isAdmin()),w(4),Xf("bv2-edit-resource-readonly",a.isEditDisabled()),w(6),C("users",a.editableAccessPolicy.admins),Nf("disabled",a.isEditDisabled()?!0:null),
w(1),Xf("bv2-edit-resource-readonly",a.isEditDisabled()),w(6),C("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0),Nf("disabled",a.isEditDisabled()?!0:null),w(3),gg("href","",wo(a.documentationLinks),"#slos",re),w(3),C("ngIf",a.isAdmin()))},Yib=function(a,b){return[].concat(p(b)).map(function(c){return ms[c]}).every(function(c){return c.check(a)})},Zib=function(a){return!!ms[a]},$ib=function(a){if(a&1){var b=r();D(0,"div",3);L("@arrowPosition.start",function(){t(b);
var c=M();return v(c._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t(b);var c=M();return v(c._disableViewStateAnimation=!1)});G(1,"div",4);D(2,"div",5);G(3,"div",6)(4,"div",7)(5,"div",8);F()()}a&2&&(a=M(),C("@arrowOpacity",a._getArrowViewState())("@arrowPosition",a._getArrowViewState())("@allowChildren",a._getArrowDirectionState()),w(2),C("@indicator",a._getArrowDirectionState()),w(1),C("@leftPointer",a._getArrowDirectionState()),w(1),C("@rightPointer",a._getArrowDirectionState()))},
ajb=function(a){a&1&&G(0,"th",26)},bjb=function(a){a&1&&G(0,"td",27)},cjb=function(a){a&1&&(D(0,"th",26),Q(1," Id "),F())},djb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-id-cell",29),F());a&2&&(a=b.$implicit,w(1),C("id",a.id))},ejb=function(a){a&1&&(D(0,"th",26),Q(1," Title "),F())},fjb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-title-cell",30),T(2,"async"),F());a&2&&(a=b.$implicit,b=M(),w(1),C("issue",V(2,2,a.issue$))("issueUrlFactory",b.issueUrlFactory))},gjb=function(a){a&1&&(D(0,"th",31),
Q(1," Type "),F())},hjb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-type-cell",32),T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},ijb=function(a){a&1&&bg(0)},jjb=function(a){a&1&&(I(0),Q(1,"Assignee"),K())},kjb=function(a){a&1&&(D(0,"th",33),I(1,34),P(2,ijb,1,0,"ng-container",35),P(3,jjb,2,0,"ng-container",36),K(),F());a&2&&(a=M(),w(1),C("ngSwitch",null==a.options.modes?null:a.options.modes.assignee),w(1),C("ngSwitchCase","avatar-if-open"))},ljb=function(a,b){a&1&&G(0,"b-user-image",
39);a&2&&C("email",b.$implicit)},mjb=function(a){a&1&&(I(0),P(1,ljb,1,1,"b-user-image",38),K());if(a&2){a=M().$implicit;var b=M(3);w(1);C("ngIf",b.getAssigneeString(a))}},njb=function(a,b){a&1&&(I(0),P(1,mjb,2,1,"ng-container",37),K());a&2&&(a=b.$implicit,b=M(3),w(1),C("ngIf",b.isOpen(a)))},ojb=function(a){a&1&&(I(0),P(1,njb,2,1,"ng-container",37),T(2,"async"),K());a&2&&(a=M().$implicit,w(1),C("ngIf",V(2,1,a.issue$)))},pjb=function(a){a&1&&(I(0),G(1,"b-issue-assignee-cell",32),T(2,"async"),K());a&
2&&(a=M().$implicit,w(1),C("issue",V(2,1,a.issue$)))},qjb=function(a){a&1&&(D(0,"td",28),I(1,34),P(2,ojb,3,3,"ng-container",35),P(3,pjb,3,3,"ng-container",36),K(),F());a&2&&(a=M(),w(1),C("ngSwitch",null==a.options.modes?null:a.options.modes.assignee),w(1),C("ngSwitchCase","avatar-if-open"))},rjb=function(a){a&1&&(D(0,"th",40),Q(1," Reporter "),F())},sjb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-reporter-cell",32),T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},tjb=function(a){a&
1&&(D(0,"th",41),Q(1," Priority "),F())},ujb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-priority-display",42),F());a&2&&(a=b.$implicit,b=M(),w(1),C("issuePriority",b.getPriority(a)))},vjb=function(a){a&1&&(D(0,"th",43),Q(1," Status "),F())},wjb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-status-cell",32),T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},xjb=function(a){a&1&&(D(0,"th",26),Q(1," Team "),F())},yjb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-team-cell",32),
T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},zjb=function(a){a&1&&(D(0,"th",44),Q(1," Created "),F())},Ajb=function(a,b){a&1&&(D(0,"td",28),G(1,"b-issue-created-time-cell",32),T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},Bjb=function(a){a&1&&(D(0,"th",45),Q(1," Last Modified "),F())},Cjb=function(a,b){a&1&&(I(0),G(1,"b-formatted-date-time",48),K());a&2&&(a=b.$implicit,w(1),C("timestamp",a/1E3))},Djb=function(a){a&1&&Q(0,"--")},Ejb=function(a,b){a&
1&&(D(0,"td",28),P(1,Cjb,2,1,"ng-container",46),P(2,Djb,1,0,"ng-template",null,47,Eg),F());if(a&2){a=b.$implicit;var c=N(3);b=M();w(1);C("ngIf",b.getModifiedTimeMicros(a))("ngIfElse",c)}},Fjb=function(a){a&1&&G(0,"th",26)},Gjb=function(a,b){a&1&&(D(0,"td",28)(1,"b-actions-menu",49),L("click",function(c){return c.stopPropagation()}),F()());a&2&&(a=b.$implicit,b=M(),w(1),C("menuItems",b.getMenuItems(a.id)))},Hjb=function(a){a&1&&G(0,"tr",50)},Ijb=function(a,b){if(a&1){var c=r();D(0,"tr",51);L("click",
function(d){var e=t(c).$implicit,f=M();return v(f.navigateToIssue(d,e.id))})("mouseup",function(d){var e=t(c).$implicit,f=M();return v(f.navigateToIssue(d,e.id))})("focusin",function(){var d=t(c).$implicit,e=M();return v(wp(e.focusManager,d))})("keydown",function(d){var e=t(c).$implicit,f=M();return v(f.onRowKeydown(e,d))});F()}a&2&&C("row",b.$implicit)},Jjb=function(a){if(a&1){var b=r();I(0);D(1,"button",54);L("click",function(){t(b);var c=M(5);return v(c.rowLimit$.next(void 0))});Q(2," Show more ");
G(3,"mat-icon",55);F();K()}},Kjb=function(a){a&1&&(I(0),P(1,Jjb,4,0,"ng-container",37),K());if(a&2){a=M().$implicit;var b=M().$implicit;w(1);C("ngIf",a.length<b)}},Ljb=function(a){if(a&1){var b=r();I(0);D(1,"button",54);L("click",function(){t(b);var c=M(5);return v(c.rowLimit$.next(c.options.rowLimit))});Q(2," Show less ");G(3,"mat-icon",56);F();K()}},Mjb=function(a){a&1&&P(0,Ljb,4,0,"ng-container",37);if(a&2){a=M().$implicit;var b=M(3),c;C("ngIf",a.length>(null!==(c=b.options.rowLimit)&&void 0!==
c?c:0))}},Njb=function(a){a&1&&(I(0),P(1,Kjb,2,1,"ng-container",46),T(2,"async"),P(3,Mjb,1,1,"ng-template",null,53,Eg),K());if(a&2){var b=N(4);a=M(3);w(1);C("ngIf",V(2,2,a.rowLimit$))("ngIfElse",b)}},Ojb=function(a){a&1&&(I(0),P(1,Njb,5,4,"ng-container",37),T(2,"async"),K());a&2&&(a=M(2),w(1),C("ngIf",V(2,1,a.rows$)))},Pjb=function(a){a&1&&(D(0,"div",52),P(1,Ojb,3,3,"ng-container",37),T(2,"async"),F());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.rowCountAfterFilters$)))},Qjb=function(a,b){return(null==a?void 0:
a.id)===(null==b?void 0:b.id)},Jn=function(a){return Gk(a.issue$)},Rjb=function(a){var b,c,d;return null==(b=Gk(a.issue$))?void 0:null==(c=b.snapshot)?void 0:null==(d=c[0])?void 0:d.priority},Sjb=function(a){var b,c;return null==(b=Gk(a.issue$))?void 0:null==(c=b.aggregatedData)?void 0:c.modifiedTimeMicros},Tjb=function(a,b){if(!b||!b.direction)return a;switch(b.active){case "status":return Nza()(a,b.direction);case "assignee":return Oza()(a,b.direction);case "reporter":return Qza()(a,b.direction);
case "type":return Pza()(a,b.direction);case "createdTime":return Rza()(a,b.direction);case "modifiedTime":return Sza()(a,b.direction);default:return console.warn("b-issues-table sort by '"+b.active+"' not implemented"),a}},Vjb=function(a){if(a&1){var b=r();D(0,"div",5);G(1,"img",6)(2,"img",7);D(3,"p",8);Q(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");F();D(5,"p",9);Q(6,' If this issue blocked another, it would mean that it should be resolved first, and it would show up in the "Blockers" list for that issue. ');
D(7,"a",10);Q(8,"Learn more");F()();D(9,"button",11);L("click",function(){t(b);var c=M(2);return v(Ujb(c))});Q(10," Add ");F()()}a&2&&(a=M(2),w(1),C("src",a.TEA_LIGHT,re),w(1),C("src",a.TEA_DARK,re))},Wjb=function(a,b){a&1&&G(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=M(6),C("issueIds",a)("menuItemFactory",b.getMenuItems))},Xjb=function(a){a&1&&(I(0),P(1,Wjb,1,2,"b-issues-table",17),T(2,"async"),K());a&2&&(a=M(5),w(1),C("ngIf",V(2,1,a.blockedAndOpenIds$)))},Yjb=function(a){a&1&&(D(0,"p",19),Q(1,"Not blocking any open issues \ud83e\udd73"),
F())},Zjb=function(a,b){a&1&&(I(0),D(1,"h4",15),Q(2),F(),P(3,Xjb,3,3,"ng-container",12),P(4,Yjb,2,0,"ng-template",null,16,Eg),K());if(a&2){a=b.$implicit;var c=N(5);w(2);S("Open (",a.length,")");w(1);C("ngIf",0<a.length)("ngIfElse",c)}},$jb=function(a,b){a&1&&G(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=M(6),C("issueIds",a)("menuItemFactory",b.getMenuItems))},akb=function(a){a&1&&(I(0),D(1,"h4",15),Q(2),F(),P(3,$jb,1,2,"b-issues-table",17),T(4,"async"),K());if(a&2){a=M().$implicit;var b=M(4);w(2);S("Closed (",
a.length,")");w(1);C("ngIf",V(4,2,b.blockedAndClosedIds$))}},bkb=function(a,b){a&1&&(I(0),P(1,akb,5,4,"ng-container",1),K());a&2&&(a=b.$implicit,w(1),C("ngIf",0<a.length))},ckb=function(a){a&1&&(I(0),P(1,Zjb,6,3,"ng-container",1),T(2,"async"),P(3,bkb,2,1,"ng-container",1),T(4,"async"),K());a&2&&(a=M(3),w(1),C("ngIf",V(2,2,a.blockedAndOpen$)),w(2),C("ngIf",V(4,4,a.blockedAndClosed$)))},dkb=function(a,b){a&1&&(D(0,"li")(1,"a",22)(2,"span",9),Q(3),F(),D(4,"aside",23),G(5,"button",24),F()()());a&2&&(a=
b.$implicit,w(1),gg("routerLink","/issues/",a,""),Pf("aria-label","Issue ",a,""),w(2),S("b/",a,""))},ekb=function(a){a&1&&(D(0,"h4",15),Q(1,"Loading..."),F(),D(2,"ol",20),P(3,dkb,6,3,"li",21),F());a&2&&(a=M(2).$implicit,w(3),C("ngForOf",a))},fkb=function(a,b){a&1&&(I(0),D(1,"a",25),Q(2," View as search results "),F(),K());a&2&&(a=b.ngIf,w(1),C("routerLink",a.path)("queryParams",a.params))},gkb=function(a){if(a&1){var b=r();P(0,ckb,5,6,"ng-container",12);T(1,"async");P(2,ekb,4,1,"ng-template",null,
13,Eg);D(4,"aside",14)(5,"button",11);L("click",function(){t(b);var d=M(2);return v(Ujb(d))});Q(6," Add ");F();P(7,fkb,3,2,"ng-container",1);T(8,"async");F()}if(a&2){var c=N(3);a=M(2);C("ngIf",V(1,3,a.issuesBeingBlocked$))("ngIfElse",c);w(7);C("ngIf",V(8,5,a.searchUrl$))}},hkb=function(a,b){a&1&&(I(0),P(1,Vjb,11,2,"div",3),P(2,gkb,9,7,"ng-template",null,4,Eg),K());if(a&2){a=b.$implicit;var c=N(3);w(1);C("ngIf",0===a.length)("ngIfElse",c)}},ikb=function(a){a&1&&(D(0,"aside",26),G(1,"b-spinner"),F())},
jkb=function(a,b){a&1&&G(0,"b-user-image",1);a&2&&C("email",b.$implicit)},kkb=function(a,b){b=void 0===b?[]:b;return"http://cl/search/cl:("+[].concat(p(a),p(b.map(function(c){return String(c.changelistNumber)}))).join("|")+")"},lkb=function(a,b,c){c=void 0===c?22:c;return["display: inline-block; border-radius: 50%;","width: "+c+"px;","height: "+c+"px;","background: conic-gradient(var(--"+(void 0===b?"good-gfx":b)+") "+100*a+"%, var(--divider) 0 100%);","box-shadow: inset 0 0 0 2px var(--divider);"].join(" ")},
mkb=function(a){return"hotlist-"+a},nkb=function(a){return"savedsearch-"+a},ps=function(a){if(null!=a){if(okb.includes(a))return a;var b=a.match(/\bhotlists?\b/)?ns(a):void 0;if(b)return"hotlist";b=a.match(/\bsavedsearch(?:es|)\b/)?ns(a):void 0;if(b)return"savedsearch";b=/\bb\/\d+\b/;b=a.match(/\bissues?\b/)||a.match(b)?ns(a):void 0;b||(a=a.trim(),b=3>a.length?!1:!!a.match(/^\d+$/));if(b)return"issue"}},pkb=function(a){switch(ps(a)){case "hotlist":return"Hotlist";case "savedsearch":return"Saved Search";
case "issue":return"Issue"}},ns=function(a){if(null!=a)return a.split(/[^\d]+/).filter(Boolean).pop()},qkb=function(a){var b=ns(a);if(null!=b)switch(ps(a)){case "hotlist":return"/hotlists/"+b;case "savedsearch":return"/savedsearches/"+b;default:return"/issues/"+b}},skb=function(a){a&1&&(D(0,"a",5),Q(1),F());a&2&&(a=M(2),C("href",a.makeCritiqueUrl(ng(2,rkb),a.pending),re),w(1),S("(",a.pending.length," pending)"))},tkb=function(a,b){a&1&&(D(0,"div",1),G(1,"img",2),Q(2," \u00a0 "),D(3,"a",3),Q(4),F(),
Q(5," \u00a0 "),P(6,skb,2,3,"a",4),F());a&2&&(a=b.$implicit,b=M(),w(3),C("href",b.makeCritiqueUrl(b.submitted,b.pending),re),w(1),S("",a," CLs"),w(2),C("ngIf",0<b.pending.length))},ukb=function(a){a&1&&(D(0,"span",5),T(1,"date"),Q(2),F());a&2&&(a=M(2),gg("title","Start Date: ",rg(1,3,a.startDate,"longDate"),""),w(2),kg(" ",a.startDateShortStr,"",a.joinerStr," "))},vkb=function(a){a&1&&(D(0,"span",6),T(1,"date"),Q(2),F());a&2&&(a=M(2),gg("title","End Date: ",rg(1,2,a.endDate,"longDate"),""),w(2),S(" ",
a.endDateShortStr," "))},wkb=function(a){a&1&&(D(0,"div",1),G(1,"mat-icon",2),P(2,ukb,3,6,"span",3),P(3,vkb,3,5,"span",4),F());a&2&&(a=M(),w(2),C("ngIf",a.startDate),w(1),C("ngIf",a.endDate))},xkb=function(a){if(a&1){var b=r();D(0,"div",1);L("click",function(){t(b);var c=M();return v(c.useXofYLabel=!c.useXofYLabel)});G(1,"div",2);D(2,"span");Q(3);T(4,"number");F();D(5,"span");Q(6);F()()}a&2&&(a=M(),ig("title","",a.closed," of ",a.total," issues closed in this work area"),w(1),Nf("style",a.makePie(a.closed/
a.total),$fa),w(1),Xf("display-none",a.useXofYLabel),w(1),S("",rg(4,10,a.closed/a.total*100,"1.0-0"),"% complete"),w(2),Xf("display-none",!a.useXofYLabel),w(1),kg("",a.closed," of ",a.total," closed"))},ykb=function(a,b){a&1&&G(0,"progress-pie",5);a&2&&(a=b.$implicit,C("closed",a[0])("total",a[1]))},Akb=function(a,b){a&1&&(G(0,"cl-counts",6),T(1,"async"));if(a&2){a=b.$implicit;b=M();var c;C("submitted",a.changelists)("pending",null!==(c=V(1,2,b.pendingCls$))&&void 0!==c?c:ng(4,zkb))}},Bkb=function(a,
b){a&1&&G(0,"avatar-bunch",7);a&2&&C("emails",b.$implicit)},Ckb=function(a,b){if(a&&a.length)return a.map(b)},Dkb=function(a){return{filename:a.getFilename(),lineNumber:ji(a,2),changeNumber:dj(a,3)}},Ekb=function(a){return{packageName:Hi(a,1),fileMentionSet:Ckb(Ji(a,qs,2),Dkb)}},Gkb=function(a){return{totalMentions:hi(a,1),truncated:Ri(a,2),packageMentionSet:Ckb(Ji(a,Fkb,3),Ekb)}},rs=function(a){var b=Hkb(a.open);a=Hkb(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},Hkb=function(a){var b=a.count;
a=a.exact;return 0===b||a?""+b:b+"+"},Ikb=function(a){return"("+Hkb(a)+")"},ss=function(a){return{count:99<a?99:a,exact:99<a?!1:!0}},Jkb=function(a,b){switch(b){case "BLOCKED_BY":return"blockingid:"+a+" status:open";case "BLOCKING":return"blockedbyid:"+a+" status:open";case "DUPLICATE":return"canonicalid:"+a;case "CHILDREN":return"parentid:"+a+" status:open";case "PARENT":break;default:$h(b)}},Kkb=function(a){a&1&&bg(0)},Lkb=function(a){a&1&&(I(0),P(1,Kkb,1,0,"ng-container",9),K());if(a&2){M();var b=
N(15);w(1);C("ngTemplateOutlet",b)}},Mkb=function(a,b){a&1&&(I(0),G(1,"b-issues-table",10),K());a&2&&(a=b.ngIf,b=M(2),w(1),C("issueIds",a)("tableColumns",b.tableColumns)("menuItemFactory",b.getMenuItems)("filters",b.filters)("initialSort",b.initialSort))},Nkb=function(a){a&1&&(I(0),P(1,Mkb,2,5,"ng-container",4),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.blockerIds$)))},Okb=function(a,b){if(a&1){var c=r();D(0,"p",11);Q(1);D(2,"button",12);L("click",function(){t(c);var d=M();return v(d.shouldResetFilters.next())});
Q(3,"Show all");F()()}a&2&&(a=b.$implicit,w(1),kg(" Filtering ",a," issue",1===a?"":"s",". "))},Pkb=function(a){a&1&&bg(0)},Qkb=function(a){a&1&&(D(0,"div")(1,"span",11),Q(2,"This issue is not blocked "),D(3,"span",13),Q(4,"\ud83c\udf89"),F()(),P(5,Pkb,1,0,"ng-container",9),F());if(a&2){M();var b=N(15);w(5);C("ngTemplateOutlet",b)}},Skb=function(a){if(a&1){var b=r();D(0,"b-button",14);L("onAction",function(){t(b);var c=M();return v(Rkb(c))});T(1,"async");Q(2," Add blocker ");F()}a&2&&(a=M(),C("disabled",
!V(1,1,a.canEdit$)))},ts=function(a,b){return a===b?!0:(null==a?void 0:a.type)===(null==b?void 0:b.type)&&!(null==a||!a.ancestorChain.equals(null==b?void 0:b.ancestorChain))},Tkb=function(a){switch(a){case 0:return"Row moved up";case 1:return"Row moved down";case 2:return"Row indented";case 3:return"Row unindented";case 4:return"Row moved";default:$h(a)}},Vkb=function(a,b){var c=function(){return{position:d,rowElement:b}};if(b.classList.contains("dragging")||b.classList.contains("nodrop")||b.classList.contains("mat-header-row")){var d=
"none";return c()}var e=Ukb(b),f=b.nextElementSibling&&Ukb(b.nextElementSibling),h=b.previousElementSibling&&Ukb(b.previousElementSibling);if("top"===a){var k;if((null==(k=b.previousElementSibling)?0:k.classList.contains("dragging"))&&h===e)return d="none",c();d="before";return c()}if("bottom"===a){if(null!=f&&e<f){var q;if(null==(q=b.nextElementSibling)?0:q.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var u;if((null==(u=b.nextElementSibling)?0:u.classList.contains("dragging"))&&
e===f)return d="none",c();d="after";return c()}d="current";return c()},Ukb=function(a){return Number(a.dataset.level)},Wkb=function(a){var b;return us(null!=(b=a.dataset.ancestorchain)?b:"")},Xkb=function(a){a&1&&G(0,"th",27)},Ykb=function(a){if(a&1){var b=r();D(0,"td",28,29);L("click",function(c){t(b);N(1).focus();return v(c.stopPropagation())});F()}},Zkb=function(a){a&1&&G(0,"th",27)},$kb=function(a){if(a&1){var b=r();D(0,"td",30,31);L("click",function(c){t(b);N(1).focus();return v(c.stopPropagation())})("dragstart",
function(c){t(b);var d=M();return v(d.handleDragStart(c))});G(2,"mat-icon",32);F()}},alb=function(a){a&1&&(D(0,"th",27),Q(1," Id "),F())},blb=function(a,b){a&1&&(D(0,"td",33),G(1,"b-issue-id-cell",34),F());a&2&&(a=b.$implicit,w(1),C("id",a.id))},clb=function(a){a&1&&(D(0,"th",27),Q(1," Id "),F())},dlb=function(a){a&1&&(D(0,"td",33),Q(1,"--"),F())},elb=function(a){a&1&&(D(0,"th",27),Q(1," Title "),F())},flb=function(a,b){if(a&1){var c=r();D(0,"td",33)(1,"b-expandable-issue-title-cell",35);L("expansionChange",
function(){var d=t(c).$implicit,e=M();return v(e.toggleExpansion(d))});T(2,"async");T(3,"async");F()()}a&2&&(a=b.$implicit,w(1),C("issue",V(2,4,a.issue$))("expandable",V(3,6,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},glb=function(a){a&1&&(D(0,"th",27),Q(1," Type "),F())},hlb=function(a,b){a&1&&(D(0,"td",33),G(1,"b-issue-type-cell",36),T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},ilb=function(a){a&1&&bg(0)},jlb=function(a){a&1&&(I(0),Q(1,"Assignee"),
K())},klb=function(a){a&1&&(D(0,"th",27),I(1,37),P(2,ilb,1,0,"ng-container",38),P(3,jlb,2,0,"ng-container",39),K(),F());a&2&&(a=M(),w(1),C("ngSwitch",null==a.options.modes?null:a.options.modes.assignee),w(1),C("ngSwitchCase","avatar-if-open"))},llb=function(a,b){a&1&&G(0,"b-user-image",42);a&2&&C("email",b.$implicit)},mlb=function(a){a&1&&(I(0),P(1,llb,1,1,"b-user-image",41),K());if(a&2){a=M().$implicit;var b=M(3);w(1);C("ngIf",b.getAssigneeString(a))}},nlb=function(a,b){a&1&&(I(0),P(1,mlb,2,1,"ng-container",
20),K());a&2&&(a=b.$implicit,b=M(3),w(1),C("ngIf",b.isOpen(a)))},olb=function(a){a&1&&(I(0),P(1,nlb,2,1,"ng-container",20),T(2,"async"),K());a&2&&(a=M().$implicit,w(1),C("ngIf",V(2,1,a.issue$)))},plb=function(a){a&1&&(G(0,"b-issue-assignee-cell",36),T(1,"async"));a&2&&(a=M().$implicit,C("issue",V(1,1,a.issue$)))},qlb=function(a){a&1&&(D(0,"td",33),I(1,37),P(2,olb,3,3,"ng-container",38),P(3,plb,2,3,"b-issue-assignee-cell",40),K(),F());a&2&&(a=M(),w(1),C("ngSwitch",null==a.options.modes?null:a.options.modes.assignee),
w(1),C("ngSwitchCase","avatar-if-open"))},rlb=function(a){a&1&&(D(0,"th",27),Q(1," Status "),F())},slb=function(a,b){a&1&&(D(0,"td",33),G(1,"b-issue-status-cell",36),T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},tlb=function(a){a&1&&(D(0,"th",27),Q(1," Team "),F())},ulb=function(a,b){a&1&&(D(0,"td",33),G(1,"b-issue-team-cell",36),T(2,"async"),F());a&2&&(a=b.$implicit,w(1),C("issue",V(2,1,a.issue$)))},vlb=function(a){a&1&&G(0,"th",27)},wlb=function(a,b){a&1&&(D(0,"td",33)(1,
"b-actions-menu",43),L("click",function(c){return c.stopPropagation()}),F()());a&2&&(a=b.$implicit,b=M(),w(1),C("menuItems",b.getMenuItems(a)))},xlb=function(a){a&1&&G(0,"th",27)},zlb=function(a){a&1&&(D(0,"b-actions-menu",43),L("click",function(c){return c.stopPropagation()}),F());if(a&2){a=M().$implicit;var b=M();C("menuItems",ylb(b,a))}},Alb=function(a){a&1&&G(0,"b-spinner")},Blb=function(a,b){a&1&&(D(0,"td",44),P(1,zlb,1,1,"b-actions-menu",45),P(2,Alb,1,0,"ng-template",null,46,Eg),F());if(a&2){a=
b.$implicit;var c=N(3);w(1);C("ngIf",!a.saving)("ngIfElse",c)}},Dlb=function(a,b){if(a&1){var c=r();D(0,"td",33)(1,"b-async-data-placeholder",47);T(2,"async");D(3,"b-button",48);L("onAction",function(){var d=t(c).$implicit,e=M();return v(Clb(e,d))});D(4,"span",49);Q(5);F()()()()}a&2&&(a=b.$implicit,b=M(),Wf("padding-left",24*a.level+b.TITLE_FIXED_OFFSET_PX,"px"),Nf("colspan",b.tableColumns.length),w(1),C("isReady",!!V(2,5,a.parentIssue$)),w(4),S("Display ",a.truncatedSiblingCount," more"))},Elb=function(a){a&
1&&(D(0,"th",27),Q(1," Title "),F())},Flb=function(a,b){if(a&1){var c=r();D(0,"td",33)(1,"div",50)(2,"b-text-input-cell",51);L("valueChange",function(d){var e=t(c).$implicit;return v(e.title=d)})("commit",function(){var d=t(c).$implicit,e=M();return v(e.saveDraft(d))});F();D(3,"b-button",52);L("onAction",function(){var d=t(c).$implicit,e=M();return v(e.saveDraft(d))});Q(4," Create ");F();D(5,"b-button",53);L("onAction",function(){var d=t(c).$implicit,e=M();return v(vs(e,d))});Q(6," Cancel ");F()()()}a&
2&&(a=b.$implicit,Wf("padding-left",24*(a.level+1),"px"),w(2),C("value",a.title)("readonly",a.saving),w(1),C("disabled",!a.title||a.saving),w(2),C("disabled",a.saving))},Glb=function(a){a&1&&G(0,"tr",55)},Hlb=function(a){a&1&&(I(0),P(1,Glb,1,0,"tr",54),K());a&2&&(a=M(),w(1),C("matHeaderRowDef",a.tableColumns))},Jlb=function(a,b){if(a&1){var c=r();D(0,"tr",56);L("click",function(d){var e=t(c).$implicit,f=M();return v(f.navigateToIssue(d,e))})("mouseup",function(d){var e=t(c).$implicit,f=M();return v(f.navigateToIssue(d,
e))})("focusin",function(){var d=t(c).$implicit,e=M();return v(wp(e.focusManager,d))})("keydown",function(d){var e=t(c).$implicit,f=M();return v(f.onRowKeydown(e,d))});T(1,"async");T(2,"async");F()}a&2&&(a=b.$implicit,b=M(),Xf("selected",V(1,8,Ilb(b.selectionModel,a.ancestorChain)))("closed",b.isClosed(V(2,10,a.issue$))),C("row",a),Nf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},Klb=function(a,b){if(a&1){var c=r();D(0,"tr",57);L("focusin",function(){var d=
t(c).$implicit,e=M();return v(wp(e.focusManager,d))})("keydown",function(d){var e=t(c).$implicit,f=M();return v(f.onRowKeydown(e,d))});F()}a&2&&(a=b.$implicit,C("row",a),Nf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},Llb=function(a,b){if(a&1){var c=r();D(0,"tr",58);L("keydown",function(d){var e=t(c).$implicit,f=M();return v(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=t(c).$implicit,e=M();return v(vs(e,d))})("keydown.backspace",function(){var d=
t(c).$implicit,e=M();return v(d.title||vs(e,d))})("focusin",function(){var d=t(c).$implicit,e=M();return v(wp(e.focusManager,d))});F()}a&2&&(a=b.$implicit,C("row",a),Nf("data-type",a.type))},Mlb=function(a,b){a&1&&(I(0),G(1,"b-issues-table",1),K());a&2&&(a=b.ngIf,b=M(),w(1),C("issueIds",a)("tableColumns",b.tableColumns)("filters",b.filters)("issueUrlFactory",b.editIssueDependencies)("menuItemFactory",b.getMenuItems))},Nlb=function(a,b){a&1&&(D(0,"span",10),Q(1),F());a&2&&(a=b.ngIf,gg("title","",a,
" applied filter(s)"),w(1),jg(a))},Olb=function(a){a&1&&(I(0),P(1,Nlb,2,2,"span",9),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.internalSelectedOptions.size$)))},Plb=function(a){a&1&&(D(0,"h1",11),Q(1),F());a&2&&(a=M(),w(1),jg(a.overlayTitle))},Qlb=function(a){a&1&&(D(0,"h1"),Q(1),F());a&2&&(a=M().$implicit,w(1),jg(a.title))},Rlb=function(a){a&1&&(D(0,"p"),Q(1),F());a&2&&(a=M().$implicit,w(1),jg(a.description))},Slb=function(a,b){if(a&1){var c=r();D(0,"div",12)(1,"div",13)(2,"mat-checkbox",
14);L("change",function(d){var e=t(c).$implicit,f=M();e=e.key;d.checked?f.internalSelectedOptions.add(e):f.internalSelectedOptions.delete(e);f.onChange.emit(new Set(f.internalSelectedOptions));return v()});T(3,"async");F();D(4,"div");P(5,Qlb,2,1,"h1",3);P(6,Rlb,2,1,"p",3);F()()()}a&2&&(a=b.$implicit,b=M(),w(2),C("checked",V(3,3,vp(b.internalSelectedOptions,a.key))),w(3),C("ngIf",a.title),w(1),C("ngIf",a.description))},Tlb=function(a){if(a&1){var b=r();I(0);G(1,"mat-divider");D(2,"div",15)(3,"button",
16);L("click",function(){t(b);var c=M(),d=N(1);return v(c.cancel(d))});Q(4);F();D(5,"button",17);L("click",function(){t(b);var c=M(),d=N(1);return v(c.confirm(d))});Q(6);F()();K()}a&2&&(a=M(),w(4),jg(a.cancelButtonLabel),w(2),jg(a.confirmButtonLabel))},Ulb=function(a){a&1&&G(0,"b-spinner")},Vlb=function(a){a&1&&bg(0)},Wlb=function(a){a&1&&(I(0),P(1,Vlb,1,0,"ng-container",24),K());if(a&2){M(2);var b=N(12);w(1);C("ngTemplateOutlet",b)}},Xlb=function(a){a&1&&(G(0,"b-parents-table",25),T(1,"async"),T(2,
"async"));if(a&2){a=M().ngIf;var b=M();C("issueId",a)("parentIds",V(1,3,b.parentIds$))("filters",V(2,5,b.issueFilters.value$))}},Ylb=function(a){a&1&&bg(0)},$lb=function(a){a&1&&(I(0),P(1,Ylb,1,0,"ng-container",26),T(2,"async"),K());if(a&2){a=M(2);var b=N(10);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(4,Zlb,V(2,2,null==a.parentsTable?null:a.parentsTable.hiddenRowCount$)))}},amb=function(a){a&1&&bg(0)},bmb=function(a){a&1&&(D(0,"div")(1,"span",27),Q(2,"This issue has no parents"),F(),
P(3,amb,1,0,"ng-container",24),F());if(a&2){M(2);var b=N(12);w(3);C("ngTemplateOutlet",b)}},cmb=function(a){a&1&&bg(0)},dmb=function(a){a&1&&(I(0),P(1,cmb,1,0,"ng-container",24),K());if(a&2){M(2);var b=N(14);w(1);C("ngTemplateOutlet",b)}},emb=function(a){a&1&&(D(0,"div",28)(1,"section",29)(2,"div",30),Q(3," Progress: "),F(),D(4,"div",30),Q(5),T(6,"number"),T(7,"async"),T(8,"number"),T(9,"async"),F(),D(10,"div",31),T(11,"async"),D(12,"div",32)(13,"div",33),T(14,"async"),F(),D(15,"onedev-hovercard",
null,34)(17,"div",35)(18,"div",36),Q(19),T(20,"async"),F()()()()(),G(21,"mat-icon",37),D(22,"onedev-hovercard",null,38)(24,"div",35)(25,"div",39)(26,"p"),Q(27," The progress of child issues takes into consideration all child issues and descendant issues which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is not reflected in the progress bar. "),F()()()()()());if(a&2){var b=N(16),c=N(23);a=M(2);w(5);kg(" ",rg(6,8,V(7,11,a.totalDaysComplete$),"1.0-2")," of ",rg(8,
13,V(9,16,a.totalDaysCount$),"1.0-2")," days complete ");w(5);Pf("aria-label","",V(11,18,a.totalDaysDisplayPercent$)," Percentage of effort completed");w(2);C("onedevHovercardTrigger",b);w(1);Wf("width",V(14,20,a.totalDaysDisplayPercent$),"%");w(6);S(" ",V(20,22,a.progressHovercardContent$)," ");w(2);C("onedevHovercardTrigger",c)}},fmb=function(a){a&1&&G(0,"rollups-project",40);a&2&&(a=M().ngIf,C("id",a))},gmb=function(a){a&1&&bg(0)},hmb=function(a){a&1&&(I(0),P(1,gmb,1,0,"ng-container",26),T(2,"async"),
K());if(a&2){a=M(2);var b=N(10);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(4,Zlb,V(2,2,null==a.relationsTable?null:a.relationsTable.hiddenRowCount$)))}},imb=function(a){a&1&&bg(0)},jmb=function(a){a&1&&(I(0),D(1,"span",27),Q(2,"This issue has no children"),F(),P(3,imb,1,0,"ng-container",24),K());if(a&2){M(3);var b=N(14);w(3);C("ngTemplateOutlet",b)}},kmb=function(a){a&1&&(I(0),P(1,jmb,4,1,"ng-container",1),T(2,"async"),T(3,"async"),K());if(a&2){a=M(2);var b;w(1);C("ngIf",0===V(2,1,
a.unarchivedChildIssueCount$)&&0===((null==(b=V(3,3,null==a.relationsTable?null:a.relationsTable.rows$))?null:b.length)||0))}},lmb=function(a,b){if(a&1){var c=r();D(0,"div",9)(1,"section",10)(2,"div",11)(3,"h4",12)(4,"div",13);G(5,"mat-icon",14);F();Q(6);T(7,"async");F();P(8,Wlb,2,1,"ng-container",1);T(9,"async");F();P(10,Xlb,3,7,"b-parents-table",15);T(11,"async");P(12,$lb,3,6,"ng-container",1);T(13,"async");P(14,bmb,4,1,"ng-template",null,16,Eg);F();D(16,"section")(17,"b-blockers-table",17);L("shouldResetFilters",
function(){t(c);var h=M();return v(h.shouldResetFilters())});T(18,"async");F()();D(19,"section")(20,"div",18)(21,"h4",12)(22,"div",19);G(23,"mat-icon",20);F();Q(24);T(25,"async");F();P(26,dmb,2,1,"ng-container",1);T(27,"async");T(28,"async");F();P(29,emb,28,24,"div",21);T(30,"async");T(31,"async");P(32,fmb,1,1,"rollups-project",22);G(33,"b-issue-relations-table",23);T(34,"async");T(35,"async");T(36,"async");P(37,hmb,3,6,"ng-container",1);T(38,"async");P(39,kmb,4,5,"ng-container",1);T(40,"async");
F()()}if(a&2){a=b.ngIf;var d=N(15);b=M();var e,f;w(6);S(" Parents ",V(7,17,b.counts.countParentsDisplay$)," ");w(2);C("ngIf",V(9,19,b.parentsCount$));w(2);C("ngIf",V(11,21,b.parentsCount$))("ngIfElse",d);w(2);C("ngIf",V(13,23,b.issueFilters.value$));w(5);C("filters",V(18,25,b.issueFilters.value$));w(7);S(" Child issues ",V(25,27,b.counts.countChildrenDisplay$)," ");w(2);C("ngIf",V(27,29,b.unarchivedChildIssueCount$)||0<((null==(e=V(28,31,null==b.relationsTable?null:b.relationsTable.rows$))?null:e.length)||
0));w(3);C("ngIf",b.isTotalEstimatesEnabled&&V(30,33,b.unarchivedChildIssueCount$)&&V(31,35,b.totalDaysCount$));w(3);C("ngIf",b.isInternalSession&&b.enableRollupStatsUi);w(1);Xf("hidden",!(null==(f=V(34,37,null==b.relationsTable?null:b.relationsTable.rows$))?0:f.length)&&!V(35,39,null==b.relationsTable?null:b.relationsTable.hiddenRowCount$));gg("saveExpansionAtKey","project-expansion-",a,"");C("rootIssueId",a)("filters",V(36,41,b.issueFilters.value$));w(4);C("ngIf",V(38,43,b.issueFilters.value$));
w(2);C("ngIf",null!==V(40,45,b.unarchivedChildIssueCount$))}},mmb=function(a){if(a&1){var b=r();D(0,"p",27);Q(1);D(2,"button",42);L("click",function(){t(b);var c=M(2);return v(c.issueFilters.reset([]))});Q(3,"Show all");F()()}a&2&&(a=M().filteredCount,w(1),kg(" Filtering ",a," issue",1===a?"":"s",". "))},nmb=function(a,b){a&1&&P(0,mmb,4,2,"p",41);a&2&&C("ngIf",b.filteredCount)},pmb=function(a){if(a&1){var b=r();D(0,"b-button",43);L("onAction",function(){t(b);var c=M();return v(omb(c))});T(1,"async");
Q(2," Add parent ");F()}a&2&&(a=M(),C("disabled",!V(1,1,a.canEdit$)))},qmb=function(a){if(a&1){var b=r();D(0,"b-button",46);L("onAction",function(){t(b);var c=M(2);return v(c.createChild())});T(1,"async");Q(2," Create new child ");F()}a&2&&(a=M(2),C("disabled",!V(1,1,a.canEdit$)))},rmb=function(a){if(a&1){var b=r();P(0,qmb,3,3,"b-button",44);D(1,"b-button",45);L("onAction",function(){t(b);var c=M();return v(c.addChild())});T(2,"async");Q(3," Add existing child ");F()}a&2&&(a=M(),C("ngIf",a.isNonPublicSession),
w(1),C("disabled",!V(2,2,a.canEdit$)))},smb=function(a,b){return(0,B.combineLatest)([a,b]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return 0===d?0:Math.round(100*c/d*100)/100}))},tmb=function(a){return 1===a?a+" day":a+" days"},umb=function(a){a&1&&(D(0,"a",3),Q(1),F());a&2&&(a=M(),C("routerLink",a.searchPageUrl),w(1),S(" ",a.count," Issues "))},vmb=function(a,b){a&1&&G(0,"avatar-bunch",4);a&2&&C("emails",b.$implicit)},wmb=function(a){a&1&&(I(0),D(1,"div",2),Q(2),F(),K());if(a&
2){a=M();var b;w(1);Xf("muted",!a.isNumeric(a.countDisplay)||0==a.countDisplay);w(1);jg(null!==(b=a.countDisplay)&&void 0!==b?b:"\u00a0")}},xmb=function(a){var b;return(null!=(b=a.getIssueDigestsList())?b:[]).map(Rwa)},ymb=function(a){a&1&&(D(0,"div",3),G(1,"mat-icon",4),D(2,"span",5),Q(3),T(4,"async"),F()());if(a&2){a=M();var b;w(3);S("",null==(b=V(4,1,a.issues$))?null:b.length," parent issues")}},zmb=function(a){a&1&&(D(0,"div",3),G(1,"mat-icon",6),D(2,"span",5),Q(3),T(4,"async"),F()());if(a&2){a=
M();var b;w(3);S("Blocked by ",null==(b=V(4,1,a.issues$))?null:b.length," issues")}},Amb=function(a,b){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=b.$implicit,b=M(4),$f("chippy status-",a," margin-s-left"),w(1),S(" ",b.STATUS_JS_TERSE[a]," "))},Bmb=function(a){a&1&&(I(0),D(1,"a",8)(2,"div",9)(3,"div",10)(4,"div",11),Q(5),F(),D(6,"div",12),Q(7),F()(),D(8,"div",10)(9,"div",13),Q(10),F(),P(11,Amb,2,4,"span",14),F()()(),K());if(a&2){var b=M();a=b.$implicit;b=b.last;var c=M(2);w(1);gg("routerLink","/issues/",
a.issueId,"");w(1);Xf("border-bottom",!b);w(3);jg(a.issueId);w(2);jg(a.snapshot[0].title);w(2);C("ngClass",c.priorityClass(a.snapshot[0].priority));w(1);jg(a.snapshot[0].priority);w(1);C("ngIf",a.snapshot[0].status)}},Cmb=function(a,b){a&1&&(I(0),P(1,Bmb,12,8,"ng-container",2),K());a&2&&(a=b.index,w(1),C("ngIf",5>a))},Emb=function(a){if(a&1){var b=r();I(0);D(1,"div",15)(2,"button",16);L("click",function(){t(b);var c=M(2);return v(Dmb(c))});Q(3,"View all parent issues");F()();K()}},Fmb=function(a){if(a&
1){var b=r();I(0);D(1,"div",15)(2,"button",16);L("click",function(){t(b);var c=M(2),d;null==(d=c.hovercardInstance)||d.closeHovercard$.next();ws(c.router,"/issues/"+c.currentIssueId+"/dependencies");return v()});Q(3,"View all blockers");F()();K()}},Gmb=function(a,b){a&1&&(D(0,"div"),P(1,Cmb,2,1,"ng-container",7),P(2,Emb,4,0,"ng-container",2),P(3,Fmb,4,0,"ng-container",2),F());a&2&&(a=b.$implicit,b=M(),w(1),C("ngForOf",a),w(1),C("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),
w(1),C("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES))},Hmb=function(a){a&1&&G(0,"mat-icon",7)},Imb=function(a){a&1&&(I(0),G(1,"b-list-issues-card",8,9),K());if(a&2){var b=N(2);M();var c=N(5);a=M();w(1);C("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",a.multiParentIssueIds)("mode",a.ListIssuesHovercardMode.PARENT_ISSUES)}},Jmb=function(a){a&1&&(I(0),D(1,"a",3),Q(2),F(),P(3,Hmb,1,0,"mat-icon",4),D(4,"onedev-hovercard",null,5),
P(6,Imb,3,5,"ng-container",6),F(),K());if(a&2){var b=N(5);a=M();w(1);gg("title","",a.multiParentIssueIds.length," parents at this position");C("onedevHovercardTrigger",b);w(1);S("",a.multiParentIssueIds.length," Parents\u2026");w(1);C("ngIf",1<a.multiParentIssueIds.length)}},Kmb=function(a,b){a&1&&(I(0),D(1,"b-issue-reference-widget",10),Q(2),F(),G(3,"mat-icon",7),K());if(a&2){a=b.$implicit;b=b.last;var c=M();w(1);C("href",c.getIssueLink(a))("issueId",a);w(1);c.issueIdToTitle.has(a)?(a=c.issueIdToTitle.get(a),
a=xCa(a)):a=String(a);jg(a);w(1);Xf("last",b)}},Lmb=function(a){if(a&1){var b=r();D(0,"b-star-toggle",9);L("starClicked",function(){t(b);var c=M(2);return v(c.starClicked.emit())});T(1,"async");T(2,"async");F()}a&2&&(a=M(2),C("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("acceptInput",!V(1,4,vp(a.isSavingStar,a.hotlist.hotlistId)))("starred",V(2,6,vp(a.starredHotlists,a.hotlist.hotlistId))))},Mmb=function(a){a&1&&(D(0,"p",10),Q(1),F());a&2&&(a=M(2),w(1),S(" ",a.hotlist.description,
" "))},Nmb=function(a){a&1&&(D(0,"div",1)(1,"div",2)(2,"label",3),Q(3),F(),D(4,"span",4),P(5,Lmb,3,8,"b-star-toggle",5),D(6,"a",6),L("click",function(b){return b.stopPropagation()})("keydown.enter",function(b){return b.stopPropagation()}),G(7,"mat-icon",7),F()()(),P(8,Mmb,2,1,"p",8),F());a&2&&(a=M(),w(3),S(" ",a.hotlist.name," "),w(2),C("ngIf",a.shouldShowStar(a.hotlist)),w(1),C("routerLink",a.paths.viewHotlist(a.hotlist.hotlistId)),w(2),C("ngIf",!a.isCompact&&a.hotlist.description))},Omb=function(a){a&
1&&bg(0)},Pmb=function(a){a&1&&(I(0),P(1,Omb,1,0,"ng-container",6),K());if(a&2){M();var b=N(12);w(1);C("ngTemplateOutlet",b)}},Qmb=function(a){a&1&&bg(0)},Rmb=function(a){a&1&&(I(0),P(1,Qmb,1,0,"ng-container",6),K());if(a&2){M();var b=N(6);w(1);C("ngTemplateOutlet",b)}},Umb=function(a){if(a&1){var b=r();D(0,"button",7);L("click",function(){t(b);var c=M();return v(Smb(c))});Q(1," Create ");F()}a&2&&(a=M(),C("disabled",!(0<Tmb(a).length)))},Vmb=function(a){if(a&1){var b=r();D(0,"button",8);L("click",
function(){t(b);var c=M();return v(xs(c))});Q(1);F()}a&2&&(a=M(),C("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),Nf("aria-label",a.saveBtnTooltip),w(1),S(" ",a.saveBtnLabel," "))},Xmb=function(a){if(a&1){var b=r();D(0,"button",19);L("click",function(){t(b);var c=M(2),d=qi(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),xs(c)):Wmb(c,d);return v()});Q(1);T(2,"async");D(3,"span",20);Q(4,"(add hotlist by ID)");F()()}a&2&&(a=M(2),w(1),S(" ",V(2,1,a.query$),
" "))},Ymb=function(a){if(a&1){var b=r();D(0,"button",21);L("click",function(){t(b);M(2).showCreateNewPane=!0;return v()});Q(1);T(2,"async");D(3,"span",20);Q(4,"(create new)");F()()}a&2&&(a=M(2),w(1),S(" ",V(2,1,a.query$)," "))},Zmb=function(a,b){if(a&1){var c=r();I(0);D(1,"div",25,26);T(3,"async");D(4,"mat-list-option",27);L("focus",function(){t(c);var f=N(2);return v(f.show())})("blur",function(){t(c);var f=N(2);return v(f.hide())});T(5,"async");D(6,"hotlist-matlist-option",28);L("starClicked",
function(){var f=t(c).$implicit,h=M(3);return v(h.toggleStar(f.hotlistId))});F()()();K()}if(a&2){a=b.$implicit;b=M(3);var d,e;w(1);C("matTooltip",!1===(null==(d=V(3,10,a.permissions$))?null:d.appender)?b.NO_ACCESS_MESSAGE:"");w(3);Wf("height","auto");C("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(e=V(5,12,a.permissions$))?null:e.appender))("value",a.hotlistId);w(2);C("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",b.isSavingStar)}},$mb=
function(a){if(a&1){var b=r();I(0);D(1,"div",29)(2,"span",20);Q(3," The number of hotlists is too large to show at once. ");F();D(4,"button",30);L("click",function(){t(b);var c=M(3);return v(c.forceShowOverflow$.next(!0))});Q(5," Show all anyway ");F()();K()}},anb=function(a,b){if(a&1){var c=r();I(0);D(1,"mat-selection-list",22,23);L("selectionChange",function(d){t(c);var e=M(2);return v(e.onChangeMatList(d))});P(3,Zmb,7,14,"ng-container",24);F();P(4,$mb,6,0,"ng-container",18);T(5,"async");K()}a&
2&&(a=b.$implicit,b=M(2),w(3),C("ngForOf",a)("ngForTrackBy",b.trackByHotlistId),w(1),C("ngIf",V(5,3,b.isOverflowMode$)))},bnb=function(a){if(a&1){var b=r();D(0,"header",9)(1,"h2");Q(2,"Search for Hotlists");F();D(3,"div",10);G(4,"mat-icon",11);D(5,"input",12,13);L("input",function(){t(b);var c=N(6);M().query$.next(c.value);return v()});F()()();D(7,"section",14,15);P(9,Xmb,5,3,"button",16);T(10,"async");P(11,Ymb,5,3,"button",17);T(12,"async");P(13,anb,6,5,"ng-container",18);T(14,"async");F()}a&2&&
(a=M(),w(9),C("ngIf",V(10,3,a.showLoadById$)),w(2),C("ngIf",V(12,5,a.showCreateNew$)),w(2),C("ngIf",V(14,7,a.visibleHotlists$)))},cnb=function(a){a&1&&(D(0,"header",9)(1,"h2"),Q(2,"Create new hotlist"),F()(),D(3,"section",31)(4,"div",32)(5,"form",33)(6,"label",34),Q(7,"Name"),F(),G(8,"input",35),D(9,"label",36),Q(10,"Description"),F(),G(11,"textarea",37),D(12,"p",20),Q(13," Note: Access controls can be adjusted after the hotlist is created. "),F()()()());a&2&&(a=M(),w(5),C("formGroup",a.hotlistUnderEdit))},
dnb=function(a,b){return a.name.localeCompare(b.name)},enb=function(a,b){if(null==a||""===a.trim())return!1;b=b.map(function(c){var d;return null==(d=c.name)?void 0:d.toLowerCase()});a=a.toLowerCase();return!b.includes(a)},fnb=function(a){var b,c=null!=(b=null==a?void 0:a.added.length)?b:0,d;b=null!=(d=null==a?void 0:a.removed.length)?d:0;return a?0<c&&0===b?["Add ("+c+")","Add "+c+" hotlist(s)"]:0===c&&0<b?["Remove ("+b+")","Remove "+b+" hotlist(s)"]:["Save","Save all changes ("+c+" added, "+b+" removed)"]:
["Save","(No changes)"]},hnb=function(a,b){if(a&1){var c=r();D(0,"button",1);L("click",function(){t(c);var d=M();return v(gnb(d))});T(1,"async");Q(2);F()}a&2&&(a=b.ngIf,b=M(),C("disabled",b.disabled||b.fridge.isSaving(b.internalIssueId)||!1===V(1,3,b.canEdit$))("title",a.isDupe?b.TOOLTIP_UNMARK_DUPE:b.TOOLTIP_MARK_DUPE),w(2),S(" ",a.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},inb=function(a){a&1&&bg(0)},jnb=function(a){a&1&&(I(0),P(1,inb,1,0,"ng-container",5),K());a&2&&(a=M(),w(1),C("ngTemplateOutlet",
a.content))},knb=function(a,b){if(a&1){var c=r();D(0,"button",13);L("click",function(e){var f=t(c).$implicit;return v(f.action(e))});G(1,"mat-icon",14);Q(2);F()}if(a&2){a=b.$implicit;var d;C("disabled",a.disabled)("title",a.title);Nf("aria-label",a.title);w(1);C("svgIcon",null!==(d=a.icon)&&void 0!==d?d:"");w(1);S(" ",a.label," ")}},lnb=function(a){if(a&1){var b=r();I(0);D(1,"button",15);L("click",function(d){t(b);var e=M(2);d.stopPropagation();d.preventDefault();var f;null==(f=e.helpHover)||f.toggle();
return v()});G(2,"mat-icon",16);Q(3," Retention: ");G(4,"retention-text",17);Q(5," \u00a0 ");G(6,"help-hover",18);F();K()}if(a&2){a=M().ngIf;var c=N(14);w(4);C("retentionState",a.retentionState);w(2);C("content",c)}},mnb=function(a){a&1&&(I(0),G(1,"retention-help-text",19),K());a&2&&(a=M(2).ngIf,w(1),C("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},nnb=function(a){a&1&&P(0,mnb,2,2,"ng-container",0);a&2&&(a=M().ngIf,C("ngIf",a.retentionState&&a.modifiedTimeMilliseconds))},
onb=function(a,b){if(a&1){var c=r();I(0);G(1,"b-app-vote-button",1)(2,"hotlist-picker-btn",2);D(3,"smart-dupe-btn",3,4);L("onHotkey",function(){t(c);var e=N(4);return v(gnb(e))});F();D(5,"b-notification-menu",5);L("subscriptionChange",function(e){t(c);var f=M();return v(f.updateSubscription(e))})("showNotificationSettings",function(e){t(c);var f=M();return v(f.showNotificationSettings(e))});F();G(6,"insights-graph-menu-smart",6);D(7,"button",7);G(8,"mat-icon",8);F();D(9,"mat-menu",9,10);P(11,knb,
3,5,"button",11);P(12,lnb,7,2,"ng-container",0);F();P(13,nnb,1,1,"ng-template",null,12,Eg);K()}if(a&2){a=b.ngIf;var d=N(10);b=M();w(1);C("issueId",a.issueId)("voteCount",a.voteCount)("upvoted",a.voted);w(1);C("issueId",a.issueId);w(1);C("issueId",a.issueId)("hotkey",b.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);w(2);C("subscription",a.notificationSubscription)("issueId",a.issueId)("iconOnly",!0);w(1);C("iconOnly",!0);w(1);C("matMenuTriggerFor",d);w(4);C("ngForOf",a.menuItems);w(1);C("ngIf",b.retentionEnabled)}},
pnb=function(a){a&1&&(D(0,"h3",4,5),Q(2),F());a&2&&(a=M(),Nf("title",a.isLongTitle?a.titlePlain:""),w(2),S(" ",a.titleTruncated," "))},rnb=function(a){if(a&1){var b=r();D(0,"mat-form-field")(1,"input",6,7);L("keyup",function(c){t(b);var d=M();return v(qnb(d,c))})("blur",function(){t(b);var c=M();return v(c.bannedWordsChecker.showWarning()?"":qnb(c))});F()()}a&2&&(a=M(),Wf("width",a.editModeWidth,"px"),Xf("banned-words-warning",a.bannedWordsChecker.showWarning()),w(1),C("value",a.titlePlain))},tnb=
function(a){if(a&1){var b=r();D(0,"button",8);L("click",function(){t(b);var c=M();return v(c.isEditMode?qnb(c):snb(c))});G(1,"mat-icon",9);F()}a&2&&(a=M(),C("disabled",a.disabled))},unb=function(a){a&1&&(D(0,"p",10),Q(1),D(2,"a",11),Q(3," Learn more "),F()());a&2&&(a=M(),w(1),S(" ",Fp(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},vnb=function(){},wnb=function(a){a&1&&(D(0,"output"),Q(1),T(2,"async"),F());if(a&2){a=M().ngIf;var b=M();w(1);
kg(" ",a," of ",V(2,2,b.currentSearchResults.totalText$)," ")}},Anb=function(a,b){if(a&1){var c=r();I(0);P(1,wnb,3,4,"output",0);D(2,"span",1)(3,"button",2);L("onHotkey",function(){t(c);var d=M();return v(xnb(d.currentSearchResults))})("click",function(){t(c);var d=M();return v(xnb(d.currentSearchResults))});T(4,"async");G(5,"mat-icon",3);F();D(6,"button",4);L("onHotkey",function(){t(c);var d=M();return v(ynb(d.currentSearchResults))})("click",function(){t(c);var d=M();return v(ynb(d.currentSearchResults))});
T(7,"async");G(8,"mat-icon",5);F()();K()}a&2&&(a=b.ngIf,b=M(),w(1),C("ngIf",-1!==a),w(1),C("ngClass",og(10,znb,-1===a)),w(1),C("hotkey",b.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!V(4,6,b.currentSearchResults.hasPreviousIssue$)),w(3),C("hotkey",b.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!V(7,8,b.currentSearchResults.hasNextIssue$)))},Bnb=function(a){a&1&&G(0,"b-access-level-indicator",6);a&2&&(a=M(2).$implicit,C("accessLevel",a.accessLevel))},Cnb=function(a){a&1&&G(0,"b-access-limits-chip",7);a&2&&(a=
M(2).$implicit,C("issueId",a.issueId)("componentId",a.componentId)("accessLimitLevel",a.issueAccessLimitLevel))},Dnb=function(a){a&1&&G(0,"b-retention-chip",8);a&2&&(a=M(2).$implicit,C("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},Enb=function(a){a&1&&(D(0,"div",2),P(1,Bnb,1,1,"b-access-level-indicator",3),P(2,Cnb,1,3,"b-access-limits-chip",4),P(3,Dnb,1,3,"b-retention-chip",5),F());a&2&&(a=M().$implicit,w(1),C("ngIf",a.isShowingPublicPartner),w(1),C("ngIf",
a.isAccessLimited),w(1),C("ngIf",a.isShowingRetention))},Fnb=function(a,b){a&1&&(I(0),P(1,Enb,4,3,"div",1),K());a&2&&(a=b.$implicit,w(1),C("ngIf",a.isShowingPublicPartner||a.isShowingRetention||a.isAccessLimited))},Gnb=function(a){a&1&&(D(0,"div",4),G(1,"mat-icon",5),Q(2),T(3,"async"),F());if(a&2){a=M();var b=N(4);C("onedevHovercardTrigger",b);w(2);S("",V(3,2,a.teamName$)," ")}},Hnb=function(a){a&1&&bg(0)},Inb=function(a){a&1&&(I(0),P(1,Hnb,1,0,"ng-container",23),K());if(a&2){M();var b=N(12);w(1);
C("ngTemplateOutlet",b)}},Jnb=function(a,b){a&1&&G(0,"ancestors-breadcrumbs",30);a&2&&(a=b.ngIf,b=M(3),C("ancestors",a)("issueId",b.issueId))},Knb=function(a){a&1&&(I(0),G(1,"b-component-breadcrumb-chip",26),T(2,"async"),D(3,"div",27),P(4,Jnb,1,2,"ancestors-breadcrumbs",28),T(5,"async"),G(6,"b-issue-id-picker",29),T(7,"async"),T(8,"async"),T(9,"async"),F(),K());a&2&&(a=M(2),w(1),C("componentId",V(2,8,a.componentId$))("compactMode",!0)("issueId",a.issueId),w(3),C("ngIf",V(5,10,a.ancestors$)),w(2),
C("issueId",a.issueId)("componentId",V(7,12,a.componentId$))("issueTitle",V(8,14,a.issueTitle$))("isExternalIssue",!!V(9,16,a.isWithinExternalComponent$)))},Lnb=function(a){if(a&1){var b=r();D(0,"b-team-chip",24);L("onTeamLoaded",function(){t(b);var c=M();return v(c.isTeamLoaded=!0)});T(1,"async");T(2,"async");F();P(3,Knb,10,18,"ng-container",25)}a&2&&(a=M(),C("componentId",V(1,3,a.componentId$))("teamId",V(2,5,a.teamId$)),w(3),C("ngIf",a.isTeamLoaded))},Mnb=function(a){a&1&&(I(0),G(1,"b-component-breadcrumb-chip",
31),T(2,"async"),D(3,"div",32),G(4,"b-issue-id-picker",33),T(5,"async"),T(6,"async"),T(7,"async"),F(),K());a&2&&(a=M(2),w(1),C("componentId",V(2,6,a.componentId$))("issueId",a.issueId),w(3),C("issueId",a.issueId)("componentId",V(5,8,a.componentId$))("issueTitle",V(6,10,a.issueTitle$))("isExternalIssue",!!V(7,12,a.isWithinExternalComponent$)))},Nnb=function(a){if(a&1){var b=r();D(0,"b-team-chip",24);L("onTeamLoaded",function(){t(b);var c=M();return v(c.isTeamLoaded=!0)});T(1,"async");T(2,"async");
F();P(3,Mnb,8,14,"ng-container",25)}a&2&&(a=M(),C("componentId",V(1,3,a.componentId$))("teamId",V(2,5,a.teamId$)),w(3),C("ngIf",a.isTeamLoaded))},Onb=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M().$implicit,w(1),S(" ",a," "))},Pnb=function(a,b){a&1&&(D(0,"div",34),G(1,"mat-icon",35),P(2,Onb,2,1,"ng-container",25),F());if(a&2){a=b.$implicit;M();var c=N(37);C("onedevHovercardTrigger",c);w(2);C("ngIf",2<=a)}},Qnb=function(a){a&1&&(I(0),G(1,"b-list-issues-card",36,37),T(3,"async"),K());if(a&2){var b=N(2);
a=M();var c=N(37);w(1);C("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",V(3,5,a.blockedByids$))("mode",a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},Rnb=function(a){return 1===a?"Blocked":"Blocked by "+a+" issues"},Snb=function(a){if(0!==a.length)return 1===a.length?ys.ISSUE(a[0]):ys.ISSUE_LIST},Tnb=function(a,b){a&1&&(D(0,"div",1),G(1,"img",2),D(2,"h3"),Q(3),F(),D(4,"a",3),T(5,"async"),Q(6),F()());a&2&&(a=b.$implicit,b=M(),w(1),C("src",null==a.branding?
null:a.branding.logoUrl,re),w(2),S("This issue is a part of the ",a.name," tracker."),w(1),C("href",V(5,4,b.trackerRedirectUrl$),re),w(2),S(" View in ",a.name," Tracker "))},Unb=function(a){a&1&&(D(0,"div")(1,"ol")(2,"li")(3,"label"),Q(4,"Issue ID"),F(),D(5,"output"),Q(6),F()(),D(7,"li")(8,"label"),Q(9,"Type"),F(),D(10,"output"),Q(11),F()(),D(12,"li")(13,"label"),Q(14,"Status"),F(),D(15,"output"),Q(16),F()()()());a&2&&(a=M(2),w(6),jg(a.issueId),w(5),jg(a.issueType),w(5),jg(a.issueStatus))},Vnb=function(a){a&
1&&(D(0,"div",1)(1,"div",2),G(2,"img",3),T(3,"async"),G(4,"mat-icon",4)(5,"img",3),T(6,"async"),F(),D(7,"h3",5),Q(8),T(9,"async"),F(),P(10,Unb,17,3,"div",6),D(11,"div",7)(12,"a",8),T(13,"async"),Q(14,"Continue"),F()()());a&2&&(a=M(),w(2),C("src",V(3,5,a.currentTrackerLogo$),re),w(3),C("src",V(6,7,a.trackerLogo$),re),w(3),S(" Redirecting to ",V(9,9,a.trackerName$)," "),w(2),C("ngIf",null!=a.issue),w(2),C("href",V(13,11,a.trackerRedirectUrl$),re))},Wnb=function(a,b){if(a instanceof Element){var c=Xk(window.sessionStorage.getItem(b));
if(null!=c){a.scrollTo(0,c);var d=new ResizeObserver(function(){a.scrollTo(0,c);d.disconnect()});d.observe(a);setTimeout(function(){a.scrollTo(0,c);d.disconnect()},100)}}},Xnb=function(a,b){a&1&&(D(0,"h2",5),Q(1),F());a&2&&(a=b.ngIf,w(1),S("Issue ",a,""))},Ynb=function(a){a&1&&G(0,"div")},Znb=function(a){a&1&&(D(0,"a",19),Q(1,"Learn more"),F())},$nb=function(a){if(a&1){var b=r();D(0,"button",20);L("click",function(){var c=t(b).ngIf,d=M(5);return v(d.editIssueService.unarchive(c))});Q(1," Unarchive ");
F()}},aob=function(a){a&1&&(D(0,"b-callout",16)(1,"b-callout-body"),Q(2,"This issue has been archived. "),P(3,Znb,2,0,"a",17),F(),D(4,"b-callout-actions"),P(5,$nb,2,0,"button",18),T(6,"async"),F()());a&2&&(a=M(4),C("messageType","caution")("format","app")("iconOverride","archive_24px"),w(3),C("ngIf",a.activeSession.isInternalSession()),w(2),C("ngIf",V(6,5,a.id$)))},bob=function(a){a&1&&(D(0,"a",23),Q(1,"Learn more"),F())},cob=function(a){a&1&&(D(0,"b-callout",21)(1,"b-callout-body"),Q(2," This issue is in an archived component. "),
P(3,bob,2,0,"a",22),F()());a&2&&(a=M(4),C("format","app")("iconOverride","archive_24px"),w(3),C("ngIf",a.activeSession.isInternalSession()))},dob=function(a,b){a&1&&(I(0),Q(1," Reason: "),D(2,"code"),Q(3),F(),Q(4,". "),K());a&2&&(a=b.$implicit,w(3),jg(a))},eob=function(a){a&1&&(D(0,"a",27),Q(1,"Learn more"),F())},gob=function(a){if(a&1){var b=r();D(0,"button",28);L("click",function(){var d=t(b).ngIf,e=M(5);return v(fob(e.editIssueService,d))});T(1,"async");T(2,"async");Q(3," Undelete ");F()}if(a&
2){a=M(5);var c;C("matTooltip",null!==(c=V(1,2,a.undeleteButtonTooltip$))&&void 0!==c?c:"")("disabled",!V(2,4,a.permissions.canUndeleteIssue$))}},hob=function(a){a&1&&(D(0,"b-callout",24)(1,"b-callout-body"),Q(2," This issue has been deleted. "),P(3,dob,5,1,"ng-container",6),T(4,"async"),P(5,eob,2,0,"a",25),F(),D(6,"b-callout-actions"),P(7,gob,4,6,"button",26),T(8,"async"),F()());if(a&2){a=M(4);var b;w(3);C("ngIf",null==(b=V(4,3,a.snapshot$))?null:b.deletionReason);w(2);C("ngIf",a.activeSession.isInternalSession());
w(2);C("ngIf",V(8,5,a.id$))}},iob=function(a,b){a&1&&(D(0,"output",37),Q(1),F());a&2&&(a=b.$implicit,w(1),S(" ",a," "))},kob=function(a,b){a&1&&(D(0,"a",34,35),Q(2),P(3,iob,2,1,"output",36),T(4,"async"),F());if(a&2){a=b.$implicit;var c=N(1);C("routerLink",a.link)("active",c.isActive)("routerLinkActiveOptions",ng(7,job));w(2);S(" ",a.title," ");w(1);C("ngIf",V(4,5,a.count$))}},lob=function(a,b){a&1&&(D(0,"header",29),G(1,"b-tracker-banner",30),T(2,"async"),T(3,"async"),G(4,"issue-header",31),D(5,"nav",
32),P(6,kob,5,8,"a",33),F()());a&2&&(a=b.$implicit,b=M(4),w(1),C("issueId",V(2,4,b.id$))("trackerId",V(3,6,b.issueTrackerId$)),w(3),C("issueId",a),w(2),C("ngForOf",b.tabs))},mob=function(a,b){a&1&&G(0,"issue-metadata-sidebar",31);a&2&&C("issueId",b.ngIf)},nob=function(a){a&1&&(D(0,"div",8),T(1,"async"),P(2,aob,7,7,"b-callout",9),T(3,"async"),P(4,cob,4,3,"b-callout",10),T(5,"async"),P(6,hob,9,7,"b-callout",11),T(7,"async"),P(8,lob,7,8,"header",12),T(9,"async"),D(10,"div",13)(11,"article",14),G(12,
"router-outlet"),F(),P(13,mob,1,1,"issue-metadata-sidebar",15),T(14,"async"),F()());a&2&&(a=M(3),Xf("issue-editor-false",!V(1,7,a.permissions.hasAclToEdit$)),w(2),C("ngIf",V(3,9,a.archived$)),w(2),C("ngIf",V(5,11,a.inArchivedComponent$)),w(2),C("ngIf",V(7,13,a.deleted$)),w(2),C("ngIf",V(9,15,a.id$)),w(5),C("ngIf",V(14,17,a.id$)))},oob=function(a){a&1&&(D(0,"div"),P(1,nob,15,19,"div",7),T(2,"async"),F());if(a&2){a=M(2);var b=N(7);w(1);C("ngIf",!V(2,2,a.showTrackerRedirect$))("ngIfElse",b)}},pob=function(a){a&
1&&(P(0,oob,3,4,"div",6),T(1,"async"));a&2&&(a=M(),C("ngIf",!V(1,1,a.issue404$)))},qob=function(a){a&1&&(D(0,"div",38),G(1,"b-tracker-redirect",39),T(2,"async"),F());a&2&&(a=M(),w(1),C("issue",V(2,1,a.issue$)))},rob=function(a){a&1&&(G(0,"b-access-denied-metadata",42),T(1,"async"));a&2&&(a=M(2),C("issueMetadata",V(1,1,a.issueMetadata$)))},sob=function(a){a&1&&G(0,"b-access-denied-metadata",43)},tob=function(a){a&1&&(D(0,"div",38),P(1,rob,2,3,"b-access-denied-metadata",40),P(2,sob,1,0,"ng-template",
null,41,Eg),F());if(a&2){var b=N(3);a=M();w(1);C("ngIf",a.activeSession.isInternalSession())("ngIfElse",b)}},uob=function(a,b){a&1&&(I(0),G(1,"b-issues-table",1),K());a&2&&(a=b.ngIf,b=M(),w(1),C("issueIds",a)("menuItemFactory",b.getMenuItems)("tableColumns",b.tableColumns)("initialSort",b.initialSort))},wob=function(a){if(a&1){var b=r();D(0,"div",5);G(1,"img",6);D(2,"p",7);Q(3," This issue has no duplicates ");F();D(4,"p",8);Q(5," A duplicate is an issue with similar content. ");F();D(6,"p",8);Q(7,
' Any issue added here will be closed as a duplicate of this one, making this the "canonical issue". ');D(8,"a",9);Q(9,"Learn more");F()();D(10,"button",10);L("click",function(){t(b);var c=M(2);return v(vob(c))});Q(11," Add ");F()()}a&2&&(a=M(2),w(1),C("src",a.ROBOT_SLEEPING,re))},xob=function(a,b){a&1&&G(0,"b-duplicates-table",15);a&2&&(a=b.$implicit,b=M(2).$implicit,C("issueId",a)("duplicateIds",b))},yob=function(a,b){a&1&&(I(0),D(1,"a",16),Q(2," View as search results "),F(),K());a&2&&(a=b.ngIf,
w(1),C("routerLink",a.path)("queryParams",a.params))},zob=function(a){if(a&1){var b=r();D(0,"h4",11);Q(1);T(2,"async");D(3,"button",12);L("click",function(){t(b);var c=M(2);return v(vob(c))});Q(4," Add ");F()();P(5,xob,1,2,"b-duplicates-table",13);T(6,"async");D(7,"aside",14);P(8,yob,3,2,"ng-container",1);T(9,"async");F()}a&2&&(a=M(2),w(1),S("Duplicates ",V(2,3,a.counts.countDuplicateDisplay$)," "),w(4),C("ngIf",V(6,5,a.id$)),w(3),C("ngIf",V(9,7,a.dupeUrl$)))},Aob=function(a){a&1&&(I(0),P(1,wob,12,
1,"div",3),T(2,"async"),P(3,zob,10,9,"ng-template",null,4,Eg),K());if(a&2){var b=N(4);a=M();w(1);C("ngIf",!V(2,2,a.showTable$))("ngIfElse",b)}},Bob=function(a){a&1&&(D(0,"aside",17),G(1,"b-spinner"),F())},Cob=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(),Xf("muted",a.isGreyedOut),w(1),S(" ",a.displayName,""))},Dob=function(a){if(a&1){var b=r();D(0,"a",2);L("click",function(c){t(b);var d=M();return v(d.handleClick(c))});Q(1);F()}a&2&&(a=M(),C("href",a.linkUrl,re)("rel",a.EXTERNAL_LINK_REL),w(1),
S(" ",a.displayName,""))},Eob=function(a){a&1&&G(0,"b-restricted-chip",10);a&2&&(a=M(),C("label",a.getRestrictedLabel())("retentionState",null==a.attachment?null:a.attachment.piiRetentionState)("contentType","attachment"))},Fob=function(a){a&1&&(D(0,"span",11),G(1,"b-actions-menu",12),F());a&2&&(a=M(),w(1),C("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},Job=function(a){if(a&1){var b=r();D(0,"span")(1,"b-conditional-link",13);L("customHandler",
function(){t(b);var c=M();c.isRestricted()?Gob(c,!1):c.domSafe.openInNewTab(Hob(c,!1));return v()});F()()}a&2&&(a=M(),$f("bv2-issue-attachment-link ",Iob(a),""),w(1),C("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",Hob(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},Kob=function(a){if(a&1){var b=r();D(0,"span")(1,"b-conditional-link",13);L("customHandler",function(){t(b);var c=M();c.isRestricted()?Gob(c,!0):c.domSafe.openInNewTab(Hob(c,!0));return v()});F()()}a&2&&(a=M(),$f("bv2-issue-attachment-link ",
Iob(a),""),w(1),C("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",Hob(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},Lob=function(a){a&1&&(D(0,"span",14)(1,"a",15),G(2,"mat-icon",16),F()());a&2&&(a=M(),w(1),C("href",a.documentationLinks.getRestrictedAccessHelpLink(),re)("disableRipple",!0),w(1),C("svgIcon","help-outline"))},Mob=function(a){a&1&&(D(0,"div",17),Q(1," You do not have access to this restricted attachment. "),D(2,"a",18),Q(3,"Learn more"),F()());a&2&&(a=M(),w(2),
C("href",a.documentationLinks.getRestrictedAccessHelpLink(),re))},Oob=function(a){if(a&1){var b=r();D(0,"button",20,21);L("click",function(){t(b);var c=M(2);return v(Nob(c))});Q(2," Edit ");F()}},Pob=function(a,b){a&1&&(I(0),Q(1," on behalf of "),G(2,"b-user-display-name",22),K());a&2&&(a=b.ngIf,w(2),C("email",a)("showEmail",!1))},Qob=function(a){a&1&&(I(0),P(1,Pob,3,2,"ng-container",12),T(2,"async"),K());a&2&&(a=M(2),w(1),C("ngIf",V(2,1,a.onBehalfOfEmail$)))},Rob=function(a,b){if(a&1){var c=r();
D(0,"a",23);L("click",function(d){var e=t(c).$implicit;M(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return v()});Q(1);F()}a&2&&(a=b.$implicit,b=M().$implicit,M(),C("routerLinkObj",fua(a,{comment:1})),Nf("aria-label","Comment number"+b.commentNumber),w(1),S(" #",b.commentNumber,""))},Tob=function(a){a&1&&(I(0),D(1,"span",24),Q(2," \u2022 Edited"),F(),K());if(a&2){a=M().$implicit;var b=M();w(1);C("matTooltip",Sob(b,a))}},Uob=function(a){a&1&&(I(0),D(1,"p",25),Q(2," Description has been deleted. "),
F(),K())},Vob=function(a){if(a&1){var b=r();D(0,"b-restricted-comment-placeholder",28);L("onConfirm",function(){t(b);var c=M().ngIf,d=M(3).$implicit,e=M();return v(e.loadRestrictedComment(c,d))});T(1,"async");F()}a&2&&(a=M(5),C("disabled",!V(1,1,a.mayReadPii$)))},Wob=function(a){a&1&&(I(0),P(1,Vob,2,3,"b-restricted-comment-placeholder",27),T(2,"async"),K());a&2&&(a=M(4),w(1),C("ngIf",V(2,1,a.shouldShowRestrictedPlaceholder$)))},Xob=function(a){a&1&&(I(0),P(1,Wob,3,3,"ng-container",12),T(2,"async"),
K());a&2&&(a=M(3),w(1),C("ngIf",V(2,1,a.id$)))},Yob=function(a,b){a&1&&(G(0,"b-note-container",31),T(1,"async"));if(a&2){a=b.$implicit;b=M().ngIf;var c=M(4);C("issueId",b)("issueAccessLevel",V(1,4,c.accessLevel$))("note",a)("formattingMode",c.formattingMode)}},Zob=function(a){a&1&&(I(0),P(1,Yob,2,6,"b-note-container",30),T(2,"async"),K());if(a&2){a=M(3).$implicit;var b=M();w(1);C("ngIf",""!==a.unlinkifiedComment&&V(2,1,b.firstNote$))}},$ob=function(a){a&1&&(I(0),Q(1," Add one."),K())},apb=function(a){a&
1&&(D(0,"p",32),Q(1," No description yet."),P(2,$ob,2,0,"ng-container",12),F());a&2&&(a=M(4),w(2),C("ngIf",a.canEditComment()))},bpb=function(a){a&1&&(P(0,Zob,3,3,"ng-container",12),T(1,"async"),P(2,apb,3,1,"p",29));if(a&2){a=M(2).$implicit;var b=M();C("ngIf",V(1,2,b.id$));w(2);C("ngIf",""===a.unlinkifiedComment)}},cpb=function(a){a&1&&(P(0,Xob,3,3,"ng-container",17),T(1,"async"),P(2,bpb,3,4,"ng-template",null,26,Eg));if(a&2){var b=N(3);a=M(2);C("ngIf",V(1,2,a.isRedacted$))("ngIfElse",b)}},dpb=function(a,
b){a&1&&(I(0),G(1,"b-attachment-viewer",36),K());if(a&2){a=b.ngIf;b=M().$implicit;var c=M(3);w(1);C("issueId",a)("attachment",b)("attachmentUploader",c.getUserEmailIfAvailable())}},epb=function(a,b){a&1&&(D(0,"div",35),P(1,dpb,2,3,"ng-container",12),T(2,"async"),F());a&2&&(a=b.$implicit,b=M(3),gg("id","attachment",a.attachmentId,""),w(1),C("ngIf",V(2,2,b.id$)))},fpb=function(a){a&1&&(D(0,"div",33),P(1,epb,3,4,"div",34),F());a&2&&(a=M().$implicit,w(1),C("ngForOf",a.attachments))},hpb=function(a,b){a&
1&&(D(0,"div",2),G(1,"mat-icon",3),D(2,"div",4)(3,"div",5)(4,"div",6)(5,"h4",7),Q(6,"Description"),F(),P(7,Oob,3,0,"button",8),G(8,"b-user-display",9),D(9,"onedev-hovercard",null,10),G(11,"b-issue-person-card",11),F(),Q(12," created issue "),P(13,Qob,3,3,"ng-container",12),T(14,"async"),P(15,Rob,2,3,"a",13),T(16,"async"),P(17,Tob,3,1,"ng-container",12),T(18,"async"),F(),D(19,"div"),G(20,"b-formatted-date-time",14)(21,"b-actions-menu",15,16),T(23,"async"),F()(),P(24,Uob,3,0,"ng-container",17),T(25,
"async"),P(26,cpb,4,4,"ng-template",null,18,Eg),P(28,fpb,2,1,"div",19),F()());if(a&2){a=b.$implicit;var c=N(10),d=N(27);b=M();var e;w(7);C("ngIf",b.canEditComment());w(1);C("onedevHovercardTrigger",c)("model",a.userPerformingActionUser);w(3);C("email",b.getUserEmailIfAvailable());w(2);C("ngIf",V(14,13,b.isAuthorNotReporter$));w(2);C("ngIf",a.commentNumber&&V(16,15,b.id$));w(2);C("ngIf",V(18,17,b.isShowCommentHistoryActionInMenu$));w(3);C("timestamp",a.modifiedDate);w(1);C("buttonLabel","Description actions")("menuItems",
null!==(e=V(23,19,b.commentActionMenuItems$))&&void 0!==e?e:ng(23,gpb));w(3);C("ngIf",V(25,21,b.isDeleted$))("ngIfElse",d);w(4);C("ngIf",null==a?null:null==a.attachments?null:a.attachments.length)}},ipb=function(a){a&1&&G(0,"b-spinner")},jpb=function(a){return(null==a?void 0:a.emailAddress)||(null==a?void 0:a.obfuscatedEmailAddress)||""},kpb=function(a){a&1&&G(0,"mat-icon",3)},lpb=function(a){a&1&&G(0,"b-spinner")},mpb=function(a,b){a&1&&(D(0,"span",11),Q(1," of "),D(2,"a",12),Q(3),F()());if(a&2){a=
b.$implicit;M(2);var c=N(12);w(2);gg("routerLink","/issues/",a,"");C("onedevHovercardTrigger",c);w(1);S(" ",a," ")}},npb=function(a,b){a&1&&(D(0,"div")(1,"div",9),T(2,"async"),Q(3),F(),P(4,mpb,4,3,"span",10),T(5,"async"),F());a&2&&(a=b.$implicit,b=M(),w(1),$f("chippy ",V(2,6,b.statusCssClass$),""),C("title",b.STATUS_JS_FULL_TEXT[a]),w(2),S(" ",b.STATUS_JS_TERSE[a]," "),w(1),C("ngIf",V(5,8,b.canonicalId$)))},opb=function(a,b){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=b.$implicit,b=M(),$f("b-chip squared issue-type-",
a,""),w(1),S(" ",b.ISSUE_TYPE_JS_TEXT[a]," "))},qpb=function(a,b){if(a&1){var c=r();D(0,"b-hotlist-chip-smart",17);L("removeHotlist",function(){var d=t(c).$implicit,e=M(2);return v(ppb(e,d))});F()}a&2&&C("id",b.$implicit)},spb=function(a,b){if(a&1){var c=r();D(0,"div",13)(1,"button",14);L("onHotkey",function(){t(c);var d=M();return v(rpb(d))})("click",function(){t(c);var d=M();return v(rpb(d))});G(2,"mat-icon",15);Q(3);T(4,"async");F();P(5,qpb,1,1,"b-hotlist-chip-smart",16);F()}a&2&&(a=b.$implicit,
b=M(),w(1),C("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER),w(2),S(" ",V(4,3,b.textOfHotlistBtn$)," "),w(2),C("ngForOf",a))},tpb=function(a){a&1&&(D(0,"div",18),G(1,"smart-full-history-btn"),F())},upb=function(a){a&1&&(G(0,"b-issue-card",19,20),T(2,"async"));if(a&2){var b=N(1);a=M();C("onedevIsHovercardReady",b.init)("issueId",V(2,2,a.canonicalId$))}},vpb=function(a){return null==a?void 0:a.snapshot[0].hotlistId},wpb=function(a,b){a&1&&(D(0,"mat-option",9)(1,"div",10),Q(2),F(),D(3,"div",11),Q(4),F()());
a&2&&(a=b.$implicit,C("value",a),w(2),jg(a.name),w(2),jg(a.description))},xpb=function(a){if(a&1){var b=r();D(0,"mat-form-field",6)(1,"mat-select",7);L("valueChange",function(c){t(b);var d=M();return v(d.selectedFilter=c)})("selectionChange",function(c){t(b);var d=M();c=c.value;d.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(Af(d.destroyed$)).subscribe();d.analytics.trackEvent(xp.EDIT_ISSUE,"click",c.commentFilterType);return v()});D(2,"mat-select-trigger");
Q(3);F();P(4,wpb,5,3,"mat-option",8);F()()}a&2&&(a=M(),w(1),C("value",a.selectedFilter),w(2),jg(null==a.selectedFilter?null:a.selectedFilter.displayName),w(1),C("ngForOf",a.filters))},ypb=function(a){a&1&&(I(0),G(1,"mat-icon",12),D(2,"span"),Q(3,"Oldest first"),F(),K())},zpb=function(a){a&1&&(I(0),G(1,"mat-icon",13),D(2,"span"),Q(3,"Newest first"),F(),K())},Dpb=function(a){switch(a){case "FULL_HISTORY":return Apb;case "ALL_COMMENTS":return zs;case "HUMAN_ONLY":return Bpb;case "TEAM_AND_ASSIGNEE":return Cpb;
default:return zs}},Epb=function(a){a&1&&(I(0),Q(1,", "),G(2,"br"),K())},Fpb=function(a){a&1&&(I(0),Q(1," reacted"),K())},Gpb=function(a,b){a&1&&(I(0),D(1,"div"),Q(2),P(3,Epb,3,0,"ng-container",3),P(4,Fpb,2,0,"ng-container",3),T(5,"async"),F(),K());if(a&2){a=b.$implicit;b=b.last;var c=M();w(2);S(" ",a,"");w(1);C("ngIf",!b);w(1);C("ngIf",!V(5,3,c.isOverflowReactionCount$)&&b)}},Hpb=function(a){if(a&1){var b=r();D(0,"span");Q(1," and ");D(2,"button",4);L("click",function(){t(b);var c=M();if(c.commentNumber&&
c.issueId){var d,e,f=null!=(e=null==(d=Gk(c.reactionState$))?void 0:d.type)?e:"REACTION_TYPE_UNSPECIFIED";c.matDialogService.open(As,{width:"560px",data:{commentNumber:c.commentNumber,issueId:c.issueId,reactionType:f}})}return v()});Q(3);T(4,"async");F();Q(5," reacted ");F()}a&2&&(a=M(),w(3),S(" ",V(4,1,a.overflowReactionCount$)," more "))},Ipb=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M(2),w(1),S(" by ",vi(a.event.lastCommentEditorUser),""))},Jpb=function(a){a&1&&(I(0)(1),Q(2,"Message last modified"),
K(),P(3,Ipb,2,1,"ng-container",0),I(4),Q(5," on "),G(6,"b-formatted-date-time",1),K()());a&2&&(a=M(),w(3),C("ngIf",0===a.event.version&&!!a.event.lastCommentEditorUser),w(3),C("timestamp",a.event.commentLastModifiedAtDate))},Kpb=function(a){a&1&&G(0,"b-user-email",5);a&2&&(a=M().$implicit,C("email",a.text)("withProfile",!0))},Lpb=function(a){a&1&&(D(0,"b-issue-reference-widget",6),I(1),Q(2),K(),F());if(a&2){a=M().$implicit;var b=M();C("href",Qk(a.text))("issueId",b.getIssueId(a));w(2);jg(a.text)}},
Mpb=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M().$implicit,w(1),jg(a.text))},Npb=function(a,b){a&1&&(I(0)(1,1),P(2,Kpb,1,2,"b-user-email",2),P(3,Lpb,3,3,"b-issue-reference-widget",3),P(4,Mpb,2,1,"ng-container",4),K()());a&2&&(a=b.$implicit,w(1),C("ngSwitch",a.tag),w(1),C("ngSwitchCase","user"),w(1),C("ngSwitchCase","bug"))},Opb=function(a){a&1&&(I(0),G(1,"b-component-card",3,4),K());if(a&2){var b=N(2);a=M();w(1);C("onedevIsHovercardReady",b.init)("componentId",a.id)}},Ppb=function(a){a&1&&(D(0,"span"),
Q(1),F());if(a&2){a=M(5);var b;w(1);jg(null!==(b=a.effortSpecName)&&void 0!==b?b:"Estimated Effort")}},Qpb=function(a){a&1&&(D(0,"label"),P(1,Ppb,2,1,"span",11),Q(2,":\u200b "),F());if(a&2){a=M(4);var b=N(5);w(1);C("ngIf",a.effortEnabled)("ngIfElse",b)}},Rpb=function(a){a&1&&(D(0,"label"),Q(1),F());a&2&&(a=M(3).$implicit,w(1),S("",a.displayName,":\u200b"))},Spb=function(a){a&1&&(D(0,"span"),G(1,"b-user-display-name",14),F());a&2&&(a=M().$implicit,w(1),C("email",a)("showEmail",!0))},Tpb=function(a){a&
1&&(I(0),G(1,"plain-component-path",15),K());a&2&&(a=M(4).$implicit,w(1),C("id",a.oldValue))},Upb=function(a){a&1&&G(0,"b-formatted-date-time",17);if(a&2){a=M(2).$implicit;var b=M(4);C("timestamp",1E3*b.asNumber(a))}},Vpb=function(a){a&1&&(D(0,"span"),Q(1,"[Issue creation date]"),F())},Wpb=function(a){a&1&&(D(0,"span"),P(1,Upb,1,1,"b-formatted-date-time",16),P(2,Vpb,2,0,"span",5),F());a&2&&(a=M().$implicit,w(1),C("ngIf","<none>"!==a),w(1),C("ngIf","<none>"===a))},Xpb=function(a){a&1&&G(0,"b-formatted-date-time",
17);if(a&2){a=M(2).$implicit;var b=M(4);C("timestamp",1E3*b.asNumber(a))}},Ypb=function(a){a&1&&(D(0,"span"),Q(1,"[Unset]"),F())},Zpb=function(a){a&1&&(D(0,"span"),P(1,Xpb,1,1,"b-formatted-date-time",16),P(2,Ypb,2,0,"span",5),F());a&2&&(a=M().$implicit,w(1),C("ngIf","<none>"!==a),w(1),C("ngIf","<none>"===a))},$pb=function(a){a&1&&(I(0),D(1,"span"),Q(2),F(),K());if(a&2){a=M().$implicit;var b=M(4);w(2);jg(b.getAccessLimitLevel(a))}},aqb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,
w(1),jg(a))},bqb=function(a){a&1&&(I(0),P(1,Spb,2,2,"span",5),P(2,Tpb,2,1,"ng-container",5),P(3,Wpb,3,2,"span",5),P(4,Zpb,3,2,"span",5),P(5,$pb,3,1,"ng-container",5),P(6,aqb,2,1,"span",5),Q(7," \u00a0 "),G(8,"span",13),Q(9," \u00a0 "),K());a&2&&(a=M(3).$implicit,w(1),C("ngIf",a.isUser),w(1),C("ngIf","component"===a.name),w(1),C("ngIf","sloStartTime"==a.name),w(1),C("ngIf","sloEndTime"==a.name),w(1),C("ngIf","access_limit"===a.name),w(1),C("ngIf",!a.isUser&&"component"!==a.name&&"sloStartTime"!==a.name&&
"sloEndTime"!==a.name&&"access_limit"!==a.name))},cqb=function(a){a&1&&G(0,"b-user-display-name",14);a&2&&(a=M().$implicit,C("email",a)("showEmail",!0))},dqb=function(a){a&1&&(D(0,"span"),G(1,"plain-component-path",15),F());a&2&&(a=M(4).$implicit,w(1),C("id",a.newValue))},eqb=function(a){a&1&&G(0,"b-formatted-date-time",17);if(a&2){a=M(2).$implicit;var b=M(4);C("timestamp",1E3*b.asNumber(a))}},fqb=function(a){a&1&&(D(0,"span"),Q(1,"[Issue creation date]"),F())},gqb=function(a){a&1&&(D(0,"span"),P(1,
eqb,1,1,"b-formatted-date-time",16),P(2,fqb,2,0,"span",5),F());a&2&&(a=M().$implicit,w(1),C("ngIf","<none>"!==a),w(1),C("ngIf","<none>"===a))},hqb=function(a){a&1&&G(0,"b-formatted-date-time",17);if(a&2){a=M(2).$implicit;var b=M(4);C("timestamp",1E3*b.asNumber(a))}},iqb=function(a){a&1&&(D(0,"span"),Q(1,"[Unset]"),F())},jqb=function(a){a&1&&(D(0,"span"),P(1,hqb,1,1,"b-formatted-date-time",16),P(2,iqb,2,0,"span",5),F());a&2&&(a=M().$implicit,w(1),C("ngIf","<none>"!==a),w(1),C("ngIf","<none>"===a))},
kqb=function(a){a&1&&(I(0),D(1,"span"),Q(2),F(),K());if(a&2){a=M().$implicit;var b=M(4);w(2);jg(b.getAccessLimitLevel(a))}},mqb=function(a){a&1&&(D(0,"span",20),Q(1),F());if(a&2){a=M().$implicit;var b=M(3).$implicit;C("ngClass",og(2,lqb,b.oldValue&&"title"==b.name));w(1);jg(a)}},nqb=function(a){a&1&&(I(0),P(1,cqb,1,2,"b-user-display-name",18),P(2,dqb,2,1,"span",5),P(3,gqb,3,2,"span",5),P(4,jqb,3,2,"span",5),P(5,kqb,3,1,"ng-container",5),P(6,mqb,2,4,"span",19),K());a&2&&(a=M(3).$implicit,w(1),C("ngIf",
a.isUser),w(1),C("ngIf","component"===a.name),w(1),C("ngIf","sloStartTime"===a.name),w(1),C("ngIf","sloEndTime"===a.name),w(1),C("ngIf","access_limit"===a.name),w(1),C("ngIf",!a.isUser&&"component"!=a.name&&"sloStartTime"!=a.name&&"sloEndTime"!=a.name&&"access_limit"!=a.name))},oqb=function(a){a&1&&(D(0,"div",10),P(1,Qpb,3,2,"label",11),P(2,Rpb,2,1,"ng-template",null,12,Eg),P(4,bqb,10,6,"ng-container",5),P(5,nqb,7,6,"ng-container",5),F());if(a&2){var b=N(3);a=M(2).$implicit;w(1);C("ngIf","effort"===
a.name)("ngIfElse",b);w(3);C("ngIf",a.oldValue);w(1);C("ngIf",a.newValue)}},pqb=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},qqb=function(a,b){a&1&&(D(0,"span"),G(1,"b-user-display-name",14),P(2,pqb,2,0,"span",5),F());a&2&&(a=b.$implicit,b=b.last,w(1),C("email",a)("showEmail",!0),w(1),C("ngIf",!b))},rqb=function(a){a&1&&(D(0,"span"),P(1,qqb,3,3,"span",21),F());a&2&&(a=M(4).$implicit,w(1),C("ngForOf",a.added))},sqb=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},tqb=function(a,b){a&1&&(D(0,"span")(1,
"span"),Q(2),F(),P(3,sqb,2,0,"span",5),F());a&2&&(a=b.$implicit,b=b.last,w(2),jg(a),w(1),C("ngIf",!b))},uqb=function(a){a&1&&(D(0,"span"),P(1,tqb,4,2,"span",21),F());a&2&&(a=M(4).$implicit,w(1),C("ngForOf",a.added))},vqb=function(a){a&1&&(D(0,"div")(1,"label"),Q(2),F(),P(3,rqb,2,1,"span",5),P(4,uqb,2,1,"span",5),F());a&2&&(a=M(3).$implicit,w(2),S("+",a.displayName,":\u200b"),w(1),C("ngIf",a.isUser),w(1),C("ngIf",!a.isUser))},wqb=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},xqb=function(a,b){a&1&&
(D(0,"span"),G(1,"b-user-display-name",14),P(2,wqb,2,0,"span",5),F());a&2&&(a=b.$implicit,b=b.last,w(1),C("email",a)("showEmail",!0),w(1),C("ngIf",!b))},yqb=function(a){a&1&&(D(0,"span"),P(1,xqb,3,3,"span",21),F());a&2&&(a=M(4).$implicit,w(1),C("ngForOf",a.removed))},zqb=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},Aqb=function(a,b){a&1&&(D(0,"span")(1,"span"),Q(2),F(),P(3,zqb,2,0,"span",5),F());a&2&&(a=b.$implicit,b=b.last,w(2),jg(a),w(1),C("ngIf",!b))},Bqb=function(a){a&1&&(D(0,"span"),P(1,Aqb,
4,2,"span",21),F());a&2&&(a=M(4).$implicit,w(1),C("ngForOf",a.removed))},Cqb=function(a){a&1&&(D(0,"div")(1,"label"),Q(2),F(),P(3,yqb,2,1,"span",5),P(4,Bqb,2,1,"span",5),F());a&2&&(a=M(3).$implicit,w(2),S("-",a.displayName,":\u200b"),w(1),C("ngIf",a.isUser),w(1),C("ngIf",!a.isUser))},Dqb=function(a){a&1&&(D(0,"div",10),P(1,vqb,5,3,"div",5),P(2,Cqb,5,3,"div",5),F());if(a&2){a=M(2).$implicit;var b=M();w(1);C("ngIf",a.added&&a.added.length&&b.isStringArray(a.added));w(1);C("ngIf",a.removed&&a.removed.length&&
b.isStringArray(a.removed))}},Eqb=function(a){a&1&&bg(0)},Gqb=function(a,b){a&1&&(D(0,"span"),P(1,Eqb,1,0,"ng-container",22),F());if(a&2){a=b.$implicit;b=b.last;var c=M(4).$implicit;M();var d=N(3);w(1);C("ngTemplateOutlet",d)("ngTemplateOutletContext",qg(Fqb,c,a,b))}},Hqb=function(a){a&1&&(D(0,"div")(1,"label"),Q(2),F(),P(3,Gqb,2,6,"span",21),F());a&2&&(a=M(3).$implicit,w(2),S("+",a.displayName,":\u200b"),w(1),C("ngForOf",a.added))},Iqb=function(a){a&1&&bg(0)},Jqb=function(a,b){a&1&&(D(0,"span"),
P(1,Iqb,1,0,"ng-container",22),F());if(a&2){a=b.$implicit;b=b.last;var c=M(4).$implicit;M();var d=N(3);w(1);C("ngTemplateOutlet",d)("ngTemplateOutletContext",qg(Fqb,c,a,b))}},Kqb=function(a){a&1&&(D(0,"div")(1,"label"),Q(2),F(),P(3,Jqb,2,6,"span",21),F());a&2&&(a=M(3).$implicit,w(2),S("-",a.displayName,":\u200b"),w(1),C("ngForOf",a.removed))},Lqb=function(a){a&1&&(D(0,"div",10),P(1,Hqb,4,2,"div",5),P(2,Kqb,4,2,"div",5),F());if(a&2){a=M(2).$implicit;var b=M();w(1);C("ngIf",a.added&&a.added.length&&
b.isLinkedItemArray(a.added));w(1);C("ngIf",a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed))}},Mqb=function(a){a&1&&G(0,"b-formatted-date-time",17);a&2&&(a=M().$implicit,C("timestamp",a))},Nqb=function(a){a&1&&(D(0,"span"),Q(1," - "),F())},Oqb=function(a,b){a&1&&(D(0,"span"),G(1,"b-formatted-date-time",17),P(2,Nqb,2,0,"span",5),F());a&2&&(a=b.$implicit,b=b.last,w(1),C("timestamp",a),w(1),C("ngIf",!b))},Pqb=function(a){a&1&&(D(0,"span"),P(1,Oqb,3,2,"span",21),F());a&2&&(a=M(4).$implicit,
w(1),C("ngForOf",a.oldValue.split(", ")))},Qqb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,w(1),jg(a))},Tqb=function(a){a&1&&(I(0),P(1,Mqb,1,1,"b-formatted-date-time",16),P(2,Pqb,2,1,"span",5),P(3,Qqb,2,1,"span",5),Q(4," \u00a0 "),G(5,"span",13),Q(6," \u00a0 "),K());if(a&2){a=M(3).$implicit;var b=M();w(1);C("ngIf",Rqb(b,a,"oldValue"));w(1);C("ngIf",Sqb(b,a,"oldValue"));w(1);C("ngIf",!Rqb(b,a,"oldValue")&&!Sqb(b,a,"oldValue"))}},Uqb=function(a){a&1&&G(0,"b-formatted-date-time",17);
a&2&&(a=M().$implicit,C("timestamp",a))},Vqb=function(a){a&1&&(D(0,"span"),Q(1," - "),F())},Wqb=function(a,b){a&1&&(D(0,"span"),G(1,"b-formatted-date-time",17),P(2,Vqb,2,0,"span",5),F());a&2&&(a=b.$implicit,b=b.last,w(1),C("timestamp",a),w(1),C("ngIf",!b))},Xqb=function(a){a&1&&(D(0,"span"),P(1,Wqb,3,2,"span",21),F());a&2&&(a=M(4).$implicit,w(1),C("ngForOf",a.newValue.split(", ")))},Yqb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,w(1),jg(a))},Zqb=function(a){a&1&&(I(0),P(1,Uqb,1,
1,"b-formatted-date-time",16),P(2,Xqb,2,1,"span",5),P(3,Yqb,2,1,"span",5),K());if(a&2){a=M(3).$implicit;var b=M();w(1);C("ngIf",Rqb(b,a,"newValue"));w(1);C("ngIf",Sqb(b,a,"newValue"));w(1);C("ngIf",!Rqb(b,a,"newValue")&&!Sqb(b,a,"newValue"))}},$qb=function(a){a&1&&(D(0,"div",10)(1,"label"),Q(2),F(),P(3,Tqb,7,3,"ng-container",5),P(4,Zqb,4,3,"ng-container",5),F());if(a&2){a=M(2).$implicit;var b=M();w(1);Nf("title",b.customFieldName(a));w(1);S("",b.customFieldName(a),":\u200b");w(1);C("ngIf",a.oldValue);
w(1);C("ngIf",a.newValue)}},arb=function(a){a&1&&(D(0,"span",26),Q(1,"Updated"),F())},brb=function(a){a&1&&(D(0,"span"),Q(1,"Deleted"),F())},crb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M().$implicit,w(1),S("Edited (unknown status '",a.status,"')"))},drb=function(a,b){a&1&&(I(0)(1,7),P(2,arb,2,0,"span",23),P(3,brb,2,0,"span",24),P(4,crb,2,1,"span",25),K()());a&2&&(a=b.$implicit,w(1),C("ngSwitch",a.status),w(1),C("ngSwitchCase","ACTIVE"),w(1),C("ngSwitchCase","DELETED"))},erb=function(a){a&
1&&(D(0,"div",10)(1,"label"),Q(2),F(),P(3,drb,5,3,"ng-container",5),F());a&2&&(a=M(2).$implicit,w(2),S("",a.displayName,":\u200b"),w(1),C("ngIf",null==a.statusUpdateDiff?null:a.statusUpdateDiff.entityStatus))},frb=function(a){a&1&&(D(0,"div",10)(1,"label"),Q(2),F(),D(3,"pre",27),Q(4),T(5,"json"),F()());a&2&&(a=M(2).$implicit,w(2),S("",a.displayName,":\u200b"),w(2),jg(V(5,2,a)))},grb=function(a){a&1&&(I(0),G(1,"b-formatted-date-time",6),I(2,7),P(3,oqb,6,4,"div",8),P(4,Dqb,3,2,"div",8),P(5,Lqb,3,2,
"div",8),P(6,$qb,5,4,"div",8),P(7,erb,4,2,"div",8),P(8,frb,6,4,"div",9),K()());a&2&&(a=M().$implicit,w(1),C("timestamp",a.timestamp),w(1),C("ngSwitch",!0),w(1),C("ngSwitchCase","SINGLE_VALUE"===a.type),w(1),C("ngSwitchCase","COLLECTION"===a.type||"USER_COLLECTION"===a.type),w(1),C("ngSwitchCase","LINKED_COLLECTION"===a.type),w(1),C("ngSwitchCase","CUSTOM_FIELD"===a.type),w(1),C("ngSwitchCase","STATUS_UPDATE"===a.type))},hrb=function(a,b){a&1&&(D(0,"div",4),P(1,grb,9,7,"ng-container",5),F());a&2&&
(a=b.$implicit,b=M(),w(1),C("ngIf","sloStartTime"===(null==a?void 0:a.name)||"sloEndTime"===(null==a?void 0:a.name)?b.activeSession.isInternalSession():!0))},irb=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},jrb=function(a){a&1&&(D(0,"span")(1,"b-issue-reference-widget",29),Q(2),F(),P(3,irb,2,0,"span",5),F());if(a&2){a=M().$implicit;var b=M(),c=b.change;b=b.isLast;w(1);C("href",c.href)("issueId",a);w(1);jg(a);w(1);C("ngIf",!b)}},krb=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},lrb=function(a){a&
1&&(I(0),G(1,"hotlist-link",15),P(2,krb,2,0,"span",5),K());if(a&2){a=M(2).$implicit;var b=M().isLast;w(1);C("id",a);w(1);C("ngIf",!b)}},mrb=function(a){a&1&&(D(0,"span"),Q(1,", "),F())},nrb=function(a){a&1&&(D(0,"a",31),Q(1),F(),P(2,mrb,2,0,"span",5));if(a&2){a=M(2).$implicit;var b=M(),c=b.isLast;C("href",b.change.href,re);w(1);jg(a);w(1);C("ngIf",!c)}},orb=function(a){a&1&&(P(0,lrb,3,2,"ng-container",11),P(1,nrb,3,3,"ng-template",null,30,Eg));if(a&2){var b=N(2);a=M(2).diff;var c=M();C("ngIf",c.isHotlistDiff(a))("ngIfElse",
b)}},prb=function(a){a&1&&(I(0),P(1,jrb,4,4,"span",11),P(2,orb,3,2,"ng-template",null,28,Eg),K());if(a&2){var b=N(3);a=M().diff;var c=M();w(1);C("ngIf",c.isIssueDiff(a))("ngIfElse",b)}},qrb=function(a,b){a&1&&P(0,prb,4,2,"ng-container",5);a&2&&C("ngIf",b.change.value)},rrb=function(a){a&1&&(D(0,"span"),Q(1,"Estimated Effort (disabled)"),F())},srb=function(a,b){a&1&&(G(0,"b-user-membership-chip",29),T(1,"async"));if(a&2){a=b.ngIf;b=M(2);var c;C("user",b.event.userPerformingActionUser)("email",a)("teamId",
null!==(c=V(1,3,b.teamId$))&&void 0!==c?c:"")}},trb=function(a){a&1&&G(0,"b-user-display",30);a&2&&(a=M(2),C("model",a.event.userPerformingActionUser))},urb=function(a){a&1&&bg(0)},vrb=function(a){a&1&&(I(0),D(1,"span",31),P(2,urb,1,0,"ng-container",32),F(),D(3,"onedev-hovercard",null,33),G(5,"b-issue-person-card",34),F(),K());if(a&2){var b=N(4);M();var c=N(11);a=M();w(1);C("onedevHovercardTrigger",b);w(1);C("ngTemplateOutlet",c);w(3);C("email",a.getUserEmailIfAvailable())}},wrb=function(a){a&1&&
(D(0,"span",35),Q(1),F());a&2&&(a=M(2),w(1),S(" <",vi(a.event.userPerformingActionUser),"> "))},xrb=function(a){if(a&1){var b=r();D(0,"span")(1,"a",36);L("click",function(c){t(b);var d=M(2);return v(d.scrollCommentIntoView(c,d.event.commentNumber))});Q(2);F()()}a&2&&(a=M(2),w(1),C("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),Nf("aria-label","Comment number"+a.event.commentNumber),w(1),S(" #",a.event.commentNumber,""))},yrb=function(a){if(a&1){var b=r();D(0,"button",37);L("click",
function(){t(b);var c=M(2);return v(Bs(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});F()}},zrb=function(a){a&1&&G(0,"b-restricted-chip",38);if(a&2){a=M(2);var b,c;C("label",a.getRestrictedLabel())("retention",null!==(b=a.event.commentRetention)&&void 0!==b?b:void 0)("retentionState",null!==(c=a.event.commentRetentionState)&&void 0!==c?c:void 0)}},Brb=function(a){a&1&&(G(0,"b-actions-menu",39,40),T(2,"async"));if(a&2){a=M(2);var b;C("buttonLabel","Comment actions")("menuItems",
null!==(b=V(2,2,a.commentActionMenuItems$))&&void 0!==b?b:ng(4,Arb))}},Crb=function(a){a&1&&(D(0,"div",41),G(1,"b-tagged-text",42),F());a&2&&(a=M(2),w(1),C("texts",a.event.taggedSummary))},Drb=function(a){a&1&&(G(0,"b-issue-event-details",43),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){a=M().ngIf;var b=M(),c,d;C("diffs",null!==(c=V(1,4,b.preEventDiffs$))&&void 0!==c?c:ng(10,Arb))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=V(2,6,b.effortSpec$))?null:d.name)("effortEnabled",!!V(3,
8,b.isEffortEnabled$))}},Erb=function(a){a&1&&(D(0,"div",44),Q(1," Comment has been deleted. "),F())},Frb=function(a){if(a&1){var b=r();D(0,"b-restricted-comment-placeholder",45);L("onConfirm",function(){t(b);var c=M(2);return v(c.loadRestrictedComment())});T(1,"async");F()}a&2&&(a=M(2),C("disabled",!V(1,1,a.mayReadPii$)))},Grb=function(a){a&1&&G(0,"b-note-container",46);a&2&&(a=M(2),C("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",
a.formattingMode))},Hrb=function(a){if(a&1){var b=r();I(0);G(1,"b-summarized-note-container",46);D(2,"button",47);L("click",function(){t(b);var c=M(2);c.wasSummarized=!0;c.isSummarized=!c.isSummarized;return v()});G(3,"mat-icon",48);Q(4,"Expand details");F();K()}a&2&&(a=M(2),w(1),C("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",a.formattingMode))},Irb=function(a){if(a&1){var b=r();I(0);D(1,"button",47);L("click",function(){t(b);var c=
M(2);c.wasSummarized=!0;c.isSummarized=!c.isSummarized;return v()});G(2,"mat-icon",49);Q(3,"Collapse details");F();K()}},Jrb=function(a){a&1&&G(0,"b-formatted-date-time",50);a&2&&(a=M(2),C("timestamp",a.event.modifiedDate))},Krb=function(a){a&1&&G(0,"mat-icon",58)},Lrb=function(a){a&1&&G(0,"mat-icon",59)},Mrb=function(a,b){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=b.ngIf,w(1),jg(a))},Nrb=function(a){a&1&&G(0,"b-comment-reaction-responders-card",60);a&2&&(a=M(3),C("reactionState",null==a.event.commentReactions?
null:a.event.commentReactions.get(a.ReactionType.UPVOTE))("issueId",a.issueId)("commentNumber",a.event.commentNumber))},Srb=function(a){if(a&1){var b=r();D(0,"div",51)(1,"button",52,53);L("click",function(){t(b);var d=M(2);return v(Orb(d))});T(3,"async");T(4,"async");T(5,"async");P(6,Krb,1,0,"mat-icon",54);P(7,Lrb,1,0,"mat-icon",55);P(8,Mrb,2,1,"span",0);T(9,"async");F();D(10,"onedev-hovercard",null,56);P(12,Nrb,1,3,"b-comment-reaction-responders-card",57);T(13,"async");F()()}if(a&2){var c=N(11);
a=M(2);w(1);C("ariaLabel",Prb(a,a.ReactionType.UPVOTE))("ngClass",og(20,Qrb,V(3,10,a.noUpvoteReactions$)))("onedevHovercardTrigger",c)("onedevHovercardConfig",a.commentReactionsHovercardConfig)("onedevHovercardActive",!!V(5,14,a.showCommentReactionHovercard$));Nf("aria-disabled",!V(4,12,a.hasAclToUpvoteReact$)||a.commentReactionIsSaving);w(5);C("ngIf",!Rrb(a,a.ReactionType.UPVOTE));w(1);C("ngIf",Rrb(a,a.ReactionType.UPVOTE));w(1);C("ngIf",V(9,16,a.upvoteReactionCountDisplayString$));w(4);C("ngIf",
!V(13,18,a.noUpvoteReactions$))}},Trb=function(a){if(a&1){var b=r();D(0,"a",64);L("click",function(){t(b);var c=M(3);return v(c.showCommentHistoryDialog(c.event.commentNumber))});Q(1," Show History ");F()}},Urb=function(a){a&1&&(D(0,"div",61),G(1,"b-comment-edit-timestamp-message",62),P(2,Trb,2,0,"a",63),F());a&2&&(a=M(2),w(1),C("event",a.event),w(1),C("ngIf",a.commentHistoryEnabled))},Vrb=function(a){a&1&&(G(0,"b-issue-event-details",43),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){a=M().ngIf;
var b=M(),c,d;C("diffs",null!==(c=V(1,4,b.postEventDiffs$))&&void 0!==c?c:ng(10,Arb))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=V(2,6,b.effortSpec$))?null:d.name)("effortEnabled",!!V(3,8,b.isEffortEnabled$))}},Wrb=function(a,b){a&1&&(D(0,"div",67),G(1,"b-attachment-viewer",68),F());a&2&&(a=b.$implicit,b=M(3),gg("id","attachment",a.attachmentId,""),w(1),C("issueId",b.issueId)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable()))},Xrb=function(a){a&1&&(D(0,"div",65),
P(1,Wrb,2,4,"div",66),F());a&2&&(a=M(2),w(1),C("ngForOf",a.event.attachments))},Zrb=function(a){a&1&&(I(0),D(1,"div",1),G(2,"b-user-image",2),F(),D(3,"div",3)(4,"h4",4),T(5,"async"),P(6,srb,2,5,"b-user-membership-chip",5),P(7,trb,1,1,"ng-template",null,6,Eg),P(9,vrb,6,3,"ng-container",7),P(10,wrb,2,1,"ng-template",null,8,Eg),P(12,xrb,3,3,"span",0),P(13,yrb,1,0,"button",9),T(14,"async"),D(15,"span",10),P(16,zrb,1,3,"b-restricted-chip",11),G(17,"b-formatted-date-time",12),P(18,Brb,3,5,"b-actions-menu",
13),F()(),G(19,"div",14),P(20,Crb,2,1,"div",15),P(21,Drb,4,11,"b-issue-event-details",16),T(22,"async"),G(23,"div",14),D(24,"div",17)(25,"div",18),P(26,Erb,2,0,"div",19),P(27,Frb,2,3,"b-restricted-comment-placeholder",20),D(28,"div",21),P(29,Grb,1,4,"b-note-container",22),P(30,Hrb,5,4,"ng-container",0),P(31,Irb,4,0,"ng-container",0),F(),D(32,"div",23)(33,"div",24),P(34,Jrb,1,1,"b-formatted-date-time",25),T(35,"async"),F(),P(36,Srb,14,22,"div",26),F()(),P(37,Urb,3,2,"div",27),F(),P(38,Vrb,4,11,"b-issue-event-details",
16),T(39,"async"),G(40,"div",14),P(41,Xrb,2,1,"div",28),G(42,"div",14),F(),K());if(a&2){var b=N(8),c=N(11);a=M();w(2);C("email",a.getUserEmailIfAvailable());w(2);Nf("aria-label",V(5,23,a.ariaLabelHeading$));w(2);C("ngIf",a.enableTeamAnnotations&&a.getUserEmailIfAvailable())("ngIfElse",b);w(3);C("ngIf",a.isNonObfuscatedEmail(a.getUserEmailIfAvailable()))("ngIfElse",c);w(3);C("ngIf",a.isCommentEvent(a.event));w(1);C("ngIf",V(14,25,a.canEditComment$)&&!Cs(a));w(3);C("ngIf",a.isRestricted());w(1);C("timestamp",
a.event.modifiedDate);w(1);C("ngIf",a.isCommentEvent(a.event));w(2);C("ngIf",a.event.taggedSummary&&a.event.taggedSummary.length);w(1);C("ngIf","FULL_HISTORY"===V(22,27,a.showFullHistoryFromFiltering$));w(5);C("ngIf",a.isDeleted());w(1);C("ngIf",Cs(a)&&!a.isDeleted());w(2);C("ngIf",Yrb(a)&&!Cs(a)&&!a.isDeleted()&&!a.isSummarized);w(1);C("ngIf",Yrb(a)&&!Cs(a)&&!a.isDeleted()&&a.isSummarized);w(1);C("ngIf",a.wasSummarized&&!a.isSummarized);w(3);C("ngIf",V(35,29,a.isShowingCommentTimestamp$));w(2);var d,
e=a.ReactionType.UPVOTE,f,h=!a.issuePermissionService.hasAclToComment()&&0===(null==(d=a.event.commentReactions)?void 0:null==(f=d.get(e))?void 0:f.count);d=a.isInternalSession&&a.commentReactionsEnabled&&Yrb(a)&&!a.isDeleted()&&!Cs(a)&&!h;C("ngIf",d);w(1);C("ngIf",a.isCommentEvent(a.event)&&0<(a.event.commentVersion||0)&&!Cs(a));w(1);C("ngIf","FULL_HISTORY"===V(39,31,a.showFullHistoryFromFiltering$));w(3);C("ngIf",null==a.event?null:null==a.event.attachments?null:a.event.attachments.length)}},$rb=
function(a){a&1&&(D(0,"aside",3),G(1,"b-spinner"),F())},asb=function(a){a&1&&(I(0),Q(1,"s"),K())},bsb=function(a){if(a&1){var b=r();I(0);D(1,"div",6)(2,"button",7);L("click",function(){t(b);var f=M().index,h=M(),k,q,u=null!=(q=null==(k=h.foldedCommentsCounts.get(f))?void 0:k.eventFoldedCount)?q:0;for(k=0;k<u&&((En(h.internalEvents[f-k])||Fn(h.internalEvents[f-k]))&&h.eventDisplayMode.set(f-k,"full"),0!==f-k);k++);h.foldedCommentsCounts.delete(f);return v()});Q(3);P(4,asb,2,0,"ng-container",4);F();
G(5,"div",8);F();K()}if(a&2){a=M().index;var c=M(),d,e;w(3);S(" ",null==(d=c.foldedCommentsCounts.get(a))?null:d.commentFoldedCount," update");w(1);C("ngIf",1<(null!==(e=null==(e=c.foldedCommentsCounts.get(a))?null:e.commentFoldedCount)&&void 0!==e?e:1))}},csb=function(a){a&1&&(D(0,"div",9),G(1,"b-history-event",10),F());if(a&2){var b=M();a=b.$implicit;b=b.index;var c=M();w(1);C("issueId",c.internalIssueId)("issueAccessLevel",c.issueAccessLevel)("event",a)("isSummarized",c.eventDisplayMode.get(b)===
c.eventDisplayModes.SUMMARIZED)}},esb=function(a,b){a&1&&(I(0),P(1,bsb,6,2,"ng-container",4),P(2,csb,2,4,"div",5),K());if(a&2){a=b.$implicit;b=b.index;var c=M(),d;w(1);C("ngIf",c.enableCommentFiltering&&c.foldedCommentsCounts.has(b)&&0<(null!==(d=null==(d=c.foldedCommentsCounts.get(b))?null:d.commentFoldedCount)&&void 0!==d?d:0));w(1);if(d=c.internalIssueId)if(c.enableCommentFiltering)d=dsb(c.eventDisplayMode.get(b));else{var e,f;d=(c.showFullHistory||a.isMajorEvent)&&(En(a)&&!!a.unlinkifiedComment||
Fn(a)||0<(null==(e=a.preDiffs)?void 0:e.length)||0<(null==(f=a.postDiffs)?void 0:f.length))}C("ngIf",d)}},fsb=function(a){a&1&&(D(0,"aside",3),G(1,"b-spinner"),F())},gsb=function(a){a&1&&(D(0,"p",14),Q(1),D(2,"a",15),Q(3," Learn more "),F()());a&2&&(a=M(4),w(1),S(" Your comment contains restricted words: ",Fp(a.bannedWordsChecker),". Review your comment before posting. "))},hsb=function(a){if(a&1){var b=r();D(0,"div",16)(1,"b-recaptcha",17);L("onUpdate",function(c){t(b);var d=M(4);return v(d.recaptchaResponse$.next(c))});
F()()}},jsb=function(a){if(a&1){var b=r();D(0,"span")(1,"mat-checkbox",18);L("change",function(){t(b);var c=M(4);return v(isb(c))});T(2,"async");T(3,"async");Q(4," CC Me ");F()()}a&2&&(a=M(4),w(1),C("checked",!!V(2,2,a.autoCcOnComment$))("disabled",!!V(3,4,a.isCurrentUserCCd$)))},ksb=function(a){a&1&&(D(0,"mat-checkbox",21),Q(1," CC Me "),F());a&2&&C("checked",!0)("disabled",!0)},lsb=function(a){a&1&&(D(0,"span",19),P(1,ksb,2,2,"mat-checkbox",20),T(2,"async"),F());a&2&&(a=M(4),w(1),C("ngIf",V(2,1,
a.isCurrentUserCCd$)))},msb=function(a){if(a&1){var b=r();D(0,"b-markdown-toggle",22);L("change",function(c){t(b);var d=M().ngIf;return v(d.formattingMode=c)});F()}a&2&&(a=M().ngIf,C("initialValue",a.formattingMode))},nsb=function(a){a&1&&(G(0,"b-access-limits-chip",23),T(1,"async"));a&2&&(a=M(4),C("issueId",a.issueId)("componentId",a.componentIdString)("accessLimitLevel",V(1,3,a.issueAccessLimitLevel$)))},psb=function(a,b){if(a&1){var c=r();I(0);D(1,"b-comment-box",3,4);L("onHotkey",function(){t(c);
var k=N(2);return v(osb(k,"editpage-hotkey"))})("onChange",function(){t(c);var k=M(3);return v(k.saveCommentDraft())})("onFocusEvent",function(){t(c);var k=M(3);return v(k.wasFocused=!0)})("onSubmit",function(k){t(c);var q=M(3);return v(q.submitCommentBox(k))})("onRestrict",function(){t(c);var k=M(3);return v(k.showNewContentJudgementDialog())})("onPlusOneTextEntered",function(k){t(c);var q=M(3);q.commentButtonStyle=q.isPlusOneCalloutEnabled()&&k?"hairline":"fill";return v()});T(3,"async");T(4,"async");
T(5,"async");T(6,"async");P(7,gsb,4,1,"p",5);P(8,hsb,2,0,"div",6);T(9,"async");D(10,"div",7)(11,"b-button",8);L("onAction",function(k){t(c);var q=M(3);return v(q.submitCommentBox(k))})("click",function(k){t(c);var q=M(3);return v(q.submitCommentBox(k))});T(12,"async");Q(13);F();D(14,"div",9);P(15,jsb,5,6,"span",0);T(16,"async");T(17,"async");P(18,lsb,3,3,"span",10);T(19,"async");T(20,"async");P(21,msb,1,1,"b-markdown-toggle",11);T(22,"async");P(23,nsb,2,5,"b-access-limits-chip",12);T(24,"async");
F();G(25,"b-access-level-indicator",13);T(26,"async");F()();K()}if(a&2){a=b.ngIf;b=M(2).ngIf;var d=M(),e,f,h;w(1);C("hotkey",d.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",b.issueId)("comment",a)("componentId",b.componentId)("placeholder",null!==(e=V(3,22,d.commentPlaceholderText$))&&void 0!==e?e:void 0)("judgementForNewContent",null!==(f=V(4,24,d.judgementForNewContent$))&&void 0!==f?f:void 0)("audience",null!==(h=V(5,26,d.audience$))&&void 0!==h?h:void 0)("disabled",!1===V(6,28,d.commentBoxEnabled$))("isPlusOneCalloutEnabled",
d.isPlusOneCalloutEnabled())("warn",d.bannedWordsChecker.showWarning());w(6);C("ngIf",d.bannedWordsChecker.showWarning());w(1);C("ngIf",V(9,30,d.showRecaptcha$));w(3);C("format",d.commentButtonStyle)("disabled",!1===V(12,32,d.commentButtonEnabled$))("color",d.bannedWordsChecker.showWarning()?"warn":"primary");w(2);S(" ",d.bannedWordsChecker.showWarning()?"Comment Anyway":"Comment"," ");w(2);C("ngIf",!V(16,34,d.isCurrentUserCCd$)&&V(17,36,d.hasAclToEdit$));w(3);C("ngIf",V(19,38,d.isCurrentUserCCd$)||
!V(20,40,d.hasAclToEdit$));w(3);C("ngIf",V(22,42,d.hasAclToComment$));w(2);C("ngIf",V(24,44,d.isAccessLimited$));w(2);C("accessLevel",V(26,46,d.accessLevel$))}},rsb=function(a){a&1&&(I(0),D(1,"h3",1),Q(2,"Add comment"),F(),D(3,"div",2),T(4,"async"),P(5,psb,27,48,"ng-container",0),T(6,"async"),F(),K());a&2&&(a=M(2),w(3),C("ngClass",pg(6,qsb,V(4,2,a.empty$),!a.wasFocused)),w(2),C("ngIf",V(6,4,a.comment$)))},ssb=function(a,b){a&1&&(I(0),P(1,rsb,7,9,"ng-container",0),K());a&2&&(a=b.ngIf,w(1),C("ngIf",
!a.isDeleted))},tsb=function(a,b){a&1&&(G(0,"b-note-container",25),T(1,"async"));if(a&2){a=b.ngIf;b=M().ngIf;var c=M();C("issueId",b)("issueAccessLevel",V(1,4,c.canonicalAccessLevel$))("formattingMode",a.formattingMode)("note",a)}},usb=function(a,b){a&1&&(D(0,"div",26),Q(1),F());a&2&&(a=b.ngIf,b=M(2),$f("chippy status-",a,""),C("title",b.STATUS_JS_FULL_TEXT[a]),w(1),S(" ",b.STATUS_JS_TERSE[a]," "))},vsb=function(a,b){a&1&&(I(0),G(1,"span",27),D(2,"span",28),Q(3),F(),K());a&2&&(a=b.ngIf,w(3),kg(" ",
a.length," duplicate",1===a.length?"":"s"," "))},wsb=function(a,b){a&1&&(I(0),G(1,"span",27),D(2,"div",29)(3,"span",30),Q(4),F(),G(5,"mat-icon",31),F(),K());a&2&&(a=b.ngIf,w(2),gg("matTooltip","",a.voteCount," votes on this issue"),w(2),jg(9999<a.voteCount?"9999+":a.voteCount))},xsb=function(a,b){a&1&&(I(0),G(1,"span",27),D(2,"div",32)(3,"span",30),Q(4),F(),G(5,"mat-icon",33),F(),K());a&2&&(a=b.ngIf,w(2),gg("matTooltip","",a.length," comments on this issue"),w(2),jg(a.length))},ysb=function(a,b){a&
1&&(I(0),G(1,"span",27)(2,"b-formatted-date-time",34),K());a&2&&(a=b.ngIf,w(2),C("timestamp",a/1E3))},zsb=function(a,b){if(a&1){var c=r();D(0,"button",35);L("click",function(){var d=t(c).$implicit;M();var e=N(31);M().reject(d);var f;null==(f=e.trigger)||f.close();return v()});D(1,"span");Q(2);F()()}a&2&&(a=b.$implicit,b=M(2),w(2),jg(b.REJECT_REASON_TO_DISPLAY[a]))},Bsb=function(a,b){if(a&1){var c=r();D(0,"div",5)(1,"div",6)(2,"a",7)(3,"span",8);Q(4);T(5,"async");F();G(6,"mat-icon",9);F();P(7,tsb,
2,6,"b-note-container",10);T(8,"async");D(9,"div",11);G(10,"b-issue-id-picker",12);T(11,"async");T(12,"async");T(13,"async");G(14,"b-issue-priority-display",13);T(15,"async");P(16,usb,2,5,"div",14);T(17,"async");P(18,vsb,4,2,"ng-container",15);T(19,"async");P(20,wsb,6,2,"ng-container",15);T(21,"async");P(22,xsb,6,2,"ng-container",15);T(23,"async");P(24,ysb,3,1,"ng-container",15);T(25,"async");F()();D(26,"div",16)(27,"button",17);L("click",function(){t(c);var d=M();return v(d.accept())});G(28,"mat-icon",
18);Q(29," Accept ");F();D(30,"split-button",19,20)(32,"button",21);L("click",function(){t(c);var d=M();return v(d.reject())});G(33,"mat-icon",22);Q(34," Reject ");F();D(35,"div",23);P(36,zsb,3,1,"button",24);F()()()()}a&2&&(a=b.ngIf,b=M(),w(2),C("href",b.getIssueLink(a),re),w(2),jg(V(5,18,b.canonicalTitle$)),w(3),C("ngIf",V(8,20,b.canonicalDescription$)),w(3),C("issueId",a)("enableHotkeys",!1)("componentId",V(11,22,b.canonicalComponentId$))("issueTitle",V(12,24,b.canonicalTitle$))("isExternalIssue",
!!V(13,26,b.isCanonicalInExternalComponent$)),w(4),C("issuePriority",V(15,28,b.canonicalPriority$)),w(2),C("ngIf",V(17,30,b.statusForChip$)),w(2),C("ngIf",V(19,32,b.canonicalDuplicates$)),w(2),C("ngIf",og(40,Asb,V(21,34,b.canonicalVoteCount$)||0)),w(2),C("ngIf",V(23,36,b.canonicalComments$)),w(2),C("ngIf",V(25,38,b.canonicalCreateMicros$)),w(3),C("disabled",b.isSaving),w(3),C("disabled",b.isSaving),w(2),C("disabled",b.isSaving),w(4),C("ngForOf",b.REJECT_REASONS))},Csb=function(a,b){a&1&&G(0,"b-issue-person-card",
7);a&2&&C("email",b.ngIf)},Dsb=function(a,b){a&1&&(I(0),D(1,"span",4),Q(2),T(3,"shortenEmail"),F(),D(4,"onedev-hovercard",null,5),P(6,Csb,1,1,"b-issue-person-card",6),F(),K());if(a&2){a=b.ngIf;var c=N(5);b=M(2);w(1);C("onedevHovercardTrigger",c);w(1);S(" ",rg(3,3,b.userToString(a),30)," ");w(4);C("ngIf",a.emailAddress)}},Esb=function(a,b){if(a&1){var c=r();D(0,"a",8);L("click",function(d){var e=t(c).ngIf,f=M(2);return v(f.scrollCommentIntoView(d,e))});Q(1);F()}a&2&&(a=b.ngIf,b=M(2),Pf("aria-label",
"Comment number ",a,""),C("routerLinkObj",b.getCommentNumberLink(a)),w(1),S(" #",a,""))},Fsb=function(a){a&1&&(I(0),Q(1,","),K())},Gsb=function(a,b){a&1&&(D(0,"span",1),P(1,Dsb,7,6,"ng-container",2),D(2,"span"),P(3,Esb,2,3,"a",3),P(4,Fsb,2,0,"ng-container",2),F()());a&2&&(a=b.$implicit,b=b.last,w(1),C("ngIf",a.userPerformingActionUser),w(2),C("ngIf",a.commentNumber),w(1),C("ngIf",!b))},Hsb=function(a,b){a&1&&(D(0,"div",4)(1,"a",5),T(2,"removePngExtension"),G(3,"b-secure-image-widget",6),F(),G(4,"comments-info",
7),F());a&2&&(a=b.$implicit,b=M(3),w(1),hg("href",V(2,5,a.src),re),w(2),C("showByDefault",!0)("src",a.src),w(1),C("issueId",b.issueId)("comments",a.comments))},Isb=function(a){if(a&1){var b=r();D(0,"button",10);L("click",function(){t(b);var c=M(2).ngIf,d=M(2);c=c.length;var e=Gk(d.maxImagesInOneRow$);e&&d.lastRenderedImageIndex$.next((Math.floor(c/e)+4)*e);return v()});Q(1," Load more ");F()}},Jsb=function(a){if(a&1){var b=r();D(0,"button",11);L("click",function(){t(b);var c=M(4);return v(c.goToResourcesTab())});
Q(1," See all screenshots ");F()}},Ksb=function(a){a&1&&(I(0),P(1,Isb,2,0,"button",8),P(2,Jsb,2,0,"ng-template",null,9,Eg),K());if(a&2){var b=N(3);a=M(3);w(1);C("ngIf",a.paginate)("ngIfElse",b)}},Lsb=function(a,b){a&1&&(I(0),D(1,"div",2),P(2,Hsb,5,7,"div",3),T(3,"async"),F(),P(4,Ksb,4,2,"ng-container",1),K());if(a&2){a=b.ngIf;b=M().ngIf;var c=M();w(1);Xf("show-all-images",c.paginate);w(1);C("ngForOf",V(3,4,c.imagesToRender$));w(2);C("ngIf",b.length!==a.length)}},Msb=function(a){a&1&&(I(0),P(1,Lsb,
5,6,"ng-container",1),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.imagesToRender$)))},Nsb=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=null!=(d=b.get(c.src))?d:[];e.push(c.comment);b.set(c.src,e)}return Array.from(b.entries()).map(function(f){var h=l(f);f=h.next().value;h=h.next().value;return{src:f,comments:Tj(h)}})},Osb=function(a){a&1&&(D(0,"span",5),Q(1),T(2,"reverse"),F());a&2&&(a=M(),w(1),jg(V(2,1,a.leftText)))},Psb=function(a){a&1&&
(I(0),D(1,"b-external-hyperlink-widget",6),Q(2),F(),K());a&2&&(a=M(),w(1),C("href",a.redirectedHref)("originalHref",a.originalHref),w(1),jg(a.linkText))},Qsb=function(a){a&1&&(D(0,"b-issue-reference-widget",9),Q(1),F());a&2&&(a=M(2),C("href",a.redirectedHref)("issueId",a.issueId),w(1),jg(a.linkText))},Rsb=function(a){a&1&&(D(0,"a",10),Q(1),F());a&2&&(a=M(2),hg("href",a.redirectedHref,re),w(1),jg(a.linkText))},Ssb=function(a){a&1&&(P(0,Qsb,2,3,"b-issue-reference-widget",7),P(1,Rsb,2,2,"ng-template",
null,8,Eg));if(a&2){var b=N(2);a=M();C("ngIf",a.issueId)("ngIfElse",b)}},Tsb=function(a){a&1&&(D(0,"span",11),Q(1),F());a&2&&(a=M(),w(1),jg(a.rightText))},Usb=function(a){var b=document.createElement("div");if(a=Nqa(a))1===b.nodeType&&qpa(b),b.innerHTML=ih(a);return b},Vsb=function(a){a&1&&(I(0),D(1,"td"),G(2,"b-issue-priority-display",2),F(),D(3,"td",3)(4,"span",4),Q(5),F(),G(6,"mentioned-link-with-context",5),F(),D(7,"td"),G(8,"comments-info",6),T(9,"toComments"),F(),K());if(a&2){a=M().$implicit;
var b=M(3),c;w(2);C("matTooltip",a.hasViewAccess?"":"Access is denied to this issue")("issuePriority",a.priority);w(2);C("matTooltip",a.hasViewAccess?"":"Access is denied to this issue");w(1);S(" ",null!==(c=a.title)&&void 0!==c?c:"--"," ");w(1);C("sourceComment",a.sourceComments[0].issueEvent)("relatedLink",a.relatedLinks[0]);w(2);C("issueId",b.issueId)("comments",V(9,8,a.sourceComments))}},Wsb=function(a,b){a&1&&(D(0,"tr"),P(1,Vsb,10,10,"ng-container",0),F());a&2&&(a=b.$implicit,w(1),C("ngIf",a.sourceComments&&
a.relatedLinks))},Xsb=function(a){if(a&1){var b=r();D(0,"button",9);L("click",function(){t(b);var c=M(4);c.lastRenderedMentionedIssueIndex$.next(c.lastRenderedMentionedIssueIndex$.value+100);return v()});Q(1," Load more ");F()}},Ysb=function(a){if(a&1){var b=r();D(0,"button",10);L("click",function(){t(b);var c=M(4);return v(c.goToResourcesTab())});Q(1," See all mentioned issues ");F()}},Zsb=function(a){a&1&&(D(0,"div"),P(1,Xsb,2,0,"button",7),P(2,Ysb,2,0,"ng-template",null,8,Eg),F());if(a&2){var b=
N(3);a=M(3);w(1);C("ngIf",a.paginate)("ngIfElse",b)}},$sb=function(a,b){a&1&&(I(0),D(1,"section")(2,"table"),P(3,Wsb,2,1,"tr",1),F(),P(4,Zsb,4,2,"div",0),F(),K());a&2&&(a=b.ngIf,b=M().ngIf,w(3),C("ngForOf",b),w(1),C("ngIf",a.length!==b.length))},atb=function(a){a&1&&(I(0),P(1,$sb,5,2,"ng-container",0),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.allMentionedIssues$)))},btb=function(a,b){a&1&&(D(0,"div",2),G(1,"mentioned-link-with-context",3)(2,"comments-info",4),T(3,"toComments"),F());a&2&&
(a=b.$implicit,b=M(3),w(1),C("sourceComment",a[0].comment)("relatedLink",a[0]),w(1),C("issueId",b.issueId)("comments",V(3,4,a)))},ctb=function(a){if(a&1){var b=r();D(0,"button",7);L("click",function(){t(b);var c=M(4);c.lastRenderedRelatedLinkIndex$.next(c.lastRenderedRelatedLinkIndex$.value+100);return v()});Q(1," Load more ");F()}},dtb=function(a){if(a&1){var b=r();D(0,"button",8);L("click",function(){t(b);var c=M(4);return v(c.goToResourcesTab())});Q(1," See all related links ");F()}},etb=function(a){a&
1&&(D(0,"div"),P(1,ctb,2,0,"button",5),P(2,dtb,2,0,"ng-template",null,6,Eg),F());if(a&2){var b=N(3);a=M(3);w(1);C("ngIf",a.paginate)("ngIfElse",b)}},ftb=function(a,b){a&1&&(I(0),P(1,btb,4,6,"div",1),P(2,etb,4,2,"div",0),K());if(a&2){a=b.ngIf;b=M().ngIf;var c=M();w(1);C("ngForOf",a)("ngForTrackBy",c.trackByHref);w(1);C("ngIf",b.length!==a.length)}},gtb=function(a){a&1&&(I(0),P(1,ftb,3,3,"ng-container",0),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.linkGroupsToRender$)))},itb=function(a,b){var c=
a.filter(function(d){return aFa(d[0])});a=a.filter(function(d){return!aFa(d[0])});return htb([].concat(p(c),p(a)).slice(0,b),"asc")},ktb=function(a){a&1&&(I(0),G(1,"mat-icon",10),bg(2,11),K());if(a&2){a=M().$implicit;M();var b=N(10);w(2);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(2,jtb,a))}},ltb=function(){},mtb=function(a){a&1&&P(0,ltb,0,0,"ng-template")},ntb=function(a){a&1&&(I(0),P(1,mtb,1,0,null,12),K());a&2&&(a=M(2).$implicit,w(1),C("ngTemplateOutlet",a.tabIconTemplate))},otb=function(a){a&
1&&(P(0,ntb,2,1,"ng-container",3),bg(1,11));if(a&2){a=M().$implicit;M();var b=N(10);C("ngIf",a.tabIconTemplate);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(3,jtb,a))}},ptb=function(a,b){if(a&1){var c=r();D(0,"button",7);L("click",function(){var e=t(c).$implicit,f=M();e=e.key;f.internalExpandedTabs.has(e)?f.internalExpandedTabs.delete(e):f.internalExpandedTabs.add(e);f.expandedTabsChanged.emit(new Set(f.internalExpandedTabs));return v()});T(1,"async");T(2,"async");T(3,"async");P(4,ktb,
3,4,"ng-container",8);T(5,"async");P(6,otb,2,5,"ng-template",null,9,Eg);F()}if(a&2){a=b.$implicit;var d=N(7);b=M();Xf("expanded",!!V(1,8,vp(b.internalExpandedTabs,a.key)));Pf("aria-controls","expandable-tabs-",a.key,"-content");Nf("aria-label",a.ariaLabel)("aria-expanded",!!V(2,10,vp(b.internalExpandedTabs,a.key)))("aria-selected",!!V(3,12,vp(b.internalExpandedTabs,a.key)));w(4);C("ngIf",V(5,14,vp(b.internalExpandedTabs,a.key)))("ngIfElse",d)}},rtb=function(a,b){if(a&1){var c=r();I(0);D(1,"button",
13);L("click",function(){t(c);var d=M();return v(qtb(d))});Q(2);F();K()}a&2&&(a=b.ngIf,b=M(),w(1),Xf("expandable-tabs-hide-all",a.allTabsExpanded)("expandable-tabs-show-all",!a.allTabsExpanded),Nf("aria-label",(a.allTabsExpanded?"Hide all":"Show all")+" "+b.ariaLabel),w(1),S(" ",a.allTabsExpanded?"Hide all":"Show all"," "))},stb=function(){},ttb=function(a){a&1&&P(0,stb,0,0,"ng-template")},utb=function(a){a&1&&(I(0),P(1,ttb,1,0,null,12),K());a&2&&(a=M(3).$implicit,w(1),C("ngTemplateOutlet",a.tabIconTemplate))},
vtb=function(a){a&1&&(D(0,"h4"),P(1,utb,2,1,"ng-container",3),bg(2,11),F());if(a&2){a=M(2).$implicit;M();var b=N(10);w(1);C("ngIf",a.tabIconTemplate);w(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",og(3,jtb,a))}},wtb=function(a){a&1&&G(0,"span",17)},xtb=function(){},ytb=function(a){a&1&&P(0,xtb,0,0,"ng-template")},ztb=function(a){a&1&&(I(0),P(1,ytb,1,0,null,12),K());a&2&&(a=M(2).$implicit,w(1),C("ngTemplateOutlet",a.tabContentTemplate))},Atb=function(a){a&1&&(D(0,"div",15),P(1,vtb,3,5,"h4",
8),P(2,wtb,1,0,"ng-template",null,16,Eg),P(4,ztb,2,1,"ng-container",3),F());if(a&2){var b=N(3);a=M().$implicit;var c=M();gg("id","expandable-tabs-",a.key,"-content");w(1);C("ngIf",1<c.internalExpandedTabs.size)("ngIfElse",b);w(3);C("ngIf",a.tabContentTemplate)}},Btb=function(a,b){a&1&&(I(0),P(1,Atb,5,4,"div",14),T(2,"async"),K());a&2&&(a=b.$implicit,b=M(),w(1),C("ngIf",V(2,1,vp(b.internalExpandedTabs,a.key))))},Ctb=function(){},Dtb=function(a){a&1&&P(0,Ctb,0,0,"ng-template")},Etb=function(a){a&1&&
(I(0),P(1,Dtb,1,0,null,12),K());a&2&&(a=M().tab,w(1),C("ngTemplateOutlet",a.tabHeaderTemplate))},Ftb=function(a){a&1&&Q(0);a&2&&(a=M().tab,jg(a.key))},Gtb=function(a,b){a&1&&(P(0,Etb,2,1,"ng-container",8),P(1,Ftb,1,1,"ng-template",null,18,Eg));if(a&2){a=b.tab;var c=N(2);C("ngIf",a.tabHeaderTemplate)("ngIfElse",c)}},Htb=function(a){a&1&&G(0,"mat-icon",9)},Itb=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=M(2);var b;S("Screenshots (",null!==(b=V(1,1,a.distinctImageLinksCount$))&&void 0!==b?b:0,")")}},
Ltb=function(a,b){if(a&1){var c=r();D(0,"inline-images-summary",11);L("click",function(){t(c);var e=M(3);Jtb(e.issueSummaryTracking,e.issueId,e.TabKeys.IMAGES);return v()});T(1,"async");F()}if(a&2){a=b.ngIf;b=M(3);var d;C("issueId",a)("imageLinks",null!==(d=V(1,2,b.imageLinks$))&&void 0!==d?d:ng(4,Ktb))}},Mtb=function(a){a&1&&(P(0,Ltb,2,5,"inline-images-summary",10),T(1,"async"));a&2&&(a=M(2),C("ngIf",V(1,1,a.issueId$)))},Ntb=function(a){a&1&&G(0,"mat-icon",12)},Otb=function(a){a&1&&(Q(0),T(1,"async"));
if(a&2){a=M(2);var b;S("Mentioned issues (",null!==(b=V(1,1,a.distinctIssuesCount$))&&void 0!==b?b:0,")")}},Ptb=function(a,b){if(a&1){var c=r();D(0,"b-mentioned-issues",14);L("click",function(){t(c);var d=M(3);Jtb(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return v()});F()}a&2&&(a=b.ngIf,b=M(3),C("issueReferences",a)("currentIssueId",b.issueId))},Qtb=function(a){a&1&&(P(0,Ptb,1,2,"b-mentioned-issues",13),T(1,"async"));a&2&&(a=M(2),C("ngIf",V(1,1,a.issues$)))},Rtb=function(a){a&1&&
G(0,"mat-icon",15)},Stb=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=M(2);var b;S("Links (",null!==(b=V(1,1,a.distinctOtherLinksCount$))&&void 0!==b?b:0,")")}},Ttb=function(a){if(a&1){var b=r();D(0,"related-links-widget",16);L("click",function(){t(b);var d=M(2);Jtb(d.issueSummaryTracking,d.issueId,d.TabKeys.LINKS);return v()});T(1,"async");F()}if(a&2){a=M(2);var c;C("links",null!==(c=V(1,2,a.otherLinks$))&&void 0!==c?c:ng(4,Ktb))("issueId",a.issueId)}},Vtb=function(a,b){if(a&1){var c=r();D(0,"expandable-tabs",
2);L("expandedTabsChanged",function(d){var e=t(c).ngIf,f=M();return v(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",function(d){t(c);var e=M(),f=e.issueSummaryTracking;e=e.issueId;for(var h=l(Utb),k=h.next();!k.done;k=h.next())k=k.value,d.has(k)?(Ds(f.issueInteractionsTracking,e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-not-shown")):(Ds(f.issueInteractionsTracking,e,k+"-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+
"-content-shown"));0<d.size?(f.recordImpressionOnce(),Ds(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):(Ds(f.issueInteractionsTracking,e,"SW-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-shown"));return v()});D(1,"expandable-tab",3);P(2,Htb,1,0,"ng-template",4);P(3,Itb,2,3,"ng-template",5);P(4,Mtb,2,3,"ng-template",6);F();D(5,"expandable-tab",7);P(6,Ntb,1,0,"ng-template",
4);P(7,Otb,2,3,"ng-template",5);P(8,Qtb,2,3,"ng-template",6);F();D(9,"expandable-tab",8);P(10,Rtb,1,0,"ng-template",4);P(11,Stb,2,3,"ng-template",5);P(12,Ttb,2,5,"ng-template",6);F()()}a&2&&(a=b.ngIf,b=M(),C("tabKeys",a)("expandedTabs",b.initiallyExpandedTabs),w(1),C("key",b.TabKeys.IMAGES),w(4),C("key",b.TabKeys.MENTIONED_ISSUES),w(4),C("key",b.TabKeys.LINKS))},Wtb=function(a,b){a&1&&(D(0,"li",6)(1,"div",7),G(2,"b-user-image",8),F(),D(3,"div",9),G(4,"b-user-display",10)(5,"b-formatted-date-time",
11),D(6,"p",12),Q(7," Formatting: "),D(8,"code",13),Q(9),F()(),G(10,"br"),D(11,"span",14)(12,"b-person-hovercard",15),T(13,"omitObfuscatedEmail"),Q(14),T(15,"appendDomain"),F()(),Q(16),F(),D(17,"pre"),Q(18),F()());a&2&&(a=b.$implicit,b=b.index+1,w(2),C("email",null==a.author?null:a.author.emailAddress),w(2),C("model",a.author),w(1),C("timestamp",a.updateTime),w(4),S(" ",a.formattingMode," "),w(3),C("email",V(13,8,null==a.author?null:a.author.emailAddress)),w(2),S(" <",V(15,10,null==a.author?null:
a.author.emailAddress),"> "),w(2),S(" #",b," "),w(2),jg(a.updateText))},Xtb=function(a){if(a&1){var b=r();I(0);D(1,"header",3)(2,"h4",4);Q(3,"Status Update");F();D(4,"p",5);Q(5,"No update yet.");F();D(6,"button",6);L("click",function(){t(b);var c=M(2);return v(c.editStatusUpdate())});Q(7," Edit ");F()();K()}},Ztb=function(a){if(a&1){var b=r();D(0,"button",15);L("click",function(){t(b);var c=M(3);return v(Ytb(c))});Q(1," Mark as fresh ");F()}},$tb=function(a){a&1&&G(0,"mat-icon",21)},aub=function(a,
b){a&1&&(I(0),P(1,$tb,1,0,"mat-icon",16),T(2,"async"),Q(3," Updated by "),D(4,"span",17),Q(5),T(6,"shortenEmail"),F(),G(7,"b-formatted-date-time",18),D(8,"onedev-hovercard",null,19),G(10,"b-issue-person-card",20),F(),K());if(a&2){a=b.ngIf;var c=N(9);b=M(3);var d,e;w(1);C("ngIf",V(2,5,b.freshnessIndicator$)===b.Freshness.FRESH);w(3);C("onedevHovercardTrigger",c);w(1);S(" ",V(6,7,null!==(d=null==a.author?null:a.author.emailAddress)&&void 0!==d?d:"")," ");w(2);C("timestamp",a.updateTime);w(3);C("email",
null!==(e=null==a.author?null:a.author.emailAddress)&&void 0!==e?e:"")}},bub=function(a,b){a&1&&G(0,"b-actions-menu",22);a&2&&(a=b.ngIf,C("buttonLabel","Status Update actions")("menuItems",a))},cub=function(a,b){a&1&&(G(0,"b-note-container",27),T(1,"async"),T(2,"async"));if(a&2){a=b.ngIf;b=M().ngIf;var c=M(3),d;C("issueId",b.issueId)("issueAccessLevel",V(1,4,c.accessLevel$))("note",a)("formattingMode",null!==(d=V(2,6,c.formattingMode$))&&void 0!==d?d:c.FormattingMode.PLAIN)}},dub=function(a){if(a&
1){var b=r();D(0,"button",28);L("click",function(){t(b);var c=M(4);return v(c.isCollapsed=!1)});Q(1," Show More ");F()}},eub=function(a){a&1&&(I(0),D(1,"div",23)(2,"div",null,24),P(4,cub,3,8,"b-note-container",25),T(5,"async"),F(),P(6,dub,2,0,"button",26),F(),K());a&2&&(a=M(3),w(2),Xf("collapsed",a.isCollapsed),w(2),C("ngIf",V(5,4,a.statusUpdateAsNote$)),w(2),C("ngIf",a.isCollapsed))},fub=function(a){if(a&1){var b=r();I(0);D(1,"div",7)(2,"header",8)(3,"div",9)(4,"h4",10);Q(5,"Status Update");F();
D(6,"button",11);L("click",function(){t(b);var c=M(2);return v(c.editStatusUpdate())});Q(7," Edit ");F();P(8,Ztb,2,0,"button",12);T(9,"async");F();D(10,"div",13);P(11,aub,11,9,"ng-container",2);T(12,"async");P(13,bub,1,2,"b-actions-menu",14);T(14,"async");F()();P(15,eub,7,6,"ng-container",2);T(16,"async");F();K()}a&2&&(a=M(2),w(8),C("ngIf",V(9,4,a.freshnessIndicator$)===a.Freshness.STALE),w(3),C("ngIf",V(12,6,a.statusUpdate$)),w(2),C("ngIf",V(14,8,a.menuItems$)),w(2),C("ngIf",V(16,10,a.statusUpdate$)))},
hub=function(a,b){a&1&&(D(0,"div"),T(1,"async"),G(2,"mat-icon",1),P(3,Xtb,8,0,"ng-container",2),P(4,fub,17,12,"ng-container",2),F());a&2&&(a=b.ngIf,b=M(),$f("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",V(1,9,b.semanticClass$),""),Xf("display-none",og(11,gub,b.UiState.LOADING).includes(a))("short-height",b.UiState.EMPTY===a),w(3),C("ngIf",a===b.UiState.EMPTY),w(1),C("ngIf",a===b.UiState.NORMAL))},iub=function(a){switch(a){case 1:return"noUpdate";case 2:return"hasUpdate";
case 0:return"";default:return""}},kub=function(a,b){a&1&&bg(0,10);if(a&2){a=b.ngIf;M(2);var c=N(5);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,jub,a))}},lub=function(a){a&1&&(D(0,"div",5),G(1,"mat-icon",6),D(2,"div",7),bg(3,8),P(4,kub,1,4,"ng-container",9),T(5,"async"),F()());if(a&2){a=M();var b=N(3);w(3);C("ngTemplateOutlet",b);w(1);C("ngIf",V(5,2,a.stage$))}},mub=function(a){a&1&&(D(0,"div"),Q(1," AI-generated summaries may contain inaccurate or offensive information that doesn't represent Google's views. Buganizer and other AI API usage does not store or log the issue's contents for any training purposes. "),
F())},nub=function(a){a&1&&(D(0,"h4",11),Q(1," AI-generated summary "),D(2,"xap-bubble",12)(3,"xap-icon-trigger"),G(4,"mat-icon",13),F(),P(5,mub,2,0,"ng-template",null,14,Eg),F()());if(a&2){var b=N(6);w(2);C("panelTemplate",b)}},pub=function(a){if(a&1){var b=r();D(0,"button",20);L("click",function(){t(b);var c=M(3);return v(oub(c))});Q(1," Summarize for me ");F()}},qub=function(a){a&1&&(D(0,"div",21)(1,"button",22),Q(2," Summarize for me "),F()());a&2&&(a=M(3),C("matTooltip",a.TOO_LITTLE_TOOLTIP_TEXT),
w(1),C("disabled",!0))},sub=function(a){if(a&1){var b=r();D(0,"button",23);L("click",function(){t(b);var c=M(3);return v(rub(c))});Q(1," Experiment with prompt ");F()}},tub=function(a){a&1&&(I(0),D(1,"div",16),P(2,pub,2,0,"button",17),T(3,"async"),P(4,qub,3,2,"ng-template",null,18,Eg),P(6,sub,2,0,"button",19),F(),K());if(a&2){var b=N(5);a=M(2);w(2);C("ngIf",V(3,3,a.isSummarizable$))("ngIfElse",b);w(4);C("ngIf",a.enableLlmDogfood)}},vub=function(a,b){a&1&&(I(0),bg(1,10),K());if(a&2){a=b.ngIf;b=M(2).stage;
M();var c=N(9);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(2,uub,a,b))}},wub=function(a){a&1&&(I(0),P(1,vub,2,5,"ng-container",24),T(2,"async"),K());if(a&2){a=M(2);var b=N(7);w(1);C("ngIf",V(2,2,a.commentThreadSummary$))("ngIfElse",b)}},xub=function(a){a&1&&(D(0,"div",26),Q(1),F());a&2&&(a=M().ngIf,w(1),S(" ",a.summary," "))},yub=function(a,b){a&1&&(I(0),P(1,xub,2,1,"div",25),K());a&2&&(a=b.ngIf,M(3),w(1),C("ngIf",0===a.status))},zub=function(a){if(a&1){var b=r();I(0);P(1,yub,2,1,"ng-container",
24);T(2,"async");D(3,"div",16)(4,"button",23);L("click",function(){t(b);var d=M(2);return v(rub(d))});Q(5," Experiment with prompt ");F()();K()}if(a&2){a=M(2);var c=N(7);w(1);C("ngIf",V(2,2,a.commentThreadSummary$))("ngIfElse",c)}},Aub=function(a,b){a&1&&(P(0,tub,7,5,"ng-container",15),P(1,wub,3,4,"ng-container",15),P(2,zub,6,4,"ng-container",15));a&2&&(a=b.stage,b=M(),C("ngIf",a===b.INITIAL),w(1),C("ngIf",a===b.SHORT||a===b.LONG),w(1),C("ngIf",a===b.CUSTOM))},Bub=function(a){a&1&&G(0,"b-spinner")},
Cub=function(a){if(a&1){var b=r();D(0,"button",23);L("click",function(){t(b);var c=M(3);return v(oub(c))});Q(1," Tell me more ");F()}},Fub=function(a){if(a&1){var b=r();I(0);D(1,"div",26);Q(2);F();D(3,"div",16);P(4,Cub,2,0,"button",19);F();D(5,"div",27)(6,"span",28);Q(7,"Summary will disappear upon page refresh.");F();D(8,"div",16)(9,"button",29);L("click",function(){t(b);var e=M().summary,f=M();navigator.clipboard.writeText(e.summary);f.analytics.trackEvent(xp.LLM_SUMMARIZE,"copy",Dub(f));return v()});
G(10,"mat-icon",30);F();D(11,"button",31);L("click",function(){t(b);var e=M(2);return v(e.openFeedbackDialog())});G(12,"mat-icon",32);F();D(13,"button",33);L("click",function(){t(b);var e=M(2);Dk("thumbsup");e.hasReacted=!0;e.thumbsUpClicked=!0;e.analytics.trackEvent(xp.LLM_SUMMARIZE,"accept",Dub(e));return v()});G(14,"mat-icon",34);F();D(15,"button",35);L("click",function(){t(b);var e=M(2);Dk("thumbsdown");e.hasReacted=!0;e.thumbsDownClicked=!0;e.analytics.trackEvent(xp.LLM_SUMMARIZE,"reject",Dub(e));
return v()});G(16,"mat-icon",36);F()()();K()}if(a&2){var c=M();a=c.summary;c=c.stage;var d=M();w(2);S(" ",a.summary," ");w(2);C("ngIf",c===d.SHORT);w(9);C("disabled",d.hasReacted);w(1);C("ngClass",og(6,Eub,d.thumbsUpClicked));w(1);C("disabled",d.hasReacted);w(1);C("ngClass",og(8,Eub,d.thumbsDownClicked))}},Gub=function(a){if(a&1){var b=r();I(0);D(1,"div",27)(2,"div",37);Q(3," Issue can not be summarized for now. Please try again later. ");F();D(4,"div",16)(5,"button",31);L("click",function(){t(b);
var c=M(2);return v(c.openFeedbackDialog())});G(6,"mat-icon",32);F()()();K()}},Hub=function(a){a&1&&(I(0),D(1,"div",27)(2,"div",37),Q(3," Summarization could not be performed. Please try again later. "),F()(),K())},Iub=function(a,b){a&1&&(P(0,Fub,17,10,"ng-container",15),P(1,Gub,7,0,"ng-container",15),P(2,Hub,4,0,"ng-container",15));a&2&&(a=b.summary,M(),C("ngIf",0===a.status),w(1),C("ngIf",1===a.status),w(1),C("ngIf",2===a.status))},Jub=function(a){switch(a){case "initial":return"short";case "short":return"long";
case "long":return"long";case "custom":return"custom";default:$h(a,"nextStage")}},Kub=function(a){switch(a){case "initial":return 0;case "short":return 0;case "long":return 1;case "custom":return 1;default:$h(a,"summaryTypeForStage")}},Lub=function(a){a&1&&(G(0,"canonical-recommendation",8,9),T(2,"async"));if(a&2){var b=N(1);a=M().$implicit;Xf("hidden",!V(2,3,b.show$));C("currentIssueId",a)}},Mub=function(a){a&1&&(I(0),G(1,"llm-summary",6),K());a&2&&(a=M().$implicit,w(1),C("issueId",a))},Nub=function(a,
b){a&1&&(I(0),G(1,"issue-description-area",4),P(2,Lub,3,5,"canonical-recommendation",5),T(3,"async"),G(4,"status-update",6),P(5,Mub,2,1,"ng-container",1),G(6,"b-issue-description",7),K());a&2&&(a=b.$implicit,b=M(),w(1),C("id",a),w(1),C("ngIf",b.enableIDPCanonicalRecommendation&&V(3,5,b.issuePermissionService.hasAclToEdit$)),w(2),C("issueId",a),w(1),C("ngIf",b.enableLlmSummarization),w(1),C("id",a))},Oub=function(a,b){a&1&&(G(0,"issue-summary-card",10,11),T(2,"async"));if(a&2){a=b.$implicit;var c=
N(1);Xf("hidden",!V(2,3,c.shouldShowSummaryCard$));C("issueId",a)}},Pub=function(a){a&1&&G(0,"issue-event-list",14);a&2&&(a=M().$implicit,C("id",a))},Qub=function(a){a&1&&G(0,"issue-event-list",14);a&2&&(a=M().$implicit,C("id",a))},Rub=function(a,b){a&1&&(D(0,"div",12),G(1,"b-event-stream-header"),P(2,Pub,1,1,"issue-event-list",13),G(3,"b-post-comment",6),P(4,Qub,1,1,"issue-event-list",13),F());a&2&&(a=b.$implicit,b=M(),Xf("recent-first",b.showRecentEventsFirst),w(2),C("ngIf",!b.showRecentEventsFirst),
w(1),C("issueId",a),w(1),C("ngIf",b.showRecentEventsFirst))},Sub=function(a){a&1&&(D(0,"section")(1,"h4"),G(2,"mat-icon",2),Q(3),F(),G(4,"inline-images-summary",3)(5,"br")(6,"hr",4),F());if(a&2){a=M(2).ngIf;var b=M().ngIf;w(3);S(" Screenshots (",a.length,") ");w(1);C("issueId",b.issueId)("imageLinks",a)("paginate",!0)}},Tub=function(a){a&1&&(I(0),P(1,Sub,7,4,"section",1),K());a&2&&(a=M().ngIf,w(1),C("ngIf",a.length))},Uub=function(a){a&1&&(I(0),P(1,Tub,2,1,"ng-container",1),K());a&2&&(a=M(2),w(1),
C("ngIf",a.isInternalSession))},Vub=function(a){a&1&&(D(0,"section")(1,"h4"),G(2,"mat-icon",5),Q(3),F(),G(4,"b-mentioned-issues",6)(5,"br")(6,"hr",4),F());if(a&2){a=M().ngIf;var b=M().ngIf;w(3);S(" Mentioned issues (",a.length,") ");w(1);C("issueReferences",a)("currentIssueId",b.issueId)("paginate",!0)}},Wub=function(a,b){a&1&&(I(0),P(1,Vub,7,4,"section",1),K());a&2&&(a=b.ngIf,w(1),C("ngIf",a.length))},Xub=function(a){a&1&&(D(0,"section")(1,"h4"),G(2,"mat-icon",7),Q(3),F(),G(4,"related-links-widget",
8),F());if(a&2){a=M().ngIf;var b=M().ngIf;w(3);S(" Links (",a.length,") ");w(1);C("links",a)("issueId",b.issueId)("paginate",!0)}},Yub=function(a,b){a&1&&(I(0),P(1,Xub,5,4,"section",1),K());a&2&&(a=b.ngIf,w(1),C("ngIf",a.length))},Zub=function(a){a&1&&(I(0),P(1,Uub,2,1,"ng-container",1),T(2,"async"),P(3,Wub,2,1,"ng-container",1),T(4,"async"),P(5,Yub,2,1,"ng-container",1),T(6,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,3,a.imageLinks$)),w(2),C("ngIf",V(4,5,a.issueReferences$)),w(2),C("ngIf",V(6,7,
a.otherLinks$)))},$ub=function(a){a&1&&(D(0,"div",4),G(1,"img",5),D(2,"p",6),Q(3," This issue has no TODOs "),F(),D(4,"p",7),Q(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),D(6,"a",8),Q(7,"Learn more"),F()()());a&2&&(a=M(3),w(1),C("src",a.ROBOT_SLEEPING,re))},avb=function(a,b){a&1&&G(0,"b-package-mentions-listing",12);if(a&2){a=b.$implicit;b=M(3).ngIf;var c=M().ngIf,d=M();C("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},
bvb=function(a){if(a&1){var b=r();I(0);P(1,avb,1,3,"b-package-mentions-listing",9);D(2,"p",10)(3,"a",11);L("click",function(){t(b);var c=M(4);return v(c.trackSqueegeeClick())});Q(4,"View in Squeegee");F()();K()}a&2&&(a=M(2).ngIf,w(1),C("ngForOf",a.mentions.packageMentionSet),w(2),C("href",a.link,re))},cvb=function(a){a&1&&P(0,bvb,5,2,"ng-container",1);a&2&&(a=M().ngIf,C("ngIf",a.mentions))},dvb=function(a,b){a&1&&(I(0),P(1,$ub,8,1,"div",2),P(2,cvb,1,1,"ng-template",null,3,Eg),K());if(a&2){a=b.ngIf;
var c=N(3);M(2);w(1);C("ngIf",!(a.mentions&&0<a.mentions.totalMentions))("ngIfElse",c)}},evb=function(a){a&1&&(I(0),P(1,dvb,4,2,"ng-container",1),T(2,"async"),K());a&2&&(a=M(),w(1),C("ngIf",V(2,1,a.codeMentionsState$)))},fvb=function(a){a&1&&G(0,"b-spinner",6);a&2&&C("large",!0)},gvb=function(a){a&1&&G(0,"b-hotlist-grid",7);a&2&&(a=M(),C("hotlists",a.hotlists))},hvb=function(a){a&1&&(D(0,"div",9),G(1,"b-spinner"),D(2,"span"),Q(3),F()());a&2&&(a=M(),w(3),S(" Searching",a.query?" for "+a.query:"","..."))},
ivb=function(a){a&1&&(I(0),Q(1," No issues match your search. "),K())},jvb=function(a){a&1&&Q(0," Use search box to find issues. ")},lvb=function(a){a&1&&(D(0,"a",16),Q(1," Click to see all open issues"),F());a&2&&C("queryParams",ng(1,kvb))},mvb=function(a){a&1&&(D(0,"a",17),Q(1,"Learn more about searching"),F())},nvb=function(a){a&1&&(D(0,"div",10),G(1,"img",11),P(2,ivb,2,0,"ng-container",12),P(3,jvb,1,0,"ng-template",null,13,Eg),P(5,lvb,2,2,"a",14),T(6,"async"),P(7,mvb,2,0,"ng-template",null,15,
Eg),F());if(a&2){var b=N(4),c=N(8);a=M();var d;C("bFocus",!0);w(1);C("src",a.SPACE_EMPTY_STATE,re);w(1);C("ngIf",a.query)("ngIfElse",b);w(3);C("ngIf",null!==(d=V(6,6,a.currentTracker.inTracker$))&&void 0!==d?d:!1)("ngIfElse",c)}},pvb=function(a){if(a&1){var b=r();D(0,"div",18)(1,"b-issues-grid",19);L("init",function(c){t(b);var d=M();return v(d.resultsGrid=c)})("columnsChange",function(c){t(b);var d=M();return v(d.issueColumns=c)})("columnsChange",function(){t(b);M();ovb();return v()})("sortChange",
function(c){t(b);var d=M();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);var d=M();return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=M();return v(Gs(c,c.page,1))})("onPrevPage",function(){t(b);var c=M();return v(Gs(c,c.page,-1))});F()()}a&2&&(a=M(),w(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},qvb=
function(a){a&1&&(D(0,"div",9),G(1,"b-spinner"),Q(2," Loading recent issues... "),F())},rvb=function(a){a&1&&(D(0,"div",10),Q(1," No recent issues found. "),F())},svb=function(a){if(a&1){var b=r();D(0,"div",11)(1,"b-issues-grid",12);L("init",function(c){t(b);var d=M();return v(d.resultsGrid=c)})("columnsChange",function(c){t(b);var d=M();return v(d.issueColumns=c)})("sortChange",function(c){t(b);var d=M();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);var d=M();return v(d.goToIssue(c.id,
c.isRead,c.event))})("onNextPage",function(){t(b);var c=M(),d;return v(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)+1))})("onPrevPage",function(){t(b);var c=M(),d;return v(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)-1))});F()()}a&2&&(a=M(),w(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},tvb=function(a,b){return b.map(function(c){var d=a.indexOf(String(c.id));return[a.length-
d,c]}).sort(function(c,d){var e=l(c);c=e.next().value;e.next();d=l(d);e=d.next().value;d.next();return c-e}).map(function(c){c=l(c);c.next();return c.next().value})},uvb=function(a){a&1&&(D(0,"div",6)(1,"h2"),Q(2,"Manage SLOs"),F(),D(3,"p",7),Q(4,"You have admin rights for all SLOs listed below."),F()())},vvb=function(a){a&1&&G(0,"b-spinner",8);a&2&&C("large",!0)},wvb=function(a){a&1&&(D(0,"div",11),Q(1,"You have no Active SLOs"),F())},xvb=function(a){a&1&&G(0,"b-slo-grid",12);a&2&&(a=M(2),C("slos",
a.activeSlos))},yvb=function(a){a&1&&(I(0),P(1,wvb,2,0,"div",9),P(2,xvb,1,1,"b-slo-grid",10),K());a&2&&(a=M(),w(1),C("ngIf",!a.activeSlos.length),w(1),C("ngIf",a.activeSlos.length))},zvb=function(a){a&1&&(D(0,"p",19),Q(1," You have no archived SLOs. "),F())},Avb=function(a){a&1&&G(0,"b-slo-grid",12);a&2&&(a=M(3),C("slos",a.archivedSlos))},Bvb=function(a){a&1&&(D(0,"div",17),P(1,zvb,2,0,"p",18),P(2,Avb,1,1,"b-slo-grid",10),F());a&2&&(a=M(2),w(1),C("ngIf",!a.archivedSlos.length),w(1),C("ngIf",a.archivedSlos.length))},
Cvb=function(a){if(a&1){var b=r();I(0);D(1,"button",13);L("click",function(){t(b);var c=M();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return v()});D(2,"h4",14);G(3,"mat-icon",15);Q(4);F()();P(5,Bvb,3,2,"div",16);K()}a&2&&(a=M(),w(3),Xf("rotate-180",a.areArchivedSlosExpanded),C("svgIcon","arrow-dropdown"),w(1),S(" Archived SLOs (",a.archivedSlos.length,") "),w(1),C("ngIf",a.areArchivedSlosExpanded))},Dvb=function(a){a&1&&(I(0),D(1,"p"),Q(2,"Team inheritance path:"),F(),G(3,"b-team-breadcrumb",
1),K());a&2&&(a=M(),w(3),C("teamPath",a.teamPath))},Evb=function(a){a&1&&(I(0),D(1,"p"),Q(2,"Component inheritance path:"),F(),G(3,"b-component-breadcrumb",2),K());a&2&&(a=M(),w(3),C("componentPathInfo",a.componentPath))},Gvb=function(a){if(a&1){var b=r();I(0);D(1,"span",5);Q(2," Data in this component is not being collected. ");D(3,"button",6);L("click",function(){t(b);var c=M(2);return v(Fvb(c))});D(4,"span",7);Q(5,"Opt into");F()();Q(6," data collection to enable ML features in this component. ");
D(7,"a",8);Q(8,"Learn more");F();Q(9,". ");F();K()}a&2&&(a=M(2),w(3),C("disabled",!a.isAdmin),w(1),C("matTooltip",a.isAdmin?"":"Only component admins can opt in."),w(3),C("href",a.helpLink,re))},Ivb=function(a){if(a&1){var b=r();D(0,"span",5);Q(1," Buganizer collects data in this component to improve ML features. ");D(2,"a",8);Q(3,"Learn more");F();Q(4," or ");D(5,"button",6);L("click",function(){t(b);var c=M(2);return v(Hvb(c))});D(6,"span",7);Q(7,"opt out");F()();Q(8,". ");F()}a&2&&(a=M(2),w(2),
C("href",a.helpLink,re),w(3),C("disabled",!a.isAdmin),w(1),C("matTooltip",a.isAdmin?"":"Only component admins can opt out."))},Kvb=function(a){if(a&1){var b=r();D(0,"div",1)(1,"h4");Q(2,"ML Features");F();P(3,Gvb,10,3,"ng-container",2);P(4,Ivb,9,3,"ng-template",null,3,Eg);D(6,"mat-slide-toggle",4);L("change",function(d){t(b);M().setDraft({duplicateAssistanceEnabled:d.checked});return v()});T(7,"async");Q(8," Show ML-suggested duplicates for issues ");F()()}if(a&2){var c=N(5);a=M();w(3);C("ngIf",null==
a.savedSettings?null:a.savedSettings.optedOutFromDataCollection)("ngIfElse",c);w(3);C("disabled",V(7,5,a.isSaving$)||!a.draftSettings||!a.isAdmin||a.draftSettings.optedOutFromDataCollection)("checked",null==a.draftSettings?null:a.draftSettings.duplicateAssistanceEnabled)("matTooltip",Jvb(a))}},Lvb=function(a){var b={};a=l(a.groupMetadata);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},Ovb=function(a){return{approximateSize:dj(a,2),groupEmail:Hi(a,1),sizeCategory:Mvb[Vi(a,
3,0)],permissionCategory:Nvb[Vi(a,5,0)]}},Qvb=function(a){var b;return{groupMetadata:(null!=(b=Ji(a,Pvb,1))?b:[]).map(Ovb)}},Svb=function(a,b){var c=[];if(!b||!a)return c;for(var d=l(Rvb),e=d.next();!e.done;e=d.next()){e=e.value;var f=ti(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},Uvb=function(a,b){if(!a.appenders||!b||ki(b.appenders,a.appenders))return!1;a=l(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,Tvb.has(c)&&!b.appenders.includes(c))return!0;
return!1},Vvb=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next())switch(c=c.value,c.sizeCategory){case "LARGE":case "HUGE":case "ENORMOUS":b.set(c.groupEmail,c)}return b},Wvb=function(a,b){return 0!==a&&0!==b?"Adding large and open groups to a public component":0!==a?1===a?"Adding a large group to a public component":"Adding large groups to a public component":1===b?"Adding an open group to a public component":"Adding open groups to a public component"},Xvb=function(a){if(0===
a.size)return Hs;for(var b=1===a.size?so("P",{},"The following large group is added: "):so("P",{},"The following large groups are added: "),c=[],d=l(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(so("P",{},to(so("B",{},e)," has approximately ",so("B",{},f)," Googlers.")))}return to(b,c)},Yvb=function(a){if(0===a.size)return Hs;var b=1===a.size?so("P",{},"The following open group is added: "):so("P",{},"The following open groups are added: "),c=[];a=l(a.keys());
for(var d=a.next();!d.done;d=a.next())c.push(so("P",{},so("B",{},d.value)));return to(b,c)},Zvb=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,"OPEN_TO_JOIN"===c.permissionCategory&&b.set(c.groupEmail,c);return b},$vb=function(a,b){var c=b.restrictedPlusReaders;return 0<a.restrictedPlusReaders.filter(function(d){return!c.includes(d)}).filter(function(d){return d.startsWith("GROUP:")}).length},awb=function(a,b,c){a="USER:"+a;b=b.admins.concat(b.inheritedAdmins);var d=
c.admins.concat(c.inheritedAdmins);c=b.filter(function(f){return!d.includes(f)});b=c.filter(function(f){return f.startsWith("GROUP:")});var e=c.filter(function(f){return f.startsWith("USER:")});return d.includes(a)||0===c.length?!1:e.includes(a)?!0:b.length?!0:!1},Is=function(a){var b=a.split(":");a=b[0];return"ALIAS"===a?(b=b[1],{value:b,displayText:Upa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},bwb=function(a,b){a&1&&G(0,"b-contact-chip",
6);a&2&&(a=b.$implicit,b=M(2),C("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},cwb=function(a,b){a&1&&(I(0),D(1,"tr",3)(2,"th",4),Q(3),F(),D(4,"td"),P(5,bwb,1,5,"b-contact-chip",5),F()(),K());a&2&&(a=b.$implicit,w(3),jg(a.permission),w(2),C("ngForOf",a.principals))},gwb=function(a){var b="minimal";b=void 0===b?"expanded":b;a=dwb(a);a=lHa(a,function(c){c=ewb(c);return fwb(c,b)});return dwb(a)},iwb=
function(a){a=dwb(a);a=lHa(a,function(b){b=hwb(b);return ewb(b)});return dwb(a)},fwb=function(a,b){var c="expanded"===b?jwb:kwb;return new Set([].concat(p(a)).flatMap(function(d){return[].concat(p(c.get(d)))}))},hwb=function(a){return new Set(Js.filter(function(b){return Cpa(a,kwb.get(b))}))},ewb=function(a){a=fwb(a,"expanded");var b=hwb(a);return new Set([].concat(p(b)).filter(function(c){return[].concat(p(lwb.get(c))).every(function(d){return!b.has(d)})}))},dwb=function(a){var b=new Map;a=l(a.entries());
for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d=l(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;b.set(e,(null!=(f=b.get(e))?f:new Set).add(c))}}return b},nwb=function(){function a(f,h){c.has(f)||c.set(f,new Set);var k=c.get(f);k.add(h);var q;h=l(null!=(q=b.get(h))?q:[]);for(q=h.next();!q.done;q=h.next())q=q.value,k.has(q)||a(f,q)}var b=mwb,c=new Map,d=[].concat(p(b.values())).flatMap(function(f){return[].concat(p(f))});d=l(new Set([].concat(p(b.keys()),
p(d))));for(var e=d.next();!e.done;e=d.next())e=e.value,a(e,e);return c},owb=function(a){var b=gwb(new Map([["componentAdmin",new Set(a.componentAdmin)],["issueAdmin",new Set(a.issueAdmin)],["issueEditor",new Set(a.editor)],["issueContributor",new Set(a.contributor)],["componentAdminOnly",new Set(a.componentAdminOnly)],["issueCreator",new Set(a.createIssuesOnly)],["issueAdminOnly",new Set(a.issueAdminOnly)],["issueEditorExisting",new Set(a.editExistingIssuesOnly)],["issueCommenter",new Set(a.commentOnly)],
["restrictedPlusViewer",new Set(a.viewRestrictedPlus)],["restrictedViewer",new Set(a.viewRestricted)],["issueViewer",new Set(a.viewer)]])),c=function(d){var e;return[].concat(p(null!=(e=b.get(d))?e:[])).sort()};return{componentPermissions:{inheritedAdmins:a.inheritedComponentAdmin,admins:c("componentAdmin"),appenders:c("componentAppender")},issuesPermissions:{admins:c("issueAdmin"),editors:c("issueEditor"),appenders:c("issueAppender"),readers:c("issueReader"),restrictedReaders:c("issueRestrictedReader"),
restrictedPlusReaders:c("issueRestrictedPlusReader")}}},pwb=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return Tj([].concat(p(b?[].concat(p(b.inheritedAdmins||[]),p(b.admins||[]),p(b.appenders||[])):[]),p(a?[].concat(p(a.admins||[]),p(a.editors||[]),p(a.appenders||[]),p(a.readers||[]),p(a.restrictedReaders||[]),p(a.restrictedPlusReaders||[])):[]))).sort()},rwb=function(a){function b(e){var f;return[].concat(p(null!=(f=d.get(e))?f:[])).sort()}if(!a)return qwb;var c=a.issueAccessPolicy;
a=a.componentAccessPolicy;var d=iwb(new Map([["issueAdmin",new Set(c.admins)],["issueEditor",new Set(c.editors)],["issueAppender",new Set(c.appenders)],["issueReader",new Set(c.readers)],["issueRestrictedReader",new Set(c.restrictedReaders)],["issueRestrictedPlusReader",new Set(c.restrictedPlusReaders)],["componentAdmin",new Set(a.admins)],["componentAppender",new Set(a.appenders)],["componentReader",new Set(a.readers)]]));return{componentAdmin:b("componentAdmin"),issueAdmin:b("issueAdmin"),editor:b("issueEditor"),
contributor:b("issueContributor"),componentAdminOnly:b("componentAdminOnly"),createIssuesOnly:b("issueCreator"),issueAdminOnly:b("issueAdminOnly"),editExistingIssuesOnly:b("issueEditorExisting"),commentOnly:b("issueCommenter"),viewRestrictedPlus:b("restrictedPlusViewer"),viewRestricted:b("restrictedViewer"),viewer:b("issueViewer"),inheritedComponentAdmin:a.inheritedAdmins}},swb=function(a,b){var c;(c=!b)||(c=!(!ki([].concat(p(b.admins)).sort(),[].concat(p(a.admins)).sort())||!ki([].concat(p(b.appenders)).sort(),
[].concat(p(a.appenders)).sort())||!ki(b.implicitAccess,a.implicitAccess)));return!c},twb=function(a,b){return b&&a?!ki([].concat(p(a.admins)).sort(),[].concat(p(b.admins)).sort())||!ki([].concat(p(a.editors)).sort(),[].concat(p(b.editors)).sort())||!ki([].concat(p(a.appenders)).sort(),[].concat(p(b.appenders)).sort())||!ki([].concat(p(a.readers)).sort(),[].concat(p(b.readers)).sort())||!ki([].concat(p(a.restrictedReaders)).sort(),[].concat(p(b.restrictedReaders)).sort())||!ki([].concat(p(a.restrictedPlusReaders)).sort(),
[].concat(p(b.restrictedPlusReaders)).sort()):!1},uwb=function(a,b){var c=Object.keys(a);c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!rra(a[d],b[d]))return!0;return!1},vwb=function(a){if(a&1){var b=r();D(0,"input",17);L("ngModelChange",function(c){t(b);var d=M(2);return v(d.rolesEditor.component.accessLimit.accessLevel=c)});F()}a&2&&(a=M(2),C("disabled",!a.rolesEditor.isAdmin)("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},wwb=function(a){if(a&1){var b=r();D(0,"input",
18);L("ngModelChange",function(c){t(b);var d=M(2);return v(d.rolesEditor.component.accessLimit.accessLevel=c)});F()}a&2&&(a=M(2),C("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},xwb=function(a){if(a&1){var b=r();D(0,"input",19);L("ngModelChange",function(c){t(b);var d=M(2);return v(d.rolesEditor.component.accessLimit.accessLevel=c)});F()}a&2&&(a=M(2),C("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},
ywb=function(a){a&1&&(D(0,"div",3)(1,"div",4)(2,"span",5),Q(3,"Component visibility: "),F()(),D(4,"div",6)(5,"div",7),P(6,vwb,1,2,"input",8),D(7,"label",9),Q(8),F()(),D(9,"div",7),P(10,wwb,1,2,"input",10),D(11,"label",11),Q(12),F()(),D(13,"div",12),P(14,xwb,1,2,"input",13),D(15,"label",14),Q(16),F()()(),D(17,"p",15)(18,"a",16),Q(19," Learn more "),F()()());a&2&&(a=M(),w(6),C("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),w(2),S(" ",QQa(a.AccessLevelStrings.INTERNAL)," "),w(2),
C("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),w(2),S(" ",QQa(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),w(2),C("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),w(2),S(" ",QQa(a.AccessLevelStrings.EXTERNAL_PUBLIC)," "),w(2),a=a.documentationLinks,a=a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"http://go/buganizer-external-access",C("href",a,re))},Dwb=function(a,b){if(a&1){var c=r();I(0);D(1,"tr")(2,"td")(3,"div",2)(4,
"div",3)(5,"label",4);Q(6);F();D(7,"button",5);G(8,"mat-icon",6);F()();D(9,"b-multi-user-input",7);L("usersChange",function(e){var f=t(c).$implicit,h=M();return v(h.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=t(c).$implicit,h=M();h.aclFormValidity.set(f.roleType,e);e=[].concat(p(h.aclFormValidity.values())).every(Boolean);h.formIsValid.emit(e);return v()});F()()();D(10,"td");G(11,"b-icon",8);F();D(12,"td");G(13,"b-icon",8);F();D(14,"td");G(15,"b-icon",8);F();D(16,"td");G(17,"b-icon",
8);F();D(18,"td");G(19,"b-icon",8);F();D(20,"td");G(21,"b-icon",8);F();D(22,"td");G(23,"b-icon",8);F();D(24,"td");G(25,"b-icon",8);F()();K()}if(a&2){a=b.$implicit;b=M();var d;w(3);Xf("bv2-edit-resource-readonly",b.canEdit);w(2);C("htmlFor",a.roleType);w(1);jg(a.label);w(1);C("matTooltip",a.tooltip);w(2);C("idForInputBox",a.roleType)("users",a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",null!==(d=a.customValidators)&&void 0!==d?d:ng(22,zwb))("includeAliases",a.includeAliases)("includeViewAliases",
a.includeViewAliases)("containerChips",(null==a.chips?0:a.chips.values)&&0<a.chips.values.length?og(26,Awb,pg(23,Bwb,a.chips.displayText,a.chips.values)):ng(28,Cwb));Nf("disabled",b.canEdit?null:!0);w(2);C("name",b.getIconName(a,"componentAdmin"));w(2);C("name",b.getIconName(a,"createIssues"));w(2);C("name",b.getIconName(a,"issueAdmin"));w(2);C("name",b.getIconName(a,"issueEditor"));w(2);C("name",b.getIconName(a,"issueCommenter"));w(2);C("name",b.getIconName(a,"issueReader"));w(2);C("name",b.getIconName(a,
"restrictedReader"));w(2);C("name",b.getIconName(a,"restrictedPlusReader"))}},Ewb=function(a){a&1&&(D(0,"div",2),G(1,"b-spinner"),F())},Gwb=function(a){if(a&1){var b=r();D(0,"div")(1,"div",3)(2,"mat-tab-group")(3,"mat-tab",4)(4,"roles-view",5);L("saveRolesMap",function(c){t(b);var d=M();Fwb(d.rolesEditor,c);return v()});F()();D(5,"mat-tab",6);G(6,"permissions-view",7);F()()()()}a&2&&(a=M(),w(4),C("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",
a.rolesEditor),w(2),C("componentReaders",a.rolesEditor.componentReaders)("componentAccessPolicy",a.rolesEditor.componentFlattenedAccessPolicy)("issueAccessPolicy",a.rolesEditor.issueDefaultFlattenedAccessPolicy)("accessLevel",null==a.rolesEditor.component?null:null==a.rolesEditor.component.accessLimit?null:a.rolesEditor.component.accessLimit.accessLevel))},Iwb=function(a){if(a&1){var b=r();D(0,"b-button",14,15);L("onAction",function(){t(b);var c=M(3);return v(Hwb(c))});Q(2);F()}a&2&&(a=M(3),C("disabled",
a.isSaving()),w(2),S(" ",a.archiveAction," Component "))},Jwb=function(a){if(a&1){var b=r();D(0,"b-button",16);L("onAction",function(){t(b);var c=M(3);return v(c.createIssue())});Q(1," Create Issue ");F()}a&2&&(a=M(3),C("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},Kwb=function(a){a&1&&(I(0),D(1,"a",11),Q(2," Browse Components "),F(),P(3,Iwb,3,2,"b-button",12),P(4,Jwb,2,2,"b-button",13),K());a&2&&(a=M(2),w(1),C("routerLinkObj",a.componentListRoute(a.component.componentId)),
w(2),C("ngIf",a.isAdmin()),w(1),C("ngIf",!a.isAnonymous))},Lwb=function(a){a&1&&(D(0,"div",17),G(1,"b-spinner"),F())},Mwb=function(a){a&1&&(D(0,"span",38),Q(1," (archived) "),F())},Nwb=function(a){a&1&&bg(0)},Owb=function(a){a&1&&bg(0)},Pwb=function(a){a&1&&bg(0)},Qwb=function(a){a&1&&bg(0)},Rwb=function(a){a&1&&bg(0)},Twb=function(a){if(a&1){var b=r();D(0,"div",78)(1,"div",48)(2,"label",79)(3,"span",45);Q(4,"Parent Component");F()();D(5,"span",50)(6,"div",80)(7,"strong");Q(8,"Careful!");F();Q(9,
" Moving this component can have significant consequences. If this component has custom fields that are defined on the parent or ancestor components, those fields will be lost, and issues in this component will no longer display those fields. ");D(10,"div",52);G(11,"div",53)(12,"div",54);F()()()();D(13,"b-team-component-picker",81);L("selectedComponentChange",function(c){t(b);var d=M(4);return v(d.parentComponent=null!==c&&void 0!==c?c:null)});F()()}a&2&&(a=M(4),w(2),Xf("required",a.isParentComponentRequired&&
!Swb(a)),w(11),C("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired&&!Swb(a)))},Uwb=function(a){a&1&&(D(0,"a",82),Q(1," Learn more "),F());a&2&&(M(4),C("href",Tfb(),re))},Vwb=function(a){if(a&1){var b=r();D(0,"div",83)(1,"label",84)(2,"span",45);Q(3,"Retention Settings");F()();D(4,"div",85)(5,"p");Q(6,"Please choose a period of time to retain the data stored in this component.");G(7,"br");D(8,"a",86);Q(9," Learn more ");F()()();D(10,"div",
87)(11,"b-retention-settings-form",88);L("modelChange",function(c){t(b);var d=M(4);return v(d.component.retentionSettings=c)})("validChange",function(c){t(b);M(4).retentionIsValid=c;return v()});F()()()}a&2&&(a=M(4),Xf("bv2-edit-resource-readonly",!a.isAdmin()),w(8),C("href",Ks(),re),w(3),C("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("initialModel",a.component.retentionSettings))},Xwb=function(a){if(a&1){var b=r();D(0,"div",92)(1,"b-component-team-picker",93);L("modelChange",
function(c){t(b);var d=M(5);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&Wwb(d);return v()});F()()}a&2&&(a=M(5),w(1),hg("anchorTarget",a.hasUnsavedChanges()?"_blank":"_self"),C("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",null==a.parentComponent?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},Ywb=function(a){a&1&&(D(0,"div",89)(1,"label",90)(2,"span",45),Q(3,"Team Configuration"),F()(),P(4,Xwb,
2,6,"div",91),F());a&2&&(a=M(4),Xf("bv2-edit-resource-readonly",!a.isAdmin()),w(4),C("ngIf",a.component.team))},Zwb=function(a){a&1&&(D(0,"a",106),Q(1),F());if(a&2){a=M().ngIf;var b=M(5),c;C("routerLinkObj",b.getSloManagementLink(a.id));w(1);S(" ",null!==(c=null==a.slo?null:a.slo.name)&&void 0!==c?c:a.id," ")}},$wb=function(a){a&1&&Q(0," None ")},axb=function(a,b){a&1&&(D(0,"div",103),Q(1," Inherited SLO Policy: "),P(2,Zwb,2,2,"a",104),P(3,$wb,1,0,"ng-template",null,105,Eg),F());if(a&2){a=b.ngIf;
var c=N(4);w(2);C("ngIf","0"!==a.id)("ngIfElse",c)}},bxb=function(a){a&1&&(D(0,"a",111),Q(1),T(2,"titlecase"),F());a&2&&(a=M().ngIf,C("routerLinkObj",a.link),w(1),kg(" (",V(2,3,a.type),") ",a.name," "))},cxb=function(a){a&1&&Q(0," None ")},dxb=function(a){a&1&&(D(0,"div",113),G(1,"slo-inheritance-breadcrumbs",114),F());a&2&&(a=M().ngIf,w(1),C("componentPath",a.componentPath)("teamPath",a.teamPath))},exb=function(a){a&1&&(I(0),P(1,dxb,2,2,"div",112),K());a&2&&(a=M(6),w(1),C("ngIf",a.showSloInheritancePath))},
fxb=function(a,b){if(a&1){var c=r();D(0,"div",107);Q(1," Policy Source: ");P(2,bxb,3,5,"a",108);P(3,cxb,1,0,"ng-template",null,109,Eg);D(5,"button",110);L("click",function(){t(c);var e=M(5);return v(e.showSloInheritancePath=!e.showSloInheritancePath)});Q(6);F();P(7,exb,2,1,"ng-container",7);T(8,"async");F()}if(a&2){a=b.ngIf;var d=N(4);b=M(5);w(2);C("ngIf",a.link)("ngIfElse",d);w(3);Nf("aria-expanded",b.showSloInheritancePath);w(1);S(" ",b.showSloInheritancePath?"Hide":"Show"," full path ");w(1);C("ngIf",
V(8,5,b.policySourcePath$))}},gxb=function(a){a&1&&(I(0),Q(1,", "),D(2,"a",116),Q(3,"Team Leads"),F(),K());a&2&&(a=M(7),w(2),C("routerLinkObj",{path:"/teams/"+a.component.team.id+"/edit",fragment:"basic"}))},hxb=function(a){a&1&&(I(0),Q(1," SLO Admins: "),D(2,"a",116),Q(3,"Component Admins"),F(),P(4,gxb,4,1,"ng-container",7),K());a&2&&(a=M(6),w(2),C("routerLinkObj",a.componentPermissions(a.componentId)),w(2),C("ngIf",a.component.team&&"0"!==a.component.team.id))},ixb=function(a){a&1&&(D(0,"div",115),
P(1,hxb,5,2,"ng-container",7),F());a&2&&(a=M(5),w(1),C("ngIf",a.enableTeamLeadSloEditingUi))},jxb=function(a){a&1&&(I(0),G(1,"mat-icon",118),Q(2," on "),K())},kxb=function(a){a&1&&(G(0,"mat-icon",119),Q(1," off "))},lxb=function(a){a&1&&(I(0),Q(1," Lock: "),P(2,jxb,3,0,"ng-container",0),T(3,"async"),P(4,kxb,2,0,"ng-template",null,117,Eg),K());if(a&2){var b=N(5);a=M(5);w(2);C("ngIf",V(3,2,a.sloLocked$))("ngIfElse",b)}},nxb=function(a){if(a&1){var b=r();D(0,"div",120)(1,"mat-checkbox",121);L("change",
function(c){t(b);var d=M(5);c=c.checked;d.component.slo.inherit=!c;c||Wwb(d);return v()});D(2,"span");Q(3,"Override the inherited SLO policy");F()()()}a&2&&(a=M(5),w(1),C("checked",!a.component.slo.inherit)("disabled",!mxb(a)))},oxb=function(a){if(a&1){var b=r();D(0,"div",128)(1,"label",129);Q(2," Justification ");F();G(3,"mat-icon",130);D(4,"textarea",131);L("ngModelChange",function(c){t(b);var d=M(6);return v(d.component.slo.comment=c)});F()()}a&2&&(a=M(6),w(4),C("ngModel",a.component.slo.comment)("disabled",
!Ls(a)))},pxb=function(a){a&1&&(D(0,"a",132),G(1,"mat-icon",133),F());a&2&&(a=M(6),hg("target",a.hasUnsavedChanges()?"_blank":"_self"),C("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},txb=function(a){if(a&1){var b=r();I(0);P(1,oxb,5,2,"div",122);D(2,"mat-slide-toggle",123);L("ngModelChange",function(c){t(b);var d=M(5);return v(d.isEnableSloChecked=c)})("change",function(c){t(b);var d=M(5);c=c.checked;d.isEnableSloChecked=c;c||(d.component.slo.id="0");return v()});Q(3," Enable SLO ");
F();D(4,"div",124)(5,"label",125);Q(6,"SLO policy");F();D(7,"slo-picker",126);L("onSloSelect",function(c){t(b);var d=M(5);return v(d.onSloChange(c))});F();P(8,pxb,2,2,"a",127);F();K()}a&2&&(a=M(5),w(1),C("ngIf",qxb(a)),w(1),Xf("indented",rxb(a)),C("ngModel",a.isEnableSloChecked)("disabled",!sxb(a)),w(5),C("bv2Disabled",!a.isEnableSloChecked||!sxb(a))("boundId",a.component.slo.id)("bv2Placeholder",a.isEnableSloChecked&&sxb(a)?"Type to search for an SLO":"SLO disabled"),w(1),C("ngIf",a.component.slo.id&&
"0"!==a.component.slo.id))},uxb=function(a){a&1&&(D(0,"div",94)(1,"div",48)(2,"label",95)(3,"span",45),Q(4,"SLO Configuration"),F()(),D(5,"span",50)(6,"div",96)(7,"strong"),Q(8,"Careful!"),F(),Q(9," Changing the SLO (service level objective) of a component has the potential to impact the Buganizer SLO compliance status of every issue under that component. "),D(10,"div",52),G(11,"div",53)(12,"div",54),F()()()(),D(13,"div",97),P(14,axb,5,2,"div",98),T(15,"async"),P(16,fxb,9,7,"div",99),T(17,"async"),
P(18,ixb,2,1,"div",100),D(19,"div",101),P(20,lxb,6,4,"ng-container",7),F()(),P(21,nxb,4,2,"div",102),P(22,txb,9,9,"ng-container",7),F());if(a&2){a=M(4);Xf("bv2-edit-resource-readonly",!Ls(a));w(14);C("ngIf",V(15,8,a.inheritedSlo$));w(2);C("ngIf",V(17,10,a.sloPolicySource$));w(2);C("ngIf",a.sessionIsInternal);w(2);C("ngIf",a.enableSloLockingUi);w(1);C("ngIf",rxb(a));w(1);if(a.component&&a.component.slo){var b=!!a.component.team&&"0"!==a.component.team.id,c=!a.component.slo.inherit;a=0===a.component.parentComponentId&&
!b||c}else a=!1;C("ngIf",a)}},vxb=function(a){if(a&1){var b=r();D(0,"recommendation-settings",134);L("hasUnsavedChanges",function(c){t(b);var d=M(4);return v(d.hasUnsavedRecommendationSettings=c)})("isSaving",function(c){t(b);var d=M(4);return v(d.savingRecommendationSettings=c)});F()}a&2&&(a=M(4),C("componentId",a.componentId))},wxb=function(a){if(a&1){var b=r();D(0,"div",74)(1,"b-button",135);L("onAction",function(){t(b);var c=M(4);return v(c.saveMetadata())});Q(2," Update ");F();D(3,"b-button",
136);L("onAction",function(){t(b);var c=M(4);return v(c.revertMetadataChanges())});Q(4," Revert Changes ");F();D(5,"b-button",136);L("onAction",function(){t(b);var c=M(4);return v(c.createChild())});Q(6," Create Child Component ");F()()}a&2&&(a=M(4),w(1),C("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),w(2),C("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),w(2),C("disabled",a.hasUnsavedMetadataChanges()))},xxb=function(a){if(a&1){var b=r();D(0,"b-button",137);L("onAction",function(){t(b);
var c=M(4);return v(c.showUpdateHistoryModal())});Q(1," View History ");F()}},yxb=function(a){a&1&&G(0,"b-spinner")},zxb=function(a){if(a&1){var b=r();D(0,"b-component-children-list",138);L("onVisit",function(){t(b);var c=M(4);return v(c.trackClick("openChildComponent"))});F()}a&2&&(a=M(4),C("children",a.childComponents))},Axb=function(a){a&1&&(D(0,"span"),Q(1," No child components. "),F())},Bxb=function(a){if(a&1){var b=r();D(0,"div",39)(1,"form",40,41);G(3,"b-error-banner",42);D(4,"div",43)(5,"label",
44)(6,"span",45);Q(7,"Name");F()();D(8,"input",46);L("ngModelChange",function(c){t(b);var d=M(3);return v(d.component.name=c)});F()();D(9,"div",47)(10,"div",48)(11,"label",49)(12,"span",45);Q(13,"Description");F()();D(14,"span",50)(15,"div",51);Q(16," The description will be used during component searches. You can add previous project names or keywords that will help users search for your component. ");D(17,"div",52);G(18,"div",53)(19,"div",54);F()()()();D(20,"textarea",55);L("ngModelChange",function(c){t(b);
var d=M(3);return v(d.component.description=c)});Q(21,"            ");F()();P(22,Twb,14,5,"div",56);D(23,"div",57)(24,"div",58)(25,"mat-checkbox",59);L("change",function(c){t(b);var d=M(3);return v(d.setCommentEditState(c.checked))});F()();D(26,"div")(27,"strong",60);Q(28,"Editable Comments");F();D(29,"div",61);Q(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");G(31,"br");P(32,Uwb,2,1,"a",62);F()()();P(33,Vwb,12,6,
"div",63);P(34,Ywb,5,3,"div",64);P(35,uxb,23,12,"div",65);D(36,"div",66)(37,"div",48)(38,"label",67)(39,"span",45);Q(40,"Component Alias");F()();D(41,"span",50)(42,"div",68);Q(43," You can create a new issue in this component by sending an email to this alias. ");G(44,"br");D(45,"a",69);Q(46," Learn more ");F();D(47,"div",52);G(48,"div",53)(49,"div",54);F()()()();D(50,"div")(51,"a",70);Q(52);F()()();P(53,vxb,1,1,"recommendation-settings",71);D(54,"div",72);P(55,wxb,7,3,"div",73);D(56,"div",74);P(57,
xxb,2,0,"b-button",75);F()();D(58,"div",76)(59,"label")(60,"span",45);Q(61,"Child Components");F()();P(62,yxb,1,0,"b-spinner",7);P(63,zxb,1,1,"b-component-children-list",77);P(64,Axb,2,0,"span",7);F()()()}a&2&&(a=M(3),w(1),Xf("show-errors",a.error),w(2),C("error",a.error),w(1),Xf("bv2-edit-resource-readonly",Ms(a)),w(4),C("ngModel",a.component.name)("disabled",Ms(a)),w(1),Xf("bv2-edit-resource-readonly",Ms(a)),w(11),C("ngModel",a.component.description)("disabled",Ms(a)),w(2),C("ngIf",a.isAdmin()),
w(1),Xf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),w(2),C("checked",a.commentEditsEnabled)("disabled",Ms(a)),w(7),C("ngIf",!a.sessionIsExternal),w(1),C("ngIf",!a.sessionIsExternal),w(1),C("ngIf",a.sessionIsInternal),w(1),C("ngIf",a.component.slo&&a.sessionIsInternal),w(10),C("href",a.documentationLinks.baseDocumentationUrl+"/guides/create-issue-email",re),w(6),gg("href","mailto:",a.component.emailAlias,"",re),Nf("aria-label","Component Alias -"+a.component.emailAlias),w(1),jg(a.component.emailAlias),
w(1),C("ngIf",a.enableRecommendationSettingsPage&&a.sessionIsInternal),w(2),C("ngIf",a.isEditorInternal||Ls(a)),w(2),C("ngIf",a.componentHistoryUiEnabled),w(5),C("ngIf",void 0===a.childComponents),w(1),C("ngIf",a.childComponents&&0<a.childComponents.length),w(1),C("ngIf",a.childComponents&&0===a.childComponents.length))},Cxb=function(a){a&1&&(D(0,"div",143),Q(1," Standard Fields "),F())},Exb=function(a){if(a&1){var b=r();D(0,"b-component-standard-fields",144);L("updateComponent",function(c){t(b);
var d=M(4);return v(Dxb(d,c))});F()}a&2&&(a=M(4),C("effortSpec",a.component.effortSpec)("parentEffortSpec",null==a.parentComponent?null:a.parentComponent.effortSpec)("disabled",!a.isEditorInternal))},Fxb=function(a){a&1&&(D(0,"div",145),Q(1," Custom Fields "),F())},Gxb=function(a){a&1&&(P(0,Cxb,2,0,"div",139),P(1,Exb,1,3,"b-component-standard-fields",140),P(2,Fxb,2,0,"div",141),G(3,"b-component-custom-fields",142));a&2&&(a=M(3),C("ngIf",a.sessionIsInternal&&!a.isExternal()),w(1),C("ngIf",a.sessionIsInternal&&
!a.isExternal()),w(1),C("ngIf",a.sessionIsInternal&&!a.isExternal()),w(1),C("editMode",a.isEditorInternal)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},Ixb=function(a){a&1&&(D(0,"a",149),Q(1," Learn more "),F());a&2&&(M(4),C("href",Hxb(),re))},Kxb=function(a){if(a&1){var b=r();D(0,"div",39)(1,"div",146);Q(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");P(3,Ixb,2,1,"a",
147);F();D(4,"b-field-reorder",148);L("onReload",function(){t(b);var c=M(3);return v(Jxb(c))});F()()}a&2&&(a=M(3),w(3),C("ngIf",a.sessionIsInternal),w(1),C("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},Lxb=function(a){a&1&&G(0,"b-edit-templates",151);a&2&&(a=M(4),C("componentId",a.componentId)("supportCustomFields",!0))},Mxb=function(a){a&1&&(D(0,"div"),Q(1),F());a&2&&(a=M().$implicit,w(1),jg(a.description))},Nxb=
function(a,b){a&1&&(D(0,"div",153)(1,"label"),Q(2),F(),P(3,Mxb,2,1,"div",7),D(4,"div")(5,"a",70),Q(6),F()()());a&2&&(a=b.$implicit,w(2),jg(a.name),w(1),C("ngIf",a.description),w(2),C("href",a.url,re),Nf("aria-label","Click to open the template "+a.name),w(1),jg(a.url))},Oxb=function(a){a&1&&(I(0),P(1,Nxb,7,5,"div",152),K());a&2&&(a=M(4),w(1),C("ngForOf",a.templates))},Pxb=function(a){a&1&&(D(0,"div",39),P(1,Lxb,1,2,"b-edit-templates",150),P(2,Oxb,2,1,"ng-container",7),F());a&2&&(a=M(3),w(1),C("ngIf",
a.isEditorInternal),w(1),C("ngIf",!a.isEditorInternal))},Qxb=function(a){a&1&&G(0,"role-based-permissions")},Rxb=function(a){if(a&1){var b=r();D(0,"div")(1,"div",18)(2,"h2");Q(3);F();P(4,Mwb,2,0,"span",19);D(5,"a",20);L("click",function(){t(b);var k=M(2);return v(k.trackClick("recentIssues"))});Q(6," (Recent Issues)");F();G(7,"b-access-level-indicator",21)(8,"b-tracker-chip-smart",22);F();D(9,"div",23);G(10,"b-component-breadcrumb",24)(11,"div",25);F();D(12,"mat-tab-group",26);L("selectedIndexChange",
function(k){t(b);var q=M(2);return v(q.tabChange(k))});D(13,"mat-tab",27);P(14,Nwb,1,0,"ng-container",28);F();D(15,"mat-tab",29);P(16,Owb,1,0,"ng-container",28);F();D(17,"mat-tab",30);P(18,Pwb,1,0,"ng-container",28);F();D(19,"mat-tab",31);P(20,Qwb,1,0,"ng-container",28);F();D(21,"mat-tab",32);P(22,Rwb,1,0,"ng-container",28);F()();P(23,Bxb,65,30,"ng-template",null,33,Eg);P(25,Gxb,4,7,"ng-template",null,34,Eg);P(27,Kxb,5,5,"ng-template",null,35,Eg);P(29,Pxb,3,2,"ng-template",null,36,Eg);P(31,Qxb,1,
0,"ng-template",null,37,Eg);F()}if(a&2){var c=N(24),d=N(26),e=N(28),f=N(30),h=N(32);a=M(2);w(3);kg(" Component ",a.component.componentId,": ",a.currentName," ");w(1);C("ngIf",a.isArchived());w(1);C("routerLinkObj",a.getRecentIssuesLink());w(2);C("accessLevel",a.getComponentAccessLevel());w(1);C("trackerId",a.component.trackerId);w(2);C("componentPathInfo",a.component.componentPathInfo)("isArchived",a.isArchived())("label","Parent Component");w(2);C("selectedIndex",a.selectedTabIndex);w(1);C("id",
a.Tab.BASIC);w(1);C("ngTemplateOutlet",c);w(1);C("id",a.Tab.CUSTOM_FIELDS)("label",a.sessionIsInternal&&!a.isExternal()?"Fields":"Custom Fields");w(1);C("ngTemplateOutlet",d);w(1);C("id",a.Tab.FIELD_ORDERING);w(1);C("ngTemplateOutlet",e);w(1);C("id",a.Tab.TEMPLATES);w(1);C("ngTemplateOutlet",f);w(1);C("id",a.Tab.ACCESS);w(1);C("ngTemplateOutlet",h)}},Sxb=function(a){a&1&&(D(0,"span")(1,"p"),Q(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),
G(3,"br"),D(4,"a",159),Q(5," Learn more "),F()(),D(6,"p"),Q(7," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),G(8,"br"),Q(9," so they can be scheduled for deletion. "),D(10,"a",160),Q(11," Learn more "),F()()());a&2&&(M(3),w(4),C("href","http://go/archived-components",re),w(6),C("href",Ks(),re))},Txb=function(a){a&1&&(D(0,"span"),Q(1," : "),D(2,"b"),Q(3),F()());if(a&2){a=M().$implicit;var b=M(3);Xf("b-archive-warning-indef",
!a.retentionSettings.retentionPeriodDays);w(3);jg(b.getRetentionPeriod(a))}},Uxb=function(a,b){a&1&&(D(0,"span")(1,"span"),Q(2),F(),P(3,Txb,4,3,"span",161),G(4,"br"),F());a&2&&(a=b.$implicit,b=M(3),w(2),jg(a.componentPath),w(1),C("ngIf","Archive"===b.archiveAction))},Vxb=function(a){if(a&1){var b=r();D(0,"h2",154);Q(1);F();D(2,"mat-dialog-content");P(3,Sxb,12,2,"span",7);D(4,"p");Q(5," The following components will be affected: ");F();D(6,"div",155);P(7,Uxb,5,2,"span",156);F()();D(8,"mat-dialog-actions")(9,
"button",157);L("click",function(){t(b);var c=M(2);c.archive();c.isArchiving=!1;return v()});Q(10," Yes ");F();D(11,"button",158);L("click",function(){t(b);M(2).isArchiving=!1;return v()});Q(12," No ");F()()}a&2&&(a=M(2),w(1),jg(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'" and its subcomponents?':""),w(2),C("ngIf","Archive"===a.archiveAction),w(4),C("ngForOf",a.descendants))},Wxb=function(a){if(a&1){var b=r();I(0);D(1,"div",2)(2,"div",
3)(3,"div",4)(4,"b-button",5);L("onAction",function(){t(b);var c=M();return v(c.back())});G(5,"b-icon",6);F();P(6,Kwb,5,3,"ng-container",7);F()()();D(7,"div",8);P(8,Lwb,2,0,"div",9);P(9,Rxb,33,21,"div",7);F();P(10,Vxb,13,3,"ng-template",null,10,Eg);K()}a&2&&(a=M(),w(6),C("ngIf",a.component),w(2),C("ngIf",a.isLoading),w(1),C("ngIf",!a.isLoading&&a.component&&a.component.componentId))},Xxb=function(a){a&1&&(D(0,"div",162),G(1,"b-tracker-redirect",163),F());a&2&&(a=M(),w(1),C("component",a.component))},
Yxb=function(a){var b=null;if("TEAM"===a.containerType)var c=a.content.sourceTeamId;else c=a.content.sourceTeamId,b=a.content.sourceComponentId;return{sourceTeamId:c,sourceComponentId:b}},Zxb=function(a,b){var c=a.componentPathInfo;a=c.componentPathId;c=c.componentPathName;var d=a.findIndex(function(e){return""+e===b});return{componentPathId:a.slice(d),componentPathName:null==c?void 0:c.slice(d)}},$xb=function(a,b,c,d){(null==c?0:c.inherit)||"0"!==(null==c?void 0:c.id)||!d||(a=d);if(!a)return null;
c=a.pathNames;a=a.pathIds;d=[];for(var e=a.findIndex(function(f){return f===b});e<a.length;e++)d.push({id:a[e],name:c[e]});return d},ayb=function(a,b){a&1&&(D(0,"div",40),G(1,"b-team-breadcrumb",41),F());a&2&&(a=b.ngIf,w(1),C("teamPath",a))},byb=function(a,b){a&1&&(I(0),Q(1),K());a&2&&(a=b.ngIf,w(1),jg(a.trim()))},cyb=function(a){a&1&&Q(0," No description ")},dyb=function(a,b){a&1&&(I(0),G(1,"b-multi-user-input",42),K());a&2&&(a=b.ngIf,w(1),C("users",a),Nf("disabled",!0))},eyb=function(a){a&1&&(I(0),
D(1,"p"),Q(2,"No child teams"),F(),K())},fyb=function(a,b){a&1&&(I(0),G(1,"br"),D(2,"a",45),Q(3),F(),K());a&2&&(a=b.$implicit,w(2),gg("routerLink","/teams/",a.id,"/edit"),w(1),jg(a.name))},gyb=function(a){a&1&&P(0,fyb,4,2,"ng-container",44);a&2&&(a=M().ngIf,C("ngForOf",a))},hyb=function(a,b){a&1&&(I(0),P(1,eyb,3,0,"ng-container",18),P(2,gyb,1,1,"ng-template",null,43,Eg),K());if(a&2){a=b.ngIf;var c=N(3);w(1);C("ngIf",0===a.length)("ngIfElse",c)}},iyb=function(a){a&1&&(D(0,"a",49),Q(1),F());if(a&2){a=
M().ngIf;var b;C("routerLinkObj",a.link);w(1);S(" ",null!==(b=null==a.slo?null:a.slo.name)&&void 0!==b?b:a.id," ")}},jyb=function(a){a&1&&Q(0," None ")},kyb=function(a,b){a&1&&(D(0,"div",46),Q(1," Inherited SLO Policy: "),P(2,iyb,2,2,"a",47),P(3,jyb,1,0,"ng-template",null,48,Eg),F());if(a&2){a=b.ngIf;var c=N(4);w(2);C("ngIf",a.link)("ngIfElse",c)}},lyb=function(a,b){a&1&&(D(0,"a",50),Q(1),F());a&2&&(a=b.ngIf,C("routerLinkObj",a.link),w(1),S(" ",a.name," "))},myb=function(a){a&1&&Q(0," None ")},nyb=
function(a){a&1&&(I(0),G(1,"mat-icon",52),Q(2," on "),K())},oyb=function(a){a&1&&(G(0,"mat-icon",53),Q(1," off "))},pyb=function(a){a&1&&(I(0),Q(1," Lock: "),P(2,nyb,3,0,"ng-container",18),P(3,oyb,2,0,"ng-template",null,51,Eg),K());if(a&2){var b=N(4);a=M(2);w(2);C("ngIf",a.originalSloLock)("ngIfElse",b)}},qyb=function(a){if(a&1){var b=r();D(0,"div",55)(1,"mat-checkbox",56);L("change",function(c){t(b);var d=M(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.slo.sloId);
return v()});D(2,"span");Q(3,"Override the inherited SLO");F()()()}a&2&&(a=M(3),w(1),C("disabled",!a.hasEditAccess)("checked",!a.isSloInheritEnabled))},ryb=function(a){if(a&1){var b=r();D(0,"div",61)(1,"label",62);Q(2," Justification to override the org SLO ");F();G(3,"mat-icon",63);D(4,"textarea",64);L("ngModelChange",function(c){t(b);var d=M(4);return v(d.sloJustification$.next(c))});T(5,"async");F()()}a&2&&(a=M(4),w(3),C("matTooltip",a.justificationRequiredText),Nf("aria-label",a.justificationRequiredText),
w(1),C("ngModel",V(5,4,a.sloJustification$))("disabled",!a.hasEditAccess))},syb=function(a,b){a&1&&(D(0,"a",65),T(1,"async"),G(2,"mat-icon",9),F());a&2&&(a=b.ngIf,b=M(4),hg("target",V(1,2,b.hasUnsavedChanges$)?"_blank":"_self"),C("routerLinkObj",a))},tyb=function(a){if(a&1){var b=r();I(0);P(1,ryb,6,6,"div",57);D(2,"div",14)(3,"mat-slide-toggle",58);L("ngModelChange",function(d){t(b);var e=M(3);return v(e.enableSloChecked=d)})("change",function(d){t(b);var e=M(3);return v(e.enableSloChecked=d.checked)});
Q(4," Enable SLO ");F();D(5,"slo-picker",59);L("onSloSelect",function(d){t(b);var e=M(3);return v(e.onSloChange(d))});F();P(6,syb,3,4,"a",60);T(7,"async");F();K()}if(a&2){a=M().ngIf;var c=M(2);w(1);C("ngIf",!a.value);w(2);Xf("indented",!a.value);C("ngModel",c.enableSloChecked)("disabled",!c.hasEditAccess);w(2);C("boundId",c.sloId)("bv2Disabled",!c.hasEditAccess||!c.enableSloChecked||c.isSloInheritEnabled)("bv2Placeholder",c.enableSloChecked?"Type to search for an SLO":"SLO disabled");w(1);C("ngIf",
V(7,9,c.sloPickerLink$))}},uyb=function(a,b){a&1&&(I(0),P(1,qyb,4,2,"div",54),P(2,tyb,8,11,"ng-container",6),K());a&2&&(a=b.ngIf,b=M(2),w(1),C("ngIf",!a.value),w(1),C("ngIf",!b.isSloInheritEnabled))},vyb=function(a){if(a&1){var b=r();D(0,"div",14)(1,"mat-checkbox",66);L("change",function(c){t(b);var d=M(2);return v(d.sloLocked=c.checked)});D(2,"span");Q(3,"Lock for all child teams");F()()()}a&2&&(a=M(2),w(1),C("checked",a.sloLocked)("disabled",!a.canEditSloLock))},yyb=function(a){if(a&1){var b=r();
D(0,"div",67)(1,"div",68)(2,"button",69);L("click",function(){t(b);var c=M().ngIf,d=M();return v(wyb(d,c))});T(3,"async");Q(4," Update ");F();D(5,"button",70);L("click",function(){t(b);var c=M(2);return v(xyb(c))});T(6,"async");Q(7," Revert changes ");F()()()}a&2&&(a=M(2),w(2),C("disabled",!V(3,2,a.hasUnsavedChanges$)),w(3),C("disabled",!V(6,4,a.hasUnsavedChanges$)))},zyb=function(a){a&1&&(I(0),D(1,"p"),Q(2,"No mapped components"),F(),K())},Ayb=function(a,b){a&1&&(D(0,"ul")(1,"li")(2,"a",45),Q(3),
F()()());a&2&&(a=b.$implicit,w(2),gg("routerLink","/components/",a.componentId,"/manage"),w(1),S(" ",a.name," "))},Byb=function(a){a&1&&(P(0,Ayb,4,2,"ul",44),T(1,"async"));a&2&&(a=M(3),C("ngForOf",V(1,1,a.associatedComponents$)))},Cyb=function(a,b){a&1&&(I(0),P(1,zyb,3,0,"ng-container",18),P(2,Byb,2,3,"ng-template",null,71,Eg),K());if(a&2){a=b.ngIf;var c=N(3);w(1);C("ngIf",0===a.length)("ngIfElse",c)}},Gyb=function(a,b){if(a&1){var c=r();I(0);D(1,"div",7)(2,"h2");Q(3);D(4,"a",8);Q(5);G(6,"mat-icon",
9);F()()();P(7,ayb,2,1,"div",10);T(8,"async");D(9,"mat-tab-group",11);L("selectedIndexChange",function(f){t(c);var h=M();return v(h.selectedTabIndex=f)})("selectedIndexChange",function(f){t(c);var h=M();return v(h.tabChange(f))});D(10,"mat-tab",12)(11,"div",13);Q(12," Team information on this page comes from ");D(13,"a",8);Q(14," Team Graph ");G(15,"mat-icon",9);F();Q(16," and is view only. ");D(17,"div",14)(18,"div",15)(19,"label")(20,"span",16);Q(21,"Description");F()();D(22,"div",17);P(23,byb,
2,1,"ng-container",18);P(24,cyb,1,0,"ng-template",null,19,Eg);F()()();D(26,"div",14)(27,"div",20)(28,"label",21)(29,"span",16);Q(30," Team admins ");F();D(31,"span",22)(32,"div",23);Q(33," Team admins are team leads from Team Graph. ");D(34,"div",24);G(35,"div",25)(36,"div",26);F()()()();P(37,dyb,2,2,"ng-container",6);T(38,"async");F()();D(39,"div",14)(40,"div",15)(41,"label")(42,"span",16);Q(43,"Child team(s)");F()();P(44,hyb,4,2,"ng-container",6);T(45,"async");F()()()();D(46,"mat-tab",27)(47,"div",
13)(48,"div",20)(49,"label",21)(50,"span",16);Q(51,"SLO configuration");F()();D(52,"span",22)(53,"div",28)(54,"strong");Q(55,"Careful!");F();Q(56," Changing the SLO (service level objective) of a component has the potential to impact the compliance status of every issue under this team's components. ");D(57,"div",24);G(58,"div",25)(59,"div",26);F()()()();D(60,"div",29);P(61,kyb,5,2,"div",30);T(62,"async");D(63,"div",31);Q(64," Policy Source: ");P(65,lyb,2,2,"a",32);T(66,"async");P(67,myb,1,0,"ng-template",
null,33,Eg);F();D(69,"div",34);P(70,pyb,5,2,"ng-container",6);F()();G(71,"b-error-banner",35);P(72,uyb,3,2,"ng-container",6);T(73,"async");P(74,vyb,4,2,"div",36);D(75,"div",14)(76,"div",20)(77,"label",21)(78,"span",16);Q(79," SLO lead ");F()();D(80,"span",22)(81,"div",23);Q(82," Single team lead receiving SLO reports of unassigned issues. ");D(83,"div",24);G(84,"div",25)(85,"div",26);F()()()();D(86,"div");I(87);D(88,"b-multi-user-input",37);L("usersChange",function(f){t(c);var h=M();1<f.length||(h.sloLead=
1===f.length?f[0]:"");return v()})("isValid",function(f){t(c);var h=M();return v(h.isSloLeadValid=f)});F();K();F()();P(89,yyb,8,6,"div",38);F()();D(90,"mat-tab",39)(91,"div",13)(92,"div",14)(93,"div",15)(94,"label")(95,"span",16);Q(96," Component(s) that have mapped to this team ");F()()();P(97,Cyb,4,2,"ng-container",6);T(98,"async");F()()()();K()}if(a&2){a=b.ngIf;var d=N(25),e=N(68);b=M();w(3);S(" Team ",a.teamId,": ");w(1);gg("href","https://moma.corp.google.com/team/",a.teamId,"",re);w(1);S(" ",
a.name," ");w(2);C("ngIf",V(8,27,b.teamPath$));w(2);C("selectedIndex",b.selectedTabIndex);w(1);C("id",b.Tab.BASIC);w(3);gg("href","https://moma.corp.google.com/team/",a.teamId,"",re);w(10);C("ngIf",a.description)("ngIfElse",d);w(14);C("ngIf",V(38,29,b.adminsAndLeads$));w(7);C("ngIf",V(45,31,b.childTeams$));w(2);C("id",b.Tab.SLO);w(15);C("ngIf",V(62,33,b.inheritedSlo$));w(4);C("ngIf",V(66,35,b.sloPolicySource$))("ngIfElse",e);w(5);C("ngIf",b.enableSloLockingUi);w(1);C("error",b.error);w(1);C("ngIf",
og(41,Dyb,V(73,37,b.isRootTeam$)));w(2);C("ngIf",b.enableSloLockingUi);w(14);C("users",b.sloLead?og(43,Eyb,b.sloLead):ng(45,Fyb))("customValidators",b.sloLeadUserValidators)("detailedUserValidators",b.sloLeadGooglerValidators)("maxUserAllowed",1);Nf("disabled",b.hasEditAccess?null:!0);w(1);C("ngIf",b.hasEditAccess);w(1);C("id",b.Tab.MAPPINGS);w(7);C("ngIf",V(98,39,b.associatedComponents$))}},Hyb=function(a,b){if(a&1){var c=r();I(0);D(1,"source-filter-chips",5);L("change",function(d){t(c);var e=M();
return v(e.updateSourceFilter(d))});F();K()}a&2&&(a=b.ngIf,w(1),C("selectedSources",a))},Iyb=function(a,b){if(a&1){var c=r();I(0);D(1,"time-boundary-filter",6);L("change",function(d){t(c);var e=M(),f=e.missionControlPrefs;f.prefs.naTimeBoundary=d;f.save(f.prefs);e.timeBoundary$.next(d);return v()});F();K()}a&2&&(a=b.ngIf,w(1),C("selectedTimeBoundary",a))},Kyb=function(a){if(a&1){var b=r();D(0,"th",22)(1,"mat-checkbox",23);L("change",function(d){t(b);var e=M().ngIf,f=M();return v(d?Jyb(f,e):null)});
F()()}if(a&2){a=M().ngIf;var c=M();w(1);C("checked",c.selection.hasValue()&&c.selection.selected.length===a.length)("indeterminate",c.selection.hasValue()&&c.selection.selected.length!==a.length)}},Lyb=function(a,b){if(a&1){var c=r();D(0,"td",24)(1,"mat-checkbox",25);L("click",function(d){return d.stopPropagation()})("change",function(d){var e=t(c).$implicit,f=M(2);return v(d?f.selection.toggle(e.id):null)});F()()}a&2&&(a=b.$implicit,b=M(2),w(1),C("checked",b.selection.isSelected(a.id)))},Myb=function(a){a&
1&&(D(0,"th",22),Q(1),F());a&2&&(a=M(2),w(1),jg(a.selection.hasValue()?"":"Type"))},Nyb=function(a,b){a&1&&(D(0,"td",24)(1,"mat-icon",26),Q(2),F()());a&2&&(a=b.$implicit,w(1),$f("google-material-icons product-icon ",a.icon,""),C("matTooltip",a.type),w(1),S(" ",a.icon," "))},Oyb=function(a){a&1&&(D(0,"span"),Q(1,"Description"),F())},Qyb=function(a){if(a&1){var b=r();D(0,"button",28);L("click",function(){t(b);var c=M(3);return v(Pyb(c))});Q(1,"Dismiss");F()}},Ryb=function(a){a&1&&(D(0,"th",22),P(1,
Oyb,2,0,"span",2),P(2,Qyb,2,0,"button",27),F());a&2&&(a=M(2),w(1),C("ngIf",!a.selection.hasValue()),w(1),C("ngIf",a.selection.hasValue()))},Syb=function(a){if(a&1){var b=r();D(0,"div",31)(1,"a",32);L("auxclick",function(){t(b);var c=M().$implicit,d=M(2);return v(d.sendClickAnalytics(c))});Q(2);F()()}a&2&&(a=M().$implicit,w(1),C("href",a.link,re),Nf("target","bug_report"!==a.icon?"_blank":null),w(1),S(" ",a.description," "))},Tyb=function(a){a&1&&(D(0,"span",33),Q(1,"No access to linked file"),F())},
Uyb=function(a,b){a&1&&(D(0,"td",24),P(1,Syb,3,3,"div",29),P(2,Tyb,2,0,"ng-template",null,30,Eg),F());if(a&2){a=b.$implicit;var c=N(3);w(1);C("ngIf",a.description&&""!==a.description)("ngIfElse",c)}},Vyb=function(a){a&1&&(D(0,"th",22),Q(1),F());a&2&&(a=M(2),w(1),jg(a.selection.hasValue()?"":"Most recent alert"))},Wyb=function(a){a&1&&G(0,"b-formatted-date-time",35);a&2&&(a=M().$implicit,C("timestamp",a.timestamp)("paddingLeftPx",0))},Xyb=function(a,b){a&1&&(D(0,"td",24),P(1,Wyb,1,2,"b-formatted-date-time",
34),F());a&2&&(a=b.$implicit,w(1),C("ngIf",a.timestamp))},Yyb=function(a){a&1&&(D(0,"th",22),Q(1),F());a&2&&(a=M(2),w(1),jg(a.selection.hasValue()?"":"Alert"))},Zyb=function(a){a&1&&(D(0,"div",41),Q(1),F());if(a&2){a=M().$implicit;var b=M(4);$f("signal-chip type-button urgent-",Ns(a),"");C("matTooltip",b.SIGNAL_TO_TOOLTIP_TEXT.get(a));w(1);S(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a)," ")}},$yb=function(a,b){a&1&&(I(0),P(1,Zyb,2,5,"div",40),K());a&2&&(a=b.$implicit,b=M(4),w(1),C("ngIf",b.SIGNAL_TO_DISPLAY_TEXT.has(a)))},
azb=function(a){a&1&&(D(0,"div",38),P(1,$yb,2,1,"ng-container",39),F());a&2&&(a=M().$implicit,w(1),C("ngForOf",a.signals))},czb=function(a,b){a&1&&(D(0,"div",43)(1,"div",41),Q(2),F(),D(3,"div",44),Q(4),F()());if(a&2){a=b.ngIf;b=M(2).$implicit;var c=M(2);w(1);$f("signal-chip type-button urgent-",Ns(a),"");C("matTooltip",c.SIGNAL_TO_TOOLTIP_TEXT.get(a));w(1);S(" ",c.SIGNAL_TO_DISPLAY_TEXT.get(a)," ");w(1);C("matTooltip",bzb(b.signals,a));w(1);S(" and ",b.signals.length-1," more ")}},ezb=function(a){a&
1&&P(0,czb,5,7,"div",42);a&2&&(a=M().$implicit,M(2),C("ngIf",dzb(a.signals)))},fzb=function(a,b){a&1&&(D(0,"td",24),P(1,azb,2,1,"div",36),P(2,ezb,1,1,"ng-template",null,37,Eg),F());if(a&2){a=b.$implicit;var c=N(3);w(1);C("ngIf",3>a.signals.length)("ngIfElse",c)}},gzb=function(a){a&1&&(D(0,"th",22),Q(1),F());a&2&&(a=M(2),w(1),jg(a.selection.hasValue()?"":"Action"))},hzb=function(a,b){a&1&&(D(0,"td",24)(1,"a",45),Q(2),F()());a&2&&(a=b.$implicit,b=M(2),w(2),S(" ",b.SIGNAL_TO_ACTION_TEXT.get(dzb(a.signals)),
" "))},izb=function(a){a&1&&G(0,"td",46)},kzb=function(a){if(a&1){var b=r();D(0,"td",24)(1,"button",47);L("click",function(c){var d=t(b).$implicit,e=M(2);c.preventDefault();return v(jzb(e,d))});G(2,"mat-icon",48);F()()}},lzb=function(a){a&1&&G(0,"tr",49)},mzb=function(a){if(a&1){var b=r();D(0,"tr",50);L("click",function(c){var d=t(b).$implicit,e=M(2);return v(e.navigateToResource(c,d))});F()}},nzb=function(a){a&1&&(D(0,"tr",51)(1,"td",52),Q(2," No alerts found "),F()())},ozb=function(a){a&1&&G(0,
"mat-icon",56)},pzb=function(a){a&1&&G(0,"mat-icon",57)},qzb=function(a){if(a&1){var b=r();D(0,"button",53);L("click",function(){t(b);var d=M().ngIf,e=M();return v(e.setNumDisplayedRows(d))});Q(1);P(2,ozb,1,0,"mat-icon",54);P(3,pzb,1,0,"mat-icon",55);F()}if(a&2){a=M().ngIf;var c=M();w(1);S(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");w(1);C("ngIf",a.length>c.numDisplayedRows);w(1);C("ngIf",a.length===c.numDisplayedRows)}},rzb=function(a,b){a&1&&(D(0,"div")(1,"table",7),I(2,8),P(3,
Kyb,2,2,"th",9),P(4,Lyb,2,1,"td",10),K(),I(5,11),P(6,Myb,2,1,"th",9),P(7,Nyb,3,5,"td",10),K(),I(8,12),P(9,Ryb,3,2,"th",9),P(10,Uyb,4,2,"td",10),K(),I(11,13),P(12,Vyb,2,1,"th",9),P(13,Xyb,2,1,"td",10),K(),I(14,14),P(15,Yyb,2,1,"th",9),P(16,fzb,4,2,"td",10),K(),I(17,15),P(18,gzb,2,1,"th",9),P(19,hzb,3,1,"td",10),K(),I(20,16),P(21,izb,1,0,"td",17),P(22,kzb,3,0,"td",10),K(),P(23,lzb,1,0,"tr",18),P(24,mzb,1,0,"tr",19),P(25,nzb,3,0,"tr",20),F(),P(26,qzb,4,3,"button",21),F());a&2&&(a=b.ngIf,b=M(),w(1),C("dataSource",
a.slice(0,b.numDisplayedRows)),w(22),C("matHeaderRowDef",b.displayedColumns),w(1),C("matRowDefColumns",b.displayedColumns),w(2),C("ngIf",a.length>b.DEFAULT_NUM_ROWS_DISPLAYED))},szb=function(a){a&1&&(D(0,"div",58),G(1,"b-spinner",59),F());a&2&&(w(1),C("large",!0)("ariaLabel","loading needs attention tasks"))},tzb=function(a,b){a&1&&(D(0,"div",8)(1,"span",9),Q(2),F()());a&2&&(a=b.ngIf,w(2),jg(a))},uzb=function(a){a&1&&(D(0,"div",10),G(1,"b-needs-attention-table"),F())},wzb=function(a){var b=[];a=l(a);
for(var c=a.next();!c.done;c=a.next())(c=vzb.get(c.value))&&b.push(c);return b},yzb=function(a,b){a&1&&(D(0,"mat-chip-option",2),Q(1),F());a&2&&(a=b.$implicit,b=M(),C("value",a.filterType)("selected",xzb(b,a)),w(1),S(" ",a.displayName," "))},Azb=function(a,b,c){return a.map(function(d){var e=d.snapshot[0],f=d.aggregatedData,h,k,q,u="issues/"+d.issueId,x=e.title,y=Math.floor((null!=(h=null==f?void 0:f.modifiedTimeMicros)?h:0)/1E3);f=Math.floor((null!=(k=null==f?void 0:f.createdTimeMicros)?k:0)/1E3);
d=zzb(b,d,c);k=e.priority;return{link:u,title:x,modifiedDate:y,createdDate:f,role:d,icon:"bug_report",priority:"P0"===k||"P1"===k?e.priority:null,source:"Buganizer",type:null!=(q=e.type)?q:null}})},Dzb=function(a,b){return a.map(function(c){var d=c.resource;return d?{link:d.externalLink,title:d.title,modifiedDate:d.lastModifiedTimestamp,createdDate:c.createdTimestamp,role:Bzb[b][d.source],icon:Czb(c),priority:null,type:null,source:d.source}:null}).filter(cl)},zzb=function(a,b,c){var d=b.snapshot[0];
switch(c){case "Owned":var e;if((null==(e=d.assigneeUser)?void 0:e.emailAddress)===a)return"Assignee";break;case "Collaborating":var f;if((null==(f=d.reporterUser)?void 0:f.emailAddress)===a)return"Reporter";var h;if(null==(h=d.collaboratorsUsers)?0:h.some(function(k){return k.emailAddress===a}))return"Collaborator";break;case "Following":return b=b.userData,d.ccUsers&&d.ccUsers.some(function(k){return k.emailAddress===a})?"CC'd":b&&b.voted?"Upvoted":b&&b.starred?"Starred":"Commenter"}return"--"},
Czb=function(a){var b;switch(null==(b=a.resource)?void 0:b.source){case "Critique":return"check_circle_filled";case "Drive":var c,d;switch(null==(c=a.resource)?void 0:null==(d=c.driveResource)?void 0:d.type){case "Docs":return"drive_document";case "Sheets":return"drive_spreadsheet";case "Slides":return"drive_presentation";default:return"link"}case "Launch":return"launch";default:return""}},Fzb=function(a,b){b=Ezb[b].SELECTED_SOURCES;a=a.map(function(c){return c.filterType});Os(b)(a)},Gzb=function(a){a=
Ps(Ezb[a].SELECTED_SOURCES)();if(!a)return null;if(a.includes("Buganizer")){var b=a.filter(function(c){return"Buganizer"!==c});b.push(Qs.filterType,Rs.filterType);return wzb(b)}return null!=(b=wzb(a))?b:null},Hzb=function(a){var b;return null!=(b=Ps(Ezb[a].SELECTED_TIME_BOUNDARY)())?b:null},Jzb=function(){var a;return null!=(a=Izb("mc-my-tasks-selected-tab")())?a:0},Kzb=function(a){a&1&&(D(0,"label",16),Q(1),F());a&2&&(a=M().$implicit,C("matTooltip",a.description),w(1),jg(a.label))},Lzb=function(a,
b){if(a&1){var c=r();I(0);D(1,"my-tasks-filter-chips",17);L("change",function(d){t(c);var e=M().index,f=M(2);return v(f.updateSourceFilter(d,e))});F();K()}a&2&&(a=b.ngIf,w(1),C("selectedFilters",a))},Mzb=function(a,b){if(a&1){var c=r();I(0);D(1,"time-boundary-filter",18);L("change",function(d){t(c);var e=M().index,f=M(2);Os(Ezb[f.tabData[e].label].SELECTED_TIME_BOUNDARY)(d);f.tabData[e].filters.timeBoundary$.next(d);return v()});F();K()}a&2&&(a=b.ngIf,w(1),C("selectedTimeBoundary",a))},Nzb=function(a){a&
1&&(D(0,"th",33),Q(1,"Type"),F())},Ozb=function(a,b){a&1&&(D(0,"td",34)(1,"mat-icon",35),Q(2),F()());a&2&&(a=b.$implicit,w(1),$f("google-material-icons product-icon ",a.icon,""),C("matTooltip",a.source),w(1),S(" ",a.icon," "))},Pzb=function(a){a&1&&(D(0,"th",33),Q(1,"Description"),F())},Qzb=function(a){a&1&&G(0,"b-issue-priority-display",40);a&2&&(a=M(2).$implicit,C("issuePriority",a.priority))},Rzb=function(a){if(a&1){var b=r();I(0);P(1,Qzb,1,1,"b-issue-priority-display",38);D(2,"a",39);L("auxclick",
function(){t(b);var c=M().$implicit,d=M(4);return v(d.sendClickAnalytics(c))});Q(3);F();K()}a&2&&(a=M().$implicit,w(1),C("ngIf",a.priority),w(1),C("href",a.link,re),Nf("target","bug_report"!==a.icon?"_blank":null),w(1),jg(a.title))},Szb=function(a){a&1&&(D(0,"span",41),Q(1,"No access to linked file"),F())},Tzb=function(a,b){a&1&&(D(0,"td",34),P(1,Rzb,4,4,"ng-container",36),P(2,Szb,2,0,"ng-template",null,37,Eg),F());if(a&2){a=b.$implicit;var c=N(3);w(1);C("ngIf",a.title&&""!==a.title)("ngIfElse",c)}},
Uzb=function(a){a&1&&(D(0,"th",33),Q(1,"Last modified"),F())},Vzb=function(a){a&1&&G(0,"b-formatted-date-time",43);a&2&&(a=M().$implicit,C("timestamp",a.modifiedDate)("paddingLeftPx",0))},Wzb=function(a,b){a&1&&(D(0,"td",34),P(1,Vzb,1,2,"b-formatted-date-time",42),F());a&2&&(a=b.$implicit,w(1),C("ngIf",a.modifiedDate))},Xzb=function(a){a&1&&(D(0,"th",33),Q(1,"My role"),F())},Yzb=function(a,b){a&1&&(D(0,"td",34),Q(1),F());a&2&&(a=b.$implicit,w(1),jg(a.role))},Zzb=function(a){a&1&&(D(0,"th",33),Q(1,
"Creation date"),F())},$zb=function(a){a&1&&(I(0),G(1,"b-formatted-date-time",43),K());a&2&&(a=M().$implicit,w(1),C("timestamp",a.createdDate)("paddingLeftPx",0))},aAb=function(a,b){a&1&&(D(0,"td",34),P(1,$zb,2,2,"ng-container",36),F());if(a&2){a=b.$implicit;M(4);var c=N(11);w(1);C("ngIf",0<a.createdDate)("ngIfElse",c)}},bAb=function(a){a&1&&G(0,"tr",44)},cAb=function(a){if(a&1){var b=r();D(0,"tr",45);L("click",function(c){var d=t(b).$implicit,e=M(4);return v(e.navigateToResource(c,d))});F()}},dAb=
function(a){a&1&&G(0,"mat-icon",51)},eAb=function(a){a&1&&G(0,"mat-icon",52)},fAb=function(a){if(a&1){var b=r();D(0,"button",48);L("click",function(){t(b);var d=M(2).ngIf,e=M(3);return v(e.setNumDisplayedRows(d))});Q(1);P(2,dAb,1,0,"mat-icon",49);P(3,eAb,1,0,"mat-icon",50);F()}if(a&2){a=M(2).ngIf;var c=M(3);w(1);S(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");w(1);C("ngIf",a.length>c.numDisplayedRows);w(1);C("ngIf",a.length===c.numDisplayedRows)}},gAb=function(a){a&1&&(D(0,"td",46),
P(1,fAb,4,3,"button",47),F());if(a&2){a=M().ngIf;var b=M(3);w(1);C("ngIf",a.length>b.DEFAULT_NUM_ROWS_DISPLAYED)}},hAb=function(a){a&1&&G(0,"tr",53)},iAb=function(a,b){a&1&&(D(0,"td",56),Q(1),F());a&2&&(a=b.ngIf,w(1),S(" ",0===a.length?"Enable source filters to see tasks":"No tasks found"," "))},jAb=function(a){a&1&&(D(0,"tr",54),P(1,iAb,2,1,"td",55),T(2,"async"),F());a&2&&(a=M(2).$implicit,w(1),C("ngIf",V(2,1,a.filters.sources$)))},mAb=function(a,b){a&1&&(D(0,"table",19),I(1,20),P(2,Nzb,2,0,"th",
21),P(3,Ozb,3,5,"td",22),K(),I(4,23),P(5,Pzb,2,0,"th",21),P(6,Tzb,4,2,"td",22),K(),I(7,24),P(8,Uzb,2,0,"th",21),P(9,Wzb,2,1,"td",22),K(),I(10,25),P(11,Xzb,2,0,"th",21),P(12,Yzb,2,1,"td",22),K(),I(13,26),P(14,Zzb,2,0,"th",21),P(15,aAb,2,2,"td",22),K(),P(16,bAb,1,0,"tr",27),P(17,cAb,1,0,"tr",28),I(18,29),P(19,gAb,2,1,"td",30),K(),P(20,hAb,1,0,"tr",31),P(21,jAb,3,3,"tr",32),F());if(a&2){a=b.ngIf;b=M().$implicit;var c=M(2);$f("table-",b.label,"");C("dataSource",a.slice(0,c.numDisplayedRows)||ng(7,kAb));
w(16);C("matHeaderRowDef",c.displayColumns);w(1);C("matRowDefColumns",c.displayColumns);w(3);C("matFooterRowDef",ng(8,lAb))}},nAb=function(a,b){a&1&&(D(0,"mat-tab"),P(1,Kzb,2,2,"ng-template",12),D(2,"div",13)(3,"span",2),Q(4,"Sources"),F(),P(5,Lzb,2,1,"ng-container",14),T(6,"async"),P(7,Mzb,2,1,"ng-container",14),T(8,"async"),F(),P(9,mAb,22,9,"table",15),T(10,"async"),F());if(a&2){a=b.$implicit;M(2);var c=N(9);w(5);C("ngIf",V(6,4,a.filters.sources$));w(2);C("ngIf",V(8,6,a.filters.timeBoundary$));
w(2);C("ngIf",V(10,8,a.tasks))("ngIfElse",c)}},pAb=function(a){if(a&1){var b=r();D(0,"div",9)(1,"mat-tab-group",10);L("selectedTabChange",function(c){t(b);var d=M();c=c.index;d.selectedTabIndex=c;oAb("mc-my-tasks-selected-tab")(c);d.numDisplayedRows=10;d.analytics.trackEvent(xp.MISSION_CONTROL,"view",d.tabData[c].label);return v()});P(2,nAb,11,10,"mat-tab",11);F()()}a&2&&(a=M(),w(1),C("selectedIndex",a.selectedTabIndex),w(1),C("ngForOf",a.tabData))},qAb=function(a){a&1&&(D(0,"div",57),G(1,"b-spinner",
58),F());a&2&&(w(1),C("large",!0)("ariaLabel","loading tasks"))},rAb=function(a){a&1&&Q(0,"--")},sAb=function(a,b){return a.modifiedDate?b.modifiedDate?b.modifiedDate-a.modifiedDate:1:-1},tAb=function(a){a&1&&(D(0,"p",12),Q(1),F());a&2&&(a=M().$implicit,w(1),jg(a.description))},uAb=function(a,b){a&1&&(D(0,"mat-list-option",8)(1,"div",9)(2,"label",10),Q(3),F()(),P(4,tAb,2,1,"p",11),F());a&2&&(a=b.$implicit,b=M(2),Wf("height","auto"),C("selected",b.selectedIds.has(a.searchId))("value",a.searchId),w(3),
jg(a.name),w(1),C("ngIf",a.description))},vAb=function(a,b){if(a&1){var c=r();I(0);D(1,"mat-selection-list",6);L("selectionChange",function(d){t(c);var e=M();return v(e.onChangeMatList(d))});P(2,uAb,5,6,"mat-list-option",7);F();K()}a&2&&(a=b.$implicit,b=M(),w(2),C("ngForOf",a)("ngForTrackBy",b.trackBySearchId))},wAb=function(a){a&1&&(I(0),G(1,"rollups-list",4),T(2,"async"),G(3,"stat-cards-list",4),T(4,"async"),G(5,"b-issues-table",5),T(6,"async"),K());a&2&&(a=M(2),w(1),C("ref",a.entityReference)("query",
V(2,9,a.issueQuery$)),w(2),C("ref",a.entityReference)("query",V(4,11,a.issueQuery$)),w(2),C("issueIds",V(6,13,a.issueIds$))("options",a.tableOptions)("filters",null==a.prefsService.prefs.quickFilters?null:a.prefsService.prefs.quickFilters[a.entityReference])("tableColumns",a.FLAT_LIST_COLUMNS)("initialSort",a.INITIAL_SORT))},xAb=function(a){a&1&&(I(0),G(1,"rollups-list",4),T(2,"async"),G(3,"stat-cards-list",4),T(4,"async"),G(5,"b-issues-table",5),T(6,"async"),K());a&2&&(a=M(2),w(1),C("ref",a.entityReference)("query",
V(2,9,a.issueQuery$)),w(2),C("ref",a.entityReference)("query",V(4,11,a.issueQuery$)),w(2),C("issueIds",V(6,13,a.issueIds$))("options",a.tableOptions)("filters",null==a.prefsService.prefs.quickFilters?null:a.prefsService.prefs.quickFilters[a.entityReference])("tableColumns",a.FLAT_LIST_COLUMNS)("initialSort",a.INITIAL_SORT))},AAb=function(a){a&1&&(I(0),G(1,"rollups-project",6)(2,"stat-cards-project",6)(3,"b-issue-relations-table",7),K());if(a&2){a=M().$implicit;var b=M();w(1);C("id",a);w(1);C("id",
a);w(1);gg("saveExpansionAtKey","project-expansion-",a,"");C("rootIssueId",a)("filters",null==b.prefsService.prefs.quickFilters?null:b.prefsService.prefs.quickFilters[b.entityReference])("tableColumns",b.TREE_COLUMNS)("options",og(9,yAb,ng(8,zAb)))("defaultExpansionLevel",0)}},BAb=function(a){a&1&&(D(0,"span",8),Q(1),F());a&2&&(a=M(2),w(1),S(" Unhandled entity type: ",a.entityType," "))},CAb=function(a){a&1&&(I(0)(1,1),P(2,wAb,7,15,"ng-container",2),P(3,xAb,7,15,"ng-container",2),P(4,AAb,4,11,"ng-container",
2),P(5,BAb,2,1,"span",3),K()());a&2&&(a=M(),w(1),C("ngSwitch",a.entityType),w(1),C("ngSwitchCase","hotlist"),w(1),C("ngSwitchCase","savedsearch"),w(1),C("ngSwitchCase","issue"))},DAb=function(a){a&1&&(D(0,"button",12),G(1,"mat-icon",13),Q(2," Add "),F());if(a&2){M();var b=N(9);C("matMenuTriggerFor",b)}},EAb=function(a){a&1&&(D(0,"section",14),G(1,"img",15),D(2,"p",16),Q(3," Use work areas to closely monitor a hotlist, saved search, or a parent/child project issue. "),F(),D(4,"button",17),G(5,"mat-icon",
18),Q(6," Add work area "),F()());if(a&2){a=M();var b=N(9);w(1);C("src",a.ROBOT_SLEEPING,re);w(3);C("matMenuTriggerFor",b)}},HAb=function(a){if(a&1){var b=r();Q(0);D(1,"button",23);L("click",function(h){return h.stopPropagation()});G(2,"mat-icon",24);F();D(3,"mat-menu",25,26)(5,"a",27);G(6,"mat-icon",28);Q(7);F();G(8,"mat-divider");D(9,"button",29);L("click",function(){t(b);var h=M().$implicit,k=M(2);return v(FAb(k.prefsService,h,-1))});G(10,"mat-icon",30);Q(11," Move Left ");F();D(12,"button",29);
L("click",function(){t(b);var h=M().$implicit,k=M(2);return v(FAb(k.prefsService,h,1))});G(13,"mat-icon",31);Q(14," Move Right ");F();D(15,"button",32);L("click",function(){t(b);var h=M().$implicit,k=M(2).prefsService;if(null!=h){var q,u=(null!=(q=Ss(k).workAreaUrls)?q:[]).slice();h=u.indexOf(h);0>h||(u.splice(h,1),GAb(k,{workAreaUrls:u}))}return v()});G(16,"mat-icon",33);Q(17," Remove ");F()()}if(a&2){var c=N(4),d=M();a=d.$implicit;var e=d.first;d=d.last;var f=M(2);S(" ",f.titles[a]||a," ");w(1);
C("matMenuTriggerFor",c);w(4);C("routerLink",f.makeBuganizerUrl(a));w(2);S(" View ",f.getEntityTypeName(a)," ");w(2);C("disabled",e);w(3);C("disabled",d);w(3);gg("title","Hide the work area '",a,"' from this section")}},IAb=function(a){a&1&&G(0,"one-work-area",34);a&2&&(a=M().$implicit,C("reference",a))},JAb=function(a){a&1&&(I(0),D(1,"mat-tab"),P(2,HAb,18,7,"ng-template",21),P(3,IAb,1,1,"ng-template",22),F(),K())},KAb=function(a){if(a&1){var b=r();D(0,"mat-tab-group",19);L("selectedIndexChange",
function(c){t(b);var d=M(),e=d.prefsService;d=d.SECTION_SLUG;var f;e.prefs.selectedTabs=null!=(f=e.prefs.selectedTabs)?f:{};e.prefs.selectedTabs[d]=String(c);e.save(e.prefs);return v()});P(1,JAb,4,0,"ng-container",20);F()}a&2&&(a=M(),C("selectedIndex",a.chosenTabForWork),w(1),C("ngForOf",a.workAreaReferences))},LAb=function(a,b){a&1&&(D(0,"div",14),G(1,"mat-checkbox",15),D(2,"div")(3,"label",16),Q(4),F(),D(5,"label",17),Q(6),F()()());if(a&2){a=b.ngIf;b=M().$implicit;var c=M().ngIf;w(1);C("id","select-signal-checkbox-"+
b)("aria-labelledby","checkbox-label-"+b)("value",b)("checked",c.includes(b));w(2);gg("id","checkbox-label-",b,"")("for","select-signal-checkbox-",b,"-input");w(1);S(" ",a.header," ");w(1);gg("for","select-signal-checkbox-",b,"-input");w(1);S(" ",a.body," ")}},NAb=function(a,b){a&1&&(I(0),P(1,LAb,7,9,"div",13),K());a&2&&(a=b.$implicit,M(3),w(1),C("ngIf",MAb.has(a)?MAb.get(a):null))},OAb=function(a){a&1&&(D(0,"div",11),P(1,NAb,2,1,"ng-container",12),F());a&2&&(a=M(2),w(1),C("ngForOf",a.ALL_SIGNAL_TYPES))},
QAb=function(a){if(a&1){var b=r();D(0,"div",4)(1,"p",5);Q(2," Select alerts ");D(3,"button",6);L("click",function(){t(b);var c=M();c=l(c.checkboxes);for(var d=c.next();!d.done;d=c.next())d=d.value,d.checked||d.toggle();return v()});Q(4," Select all ");F()();P(5,OAb,2,1,"div",7);T(6,"async");G(7,"mat-divider");D(8,"div",8)(9,"button",9);L("click",function(){t(b);var c=M();return v(c.closeMenu())});Q(10,"Cancel");F();D(11,"button",10);L("click",function(){t(b);var c=M();return v(PAb(c))});Q(12,"Apply");
F()()()}a&2&&(a=M(),w(5),C("ngIf",V(6,1,a.selectedSignals$)))},RAb=function(a){a&1&&(I(0),Q(1),K());a&2&&(a=M(3),w(1),S("(",a.count,")"))},SAb=function(a){a&1&&(I(0),Q(1),P(2,RAb,2,1,"ng-container",3),K());if(a&2){a=M().ngIf;var b=M();w(1);S(" ",a.text," ");w(1);C("ngIf",-1<b.count)}},TAb=function(a){if(a&1){var b=r();D(0,"button",5);L("click",function(){t(b);var c=M(2);return v(c.onClickRemove())});D(1,"span",6);Q(2);F();G(3,"mat-icon",7);F()}a&2&&(a=M().ngIf,w(2),S("remove filter ",a.text,""))},
VAb=function(a,b){a&1&&(D(0,"span",1),T(1,"async"),G(2,"mat-icon",2),P(3,SAb,3,2,"ng-container",3),P(4,TAb,4,1,"button",4),F());a&2&&(a=b.ngIf,b=M(),$f("chippy rounded ",a.className," margin-xs-right"),Xf("full-chip",!b.iconOnly)("selected",b.isSelected),C("matTooltip",V(1,12,UAb(b)))("matTooltipShowDelay",b.matTooltipShowDelay),w(2),C("svgIcon",a.icon),w(1),C("ngIf",!b.iconOnly),w(1),C("ngIf",b.removable))},WAb=function(a){a&1&&(D(0,"span",19),Q(1,"No filters selected"),F())},ZAb=function(a,b){if(a&
1){var c=r();I(0);D(1,"b-signal-chip",20);L("onRemove",function(){var d=t(c).$implicit,e=M(2),f=e.selectedSignals$.value,h=f.indexOf(d);-1===h?f.push(d):f.splice(h,1);XAb(e,[].concat(p(f)));return v()});F();K()}a&2&&(a=b.$implicit,w(1),C("removable",!0)("generalDescriptionOnly",!0)("iconOnly",!1)("isSelected",!0)("matTooltipShowDelay",750)("signal",og(6,YAb,a)))},aBb=function(a){if(a&1){var b=r();D(0,"div",8)(1,"div",9)(2,"button",10);L("click",function(){t(b);var d=M();return v(d.fetchIssues())})("onHotkey",
function(){t(b);var d=M();return v(d.fetchIssues())});G(3,"mat-icon",11);F();D(4,"p",12);Q(5," Applied alerts ");F();D(6,"a",13);G(7,"mat-icon",14);F()();D(8,"section",15)(9,"select-signals-menu",16);L("selected",function(d){t(b);var e=M();return v(XAb(e,d))});F();P(10,WAb,2,0,"span",17);T(11,"async");P(12,ZAb,2,8,"ng-container",18);T(13,"async");F()()}if(a&2){a=M();var c;w(2);C("hotkey",a.HOTKEYS.REFRESH_ISSUE_LIST);w(7);C("selectedSignals$",a.selectedSignals$);w(1);C("ngIf",0===(null!==(c=V(11,
4,a.selectedSignals$))&&void 0!==c?c:ng(8,$Ab)).length);w(2);C("ngForOf",V(13,6,a.selectedSignals$))}},cBb=function(a){if(a&1){var b=r();D(0,"div")(1,"button",21);L("click",function(){t(b);var c=M();return v(bBb(c))});Q(2," Dismiss selected ");F()()}a&2&&(a=M(),w(1),C("disabled",a.dismissSelectedInProgress))},dBb=function(a){a&1&&(D(0,"div",22),G(1,"b-spinner"),D(2,"span"),Q(3," Searching for issues needing attention..."),F()())},eBb=function(a){a&1&&(D(0,"p",28),Q(1," No alerts are selected. Select alerts via the filter icon above. "),
F())},fBb=function(a){a&1&&(D(0,"p",28),Q(1,"No issues matching the current filters."),F())},gBb=function(a){a&1&&(D(0,"div",23),G(1,"img",24),D(2,"p",25),Q(3,"So empty"),F(),P(4,eBb,2,0,"p",26),T(5,"async"),P(6,fBb,2,0,"ng-template",null,27,Eg),F());if(a&2){var b=N(7);a=M();var c;w(1);C("src",a.SPACE_EMPTY_STATE,re);w(3);C("ngIf",0===(null!==(c=V(5,3,a.selectedSignals$))&&void 0!==c?c:ng(5,$Ab)).length)("ngIfElse",b)}},hBb=function(a,b){a&1&&(D(0,"th",44)(1,"span",0),Q(2),F()());a&2&&(a=b.column,
Nf("data-stable-column-name",a.name),w(2),S("column-",a.name,""))},jBb=function(a,b){if(a&1){var c=r();D(0,"th",45);I(1);D(2,"mat-pseudo-checkbox",46);L("click",function(d){t(c);var e=M(2);d.stopPropagation();return v(e.toggleAllIssueSelection())})("keydown.enter",function(d){t(c);var e=M(2);d.stopPropagation();return v(e.toggleAllIssueSelection())})("keydown.space",function(d){t(c);var e=M(2);d.stopPropagation();return v(e.toggleAllIssueSelection())});F();K();F()}a&2&&(a=b.column,b=M(2),Nf("data-stable-column-name",
a.name),w(2),C("state",b.getHeaderCheckboxState()),Nf("aria-checked",iBb(b)))},kBb=function(a,b){a&1&&(D(0,"th"),I(1),G(2,"pop-grid-default-th",47),K(),F());a&2&&(a=b.column,Nf("data-stable-column-name",a.name),w(2),C("column",a))},lBb=function(a){a&1&&G(0,"td",44)},mBb=function(a,b){if(a&1){var c=r();D(0,"td",45);I(1);D(2,"mat-pseudo-checkbox",48);L("click",function(d){var e=t(c),f=e.index;e=e.row;var h=M(2);d.stopPropagation();return v(h.onCheckboxClicked(d,f,e))});F();K();F()}a&2&&(a=b.row,w(2),
C("state",a.selected?"checked":"unchecked"),Nf("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},nBb=function(a,b){if(a&1){var c=r();D(0,"td",49);I(1);D(2,"b-star-toggle",50);L("starClicked",function(){var d=t(c).row,e=M(2);return v(e.toggleStar(d))});F();K();F()}a&2&&(a=b.row,b=M(2),w(2),C("starred",a.starred)("disabled",b.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue"))},pBb=function(a,b){if(a&1){var c=r();D(0,"td",51);I(1);D(2,
"a",52);L("click",function(){var d=t(c).row,e=M(2);return v(oBb(e,d.issueId))});Q(3);F();K();F()}a&2&&(a=b.row,b=M(2),w(2),C("href",b.paths.editIssue(a.issueId),re),Nf("title",a.title),w(1),S(" ",a.issueId," "))},qBb=function(a,b){a&1&&(I(0),G(1,"b-signal-chip",54),K());a&2&&(a=b.$implicit,b=M(3),w(1),C("signal",a)("iconOnly",!0)("isSelected",b.selectedSignals$.value.includes(a.signalType)))},rBb=function(a,b){a&1&&(D(0,"td",53),P(1,qBb,2,3,"ng-container",18),F());a&2&&(a=b.row,w(1),C("ngForOf",a.signals))},
tBb=function(a,b){if(a&1){var c=r();D(0,"td");I(1);D(2,"button",21);L("click",function(){var d=t(c).row,e=M(2);return v(sBb(e,d))});Q(3," Dismiss ");F();K();F()}a&2&&(a=b.row,b=M(2),w(2),C("disabled",b.dismissInProgress[a.issueId]))},uBb=function(a){a&1&&G(0,"archived-issue-indicator")},vBb=function(a,b){a&1&&G(0,"b-hotlist-chip-smart",64);a&2&&C("id",b.$implicit)("removable",!1)},wBb=function(a){a&1&&(D(0,"div",62),P(1,vBb,1,2,"b-hotlist-chip-smart",63),F());a&2&&(a=M().row,w(1),C("ngForOf",a.hotlistId))},
xBb=function(a,b){if(a&1){var c=r();D(0,"td",55);T(1,"async");I(2);D(3,"div",56);T(4,"async");P(5,uBb,1,0,"archived-issue-indicator",3);G(6,"b-access-level-indicator",57)(7,"b-retention-chip",58);D(8,"div",59)(9,"a",60);L("click",function(){var h=t(c).row,k=M(2);return v(oBb(k,h.issueId))});Q(10);F()();P(11,wBb,2,1,"div",61);T(12,"async");F();K();F()}if(a&2){a=b.row;b=M(2);var d,e,f;Xf("bv2-grid-cell-variable-height",null==(d=V(1,15,b.listViewPrefs$))?null:d.wrapTitles);w(3);Xf("bv2-grid-cell-flex-wrap",
null==(e=V(4,17,b.listViewPrefs$))?null:e.wrapTitles);w(2);C("ngIf",a.archived);w(1);C("accessLevel",a.accessLevel)("compactMode",!0);w(1);C("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);w(2);C("href",b.paths.editIssue(a.issueId),re);Nf("title",a.title);w(1);S(" ",a.title," ");w(1);C("ngIf",null==(f=V(12,19,b.listViewPrefs$))?null:f.showHotlists)}},yBb=function(a,b){a&1&&(D(0,"td",65),I(1),D(2,"div",66),Q(3),F(),K(),F());a&2&&(a=b.row,
b=M(2),w(2),Xf("low",b.isLowPriority(a))("high",b.isHighPriority(a))("p0",b.isP0Priority(a)),w(1),S(" P",a.priority," "))},zBb=function(a){a&1&&G(0,"mat-icon",72);if(a&2){a=M().$implicit;var b=M(4);C("svgIcon",b.ISSUE_STATUS_JS_ICON_NAME[a])}},ABb=function(a){a&1&&(I(0),Q(1),K());if(a&2){a=M().$implicit;var b=M(4);w(1);jg(b.STATUS_JS_TERSE[a])}},BBb=function(a){a&1&&(D(0,"span"),Q(1),F());if(a&2){a=M().$implicit;var b=M(4);$f("chippy status-",a,"");w(1);S(" ",b.STATUS_JS_TERSE[a]," ")}},CBb=function(a,
b){a&1&&(I(0),D(1,"span",68),T(2,"async"),P(3,zBb,1,1,"mat-icon",69),P(4,ABb,2,1,"ng-container",70),P(5,BBb,2,4,"span",71),F(),K());if(a&2){a=b.$implicit;b=M(4);var c;w(1);C("ngSwitch",null==(c=V(2,4,b.listViewPrefs$))?null:null==c.fieldStatus?null:c.fieldStatus.mode)("title",b.STATUS_JS_FULL_TEXT[a]===b.STATUS_JS_TERSE[a]?"":b.STATUS_JS_FULL_TEXT[a]);w(2);C("ngSwitchCase","icon");w(1);C("ngSwitchCase","plain")}},DBb=function(a){a&1&&(I(0),P(1,CBb,6,6,"ng-container",3),K());a&2&&(a=M().row,w(1),C("ngIf",
a.status))},EBb=function(a){a&1&&(D(0,"td",67),P(1,DBb,2,1,"ng-container",3),F());a&2&&(M(2),w(1),C("ngIf",!0))},FBb=function(a,b){a&1&&(D(0,"b-person-hovercard",75),Q(1),F());a&2&&(a=b.ngIf,b=M().row,C("email",a),w(1),S(" ",b.assignee," "))},GBb=function(a){a&1&&(D(0,"span"),Q(1,"--"),F())},HBb=function(a,b){a&1&&(D(0,"td",73),I(1),P(2,FBb,2,2,"b-person-hovercard",74),T(3,"omitObfuscatedEmail"),P(4,GBb,2,0,"span",3),K(),F());a&2&&(a=b.row,w(2),C("ngIf",V(3,2,a.assignee)),w(2),C("ngIf",!a.assignee))},
JBb=function(a){if(a&1){var b=r();D(0,"div",29)(1,"pop-grid",30);L("focusedRowIndexChange",function(c){t(b);var d=M();return v(d.focusedRowIndex=c)})("rowClick",function(c){t(b);var d=M();return v(d.goToIssue(c.id,c.isRead,c.event))})("sortChange",function(c){t(b);var d=M();return v(d.onSortChange(c))});P(2,hBb,3,2,"th",31);P(3,jBb,3,3,"th",32);P(4,kBb,3,2,"th",33);P(5,lBb,1,0,"td",34);P(6,mBb,3,3,"td",35);P(7,nBb,3,4,"td",36);P(8,pBb,4,3,"td",37);P(9,rBb,2,1,"td",38);P(10,tBb,4,1,"td",39);P(11,xBb,
13,21,"td",40);P(12,yBb,4,7,"td",41);P(13,EBb,2,1,"td",42);P(14,HBb,5,4,"td",43);F()()}a&2&&(a=M(),w(1),C("list",IBb(a))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("enableDragDropHeader",!1)("rowLabelRenderer",a.issueDescription)("sort",a.sortConfig),w(1),C("forHeaderCell","focused"),w(1),C("forHeaderCell","selected"),w(2),C("forViewCell","focused"),w(1),C("forViewCell","selected"),w(1),C("forViewCell","starred"),w(1),C("forViewCell","issueId"),w(1),C("forViewCell","alerts"),w(1),C("forViewCell",
"dismiss"),w(1),C("forViewCell","title"),w(1),C("forViewCell","priority"),w(1),C("forViewCell","status"),w(1),C("forViewCell","assignee"))},KBb=function(a){a&1&&bg(0)},MBb=function(a,b){a&1&&(I(0),P(1,KBb,1,0,"ng-container",7),K());if(a&2){a=b.$implicit;M(3);var c=N(5);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,LBb,a))}},NBb=function(a){a&1&&(D(0,"div",4)(1,"div",5),Q(2,"TEAMFOOD"),F(),P(3,MBb,2,4,"ng-container",6),T(4,"async"),F());a&2&&(a=M(2),w(3),C("ngForOf",V(4,1,a.beapFeaturesTF$)))},
OBb=function(a){a&1&&bg(0)},PBb=function(a,b){a&1&&(I(0),P(1,OBb,1,0,"ng-container",7),K());if(a&2){a=b.$implicit;M(3);var c=N(5);w(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,LBb,a))}},QBb=function(a){a&1&&(D(0,"div",4)(1,"div",5),Q(2,"EARLY ACCESS"),F(),P(3,PBb,2,4,"ng-container",6),T(4,"async"),F());a&2&&(a=M(2),w(3),C("ngForOf",V(4,1,a.beapFeaturesEA$)))},RBb=function(a){a&1&&(I(0),P(1,NBb,5,3,"div",3),T(2,"async"),P(3,QBb,5,3,"div",3),T(4,"async"),K());a&2&&(a=M(),w(1),C("ngIf",
V(2,2,a.hasFeaturesTF$)),w(2),C("ngIf",V(4,4,a.hasFeaturesEA$)))},SBb=function(a){a&1&&(D(0,"div",8),Q(1,"No available experiments"),F())},TBb=function(a){a&1&&(D(0,"a",23),Q(1," Learn more"),F());a&2&&(a=M().feature,Nf("href",a.learnMoreLink,re))},UBb=function(a){a&1&&(D(0,"b-callout",24)(1,"b-callout-body"),Q(2," Reload page to see changes. "),F()())},VBb=function(a,b){if(a&1){var c=r();D(0,"div",9)(1,"div",10)(2,"div",11);G(3,"mat-slide-toggle",12);T(4,"featureState");T(5,"featureState");F();D(6,
"div",13)(7,"div",14);Q(8);F();D(9,"span",15);Q(10);P(11,TBb,2,1,"a",16);F();D(12,"div",17)(13,"a",18);L("click",function(){var d=t(c).feature;M().linkClicked[d.experimentId]=!0;return v()});G(14,"mat-icon",19);Q(15);T(16,"featureState");F()();P(17,UBb,3,0,"b-callout",20);F();D(18,"div",21);G(19,"b-app-beap-state-indicator",22);F()()()}a&2&&(a=b.feature,b=M(),w(3),C("checked",V(4,10,a.state))("matTooltip",V(5,12,a.state)?"Opted in":"Opted out")("disabled",!0),w(5),S(" ",a.title," "),w(2),S("",a.description,
" "),w(1),C("ngIf",a.learnMoreLink),w(2),Nf("href","https://webdog.corp.google.com/app/list;frontend=buganizer;id="+a.experimentId,re),w(2),S(" ",V(16,14,a.state)?"Opt out":"Opt in"," "),w(2),C("ngIf",!!b.linkClicked[a.experimentId]),w(2),C("experimentId",a.experimentId))},WBb=function(a){a&1&&(D(0,"mat-option",26),Q(1),F());a&2&&(a=M().$implicit,C("value",a),w(1),S(" ",a.name," "))},XBb=function(a,b){a&1&&(I(0),P(1,WBb,2,2,"mat-option",25),K());a&2&&(a=b.$implicit,w(1),C("ngIf",a.shouldDisplay()))},
YBb=function(a,b){a&1&&(D(0,"mat-option",29),Q(1),F());a&2&&(a=b.$implicit,C("value",a.id),w(1),S(" ",a.name," "))},$Bb=function(a){if(a&1){var b=r();D(0,"mat-form-field",5)(1,"mat-select",27);L("ngModelChange",function(c){t(b);var d=M();return v(d.preferredHomepage.selectedOptionId=c)})("selectionChange",function(){t(b);var c=M();return v(ZBb(c.preferredHomepage))});P(2,YBb,2,2,"mat-option",28);F()()}a&2&&(a=M(),w(1),C("ngModel",a.preferredHomepage.selectedOptionId),w(1),C("ngForOf",a.preferredHomepage.selectedMainOption.options))},
aCb=function(a,b){a&1&&(D(0,"mat-option",30),Q(1),F());a&2&&(a=b.$implicit,C("value",a.value),w(1),S(" ",a.label," "))},bCb=function(a,b){a&1&&(D(0,"mat-option",30),Q(1),F());a&2&&(a=b.$implicit,C("value",a.value),w(1),S(" ",a.label," "))},cCb=function(a,b){a&1&&(D(0,"mat-option",30),Q(1),F());a&2&&(a=b.$implicit,C("value",a.value),w(1),S(" ",a.label," "))},dCb=function(a){if(a&1){var b=r();D(0,"div",20)(1,"mat-slide-toggle",31);L("change",function(c){t(b);var d=M();c=c.checked;d.userPreferences.showInlineImages=
c;d.save("showInlineImages",c.toString());return v()});Q(2," Show SnipIt images inline in comments ");F()()}a&2&&(a=M(),w(1),C("checked",a.getShowInlineImages()))},eCb=function(a){if(a&1){var b=r();I(0);D(1,"div",0)(2,"div",1)(3,"p",2);Q(4,"Other");F()();D(5,"div")(6,"div")(7,"mat-slide-toggle",32);L("change",function(c){t(b);var d=M();d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c.checked;return v(d.save("saveBugScreensaverPreferences"))});Q(8," Enable bug screensaver ");F()()()();
K()}a&2&&(a=M(),w(7),C("checked",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},fCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),T(2,"toNewEmailPreference"),F());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",V(2,2,a)," "))},gCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),T(2,"toNewEmailPreference"),F());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",V(2,2,a)," "))},hCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),T(2,"toNewEmailPreference"),F());a&2&&(a=b.$implicit,C("value",a),
w(1),S(" ",V(2,2,a)," "))},iCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),T(2,"toNewEmailPreference"),F());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",V(2,2,a)," "))},jCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),T(2,"toNewEmailPreference"),F());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",V(2,2,a)," "))},kCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),T(2,"toNewEmailPreference"),F());a&2&&(a=b.$implicit,C("value",a),w(1),S(" ",V(2,2,a)," "))},lCb=function(a,b){a&1&&(D(0,"mat-option",3),Q(1),
F());a&2&&(a=b.$implicit,C("value",a.id),w(1),S(" ",a.displayName," "))},mCb=function(a,b){return a.gmt===b.gmt?a.id>b.id?1:-1:a.gmt>b.gmt?1:-1},nCb=function(a){a&1&&(I(0),G(1,"b-spinner"),K())},oCb=function(a){a&1&&(D(0,"mat-hint"),Q(1,"This field is read-only"),F())},pCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),F());a&2&&(a=b.$implicit,C("value",a.frequency),w(1),S(" ",a.display," "))},qCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),F());a&2&&(a=b.$implicit,C("value",a.ordinal),w(1),S(" ",
a.display," "))},rCb=function(a){if(a&1){var b=r();D(0,"div")(1,"mat-form-field",14)(2,"mat-label");Q(3," Repeat on ");F();D(4,"mat-select",16);L("ngModelChange",function(d){t(b);var e=M(2).ngIf,f=M(2);Ts(f,Object.assign({},e,{ordinal:d}));return v()});P(5,qCb,2,2,"mat-option",17);F()()()}if(a&2){a=M(2).ngIf;var c=M(2);w(4);C("ngModel",a.ordinal);w(1);C("ngForOf",c.repeatOnOptions.get(a.frequency))}},sCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),F());a&2&&(a=b.$implicit,C("value",a.timeOfDay),
w(1),S(" ~",a.display," "))},tCb=function(a,b){if(a&1){var c=r();I(0);D(1,"div")(2,"mat-form-field",14)(3,"mat-label");Q(4," Repeat at ");F();D(5,"mat-select",21);L("ngModelChange",function(e){t(c);var f=M(2).ngIf,h=M(2);Ts(h,Object.assign({},f,{timeOfDay:e}));return v()});P(6,sCb,2,2,"mat-option",17);F()()();K()}if(a&2){a=b.ngIf;b=M(2).ngIf;var d=M(2);w(5);C("ngModel",b.timeOfDay)("compareWith",d.compareTimeOfDay);w(1);C("ngForOf",a)}},uCb=function(a){a&1&&(D(0,"div",22),Q(1),F());a&2&&(a=M(2).ngIf,
w(1),S(" Subscription ID: ",a.id," "))},vCb=function(a){if(a&1){var b=r();I(0);D(1,"div")(2,"mat-form-field",14)(3,"mat-label");Q(4," Frequency ");F();D(5,"mat-select",16);L("ngModelChange",function(d){t(b);var e=M().ngIf,f=M(2);return v(f.setFrequency(d,e))});P(6,pCb,2,2,"mat-option",17);F()()();P(7,rCb,6,2,"div",0);P(8,tCb,7,3,"ng-container",0);T(9,"async");D(10,"div")(11,"b-timezone-picker",18);L("timezoneIdChange",function(d){t(b);var e=M().ngIf,f=M(2);return v(f.setTimeZone(d,e))});F()();P(12,
uCb,2,1,"div",19);K()}if(a&2){a=M().ngIf;var c=M(2);w(5);C("ngModel",a.frequency);w(1);C("ngForOf",c.frequencyOptions);w(1);C("ngIf",a.frequency!==c.DAILY);w(1);C("ngIf",V(9,7,c.repeatAtOptions$));w(3);C("timezoneId",a.timeZone.id)("fullWidth",!0);w(1);C("ngIf",a.id)}},xCb=function(a,b){if(a&1){var c=r();I(0);D(1,"div")(2,"div",7)(3,"mat-slide-toggle",13);L("change",function(){t(c);var d=M(2);return v(wCb(d))});T(4,"async");Q(5," Subscribe to your own reports ");P(6,nCb,2,0,"ng-container",0);T(7,
"async");F()();D(8,"div")(9,"mat-form-field",14)(10,"mat-label");Q(11,"Scope");F();D(12,"input",15);L("focus",function(){t(c);var d=M(2);return v(d.inputHasFocus=!0)})("blur",function(){t(c);var d=M(2);return v(d.inputHasFocus=!1)});F();P(13,oCb,2,0,"mat-hint",0);F()();P(14,vCb,13,9,"ng-container",0);F();K()}a&2&&(a=b.ngIf,b=M(2),w(3),C("disabled",V(4,6,b.isThinking$))("checked",0!==a.id),w(3),C("ngIf",V(7,8,b.isThinking$)),w(6),C("ngModel",b.currentUser.email),w(1),C("ngIf",b.inputHasFocus),w(1),
C("ngIf",0!==a.id))},yCb=function(a){a&1&&(I(0),D(1,"div",1)(2,"div",2)(3,"p",3),Q(4,"Frequency settings"),F(),D(5,"p",10),Q(6," Choose when to receive your own reports. "),D(7,"a",11),Q(8,"Learn more"),F()()(),P(9,xCb,15,10,"ng-container",0),T(10,"async"),F(),G(11,"hr",12),K());a&2&&(a=M(),w(9),C("ngIf",V(10,1,a.userSubscription$)))},zCb=function(a){a&1&&(I(0),G(1,"b-spinner"),K())},ACb=function(a){a&1&&(D(0,"th",31),Q(1,"Scope"),F())},BCb=function(a,b){a&1&&(D(0,"td",32),Q(1),F());a&2&&(a=b.$implicit,
w(1),S(" ",a.lead.emailAddress," "))},CCb=function(a){a&1&&(D(0,"th",31),Q(1,"Frequency"),F())},FCb=function(a,b){a&1&&(D(0,"td",32),Q(1),T(2,"async"),T(3,"async"),F());if(a&2){a=b.$implicit;b=M(2);var c;w(1);Yja(" ",b.frequencyDisplayMap.get(a.frequency)," ",a.ordinal?"weekly"===a.frequency?"- "+DCb[a.ordinal-1].display:"monthly"===a.frequency?"- "+ECb(a.ordinal):"":""," - ",null==(c=V(2,4,b.hourOfDayDisplayMap$))?null:c.get(a.timeOfDay.hours)," - ",null==(c=V(3,6,b.timeZoneDisplayMap$))?null:c.get(a.timeZone.id),
" ")}},GCb=function(a){a&1&&G(0,"th",31)},ICb=function(a){if(a&1){var b=r();D(0,"td",32)(1,"button",33);G(2,"mat-icon",34);F();D(3,"mat-menu",null,35)(5,"button",36);L("click",function(){var d=t(b).$implicit,e=M(2);return v(e.openDialog(d))});Q(6," Edit subscription ");F();D(7,"button",37);L("click",function(){var d=t(b).$implicit,e=M(2);return v(HCb(e,d))});Q(8," Delete subscription ");F()()()}if(a&2){var c=N(4);w(1);C("matMenuTriggerFor",c)}},JCb=function(a){a&1&&G(0,"tr",38)},KCb=function(a,b){a&
1&&G(0,"tr",39);a&2&&(a=b.$implicit,Nf("aria-label","Subscription with ID "+a.id+" and scoped to "+a.lead.emailAddress))},LCb=function(a){a&1&&(I(0),D(1,"table",23),I(2,24),P(3,ACb,2,0,"th",25),P(4,BCb,2,1,"td",26),K(),I(5,27),P(6,CCb,2,0,"th",25),P(7,FCb,4,8,"td",26),K(),I(8,28),P(9,GCb,1,0,"th",25),P(10,ICb,9,1,"td",26),K(),P(11,JCb,1,0,"tr",29),P(12,KCb,1,1,"tr",30),F(),K());a&2&&(a=M(),w(1),C("dataSource",a.subscriptions$),w(10),C("matHeaderRowDef",a.columns),w(1),C("matRowDefColumns",a.columns))},
MCb=function(a){a&1&&(D(0,"mat-error"),Q(1,"Please select a valid, single user"),F())},NCb=function(a){a&1&&(D(0,"mat-error"),Q(1,"Report for sundar@ cannot be generated"),F())},OCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),F());a&2&&(a=b.$implicit,C("value",a.frequency),w(1),S(" ",a.display," "))},PCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),F());a&2&&(a=b.$implicit,C("value",a.ordinal),w(1),S(" ",a.display," "))},QCb=function(a){if(a&1){var b=r();D(0,"div")(1,"mat-form-field",14)(2,"mat-label");
Q(3," Repeat on ");F();D(4,"mat-select",16);L("ngModelChange",function(d){t(b);var e=M().$implicit;return v(e.ordinal=d)});P(5,PCb,2,2,"mat-option",17);F()()()}if(a&2){a=M().$implicit;var c=M();w(4);C("ngModel",a.ordinal);w(1);C("ngForOf",c.repeatOnOptions.get(a.frequency))}},RCb=function(a,b){a&1&&(D(0,"mat-option",20),Q(1),F());a&2&&(a=b.$implicit,C("value",a.timeOfDay),w(1),S(" ~",a.display," "))},SCb=function(a,b){if(a&1){var c=r();I(0);D(1,"div")(2,"mat-form-field",14)(3,"mat-label");Q(4," Repeat at ");
F();D(5,"mat-select",21);L("ngModelChange",function(e){t(c);var f=M().$implicit;return v(f.timeOfDay=e)});P(6,RCb,2,2,"mat-option",17);F()()();K()}if(a&2){a=b.ngIf;b=M().$implicit;var d=M();w(5);C("ngModel",b.timeOfDay)("compareWith",d.compareTimeOfDay);w(1);C("ngForOf",a)}},TCb=function(a){a&1&&(D(0,"div",22),Q(1),F());a&2&&(a=M().$implicit,w(1),S(" Subscription ID: ",a.id," "))},WCb=function(a,b){if(a&1){var c=r();D(0,"h1",40);Q(1,"Add report subscription");F();D(2,"mat-dialog-content")(3,"p",41);
Q(4," Select the user (scope) and frequency of the report you wish to receive. ");F();D(5,"div")(6,"mat-form-field",42)(7,"mat-label");Q(8,"Scope");F();D(9,"input",43);L("ngModelChange",function(e){var f=t(c).$implicit,h=M();return v(f.lead=h.emailToUser(e))});F();P(10,MCb,2,0,"mat-error",0);P(11,NCb,2,0,"mat-error",0);F()();D(12,"div")(13,"mat-form-field",14)(14,"mat-label");Q(15," Frequency ");F();D(16,"mat-select",16);L("ngModelChange",function(e){var f=t(c).$implicit;return v(f.frequency=e)})("ngModelChange",
function(e){var f=t(c).$implicit;M();return v(UCb(e,f))});P(17,OCb,2,2,"mat-option",17);F()()();P(18,QCb,6,2,"div",0);P(19,SCb,7,3,"ng-container",0);T(20,"async");D(21,"div")(22,"b-timezone-picker",18);L("timezoneIdChange",function(e){var f=t(c).$implicit;return v(f.timeZone.id=e)});F()();P(23,TCb,2,1,"div",19);D(24,"p",44);Q(25," You are the only recipient of your subscription. Anyone else wishing to receive this report will need to subscribe for themselves. ");F();D(26,"a",45);Q(27,"Learn more");
F()();D(28,"mat-dialog-actions")(29,"button",46);Q(30,"Cancel");F();D(31,"button",8);L("click",function(){var e=t(c).$implicit,f=M();return v(VCb(f,e))});Q(32);F()()}if(a&2){a=b.$implicit;b=M();var d;w(9);C("ngModel",null!==(d=null==a.lead?null:a.lead.emailAddress)&&void 0!==d?d:"")("bContactAutocomplete","SINGLE");w(1);C("ngIf",b.dialogInvalidEmailFormat);w(1);C("ngIf",b.ceoSelected);w(5);C("ngModel",a.frequency);w(1);C("ngForOf",b.frequencyOptions);w(1);C("ngIf",a.frequency!==b.DAILY);w(1);C("ngIf",
V(20,13,b.repeatAtOptions$));w(3);C("timezoneId",a.timeZone.id)("fullWidth",!0);w(1);C("ngIf",a.id);w(8);C("disabled",!a.lead||!a.lead.emailAddress);w(1);S(" ",0===a.id?"Add":"Update"," ")}},ECb=function(a){var b=a%10,c=a%100;return 1===b&&11!==c?String(a)+"st":2===b&&12!==c?String(a)+"nd":3===b&&13!==c?String(a)+"rd":String(a)+"th"},XCb=function(a){a&1&&(D(0,"mat-tab",7)(1,"div",3),G(2,"b-slo-reports-settings"),F()())},YCb=function(a){a&1&&(D(0,"mat-tab",8)(1,"div",3),G(2,"b-beap-settings"),F()())},
ZCb=function(a){if(a&1){var b=r();D(0,"b-star-toggle",13);L("starClicked",function(){t(b);var c=M(2);return v(c.toggleStar())});F()}a&2&&(a=M(2),C("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},$Cb=function(a){a&1&&G(0,"b-star-toggle",14);a&2&&C("starMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",
!0)},aDb=function(a,b){a&1&&(D(0,"li")(1,"a",15),Q(2),F()());a&2&&(a=b.$implicit,b=M(2),w(1),C("href",b.getUrl(a),re)("title",a.description),w(1),S(" ",b.getDisplayName(a)," "))},bDb=function(a){if(a&1){var b=r();D(0,"div")(1,"div",4)(2,"div",5);P(3,ZCb,1,3,"b-star-toggle",6);P(4,$Cb,1,4,"b-star-toggle",7);D(5,"span",8);Q(6);F();D(7,"button",9);L("click",function(){t(b);var c=M();return v(c.openEditBookmarkGroup())});F()();D(8,"div",10);Q(9);F()();D(10,"ul",11);P(11,aDb,3,3,"li",12);F()()}a&2&&(a=
M(),w(3),C("ngIf",!a.userIsAdmin),w(1),C("ngIf",a.userIsAdmin),w(2),S("Bookmark Group: ",a.bookmarkGroup.name," "),w(3),jg(a.bookmarkGroup.description),w(2),C("ngForOf",a.bookmarkGroup.item))},cDb=function(a){if(a&1){var b=r();D(0,"b-star-toggle",16);L("starClicked",function(){t(b);var c=M(2);return v(c.toggleStar())})("keydown.space",function(c){return c.stopPropagation()})("keydown.enter",function(c){return c.stopPropagation()});F()}a&2&&(a=M(2),C("starMessage","Star this hotlist")("unStarMessage",
"Un-star this hotlist")("starred",a.isStarred))},dDb=function(a){a&1&&G(0,"b-star-toggle",17);a&2&&C("starMessage","You are an admin of this hotlist, and cannot star/unstar it.")("unStarMessage","You are an admin of this hotlist, and cannot star/unstar it.")("starred",!0)("disabled",!0)},eDb=function(a){a&1&&G(0,"b-star-toggle",17);a&2&&C("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},fDb=function(a){a&1&&(D(0,"div",18),Q(1," Hotlist not found. "),F());a&2&&C("bFocus",!0)},gDb=
function(a){a&1&&(D(0,"div"),Q(1," Loading details... "),F())},hDb=function(a){a&1&&(D(0,"span",25),Q(1," (archived) "),F())},iDb=function(a){a&1&&(D(0,"span",26),Q(1," \u00a0(changed) "),F())},jDb=function(a){if(a&1){var b=r();D(0,"div")(1,"span",19);Q(2," Hotlist: ");D(3,"span",20);Q(4);F()();P(5,hDb,2,0,"span",21);D(6,"div",22)(7,"button",23);L("click",function(){t(b);var c=M(2);return v(c.openEditHotlist())});F()();P(8,iDb,2,0,"span",24);F()}a&2&&(a=M(2),w(3),C("matTooltip",a.hotlist.description),
w(1),S(" ",a.hotlist.name," "),w(1),C("ngIf",a.hotlist.archived),w(3),C("ngIf",a.hasParamChanges()))},kDb=function(a){if(a&1){var b=r();D(0,"div",27)(1,"button",28);L("click",function(){t(b);var c=M(2);return v(c.save())});Q(2,"Save ");F();D(3,"button",29);L("click",function(){t(b);var c=M(2);return v(c.discardChanges())});Q(4,"Discard changes ");F()()}},lDb=function(a){a&1&&(D(0,"div",9),P(1,cDb,1,3,"b-star-toggle",10),P(2,dDb,1,4,"b-star-toggle",11),P(3,eDb,1,4,"b-star-toggle",11),D(4,"div",12),
P(5,fDb,2,1,"div",13),P(6,gDb,2,0,"div",14),P(7,jDb,9,4,"div",14),F(),P(8,kDb,5,0,"div",15),F());a&2&&(a=M(),w(1),C("ngIf",!a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),w(1),C("ngIf",a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),w(1),C("ngIf",!a.hotlist),w(2),C("ngIf",!a.hotlist&&!a.hotlistLoading),w(1),C("ngIf",a.hotlistLoading),w(1),C("ngIf",a.hotlist&&!a.hotlistLoading),w(1),C("ngIf",a.hasParamChanges()))},mDb=function(a){a&1&&(D(0,"div",30),G(1,"b-spinner"),D(2,"span"),Q(3),F()());
a&2&&(a=M(),w(3),S(" Loading hotlist: ",a.hotlistId,""))},nDb=function(a){a&1&&(D(0,"div",31),Q(1),F());a&2&&(a=M(),C("bFocus",!0),w(1),S(" No issues in hotlist ",a.hotlistId,". "))},oDb=function(a){if(a&1){var b=r();D(0,"div",32)(1,"b-issues-grid",33);L("init",function(c){t(b);var d=M();return v(d.resultsGrid=c)})("focusedRowIndexChange",function(c){t(b);var d=M();return v(d.focusedRowIndex=c)})("columnsChange",function(c){t(b);var d=M();return v(d.issueColumns=c)})("sortChange",function(c){t(b);
var d=M();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);var d=M();return v(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){t(b);var d=M();return v(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){t(b);var c=M();return v(Gs(c,c.page,1))})("onPrevPage",function(){t(b);var c=M();return v(Gs(c,c.page,-1))});F()()}a&2&&(a=M(),w(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",
!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},pDb=function(a){a&1&&(D(0,"div"),Q(1," Loading details... "),F())},qDb=function(a){a&1&&(D(0,"div"),Q(1," Saved search not found. "),F())},rDb=function(a){a&1&&(D(0,"span",15),Q(1," \u00a0(changed) "),F())},sDb=function(a){if(a&1){var b=r();D(0,"div",11);Q(1," Saved search: ");D(2,"span",12);Q(3);F();D(4,"button",13);L("click",function(){t(b);var c=M(2);return v(c.openEditSavedSearch())});F();P(5,rDb,2,0,"span",14);F()}a&2&&(a=M(2),
w(2),C("matTooltip",a.savedSearch.description),w(1),S(" ",a.savedSearch.name," "),w(2),C("ngIf",a.hasParamChanges()))},tDb=function(a){a&1&&(D(0,"div",9),P(1,pDb,2,0,"div",8),P(2,qDb,2,0,"div",8),P(3,sDb,6,3,"div",10),F());a&2&&(a=M(),w(1),C("ngIf",!a.savedSearch&&a.isLoading),w(1),C("ngIf",!a.savedSearch&&!a.isLoading),w(1),C("ngIf",a.savedSearch))},uDb=function(a){if(a&1){var b=r();D(0,"button",21);L("click",function(){t(b);var c=M(2);return v(c.save())});Q(1,"Save ");F()}},vDb=function(a){if(a&
1){var b=r();D(0,"div",16);P(1,uDb,2,0,"button",17);D(2,"button",18);L("click",function(){t(b);var c=M();return v(c.discardChanges())});Q(3,"Discard changes ");F();D(4,"span",19)(5,"a",20);L("click",function(){t(b);var c=M();c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"backToNormalSearch");return v()});Q(6," Back to normal search");F()()()}a&2&&(a=M(),w(1),C("ngIf",a.isEditable()),w(4),C("href",a.exitLink,re))},wDb=function(a){a&1&&(D(0,"span"),Q(1),F());a&2&&(a=M(3),w(1),S(" Searching",a.searchParams.query?
" for "+a.searchParams.query:"","..."))},xDb=function(a){a&1&&(D(0,"div",25),G(1,"b-spinner"),P(2,wDb,2,1,"span",8),F());a&2&&(a=M(2),w(2),C("ngIf",a.searchParams))},yDb=function(a){a&1&&(D(0,"div",26),Q(1," No issues in saved search. "),F());a&2&&C("bFocus",!0)},zDb=function(a){if(a&1){var b=r();D(0,"div",27)(1,"b-issues-grid",28);L("init",function(c){t(b);var d=M(2);return v(d.resultsGrid=c)})("focusedRowIndexChange",function(c){t(b);var d=M(2);return v(d.focusedRowIndex=c)})("columnsChange",function(c){t(b);
var d=M(2);return v(d.issueColumns=c)})("sortChange",function(c){t(b);var d=M(2);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);var d=M(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=M(2);return v(Gs(c,c.page,1))})("onPrevPage",function(){t(b);var c=M(2);return v(Gs(c,c.page,-1))});F()()}a&2&&(a=M(2),w(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",
a.getSort())("enableSidebar",!0))},ADb=function(a){a&1&&(D(0,"div"),P(1,xDb,3,1,"div",22),P(2,yDb,2,1,"div",23),P(3,zDb,2,6,"div",24),F());a&2&&(a=M(),w(1),C("ngIf",a.isLoading),w(1),C("ngIf",!a.isLoading&&!a.hasResults()),w(1),C("ngIf",!a.isLoading&&a.hasResults()))},BDb=function(a,b){return pl(a)?[b]:[]},CDb=function(){var a=jd(Us).getEnvironmentType(),b={};return(b.DEV="Dev",b.NIGHTLY="Autopush",b.QA="Dev",b.PROD="Prod",b)[a]},DDb=function(a,b){var c={};return so("A",(c.href=b,c.target="_blank",
c.rel="noopener noreferrer nofollow",c),a)},FDb=function(){return new EDb(new Vs("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",{withCredentials:!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0}))},GDb=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},HDb="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;
a[b]=c.value;return a},IDb=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("a");},Qh=IDb(this),Ws=function(a,b){if(b)a:{var c=Qh;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&HDb(c,a,{configurable:!0,writable:!0,value:b})}};
Ws("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;HDb(this,"description",{configurable:!0,writable:!0,value:h})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("b");return new b(c+(f||"")+"_"+d++,f)};return e});
Ws("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=Qh[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&HDb(d.prototype,a,{configurable:!0,writable:!0,value:function(){return JDb(GDb(this))}})}return a});Ws("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var JDb=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Xs=function(a){return a.raw=a},KDb=function(a,b){a.raw=b;return a},l=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:GDb(a)};throw Error("e`"+String(a));},bf=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},p=function(a){return a instanceof Array?a:bf(l(a))},Ys=function(a,b){return Object.prototype.hasOwnProperty.call(a,
b)},LDb="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ys(d,e)&&(a[e]=d[e])}return a};Ws("Object.assign",function(a){return a||LDb});
var MDb="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},NDb=function(){function a(){function c(){}new c;Reflect.construct(c,[],function(){});return new c instanceof c}if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);e=MDb(e.prototype||Object.prototype);return Function.prototype.apply.call(c,
e,d)||e}}(),ODb;if("function"==typeof Object.setPrototypeOf)ODb=Object.setPrototypeOf;else{var PDb;a:{var QDb={a:!0},RDb={};try{RDb.__proto__=QDb;PDb=RDb.a;break a}catch(a){}PDb=!1}ODb=PDb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("f`"+a);return a}:null}
var Zs=ODb,W=function(a,b){a.prototype=MDb(b.prototype);a.prototype.constructor=a;if(Zs)Zs(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype},SDb=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};g=SDb.prototype;
g.start_=function(){if(this.isRunning_)throw new TypeError("h");this.isRunning_=!0};g.next_=function(a){this.yieldResult=a};g.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};g.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};g.yield=function(a,b){this.nextAddress=b;return{value:a}};g.jumpTo=function(a){this.nextAddress=a};
var Se=function(a){a.nextAddress=0},Oe=function(a,b,c){a.catchAddress_=b;void 0!=c&&(a.finallyAddress_=c)},$s=function(a,b){a.nextAddress=b;a.catchAddress_=0},Re=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Pe=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0},Qe=function(a,b,c){c=a.finallyContexts_.splice(c||0)[0];(c=a.abruptCompletion_=a.abruptCompletion_||
c)?c.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:void 0!=c.jumpTo&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b},TDb=function(a){this.context_=new SDb;this.program_=a};TDb.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return UDb(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return at(this)};
var VDb=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return UDb(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return at(a)};TDb.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return UDb(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return at(this)};
var UDb=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("g`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(h){return a.context_.yieldAllIterator_=null,a.context_.throw_(h),at(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return at(a)},at=function(a){for(;a.context_.nextAddress;)try{var b=a.program_(a.context_);if(b)return a.context_.isRunning_=!1,{value:b.value,done:!1}}catch(c){a.context_.yieldResult=
void 0,a.context_.throw_(c)}a.context_.isRunning_=!1;if(a.context_.abruptCompletion_){b=a.context_.abruptCompletion_;a.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}},WDb=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return VDb(a,b)};this[Symbol.iterator]=function(){return this}},P8a=function(a){var b=Q8a;a=new WDb(new TDb(a));Zs&&b.prototype&&Zs(a,
b.prototype);return a},XDb=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}f(a.next())})},Ne=function(a){return XDb(new WDb(new TDb(a)))},oha=function(a){this[Symbol.asyncIterator]=function(){return this};this[Symbol.iterator]=function(){return a};this.next=function(b){return Promise.resolve(a.next(b))};void 0!==a["throw"]&&(this["throw"]=function(b){return Promise.resolve(a["throw"](b))});
void 0!==a["return"]&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},xd=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};Ws("Reflect",function(a){return a?a:{}});Ws("Reflect.construct",function(){return NDb});Ws("Reflect.setPrototypeOf",function(a){return a?a:Zs?function(b,c){try{return Zs(b,c),!0}catch(d){return!1}}:null});
Ws("Promise",function(a){function b(){this.batch_=null}function c(h){return h instanceof e?h:new e(function(k){k(h)})}if(a)return a;b.prototype.asyncExecute=function(h){if(null==this.batch_){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(h)};var d=Qh.setTimeout;b.prototype.asyncExecuteFunction=function(h){d(h,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var k=0;k<h.length;++k){var q=
h[k];h[k]=null;try{q()}catch(u){this.asyncThrow_(u)}}}this.batch_=null};b.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};var e=function(h){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{h(k.resolve,k.reject)}catch(q){k.reject(q)}};e.prototype.createResolveAndReject_=function(){function h(u){return function(x){q||(q=!0,u.call(k,x))}}var k=this,q=!1;return{resolve:h(this.resolveTo_),
reject:h(this.reject_)}};e.prototype.resolveTo_=function(h){if(h===this)this.reject_(new TypeError("i"));else if(h instanceof e)this.settleSameAsPromise_(h);else{a:switch(typeof h){case "object":var k=null!=h;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(h):this.fulfill_(h)}};e.prototype.resolveToNonPromiseObj_=function(h){var k=void 0;try{k=h.then}catch(q){this.reject_(q);return}"function"==typeof k?this.settleSameAsThenable_(k,h):this.fulfill_(h)};e.prototype.reject_=
function(h){this.settle_(2,h)};e.prototype.fulfill_=function(h){this.settle_(1,h)};e.prototype.settle_=function(h,k){if(0!=this.state_)throw Error("j`"+h+"`"+k+"`"+this.state_);this.state_=h;this.result_=k;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var h=this;d(function(){if(h.notifyUnhandledRejection_()){var k=Qh.console;"undefined"!==typeof k&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=Qh.CustomEvent,k=Qh.Event,q=Qh.dispatchEvent;if("undefined"===typeof q)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof k?h=new k("unhandledrejection",{cancelable:!0}):(h=Qh.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return q(h)};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var h=
0;h<this.onSettledCallbacks_.length;++h)f.asyncExecute(this.onSettledCallbacks_[h]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(h){var k=this.createResolveAndReject_();h.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(h,k){var q=this.createResolveAndReject_();try{h.call(k,q.resolve,q.reject)}catch(u){q.reject(u)}};e.prototype.then=function(h,k){function q(E,H){return"function"==typeof E?function(J){try{u(E(J))}catch(O){x(O)}}:
H}var u,x,y=new e(function(E,H){u=E;x=H});this.callWhenSettled_(q(h,u),q(k,x));return y};e.prototype.catch=function(h){return this.then(void 0,h)};e.prototype.callWhenSettled_=function(h,k){function q(){switch(u.state_){case 1:h(u.result_);break;case 2:k(u.result_);break;default:throw Error("k`"+u.state_);}}var u=this;null==this.onSettledCallbacks_?f.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(h){return new e(function(k,q){q(h)})};e.race=
function(h){return new e(function(k,q){for(var u=l(h),x=u.next();!x.done;x=u.next())c(x.value).callWhenSettled_(k,q)})};e.all=function(h){var k=l(h),q=k.next();return q.done?c([]):new e(function(u,x){function y(J){return function(O){E[J]=O;H--;0==H&&u(E)}}var E=[],H=0;do E.push(void 0),H++,c(q.value).callWhenSettled_(y(E.length-1),x),q=k.next();while(!q.done)})};return e});var bt=function(a,b,c){if(null==a)throw new TypeError("l`"+c);if(b instanceof RegExp)throw new TypeError("m`"+c);return a+""};
Ws("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=bt(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});Ws("Object.setPrototypeOf",function(a){return a||Zs});var YDb=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};
Ws("Array.prototype.find",function(a){return a?a:function(b,c){return YDb(this,b,c).v}});
Ws("WeakMap",function(a){function b(){}function c(q){var u=typeof q;return"object"===u&&null!==q||"function"===u}function d(q){if(!Ys(q,f)){var u=new b;HDb(q,f,{value:u})}}function e(q){var u=Object[q];u&&(Object[q]=function(x){if(x instanceof b)return x;Object.isExtensible(x)&&d(x);return u(x)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),u=Object.seal({}),x=new a([[q,2],[u,3]]);if(2!=x.get(q)||3!=x.get(u))return!1;x.delete(q);x.set(u,4);return!x.has(q)&&4==x.get(u)}catch(y){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var h=0,k=function(q){this.id_=(h+=Math.random()+1).toString();if(q){q=l(q);for(var u;!(u=q.next()).done;)u=u.value,this.set(u[0],u[1])}};k.prototype.set=function(q,u){if(!c(q))throw Error("n");d(q);if(!Ys(q,f))throw Error("o`"+q);q[f][this.id_]=u;return this};k.prototype.get=function(q){return c(q)&&Ys(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&Ys(q,f)&&Ys(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&Ys(q,f)&&Ys(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
Ws("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var k=Object.seal({x:4}),q=new a(l([[k,"s"]]));if("s"!=q.get(k)||1!=q.size||q.get({x:4})||q.set({x:4},"t")!=q||2!=q.size)return!1;var u=q.entries(),x=u.next();if(x.done||x.value[0]!=k||"s"!=x.value[1])return!1;x=u.next();return x.done||4!=x.value[0].x||"t"!=x.value[1]||!u.next().done?!1:!0}catch(y){return!1}}())return a;var b=new WeakMap,c=function(k){this[0]={};this[1]=
f();this.size=0;if(k){k=l(k);for(var q;!(q=k.next()).done;)q=q.value,this.set(q[0],q[1])}};c.prototype.set=function(k,q){k=0===k?0:k;var u=d(this,k);u.list||(u.list=this[0][u.id]=[]);u.entry?u.entry.value=q:(u.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:q},u.list.push(u.entry),this[1].previous.next=u.entry,this[1].previous=u.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],
k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=function(){return e(this,
function(k){return k.value})};c.prototype.forEach=function(k,q){for(var u=this.entries(),x;!(x=u.next()).done;)x=x.value,k.call(q,x[1],x[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,q){var u=q&&typeof q;"object"==u||"function"==u?b.has(q)?u=b.get(q):(u=""+ ++h,b.set(q,u)):u="p_"+q;var x=k[0][u];if(x&&Ys(k[0],u))for(k=0;k<x.length;k++){var y=x[k];if(q!==q&&y.key!==y.key||q===y.key)return{id:u,list:x,index:k,entry:y}}return{id:u,list:x,index:-1,entry:void 0}},e=function(k,
q){var u=k[1];return JDb(function(){if(u){for(;u.head!=k[1];)u=u.previous;for(;u.next!=u.head;)return u=u.next,{done:!1,value:q(u)};u=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});Ws("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
Ws("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ys(b,d)&&c.push(b[d]);return c}});Ws("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});Ws("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
Ws("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==bt(this,b,"includes").indexOf(b,c||0)}});Ws("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});Ws("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});Ws("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
Ws("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});Ws("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});var ZDb=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};
Ws("Array.prototype.entries",function(a){return a?a:function(){return ZDb(this,function(b,c){return[b,c]})}});Ws("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
Ws("Array.prototype.keys",function(a){return a?a:function(){return ZDb(this,function(b){return b})}});Ws("Array.prototype.values",function(a){return a?a:function(){return ZDb(this,function(b,c){return c})}});Ws("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});var ct=function(a){return a?a:Array.prototype.fill};
Ws("Int8Array.prototype.fill",ct);Ws("Uint8Array.prototype.fill",ct);Ws("Uint8ClampedArray.prototype.fill",ct);Ws("Int16Array.prototype.fill",ct);Ws("Uint16Array.prototype.fill",ct);Ws("Int32Array.prototype.fill",ct);Ws("Uint32Array.prototype.fill",ct);Ws("Float32Array.prototype.fill",ct);Ws("Float64Array.prototype.fill",ct);
Ws("Set",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(l([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
l(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};b.prototype.add=function(c){c=0===c?0:c;this.map_.set(c,c);this.size=this.map_.size;return this};b.prototype.delete=function(c){c=this.map_.delete(c);this.size=this.map_.size;return c};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(c){return this.map_.has(c)};b.prototype.entries=function(){return this.map_.entries()};b.prototype.values=function(){return this.map_.values()};b.prototype.keys=
b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.map_.forEach(function(f){return c.call(d,f,f,e)})};return b});Ws("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ys(b,d)&&c.push([d,b[d]]);return c}});
Ws("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=bt(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});Ws("String.prototype.repeat",function(a){return a?a:function(b){var c=bt(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("p");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});Ws("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
Ws("globalThis",function(a){return a||Qh});Ws("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});Ws("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&0<b?(d=Array.prototype.flat.call(d,b-1),c.push.apply(c,d)):c.push(d)});return c}});
Ws("Array.prototype.findIndex",function(a){return a?a:function(b,c){return YDb(this,b,c).i}});Ws("Array.prototype.flatMap",function(a){return a?a:function(b,c){var d=[];Array.prototype.forEach.call(this,function(e,f){e=b.call(c,e,f,this);Array.isArray(e)?d.push.apply(d,e):d.push(e)});return d}});
Ws("String.prototype.matchAll",function(a){return a?a:function(b){if(b instanceof RegExp&&!b.global)throw new TypeError("q");var c=new RegExp(b,b instanceof RegExp?void 0:"g"),d=this,e=!1,f={next:function(){if(e)return{value:void 0,done:!0};var h=c.exec(d);if(!h)return e=!0,{value:void 0,done:!0};""===h[0]&&(c.lastIndex+=1);return{value:h,done:!1}}};f[Symbol.iterator]=function(){return f};return f}});
Ws("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});Ws("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("r`"+b);b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("s");c[d[0]]=d[1]}return c}});
Ws("Promise.allSettled",function(a){function b(d){return{status:"fulfilled",value:d}}function c(d){return{status:"rejected",reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});Ws("String.prototype.padEnd",function(a){return a?a:function(b,c){var d=bt(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";c=0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"";return d+c}});
Ws("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("t");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});Ws("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});
Ws("String.prototype.codePointAt",function(a){return a?a:function(b){var c=bt(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(0<=b&&b<d){b|=0;var e=c.charCodeAt(b);if(55296>e||56319<e||b+1===d)return e;b=c.charCodeAt(b+1);return 56320>b||57343<b?e:1024*(e-55296)+b+9216}}});var $Db=$Db||{},da=this||self,Jo=function(a,b){a=a.split(".");b=b||da;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},ob=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},Ca=function(a){var b=ob(a);return"array"==b||"object"==b&&"number"==typeof a.length},Fa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ia=function(a){return Object.prototype.hasOwnProperty.call(a,aEb)&&a[aEb]||(a[aEb]=++bEb)},aEb="closure_uid_"+(1E9*Math.random()>>>
0),bEb=0,cEb=function(a,b,c){return a.call.apply(a.bind,arguments)},dEb=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},dt=function(a,b,c){dt=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?cEb:dEb;return dt.apply(null,arguments)},et=function(a,
b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},eEb=function(a){(0,eval)(a)},fEb=function(a,b){a=a.split(".");var c=da;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},ft=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=
a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[e].apply(d,h)}},gEb=function(a){return a};ft(aa,Error);aa.prototype.name="CustomError";var hEb;ft(ba,aa);ba.prototype.name="AssertionError";var Tua=void 0,Rua,Sua,Qua="undefined"!==typeof TextDecoder,Oua,Nua="undefined"!==typeof TextEncoder;var si=function(a,b){return 0==a.lastIndexOf(b,0)},gt=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},J2a=function(a){return 0==oq("@ldap.google.com",a.slice(a.length-16))},Oi=function(a){return/^[\s\xa0]*$/.test(a)},ui=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},oq=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},pEb=function(a){if(!iEb.test(a))return a;-1!=a.indexOf("&")&&
(a=a.replace(jEb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(kEb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(lEb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(mEb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(nEb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(oEb,"&#0;"));return a},jEb=/&/g,kEb=/</g,lEb=/>/g,mEb=/"/g,nEb=/'/g,oEb=/\x00/g,iEb=/[\x00&<>"']/,ka=function(a,b){return-1!=a.indexOf(b)},rEb=function(a,b){var c=0;a=ui(String(a)).split(".");b=ui(String(b)).split(".");for(var d=Math.max(a.length,b.length),
e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=qEb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||qEb(0==f[2].length,0==h[2].length)||qEb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c},qEb=function(a,b){return a<b?-1:a>b?1:0};var ha,sEb=Jo("WIZ_global_data.oxN3nb"),tEb=sEb&&sEb[610401301];ha=null!=tEb?tEb:!1;var ia,uEb=da.navigator;ia=uEb?uEb.userAgentData||null:null;var ua=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ta=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},vEb=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,k=0;k<d;k++)if(k in h){var q=h[k];b.call(c,q,k,a)&&(e[f++]=q)}return e},wEb=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},xEb=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=
"string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};var yEb=function(a){yEb[" "](a);return a};yEb[" "]=function(){};var zEb=function(a,b){try{return yEb(a[b]),!0}catch(c){}return!1};var AEb=caa(),rq=daa(),ht=la("Edge"),Pj=ht||rq,it=la("Gecko")&&!(ka(fa().toLowerCase(),"webkit")&&!la("Edge"))&&!(la("Trident")||la("MSIE"))&&!la("Edge"),jt=ka(fa().toLowerCase(),"webkit")&&!la("Edge"),BEb=jt&&la("Mobile"),tq=laa(),CEb=pa()?"Windows"===ia.platform:la("Windows"),DEb=(pa()?"Linux"===ia.platform:la("Linux"))||(pa()?"Chrome OS"===ia.platform:la("CrOS")),EEb=da.navigator||null;EEb&&ka(EEb.appVersion||"","X11");var FEb=kaa(),GEb=qa(),HEb=la("iPad"),IEb=la("iPod"),JEb=ra();
ka(fa().toLowerCase(),"kaios");var KEb=function(){var a=da.document;return a?a.documentMode:void 0},LEb;a:{var MEb="",NEb=function(){var a=fa();if(it)return/rv:([^\);]+)(\)|;)/.exec(a);if(ht)return/Edge\/([\d\.]+)/.exec(a);if(rq)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(jt)return/WebKit\/(\S+)/.exec(a);if(AEb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();NEb&&(MEb=NEb?NEb[1]:"");if(rq){var OEb=KEb();if(null!=OEb&&OEb>parseFloat(MEb)){LEb=String(OEb);break a}}LEb=MEb}var PEb=LEb,QEb;
if(da.document&&rq){var REb=KEb();QEb=REb?REb:parseInt(PEb,10)||void 0}else QEb=void 0;var kt=QEb;var SEb=eaa(),TEb=qa()||la("iPod"),UEb=la("iPad"),VEb=haa(),WEb=faa(),XEb=gaa()&&!ra();var YEb={},lt=null,ZEb=it||jt||!XEb&&!rq&&"function"==typeof da.atob,La=function(a,b){void 0===b&&(b=0);$Eb();b=YEb[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],q=a[e+2],u=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=u+h+k+q}u=0;q=d;switch(a.length-e){case 2:u=a[e+1],q=b[(u&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|u>>4]+q+d}return c.join("")},K9a=function(a){if(ZEb)return da.atob(a);var b="";aFb(a,function(c){b+=String.fromCharCode(c)});
return b},bFb=function(a){var b=[];aFb(a,function(c){b.push(c)});return b},zaa=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):ka("=.",a[b-1])&&(c=ka("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;aFb(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},aFb=function(a,b){function c(q){for(;d<a.length;){var u=a.charAt(d++),x=lt[u];if(null!=x)return x;if(!Oi(u))throw Error("x`"+u);}return q}$Eb();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),k=c(64);if(64===k&&-1===e)break;b(e<<2|f>>4);64!=
h&&(b(f<<4&240|h>>2),64!=k&&b(h<<6&192|k))}},$Eb=function(){if(!lt){lt={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));YEb[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===lt[f]&&(lt[f]=e)}}}};var Caa="undefined"!==typeof Uint8Array,vaa=!rq&&"function"===typeof btoa,Aaa=/[-_.]/g,xaa={"-":"+",_:"/",".":"="},Daa,Sa={};var cFb,Pa=function(a,b){if(b!==Sa)throw Error("y");this.value_=a;if(null!=a&&0===a.length)throw Error("z");},Oa=function(){return cFb||(cFb=new Pa(null,Sa))},Nb=function(a){var b=a.value_;return null==b?"":"string"===typeof b?b:a.value_=waa(b)},$Va=function(a){return(a=Ta(a))?new Uint8Array(a):Na()};Pa.prototype.isEmpty=function(){return null==this.value_};Pa.prototype.sizeBytes=function(){var a=Ta(this);return a?a.length:0};
var dFb=function(a,b){if(!a.value_||!b.value_||a.value_===b.value_)return a.value_===b.value_;if("string"===typeof a.value_&&"string"===typeof b.value_){var c=a.value_,d=b.value_;b.value_.length>a.value_.length&&(d=a.value_,c=b.value_);if(0!==c.lastIndexOf(d,0))return!1;for(b=d.length;b<c.length;b++)if("="!==c[b])return!1;return!0}c=Ta(a);b=Ta(b);return Eaa(c,b)},Ta=function(a){if(Sa!==Sa)throw Error("y");var b=a.value_;null==b||Ma(b)||("string"===typeof b?b=Baa(b):(ob(b),b=null));return null==b?
b:a.value_=b},rba=function(a,b){if("string"===typeof b)b=b?new Pa(b,Sa):Oa();else if(b instanceof Uint8Array)b=new Pa(b,Sa);else if(!(b instanceof Pa))return!1;return dFb(a,b)};var eFb="function"===typeof Uint8Array.prototype.slice,Va=0,Wa=0,fFb,Kaa="function"===typeof BigInt;var gFb=function(a,b){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,void 0,void 0,b)};g=gFb.prototype;g.init=function(a,b,c,d){d=void 0===d?{}:d;this.aliasBytesFields=void 0===d.aliasBytesFields?!1:d.aliasBytesFields;a&&(a=Gaa(a),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.start_=b||0,this.end_=void 0!==c?this.start_+c:this.bytes_.length,this.cursor_=this.start_)};g.free=function(){this.clear();100>hFb.length&&hFb.push(this)};
g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};g.getEnd=function(){return this.end_};g.setEnd=function(a){this.end_=a};g.reset=function(){this.cursor_=this.start_};g.getCursor=function(){return this.cursor_};g.advance=function(a){iFb(this,this.cursor_+a)};
g.readSplitVarint64=function(a){var b=0,c=0,d=0,e=this.bytes_,f=this.cursor_;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;iFb(this,f);if(128>h)return a(b>>>0,c>>>0);throw Error("F");};var iFb=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("G`"+b+"`"+a.end_);};g=gFb.prototype;
g.readSignedVarint32=function(){var a=this.bytes_,b=this.cursor_,c=a[b++],d=c&127;if(c&128&&(c=a[b++],d|=(c&127)<<7,c&128&&(c=a[b++],d|=(c&127)<<14,c&128&&(c=a[b++],d|=(c&127)<<21,c&128&&(c=a[b++],d|=c<<28,c&128&&a[b++]&128&&a[b++]&128&&a[b++]&128&&a[b++]&128&&a[b++]&128)))))throw Error("F");iFb(this,b);return d};g.readUint8=function(){var a=this.bytes_[this.cursor_];this.advance(1);return a};
g.readUint32=function(){var a=this.bytes_,b=this.cursor_,c=a[b],d=a[b+1],e=a[b+2];a=a[b+3];this.advance(4);return(c<<0|d<<8|e<<16|a<<24)>>>0};g.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return Iaa(a,b)};g.readUint64String=function(){var a=this.readUint32(),b=this.readUint32();return Maa(a,b)};g.readInt8=function(){var a=this.bytes_[this.cursor_];this.advance(1);return a<<24>>24};
g.readInt32=function(){var a=this.bytes_,b=this.cursor_,c=a[b],d=a[b+1],e=a[b+2];a=a[b+3];this.advance(4);return c<<0|d<<8|e<<16|a<<24};g.readInt64=function(){var a=this.readUint32(),b=this.readUint32();return Jaa(a,b)};g.readDouble=function(){var a=this.readUint32(),b=this.readUint32(),c=2*(b>>31)+1,d=b>>>20&2047;a=4294967296*(b&1048575)+a;return 2047==d?a?NaN:Infinity*c:0==d?c*Math.pow(2,-1074)*a:c*Math.pow(2,d-1075)*(a+4503599627370496)};
g.readBool=function(){for(var a=0,b=this.cursor_,c=b+10,d=this.bytes_;b<c;){var e=d[b++];a|=e;if(0===(e&128))return iFb(this,b),!!(a&127)}throw Error("F");};g.readByteString=function(a){if(0==a)return Oa();if(0>a)throw Error("H`"+a);var b=this.cursor_,c=b+a;if(c>this.end_)throw Error("G`"+(this.end_-b)+"`"+a);this.cursor_=c;this.aliasBytesFields&&this.bytesAreImmutable_?b=this.bytes_.subarray(b,b+a):(c=this.bytes_,a=b+a,b=b===a?Na():eFb?c.slice(b,a):new Uint8Array(c.subarray(b,a)));return Faa(b)};
var hFb=[];var jFb=function(a){var b=void 0;if(hFb.length){var c=hFb.pop();c.init(a,void 0,void 0,b);a=c}else a=new gFb(a,b);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions(b)};g=jFb.prototype;g.setOptions=function(a){a=void 0===a?{}:a;this.discardUnknownFields=void 0===a.discardUnknownFields?!1:a.discardUnknownFields};g.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;100>kFb.length&&kFb.push(this)};
g.getCursor=function(){return this.decoder_.getCursor()};g.getTag=function(){return this.nextTag_};g.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};g.advance=function(a){this.decoder_.advance(a)};
var Wba=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=a.decoder_.readSignedVarint32()>>>0;var c=b>>>3,d=b&7;if(!(0<=d&&5>=d))throw Error("B`"+d+"`"+a.fieldCursor_);if(1>c)throw Error("C`"+c+"`"+a.fieldCursor_);a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},ic=function(a){switch(a.nextWireType_){case 0:0!=a.nextWireType_?ic(a):a.decoder_.readBool();break;case 1:a.decoder_.advance(8);break;case 2:if(2!=a.nextWireType_)ic(a);else{var b=a.decoder_.readSignedVarint32()>>>
0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);break;case 3:b=a.nextField_;do{if(!Wba(a))throw Error("D");if(4==a.nextWireType_){if(a.nextField_!=b)throw Error("E");break}ic(a)}while(1);break;default:throw Error("B`"+a.nextWireType_+"`"+a.fieldCursor_);}};g=jFb.prototype;g.readInt32=function(){return this.decoder_.readSignedVarint32()};g.readInt64=function(){return this.decoder_.readSplitVarint64(Jaa)};g.readUint32=function(){return this.decoder_.readSignedVarint32()>>>0};
g.readUint64=function(){return this.decoder_.readSplitVarint64(Iaa)};g.readUint64String=function(){return this.decoder_.readSplitVarint64(Maa)};g.readDouble=function(){return this.decoder_.readDouble()};g.readBool=function(){return this.decoder_.readBool()};g.readByteString=function(){var a=this.decoder_.readSignedVarint32()>>>0;return this.decoder_.readByteString(a)};g.readSplitVarint64=function(a){return this.decoder_.readSplitVarint64(a)};var kFb=[];var lFb=function(a,b){this.lo=a>>>0;this.hi=b>>>0},nFb=function(a){if(!a)return mFb||(mFb=new lFb(0,0));if(!/^\d+$/.test(a))return null;Naa(a);return new lFb(Va,Wa)},mFb,oFb=function(a,b){this.lo=a>>>0;this.hi=b>>>0},qFb=function(a){if(!a)return pFb||(pFb=new oFb(0,0));if(!/^-?\d+$/.test(a))return null;Naa(a);return new oFb(Va,Wa)},pFb;var mt=function(){this.buffer_=[]};mt.prototype.length=function(){return this.buffer_.length};mt.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};mt.prototype.writeSplitVarint64=function(a,b){for(;0<b||127<a;)this.buffer_.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.buffer_.push(a)};mt.prototype.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
var rFb=function(a,b){for(;127<b;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},sFb=function(a,b){if(0<=b)rFb(a,b);else{for(var c=0;9>c;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}};g=mt.prototype;g.writeUint8=function(a){this.buffer_.push(a>>>0&255)};g.writeUint32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};
g.writeUint64=function(a){var b=a>>>0;a=Math.floor((a-b)/4294967296)>>>0;Va=b;Wa=a;this.writeUint32(Va);this.writeUint32(Wa)};g.writeInt8=function(a){this.buffer_.push(a>>>0&255)};g.writeInt32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};g.writeInt64=function(a){Xa(a);this.writeSplitFixed64(Va,Wa)};
g.writeDouble=function(a){var b=fFb||(fFb=new DataView(new ArrayBuffer(8)));b.setFloat64(0,+a,!0);Va=b.getUint32(0,!0);Wa=b.getUint32(4,!0);this.writeUint32(Va);this.writeUint32(Wa)};g.writeBool=function(a){this.buffer_.push(a?1:0)};var tFb=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new mt},nc=function(a,b){0!==b.length&&(a.blocks_.push(b),a.totalLength_+=b.length)},nt=function(a,b,c){rFb(a.encoder_,8*b+c)};g=tFb.prototype;g.writeInt32=function(a,b){null!=b&&null!=b&&(nt(this,a,0),sFb(this.encoder_,b))};
g.writeInt64=function(a,b){null!=b&&("string"===typeof b&&qFb(b),null!=b&&(nt(this,a,0),"number"===typeof b?(a=this.encoder_,Xa(b),a.writeSplitVarint64(Va,Wa)):(b=qFb(b),this.encoder_.writeSplitVarint64(b.lo,b.hi))))};g.writeUint32=function(a,b){null!=b&&null!=b&&(nt(this,a,0),rFb(this.encoder_,b))};
g.writeUint64=function(a,b){null!=b&&("string"===typeof b&&nFb(b),null!=b&&(nt(this,a,0),"number"===typeof b?(a=this.encoder_,Xa(b),a.writeSplitVarint64(Va,Wa)):(b=nFb(b),this.encoder_.writeSplitVarint64(b.lo,b.hi))))};g.writeDouble=function(a,b){null!=b&&(nt(this,a,1),this.encoder_.writeDouble(b))};g.writeBool=function(a,b){null!=b&&(nt(this,a,0),this.encoder_.writeBool(b))};g.writeSplitFixed64=function(a,b){nt(this,a,1);this.encoder_.writeSplitFixed64(b)};
g.writeSplitVarint64=function(a,b){nt(this,a,0);this.encoder_.writeSplitVarint64(b)};var jc=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;this.$$isRepeated=c};var ot="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0,cb=ot?function(a,b){a[ot]|=b}:function(a,b){void 0!==a.internalArrayState?a.internalArrayState|=b:Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}})},Jba=ot?function(a,b){a[ot]&=~b}:function(a,b){void 0!==a.internalArrayState&&(a.internalArrayState&=~b)},Za=ot?function(a){return a[ot]|0}:function(a){return a.internalArrayState|0},Pb=ot?function(a){return a[ot]}:function(a){return a.internalArrayState},
bb=ot?function(a,b){a[ot]=b}:function(a,b){void 0!==a.internalArrayState?a.internalArrayState=b:Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}})};var zb={},uFb,Wb,vFb=[];bb(vFb,39);Wb=Object.freeze(vFb);var pt=function(a,b,c){this.idx_=0;this.arr_=a;this.mapper=b;this.thisArg=c};pt.prototype.next=function(){if(this.idx_<this.arr_.length){var a=this.arr_[this.idx_++];return{done:!1,value:this.mapper?this.mapper.call(this.thisArg,a):a}}return{done:!0,value:void 0}};pt.prototype[Symbol.iterator]=function(){return new pt(this.arr_,this.mapper,this.thisArg)};var Nba={},lb,Ib;var iba="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():"di";var Fb,lba;var Kb=function(a,b,c,d){c=void 0===c?Cb:c;d=void 0===d?Cb:d;var e=NDb(Map,[],this.constructor);var f=Za(a);f|=64;bb(a,f);e.arrayState=f;e.valueCtor=b;e.keyToApi=c||Cb;e.valueToApi=e.valueCtor?uba:d||Cb;for(var h=0;h<a.length;h++){var k=a[h],q=c(k[0],!1,!0),u=k[1];b?void 0===u&&(u=null):u=d(k[1],!1,!0,void 0,void 0,f);Map.prototype.set.call(e,q,u)}return e};W(Kb,Map);
var wFb=function(a){if(a.arrayState&2)throw Error("P");},Cba=function(a,b){b=void 0===b?vba:b;return Iba(a,b)},Iba=function(a,b){b=void 0===b?vba:b;var c=[];a=Map.prototype.entries.call(a);for(var d;!(d=a.next()).done;)d=d.value,d[0]=b(d[0]),d[1]=b(d[1]),c.push(d);return c};g=Kb.prototype;g.getLength=function(){return this.size};g.clear=function(){wFb(this);Map.prototype.clear.call(this)};g.delete=function(a){wFb(this);return Map.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
g.entries=function(){var a=Array.from(Map.prototype.keys.call(this));return new pt(a,zba,this)};g.keys=function(){return Map.prototype.keys.call(this)};g.values=function(){var a=Array.from(Map.prototype.keys.call(this));return new pt(a,Kb.prototype.get,this)};g.forEach=function(a,b){var c=this;Map.prototype.forEach.call(this,function(d,e){a.call(b,c.get(e),e,c)})};
g.set=function(a,b){wFb(this);a=this.keyToApi(a,!0,!1);return null==a?this:null==b?(Map.prototype.delete.call(this,a),this):Map.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};g.has=function(a){return Map.prototype.has.call(this,this.keyToApi(a,!1,!1))};
g.get=function(a){a=this.keyToApi(a,!1,!1);var b=Map.prototype.get.call(this,a);if(void 0!==b){var c=this.valueCtor;return c?(c=this.valueToApi(b,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==b&&Map.prototype.set.call(this,a,c),c):b}};var qba=function(a,b){return b instanceof Kb?wba(a,b):yba(a,b)};Kb.prototype[Symbol.iterator]=function(){return this.entries()};Kb.prototype.toJSON=void 0;var Mr=function(a,b){a=a.internalArray_;return Tb(a,Pb(a),b)},Tb=function(a,b,c,d){if(-1===c)return null;if(c>=gb(b)){if(b&256)return a[a.length-1][c]}else{var e=a.length;if(d&&b&256&&(d=a[e-1][c],null!=d))return d;b=c+(+!!(b&512)-1);if(b<e)return a[b]}},rj=function(a,b,c,d){var e=a.internalArray_,f=Pb(e);jb(f);Sb(e,f,b,c,d);return a},Zi=function(a,b,c,d){return void 0!==oVa(a,b,c,void 0===d?!1:d)},Tl=function(a,b,c,d){return void 0!==oVa(a,b,Dl(a,d,c))},xFb=function(a,b){a=a.internalArray_;return Rba(a,
Pb(a),qt,b,!1,3).length},rt=function(a,b,c,d,e){ec(a,b,c,e,d,!1,1);return a},$p=function(a,b){a=a.internalArray_;var c=Pb(a),d=Tb(a,c,b),e=Yaa(d);null!=e&&e!==d&&Sb(a,c,b,e);return e},Er=function(a,b){return Zaa(Mr(a,b))},bq=function(a,b){a=a.internalArray_;var c=Pb(a),d=Tb(a,c,b),e=ib(d,!0,!0,!!(c&34));null!=e&&e!==d&&Sb(a,c,b,e);return e},yFb=function(a,b,c,d){return Yb(a,b,Yaa,c,d)},Kxa=function(a,b){a=bq(a,b);return null==a?Oa():a},Mba,rm=function(a,b,c){return ac(a,b,c,vb)},yj=function(a,b,c){return ac(a,
b,c,yb)},st=function(a,b){return rj(a,b,void 0,!1)},Kl=function(a,b,c,d){var e=a.internalArray_,f=Pb(e);jb(f);(c=Qba(e,f,c))&&c!==b&&null!=d&&Sb(e,f,c);Sb(e,f,b,d);return a},Dl=function(a,b,c){a=a.internalArray_;return Qba(a,Pb(a),b)===c?c:-1},Bl=function(a,b){a=a.internalArray_;return Qba(a,Pb(a),b)},zFb=function(a,b,c){a=a.internalArray_;var d=Pb(a);jb(d);var e=Tb(a,d,c);b=Mb(Bb(e,b,!0,d));e!==b&&Sb(a,d,c,b);return b},oVa=function(a,b,c,d){a=a.internalArray_;var e=Pb(a),f=Tb(a,e,c,d);b=Bb(f,b,!1,
e);b!==f&&null!=b&&Sb(a,e,c,b,d);return b},Fi=function(a,b,c,d){d=void 0===d?!1:d;b=oVa(a,b,c,d);if(null==b)return b;a=a.internalArray_;var e=Pb(a);if(!(e&2)){var f=Mb(b);f!==b&&(b=f,Sb(a,e,c,b,d))}return b},Ji=function(a,b,c){var d=a.internalArray_,e=Pb(d);a=!!(e&2);b=Rba(d,e,b,c,void 0,a?1:2);if(!(a||Za(b)&8)){for(c=0;c<b.length;c++)a=b[c],d=Mb(a),a!==d&&(b[c]=d);cb(b,8)}return b},oj=function(a,b,c,d,e){null==d&&(d=void 0);return rj(a,c,d,e)},Ll=function(a,b,c,d){null==d&&(d=void 0);return Kl(a,
b,c,d)},om=function(a,b,c){var d=a.internalArray_,e=Pb(d);jb(e);if(null!=c){for(var f=!!c.length,h=0;h<c.length;h++){var k=c[h];f=f&&!(Za(k.internalArray_)&2)}h=Za(c);k=h|1;k=(f?k|8:k&-9)|4;k!=h&&(c=Paa(c,k))}null==c&&(c=void 0);Sb(d,e,b,c);return a},Wp=function(a,b,c,d,e){ec(a,b,c,d,e);return a},tt=function(a,b){return ub(Mr(a,b))},Wm=function(a,b){return cba(Mr(a,b))},Zp=function(a,b){return dba(Mr(a,b))},ut=function(a,b){a=Mr(a,b);a=null==a?a:qb(a)?"number"===typeof a?a:a:void 0;return a},ZVa=
function(a,b){a=Mr(a,b);a=null==a?a:qb(a)?"string"===typeof a?a:a:void 0;return a},ji=function(a,b,c,d){return Yb(a,b,ub,c,d)},Hj=function(a,b,c,d){return Yb(a,b,cba,c,d)},Ei=function(a,b,c,d){return Yb(a,b,dba,c,d)},Ej=function(a,b){return gba(Mr(a,b))},ii=function(a,b,c,d){return Yb(a,b,gba,c,d)},Un=function(a,b){return Mr(a,b)},kj=function(a,b,c,d){return Yb(a,b,$aa,c,d)},Ri=function(a,b,c){return fc(Er(a,b),void 0===c?!1:c)},hi=function(a,b,c){c=void 0===c?0:c;return fc(tt(a,b),c)},dj=function(a,
b,c){c=void 0===c?0:c;return fc(Wm(a,b),c)},AFb=function(a){var b=void 0===b?0:b;return fc(ut(a,23),b)},Yi=function(a,b,c){c=void 0===c?"0":c;return fc(Zp(a,b),c)},El=function(a,b,c){c=void 0===c?0:c;return fc($p(a,b),c)},Hi=function(a,b,c){return fc(Ej(a,b),void 0===c?"":c)},Vi=function(a,b,c){return fc(Mr(a,b),void 0===c?0:c)},vt=function(a,b,c){a=ji(a,b,void 0,2);kb(a,c);return a[c]},wt=function(a,b){a=Ei(a,b,void 0,2);kb(a);return a[void 0]},xt=function(a,b,c){a=ii(a,b,void 0,2);kb(a,c);return a[c]},
BFb=function(a,b){a=Yb(a,b,Pb(a.internalArray_)&34?Kba:Lba,void 0,2);kb(a);return a[void 0]},CFb=function(a,b){a=kj(a,b,void 0,2);kb(a);return a[void 0]},aq=function(a,b,c){return Ej(a,Dl(a,c,b))},Fl=function(a,b,c,d){return Fi(a,b,Dl(a,d,c))},yt=function(a,b){a=tt(a,b);return null==a?void 0:a},zt=function(a,b){a=Wm(a,b);return null==a?void 0:a},At=function(a,b){a=Ej(a,b);return null==a?void 0:a},Xr=function(a,b){a=Mr(a,b);return null==a?void 0:a},mj=function(a,b,c){return rj(a,b,pb(c))},ho=function(a,
b,c){return bc(a,b,pb(c),!1)},nj=function(a,b,c){return rj(a,b,null==c?c:tb(c))},il=function(a,b,c){return bc(a,b,null==c?c:tb(c),0)},xj=function(a,b,c){return rj(a,b,wb(c))},um=function(a,b,c){return bc(a,b,wb(c),"0")},wj=function(a,b,c){return rj(a,b,wb(c))},qj=function(a,b,c){return rj(a,b,fba(c))},wm=function(a,b,c){return bc(a,b,fba(c),"")},Jl=function(a,b,c,d){return Kl(a,b,c,fba(d))},DFb=function(){var a=new Bt;return rj(a,1,1)},bm=function(a,b,c){return bc(a,b,c,0)},Ct=function(a,b,c,d){return cc(a,
b,vb(c),d)},Dt=function(a,b,c,d){return dc(a,b,c,yb(d),ii)},Qi=function(a,b){return null!=Er(a,b)},Si=function(a,b){return null!=tt(a,b)},cj=function(a,b){return null!=Wm(a,b)},Xi=function(a,b){return null!=Zp(a,b)},Ii=function(a,b){return null!=Ej(a,b)},Ti=function(a,b){return null!=Mr(a,b)};var X=function(a,b,c){this.internalArray_=m(a,b,c)};X.prototype.toJSON=function(){return uFb?Tba(this,this.internalArray_,!1):Tba(this,Ob(this.internalArray_,Fba,void 0,void 0,!1,!1),!0)};X.prototype.serialize=function(){uFb=!0;try{return JSON.stringify(this.toJSON(),Bba)}finally{uFb=!1}};var nca=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);return Hb(a,Qaa(b))};
X.prototype.getExtension=function(a){return a.ctor?a.getExtensionFn(this,a.ctor,a.fieldIndex,!0):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,!0):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,!0)};var jca=function(a,b){a=b.ctor?b.getExtensionFn(a,b.ctor,b.fieldIndex,!0):b.getExtensionFn(a,b.fieldIndex,null,!0);return null===a?void 0:a};X.prototype.hasExtension=function(a){return a.ctor?Zi(this,a.ctor,a.fieldIndex,!0):void 0!==jca(this,a)};
X.prototype.clone=function(){var a=this.internalArray_;return Hb(this.constructor,Qb(a,Pb(a),!1))};X.prototype.isMutable=function(){return!(Za(this.internalArray_)&2)};X.prototype.isImmutable=function(){return!!(Za(this.internalArray_)&2)};var Fr=function(a,b,c){b.ctor?b.setExtensionFn(a,b.ctor,b.fieldIndex,c,!0):b.setExtensionFn(a,b.fieldIndex,c,!0)};X.prototype.messagePrototypeMarker=zb;X.prototype.toString=function(){return Tba(this,this.internalArray_,!1).toString()};var Uba=Symbol(),aca=Symbol(),lc=Symbol(),kc=Symbol(),EFb=oc(function(a,b,c){if(0!==a.nextWireType_)return!1;a=a.readInt64();Sb(b,Pb(b),c,a);return!0},function(a,b,c){a.writeInt64(c,eba(b))}),Et=oc(function(a,b,c){if(0!==a.nextWireType_)return!1;a=a.readInt32();Sb(b,Pb(b),c,a);return!0},function(a,b,c){a.writeInt32(c,ub(b))}),FFb;
FFb=new jc(function(a,b,c){if(0!==a.nextWireType_&&2!==a.nextWireType_)return!1;b=Xb(b,Pb(b),c,2,!1);if(2==a.nextWireType_){c=gFb.prototype.readSignedVarint32;var d=a.decoder_.readSignedVarint32()>>>0;for(d=a.decoder_.getCursor()+d;a.decoder_.getCursor()<d;)b.push(c.call(a.decoder_))}else b.push(a.readInt32());return!0},function(a,b,c){if(Array.isArray(b)){var d=Za(b);if(!(d&4)){for(var e=0,f=0;e<b.length;e++){var h=ub(b[e]);null!=h&&(b[f++]=h)}f<e&&(b.length=f);bb(b,d|5);d&2&&Object.freeze(b)}}else b=
void 0;if(null!=b)for(d=0;d<b.length;d++)e=a,f=b[d],null!=f&&(nt(e,c,0),sFb(e.encoder_,f))},!0);
var GFb=oc(function(a,b,c){if(1!==a.nextWireType_)return!1;a=a.decoder_.readUint64String();Sb(b,Pb(b),c,a);return!0},function(a,b,c){b=eba(b);null!=b&&("string"===typeof b&&nFb(b),nt(a,c,1),"number"===typeof b?a.encoder_.writeUint64(b):(c=nFb(b),a.encoder_.writeSplitFixed64(c.lo,c.hi)))}),HFb=oc(function(a,b,c){if(5!==a.nextWireType_)return!1;a=a.decoder_.readUint32();Sb(b,Pb(b),c,a);return!0},function(a,b,c){b=bba(b);null!=b&&(nt(a,c,5),a.encoder_.writeUint32(b))}),IFb=oc(function(a,b,c){if(0!==
a.nextWireType_)return!1;a=a.readBool();Sb(b,Pb(b),c,a);return!0},function(a,b,c){a.writeBool(c,Zaa(b))}),JFb=oc(function(a,b,c,d,e){if(2!==a.nextWireType_)return!1;var f=Pb(b);jb(f);var h=Tb(b,f,c),k;if(null!=h&&h.messagePrototypeMarker===zb)d=Mb(h),d!==h&&Sb(b,f,c,d),b=d.internalArray_;else{if(Array.isArray(h)){var q=Za(h);q&2?k=Qb(h,q,!1):k=h;k=m(k,d[0],d[1])}else k=m(void 0,d[0],d[1]);k!==h&&Sb(b,f,c,k);b=k}c=a.decoder_.getEnd();f=a.decoder_.readSignedVarint32()>>>0;h=a.decoder_.getCursor()+f;
d=h-c;0>=d&&(a.decoder_.setEnd(h),e(b,a,void 0,void 0,void 0),d=h-a.decoder_.getCursor());if(d)throw Error("A`"+f+"`"+(f-d));a.decoder_.cursor_=h;a.decoder_.setEnd(c);return!0},function(a,b,c,d,e){b=b instanceof X?b.internalArray_:Array.isArray(b)?m(b,d[0],d[1]):void 0;if(null!=b){nt(a,c,2);c=a.encoder_.end();nc(a,c);c.push(a.totalLength_);e(b,a);e=c.pop();for(e=a.totalLength_+a.encoder_.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.totalLength_++;c.push(e);a.totalLength_++}});var ica=function(a,b,c,d){this.fieldIndex=a;this.fieldName=b;this.ctor=c;this.toObjectFn=d;this.isRepeated=0;this.getExtensionFn=Fi;this.setExtensionFn=oj;this.defaultValue=void 0};var KFb=function(a){this.internalArray_=m(a)};W(KFb,X);KFb.prototype.getCustomerId=function(){return Ej(this,1)};var LFb=function(a){this.internalArray_=m(a)};W(LFb,X);var MFb=function(a){this.internalArray_=m(a)};W(MFb,X);MFb.prototype.getCustomerId=function(){return Fi(this,KFb,1)};var NFb=function(a){this.internalArray_=m(a)};W(NFb,X);var OFb=[1,2];var PFb=function(a){this.internalArray_=m(a)};W(PFb,X);var QFb=function(a){if(null!=a)return uc(a),{membershipCount:rc(tt(a,1)),memberType:rc(Mr(a,2)),membershipState:rc(Mr(a,3))}};var Ft=function(a){this.internalArray_=m(a)};W(Ft,X);Ft.prototype.getValueList=function(){return Ji(this,PFb,1)};Ft.prototype.addValue=function(){return Wp(this,1,PFb)};Ft.prototype.setValue=function(a,b){return rt(this,1,PFb,a,b)};Ft.repeatedFields_=[1];var Gt=function(a){this.internalArray_=m(a)};W(Gt,X);Gt.prototype.getId=function(){return Hi(this,1)};Gt.prototype.setId=function(a){return wm(this,1,a)};Gt.prototype.getSourceId=function(){return Vi(this,2,0)};Gt.prototype.setSourceId=function(a){return bm(this,2,a)};var ll=function(a){this.internalArray_=m(a)};W(ll,X);ll.prototype.getSeconds=function(){return dj(this,1)};ll.prototype.setSeconds=function(a){return um(this,1,a)};ll.prototype.getNanos=function(){return hi(this,2)};ll.prototype.setNanos=function(a){return il(this,2,a)};var Ht=function(a){this.internalArray_=m(a)};W(Ht,X);g=Ht.prototype;g.getUrl=function(){return Hi(this,1)};g.setUrl=function(a){return wm(this,1,a)};g.getHeight=function(){return hi(this,2)};g.setHeight=function(a){return il(this,2,a)};g.getWidth=function(){return hi(this,3)};g.setWidth=function(a){return il(this,3,a)};var It=function(a){this.internalArray_=m(a)};W(It,X);It.prototype.getDuration=function(){return Fi(this,ll,2)};It.prototype.hasDuration=function(){return Zi(this,ll,2)};It.repeatedFields_=[6];var RFb=function(a){this.internalArray_=m(a)};W(RFb,X);var Jt=function(a){this.internalArray_=m(a)};W(Jt,X);Jt.prototype.getEmail=function(a){return xt(this,1,a)};Jt.prototype.setEmail=function(a){return Dt(this,1,a)};Jt.prototype.getGroupId=function(a){return xt(this,2,a)};Jt.prototype.setGroupId=function(a){Dt(this,2,a)};Jt.repeatedFields_=[1,2];var gj=function(a){this.internalArray_=m(a)};W(gj,X);g=gj.prototype;g.getSeconds=function(){return dj(this,1)};g.setSeconds=function(a){return um(this,1,a)};g.getNanos=function(){return hi(this,2)};g.setNanos=function(a){return il(this,2,a)};g.toDate=function(){var a=this.getSeconds(),b=this.getNanos();return new Date(1E3*a+b/1E6)};var SFb=function(a){if(null!=a)return uc(a),{seconds:dj(a,1),nanos:hi(a,2)}};var TFb=function(a){this.internalArray_=m(a)};W(TFb,X);var UFb=function(a){this.internalArray_=m(a)};W(UFb,X);UFb.prototype.getDownloadUrl=function(){return Hi(this,5)};var VFb=function(a){this.internalArray_=m(a)};W(VFb,X);var WFb=function(a){this.internalArray_=m(a)};W(WFb,X);WFb.prototype.getPhotoId=function(){return Hi(this,1)};var XFb=function(a){this.internalArray_=m(a)};W(XFb,X);var YFb=function(a){this.internalArray_=m(a)};W(YFb,X);var Kt=function(a){this.internalArray_=m(a)};W(Kt,X);var Lt=[2,4,5,6,7];var ZFb=function(a){this.internalArray_=m(a)};W(ZFb,X);var qt=function(a){this.internalArray_=m(a)};W(qt,X);g=qt.prototype;g.getId=function(){return Fi(this,Gt,1)};g.setId=function(a){return oj(this,Gt,1,a)};g.getName=function(){return Hi(this,2)};g.setName=function(a){return wm(this,2,a)};g.getDescription=function(){return Hi(this,3)};g.setDescription=function(a){return wm(this,3,a)};g.getParentId=function(){return Hi(this,4)};g.setParentId=function(a){return wm(this,4,a)};g.getType=function(){return Vi(this,6,0)};
g.setType=function(a){return bm(this,6,a)};g.getMimeType=function(){return Hi(this,7)};g.setMimeType=function(a){wm(this,7,a)};g.getUrl=function(){return Hi(this,8)};g.setUrl=function(a){return wm(this,8,a)};g.getIconUrl=function(){return Hi(this,11)};g.setIconUrl=function(a){return wm(this,11,a)};var Mt=function(a){return Ji(a,Ht,10)};qt.prototype.getLastModifiedTimestamp=function(){return Fi(this,gj,12)};qt.prototype.getVideoMetadata=function(){return Fi(this,It,34)};
qt.prototype.hasVideoMetadata=function(){return Zi(this,It,34)};var Nt=function(a){this.internalArray_=m(a)};W(Nt,X);g=Nt.prototype;g.getShared=function(){return Ri(this,1)};g.setShared=function(a){ho(this,1,a)};g.getVideoMetadata=function(){return Fi(this,It,3)};g.hasVideoMetadata=function(){return Zi(this,It,3)};g.getDownloadUrl=function(){return Hi(this,10)};qt.repeatedFields_=[5,10,22];var Ot=function(a){this.internalArray_=m(a)};W(Ot,X);Ot.prototype.getLabel=function(){return Hi(this,2)};Ot.prototype.setLabel=function(a){return wm(this,2,a)};var $Fb=function(a){this.internalArray_=m(a)};W($Fb,X);g=$Fb.prototype;g.getStatus=function(){return Vi(this,1,0)};g.setStatus=function(a){return bm(this,1,a)};g.getItemList=function(){return Ji(this,qt,2)};g.addItem=function(a,b){return Wp(this,2,qt,a,b)};g.setItem=function(a,b){return rt(this,2,qt,a,b)};g.getItemCount=function(){return xFb(this,2)};g.getErrorCode=function(){return Vi(this,4,0)};g.getInternalOnlyV1ViewInfo=function(){return Fi(this,Ot,7)};$Fb.repeatedFields_=[2];var Pt=function(a){this.internalArray_=m(a)};W(Pt,X);g=Pt.prototype;g.getSourceId=function(){return Vi(this,1,0)};g.setSourceId=function(a){return bm(this,1,a)};g.getName=function(){return Hi(this,8)};g.setName=function(a){return wm(this,8,a)};g.getInternalOnlyV1ViewInfo=function(){return Fi(this,Ot,18)};Pt.repeatedFields_=[14];var Qt=function(a){this.internalArray_=m(a)};W(Qt,X);g=Qt.prototype;g.getCommand=function(){return Vi(this,1,0)};g.setCommand=function(a){return bm(this,1,a)};g.getSource=function(){return Fi(this,Pt,2)};g.setSource=function(a){return oj(this,Pt,2,a)};g.hasSource=function(){return Zi(this,Pt,2)};g.setVisible=function(a){return ho(this,5,a)};g.getItemList=function(){return Ji(this,qt,7)};g.addItem=function(a,b){return Wp(this,7,qt,a,b)};g.setItem=function(a,b){return rt(this,7,qt,a,b)};
g.getItemCount=function(){return xFb(this,7)};Qt.repeatedFields_=[3,7];var aGb=function(a){this.internalArray_=m(a)};W(aGb,X);g=aGb.prototype;g.getCommand=function(){return Vi(this,1,0)};g.setCommand=function(a){return bm(this,1,a)};g.getItemList=function(){return Ji(this,qt,4)};g.addItem=function(a,b){return Wp(this,4,qt,a,b)};g.setItem=function(a,b){return rt(this,4,qt,a,b)};g.getItemCount=function(){return xFb(this,4)};var bGb=tc(aGb);aGb.repeatedFields_=[4];var vca="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Rt=function(a){return function(){return a}},St=function(){},cGb=function(a){return a},sKa=function(){var a=rKa;return function(){return!a.apply(this,arguments)}},dGb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}},Tt=function(a,b){var c=0;return function(d){da.clearTimeout(c);var e=arguments;c=da.setTimeout(function(){a.apply(void 0,e)},b)}},eGb=function(a,b){var c=0,d=!1,e=[],f=function(){c=0;d&&(d=!1,h())},h=function(){c=da.setTimeout(f,b);var k=e;e=[];a.apply(void 0,k)};
return function(k){e=arguments;c?d=!0:h()}};var fGb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var gGb,hGb=function(){if(void 0===gGb){var a=null,b=da.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:gEb,createScript:gEb,createScriptURL:gEb})}catch(c){da.console&&da.console.error(c.message)}gGb=a}else gGb=a}return gGb};var Fc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===iGb&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=jGb};Fc.prototype.implementsGoogStringTypedString=!0;Fc.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Gc=function(a){return a instanceof Fc&&a.constructor===Fc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===jGb?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Ut=function(a){return new Fc(iGb,a)},jGb={},iGb={};var Vt=function(a){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=a};Vt.prototype.toString=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+""};Vt.prototype.implementsGoogStringTypedString=!0;Vt.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};
var di=function(a){if(a instanceof Vt&&a.constructor===Vt)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;ob(a);return"type_error:TrustedResourceUrl"},kGb={},lh=function(a){var b=hGb();a=b?b.createScriptURL(a):a;return new Vt(a,kGb)};var Dc=function(a){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=a};Dc.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};Dc.prototype.implementsGoogStringTypedString=!0;Dc.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};
var Ec=function(a){if(a instanceof Dc&&a.constructor===Dc)return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;ob(a);return"type_error:SafeUrl"},lGb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,mGb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Eca=function(a){if(a instanceof Dc)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);mGb.test(a)?a=oh(a):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(lGb)?oh(a):null);return a},nGb;
try{new URL("s://g"),nGb=!0}catch(a){nGb=!1}
var oGb=nGb,era=function(a){if(a instanceof Dc)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);a:{var b=a;if(oGb){try{var c=new URL(b)}catch(d){b="https:";break a}b=c.protocol}else b:{c=document.createElement("a");try{c.href=b}catch(d){b=void 0;break b}b=c.protocol;b=":"===b||""===b?"https:":b}}"javascript:"===b&&(a="about:invalid#zClosurez");return oh(a)},pGb={},oh=function(a){return new Dc(a,pGb)},Hc=oh("about:invalid#zClosurez");var qGb={},Wt=function(a){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=a;this.implementsGoogStringTypedString=!0};Wt.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};Wt.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()};
var rGb=function(a){if(a instanceof Wt&&a.constructor===Wt)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;ob(a);return"type_error:SafeStyle"},sGb=new Wt("",qGb),zca=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),yca=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),xca=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)",
"g"),Aca=/\/\*/;var Xt=function(a){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=a;this.implementsGoogStringTypedString=!0};Xt.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()};Xt.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};var tGb=function(a){if(a instanceof Xt&&a.constructor===Xt)return a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;ob(a);return"type_error:SafeStyleSheet"};var uGb={},fh=function(a){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=a;this.implementsGoogStringTypedString=!0};fh.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};fh.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};
var ih=function(a){if(a instanceof fh&&a.constructor===fh)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;ob(a);return"type_error:SafeHtml"},Uo=function(a){return a instanceof fh?a:gh(pEb("object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a)))},vGb=function(a){if(a instanceof fh)return a;a=Uo(a);a=ih(a).toString().replace(/(\r\n|\r|\n)/g,"<br>");return gh(a)},so=function(a,b,c){var d=String(a);if(!wGb.test(d))throw Error("X");if(d.toUpperCase()in xGb)throw Error("X");
a=String(a);d="<"+a;var e="";if(b)for(var f in b)if(Object.prototype.hasOwnProperty.call(b,f)){if(!wGb.test(f))throw Error("X");var h=b[f];if(null!=h){var k=f;var q=h;if(q instanceof Fc)q=Gc(q);else if("style"==k.toLowerCase()){h=void 0;if(!Fa(q))throw Error("X");if(!(q instanceof Wt)){var u="";for(h in q)if(Object.prototype.hasOwnProperty.call(q,h)){if(!/^[-_a-zA-Z0-9]+$/.test(h))throw Error("W`"+h);var x=q[h];null!=x&&(x=Array.isArray(x)?x.map(Dca).join(" "):Dca(x),u+=h+":"+x+";")}q=u?new Wt(u,
qGb):sGb}q=rGb(q)}else{if(/^on/i.test(k))throw Error("X");if(k.toLowerCase()in yGb)if(q instanceof Vt)q=di(q).toString();else if(q instanceof Dc)q=Ec(q);else if("string"===typeof q)q=(Eca(q)||Hc).getTypedStringValue();else throw Error("X");}q.implementsGoogStringTypedString&&(q=q.getTypedStringValue());k=k+'="'+pEb(String(q))+'"';e+=" "+k}}b=d+e;null==c?c=[]:Array.isArray(c)||(c=[c]);!0===fGb[a.toLowerCase()]?b+=">":(f=to(c),b+=">"+ih(f).toString()+"</"+a+">");return gh(b)},zGb=function(a){var b=
Uo(Hs),c=[],d=function(e){Array.isArray(e)?e.forEach(d):(e=Uo(e),c.push(ih(e).toString()))};a.forEach(d);return gh(c.join(ih(b).toString()))},to=function(a){return zGb(Array.prototype.slice.call(arguments))},gh=function(a){var b=hGb();a=b?b.createHTML(a):a;return new fh(a,uGb)},wGb=/^[a-zA-Z0-9-]+$/,yGb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},xGb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Hs=
new fh(da.trustedTypes&&da.trustedTypes.emptyHTML||"",uGb);var AGb=dGb(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=ih(Hs);return!b.parentElement}),qKa=function(a,b){if(AGb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=ih(b)},BGb=function(a,b){b=b instanceof Dc?b:era(b);a.action=Ec(b)},DGb=function(a,b){var c=CGb(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c);a.src=di(b)},fra=function(a,
b,c,d){a=a instanceof Dc?a:era(a);b=b||da;c=c instanceof Fc?Gc(c):c||"";return void 0!==d?b.open(Ec(a),c,d):b.open(Ec(a),c)},EGb=/^[\w+/_-]+[=]{0,2}$/,CGb=function(a){a=(a||da).document;return a.querySelector?(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&EGb.test(a)?a:"":""};var FGb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},GGb=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},fo=function(a){return!/[^0-9]/.test(a)},Qj=function(a){return a=pEb(a)},HGb=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a},F6a=function(a,b,c){return a.replace(new RegExp(Wn(b),
"g"),c.replace(/\$/g,"$$$$"))},Wn=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},IGb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Yt=function(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");-1===c&&(c=a.length);var d="-"===a[0]?"-":"";d&&(a=a.substring(1));return d+IGb("0",Math.max(0,b-c))+a},Ni=function(a){return null==a?"":String(a)},Zt=function(){return Math.floor(2147483648*
Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)},fl=function(a){var b=Number(a);return 0==b&&Oi(a)?NaN:b},fi=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},qi=function(a){isFinite(a)&&(a=String(a));return"string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},JGb=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));
return c};(function(a){function b(ja){q&&q.mark&&q.mark(ja)}function c(ja,ya){q&&q.measure&&q.measure(ja,ya)}function d(ja){return u+ja}function e(ja){oa||a[R]&&(oa=a[R].resolve(0));if(oa){var ya=oa[U];ya||(ya=oa.then);ya.call(oa,ja)}else a[O](ja,0)}function f(ja){0===$a&&0===Z.length&&e(h);ja&&Z.push(ja)}function h(){if(!na){for(na=!0;Z.length;){var ja=Z;Z=[];for(var ya=0;ya<ja.length;ya++){var Ha=ja[ya];try{Ha.zone.runTask(Ha,null,null)}catch(ab){Ga.onUnhandledError(ab)}}}Ga.microtaskDrainDone();na=!1}}function k(){}
var q=a.performance;b("Zone");var u=a.__Zone_symbol_prefix||"__zone_symbol__",x=!0===a[d("forceDuplicateZoneCheck")];if(a.Zone){if(x||"function"!==typeof a.Zone.__symbol__)throw Error("Y");return a.Zone}var y=function(ja,ya){this._parent=ja;this._name=ya?ya.name||"unnamed":"<root>";this._properties=ya&&ya.properties||{};this._zoneDelegate=new H(this,this._parent&&this._parent._zoneDelegate,ya)};y.assertZonePatched=function(){if(a.Promise!==Da.ZoneAwarePromise)throw Error("Z");};y.__load_patch=function(ja,
ya,Ha){Ha=void 0===Ha?!1:Ha;if(Da.hasOwnProperty(ja)){if(!Ha&&x)throw Error("$`"+ja);}else a["__Zone_disable_"+ja]||(Ha="Zone:"+ja,b(Ha),Da[ja]=ya(a,y,Ga),c(Ha,Ha))};y.prototype.get=function(ja){var ya=this.getZoneWith(ja);if(ya)return ya._properties[ja]};y.prototype.getZoneWith=function(ja){for(var ya=this;ya;){if(ya._properties.hasOwnProperty(ja))return ya;ya=ya._parent}return null};y.prototype.fork=function(ja){if(!ja)throw Error("aa");return this._zoneDelegate.fork(this,ja)};y.prototype.wrap=
function(ja,ya){if("function"!==typeof ja)throw Error("ba`"+ja);var Ha=this._zoneDelegate.intercept(this,ja,ya),ab=this;return function(){return ab.runGuarded(Ha,this,arguments,ya)}};y.prototype.run=function(ja,ya,Ha,ab){Ub={parent:Ub,zone:this};try{return this._zoneDelegate.invoke(this,ja,ya,Ha,ab)}finally{Ub=Ub.parent}};y.prototype.runGuarded=function(ja,ya,Ha,ab){Ub={parent:Ub,zone:this};try{try{return this._zoneDelegate.invoke(this,ja,void 0===ya?null:ya,Ha,ab)}catch(Ra){if(this._zoneDelegate.handleError(this,
Ra))throw Ra;}}finally{Ub=Ub.parent}};y.prototype.runTask=function(ja,ya,Ha){if(ja.zone!=this)throw Error("ca`"+(ja.zone||wa).name+"`"+this.name);if("notScheduled"!==ja.state||"eventTask"!==ja.type&&"macroTask"!==ja.type){var ab="running"!=ja.state;ab&&ja._transitionTo("running","scheduled");ja.runCount++;var Ra=Vb;Vb=ja;Ub={parent:Ub,zone:this};try{"macroTask"==ja.type&&ja.data&&!ja.data.isPeriodic&&(ja.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ja,ya,Ha)}catch(Jc){if(this._zoneDelegate.handleError(this,
Jc))throw Jc;}}finally{"notScheduled"!==ja.state&&"unknown"!==ja.state&&("eventTask"==ja.type||ja.data&&ja.data.isPeriodic?ab&&ja._transitionTo("scheduled","running"):(ja.runCount=0,this._updateTaskCount(ja,-1),ab&&ja._transitionTo("notScheduled","running","notScheduled"))),Ub=Ub.parent,Vb=Ra}}};y.prototype.scheduleTask=function(ja){if(ja.zone&&ja.zone!==this)for(var ya=this;ya;){if(ya===ja.zone)throw Error("da`"+this.name+"`"+ja.zone.name);ya=ya.parent}ja._transitionTo("scheduling","notScheduled");
ya=[];ja._zoneDelegates=ya;ja._zone=this;try{ja=this._zoneDelegate.scheduleTask(this,ja)}catch(Ha){throw ja._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,Ha),Ha;}ja._zoneDelegates===ya&&this._updateTaskCount(ja,1);"scheduling"==ja.state&&ja._transitionTo("scheduled","scheduling");return ja};y.prototype.scheduleMicroTask=function(ja,ya,Ha,ab){return this.scheduleTask(new J("microTask",ja,ya,Ha,ab,void 0))};y.prototype.scheduleMacroTask=function(ja,ya,Ha,ab,
Ra){return this.scheduleTask(new J("macroTask",ja,ya,Ha,ab,Ra))};y.prototype.scheduleEventTask=function(ja,ya,Ha,ab,Ra){return this.scheduleTask(new J("eventTask",ja,ya,Ha,ab,Ra))};y.prototype.cancelTask=function(ja){if(ja.zone!=this)throw Error("ea`"+(ja.zone||wa).name+"`"+this.name);if("scheduled"===ja.state||"running"===ja.state){ja._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,ja)}catch(ya){throw ja._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,
ya),ya;}this._updateTaskCount(ja,-1);ja._transitionTo("notScheduled","canceling");ja.runCount=0;return ja}};y.prototype._updateTaskCount=function(ja,ya){var Ha=ja._zoneDelegates;-1==ya&&(ja._zoneDelegates=null);for(var ab=0;ab<Ha.length;ab++)Ha[ab]._updateTaskCount(ja.type,ya)};Qh.Object.defineProperties(y.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});Qh.Object.defineProperties(y,{root:{configurable:!0,
enumerable:!0,get:function(){for(var ja=y.current;ja.parent;)ja=ja.parent;return ja}},current:{configurable:!0,enumerable:!0,get:function(){return Ub.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return Vb}}});y.__symbol__=d;var E={name:"",onHasTask:function(ja,ya,Ha,ab){return ja.hasTask(Ha,ab)},onScheduleTask:function(ja,ya,Ha,ab){return ja.scheduleTask(Ha,ab)},onInvokeTask:function(ja,ya,Ha,ab,Ra,Jc){return ja.invokeTask(Ha,ab,Ra,Jc)},onCancelTask:function(ja,ya,Ha,ab){return ja.cancelTask(Ha,
ab)}},H=function(ja,ya,Ha){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this.zone=ja;this._parentDelegate=ya;this._forkZS=Ha&&(Ha&&Ha.onFork?Ha:ya._forkZS);this._forkDlgt=Ha&&(Ha.onFork?ya:ya._forkDlgt);this._forkCurrZone=Ha&&(Ha.onFork?this.zone:ya._forkCurrZone);this._interceptZS=Ha&&(Ha.onIntercept?Ha:ya._interceptZS);this._interceptDlgt=Ha&&(Ha.onIntercept?ya:ya._interceptDlgt);this._interceptCurrZone=Ha&&(Ha.onIntercept?this.zone:ya._interceptCurrZone);this._invokeZS=Ha&&(Ha.onInvoke?
Ha:ya._invokeZS);this._invokeDlgt=Ha&&(Ha.onInvoke?ya:ya._invokeDlgt);this._invokeCurrZone=Ha&&(Ha.onInvoke?this.zone:ya._invokeCurrZone);this._handleErrorZS=Ha&&(Ha.onHandleError?Ha:ya._handleErrorZS);this._handleErrorDlgt=Ha&&(Ha.onHandleError?ya:ya._handleErrorDlgt);this._handleErrorCurrZone=Ha&&(Ha.onHandleError?this.zone:ya._handleErrorCurrZone);this._scheduleTaskZS=Ha&&(Ha.onScheduleTask?Ha:ya._scheduleTaskZS);this._scheduleTaskDlgt=Ha&&(Ha.onScheduleTask?ya:ya._scheduleTaskDlgt);this._scheduleTaskCurrZone=
Ha&&(Ha.onScheduleTask?this.zone:ya._scheduleTaskCurrZone);this._invokeTaskZS=Ha&&(Ha.onInvokeTask?Ha:ya._invokeTaskZS);this._invokeTaskDlgt=Ha&&(Ha.onInvokeTask?ya:ya._invokeTaskDlgt);this._invokeTaskCurrZone=Ha&&(Ha.onInvokeTask?this.zone:ya._invokeTaskCurrZone);this._cancelTaskZS=Ha&&(Ha.onCancelTask?Ha:ya._cancelTaskZS);this._cancelTaskDlgt=Ha&&(Ha.onCancelTask?ya:ya._cancelTaskDlgt);this._cancelTaskCurrZone=Ha&&(Ha.onCancelTask?this.zone:ya._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=
this._hasTaskDlgt=this._hasTaskZS=null;var ab=Ha&&Ha.onHasTask,Ra=ya&&ya._hasTaskZS;if(ab||Ra)this._hasTaskZS=ab?Ha:E,this._hasTaskDlgt=ya,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=ja,Ha.onScheduleTask||(this._scheduleTaskZS=E,this._scheduleTaskDlgt=ya,this._scheduleTaskCurrZone=this.zone),Ha.onInvokeTask||(this._invokeTaskZS=E,this._invokeTaskDlgt=ya,this._invokeTaskCurrZone=this.zone),Ha.onCancelTask||(this._cancelTaskZS=E,this._cancelTaskDlgt=ya,this._cancelTaskCurrZone=this.zone)};H.prototype.fork=
function(ja,ya){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ja,ya):new y(ja,ya)};H.prototype.intercept=function(ja,ya,Ha){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ja,ya,Ha):ya};H.prototype.invoke=function(ja,ya,Ha,ab,Ra){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ja,ya,Ha,ab,Ra):ya.apply(Ha,ab)};H.prototype.handleError=function(ja,ya){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,
this._handleErrorCurrZone,ja,ya):!0};H.prototype.scheduleTask=function(ja,ya){var Ha=ya;if(this._scheduleTaskZS)this._hasTaskZS&&Ha._zoneDelegates.push(this._hasTaskDlgtOwner),(Ha=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ja,ya))||(Ha=ya);else if(ya.scheduleFn)ya.scheduleFn(ya);else if("microTask"==ya.type)f(ya);else throw Error("fa");return Ha};H.prototype.invokeTask=function(ja,ya,Ha,ab){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,
this._invokeTaskCurrZone,ja,ya,Ha,ab):ya.callback.apply(Ha,ab)};H.prototype.cancelTask=function(ja,ya){if(this._cancelTaskZS)ja=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ja,ya);else{if(!ya.cancelFn)throw Error("ga");ja=ya.cancelFn(ya)}return ja};H.prototype.hasTask=function(ja,ya){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ja,ya)}catch(Ha){this.handleError(ja,Ha)}};H.prototype._updateTaskCount=function(ja,ya){var Ha=this._taskCounts,
ab=Ha[ja];ya=Ha[ja]=ab+ya;if(0>ya)throw Error("ha");0!=ab&&0!=ya||this.hasTask(this.zone,{microTask:0<Ha.microTask,macroTask:0<Ha.macroTask,eventTask:0<Ha.eventTask,change:ja})};var J=function(ja,ya,Ha,ab,Ra,Jc){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=ja;this.source=ya;this.data=ab;this.scheduleFn=Ra;this.cancelFn=Jc;if(!Ha)throw Error("ia");this.callback=Ha;var Ua=this;this.invoke="eventTask"===ja&&ab&&ab.useG?J.invokeTask:function(){return J.invokeTask.call(a,
Ua,this,arguments)}};J.invokeTask=function(ja,ya,Ha){ja||(ja=this);$a++;try{return ja.runCount++,ja.zone.runTask(ja,ya,Ha)}finally{1==$a&&h(),$a--}};J.prototype._transitionTo=function(ja,ya,Ha){if(this._state===ya||this._state===Ha)this._state=ja,"notScheduled"==ja&&(this._zoneDelegates=null);else throw Error("ja`"+this.type+"`"+this.source+"`"+ja+"`"+ya+"`"+(Ha?" or '"+Ha+"'":"")+"`"+this._state);};J.prototype.toString=function(){return this.data&&"undefined"!==typeof this.data.handleId?this.data.handleId.toString():
Object.prototype.toString.call(this)};J.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};Qh.Object.defineProperties(J.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var O=d("setTimeout"),R=d("Promise"),U=d("then"),Z=[],na=!1,oa,wa={name:"NO ZONE"},Da={},Ga={symbol:d,currentZoneFrame:function(){return Ub},onUnhandledError:k,
microtaskDrainDone:k,scheduleMicroTask:f,showUncaughtError:function(){return!y[d("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:k,patchMethod:function(){return k},bindArguments:function(){return[]},patchThen:function(){return k},patchMacroTask:function(){return k},patchEventPrototype:function(){return k},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return k},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},
ArraySlice:function(){return[]},patchClass:function(){return k},wrapWithCurrentZone:function(){return k},filterProperties:function(){return[]},attachOriginToPatched:function(){return k},_redefineProperty:function(){return k},patchCallbacks:function(){return k},nativeScheduleMicroTask:e},Ub={parent:null,zone:new y(null,null)},Vb=null,$a=0;c("Zone","Zone");return a.Zone=y})("undefined"!==typeof window&&window||"undefined"!==typeof self&&self||global);Zone.__load_patch("Error",function(a,b,c){function d(Z){for(var na={zoneName:Z.zone.name},oa=na;Z.parent;){Z=Z.parent;var wa={zoneName:Z.zone.name};na=na.parent=wa}return oa}function e(Z,na,oa){oa=void 0===oa?!0:oa;Z=Z.split("\n");for(var wa=0;Z[wa]!==u&&Z[wa]!==x&&Z[wa]!==y&&Z[wa]!==E&&Z[wa]!==H&&wa<Z.length;)wa++;for(;wa<Z.length&&na;wa++){var Da=Z[wa];if(Da.trim())switch(q[Da]){case 0:Z.splice(wa,1);wa--;break;case 1:na.parent?na=na.parent:na=null;Z.splice(wa,1);wa--;break;default:Z[wa]+=oa?" ["+
na.zone.name+"]":" ["+na.zoneName+"]"}}return Z.join("\n")}function f(){var Z=this,na=k.apply(this,arguments),oa=na.originalStack=na.stack;if(f.stackRewrite&&oa){var wa=c.currentZoneFrame();if("lazy"===J)na[c.symbol("zoneFrameNames")]=d(wa);else if("default"===J)try{na.stack=na.zoneAwareStack=e(oa,wa)}catch(Da){}}return this instanceof k&&this.constructor!=k?(Object.keys(na).concat("stack","message").forEach(function(Da){var Ga=na[Da];if(void 0!==Ga)try{Z[Da]=Ga}catch(Ub){}}),this):na}var h=c.symbol("zoneJsInternalStackFrames"),
k=a[c.symbol("Error")]=a.Error,q={},u,x,y,E,H;a.Error=f;var J=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=k.prototype;f[h]=q;f.stackRewrite=!1;var O=c.symbol("zoneAwareStack");"lazy"===J&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[O]||(this[O]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[O]},set:function(Z){this.originalStack=Z;this[O]=e(this.originalStack,
this[c.symbol("zoneFrameNames")],!1)}});var R=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(k))&&a.forEach(function(Z){0===R.filter(function(na){return na===Z}).length&&Object.defineProperty(f,Z,{get:function(){return k[Z]},set:function(na){k[Z]=na}})});k.hasOwnProperty("stackTraceLimit")&&(k.stackTraceLimit=Math.max(k.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return k.stackTraceLimit},set:function(Z){return k.stackTraceLimit=Z}}));
k.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(Z,na){k.captureStackTrace(Z,na)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return k.prepareStackTrace},set:function(Z){return Z&&"function"===typeof Z?k.prepareStackTrace=function(na,oa){if(oa)for(var wa=0;wa<oa.length;wa++)if("zoneCaptureStackTrace"===oa[wa].getFunctionName()){oa.splice(wa,1);break}return Z.call(this,na,oa)}:k.prepareStackTrace=Z}});if("disable"!==J){var U=b.current.fork({name:"detect",
onHandleError:function(Z,na,oa,wa){if(wa.originalStack&&Error===f)for(Z=wa.originalStack.split(/\n/),wa=oa=na=!1;Z.length;){var Da=Z.shift();if(/:\d+:\d+/.test(Da)||"ZoneAwareError"===Da){var Ga=Da.split("(")[0].split("@")[0],Ub=1;-1!==Ga.indexOf("ZoneAwareError")&&(-1!==Ga.indexOf("new ZoneAwareError")?(u=Da,x=Da.replace("new ZoneAwareError","new Error.ZoneAwareError")):(y=Da,E=Da.replace("Error.",""),-1===Da.indexOf("Error.ZoneAwareError")&&(H=Da.replace("ZoneAwareError","Error.ZoneAwareError"))),
q[x]=0);-1!==Ga.indexOf("runGuarded")?oa=!0:-1!==Ga.indexOf("runTask")?wa=!0:-1!==Ga.indexOf("run")?na=!0:Ub=0;q[Da]=Ub;if(na&&oa&&wa){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(Z,na,oa,wa){return Z.scheduleTask(oa,wa)},onInvokeTask:function(Z,na,oa,wa,Da,Ga){return Z.invokeTask(oa,wa,Da,Ga)},onCancelTask:function(Z,na,oa,wa){return Z.cancelTask(oa,wa)},onInvoke:function(Z,na,oa,wa,Da,Ga,Ub){return Z.invoke(oa,wa,Da,Ga,Ub)}});b=Error.stackTraceLimit;Error.stackTraceLimit=
100;U.run(function(){U.runGuarded(function(){var Z=function(){};U.scheduleEventTask(h,function(){U.scheduleMacroTask(h,function(){U.scheduleMicroTask(h,function(){throw Error();},void 0,function(na){na._transitionTo=Z;na.invoke()});U.scheduleMicroTask(h,function(){throw Error();},void 0,function(na){na._transitionTo=Z;na.invoke()})},void 0,function(na){na._transitionTo=Z;na.invoke()},function(){})},void 0,function(na){na._transitionTo=Z;na.invoke()},function(){})})});Error.stackTraceLimit=b}});var Ic=Object.getOwnPropertyDescriptor,Kca=Object.defineProperty,Nca=Object.getPrototypeOf,KGb=Object.create,LGb=Array.prototype.slice,MGb=Zone.__symbol__("addEventListener"),NGb=Zone.__symbol__("removeEventListener"),Sc=Zone.__symbol__(""),Lc=Zone.__symbol__,OGb="undefined"!==typeof window,Rc=OGb?window:void 0,Nc=OGb&&Rc||"object"===typeof self&&self||global,PGb="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Uc=!("nw"in Nc)&&"undefined"!==typeof Nc.process&&"[object process]"===
{}.toString.call(Nc.process),QGb=!Uc&&!PGb&&!(!OGb||!Rc.HTMLElement),RGb="undefined"!==typeof Nc.process&&"[object process]"==={}.toString.call(Nc.process)&&!PGb&&!(!OGb||!Rc.HTMLElement),Mc={},Jca=function(a){if(a=a||Nc.event){var b=Mc[a.type];b||(b=Mc[a.type]=Lc("ON_PROPERTY"+a.type));var c=this||a.target||Nc;b=c[b];QGb&&c===Rc&&"error"===a.type?(c=a,c=b&&b.call(this,c.message,c.filename,c.lineno,c.colno,c.error),!0===c&&a.preventDefault()):(c=b&&b.apply(this,arguments),void 0==c||c||a.preventDefault());
return c}},Oc=Lc("originalInstance"),Pca=!1,Qca=!1;var Vc=!1;if("undefined"!==typeof window)try{var SGb=Object.defineProperty({},"passive",{get:function(){Vc=!0}});window.addEventListener("test",SGb,SGb);window.removeEventListener("test",SGb,SGb)}catch(a){Vc=!1}var Vca={useG:!0},Tc={},Uca={},Xca=new RegExp("^"+Sc+"(\\w+)(true|false)$"),Tca=Lc("propagationStopped");Zone.__load_patch("ZoneAwarePromise",function(a,b,c){function d(Ua){if(Ua&&Ua.toString===Object.prototype.toString){var mb=Ua.constructor&&Ua.constructor.name;return(mb?mb:"")+": "+JSON.stringify(Ua)}return Ua?Ua.toString():Object.prototype.toString.call(Ua)}function e(Ua){c.onUnhandledError(Ua);try{var mb=b[oa];"function"===typeof mb&&mb.call(this,Ua)}catch(Qa){}}function f(Ua){return Ua}function h(Ua){return Ra.reject(Ua)}function k(Ua,mb){return function(Qa){try{q(Ua,mb,Qa)}catch(Ab){q(Ua,!1,Ab)}}}
function q(Ua,mb,Qa){var Ab=$a();if(Ua===Qa)throw new TypeError("la");if(null===Ua[wa]){var db=null;try{if("object"===typeof Qa||"function"===typeof Qa)db=Qa&&Qa.then}catch(Gb){return Ab(function(){q(Ua,!1,Gb)})(),Ua}if(!1!==mb&&Qa instanceof Ra&&Qa.hasOwnProperty(wa)&&Qa.hasOwnProperty(Da)&&null!==Qa[wa])u(Qa),q(Ua,Qa[wa],Qa[Da]);else if(!1!==mb&&"function"===typeof db)try{db.call(Qa,Ab(k(Ua,mb)),Ab(k(Ua,!1)))}catch(Gb){Ab(function(){q(Ua,!1,Gb)})()}else{Ua[wa]=mb;Ab=Ua[Da];Ua[Da]=Qa;Ua[Ga]===Ga&&
!0===mb&&(Ua[wa]=Ua[Vb],Ua[Da]=Ua[Ub]);!1===mb&&Qa instanceof Error&&(db=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&J(Qa,ja,{configurable:!0,enumerable:!1,writable:!0,value:db});for(db=0;db<Ab.length;)x(Ua,Ab[db++],Ab[db++],Ab[db++],Ab[db++]);if(0==Ab.length&&0==mb){Ua[wa]=0;mb=Qa;try{throw Error("ma`"+d(Qa)+"`"+(Qa&&Qa.stack?"\n"+Qa.stack:""));}catch(Gb){mb=Gb}U&&(mb.throwOriginal=!0);mb.rejection=Qa;mb.promise=Ua;mb.zone=b.current;mb.task=b.currentTask;R.push(mb);
c.scheduleMicroTask()}}}return Ua}function u(Ua){if(0===Ua[wa]){try{var mb=b[ya];mb&&"function"===typeof mb&&mb.call(this,{rejection:Ua[Da],promise:Ua})}catch(Qa){}Ua[wa]=!1;for(mb=0;mb<R.length;mb++)Ua===R[mb].promise&&R.splice(mb,1)}}function x(Ua,mb,Qa,Ab,db){u(Ua);var Gb=Ua[wa],Lb=Gb?"function"===typeof Ab?Ab:f:"function"===typeof db?db:h;mb.scheduleMicroTask("Promise.then",function(){try{var Rb=Ua[Da],Cc=!!Qa&&Ga===Qa[Ga];Cc&&(Qa[Ub]=Rb,Qa[Vb]=Gb);var Tf=mb.run(Lb,void 0,Cc&&Lb!==h&&Lb!==f?[]:
[Rb]);q(Qa,!0,Tf)}catch(yd){q(Qa,!1,yd)}},Qa)}function y(Ua){var mb=Ua.prototype,Qa=H(mb,"then");if(!Qa||!1!==Qa.writable&&Qa.configurable){var Ab=mb.then;mb[na]=Ab;Ua.prototype.then=function(db,Gb){var Lb=this;return(new Ra(function(Rb,Cc){Ab.call(Lb,Rb,Cc)})).then(db,Gb)};Ua[Jc]=!0}}function E(Ua){return function(mb,Qa){mb=Ua.apply(mb,Qa);if(mb instanceof Ra)return mb;Qa=mb.constructor;Qa[Jc]||y(Qa);return mb}}var H=Object.getOwnPropertyDescriptor,J=Object.defineProperty,O=c.symbol,R=[],U=!0===
a[O("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],Z=O("Promise"),na=O("then");c.onUnhandledError=function(Ua){if(c.showUncaughtError()){var mb=Ua&&Ua.rejection;mb?console.error("Unhandled Promise rejection:",mb instanceof Error?mb.message:mb,"; Zone:",Ua.zone.name,"; Task:",Ua.task&&Ua.task.source,"; Value:",mb,mb instanceof Error?mb.stack:void 0):console.error(Ua)}};c.microtaskDrainDone=function(){for(var Ua={};R.length;){Ua={uncaughtPromiseError:Ua.uncaughtPromiseError};Ua.uncaughtPromiseError=
R.shift();try{Ua.uncaughtPromiseError.zone.runGuarded(function(mb){return function(){if(mb.uncaughtPromiseError.throwOriginal)throw mb.uncaughtPromiseError.rejection;throw mb.uncaughtPromiseError;}}(Ua))}catch(mb){e(mb)}}};var oa=O("unhandledPromiseRejectionHandler"),wa=O("state"),Da=O("value"),Ga=O("finally"),Ub=O("parentPromiseValue"),Vb=O("parentPromiseState"),$a=function(){var Ua=!1;return function(mb){return function(){Ua||(Ua=!0,mb.apply(null,arguments))}}},ja=O("currentTaskTrace"),ya=O("rejectionHandledHandler"),
Ha=function(){},ab=a.AggregateError,Ra=function(Ua){if(!(this instanceof Ra))throw Error("na");this[wa]=null;this[Da]=[];try{var mb=$a();Ua&&Ua(mb(k(this,!0)),mb(k(this,!1)))}catch(Qa){q(this,!1,Qa)}};Ra.toString=function(){return"function ZoneAwarePromise() { [native code] }"};Ra.resolve=function(Ua){return q(new this(null),!0,Ua)};Ra.reject=function(Ua){return q(new this(null),!1,Ua)};Ra.any=function(Ua){if(!Ua||"function"!==typeof Ua[Symbol.iterator])return Promise.reject(new ab([],"All promises were rejected"));
var mb=[],Qa=0;try{for(var Ab=l(Ua),db=Ab.next();!db.done;db=Ab.next()){var Gb=db.value;Qa++;mb.push(Ra.resolve(Gb))}}catch(Cc){return Promise.reject(new ab([],"All promises were rejected"))}if(0===Qa)return Promise.reject(new ab([],"All promises were rejected"));var Lb=!1,Rb=[];return new Ra(function(Cc,Tf){for(var yd=0;yd<mb.length;yd++)mb[yd].then(function(me){Lb||(Lb=!0,Cc(me))},function(me){Rb.push(me);Qa--;0===Qa&&(Lb=!0,Tf(new ab(Rb,"All promises were rejected")))})})};Ra.race=function(Ua){function mb(Rb){Ab(Rb)}
function Qa(Rb){db(Rb)}var Ab,db,Gb=new this(function(Rb,Cc){Ab=Rb;db=Cc});Ua=l(Ua);for(var Lb=Ua.next();!Lb.done;Lb=Ua.next())(Lb=Lb.value)&&Lb.then||(Lb=this.resolve(Lb)),Lb.then(mb,Qa);return Gb};Ra.all=function(Ua){return Ra.allWithCallback(Ua)};Ra.allSettled=function(Ua){return(this&&this.prototype instanceof Ra?this:Ra).allWithCallback(Ua,{thenCallback:function(mb){return{status:"fulfilled",value:mb}},errorCallback:function(mb){return{status:"rejected",reason:mb}}})};Ra.allWithCallback=function(Ua,
mb){var Qa,Ab,db=new this(function(yd,me){Qa=yd;Ab=me}),Gb=2,Lb=0,Rb=[];Ua=l(Ua);for(var Cc=Ua.next(),Tf={};!Cc.done;Tf={curValueIndex:Tf.curValueIndex},Cc=Ua.next()){(Cc=Cc.value)&&Cc.then||(Cc=this.resolve(Cc));Tf.curValueIndex=Lb;try{Cc.then(function(yd){return function(me){Rb[yd.curValueIndex]=mb?mb.thenCallback(me):me;Gb--;0===Gb&&Qa(Rb)}}(Tf),function(yd){return function(me){mb?(Rb[yd.curValueIndex]=mb.errorCallback(me),Gb--,0===Gb&&Qa(Rb)):Ab(me)}}(Tf))}catch(yd){Ab(yd)}Gb++;Lb++}Gb-=2;0===
Gb&&Qa(Rb);return db};Qh.Object.defineProperty(Ra.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});Qh.Object.defineProperty(Ra.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return Ra}});Ra.prototype.then=function(Ua,mb){var Qa,Ab=null==(Qa=this.constructor)?void 0:Qa[Symbol.species];Ab&&"function"===typeof Ab||(Ab=this.constructor||Ra);Qa=new Ab(Ha);Ab=b.current;null==this[wa]?this[Da].push(Ab,Qa,Ua,mb):x(this,Ab,Qa,Ua,mb);return Qa};
Ra.prototype.catch=function(Ua){return this.then(null,Ua)};Ra.prototype.finally=function(Ua){var mb,Qa=null==(mb=this.constructor)?void 0:mb[Symbol.species];Qa&&"function"===typeof Qa||(Qa=Ra);mb=new Qa(Ha);mb[Ga]=Ga;Qa=b.current;null==this[wa]?this[Da].push(Qa,mb,Ua,Ua):x(this,Qa,mb,Ua,Ua);return mb};Ra.resolve=Ra.resolve;Ra.reject=Ra.reject;Ra.race=Ra.race;Ra.all=Ra.all;Z=a[Z]=a.Promise;a.Promise=Ra;var Jc=O("thenPatched");c.patchThen=y;Z&&(y(Z),Qc(a,"fetch",function(Ua){return E(Ua)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=
R;return Ra});var Wc=Lc("zoneTask");Zone.__load_patch("toString",function(a){var b=Function.prototype.toString,c=Lc("OriginalDelegate"),d=Lc("Promise"),e=Lc("Error"),f=function(){if("function"===typeof this){var k=this[c];if(k)return"function"===typeof k?b.call(k):Object.prototype.toString.call(k);if(this===Promise&&(k=a[d])||this===Error&&(k=a[e]))return b.call(k)}return b.call(this)};f[c]=b;Function.prototype.toString=f;var h=Object.prototype.toString;Object.prototype.toString=function(){return"function"===typeof Promise&&this instanceof
Promise?"[object Promise]":h.call(this)}});Zone.__load_patch("util",function(a,b,c){var d=cda(a);c.patchOnProperties=Mca;c.patchMethod=Qc;c.bindArguments=Gca;c.patchMacroTask=Oca;var e=b.__symbol__("BLACK_LISTED_EVENTS"),f=b.__symbol__("UNPATCHED_EVENTS");a[f]&&(a[e]=a[f]);a[e]&&(b[e]=b[f]=a[e]);c.patchEventPrototype=Zca;c.patchEventTarget=Yca;c.isIEOrEdge=Rca;c.ObjectDefineProperty=Kca;c.ObjectGetOwnPropertyDescriptor=Ic;c.ObjectCreate=KGb;c.ArraySlice=LGb;c.patchClass=Pc;c.wrapWithCurrentZone=Fca;c.filterProperties=bda;c.attachOriginToPatched=
Kc;c._redefineProperty=Object.defineProperty;c.patchCallbacks=ada;c.getGlobalObjects=function(){return{globalSources:Uca,zoneSymbolEventNames:Tc,eventNames:d,isBrowser:QGb,isMix:RGb,isNode:Uc,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:Sc,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}});var dda,eda,fda,gda,Yc;var oda=[].concat(p("abort animationcancel animationend animationiteration auxclick beforeinput blur cancel canplay canplaythrough change compositionstart compositionupdate compositionend cuechange click close contextmenu curechange dblclick drag dragend dragenter dragexit dragleave dragover drop durationchange emptied ended error focus focusin focusout gotpointercapture input invalid keydown keypress keyup load loadstart loadeddata loadedmetadata lostpointercapture mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup mousewheel orientationchange pause play playing pointercancel pointerdown pointerenter pointerleave pointerlockchange mozpointerlockchange webkitpointerlockerchange pointerlockerror mozpointerlockerror webkitpointerlockerror pointermove pointout pointerover pointerup progress ratechange reset resize scroll seeked seeking select selectionchange selectstart show sort stalled submit suspend timeupdate volumechange touchcancel touchmove touchstart touchend transitioncancel transitionend waiting wheel".split(" ")),
p(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"]),p(["autocomplete","autocompleteerror"]),p(["toggle"]),p("afterscriptexecute beforescriptexecute DOMContentLoaded freeze fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange fullscreenerror mozfullscreenerror webkitfullscreenerror msfullscreenerror readystatechange visibilitychange resume".split(" ")),p("absolutedeviceorientation afterinput afterprint appinstalled beforeinstallprompt beforeprint beforeunload devicelight devicemotion deviceorientation deviceorientationabsolute deviceproximity hashchange languagechange message mozbeforepaint offline online paint pageshow pagehide popstate rejectionhandled storage unhandledrejection unload userproximity vrdisplayconnected vrdisplaydisconnected vrdisplaypresentchange".split(" ")),
p("beforecopy beforecut beforepaste copy cut paste dragstart loadend animationstart search transitionrun transitionstart webkitanimationend webkitanimationiteration webkitanimationstart webkittransitionend".split(" ")),p("activate afterupdate ariarequest beforeactivate beforedeactivate beforeeditfocus beforeupdate cellchange controlselect dataavailable datasetchanged datasetcomplete errorupdate filterchange layoutcomplete losecapture move moveend movestart propertychange resizeend resizestart rowenter rowexit rowsdelete rowsinserted command compassneedscalibration deactivate help mscontentzoom msmanipulationstatechanged msgesturechange msgesturedoubletap msgestureend msgesturehold msgesturestart msgesturetap msgotpointercapture msinertiastart mslostpointercapture mspointercancel mspointerdown mspointerenter mspointerhover mspointerleave mspointermove mspointerout mspointerover mspointerup pointerout mssitemodejumplistitemremoved msthumbnailclick stop storagecommit".split(" ")));(function(a){a[(a.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var b=a.Zone;b.__load_patch("defineProperty",function(c,d,e){e._redefineProperty=kda;jda()});b.__load_patch("registerElement",function(c,d,e){d=e.getGlobalObjects();var f=d.isMix;(d.isBrowser||f)&&"registerElement"in c.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])});b.__load_patch("EventTargetLegacy",function(c,
d,e){lda(c,e);d=e.getGlobalObjects();var f=d.isMix;d.isNode&&!f||nda(e,c)||(d="undefined"!==typeof WebSocket,pda(e),e.patchClass("XMLHttpRequest"),d&&mda(e,c),Zone[e.symbol("patchEvents")]=!0)})}})("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{});Zone.__load_patch("legacy",function(a){(a=a[Zone.__symbol__("legacyPatch")])&&a()});Zone.__load_patch("timers",function(a){Xc(a,"set","clear","Timeout");Xc(a,"set","clear","Interval");Xc(a,"set","clear","Immediate")});Zone.__load_patch("requestAnimationFrame",function(a){Xc(a,"request","cancel","AnimationFrame");Xc(a,"mozRequest","mozCancel","AnimationFrame");Xc(a,"webkitRequest","webkitCancel","AnimationFrame")});
Zone.__load_patch("blocking",function(a,b){for(var c=["alert","prompt","confirm"],d=0;d<c.length;d++)Qc(a,c[d],function(e,f,h){return function(k,q){return b.current.run(e,a,q,h)}})});
Zone.__load_patch("EventTarget",function(a,b,c){c.patchEventPrototype(a,c);if(!Zone[c.symbol("patchEventTarget")]){var d=c.getGlobalObjects();b=d.eventNames;var e=d.zoneSymbolEventNames,f=d.TRUE_STR,h=d.FALSE_STR;d=d.ZONE_SYMBOL_PREFIX;for(var k=0;k<b.length;k++){var q=b[k],u=d+(q+h),x=d+(q+f);e[q]={};e[q][h]=u;e[q][f]=x}(b=a.EventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b&&b.prototype])}(b=a.XMLHttpRequestEventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b.prototype])});
Zone.__load_patch("MutationObserver",function(){Pc("MutationObserver");Pc("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",function(){Pc("IntersectionObserver")});Zone.__load_patch("FileReader",function(){Pc("FileReader")});
Zone.__load_patch("on_property",function(a,b,c){if((!Uc||RGb)&&!Zone[c.symbol("patchEvents")]){b=a.__Zone_ignore_on_properties;c=[];if(QGb){var d=window;c=c.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));a:{try{var e=Rc.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")){var f=!0;break a}}catch(k){}f=!1}e=f?[{target:d,ignoreProperties:["error"]}]:
[];f=cda(d);var h=b?b.concat(e):b;e=Nca(d);d&&(f=bda(d,f,h),Mca(d,f,e))}c=c.concat("XMLHttpRequest XMLHttpRequestEventTarget IDBIndex IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor WebSocket".split(" "));for(d=0;d<c.length;d++)(e=a[c[d]])&&e.prototype&&(f=e.prototype,e=cda(e.prototype),f&&(e=bda(f,e,b),Mca(f,e,void 0)))}});
Zone.__load_patch("customElements",function(a,b,c){b=c.getGlobalObjects();var d=b.isMix;(b.isBrowser||d)&&a.customElements&&"customElements"in a&&c.patchCallbacks(c,a.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])});
Zone.__load_patch("XHR",function(a,b){(function(q){function u(oa){var wa=oa.data,Da=wa.target;Da[f]=!1;Da[k]=!1;var Ga=Da[e];H||(H=Da[MGb],J=Da[NGb]);Ga&&J.call(Da,"readystatechange",Ga);Ga=Da[e]=function(){if(Da.readyState===Da.DONE)if(!wa.aborted&&Da[f]&&"scheduled"===oa.state){var Ub=Da[b.__symbol__("loadfalse")];if(0!==Da.status&&Ub&&0<Ub.length){var Vb=oa.invoke;oa.invoke=function(){for(var $a=Da[b.__symbol__("loadfalse")],ja=0;ja<$a.length;ja++)$a[ja]===oa&&$a.splice(ja,1);wa.aborted||"scheduled"!==
oa.state||Vb.call(oa)};Ub.push(oa)}else oa.invoke()}else wa.aborted||!1!==Da[f]||(Da[k]=!0)};H.call(Da,"readystatechange",Ga);Da[c]||(Da[c]=oa);Z.apply(Da,wa.args);Da[f]=!0;return oa}function x(){}function y(oa){oa=oa.data;oa.aborted=!0;return na.apply(oa.target,oa.args)}var E=q.XMLHttpRequest;if(E){E=E.prototype;var H=E[MGb],J=E[NGb];!H&&(q=q.XMLHttpRequestEventTarget)&&(q=q.prototype,H=q[MGb],J=q[NGb]);var O=Qc(E,"open",function(){return function(oa,wa){oa[d]=0==wa[2];oa[h]=wa[1];return O.apply(oa,
wa)}}),R=Lc("fetchTaskAborting"),U=Lc("fetchTaskScheduling"),Z=Qc(E,"send",function(){return function(oa,wa){if(!0===b.current[U]||oa[d])return Z.apply(oa,wa);wa={target:oa,url:oa[h],isPeriodic:!1,args:wa,aborted:!1};var Da=Zone.current.scheduleMacroTask("XMLHttpRequest.send",x,wa,u,y);oa&&!0===oa[k]&&!wa.aborted&&"scheduled"===Da.state&&Da.invoke()}}),na=Qc(E,"abort",function(){return function(oa,wa){var Da=oa[c];if(Da&&"string"==typeof Da.type)null==Da.cancelFn||Da.data&&Da.data.aborted||Da.zone.cancelTask(Da);
else if(!0===b.current[R])return na.apply(oa,wa)}})}})(a);var c=Lc("xhrTask"),d=Lc("xhrSync"),e=Lc("xhrListener"),f=Lc("xhrScheduled"),h=Lc("xhrURL"),k=Lc("xhrErrorBeforeScheduled")});Zone.__load_patch("geolocation",function(a){a.navigator&&a.navigator.geolocation&&Ica(a.navigator.geolocation)});
Zone.__load_patch("PromiseRejectionEvent",function(a,b){function c(d){return function(e){Wca(a,d).forEach(function(f){var h=a.PromiseRejectionEvent;h&&(h=new h(d,{promise:e.promise,reason:e.rejection}),f.invoke(h))})}}a.PromiseRejectionEvent&&(b[Lc("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),b[Lc("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",function(a,b,c){$ca(a,c)});Zone.__load_patch("canvas",function(a,b,c){a=a.HTMLCanvasElement;"undefined"!==typeof a&&a.prototype&&a.prototype.toBlob&&c.patchMacroTask(a.prototype,"toBlob",function(d,e){return{name:"HTMLCanvasElement.toBlob",target:d,cbIdx:0,args:e}})});var rda=Zc({"\u0275prov":Zc}),vda=Zc({"\u0275inj":Zc}),sda=Zc({ngInjectableDef:Zc}),wda=Zc({ngInjectorDef:Zc});var dd=function(a,b){b=Error.call(this,"NG0"+Math.abs(a)+(b?": "+b:""));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};W(dd,Error);var Ada;var Dda=Zc({__forward_ref__:Zc});var ne=globalThis;var TGb={},UGb=/\n/gm,hd=void 0;var Ad=function(a,b){this._desc=a;this.\u0275prov=void 0;"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=$c({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};Ad.prototype.toString=function(){return"InjectionToken "+this._desc};Qh.Object.defineProperties(Ad.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});var gea=new Ad("ENVIRONMENT_INITIALIZER");var VGb=new Ad("INJECTOR",-1);var fea=new Ad("INJECTOR_DEF_TYPES");var kea=function(){};kea.prototype.get=function(a,b){b=void 0===b?TGb:b;if(b===TGb)throw a=Error("ra`"+cd(a)),a.name="NullInjectorError",a;return b};var pd=Zc({"\u0275cmp":Zc}),Qda=Zc({"\u0275dir":Zc}),Uda=Zc({"\u0275pipe":Zc}),WGb=Zc({"\u0275mod":Zc}),Wda=Zc({"\u0275fac":Zc}),Td=Zc({__NG_ELEMENT_ID__:Zc}),XGb=Zc({__NG_ENV_ID__:Zc});var rd={},nd=[];var hea=Zc({provide:String,useValue:Zc});var eja=new Ad("Set Injector scope.");var pea={},YGb={},jea=void 0,$t=function(){},$d=function(a,b,c,d){var e=this;this.parent=b;this.source=c;this.scopes=d;this.records=new Map;this._ngOnDestroyHooks=new Set;this._onDestroyHooks=[];this._destroyed=!1;rea(a,function(f){return ZGb(e,f)});this.records.set(VGb,Bd(void 0,this));d.has("environment")&&this.records.set($t,Bd(void 0,this));a=this.records.get(eja);null!=a&&"string"===typeof a.value&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(fea.multi,nd,2))};W($d,$t);
$d.prototype.destroy=function(){$Gb(this);this._destroyed=!0;try{for(var a=l(this._ngOnDestroyHooks),b=a.next();!b.done;b=a.next())b.value.ngOnDestroy();var c=this._onDestroyHooks;this._onDestroyHooks=[];for(var d=l(c),e=d.next();!e.done;e=d.next()){var f=e.value;f()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}};
$d.prototype.onDestroy=function(a){var b=this;$Gb(this);this._onDestroyHooks.push(a);return function(){var c=b._onDestroyHooks.indexOf(a);-1!==c&&b._onDestroyHooks.splice(c,1)}};$d.prototype.runInContext=function(a){$Gb(this);var b=id(this),c=ed();try{return a()}finally{id(b),ed(c)}};
$d.prototype.get=function(a,b,c){b=void 0===b?TGb:b;c=void 0===c?0:c;$Gb(this);if(a.hasOwnProperty(XGb))return a[XGb](this);c=Fda(c);var d=id(this),e=ed();try{if(!(c&4)){var f=this.records.get(a);if(void 0===f){var h=("function"===typeof a||"object"===typeof a&&a instanceof Ad)&&tda(a),k;if(k=h)if(h.providedIn){var q=gd(h.providedIn);k="string"===typeof q?"any"===q||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=Bd(nea(a),pea):f=null;this.records.set(a,f)}if(null!=f){b=f;b.value===
pea&&(b.value=YGb,b.value=b.factory());var u;if(u="object"===typeof b.value&&b.value){var x=b.value;u=null!==x&&"object"===typeof x&&"function"===typeof x.ngOnDestroy}u&&this._ngOnDestroyHooks.add(b.value);return b.value}}var y=c&2?lea():this.parent;b=c&8&&b===TGb?null:b;return y.get(a,b)}catch(na){if("NullInjectorError"===na.name){(na.ngTempTokenPath=na.ngTempTokenPath||[]).unshift(cd(a));if(d)throw na;u=na;var E=this.source,H=u.ngTempTokenPath;a.__source&&H.unshift(a.__source);var J="\n"+u.message;
a=E;a=void 0===a?null:a;J=J&&"\n"===J.charAt(0)&&"\u0275"==J.charAt(1)?J.slice(2):J;var O=cd(H);if(Array.isArray(H))O=H.map(cd).join(" -> ");else if("object"===typeof H){E=[];for(var R in H)if(H.hasOwnProperty(R)){var U=H[R];E.push(R+":"+("string"===typeof U?JSON.stringify(U):cd(U)))}O="{"+E.join(", ")+"}"}var Z="R3InjectorError"+(a?"("+a+")":"")+"["+O+"]: "+J.replace(UGb,"\n  ");u.message=Z;u.ngTokenPath=H;u.ngTempTokenPath=null;throw u;}throw na;}finally{ed(e),id(d)}};
var cfa=function(a){var b=id(a),c=ed();try{for(var d=a.get(gea.multi,nd,2),e=l(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{id(b),ed(c)}};$d.prototype.toString=function(){for(var a=[],b=l(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(cd(c.value));return"R3Injector["+a.join(", ")+"]"};
var $Gb=function(a){if(a._destroyed)throw new dd(205,!1);},ZGb=function(a,b){b=gd(b);var c=zd(b)?b:gd(b&&b.provide),d=qea(b);if(zd(b)||!0!==b.multi)a.records.get(c);else{var e=a.records.get(c);e||(e=Bd(void 0,pea,!0),e.factory=function(){return Gda(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};Qh.Object.defineProperties($d.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});kd(Cd(function(a){return{token:a}}),-1);var au=kd(Cd(),8);kd(Cd(),2);var bu=kd(Cd(),4);kd(Cd(),1);var wea=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};wea.prototype.isFirstChange=function(){return this.firstChange};Fd.ngInherit=!0;var Kd=Dea(null),dga=null,ag=!0;var aHb=function(a){this.ref=a};aHb.prototype.deref=function(){return this.ref};var bHb,cHb=null!=(bHb=ne.WeakRef)?bHb:aHb;var dHb=0,Gea=null,cu=function(){this.id=dHb++;this.ref=new cHb(this);this.producers=new Map;this.consumers=new Map;this.trackingVersion=0};Qh.Object.defineProperties(cu.prototype,{hasProducers:{configurable:!0,enumerable:!0,get:function(){return 0<this.producers.size}}});var eHb=function(){},du=function(a,b){cu.call(this);var c=this;this.watch=a;this.schedule=b;this.dirty=!1;this.cleanupFn=eHb;this.registerOnCleanup=function(d){c.cleanupFn=d}};W(du,cu);du.prototype.notify=function(){this.dirty||this.schedule(this);this.dirty=!0};
du.prototype.run=function(){this.dirty=!1;var a;if(!(a=0===this.trackingVersion))a:{a=l(this.producers);for(var b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;var d=c=c.next().value;c=d.producerNode.deref();if(null==c||d.atTrackingVersion!==this.trackingVersion)this.producers.delete(b),b=void 0,null==(b=c)||b.consumers.delete(this.id);else if(b=d.seenValueVersion,0!==b||0!==b){a=!0;break a}}a=!1}if(a){a=Rd(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=eHb,this.watch(this.registerOnCleanup)}finally{Rd(a)}}};
du.prototype.cleanup=function(){this.cleanupFn()};var Xd=function(a,b){var c=z;this.factory=a;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};var Nea=!0,Pea=0,Vd={},Yd=function(a,b){this._tNode=a;this._lView=b};Yd.prototype.get=function(a,b,c){return Yea(this._tNode,this._lView,a,Fda(c),b)};Zc({provide:String,useValue:Zc});var eu=function(){},Gf=function(a){if(Array.isArray(a))return dfa({name:""},void 0,a,"");var b,c=null!=(b=a.name)?b:"";return dfa({name:c},a.parent,a.providers,c)},fHb=new kea;eu.\u0275prov=$c({token:eu,providedIn:"any",factory:function(){return n(VGb)}});eu.__NG_ELEMENT_ID__=-1;var fu=function(){};var gu=function(){},gHb=function(){};var efa=void 0;var hHb=new Ad("AppId",{providedIn:"root",factory:function(){return"ng"}}),Zia=new Ad("Platform Initializer"),hu=new Ad("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}});new Ad("Application Packages Root URL");var iu=new Ad("AnimationModuleType"),iHb=new Ad("CSP nonce",{providedIn:"root",factory:function(){var a,b;return(null==(a=ffa().body)?void 0:null==(b=a.querySelector("[ngCspNonce]"))?void 0:b.getAttribute("ngCspNonce"))||null}});new Ad("",{providedIn:"root",factory:function(){return new Set}});var jHb=function(){},kHb=function(){};var ae=function(a){this.nativeElement=a};ae.__NG_ELEMENT_ID__=function(){return be(Ld(),r())};var ju=function(){},ku=function(){this.destroyNode=null};ku.__NG_ELEMENT_ID__=function(){var a=r(),b=Id(Ld().index,a);return(Dd(b)?b:a)[11]};var lu=function(){this.callbacks=new Set;this.deferredCallbacks=new Set;this.renderDepth=0;this.runningCallbacks=!1};g=lu.prototype;g.begin=function(){if(this.runningCallbacks)throw new dd(102,!1);this.renderDepth++};
g.end=function(){this.renderDepth--;if(0===this.renderDepth)try{this.runningCallbacks=!0;for(var a=l(this.callbacks),b=a.next();!b.done;b=a.next())b.value.invoke()}finally{this.runningCallbacks=!1;a=l(this.deferredCallbacks);for(b=a.next();!b.done;b=a.next())this.callbacks.add(b.value);this.deferredCallbacks.clear()}};g.register=function(a){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(a)};g.unregister=function(a){this.callbacks.delete(a);this.deferredCallbacks.delete(a)};
g.ngOnDestroy=function(){this.callbacks.clear();this.deferredCallbacks.clear()};lu.\u0275prov=$c({token:lu,providedIn:"root",factory:function(){return new lu}});var ifa=new Map,bga=0;var ve=function(){this._console=console};ve.prototype.handleError=function(a){var b=this._findOriginalError(a);this._console.error("ERROR",a);b&&this._console.error("ORIGINAL ERROR",b)};ve.prototype._findOriginalError=function(a){for(a=a&&a.ngOriginalError;a&&a.ngOriginalError;)a=a.ngOriginalError;return a||null};new Ad("");var lHb=new Ad("",{providedIn:"root",factory:function(){return!1}});var nfa=/^>|^->|\x3c!--|--\x3e|--!>|<!-$/g,ofa=/(<|>)/;var ie=function(){cu.apply(this,arguments);this._lView=null};W(ie,cu);ie.prototype.runInContext=function(a,b,c){var d=Rd(this);this.trackingVersion++;try{a(b,c)}finally{Rd(d)}};ie.prototype.destroy=function(){this.trackingVersion++};Qh.Object.defineProperties(ie.prototype,{lView:{configurable:!0,enumerable:!0,set:function(a){this._lView=a}},hasReadASignal:{configurable:!0,enumerable:!0,get:function(){return this.hasProducers}}});var he=null;var te={};var je=function(a){this.changingThisBreaksApplicationSecurity=a};je.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"};var mHb=function(){je.apply(this,arguments)};W(mHb,je);mHb.prototype.getTypeName=function(){return"HTML"};var nHb=function(){je.apply(this,arguments)};W(nHb,je);nHb.prototype.getTypeName=function(){return"URL"};var oHb=function(){je.apply(this,arguments)};W(oHb,je);
oHb.prototype.getTypeName=function(){return"ResourceURL"};var Dfa;var Nfa=function(a){this.inertDocumentHelper=a};Nfa.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(Ffa(a),"text/html").body;if(null===b)return this.inertDocumentHelper.getInertBodyElement(a);b.removeChild(b.firstChild);return b}catch(c){return null}};var Mfa=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")};
Mfa.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");b.innerHTML=Ffa(a);return b};var Gfa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var pHb=oe("area,br,col,hr,img,wbr"),qHb=oe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rHb=oe("rp,rt"),sHb=pe(rHb,qHb),tHb=pe(qHb,oe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),uHb=pe(rHb,oe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),
Pfa=pe(pHb,tHb,uHb,sHb),Rfa=oe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vHb=oe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),
wHb=oe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),
Qfa=pe(Rfa,vHb,wHb),Sfa=oe("script,style,template"),Ofa=function(){this.buf=[]};Ofa.prototype.endElement=function(a){a=a.nodeName.toLowerCase();Pfa.hasOwnProperty(a)&&!pHb.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var Tfa=function(a,b){if(b&&(a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("va`"+a.outerHTML);return b},Ifa=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jfa=/([^#-~ |!])/g,Lfa;var xHb={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5,0:"NONE",1:"HTML",2:"STYLE",3:"SCRIPT",4:"URL",5:"RESOURCE_URL"};var Vfa;var mu=function(){this.all=new Set;this.queue=new Map};mu.prototype.create=function(a,b,c){var d=this,e="undefined"===typeof Zone?null:Zone.current,f=new du(a,function(k){d.all.has(k)&&d.queue.set(k,e)},c);this.all.add(f);f.notify();a=function(){f.cleanup();var k;null==(k=h)||k();d.all.delete(f);d.queue.delete(f)};var h=null==b?void 0:b.onDestroy(a);return{destroy:a}};
mu.prototype.flush=function(){if(0!==this.queue.size)for(var a=l(this.queue),b=a.next(),c={};!b.done;c={watch$jscomp$3:c.watch$jscomp$3},b=a.next()){var d=l(b.value);b=d.next().value;d=d.next().value;c.watch$jscomp$3=b;b=d;this.queue.delete(c.watch$jscomp$3);b?b.run(function(e){return function(){return e.watch$jscomp$3.run()}}(c)):c.watch$jscomp$3.run()}};mu.\u0275prov=$c({token:mu,providedIn:"root",factory:function(){return new mu}});var Fg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=Fg.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(Ed(a)){var b=a[8],c=b?b.indexOf(this):-1;-1<c&&(rfa(a,c),Yda(b,c))}this._attachedToViewContainer=!1}tfa(this._lView[1],this._lView)};g.onDestroy=function(a){var b=this._lView;if(256===(b[2]&256))throw new dd(911,!1);null===b[21]&&(b[21]=[]);b[21].push(a)};
g.markForCheck=function(){lfa(this._cdRefInjectingView||this._lView)};g.detach=function(){this._lView[2]&=-129};g.detectChanges=function(){Dga(this._lView[1],this._lView,this.context)};
Qh.Object.defineProperties(Fg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return Bga(b,a,b.firstChild,[])}},context:{configurable:!0,enumerable:!0,get:function(){return this._lView[8]},set:function(a){this._lView[8]=a}},destroyed:{configurable:!0,enumerable:!0,get:function(){return 256===(this._lView[2]&256)}}});var yHb=function(a){Fg.call(this,a);this._view=a};W(yHb,Fg);yHb.prototype.detectChanges=function(){var a=this._view;Dga(a[1],a,a[8],!1)};
Qh.Object.defineProperties(yHb.prototype,{context:{configurable:!0,enumerable:!0,get:function(){return null}}});var zHb=function(){};zHb.\u0275prov=$c({token:zHb,providedIn:"root",factory:function(){return null}});var nu=function(){this.full="0.0.0-PLACEHOLDER";this.minor=this.major="0";this.patch=["0","0","0-PLACEHOLDER"].slice(2).join(".")},AHb=new nu;var BHb={};var CHb=function(a){this.ngModule=a};W(CHb,fu);var DHb=function(a,b){return new Hg(b[pd]||null,a.ngModule)},EHb=function(a,b){this.injector=a;this.parentInjector=b};EHb.prototype.get=function(a,b,c){c=Fda(c);var d=this.injector.get(a,BHb,c);return d!==BHb||b===BHb?d:this.parentInjector.get(a,b,c)};
var Hg=function(a,b){this.componentDef=a;this.ngModule=b;this.componentType=a.type;this.selector=a.selectors.map(Mda).join(",");this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[];this.isBoundToModule=!!b};W(Hg,kHb);
Hg.prototype.create=function(a,b,c,d){d=d||this.ngModule;var e;(d=d instanceof $t?d:null==(e=d)?void 0:e.injector)&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);var f=d?new EHb(a,d):a;a=f.get(ju,null);if(null===a)throw new dd(407,!1);e=f.get(zHb,null);d=f.get(mu,null);var h=f.get(lu,null);d={rendererFactory:a,sanitizer:e,effectManager:d,afterRenderEventManager:h};a=a.createRenderer(null,this.componentDef);e=this.componentDef.selectors[0][0]||"div";
c?(e=this.componentDef.encapsulation,e=f.get(lHb,!1)||3===e,e=a.selectRootElement(c,e)):(h=e.toLowerCase(),e=a.createElement(e,"svg"===h?"svg":"math"===h?"math":null));h=e;e=this.componentDef.onPush?576:528;var k=this.componentDef.signals?4608:e,q=null;null!==h&&(q=null);e=nga(0,null,null,1,0,null,null,null,null,null,null);f=cga(null,e,null,k,null,null,d,a,f,null,q);Cea(f);try{var u=this.componentDef;k=null;if(u.findHostDirectiveDefs){var x=[];k=new Map;u.findHostDirectiveDefs(u,x,k);x.push(u)}else x=
[u];var y=f[1];f[25]=h;var E=se(y,25,2,"#host",null);y=x;for(var H=f[1],J=l(y),O=J.next();!O.done;O=J.next())E.mergedAttrs=ld(E.mergedAttrs,O.value.hostAttrs);null!==E.mergedAttrs&&(Aga(E,E.mergedAttrs,!0),null!==h&&zfa(a,h,E));J=null;null!==h&&(J=null);var R=d.rendererFactory.createRenderer(h,u);O=16;u.signals?O=4096:u.onPush&&(O=64);var U=cga(f,hga(u),null,O,f[E.index],E,d,R,null,null,J);H.firstCreatePass&&qga(H,E,y.length-1);iga(f,U);var Z=f[E.index]=U;var na=e.data[25];if(h)if(c)Ida(a,h,["ng-version",
AHb.full]);else{var oa=u.selectors[0];c=[];E=[];H=1;for(R=2;H<oa.length;){var wa=oa[H];if("string"===typeof wa)2===R?""!==wa&&c.push(wa,oa[++H]):8===R&&E.push(wa);else{if(0!==(R&1))break;R=wa}H++}c&&Ida(a,h,c);if(E&&0<E.length){var Da=E.join(" ");""===Da?a.removeAttribute(h,"class"):a.setAttribute(h,"class",Da)}}if(void 0!==b){var Ga=this.ngContentSelectors,Ub=na.projection=[];for(oa=0;oa<Ga.length;oa++){var Vb=b[oa];Ub.push(null!=Vb?Array.from(Vb):null)}}b=x;Ga=k;x=[Hga];var $a=Ld(),ja=f[1],ya=Hd($a,
f);rga(ja,f,$a,b,null,Ga);for(Ga=0;Ga<b.length;Ga++){var Ha=Wd(f,ja,$a.directiveStart+Ga,$a);de(Ha,f)}kga(ja,f,$a);ya&&de(ya,f);var ab=Wd(f,ja,$a.directiveStart+$a.componentOffset,$a);Z[8]=f[8]=ab;if(null!==x)for(var Ra=l(x),Jc=Ra.next();!Jc.done;Jc=Ra.next()){var Ua=Jc.value;Ua(ab,u)}gga(ja,$a,Z);var mb=ab;zga(e,f,null)}finally{Fea()}return new ou(this.componentType,mb,be(na,f),f,na)};
Qh.Object.defineProperties(Hg.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){var a=this.componentDef,b=a.inputTransforms;a=Gga(a.inputs);if(null!==b)for(var c=l(a),d=c.next();!d.done;d=c.next())d=d.value,b.hasOwnProperty(d.propName)&&(d.transform=b[d.propName]);return a}},outputs:{configurable:!0,enumerable:!0,get:function(){return Gga(this.componentDef.outputs)}}});
var ou=function(a,b,c,d,e){this.location=c;this._rootLView=d;this._tNode=e;this.previousInputValues=null;this.instance=b;this.hostView=this.changeDetectorRef=new yHb(d);this.componentType=a};W(ou,jHb);
ou.prototype.setInput=function(a,b){var c=this._tNode.inputs,d;null!==c&&(d=c[a])&&(null!=this.previousInputValues||(this.previousInputValues=new Map),this.previousInputValues.has(a)&&Object.is(this.previousInputValues.get(a),b)||(c=this._rootLView,pga(c[1],c,d,a,b),this.previousInputValues.set(a,b),a=Id(this._tNode.index,c),lfa(a)))};ou.prototype.destroy=function(){this.hostView.destroy()};ou.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
Qh.Object.defineProperties(ou.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new Yd(this._tNode,this._rootLView)}}});var we=function(a,b,c){this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new CHb(this);var d=(a[WGb]||null).bootstrap;this._bootstrapComponents=d instanceof Function?d():d;this._r3Injector=bfa(a,b,[{provide:gu,useValue:this},{provide:fu,useValue:this.componentFactoryResolver}].concat(p(c)),cd(a),new Set(["environment"]));cfa(this._r3Injector);this.instance=this._r3Injector.get(a)};W(we,gu);
we.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};we.prototype.onDestroy=function(a){this.destroyCbs.push(a)};Qh.Object.defineProperties(we.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});var FHb=function(a){this.moduleType=a};W(FHb,gHb);FHb.prototype.create=function(a){return new we(this.moduleType,a,[])};
var Jga=function(a){this.componentFactoryResolver=new CHb(this);this.instance=null;var b=new $d([].concat(p(a.providers),[{provide:gu,useValue:this},{provide:fu,useValue:this.componentFactoryResolver}]),a.parent||lea(),a.debugName,new Set(["environment"]));this.injector=b;a.runEnvironmentInitializers&&cfa(b)};W(Jga,gu);Jga.prototype.destroy=function(){this.injector.destroy()};Jga.prototype.onDestroy=function(a){this.injector.onDestroy(a)};var GHb=new Ad("Application Initializer"),pu=function(){var a=this;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){a.resolve=c;a.reject=d});var b;this.appInits=null!=(b=jd(GHb,{optional:!0}))?b:[]},HHb=function(a){if(!a.initialized){for(var b=[],c=l(a.appInits),d=c.next(),e={};!d.done;e={initResult:e.initResult},d=c.next())d=d.value,e.initResult=d(),xe(e.initResult)?b.push(e.initResult):Lga(e.initResult)&&(d=new Promise(function(f){return function(h,k){f.initResult.subscribe({complete:h,
error:k})}}(e)),b.push(d));Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});0===b.length&&(a.done=!0,a.resolve());a.initialized=!0}};pu.\u0275fac=function(a){return new (a||pu)};pu.\u0275prov=$c({token:pu,factory:pu.\u0275fac,providedIn:"root"});var qu=function(){};qu.prototype.log=function(a){console.log(a)};qu.prototype.warn=function(a){console.warn(a)};qu.\u0275fac=function(a){return new (a||qu)};qu.\u0275prov=$c({token:qu,factory:qu.\u0275fac,providedIn:"platform"});var Nga=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],["SMTWTFS".split(""),"Sun Mon Tue Wed Thu Fri Sat".split(" "),"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),"Su Mo Tu We Th Fr Sa".split(" ")],void 0,["JFMAMJJASOND".split(""),"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),"January February March April May June July August September October November December".split(" ")],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,
0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],". , ; % + - E \u00d7 \u2030 \u221e NaN :".split(" "),["#,##0.###","#,##0%","\u00a4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(a){var b=a.toString().replace(/^[^.]*\.?/,"").length;return 1===Math.floor(Math.abs(a))&&0===b?1:5}];var Oga={};var Wh=new Ad("LocaleId",{providedIn:"root",factory:function(){return jd(Wh,12)||("undefined"!==typeof $Db?"en-US":"undefined"!==typeof $localize&&$localize.locale||"en-US")}});new Ad("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new Ad("Translations");new Ad("TranslationsFormat");var IHb=!1,Fe={Promise:void 0,set useDeprecatedSynchronousErrorHandling(a){a?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):IHb&&console.log("RxJS: Back to a better error behavior. Thank you. <3");IHb=a},get useDeprecatedSynchronousErrorHandling(){return IHb}};var Ve="function"===typeof Symbol&&Symbol.observable||"@@observable";var JHb={closed:!0,next:function(){},error:function(a){if(Fe.useDeprecatedSynchronousErrorHandling)throw a;ze(a)},complete:function(){}};var Ce=function(){function a(b){this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"";this.name="UnsubscriptionError";this.errors=b;return this}a.prototype=Object.create(Error.prototype);return a}();var Le=Array.isArray||function(a){return a&&"number"===typeof a.length};var Be=function(a){this.closed=!1;this._subscriptions=this._parentOrParents=null;a&&(this._ctorUnsubscribe=!0,this._unsubscribe=a)};
Be.prototype.unsubscribe=function(){if(!this.closed){var a=this._parentOrParents,b=this._ctorUnsubscribe,c=this._unsubscribe,d=this._subscriptions;this.closed=!0;this._subscriptions=this._parentOrParents=null;if(a instanceof Be)a.remove(this);else if(null!==a)for(var e=0;e<a.length;++e)a[e].remove(this);if(Ae(c)){b&&(this._unsubscribe=void 0);try{c.call(this)}catch(q){var f=q instanceof Ce?Rga(q.errors):[q]}}if(Le(d)){e=-1;for(var h=d.length;++e<h;){var k=d[e];if(Pga(k))try{k.unsubscribe()}catch(q){f=
f||[],q instanceof Ce?f=f.concat(Rga(q.errors)):f.push(q)}}}if(f)throw new Ce(f);}};
Be.prototype.add=function(a){var b=a;if(!a)return Be.EMPTY;switch(typeof a){case "function":b=new Be(a);case "object":if(b===this||b.closed||"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;b instanceof Be||(a=b,b=new Be,b._subscriptions=[a]);break;default:throw Error("xa`"+a);}var c=b._parentOrParents;if(null===c)b._parentOrParents=this;else if(c instanceof Be){if(c===this)return b;b._parentOrParents=[c,this]}else if(-1===c.indexOf(this))c.push(this);else return b;
a=this._subscriptions;null===a?this._subscriptions=[b]:a.push(b);return b};Be.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};var KHb=new Be;KHb.closed=!0;Be.EMPTY=KHb;var De=function(a,b,c){Be.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=JHb;break;case 1:if(!a){this.destination=JHb;break}if("object"===typeof a){a instanceof De?(this.syncErrorThrowable=a.syncErrorThrowable,this.destination=a,a.add(this)):(this.syncErrorThrowable=!0,this.destination=new ru(this,a));break}default:this.syncErrorThrowable=!0,this.destination=new ru(this,a,b,c)}};W(De,Be);
De.EMPTY=Be.EMPTY;De.create=function(a,b,c){a=new De(a,b,c);a.syncErrorThrowable=!1;return a};g=De.prototype;g.next=function(a){this.isStopped||this._next(a)};g.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};g.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};g.unsubscribe=function(){this.closed||(this.isStopped=!0,Be.prototype.unsubscribe.call(this))};g._next=function(a){this.destination.next(a)};g._error=function(a){this.destination.error(a);this.unsubscribe()};
g._complete=function(){this.destination.complete();this.unsubscribe()};var ru=function(a,b,c,d){De.call(this);this._parentSubscriber=a;var e=this;if(Ae(b))var f=b;else b&&(f=b.next,c=b.error,d=b.complete,b!==JHb&&(e=Object.create(b),Qga(b)&&b.add(this.unsubscribe.bind(this)),e.unsubscribe=this.unsubscribe.bind(this)));this._context=e;this._next=f;this._error=c;this._complete=d};W(ru,De);ru.EMPTY=De.EMPTY;ru.create=De.create;g=ru.prototype;
g.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;Fe.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}};
g.error=function(a){if(!this.isStopped){var b=this._parentSubscriber,c=Fe.useDeprecatedSynchronousErrorHandling;if(this._error)c&&b.syncErrorThrowable?this.__tryOrSetError(b,this._error,a):this.__tryOrUnsub(this._error,a),this.unsubscribe();else if(b.syncErrorThrowable)c?(b.syncErrorValue=a,b.syncErrorThrown=!0):ze(a),this.unsubscribe();else{this.unsubscribe();if(c)throw a;ze(a)}}};
g.complete=function(){var a=this;if(!this.isStopped){var b=this._parentSubscriber;if(this._complete){var c=function(){return a._complete.call(a._context)};Fe.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,c):this.__tryOrUnsub(c)}this.unsubscribe()}};g.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(c){this.unsubscribe();if(Fe.useDeprecatedSynchronousErrorHandling)throw c;ze(c)}};
g.__tryOrSetError=function(a,b,c){if(!Fe.useDeprecatedSynchronousErrorHandling)throw Error("ya");try{b.call(this._context,c)}catch(d){return Fe.useDeprecatedSynchronousErrorHandling?(a.syncErrorValue=d,a.syncErrorThrown=!0):ze(d),!0}return!1};g._unsubscribe=function(){var a=this._parentSubscriber;this._parentSubscriber=this._context=null;a.unsubscribe()};var LHb=function(a){De.call(this);this.destination=a};W(LHb,De);LHb.EMPTY=De.EMPTY;LHb.create=De.create;var Ge=function(a){a&&(this._subscribe=a)};g=Ge.prototype;g.lift=function(a){var b=new Ge;b.source=this;b.operator=a;return b};
g.subscribe=function(a,b,c){var d=this.operator;a:{if(a){if(a instanceof De||Vga(a)&&Qga(a))break a;if(Vga(a)){a=new LHb(a);break a}}a=a||b||c?new De(a,b,c):new De(JHb)}d?a.add(d.call(a,this.source)):a.add(this.source||Fe.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(Fe.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){Fe.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),Sga(a)?a.error(b):console.warn(b)}};g.forEach=function(a,b){var c=this;b=Wga(b);return new b(function(d,e){var f=c.subscribe(function(h){try{a(h)}catch(k){e(k),f&&f.unsubscribe()}},e,d)})};g._subscribe=function(a){var b=this.source;return b&&b.subscribe(a)};Ge.prototype[Ve]=function(){return this};
Ge.prototype.pipe=function(){var a=xd.apply(0,arguments);return 0===a.length?this:Tga(a)(this)};var MHb=function(a){var b=Wga(b);return new b(function(c,d){var e;a.subscribe(function(f){return e=f},function(f){return d(f)},function(){return c(e)})})};Ge.create=function(a){return new Ge(a)};var su=function(a,b){Be.call(this);this.subject=a;this.subscriber=b;this.closed=!1};W(su,Be);su.EMPTY=Be.EMPTY;su.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,b=a.observers;this.subject=null;!b||0===b.length||a.isStopped||a.closed||(a=b.indexOf(this.subscriber),-1!==a&&b.splice(a,1))}};var tu=function(){function a(){this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}a.prototype=Object.create(Error.prototype);return a}();var uf=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};W(uf,Ge);g=uf.prototype;g.lift=function(a){var b=new uu(this,this);b.operator=a;return b};g.next=function(a){if(this.closed)throw new tu;if(!this.isStopped){var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].next(a)}};
g.error=function(a){if(this.closed)throw new tu;this.hasError=!0;this.thrownError=a;this.isStopped=!0;var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].error(a);this.observers.length=0};g.complete=function(){if(this.closed)throw new tu;this.isStopped=!0;var a=this.observers,b=a.length;a=a.slice();for(var c=0;c<b;c++)a[c].complete();this.observers.length=0};g.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};
g._trySubscribe=function(a){if(this.closed)throw new tu;return Ge.prototype._trySubscribe.call(this,a)};g._subscribe=function(a){if(this.closed)throw new tu;if(this.hasError)return a.error(this.thrownError),Be.EMPTY;if(this.isStopped)return a.complete(),Be.EMPTY;this.observers.push(a);return new su(this,a)};var vu=function(a){var b=new Ge;b.source=a;return b};
Qh.Object.defineProperties(uf.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return 0<(null==(a=this.observers)?void 0:a.length)}}});uf.create=function(a,b){return new uu(a,b)};var uu=function(a,b){uf.call(this);this.destination=a;this.source=b};W(uu,uf);uu.create=uf.create;uu.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};uu.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};
uu.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};uu.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):Be.EMPTY};var Me=function(){uf.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1};W(Me,uf);Me.create=uf.create;Me.prototype._subscribe=function(a){return this.hasError?(a.error(this.thrownError),Be.EMPTY):this.hasCompleted&&this.hasNext?(a.next(this.value),a.complete(),Be.EMPTY):uf.prototype._subscribe.call(this,a)};Me.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)};Me.prototype.error=function(a){this.hasCompleted||uf.prototype.error.call(this,a)};
Me.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&uf.prototype.next.call(this,this.value);uf.prototype.complete.call(this)};var wu=function(a){uf.call(this);this._value=a};W(wu,uf);wu.create=uf.create;wu.prototype._subscribe=function(a){var b=uf.prototype._subscribe.call(this,a);b&&!b.closed&&a.next(this._value);return b};wu.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new tu;return this._value};wu.prototype.next=function(a){uf.prototype.next.call(this,this._value=a)};Qh.Object.defineProperties(wu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var af=new Ge(function(a){return a.complete()});var Zga=function(a){return function(b){for(var c=0,d=a.length;c<d&&!b.closed;c++)b.next(a[c]);b.complete()}};var NHb=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a};NHb.prototype.observe=function(a){switch(this.kind){case "N":var b;null==(b=a.next)||b.call(a,this.value);break;case "E":var c;null==(c=a.error)||c.call(a,this.error);break;case "C":var d;null==(d=a.complete)||d.call(a)}};
NHb.prototype.accept=function(a,b,c){if(a&&"function"===typeof a.next)a=this.observe(a);else{switch(this.kind){case "N":null==a||a(this.value);break;case "E":null==b||b(this.error);break;case "C":null==c||c()}a=void 0}return a};var OHb={now:function(){return(OHb.delegate||Date).now()},delegate:void 0};var tf=function(a,b,c){a=void 0===a?Infinity:a;b=void 0===b?Infinity:b;c=void 0===c?OHb:c;uf.call(this);this.timestampProvider=c;this._events=[];this._infiniteTimeWindow=!1;this._bufferSize=1>a?1:a;this._windowTime=1>b?1:b;Infinity===b?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow};W(tf,uf);tf.create=uf.create;g=tf.prototype;
g.nextInfiniteTimeWindow=function(a){var b=this._events;b.push(a);b.length>this._bufferSize&&b.shift();uf.prototype.next.call(this,a)};g.nextTimeWindow=function(a){this._events.push({time:this._getNow(),value:a});this._trimBufferThenGetEvents();uf.prototype.next.call(this,a)};
g._subscribe=function(a){var b=this._infiniteTimeWindow,c=b?this._events:this._trimBufferThenGetEvents(),d=c.length;if(this.closed)throw new tu;if(this.isStopped||this.hasError)var e=Be.EMPTY;else this.observers.push(a),e=new su(this,a);if(b)for(var f=0;f<d&&!a.closed;f++)a.next(c[f]);else for(f=0;f<d&&!a.closed;f++)a.next(c[f].value);this.hasError?a.error(this.thrownError):this.isStopped&&a.complete();return e};g._getNow=function(){var a=this.timestampProvider;return a?a.now():OHb.now()};
g._trimBufferThenGetEvents=function(){for(var a=this._getNow(),b=this._bufferSize,c=this._windowTime,d=this._events,e=d.length,f=0;f<e&&!(a-d[f].time<c);)f++;e>b&&(f=Math.max(f,e-b));0<f&&d.splice(0,f);return d};var QHb=function(a,b){b=void 0===b?PHb:b;this.SchedulerAction=a;this.now=b};QHb.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return(new this.SchedulerAction(this,a)).schedule(c,b)};var PHb=OHb.now;var of=function(){function a(){this.message="no elements in sequence";this.name="EmptyError";return this}a.prototype=Object.create(Error.prototype);return a}();var cha=function(){};cha.prototype.call=function(a,b){b._refCount++;a=new xu(a,b);var c=b.subscribe(a);a.closed||(a.connection=b.connect());return c};var xu=function(a,b){De.call(this,a);this.connectable=b;this.connection=null};W(xu,De);xu.EMPTY=De.EMPTY;xu.create=De.create;
xu.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._refCount;0>=b?this.connection=null:(a._refCount=b-1,1<b?this.connection=null:(b=this.connection,a=a._connection,this.connection=null,!a||b&&a!==b||a.unsubscribe()))}else this.connection=null};var yu=function(a,b){this.source=a;this.subjectFactory=b;this._refCount=0;this._isComplete=!1};W(yu,Ge);yu.create=Ge.create;yu.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};yu.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};
yu.prototype.connect=function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new Be,a.add(this.source.subscribe(new zu(this.getSubject(),this))),a.closed&&(this._connection=null,a=Be.EMPTY));return a};yu.prototype.refCount=function(){return Ke()(this)};var Aia,Au=yu.prototype;
Aia={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Au._subscribe},_isComplete:{value:Au._isComplete,writable:!0},getSubject:{value:Au.getSubject},connect:{value:Au.connect},refCount:{value:Au.refCount}};var zu=function(a,b){De.call(this);this.destination=a;this.connectable=b};W(zu,De);zu.EMPTY=De.EMPTY;zu.create=De.create;
zu.prototype._error=function(a){this._unsubscribe();De.prototype._error.call(this,a)};zu.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();De.prototype._complete.call(this)};zu.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._connection;a._refCount=0;a._subject=null;a._connection=null;b&&b.unsubscribe()}};var dha=function(a){this.project=a;this.thisArg=void 0};dha.prototype.call=function(a,b){return b.subscribe(new Bu(a,this.project,this.thisArg))};var Bu=function(a,b,c){De.call(this,a);this.project=b;this.count=0;this.thisArg=c||this};W(Bu,De);Bu.EMPTY=De.EMPTY;Bu.create=De.create;Bu.prototype._next=function(a){try{var b=this.project.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}this.destination.next(b)};var Ue="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";var uha=function(a){return a&&"number"===typeof a.length&&"function"!==typeof a};var RHb=function(a){return function(b){var c=a[Ue]();do{var d=void 0;try{d=c.next()}catch(e){b.error(e);return}if(d.done){b.complete();break}b.next(d.value);if(b.closed)break}while(1);"function"===typeof c.return&&b.add(function(){c.return&&c.return()});return b}};var SHb=function(a){return function(b){var c=a[Ve]();if("function"!==typeof c.subscribe)throw new TypeError("Ca");return c.subscribe(b)}};var THb=function(a){return function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,ze);return b}};var pha=function(a){if(a&&"function"===typeof a[Ve])return SHb(a);if(uha(a))return Zga(a);if(lha(a))return THb(a);if(a&&"function"===typeof a[Ue])return RHb(a);if(Symbol&&Symbol.asyncIterator&&a&&"function"===typeof a[Symbol.asyncIterator])return nha(a);throw new TypeError("Da`"+(Pga(a)?"an invalid object":"'"+a+"'"));};var Cu=function(a){De.call(this);this.parent=a};W(Cu,De);Cu.EMPTY=De.EMPTY;Cu.create=De.create;Cu.prototype._next=function(a){this.parent.notifyNext(a)};Cu.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};Cu.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};var Du=function(a,b,c){De.call(this);this.parent=a;this.outerValue=b;this.outerIndex=c};W(Du,De);Du.EMPTY=De.EMPTY;Du.create=De.create;
Du.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex)};Du.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};Du.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};var Eu=function(){De.apply(this,arguments)};W(Eu,De);Eu.EMPTY=De.EMPTY;Eu.create=De.create;Eu.prototype.notifyNext=function(a){this.destination.next(a)};Eu.prototype.notifyError=function(a){this.destination.error(a)};
Eu.prototype.notifyComplete=function(){this.destination.complete()};var Fu=function(){De.apply(this,arguments)};W(Fu,De);Fu.EMPTY=De.EMPTY;Fu.create=De.create;Fu.prototype.notifyNext=function(a,b){this.destination.next(b)};Fu.prototype.notifyError=function(a){this.destination.error(a)};Fu.prototype.notifyComplete=function(){this.destination.complete()};var UHb={},bia=function(a,b){this.resultSelector=a;this.keys=b};bia.prototype.call=function(a,b){return b.subscribe(new Gu(a,this.resultSelector,this.keys))};var Gu=function(a,b,c){Fu.call(this,a);this.resultSelector=b;this.keys=c;this.active=0;this.values=[];this.observables=[]};W(Gu,Fu);Gu.EMPTY=Fu.EMPTY;Gu.create=Fu.create;g=Gu.prototype;g._next=function(a){this.values.push(UHb);this.observables.push(a)};
g._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{this.toRespond=this.active=b;for(var c=0;c<b;c++)this.add(Te(a[c],new Du(this,null,c)))}};g.notifyComplete=function(){0===--this.active&&this.destination.complete()};
g.notifyNext=function(a,b,c){var d=this.values,e=d[c];e=this.toRespond?e===UHb?--this.toRespond:this.toRespond:0;d[c]=b;0===e&&(this.resultSelector?this._tryResultSelector(d):this.destination.next(this.keys?this.keys.reduce(function(f,h,k){return f[h]=d[k],f},{}):d.slice()))};g._tryResultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var wha=function(a,b){b=void 0===b?Infinity:b;this.project=a;this.concurrent=b};wha.prototype.call=function(a,b){return b.subscribe(new Hu(a,this.project,this.concurrent))};var Hu=function(a,b,c){c=void 0===c?Infinity:c;Eu.call(this,a);this.destination=a;this.project=b;this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0};W(Hu,Eu);Hu.EMPTY=Eu.EMPTY;Hu.create=Eu.create;
Hu.prototype._next=function(a){if(this.active<this.concurrent){var b=this.index++;try{var c=this.project(a,b)}catch(d){this.destination.error(d);return}this.active++;a=new Cu(this);this.destination.add(a);Te(c,a)}else this.buffer.push(a)};Hu.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete();this.unsubscribe()};Hu.prototype.notifyNext=function(a){this.destination.next(a)};
Hu.prototype.notifyComplete=function(){var a=this.buffer;this.active--;0<a.length?this._next(a.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};var zha=function(a){var b=requestAnimationFrame,c=cancelAnimationFrame;Iu&&(b=Iu.requestAnimationFrame,c=Iu.cancelAnimationFrame);var d=b(function(e){c=void 0;a(e)});return new Be(function(){var e;return null==(e=c)?void 0:e(d)})},VHb=function(){return((null==Iu?void 0:Iu.requestAnimationFrame)||requestAnimationFrame).apply(null,p(xd.apply(0,arguments)))},WHb=function(){((null==Iu?void 0:Iu.cancelAnimationFrame)||cancelAnimationFrame).apply(null,p(xd.apply(0,arguments)))},Iu=void 0;var yha={now:function(){return(yha.delegate||performance).now()},delegate:void 0};var XHb=Aha();var Ju=function(){Be.call(this)};W(Ju,Be);Ju.EMPTY=Be.EMPTY;Ju.prototype.schedule=function(){return this};var YHb=function(a,b){var c=xd.apply(2,arguments);return(null==Ku?0:Ku.setInterval)?Ku.setInterval.apply(Ku,[a,b].concat(p(c))):setInterval.apply(null,[a,b].concat(p(c)))},Ku=void 0;var Lu=function(a,b){Be.call(this);this.scheduler=a;this.work=b;this.pending=!1};W(Lu,Ju);Lu.EMPTY=Ju.EMPTY;g=Lu.prototype;g.schedule=function(a,b){b=void 0===b?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;null!=a&&(this.id=this.recycleAsyncId(c,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};g.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return YHb(a.flush.bind(a,this),c)};
g.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&this.delay===c&&!1===this.pending)return b;((null==Ku?void 0:Ku.clearInterval)||clearInterval)(b)};g.execute=function(a,b){if(this.closed)return Error("Ha");this.pending=!1;if(a=this._execute(a,b))return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};g._execute=function(a){var b=!1,c=void 0;try{this.work(a)}catch(d){b=!0,c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
g._unsubscribe=function(){var a=this.id,b=this.scheduler,c=b.actions,d=c.indexOf(this);this.state=this.work=null;this.pending=!1;this.scheduler=null;-1!==d&&c.splice(d,1);null!=a&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null};var Mu=function(a,b){b=void 0===b?PHb:b;QHb.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};W(Mu,QHb);Mu.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c;}}};var df=new Mu(Lu);var ZHb=new Ge($e);var Kha=function(a,b){this.predicate=a;this.thisArg=b};Kha.prototype.call=function(a,b){return b.subscribe(new Nu(a,this.predicate,this.thisArg))};var Nu=function(a,b,c){De.call(this,a);this.predicate=b;this.thisArg=c;this.count=0};W(Nu,De);Nu.EMPTY=De.EMPTY;Nu.create=De.create;Nu.prototype._next=function(a){try{var b=this.predicate.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}b&&this.destination.next(a)};var Mha=function(){};Mha.prototype.call=function(a,b){return b.subscribe(new Ou(a))};var Ou=function(a){Fu.call(this,a);this.hasFirst=!1;this.observables=[];this.subscriptions=[]};W(Ou,Fu);Ou.EMPTY=Fu.EMPTY;Ou.create=Fu.create;g=Ou.prototype;g._next=function(a){this.observables.push(a)};
g._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{for(var c=0;c<b&&!this.hasFirst;c++){var d=Te(a[c],new Du(this,null,c));this.subscriptions&&this.subscriptions.push(d);this.add(d)}this.observables=null}};g.notifyNext=function(a,b,c){if(!this.hasFirst){this.hasFirst=!0;for(var d=0;d<this.subscriptions.length;d++)if(d!==c){var e=this.subscriptions[d];e.unsubscribe();this.remove(e)}this.subscriptions=null}this.destination.next(b)};
g.notifyComplete=function(a){this.hasFirst=!0;Fu.prototype.notifyComplete.call(this,a)};g.notifyError=function(a){this.hasFirst=!0;Fu.prototype.notifyError.call(this,a)};var $Hb=function(a){this.resultSelector=a};$Hb.prototype.call=function(a,b){return b.subscribe(new Pu(a,this.resultSelector))};var Pu=function(a,b,c){void 0===c&&Object.create(null);De.call(this,a);this.iterators=[];this.active=0;this.resultSelector=b};W(Pu,De);Pu.EMPTY=De.EMPTY;Pu.create=De.create;Pu.prototype._next=function(a){var b=this.iterators;Le(a)?b.push(new Qu(a)):"function"===typeof a[Ue]?b.push(new aIb(a[Ue]())):b.push(new Ru(this.destination,this,a))};
Pu.prototype._complete=function(){var a=this.iterators,b=a.length;this.unsubscribe();if(0===b)this.destination.complete();else{this.active=b;for(var c=0;c<b;c++){var d=a[c];d.stillUnsubscribed?this.destination.add(d.subscribe()):this.active--}}};Pu.prototype._tryresultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var aIb=function(a){this.iterator=a;this.nextResult=a.next()};aIb.prototype.hasValue=function(){return!0};
aIb.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};aIb.prototype.hasCompleted=function(){var a=this.nextResult;return a&&!!a.done};var Qu=function(a){this.array=a;this.length=this.index=0;this.length=a.length};Qu.prototype[Ue]=function(){return this};Qu.prototype.next=function(){var a=this.index++,b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};Qu.prototype.hasValue=function(){return this.array.length>this.index};
Qu.prototype.hasCompleted=function(){return this.array.length===this.index};var Ru=function(a,b,c){Eu.call(this,a);this.parent=b;this.observable=c;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1};W(Ru,Eu);Ru.EMPTY=Eu.EMPTY;Ru.create=Eu.create;Ru.prototype[Ue]=function(){return this};g=Ru.prototype;g.next=function(){var a=this.buffer;return 0===a.length&&this.isComplete?{value:null,done:!0}:{value:a.shift(),done:!1}};g.hasValue=function(){return 0<this.buffer.length};
g.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete};g.notifyComplete=function(){if(0<this.buffer.length){this.isComplete=!0;var a=this.parent;a.active--;0===a.active&&a.destination.complete()}else this.destination.complete()};
g.notifyNext=function(a){this.buffer.push(a);a:{a=this.parent;for(var b=a.iterators,c=b.length,d=a.destination,e=0;e<c;e++){var f=b[e];if("function"===typeof f.hasValue&&!f.hasValue())break a}e=!1;f=[];for(var h=0;h<c;h++){var k=b[h],q=k.next();k.hasCompleted()&&(e=!0);if(q.done){d.complete();break a}f.push(q.value)}a.resultSelector?a._tryresultSelector(f):d.next(f);e&&d.complete()}};g.subscribe=function(){return Te(this.observable,new Cu(this))};var bIb=function(a,b,c){this.key=a;this.groupSubject=b;this.refCountSubscription=c};W(bIb,Ge);bIb.create=Ge.create;bIb.prototype._subscribe=function(a){var b=new Be,c=this.refCountSubscription,d=this.groupSubject;c&&!c.closed&&b.add(new cIb(c));b.add(d.subscribe(a));return b};var cIb=function(a){Be.call(this);this.parent=a;a.count++};W(cIb,Be);cIb.EMPTY=Be.EMPTY;
cIb.prototype.unsubscribe=function(){var a=this.parent;a.closed||this.closed||(Be.prototype.unsubscribe.call(this),--a.count,0===a.count&&a.attemptedToUnsubscribe&&a.unsubscribe())};var Tha=function(){function a(b){this.message="Timeout has occurred";this.name="TimeoutError";this.info=void 0===b?null:b;return this}a.prototype=Object.create(Error.prototype);return a}();var dIb=function(a,b){a=void 0===a?Su:a;b=void 0===b?Infinity:b;Mu.call(this,a,function(){return c.frame});var c=this;this.maxFrames=b;this.frame=0;this.index=-1};W(dIb,Mu);dIb.prototype.flush=function(){for(var a=this.actions,b=this.maxFrames,c,d;(d=a[0])&&d.delay<=b&&!(a.shift(),this.frame=d.delay,c=d.execute(d.state,d.delay)););if(c){for(;d=a.shift();)d.unsubscribe();throw c;}};
var Su=function(a,b,c){c=void 0===c?a.index+=1:c;Lu.call(this,a,b);this.scheduler=a;this.work=b;this.index=c;this.active=!0;this.index=a.index=c};W(Su,Lu);Su.EMPTY=Lu.EMPTY;Su.prototype.schedule=function(a,b){b=void 0===b?0:b;if(Number.isFinite(b)){if(!this.id)return Lu.prototype.schedule.call(this,a,b);this.active=!1;var c=new Su(this.scheduler,this.work);this.add(c);return c.schedule(a,b)}return Be.EMPTY};
Su.prototype.requestAsyncId=function(a,b,c){this.delay=a.frame+(void 0===c?0:c);a=a.actions;a.push(this);a.sort(eIb);return!0};Su.prototype.recycleAsyncId=function(){};Su.prototype._execute=function(a,b){if(!0===this.active)return Lu.prototype._execute.call(this,a,b)};var eIb=function(a,b){return a.delay===b.delay?a.index===b.index?0:a.index>b.index?1:-1:a.delay>b.delay?1:-1};var Tu=function(a,b){Lu.call(this,a,b);this.scheduler=a;this.work=b};W(Tu,Lu);Tu.EMPTY=Lu.EMPTY;Tu.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return Lu.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=VHb(function(){return a.flush(void 0)}))};
Tu.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return Lu.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(WHb(b),a.scheduled=void 0)};var fIb=function(){Mu.apply(this,arguments)};W(fIb,Mu);fIb.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,d=-1;a=a||b.shift();var e=b.length;do if(c=a.execute(a.state,a.delay))break;while(++d<e&&(a=b.shift()));this.active=!1;if(c){for(;++d<e&&(a=b.shift());)a.unsubscribe();throw c;}};var gIb=new fIb(Tu);var hIb=1,iIb,Uha={},jIb=function(a){var b=hIb++;Uha[b]=!0;iIb||(iIb=Promise.resolve());iIb.then(function(){return Vha(b)&&a()});return b},kIb=function(a){Vha(a)};var mIb=function(){return((null==lIb?void 0:lIb.setImmediate)||jIb).apply(null,p(xd.apply(0,arguments)))},lIb=void 0;var Uu=function(a,b){Lu.call(this,a,b);this.scheduler=a;this.work=b};W(Uu,Lu);Uu.EMPTY=Lu.EMPTY;Uu.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return Lu.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=mIb(a.flush.bind(a,void 0)))};
Uu.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return Lu.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(((null==lIb?void 0:lIb.clearImmediate)||kIb)(b),a.scheduled=void 0)};var nIb=function(){Mu.apply(this,arguments)};W(nIb,Mu);nIb.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,d=-1;a=a||b.shift();var e=b.length;do if(c=a.execute(a.state,a.delay))break;while(++d<e&&(a=b.shift()));this.active=!1;if(c){for(;++d<e&&(a=b.shift());)a.unsubscribe();throw c;}};var oIb=new nIb(Uu);var Vu=function(a,b){Lu.call(this,a,b);this.scheduler=a;this.work=b};W(Vu,Lu);Vu.EMPTY=Lu.EMPTY;Vu.prototype.schedule=function(a,b){b=void 0===b?0:b;if(0<b)return Lu.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};Vu.prototype.execute=function(a,b){return 0<b||this.closed?Lu.prototype.execute.call(this,a,b):this._execute(a,b)};
Vu.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return null!==c&&0<c||null===c&&0<this.delay?Lu.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var pIb=function(){Mu.apply(this,arguments)};W(pIb,Mu);var qIb=new pIb(Vu);var rIb=function(){function a(){this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}a.prototype=Object.create(Error.prototype);return a}();var sIb=function(){function a(b){this.message=b;this.name="NotFoundError";return this}a.prototype=Object.create(Error.prototype);return a}();var tIb=function(){function a(b){this.message=b;this.name="SequenceError";return this}a.prototype=Object.create(Error.prototype);return a}();var B={};B.Observable=Ge;B.ConnectableObservable=yu;B.GroupedObservable=bIb;B.observable=Ve;B.animationFrames=function(a){return a?Aha(a):XHb};B.Subject=uf;B.BehaviorSubject=wu;B.ReplaySubject=tf;B.AsyncSubject=Me;B.asap=oIb;B.asapScheduler=oIb;B.async=df;B.asyncScheduler=df;B.queue=qIb;B.queueScheduler=qIb;B.animationFrame=gIb;B.animationFrameScheduler=gIb;B.VirtualTimeScheduler=dIb;B.VirtualAction=Su;B.Scheduler=QHb;B.Subscription=Be;B.Subscriber=De;B.Notification=NHb;
B.NotificationKind={NEXT:"N",ERROR:"E",COMPLETE:"C"};B.pipe=Uga;B.noop=$e;B.identity=Ee;B.isObservable=function(a){return!!a&&(a instanceof Ge||"function"===typeof a.lift&&"function"===typeof a.subscribe)};B.lastValueFrom=function(a){return new Promise(function(b,c){var d=!1,e;a.subscribe({next:function(f){e=f;d=!0},error:c,complete:function(){d?b(e):c(new of)}})})};
B.firstValueFrom=function(a){return new Promise(function(b,c){var d=new Be;d.add(a.subscribe({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new of)}}))})};B.ArgumentOutOfRangeError=rIb;B.EmptyError=of;B.NotFoundError=sIb;B.ObjectUnsubscribedError=tu;B.SequenceError=tIb;B.TimeoutError=Tha;B.UnsubscriptionError=Ce;B.bindCallback=eha;B.bindNodeCallback=hha;
B.combineLatest=function(){var a=xd.apply(0,arguments),b=void 0,c=void 0,d=void 0;Ie(a[a.length-1])&&(c=a.pop());"function"===typeof a[a.length-1]&&(b=a.pop());if(1===a.length){var e=a[0];Le(e)&&(a=e);Pga(e)&&Object.getPrototypeOf(e)===Object.prototype&&(d=Object.keys(e),a=d.map(function(f){return e[f]}))}return Je(He(a,c),new bia(b,d))};B.concat=Ze;B.defer=xha;B.empty=function(a){return a?Xga(a):af};
B.forkJoin=function(){var a=xd.apply(0,arguments);if(1===a.length){var b=a[0];if(Le(b))return Bha(b,null);if(Pga(b)&&Object.getPrototypeOf(b)===Object.prototype)return a=Object.keys(b),Bha(a.map(function(d){return b[d]}),a)}if("function"===typeof a[a.length-1]){var c=a.pop();a=1===a.length&&Le(a[0])?a[0]:a;return Bha(a,null).pipe(A(function(d){return c.apply(null,p(d))}))}return Bha(a,null)};B.from=We;B.fromEvent=Cha;B.fromEventPattern=Eha;
B.generate=function(a,b,c,d,e){if(1==arguments.length){var f=a.initialState;b=a.condition;c=a.iterate;var h=a.resultSelector||Ee;e=a.scheduler}else void 0===d||Ie(d)?(f=a,h=Ee,e=d):(f=a,h=d);return new Ge(function(k){var q=f;if(e)return e.schedule(Fha,0,{subscriber:k,iterate:c,condition:b,resultSelector:h,state:q});do{if(b){var u=void 0;try{u=b(q)}catch(x){k.error(x);break}if(!u){k.complete();break}}u=void 0;try{u=h(q)}catch(x){k.error(x);break}k.next(u);if(k.closed)break;try{q=c(q)}catch(x){k.error(x);
break}}while(1)})};B.iif=function(a,b,c){b=void 0===b?af:b;c=void 0===c?af:c;return xha(function(){return a()?b:c})};B.interval=function(a,b){a=void 0===a?0:a;b=void 0===b?df:b;if(!Gha(a)||0>a)a=0;b&&"function"===typeof b.schedule||(b=df);return new Ge(function(c){c.add(b.schedule(Hha,a,{subscriber:c,counter:0,period:a}));return c})};
B.merge=function(){var a=xd.apply(0,arguments),b=Infinity,c=void 0,d=a[a.length-1];Ie(d)?(c=a.pop(),1<a.length&&"number"===typeof a[a.length-1]&&(b=a.pop())):"number"===typeof d&&(b=a.pop());return!c&&1===a.length&&a[0]instanceof Ge?a[0]:Ye(b)(He(a,c))};B.never=function(){return ZHb};B.of=$ga;B.onErrorResumeNext=Iha;
B.pairs=function(a,b){return b?new Ge(function(c){var d=Object.keys(a),e=new Be;e.add(b.schedule(Jha,0,{keys:d,index:0,subscriber:c,subscription:e,obj:a}));return e}):new Ge(function(c){for(var d=Object.keys(a),e=0;e<d.length&&!c.closed;e++){var f=d[e];a.hasOwnProperty(f)&&c.next([f,a[f]])}c.complete()})};B.partition=function(a,b,c){return[cf(b,c)(new Ge(pha(a))),cf(Lha(b,c))(new Ge(pha(a)))]};B.race=Nha;
B.range=function(a,b,c){a=void 0===a?0:a;return new Ge(function(d){void 0===b&&(b=a,a=0);var e=0,f=a;if(c)return c.schedule(Oha,0,{index:e,count:b,start:a,subscriber:d});do{if(e++>=b){d.complete();break}d.next(f++);if(d.closed)break}while(1)})};B.throwError=function(a,b){return b?new Ge(function(c){return b.schedule(aha,0,{error:a,subscriber:c})}):new Ge(function(c){return c.error(a)})};B.timer=Rha;
B.using=function(a,b){return new Ge(function(c){try{var d=a()}catch(h){c.error(h);return}try{var e=b(d)}catch(h){c.error(h);return}var f=(e?We(e):af).subscribe(c);return function(){f.unsubscribe();d&&d.unsubscribe()}})};B.zip=function(){var a=xd.apply(0,arguments),b=void 0;"function"===typeof a[a.length-1]&&(b=a.pop());return Je(He(a),new $Hb(b))};B.scheduled=vha;B.EMPTY=af;B.NEVER=ZHb;B.config=Fe;var Wu=function(){this.taskId=0;this.pendingTasks=new Set;this.hasPendingTasks=new B.BehaviorSubject(!1)};Wu.prototype.add=function(){this.hasPendingTasks.next(!0);var a=this.taskId++;this.pendingTasks.add(a);return a};Wu.prototype.remove=function(a){this.pendingTasks.delete(a);0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)};Wu.prototype.ngOnDestroy=function(){this.pendingTasks.clear();this.hasPendingTasks.next(!1)};Wu.\u0275fac=function(a){return new (a||Wu)};
Wu.\u0275prov=$c({token:Wu,factory:Wu.\u0275fac,providedIn:"root"});var Xu=function(){};Xu.prototype.getModuleId=function(){};Xu.\u0275fac=function(a){return new (a||Xu)};Xu.\u0275prov=$c({token:Xu,factory:Xu.\u0275fac,providedIn:"root"});new Ad("compilerOptions");var Yu=function(a){a=void 0===a?!1:a;B.Subject.call(this);this.__isAsync=a};W(Yu,B.Subject);Yu.create=B.Subject.create;Yu.prototype.emit=function(a){B.Subject.prototype.next.call(this,a)};
Yu.prototype.subscribe=function(a,b,c){var d=a;b=b||function(){return null};if(a&&"object"===typeof a){var e;d=null==(e=a.next)?void 0:e.bind(a);var f;b=null==(f=a.error)?void 0:f.bind(a);var h;c=null==(h=a.complete)?void 0:h.bind(a)}this.__isAsync&&(b=Wha(b),d&&(d=Wha(d)),c&&(c=Wha(c)));d=B.Subject.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof B.Subscription&&a.add(d);return d};var Yha=function(a){this.durationSelector=a};Yha.prototype.call=function(a,b){return b.subscribe(new Zu(a,this.durationSelector))};var Zu=function(a,b){Eu.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.throttled=null};W(Zu,Eu);Zu.EMPTY=Eu.EMPTY;Zu.create=Eu.create;
Zu.prototype._next=function(a){this.value=a;this.hasValue=!0;if(!this.throttled){try{var b=this.durationSelector;var c=b(a)}catch(d){return this.destination.error(d)}a=Te(c,new Cu(this));!a||a.closed?uIb(this):this.add(this.throttled=a)}};var uIb=function(a){var b=a.value,c=a.hasValue,d=a.throttled;d&&(a.remove(d),a.throttled=null,d.unsubscribe());c&&(a.value=null,a.hasValue=!1,a.destination.next(b))};Zu.prototype.notifyNext=function(){uIb(this)};Zu.prototype.notifyComplete=function(){uIb(this)};var $ha=function(a){this.closingNotifier=a};$ha.prototype.call=function(a,b){return b.subscribe(new $u(a,this.closingNotifier))};var $u=function(a,b){Eu.call(this,a);this.buffer=[];this.add(Te(b,new Cu(this)))};W($u,Eu);$u.EMPTY=Eu.EMPTY;$u.create=Eu.create;$u.prototype._next=function(a){this.buffer.push(a)};$u.prototype.notifyNext=function(){var a=this.buffer;this.buffer=[];this.destination.next(a)};var fia=function(a){this.durationSelector=a};fia.prototype.call=function(a,b){return b.subscribe(new av(a,this.durationSelector))};var av=function(a,b){Eu.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.durationSubscription=null};W(av,Eu);av.EMPTY=Eu.EMPTY;av.create=Eu.create;g=av.prototype;g._next=function(a){try{var b=this.durationSelector.call(this,a);b&&this._tryNext(a,b)}catch(c){this.destination.error(c)}};g._complete=function(){vIb(this);this.destination.complete()};
g._tryNext=function(a,b){var c=this.durationSubscription;this.value=a;this.hasValue=!0;c&&(c.unsubscribe(),this.remove(c));(c=Te(b,new Cu(this)))&&!c.closed&&this.add(this.durationSubscription=c)};g.notifyNext=function(){vIb(this)};g.notifyComplete=function(){vIb(this)};var vIb=function(a){if(a.hasValue){var b=a.value,c=a.durationSubscription;c&&(a.durationSubscription=null,c.unsubscribe(),a.remove(c));a.value=null;a.hasValue=!1;Eu.prototype._next.call(a,b)}};var hia=function(a,b){this.dueTime=a;this.scheduler=b};hia.prototype.call=function(a,b){return b.subscribe(new bv(a,this.dueTime,this.scheduler))};var bv=function(a,b,c){De.call(this,a);this.dueTime=b;this.scheduler=c;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1};W(bv,De);bv.EMPTY=De.EMPTY;bv.create=De.create;bv.prototype._next=function(a){wIb(this);this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(jia,this.dueTime,this))};
bv.prototype._complete=function(){iia(this);this.destination.complete()};var iia=function(a){wIb(a);if(a.hasValue){var b=a.lastValue;a.lastValue=null;a.hasValue=!1;a.destination.next(b)}},wIb=function(a){var b=a.debouncedSubscription;null!==b&&(a.remove(b),b.unsubscribe(),a.debouncedSubscription=null)};var kia=function(a){this.defaultValue=a};kia.prototype.call=function(a,b){return b.subscribe(new cv(a,this.defaultValue))};var cv=function(a,b){De.call(this,a);this.defaultValue=b;this.isEmpty=!0};W(cv,De);cv.EMPTY=De.EMPTY;cv.create=De.create;cv.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};cv.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};var lia=function(a,b){this.delay=a;this.scheduler=b};lia.prototype.call=function(a,b){return b.subscribe(new dv(a,this.delay,this.scheduler))};var dv=function(a,b,c){De.call(this,a);this.destination=a;this.delay=b;this.scheduler=c;this.queue=[];this.active=!1};W(dv,De);dv.EMPTY=De.EMPTY;dv.create=De.create;
var xIb=function(a){for(var b=a.source,c=b.queue,d=a.scheduler,e=a.destination;0<c.length&&0>=c[0].time-d.now();)e.next(c.shift().value);0<c.length?(b=Math.max(0,c[0].time-d.now()),this.schedule(a,b)):(b.isStopped?b.destination.complete():this.unsubscribe(),b.active=!1)};dv.prototype._schedule=function(a){this.active=!0;var b=this.destination;b.add(a.schedule(xIb,this.delay,{source:this,destination:b,scheduler:a}))};
dv.prototype._next=function(a){var b=this.scheduler;a=new yIb(b.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(b)};dv.prototype._error=function(a){this.queue.length=0;this.destination.error(a);this.unsubscribe()};dv.prototype._complete=function(){0===this.queue.length&&this.destination.complete();this.unsubscribe()};var yIb=function(a,b){this.time=a;this.value=b};var mia=function(a){this.compare=a;this.keySelector=void 0};mia.prototype.call=function(a,b){return b.subscribe(new ev(a,this.compare,this.keySelector))};var ev=function(a,b,c){De.call(this,a);this.keySelector=c;this.hasKey=!1;"function"===typeof b&&(this.compare=b)};W(ev,De);ev.EMPTY=De.EMPTY;ev.create=De.create;ev.prototype.compare=function(a,b){return a===b};
ev.prototype._next=function(a){try{var b=this.keySelector;var c=b?b(a):a}catch(e){return this.destination.error(e)}b=!1;if(this.hasKey)try{var d=this.compare;b=d(this.key,c)}catch(e){return this.destination.error(e)}else this.hasKey=!0;b||(this.key=c,this.destination.next(a))};var nia=function(){this.count=1};nia.prototype.call=function(a,b){return b.subscribe(new fv(a,this.count))};var fv=function(a,b){De.call(this,a);this.count=b;this._valueCount=0};W(fv,De);fv.EMPTY=De.EMPTY;fv.create=De.create;fv.prototype._next=function(a){var b=this.count,c=++this._valueCount;c<=b&&(this.destination.next(a),c===b&&(this.destination.complete(),this.unsubscribe()))};var pia=function(a){this.errorFactory=a};pia.prototype.call=function(a,b){return b.subscribe(new gv(a,this.errorFactory))};var gv=function(a,b){De.call(this,a);this.errorFactory=b;this.hasValue=!1};W(gv,De);gv.EMPTY=De.EMPTY;gv.create=De.create;gv.prototype._next=function(a){this.hasValue=!0;this.destination.next(a)};gv.prototype._complete=function(){if(this.hasValue)return this.destination.complete();try{var a=this.errorFactory()}catch(b){a=b}this.destination.error(a)};var ria=function(a){this.callback=a};ria.prototype.call=function(a,b){a=b.subscribe(a);a.add(this.callback);return a};var sia=function(){};sia.prototype.call=function(a,b){return b.subscribe(new hv(a))};var hv=function(){De.apply(this,arguments)};W(hv,De);hv.EMPTY=De.EMPTY;hv.create=De.create;hv.prototype._next=function(){};var uia=function(){this.total=1};uia.prototype.call=function(a,b){return b.subscribe(new iv(a,this.total))};var iv=function(a,b){De.call(this,a);this.total=b;this.ring=[];this.count=0};W(iv,De);iv.EMPTY=De.EMPTY;iv.create=De.create;iv.prototype._next=function(a){var b=this.ring,c=this.total,d=this.count++;b.length<c?b.push(a):b[d%c]=a};
iv.prototype._complete=function(){var a=this.destination,b=this.count;if(0<b)for(var c=this.count>=this.total?this.total:this.count,d=this.ring,e=0;e<c;e++){var f=b++%c;a.next(d[f])}a.complete()};var wia=function(a){this.value=a};wia.prototype.call=function(a,b){return b.subscribe(new jv(a,this.value))};var jv=function(a,b){De.call(this,a);this.value=b};W(jv,De);jv.EMPTY=De.EMPTY;jv.create=De.create;jv.prototype._next=function(){this.destination.next(this.value)};var xia=function(a,b,c){this.accumulator=a;this.seed=b;this.hasSeed=void 0===c?!1:c};xia.prototype.call=function(a,b){return b.subscribe(new kv(a,this.accumulator,this.seed,this.hasSeed))};var kv=function(a,b,c,d){De.call(this,a);this.accumulator=b;this._state=c;this._hasState=d;this.index=0};W(kv,De);kv.EMPTY=De.EMPTY;kv.create=De.create;
kv.prototype._next=function(a){var b=this.destination;if(this._hasState){var c=this.index++;try{var d=this.accumulator(this._state,a,c)}catch(e){b.error(e);return}this._state=d;b.next(d)}else this._state=a,this._hasState=!0,b.next(a)};var Gia=function(a){this.total=a};Gia.prototype.call=function(a,b){return b.subscribe(new lv(a,this.total))};var lv=function(a,b){De.call(this,a);this.total=b;this.count=0};W(lv,De);lv.EMPTY=De.EMPTY;lv.create=De.create;lv.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};var Hia=function(a){this.project=a};Hia.prototype.call=function(a,b){return b.subscribe(new mv(a,this.project))};var mv=function(a,b){Eu.call(this,a);this.destination=a;this.project=b;this.index=0};W(mv,Eu);mv.EMPTY=Eu.EMPTY;mv.create=Eu.create;g=mv.prototype;g._next=function(a){var b=this.index++;try{var c=this.project(a,b)}catch(d){this.destination.error(d);return}(a=this.innerSubscription)&&a.unsubscribe();a=new Cu(this);this.destination.add(a);this.innerSubscription=a;Te(c,a)};
g._complete=function(){var a=this.innerSubscription;a&&!a.closed||Eu.prototype._complete.call(this);this.unsubscribe()};g._unsubscribe=function(){this.innerSubscription=void 0};g.notifyComplete=function(){this.innerSubscription=void 0;this.isStopped&&Eu.prototype._complete.call(this)};g.notifyNext=function(a){this.destination.next(a)};var Iia=function(a){this.notifier=a};Iia.prototype.call=function(a,b){a=new nv(a);var c=Te(this.notifier,new Cu(a));return c&&!a.notifierHasNotified?(a.add(c),b.subscribe(a)):a};var nv=function(a){Eu.call(this,a);this.notifierHasNotified=!1};W(nv,Eu);nv.EMPTY=Eu.EMPTY;nv.create=Eu.create;nv.prototype.notifyNext=function(){this.notifierHasNotified=!0;this.complete()};nv.prototype.notifyComplete=function(){};var Jia=function(a,b){this.predicate=a;this.inclusive=b};Jia.prototype.call=function(a,b){return b.subscribe(new ov(a,this.predicate,this.inclusive))};var ov=function(a,b,c){De.call(this,a);this.predicate=b;this.inclusive=c;this.index=0};W(ov,De);ov.EMPTY=De.EMPTY;ov.create=De.create;ov.prototype._next=function(a){var b=this.destination;try{var c=this.predicate(a,this.index++)}catch(d){b.error(d);return}b=this.destination;c?b.next(a):(this.inclusive&&b.next(a),b.complete())};var Lia=function(a,b){this.nextOrObserver=a;this.error=b;this.complete=void 0};Lia.prototype.call=function(a,b){return b.subscribe(new pv(a,this.nextOrObserver,this.error,this.complete))};var pv=function(a,b,c,d){De.call(this,a);this._tapComplete=this._tapError=this._tapNext=$e;this._tapError=c||$e;this._tapComplete=d||$e;Ae(b)?(this._context=this,this._tapNext=b):b&&(this._context=b,this._tapNext=b.next||$e,this._tapError=b.error||$e,this._tapComplete=b.complete||$e)};W(pv,De);pv.EMPTY=De.EMPTY;
pv.create=De.create;pv.prototype._next=function(a){try{this._tapNext.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.next(a)};pv.prototype._error=function(a){try{this._tapError.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.error(a)};pv.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(a){this.destination.error(a);return}return this.destination.complete()};var Mia={leading:!0,trailing:!1},Nia=function(a,b,c){this.durationSelector=a;this.leading=b;this.trailing=c};Nia.prototype.call=function(a,b){return b.subscribe(new qv(a,this.durationSelector,this.leading,this.trailing))};var qv=function(a,b,c,d){Eu.call(this,a);this.destination=a;this.durationSelector=b;this._leading=c;this._trailing=d;this._sendValue=null;this._hasValue=!1};W(qv,Eu);qv.EMPTY=Eu.EMPTY;qv.create=Eu.create;
qv.prototype._next=function(a){this._hasValue=!0;this._sendValue=a;this._throttled||(this._leading?this.send():zIb(this,a))};qv.prototype.send=function(){var a=this._sendValue;this._hasValue&&(this.destination.next(a),zIb(this,a));this._hasValue=!1;this._sendValue=null};var zIb=function(a,b){try{var c=a.durationSelector(b)}catch(d){a.destination.error(d);return}a.add(a._throttled=Te(c,new Cu(a)))},AIb=function(a){var b=a._throttled,c=a._trailing;b&&b.unsubscribe();a._throttled=null;c&&a.send()};
qv.prototype.notifyNext=function(){AIb(this)};qv.prototype.notifyComplete=function(){AIb(this)};var Qia=function(a,b){this.observables=a;this.project=b};Qia.prototype.call=function(a,b){return b.subscribe(new rv(a,this.observables,this.project))};var rv=function(a,b,c){Fu.call(this,a);this.project=c;this.toRespond=[];a=b.length;this.values=Array(a);for(c=0;c<a;c++)this.toRespond.push(c);for(c=0;c<a;c++)this.add(Te(b[c],new Du(this,void 0,c)))};W(rv,Fu);rv.EMPTY=Fu.EMPTY;rv.create=Fu.create;
rv.prototype.notifyNext=function(a,b,c){this.values[c]=b;b=this.toRespond;0<b.length&&(c=b.indexOf(c),-1!==c&&b.splice(c,1))};rv.prototype.notifyComplete=function(){};rv.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(p(this.values)),this.project?this._tryProject(a):this.destination.next(a))};rv.prototype._tryProject=function(a){try{var b=this.project.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var Df=function(a){var b=void 0===a.enableLongStackTrace?!1:a.enableLongStackTrace,c=void 0===a.shouldCoalesceEventChangeDetection?!1:a.shouldCoalesceEventChangeDetection;a=void 0===a.shouldCoalesceRunChangeDetection?!1:a.shouldCoalesceRunChangeDetection;this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new Yu(!1);this.onMicrotaskEmpty=new Yu(!1);this.onStable=new Yu(!1);this.onError=new Yu(!1);if("undefined"==typeof Zone)throw new dd(908,!1);Zone.assertZonePatched();
this._nesting=0;this._outer=this._inner=Zone.current;Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec));b&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec));this.shouldCoalesceEventChangeDetection=!a&&c;this.shouldCoalesceRunChangeDetection=a;this.lastRequestAnimationFrameId=-1;c="function"===typeof ne.requestAnimationFrame;b=ne[c?"requestAnimationFrame":"setTimeout"];c=ne[c?"cancelAnimationFrame":"clearTimeout"];"undefined"!==
typeof Zone&&b&&c&&((c=b[Zone.__symbol__("OriginalDelegate")])&&(b=c),Zone.__symbol__("OriginalDelegate"));this.nativeRequestAnimationFrame=b;Via(this)},Xia=function(){return"undefined"!==typeof Zone&&!0===Zone.current.get("isAngularZone")},Wia=function(){if(Xia())throw new dd(909,!1);};Df.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};Df.prototype.runTask=function(a,b,c){var d=this._inner;a=d.scheduleEventTask("NgZoneEvent: undefined",a,BIb,Xha,Xha);try{return d.runTask(a,b,c)}finally{d.cancelTask(a)}};
Df.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};Df.prototype.runOutsideAngular=function(a){return this._outer.run(a)};var BIb={},Hf=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new Yu;this.onMicrotaskEmpty=new Yu;this.onStable=new Yu;this.onError=new Yu};Hf.prototype.run=function(a,b,c){return a.apply(b,c)};Hf.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};Hf.prototype.runOutsideAngular=function(a){return a()};
Hf.prototype.runTask=function(a,b,c){return a.apply(b,c)};var nja=new Ad("",{providedIn:"root",factory:Yia});var CIb=new Ad(""),DIb=new Ad(""),sv=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._pendingCount=0;this._isZoneStable=!0;this._didWork=!1;this._callbacks=[];this.taskTrackingZone=null;EIb||(EIb=c,FIb(b));this._watchAngularEvents();a.run(function(){d.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})};
sv.prototype._watchAngularEvents=function(){var a=this;this._ngZone.onUnstable.subscribe({next:function(){a._didWork=!0;a._isZoneStable=!1}});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.subscribe({next:function(){Wia();queueMicrotask(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};sv.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
sv.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())queueMicrotask(function(){for(;0!==a._callbacks.length;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb(a._didWork)}a._didWork=!1});else{var b=GIb(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0});this._didWork=!0}};
var GIb=function(a){return a.taskTrackingZone?a.taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};g=sv.prototype;g.addCallback=function(a,b,c){var d=this,e=-1;b&&0<b&&(e=setTimeout(function(){d._callbacks=d._callbacks.filter(function(f){return f.timeoutId!==e});a(d._didWork,GIb(d))},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
g.whenStable=function(a,b,c){if(c&&!this.taskTrackingZone)throw Error("Ka");this.addCallback(a,b,c);this._runCallbacksIfReady()};g.registerApplication=function(a){this.registry.registerApplication(a,this)};g.unregisterApplication=function(a){this.registry.unregisterApplication(a)};g.findProviders=function(){return[]};sv.\u0275fac=function(a){return new (a||sv)(n(Df),n(tv),n(DIb))};sv.\u0275prov=$c({token:sv,factory:sv.\u0275fac});var tv=function(){this._applications=new Map};
tv.prototype.registerApplication=function(a,b){this._applications.set(a,b)};tv.prototype.unregisterApplication=function(a){this._applications.delete(a)};tv.prototype.findTestabilityInTree=function(a,b){var c,d;return null!=(d=null==(c=EIb)?void 0:c.findTestabilityInTree(this,a,void 0===b?!0:b))?d:null};tv.\u0275fac=function(a){return new (a||tv)};tv.\u0275prov=$c({token:tv,factory:tv.\u0275fac,providedIn:"platform"});var EIb;var HIb=this,Ef=null,bja=new Ad("AllowMultipleToken"),fja=new Ad("PlatformDestroyListeners"),IIb=new Ad("appBootstrapListener"),JIb=function(a,b){this.name=a;this.token=b},Ff=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},KIb=function(a,b,c){var d=hja(null==c?void 0:c.ngZone,gja({eventCoalescing:null==c?void 0:c.ngZoneEventCoalescing,runCoalescing:null==c?void 0:c.ngZoneRunCoalescing}));return d.run(function(){var e=Iga(b.moduleType,a.injector,oja(function(){return d})),
f=e.injector.get(ve,null);d.runOutsideAngular(function(){var h=d.onError.subscribe({next:function(k){f.handleError(k)}});e.onDestroy(function(){kja(a._modules,e);h.unsubscribe()})});return ija(f,d,function(){var h=e.injector.get(pu);HHb(h);return h.donePromise.then(function(){var k=e.injector.get(Wh,"en-US")||"en-US";if(null==k)throw Error("qa`Expected localeId to be defined` [Expected=> null != "+(k+" <=Actual]"));a._moduleDoBootstrap(e);return e})})})},MIb=function(){var a=LIb(),b=uv;var c=void 0===
c?[]:c;var d=jja({},c);Promise.resolve(new FHb(b)).then(function(e){return KIb(a,e,d)})};Ff.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(vv);if(0<a._bootstrapComponents.length)a._bootstrapComponents.forEach(function(c){return b.bootstrap(c)});else if(a.instance.ngDoBootstrap)a.instance.ngDoBootstrap(b);else throw new dd(-403,!1);this._modules.push(a)};Ff.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
Ff.prototype.destroy=function(){if(this._destroyed)throw new dd(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(fja,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};Qh.Object.defineProperties(Ff.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
Ff.\u0275fac=function(a){return new (a||Ff)(n(eu))};Ff.\u0275prov=$c({token:Ff,factory:Ff.\u0275fac,providedIn:"platform"});var vv=function(){var a=this;this._bootstrapListeners=[];this._destroyed=this._runningTick=!1;this._destroyListeners=[];this._views=[];this.internalErrorHandler=jd(mja);this.zoneIsStable=jd(nja);this.componentTypes=[];this.components=[];this.isStable=jd(Wu).hasPendingTasks.pipe(zf(function(b){return b?(0,B.of)(!1):a.zoneIsStable}),mf(),vf());this._injector=jd($t)};
vv.prototype.bootstrap=function(a,b){var c=this,d=a instanceof kHb;if(!this._injector.get(pu).done)throw new dd(405,!1);var e;d?e=a:e=DHb(this._injector.get(fu),a);this.componentTypes.push(e.componentType);a=e.isBoundToModule?void 0:this._injector.get(gu);var f=e.create(fHb,[],b||e.selector,a),h=f.location.nativeElement,k=f.injector.get(CIb,null);null==k||k.registerApplication(h);f.onDestroy(function(){c.detachView(f.hostView);kja(c.components,f);null==k||k.unregisterApplication(h)});this._loadComponent(f);
return f};vv.prototype.tick=function(){if(this._runningTick)throw new dd(101,!1);try{this._runningTick=!0;for(var a=l(this._views),b=a.next();!b.done;b=a.next())b.value.detectChanges()}catch(c){this.internalErrorHandler(c)}finally{this._runningTick=!1}};var NIb=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new dd(902,!1);b._appRef=a};g=vv.prototype;g.detachView=function(a){kja(this._views,a);a._appRef=null;var b=a._lView;ge(b[11],2,a._lView[1].firstChild,b,null,null,!1)};
g._loadComponent=function(a){NIb(this,a.hostView);this.tick();this.components.push(a);var b=this._injector.get(IIb,[]);[].concat(p(this._bootstrapListeners),p(b)).forEach(function(c){return c(a)})};g.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()})}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}};
g.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return kja(b._destroyListeners,a)}};g.destroy=function(){if(this._destroyed)throw new dd(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};Qh.Object.defineProperties(vv.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},viewCount:{configurable:!0,enumerable:!0,get:function(){return this._views.length}}});
vv.\u0275fac=function(a){return new (a||vv)};vv.\u0275prov=$c({token:vv,factory:vv.\u0275fac,providedIn:"root"});var mja=new Ad("",{providedIn:"root",factory:function(){return jd(ve).handleError.bind(HIb)}}),If=function(){this.zone=jd(Df);this.applicationRef=jd(vv)};If.prototype.initialize=function(){var a=this;this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:function(){a.zone.run(function(){a.applicationRef.tick()})}}))};
If.prototype.ngOnDestroy=function(){var a;null==(a=this._onMicrotaskEmptySubscription)||a.unsubscribe()};If.\u0275fac=function(a){return new (a||If)};If.\u0275prov=$c({token:If,factory:If.\u0275fac,providedIn:"root"});new Ad("");new Ad("AnalyzeForEntryComponents");var Rf=0,Sf=0,Uf=0,Dja=0,Fja=0;var Wja=Xja;var mg=function(a){this._injector=a;this.cachedInjectors=new Map};mg.prototype.ngOnDestroy=function(){try{for(var a=l(this.cachedInjectors.values()),b=a.next();!b.done;b=a.next()){var c=b.value;null!==c&&c.destroy()}}finally{this.cachedInjectors.clear()}};mg.\u0275prov=$c({token:mg,providedIn:"environment",factory:function(){return new mg(n($t))}});var Cg=function(a){this._emitDistinctChangesOnly=a=void 0===a?!1:a;this.dirty=!0;this._results=[];this._changesDetected=!1;this._changes=null;this.length=0;this.last=this.first=void 0;var b=Cg.prototype;b[Symbol.iterator]||(b[Symbol.iterator]=mka)};g=Cg.prototype;g.get=function(a){return this._results[a]};g.map=function(a){return this._results.map(a)};g.filter=function(a){return this._results.filter(a)};g.find=function(a){return this._results.find(a)};
g.reduce=function(a,b){return this._results.reduce(a,b)};g.forEach=function(a){this._results.forEach(a)};g.some=function(a){return this._results.some(a)};g.toArray=function(){return this._results.slice()};g.toString=function(){return this._results.toString()};
g.reset=function(a,b){this.dirty=!1;a=a.flat(Number.POSITIVE_INFINITY);a:{var c=this._results;if(c.length!==a.length)b=!1;else{for(var d=0;d<c.length;d++){var e=c[d],f=a[d];b&&(e=b(e),f=b(f));if(f!==e){b=!1;break a}}b=!0}}if(this._changesDetected=!b)this._results=a,this.length=a.length,this.last=a[this.length-1],this.first=a[0]};var xg=function(a){!a._changes||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.emit(a)};Cg.prototype.setDirty=function(){this.dirty=!0};
Cg.prototype.destroy=function(){this.changes.complete();this.changes.unsubscribe()};Qh.Object.defineProperties(Cg.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){return this._changes||(this._changes=new Yu)}}});Symbol.iterator;var vg=function(){};vg.__NG_ELEMENT_ID__=oka;var sg=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};W(sg,vg);sg.__NG_ELEMENT_ID__=vg.__NG_ELEMENT_ID__;sg.prototype.createEmbeddedView=function(a,b){return OIb(this,a,b)};
var OIb=function(a,b,c,d){var e=a._declarationLView;a=a._declarationTContainer;var f={injector:c,hydrationInfo:d};c=a.tView;var h,k;d=cga(e,c,b,e[2]&4096?4096:16,null,a,null,null,null,null!=(h=null==f?void 0:f.injector)?h:null,null!=(k=null==f?void 0:f.hydrationInfo)?k:null);d[16]=e[a.index];e=e[18];null!==e&&(d[18]=e.createEmbeddedView(c));zga(c,d,b);return new Fg(d)};
Qh.Object.defineProperties(sg.prototype,{ssrId:{configurable:!0,enumerable:!0,get:function(){var a;return(null==(a=this._declarationTContainer.tView)?void 0:a.ssrId)||null}}});var wg=function(){};wg.__NG_ELEMENT_ID__=qka;var tg=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};W(tg,wg);tg.__NG_ELEMENT_ID__=wg.__NG_ELEMENT_ID__;g=tg.prototype;g.clear=function(){for(;0<this.length;)this.remove(this.length-1)};g.get=function(a){var b=this._lContainer[8];return null!==b&&b[a]||null};g.createEmbeddedView=function(a,b,c){if("number"===typeof c)var d=c;else if(null!=c){d=c.index;var e=c.injector}a=OIb(a,b||{},e,null);PIb(this,a,d);return a};
g.createComponent=function(a,b,c,d){var e=a&&"function"!==typeof a;if(!e){var f=b||{};b=f.index;c=f.injector;d=f.projectableNodes;f=f.environmentInjector||f.ngModuleRef}a=e?a:new Hg(a[pd]||null);c=c||this.parentInjector;f||null!=a.ngModule||(e=(e?c:this.parentInjector).get($t,null))&&(f=e);d=a.create(c,d,null,f);PIb(this,d.hostView,b);return d};g.insert=function(a,b){return PIb(this,a,b)};
var PIb=function(a,b,c){var d=b._lView;if(Ed(d[3])){var e=a.indexOf(b);-1!==e?a.detach(e):(e=d[3],e=new tg(e,e[6],e[3]),e.detach(e.indexOf(b)))}c=a._adjustIndex(c);a=a._lContainer;var f=!0;f=void 0===f?!0:f;e=d[1];var h=11+c,k=a.length;0<c&&(a[h-1][4]=d);c<k-11?(d[4]=a[h],h=11+c,h>=a.length?a.push(d):a.splice(h,0,d)):(a.push(d),d[4]=null);d[3]=a;h=d[16];null!==h&&a!==h&&(k=h[9],d[15]!==d[3][3][15]&&(h[2]=!0),null===k?h[9]=[d]:k.push(d));h=d[18];null!==h&&QIb(h,e);d[2]|=128;if(f&&(f=wfa(c,a),h=d[11],
k=h.parentNode(a[7]),null!==k)){var q=a[6];d[0]=k;d[6]=q;ge(h,1,e.firstChild,d,k,f,!1)}if(b._appRef)throw new dd(902,!1);b._attachedToViewContainer=!0;d=rka(a);c>=d.length?d.push(b):d.splice(c,0,b);return b};g=tg.prototype;g.move=function(a,b){return this.insert(a,b)};g.indexOf=function(a){var b=this._lContainer[8];return null!==b?b.indexOf(a):-1};g.remove=function(a){a=this._adjustIndex(a,-1);var b=rfa(this._lContainer,a);b&&(Yda(rka(this._lContainer),a),tfa(b[1],b))};
g.detach=function(a){a=this._adjustIndex(a,-1);var b=rfa(this._lContainer,a);return b&&null!=Yda(rka(this._lContainer),a)?new Fg(b):null};g._adjustIndex=function(a,b){return null==a?this.length+(void 0===b?0:b):a};
Qh.Object.defineProperties(tg.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return be(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new Yd(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=Tea(this._hostTNode,this._hostLView);if(-1!==a){var b=Mea(a,this._hostLView);return new Yd(b[1].data[(a&32767)+8],b)}return new Yd(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-11}}});var ska=tka;var Aka=function(a){this.queryList=a;this.matches=null};Aka.prototype.clone=function(){return new Aka(this.queryList)};Aka.prototype.setDirty=function(){this.queryList.setDirty()};var zka=function(a){this.queries=a=void 0===a?[]:a};zka.prototype.createEmbeddedView=function(a){var b=a.queries;if(null!==b){a=null!==a.contentQueries?a.contentQueries[0]:b.length;for(var c=[],d=0;d<a;d++)c.push(this.queries[b.queries[d].indexInDeclarationView].clone());return new zka(c)}return null};
zka.prototype.detachView=function(a){QIb(this,a)};var QIb=function(a,b){for(var c=0;c<a.queries.length;c++)null!==b.queries.queries[c].matches&&a.queries[c].setDirty()},xka=function(a,b,c){this.predicate=a;this.flags=b;this.read=void 0===c?null:c},Bka=function(a){this.queries=a=void 0===a?[]:a};g=Bka.prototype;g.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};g.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
g.embeddedTView=function(a){for(var b=null,c=0;c<this.length;c++){var d=this.queries[c].embeddedTView(a,null!==b?b.length:0);d&&(d.indexInDeclarationView=c,null!==b?b.push(d):b=[d])}return null!==b?new Bka(b):null};g.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};g.track=function(a){this.queries.push(a)};Qh.Object.defineProperties(Bka.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var Dg=function(a,b){this.metadata=a;this.matches=null;this.indexInDeclarationView=-1;this.crossesNgTemplate=!1;this._appliesToNextNode=!0;this._declarationNodeIndex=void 0===b?-1:b};
Dg.prototype.elementStart=function(a,b){if(RIb(this,b)){var c=this.metadata.predicate;if(Array.isArray(c))for(var d=0;d<c.length;d++){var e=c[d];a:{var f=b.localNames;if(null!==f)for(var h=0;h<f.length;h+=2)if(f[h]===e){f=f[h+1];break a}f=null}SIb(this,a,b,f);SIb(this,a,b,$ea(b,a,e,!1,!1))}else c===vg?b.type&4&&SIb(this,a,b,-1):SIb(this,a,b,$ea(b,a,c,!1,!1))}};Dg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
Dg.prototype.template=function(a,b){this.elementStart(a,b)};Dg.prototype.embeddedTView=function(a,b){return RIb(this,a)?(this.crossesNgTemplate=!0,TIb(this,-a.index,b),new Dg(this.metadata)):null};
var RIb=function(a,b){if(a._appliesToNextNode&&1!==(a.metadata.flags&1)){a=a._declarationNodeIndex;for(b=b.parent;null!==b&&b.type&8&&b.index!==a;)b=b.parent;return a===(null!==b?b.index:-1)}return a._appliesToNextNode},SIb=function(a,b,c,d){if(null!==d){var e=a.metadata.read;null!==e?e===ae||e===wg||e===vg&&c.type&4?TIb(a,c.index,-2):(b=$ea(c,b,e,!1,!1),null!==b&&TIb(a,c.index,b)):TIb(a,c.index,d)}},TIb=function(a,b,c){null===a.matches?a.matches=[b,c]:a.matches.push(b,c)};var wv=function(){};wv.\u0275fac=function(a){return new (a||wv)(n(vv))};wv.\u0275mod=qd({type:wv});wv.\u0275inj=ad({});var xv=function(){};xv.__NG_ELEMENT_ID__=Dka;var UIb=function(){};UIb.prototype.supports=function(a){return vja(a)};UIb.prototype.create=function(a){return new yv(a)};var VIb=function(a,b){return b},yv=function(a){this.length=0;this._identityChangesTail=this._identityChangesHead=this._removalsTail=this._removalsHead=this._movesTail=this._movesHead=this._additionsTail=this._additionsHead=this._itTail=this._itHead=this._previousItHead=this._unlinkedRecords=this._linkedRecords=null;this._trackByFn=a||VIb};
yv.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)};var WIb=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Eka(a,d,e)?c:a,h=Eka(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,null==f.previousIndex)d++;else{e||(e=[]);var q=h-d,u=k-d;if(q!=u){for(var x=0;x<q;x++){var y=x<e.length?e[x]:e[x]=0,E=y+x;u<=E&&E<q&&(e[x]=y+1)}e[f.previousIndex]=u-q}}h!==k&&b(f,h,k)}};
yv.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};yv.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};var XIb=function(a,b){for(a=a._identityChangesHead;null!==a;a=a._nextIdentityChange)b(a)};g=yv.prototype;g.diff=function(a){null==a&&(a=[]);if(!vja(a))throw new dd(900,!1);return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._itHead,d=!1;if(Array.isArray(a)){this.length=a.length;for(var e=0;e<this.length;e++){var f=a[e];var h=this._trackByFn(e,f);null!==c&&Object.is(c.trackById,h)?(d&&(c=this._verifyReinsertion(c,f,h,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,h,e),d=!0);c=c._next}}else{var k=0;wja(a,function(q){h=b._trackByFn(k,q);null!==c&&Object.is(c.trackById,h)?(d&&(c=b._verifyReinsertion(c,q,h,k)),Object.is(c.item,q)||b._addIdentityChange(c,
q)):(c=b._mismatch(c,q,h,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
g._mismatch=function(a,b,c,d){if(null===a)var e=this._itTail;else e=a._prev,this._remove(a);a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);null!==a?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=null===this._linkedRecords?null:this._linkedRecords.get(c,d),null!==a?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new YIb(b,c),e,d));return a};
g._verifyReinsertion=function(a,b,c,d){b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);null!==b?a=this._reinsertAfter(b,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d));return a};
g._truncate=function(a){for(;null!==a;){var b=a._next;this._addToRemovals(this._unlink(a));a=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear();null!==this._additionsTail&&(this._additionsTail._nextAdded=null);null!==this._movesTail&&(this._movesTail._nextMoved=null);null!==this._itTail&&(this._itTail._next=null);null!==this._removalsTail&&(this._removalsTail._nextRemoved=null);null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)};
g._reinsertAfter=function(a,b,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;null===d?this._removalsHead=e:d._nextRemoved=e;null===e?this._removalsTail=d:e._prevRemoved=d;this._insertAfter(a,b,c);this._addToMoves(a,c);return a};g._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
g._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};g._insertAfter=function(a,b,c){var d=null===b?this._itHead:b._next;a._next=d;a._prev=b;null===d?this._itTail=a:d._prev=a;null===b?this._itHead=a:b._next=a;null===this._linkedRecords&&(this._linkedRecords=new zv);this._linkedRecords.put(a);a.currentIndex=c;return a};g._remove=function(a){return this._addToRemovals(this._unlink(a))};
g._unlink=function(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;null===b?this._itHead=c:b._next=c;null===c?this._itTail=b:c._prev=b;return a};g._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a;return a};
g._addToRemovals=function(a){null===this._unlinkedRecords&&(this._unlinkedRecords=new zv);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};
g._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};Qh.Object.defineProperties(yv.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}});
var YIb=function(a,b){this.item=a;this.trackById=b;this._nextIdentityChange=this._nextMoved=this._nextAdded=this._nextRemoved=this._prevRemoved=this._nextDup=this._prevDup=this._next=this._prev=this._nextPrevious=this.previousIndex=this.currentIndex=null},ZIb=function(){this._tail=this._head=null};ZIb.prototype.add=function(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)};
ZIb.prototype.get=function(a,b){var c;for(c=this._head;null!==c;c=c._nextDup)if((null===b||b<=c.currentIndex)&&Object.is(c.trackById,a))return c;return null};ZIb.prototype.remove=function(a){var b=a._prevDup;a=a._nextDup;null===b?this._head=a:b._nextDup=a;null===a?this._tail=b:a._prevDup=b;return null===this._head};var zv=function(){this.map=new Map};zv.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new ZIb,this.map.set(b,c));c.add(a)};
zv.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};zv.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};zv.prototype.clear=function(){this.map.clear()};Qh.Object.defineProperties(zv.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return 0===this.map.size}}});var $Ib=function(){};$Ib.prototype.supports=function(a){return a instanceof Map||uja(a)};$Ib.prototype.create=function(){return new aJb};var aJb=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};aJb.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)};var bJb=function(a,b){for(a=a._changesHead;null!==a;a=a._nextChanged)b(a)};
g=aJb.prototype;g.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};g.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};g.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||uja(a)))throw new dd(900,!1);return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._mapHead;this._appendAfter=null;this._forEach(a,function(d,e){c&&c.key===e?(b._maybeAddToChanges(c,d),b._appendAfter=c,c=c._next):(d=b._getOrCreateRecordForKey(e,d),c=b._insertBeforeOrAppend(c,d))});if(c)for(c._prev&&(c._prev._next=null),a=this._removalsHead=c;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=
null;this._changesTail&&(this._changesTail._nextChanged=null);this._additionsTail&&(this._additionsTail._nextAdded=null);return this.isDirty};g._insertBeforeOrAppend=function(a,b){if(a){var c=a._prev;b._next=a;b._prev=c;a._prev=b;c&&(c._next=b);a===this._mapHead&&(this._mapHead=b);return this._appendAfter=a}this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b;this._appendAfter=b;return null};
g._getOrCreateRecordForKey=function(a,b){if(this._records.has(a)){a=this._records.get(a);this._maybeAddToChanges(a,b);b=a._prev;var c=a._next;b&&(b._next=c);c&&(c._prev=b);a._next=null;a._prev=null;return a}c=new cJb(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};
g._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};g._addToAdditions=function(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};g._addToChanges=function(a){null===this._changesHead?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
g._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};Qh.Object.defineProperties(aJb.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}});var cJb=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};var Av=function(a){this.factories=a};Av.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(null!=b)return b;throw new dd(901,!1);};Av.\u0275prov=$c({token:Av,providedIn:"root",factory:function(){return new Av([new UIb])}});var Bv=function(a){this.factories=a};Bv.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new dd(901,!1);};Bv.\u0275prov=$c({token:Bv,providedIn:"root",factory:function(){return new Bv([new $Ib])}});var dJb=dja(null,"core",[]);var eJb=/\s+/,fJb=[],Cv=function(a,b,c,d){this._iterableDiffers=a;this._keyValueDiffers=b;this._ngEl=c;this._renderer=d;this.initialClasses=fJb;this.stateMap=new Map};
Cv.prototype.ngDoCheck=function(){for(var a=l(this.initialClasses),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);a=this.rawClass;if(Array.isArray(a)||a instanceof Set)for(a=l(a),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);else if(null!=a){var c=l(Object.keys(a));for(b=c.next();!b.done;b=c.next())b=b.value,this._updateState(b,!!a[b])}this._applyStateDiff()};
Cv.prototype._updateState=function(a,b){var c=this.stateMap.get(a);void 0!==c?(c.enabled!==b&&(c.changed=!0,c.enabled=b),c.touched=!0):this.stateMap.set(a,{enabled:b,changed:!0,touched:!0})};Cv.prototype._applyStateDiff=function(){for(var a=l(this.stateMap),b=a.next();!b.done;b=a.next()){var c=b.value;b=c[0];c=c[1];c.changed?(this._toggleClass(b,c.enabled),c.changed=!1):c.touched||(c.enabled&&this._toggleClass(b,!1),this.stateMap.delete(b));c.touched=!1}};
Cv.prototype._toggleClass=function(a,b){var c=this;a=a.trim();0<a.length&&a.split(eJb).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};Qh.Object.defineProperties(Cv.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this.initialClasses=null!=a?a.trim().split(eJb):fJb}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this.rawClass="string"===typeof a?a.trim().split(eJb):a}}});
Cv.\u0275fac=function(a){return new (a||Cv)(z(Av),z(Bv),z(ae),z(ku))};Cv.\u0275dir=sd({type:Cv,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});var gJb=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};Qh.Object.defineProperties(gJb.prototype,{first:{configurable:!0,enumerable:!0,get:function(){return 0===this.index}},last:{configurable:!0,enumerable:!0,get:function(){return this.index===this.count-1}},even:{configurable:!0,enumerable:!0,get:function(){return 0===this.index%2}},odd:{configurable:!0,enumerable:!0,get:function(){return!this.even}}});
var Dv=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};Dv.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var a=this._ngForOf;!this._differ&&a&&(this._differ=this._differs.find(a).create(this.ngForTrackBy))}this._differ&&(a=this._differ.diff(this._ngForOf))&&this._applyChanges(a)};
Dv.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;WIb(a,function(h,k,q){null==h.previousIndex?c.createEmbeddedView(b._template,new gJb(h.item,b._ngForOf,-1,-1),null===q?void 0:q):null==q?c.remove(null===k?void 0:k):null!==k&&(k=c.get(k),c.move(k,q),k.context.$implicit=h.item)});for(var d=0,e=c.length;d<e;d++){var f=c.get(d).context;f.index=d;f.count=e;f.ngForOf=this._ngForOf}XIb(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
Qh.Object.defineProperties(Dv.prototype,{ngForOf:{configurable:!0,enumerable:!0,set:function(a){this._ngForOf=a;this._ngForOfDirty=!0}},ngForTrackBy:{configurable:!0,enumerable:!0,set:function(a){this._trackByFn=a},get:function(){return this._trackByFn}},ngForTemplate:{configurable:!0,enumerable:!0,set:function(a){a&&(this._template=a)}}});Dv.\u0275fac=function(a){return new (a||Dv)(z(wg),z(vg),z(Av))};
Dv.\u0275dir=sd({type:Dv,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});var Ev=function(a,b){this._viewContainer=a;this._context=new hJb;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
Ev.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))};
Qh.Object.defineProperties(Ev.prototype,{ngIf:{configurable:!0,enumerable:!0,set:function(a){this._context.$implicit=this._context.ngIf=a;this._updateView()}},ngIfThen:{configurable:!0,enumerable:!0,set:function(a){Gka("ngIfThen",a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Gka("ngIfElse",a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});Ev.\u0275fac=function(a){return new (a||Ev)(z(wg),z(vg))};
Ev.\u0275dir=sd({type:Ev,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});var hJb=function(){this.ngIf=this.$implicit=null};var iJb=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};iJb.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};iJb.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var Fv=function(){this._defaultViews=[];this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};Fv.prototype._addCase=function(){return this._caseCount++};Fv.prototype._addDefault=function(a){this._defaultViews.push(a)};
Fv.prototype._matchCase=function(a){a=a==this._ngSwitch;this._lastCasesMatched=this._lastCasesMatched||a;this._lastCaseCheckIndex++;this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1);return a};
Fv.prototype._updateDefaultCases=function(a){if(0<this._defaultViews.length&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=l(this._defaultViews),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};Qh.Object.defineProperties(Fv.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;0===this._caseCount&&this._updateDefaultCases(!0)}}});Fv.\u0275fac=function(a){return new (a||Fv)};
Fv.\u0275dir=sd({type:Fv,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});var Gv=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new iJb(a,b)};Gv.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};Gv.\u0275fac=function(a){return new (a||Gv)(z(wg),z(vg),z(Fv,9))};Gv.\u0275dir=sd({type:Gv,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});
var Hv=function(a,b,c){c._addDefault(new iJb(a,b))};Hv.\u0275fac=function(a){return new (a||Hv)(z(wg),z(vg),z(Fv,9))};Hv.\u0275dir=sd({type:Hv,selectors:[["","ngSwitchDefault",""]],standalone:!0});var Iv=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};Iv.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};Iv.prototype._setStyle=function(a,b){var c=l(a.split("."));a=c.next().value;c=c.next().value;var d=-1===a.indexOf("-")?void 0:2;null!=b?this._renderer.setStyle(this._ngEl.nativeElement,a,c?""+b+c:b,d):this._renderer.removeStyle(this._ngEl.nativeElement,a,d)};
Iv.prototype._applyChanges=function(a){var b=this;a.forEachRemovedItem(function(c){return b._setStyle(c.key,null)});a.forEachAddedItem(function(c){return b._setStyle(c.key,c.currentValue)});bJb(a,function(c){return b._setStyle(c.key,c.currentValue)})};Qh.Object.defineProperties(Iv.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});Iv.\u0275fac=function(a){return new (a||Iv)(z(ae),z(Bv),z(ku))};
Iv.\u0275dir=sd({type:Iv,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});var Jv=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};
Jv.prototype.ngOnChanges=function(a){if(a.ngTemplateOutlet||a.ngTemplateOutletInjector)if(a=this._viewContainerRef,this._viewRef&&a.remove(a.indexOf(this._viewRef)),this.ngTemplateOutlet){var b=this.ngTemplateOutletInjector;this._viewRef=a.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext,b?{injector:b}:void 0)}else this._viewRef=null;else this._viewRef&&a.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)};
Jv.\u0275fac=function(a){return new (a||Jv)(z(wg))};Jv.\u0275dir=sd({type:Jv,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Fd]});var jJb=function(){};jJb.prototype.createSubscription=function(a,b){return Hea(function(){return a.subscribe({next:b,error:function(c){throw c;}})})};jJb.prototype.dispose=function(a){Hea(function(){return a.unsubscribe()})};var kJb=function(){};kJb.prototype.createSubscription=function(a,b){return a.then(b,function(c){throw c;})};kJb.prototype.dispose=function(){};var lJb=new kJb,mJb=new jJb,Kv=function(a){this._strategy=this._obj=this._subscription=this._latestValue=null;this._ref=a};g=Kv.prototype;
g.ngOnDestroy=function(){this._subscription&&this._dispose();this._ref=null};g.transform=function(a){return this._obj?a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue:(a&&this._subscribe(a),this._latestValue)};g._subscribe=function(a){var b=this;this._obj=a;this._strategy=this._selectStrategy(a);this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)})};
g._selectStrategy=function(a){if(xe(a))return lJb;if(Lga(a))return mJb;throw Kg();};g._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};g._updateLatestValue=function(a,b){a===this._obj&&(this._latestValue=b,this._ref.markForCheck())};Kv.\u0275fac=function(a){return new (a||Kv)(z(xv,16))};Kv.\u0275pipe=td({name:"async",type:Kv,pure:!1,standalone:!0});var Lv=function(){};Lv.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw Kg();return a.toLowerCase()};Lv.\u0275fac=function(a){return new (a||Lv)};Lv.\u0275pipe=td({name:"lowercase",type:Lv,pure:!0,standalone:!0});
var nJb=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Mv=
function(){};Mv.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw Kg();return a.replace(nJb,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Mv.\u0275fac=function(a){return new (a||Mv)};Mv.\u0275pipe=td({name:"titlecase",type:Mv,pure:!0,standalone:!0});var fla=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Og={},Tka=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Wka={};var oJb=new Ad("DATE_PIPE_DEFAULT_TIMEZONE"),pJb=new Ad("DATE_PIPE_DEFAULT_OPTIONS"),Nv=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};
Nv.prototype.transform=function(a,b,c,d){if(null==a||""===a||a!==a)return null;try{var e,f,h=null!=(f=null!=b?b:null==(e=this.defaultOptions)?void 0:e.dateFormat)?f:"mediumDate",k,q,u,x=null!=(u=null!=(q=null!=c?c:null==(k=this.defaultOptions)?void 0:k.timezone)?q:this.defaultTimezone)?u:void 0;return $ka(a,h,d||this.locale,x)}catch(y){throw Kg();}};Nv.\u0275fac=function(a){return new (a||Nv)(z(Wh,16),z(oJb,24),z(pJb,24))};Nv.\u0275pipe=td({name:"date",type:Nv,pure:!0,standalone:!0});var Ov=function(){};Ov.prototype.transform=function(a){return JSON.stringify(a,null,2)};Ov.\u0275fac=function(a){return new (a||Ov)};Ov.\u0275pipe=td({name:"json",type:Ov,pure:!1,standalone:!0});var Pv=function(a){this.differs=a;this.keyValues=[];this.compareFn=hla};Pv.prototype.transform=function(a,b){var c=this;b=void 0===b?hla:b;if(!a||!(a instanceof Map)&&"object"!==typeof a)return null;this.differ||(this.differ=this.differs.find(a).create());a=this.differ.diff(a);var d=b!==this.compareFn;a&&(this.keyValues=[],a.forEachItem(function(e){c.keyValues.push({key:e.key,value:e.currentValue})}));if(a||d)this.keyValues.sort(b),this.compareFn=b;return this.keyValues};
Pv.\u0275fac=function(a){return new (a||Pv)(z(Bv,16))};Pv.\u0275pipe=td({name:"keyvalue",type:Pv,pure:!1,standalone:!0});var kla=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var Qv=function(a){this._locale=a};
Qv.prototype.transform=function(a,b,c){if(null==a||""===a||a!==a)return null;c=c||this._locale;try{if("string"!==typeof a||isNaN(Number(a)-parseFloat(a))){if("number"!==typeof a)throw Error("Va`"+a);var d=a}else d=Number(a);a=d;var e=ye(c)[14][0],f=Jg(c,5);f=void 0===f?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var h=e.split(";"),k=h[0],q=h[1],u=-1!==k.indexOf(".")?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],x=u[0],y=u[1]||"";d.posPre=x.substring(0,x.indexOf("#"));for(e=0;e<y.length;e++){var E=y.charAt(e);"0"===E?d.minFrac=d.maxFrac=e+1:"#"===E?d.maxFrac=e+1:d.posSuf+=E}var H=x.split(",");d.gSize=H[1]?H[1].length:0;d.lgSize=H[2]||H[1]?(H[2]||H[1]).length:0;if(q){var J=k.length-d.posPre.length-d.posSuf.length,O=q.indexOf("#");d.negPre=q.substring(0,O).replace(/'/g,"");d.negSuf=q.slice(O+J).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return nla(a,d,c,b)}catch(R){throw Kg();}};
Qv.\u0275fac=function(a){return new (a||Qv)(z(Wh,16))};Qv.\u0275pipe=td({name:"number",type:Qv,pure:!0,standalone:!0});var Rv=function(){};Rv.prototype.transform=function(a,b,c){if(null==a)return null;if(!this.supports(a))throw Kg();return a.slice(b,c)};Rv.prototype.supports=function(a){return"string"===typeof a||Array.isArray(a)};Rv.\u0275fac=function(a){return new (a||Rv)};Rv.\u0275pipe=td({name:"slice",type:Rv,pure:!1,standalone:!0});var Sv=function(){};Sv.\u0275fac=function(a){return new (a||Sv)};Sv.\u0275mod=qd({type:Sv});Sv.\u0275inj=ad({});var Tv=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};Tv.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};Tv.prototype.registerOnTouched=function(a){this.onTouched=a};Tv.prototype.registerOnChange=function(a){this.onChange=a};Tv.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};Tv.\u0275fac=function(a){return new (a||Tv)(z(ku),z(ae))};Tv.\u0275dir=sd({type:Tv});
var Ug=function(){Tv.apply(this,arguments)};W(Ug,Tv);Ug.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(Ug)))(b||Ug)}}();Ug.\u0275dir=sd({type:Ug,features:[Jf]});var Uv=new Ad("NgValueAccessor");var qJb=function(a){return a.src};new Ad("ImageLoader",{providedIn:"root",factory:function(){return qJb}});var Oh=new Ad("DocumentToken");new Ad("PRECONNECT_CHECK_BLOCKLIST");new Ad("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:function(){return new Set}});var rJb={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]};new Ad("ImageConfig",{providedIn:"root",factory:function(){return rJb}});var sJb=null,tJb=function(){};var Vv=function(){};Vv.prototype.historyGo=function(){throw Error("Wa");};Vv.\u0275fac=function(a){return new (a||Vv)};Vv.\u0275prov=$c({token:Vv,factory:function(){return jd(Wv)},providedIn:"platform"});var uJb=new Ad("Location Initialized"),Wv=function(){this._doc=jd(Oh);this._location=window.location;this._history=window.history};W(Wv,Vv);
Wv.prototype.onPopState=function(a){var b=vJb(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};var wJb=function(a,b){var c=vJb(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=Wv.prototype;g.pushState=function(a,b,c){this._history.pushState(a,b,c)};g.replaceState=function(a,b,c){this._history.replaceState(a,b,c)};g.forward=function(){this._history.forward()};
g.back=function(){this._history.back()};g.historyGo=function(a){this._history.go(void 0===a?0:a)};g.getState=function(){return this._history.state};
Qh.Object.defineProperties(Wv.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return this._location.href}},protocol:{configurable:!0,enumerable:!0,get:function(){return this._location.protocol}},hostname:{configurable:!0,enumerable:!0,get:function(){return this._location.hostname}},port:{configurable:!0,enumerable:!0,get:function(){return this._location.port}},pathname:{configurable:!0,enumerable:!0,get:function(){return this._location.pathname},set:function(a){this._location.pathname=
a}},search:{configurable:!0,enumerable:!0,get:function(){return this._location.search}},hash:{configurable:!0,enumerable:!0,get:function(){return this._location.hash}}});Wv.\u0275fac=function(a){return new (a||Wv)};Wv.\u0275prov=$c({token:Wv,factory:function(){return new Wv},providedIn:"platform"});var Xv=function(){};Xv.prototype.historyGo=function(){throw Error("Wa");};Xv.\u0275fac=function(a){return new (a||Xv)};Xv.\u0275prov=$c({token:Xv,factory:function(){return jd(Yv)},providedIn:"root"});var xJb=new Ad("appBaseHref"),Yv=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=null!=(e=null!=(d=null!=b?b:sJb.getBaseHref())?d:null==(c=jd(Oh).location)?void 0:c.origin)?e:""};W(Yv,Xv);g=Yv.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),wJb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return ola(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+Qg(this._platformLocation.search),c=this._platformLocation.hash;return c&&(void 0===a?0:a)?b+c:b};g.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+Qg(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+Qg(d)))};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};Yv.\u0275fac=function(a){return new (a||Yv)(n(Vv),n(xJb,8))};Yv.\u0275prov=$c({token:Yv,factory:Yv.\u0275fac,providedIn:"root"});var Zv=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];null!=b&&(this._baseHref=b)};W(Zv,Xv);g=Zv.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),wJb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};
g.path=function(){var a=this._platformLocation.hash;null==a&&(a="#");return 0<a.length?a.substring(1):a};g.prepareExternalUrl=function(a){a=ola(this._baseHref,a);return 0<a.length?"#"+a:a};g.pushState=function(a,b,c,d){c=this.prepareExternalUrl(c+Qg(d));0==c.length&&(c=this._platformLocation.pathname);this._platformLocation.pushState(a,b,c)};
g.replaceState=function(a,b,c,d){c=this.prepareExternalUrl(c+Qg(d));0==c.length&&(c=this._platformLocation.pathname);this._platformLocation.replaceState(a,b,c)};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};Zv.\u0275fac=function(a){return new (a||Zv)(n(Vv),n(xJb,8))};
Zv.\u0275prov=$c({token:Zv,factory:Zv.\u0275fac});var $v=function(a){var b=this;this._subject=new Yu;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._basePath=qla(pla(a.replace(/\/index.html$/,"")));this._locationStrategy.onPopState(function(c){b._subject.emit({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};g=$v.prototype;g.ngOnDestroy=function(){var a;null==(a=this._urlChangeSubscription)||a.unsubscribe();this._urlChangeListeners=[]};
g.path=function(a){return this.normalize(this._locationStrategy.path(void 0===a?!1:a))};g.getState=function(){return this._locationStrategy.getState()};g.normalize=function(a){var b=this._basePath;a=a.replace(/\/index.html$/,"");b&&a.startsWith(b)?(b=a.substring(b.length),b=""===b||["/",";","?","#"].includes(b[0])?b:a):b=a;return pla(b)};g.prepareExternalUrl=function(a){a&&"/"!==a[0]&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
g.go=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+Qg(b)),c)};g.replaceState=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+Qg(b)),c)};g.forward=function(){this._locationStrategy.forward()};g.back=function(){this._locationStrategy.back()};
g.historyGo=function(a){var b,c;null==(c=(b=this._locationStrategy).historyGo)||c.call(b,void 0===a?0:a)};g._notifyUrlChangeListeners=function(a,b){a=void 0===a?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};g.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b,complete:c})};$v.\u0275fac=function(a){return new (a||$v)(n(Xv))};$v.\u0275prov=$c({token:$v,factory:function(){return new $v(n(Xv))},providedIn:"root"});new nu;var yJb=function(){};yJb.\u0275prov=$c({token:yJb,providedIn:"root",factory:function(){return new zJb}});var zJb=function(){var a=n(Oh),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}};zJb.prototype.setOffset=function(a){Array.isArray(a)?this.offset=function(){return a}:this.offset=a};zJb.prototype.getScrollPosition=function(){return AJb(this)?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]};
var BJb=function(a,b){AJb(a)&&a.window.scrollTo(b[0],b[1])},AJb=function(a){try{return!!a.window&&!!a.window.scrollTo&&"pageXOffset"in a.window}catch(b){return!1}};var CJb=function(){};var DJb={provide:Uv,useExisting:fd(function(){return Tg}),multi:!0},EJb=new Ad("CompositionEventMode"),Tg=function(a,b,c){Tv.call(this,a,b);this._compositionMode=c;this._composing=!1;null==this._compositionMode&&(this._compositionMode=!/android (\d+)/.test((sJb?window.navigator.userAgent:"").toLowerCase()))};W(Tg,Tv);Tg.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};Tg.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Tg.prototype._compositionStart=function(){this._composing=!0};Tg.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Tg.\u0275fac=function(a){return new (a||Tg)(z(ku),z(ae),z(EJb,8))};
Tg.\u0275dir=sd({type:Tg,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(a,b){a&1&&L("input",function(c){return b._handleInput(c.target.value)})("blur",function(){return b.onTouched()})("compositionstart",function(){return b._compositionStart()})("compositionend",
function(c){return b._compositionEnd(c.target.value)})},features:[lg([DJb]),Jf]});var aw=new Ad("NgValidators"),bw=new Ad("NgAsyncValidators"),cw=function(a){return tla(a)};var dw=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=dw.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Dla(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Fla(this._rawAsyncValidators)};g._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
g._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};g.reset=function(a){this.control&&this.control.reset(a)};g.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};g.getError=function(a,b){return this.control?this.control.getError(a,b):null};
Qh.Object.defineProperties(dw.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.value:null}},valid:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.valid:null}},invalid:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.invalid:null}},pending:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.pending:null}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.control?
this.control.disabled:null}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.enabled:null}},errors:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.errors:null}},pristine:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.pristine:null}},dirty:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.dirty:null}},touched:{configurable:!0,enumerable:!0,get:function(){return this.control?
this.control.touched:null}},status:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.status:null}},untouched:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.untouched:null}},statusChanges:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.statusChanges:null}},valueChanges:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.valueChanges:null}},path:{configurable:!0,enumerable:!0,get:function(){return null}},
validator:{configurable:!0,enumerable:!0,get:function(){return this._composedValidatorFn||null}},asyncValidator:{configurable:!0,enumerable:!0,get:function(){return this._composedAsyncValidatorFn||null}}});var ew=function(){dw.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};W(ew,dw);var fw=function(){dw.apply(this,arguments)};W(fw,dw);Qh.Object.defineProperties(fw.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});var FJb=function(a){this._cd=a};
Qh.Object.defineProperties(FJb.prototype,{isTouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.touched)}},isUntouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.untouched)}},isPristine:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.pristine)}},isDirty:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==
(a=this._cd)?0:null==(b=a.control)?0:b.dirty)}},isValid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.valid)}},isInvalid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.invalid)}},isPending:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.pending)}},isSubmitted:{configurable:!0,enumerable:!0,get:function(){var a;return!(null==
(a=this._cd)||!a.submitted)}}});Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},{"[class.ng-submitted]":"isSubmitted"});var hw=function(a){this._cd=a};W(hw,FJb);hw.\u0275fac=function(a){return new (a||hw)(z(ew,2))};
hw.\u0275dir=sd({type:hw,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&Xf("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)},features:[Jf]});var iw=function(a){this._cd=a};W(iw,FJb);iw.\u0275fac=function(a){return new (a||iw)(z(fw,10))};
iw.\u0275dir=sd({type:iw,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&Xf("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)("ng-submitted",b.isSubmitted)},features:[Jf]});var jw=new Ad("CallSetDisabledState",{providedIn:"root",factory:function(){return"whenDisabledForLegacyCode"}});var kw=function(a,b){this._pendingTouched=this._hasOwnPendingAsyncValidator=this._pendingDirty=!1;this._onCollectionChange=function(){};this._parent=null;this.pristine=!0;this.touched=!1;this._onDisabledChange=[];this._assignValidators(a);this._assignAsyncValidators(b)},Qla=function(a,b){a._assignValidators(b)},Rla=function(a,b){a._assignAsyncValidators(b)},GJb=function(a){a=a._rawValidators;return Array.isArray(a)?a.includes(cw):a===cw},Tla=function(a,b){b=void 0===b?{}:b;a.touched=!0;a._parent&&
!b.onlySelf&&Tla(a._parent,b)},HJb=function(a,b){b=void 0===b?{}:b;a.touched=!1;a._pendingTouched=!1;a._forEachChild(function(c){HJb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b)},Ula=function(a,b){b=void 0===b?{}:b;a.pristine=!1;a._parent&&!b.onlySelf&&Ula(a._parent,b)},IJb=function(a,b){b=void 0===b?{}:b;a.pristine=!0;a._pendingDirty=!1;a._forEachChild(function(c){IJb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b)};g=kw.prototype;
g.disable=function(a){a=void 0===a?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="DISABLED";this.errors=null;this._forEachChild(function(c){c.disable(Object.assign({},a,{onlySelf:!0}))});this._updateValue();!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status));this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}));this._onDisabledChange.forEach(function(c){return c(!0)})};
g.enable=function(a){a=void 0===a?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="VALID";this._forEachChild(function(c){c.enable(Object.assign({},a,{onlySelf:!0}))});Sg(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}));this._onDisabledChange.forEach(function(c){return c(!1)})};g._updateAncestors=function(a){this._parent&&!a.onlySelf&&(Sg(this._parent,a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())};
g.setParent=function(a){this._parent=a};g.getRawValue=function(){return this.value};var Sg=function(a,b){b=void 0===b?{}:b;a._setInitialStatus();a._updateValue();a.enabled&&(a._cancelExistingSubscription(),a.errors=a._runValidator(),a.status=a._calculateStatus(),"VALID"!==a.status&&"PENDING"!==a.status||a._runAsyncValidator(b.emitEvent));!1!==b.emitEvent&&(a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&Sg(a._parent,b)};g=kw.prototype;
g._updateTreeValidity=function(a){a=void 0===a?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Sg(this,{onlySelf:!0,emitEvent:a.emitEvent})};g._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};g._runValidator=function(){return this.validator?this.validator(this):null};
g._runAsyncValidator=function(a){var b=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator=!0,this._asyncValidationSubscription=yla(this.asyncValidator(this)).subscribe(function(c){b._hasOwnPendingAsyncValidator=!1;b.setErrors(c,{emitEvent:a})}))};g._cancelExistingSubscription=function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)};
g.setErrors=function(a,b){b=void 0===b?{}:b;this.errors=a;this._updateControlsErrors(!1!==b.emitEvent)};g.get=function(a){if(null==a)return null;Array.isArray(a)||(a=a.split("."));return 0===a.length?null:a.reduce(function(b,c){return b&&b._find(c)},this)};g.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};g.hasError=function(a,b){return!!this.getError(a,b)};
g._updateControlsErrors=function(a){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);this._parent&&this._parent._updateControlsErrors(a)};g._initObservables=function(){this.valueChanges=new Yu;this.statusChanges=new Yu};g._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};
g._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};g._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};g._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};g._updatePristine=function(a){a=void 0===a?{}:a;this.pristine=!this._anyControlsDirty();this._parent&&!a.onlySelf&&this._parent._updatePristine(a)};
g._updateTouched=function(a){a=void 0===a?{}:a;this.touched=this._anyControlsTouched();this._parent&&!a.onlySelf&&this._parent._updateTouched(a)};g._registerOnCollectionChange=function(a){this._onCollectionChange=a};g._setUpdateStrategy=function(a){Vg(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)};g._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};g._find=function(){return null};
g._assignValidators=function(a){a=this._rawValidators=Array.isArray(a)?a.slice():a;this._composedValidatorFn=Array.isArray(a)?Dla(a):a||null};g._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?Fla(a):a||null};
Qh.Object.defineProperties(kw.prototype,{validator:{configurable:!0,enumerable:!0,get:function(){return this._composedValidatorFn},set:function(a){this._rawValidators=this._composedValidatorFn=a}},asyncValidator:{configurable:!0,enumerable:!0,get:function(){return this._composedAsyncValidatorFn},set:function(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}},parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},valid:{configurable:!0,enumerable:!0,get:function(){return"VALID"===
this.status}},invalid:{configurable:!0,enumerable:!0,get:function(){return"INVALID"===this.status}},pending:{configurable:!0,enumerable:!0,get:function(){return"PENDING"==this.status}},disabled:{configurable:!0,enumerable:!0,get:function(){return"DISABLED"===this.status}},enabled:{configurable:!0,enumerable:!0,get:function(){return"DISABLED"!==this.status}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},untouched:{configurable:!0,enumerable:!0,get:function(){return!this.touched}},
updateOn:{configurable:!0,enumerable:!0,get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},root:{configurable:!0,enumerable:!0,get:function(){for(var a=this;a._parent;)a=a._parent;return a}}});var lw=function(a,b,c){var d=kw.call,e=Yla(b);c=(Vg(b)?b.asyncValidators:c)||null;d.call(kw,this,e,c);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Sg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};W(lw,kw);var JJb=function(a,b,c){if(a.controls[b])return a.controls[b];a.controls[b]=c;c.setParent(a);c._registerOnCollectionChange(a._onCollectionChange);return c};g=lw.prototype;
g.addControl=function(a){var b=void 0===b?{}:b;JJb(this,a);Sg(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.removeControl=function(a){var b=void 0===b?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];Sg(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
g.setValue=function(a,b){var c=this;b=void 0===b?{}:b;Zla(this,a);Object.keys(a).forEach(function(d){var e=c.controls;if(!Object.keys(e).length)throw new dd(1E3,"");if(!e[d])throw new dd(1001,"");c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});Sg(this,b)};g.reset=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;this._forEachChild(function(c,d){c.reset(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});this._updatePristine(b);this._updateTouched(b);Sg(this,b)};
g.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};g._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&Sg(this,{onlySelf:!0});return a};g._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};g._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};
g._updateValue=function(){this.value=this._reduceValue()};g._anyControls=function(a){for(var b=l(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};g._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};g._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};
g._allControlsDisabled=function(){for(var a=l(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return 0<Object.keys(this.controls).length||this.disabled};g._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};var KJb={provide:fw,useExisting:fd(function(){return mw})},LJb=Promise.resolve(),mw=function(a,b,c){fw.call(this);this.callSetDisabledState=c;this.submitted=!1;this._directives=new Set;this.ngSubmit=new Yu;this.form=new lw({},Dla(a),Fla(b))};W(mw,fw);g=mw.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};
g.addControl=function(a){var b=this;LJb.then(function(){var c=b._findContainer(a.path);a.control=JJb(c,a.name,a.control);Rg(a.control,a,b.callSetDisabledState);Sg(a.control,{emitEvent:!1});b._directives.add(a)})};g.removeControl=function(a){var b=this;LJb.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};g.updateModel=function(a,b){var c=this;LJb.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};
g.onSubmit=function(a){this.submitted=!0;Wla(this.form,this._directives);this.ngSubmit.emit(a);var b;return"dialog"===(null==a?void 0:null==(b=a.target)?void 0:b.method)};g.onReset=function(){this.resetForm()};g.resetForm=function(){this.form.reset(void 0);this.submitted=!1};g._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)};g._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};
Qh.Object.defineProperties(mw.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}},controls:{configurable:!0,enumerable:!0,get:function(){return this.form.controls}}});mw.\u0275fac=function(a){return new (a||mw)(z(aw,10),z(bw,10),z(jw,8))};
mw.\u0275dir=sd({type:mw,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&L("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lg([KJb]),Jf]});var nw=function(a,b,c){a=void 0===a?null:a;var d=kw.call,e=Yla(b);c=(Vg(b)?b.asyncValidators:c)||null;d.call(kw,this,e,c);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Sg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Vg(b)&&(b.nonNullable||b.initialValueIsDefault)&&($la(a)?this.defaultValue=a.value:this.defaultValue=a)};W(nw,kw);g=nw.prototype;
g.setValue=function(a,b){var c=this;b=void 0===b?{}:b;this.value=this._pendingValue=a;this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(function(d){return d(c.value,!1!==b.emitViewToModelChange)});Sg(this,b)};g.reset=function(a,b){a=void 0===a?this.defaultValue:a;b=void 0===b?{}:b;this._applyFormState(a);IJb(this,b);HJb(this,b);this.setValue(this.value,b);this._pendingChange=!1};g._updateValue=function(){};g._anyControls=function(){return!1};g._allControlsDisabled=function(){return this.disabled};
g.registerOnChange=function(a){this._onChange.push(a)};g._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);-1<a&&b.splice(a,1)};g._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);-1<a&&b.splice(a,1)};g._forEachChild=function(){};
g._syncPendingControls=function(){return"submit"===this.updateOn&&(this._pendingDirty&&Ula(this),this._pendingTouched&&Tla(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){$la(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a};var MJb={provide:ew,useExisting:fd(function(){return ow})},NJb=Promise.resolve(),ow=function(a,b,c,d,e,f){ew.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new nw;this._registered=!1;this.name="";this.update=new Yu;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Xla(d)};W(ow,ew);g=ow.prototype;
g.ngOnChanges=function(a){this._checkForErrors();if(!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var b=a.name.previousValue;this.formDirective.removeControl({name:b,path:this._getPath(b)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a);Vla(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};g._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)};g._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
g._setUpStandalone=function(){Rg(this.control,this,this.callSetDisabledState);Sg(this.control,{emitEvent:!1})};g._checkForErrors=function(){this._checkName()};g._checkParentType=function(){};g._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};g._updateValue=function(a){var b=this;NJb.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;null==(c=b._changeDetectorRef)||c.markForCheck()})};
g._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=0!==a&&Gg(a);NJb.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;null==(d=b._changeDetectorRef)||d.markForCheck()})};g._getPath=function(a){return this._parent?Hla(a,this._parent):[a]};
Qh.Object.defineProperties(ow.prototype,{path:{configurable:!0,enumerable:!0,get:function(){return this._getPath(this.name)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});ow.\u0275fac=function(a){return new (a||ow)(z(fw,9),z(aw,10),z(bw,10),z(Uv,10),z(xv,8),z(jw,8))};
ow.\u0275dir=sd({type:ow,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[lg([MJb]),Jf,Fd]});var pw=function(){};pw.\u0275fac=function(a){return new (a||pw)};pw.\u0275dir=sd({type:pw,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});var OJb={provide:Uv,useExisting:fd(function(){return qw}),multi:!0},qw=function(){Ug.apply(this,arguments)};W(qw,Ug);qw.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};qw.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:parseFloat(b))}};qw.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(qw)))(b||qw)}}();
qw.\u0275dir=sd({type:qw,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&L("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},features:[lg([OJb]),Jf]});var PJb={provide:Uv,useExisting:fd(function(){return rw}),multi:!0},sw=function(){};sw.\u0275fac=function(a){return new (a||sw)};sw.\u0275mod=qd({type:sw});sw.\u0275inj=ad({});var tw=function(){this._accessors=[]};tw.prototype.add=function(a,b){this._accessors.push([a,b])};tw.prototype.remove=function(a){for(var b=this._accessors.length-1;0<=b;--b)if(this._accessors[b][1]===a){this._accessors.splice(b,1);break}};
tw.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};tw.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};tw.\u0275fac=function(a){return new (a||tw)};tw.\u0275prov=$c({token:tw,factory:tw.\u0275fac,providedIn:sw});
var rw=function(a,b,c,d){Ug.call(this,a,b);this._registry=c;this._injector=d;this.setDisabledStateFired=!1;this.onChange=function(){};var e;this.callSetDisabledState=null!=(e=jd(jw,{optional:!0}))?e:"whenDisabledForLegacyCode"};W(rw,Ug);g=rw.prototype;g.ngOnInit=function(){this._control=this._injector.get(ew);this._checkName();this._registry.add(this._control,this)};g.ngOnDestroy=function(){this._registry.remove(this)};
g.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};g.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};g.setDisabledState=function(a){(this.setDisabledStateFired||a||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",a);this.setDisabledStateFired=!0};g._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};
rw.\u0275fac=function(a){return new (a||rw)(z(ku),z(ae),z(tw),z(eu))};rw.\u0275dir=sd({type:rw,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&L("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[lg([PJb]),Jf]});var QJb=new Ad("NgModelWithFormControlWarning"),RJb={provide:ew,useExisting:fd(function(){return uw})},uw=function(a,b,c,d,e){ew.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new Yu;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=Xla(c)};W(uw,ew);
uw.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Ola(b,this);Rg(this.form,this,this.callSetDisabledState);Sg(this.form,{emitEvent:!1})}Vla(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};uw.prototype.ngOnDestroy=function(){this.form&&Ola(this.form,this)};uw.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};uw.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
Qh.Object.defineProperties(uw.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return[]}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}}});uw.\u0275fac=function(a){return new (a||uw)(z(aw,10),z(bw,10),z(Uv,10),z(QJb,8),z(jw,8))};
uw.\u0275dir=sd({type:uw,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[lg([RJb]),Jf,Fd]});var SJb={provide:fw,useExisting:fd(function(){return vw})},vw=function(a,b,c){fw.call(this);var d=this;this.callSetDisabledState=c;this.submitted=!1;this._onCollectionChange=function(){return d._updateDomValue()};this.directives=[];this.form=null;this.ngSubmit=new Yu;this._setValidators(a);this._setAsyncValidators(b)};W(vw,fw);g=vw.prototype;g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};
g.ngOnDestroy=function(){this.form&&(Nla(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);Rg(b,a,this.callSetDisabledState);Sg(b,{emitEvent:!1});this.directives.push(a);return b};g.removeControl=function(a){Ola(a.control||null,a);var b=this.directives;a=b.indexOf(a);-1<a&&b.splice(a,1)};g.updateModel=function(a,b){this.form.get(a.path).setValue(b)};
g.onSubmit=function(a){this.submitted=!0;Wla(this.form,this.directives);this.ngSubmit.emit(a);var b;return"dialog"===(null==a?void 0:null==(b=a.target)?void 0:b.method)};g.onReset=function(){this.resetForm()};g.resetForm=function(){this.form.reset(void 0);this.submitted=!1};g._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(Ola(c||null,b),d instanceof nw&&(Rg(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
g._setUpFormContainer=function(a){var b=this.form.get(a.path);Ila(b,a);Sg(b,{emitEvent:!1})};g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Nla(b,a)&&Sg(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){Ila(this.form,this);this._oldForm&&Nla(this._oldForm,this)};g._checkFormPresent=function(){};
Qh.Object.defineProperties(vw.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}}});vw.\u0275fac=function(a){return new (a||vw)(z(aw,10),z(bw,10),z(jw,8))};
vw.\u0275dir=sd({type:vw,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&L("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lg([SJb]),Jf,Fd]});var TJb={provide:ew,useExisting:fd(function(){return ww})},ww=function(a,b,c,d,e){ew.call(this);this._ngModelWarningConfig=e;this._added=!1;this.name=null;this.update=new Yu;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Xla(d)};W(ww,ew);g=ww.prototype;g.ngOnChanges=function(a){this._added||this._setUpControl();Vla(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._checkParentType=function(){};g._setUpControl=function(){this.control=this.formDirective.addControl(this);this._added=!0};
Qh.Object.defineProperties(ww.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Hla(null==this.name?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});ww.\u0275fac=function(a){return new (a||ww)(z(fw,13),z(aw,10),z(bw,10),z(Uv,10),z(QJb,8))};
ww.\u0275dir=sd({type:ww,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[lg([TJb]),Jf,Fd]});var xw=function(){this._validator=vla};xw.prototype.ngOnChanges=function(a){this.inputName in a&&(a=this.normalizeInput(a[this.inputName].currentValue),this._validator=(this._enabled=this.enabled(a))?this.createValidator(a):vla,this._onChange&&this._onChange())};xw.prototype.validate=function(a){return this._validator(a)};xw.prototype.registerOnValidatorChange=function(a){this._onChange=a};xw.prototype.enabled=function(a){return null!=a};xw.\u0275fac=function(a){return new (a||xw)};
xw.\u0275dir=sd({type:xw,features:[Fd]});var UJb={provide:aw,useExisting:fd(function(){return yw}),multi:!0},yw=function(){xw.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return"number"===typeof a?a:parseFloat(a)};this.createValidator=function(a){return sla(a)}};W(yw,xw);yw.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(yw)))(b||yw)}}();
yw.\u0275dir=sd({type:yw,selectors:["input type number min  formControlName ".split(" "),"input type number min  formControl ".split(" "),"input type number min  ngModel ".split(" ")],hostVars:1,hostBindings:function(a,b){a&2&&Nf("min",b._enabled?b.min:null)},inputs:{min:"min"},features:[lg([UJb]),Jf]});var VJb={provide:aw,useExisting:fd(function(){return zw}),multi:!0},zw=function(){xw.apply(this,arguments);this.inputName="required";this.normalizeInput=Gg;this.createValidator=function(){return tla}};
W(zw,xw);zw.prototype.enabled=function(a){return a};zw.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(zw)))(b||zw)}}();zw.\u0275dir=sd({type:zw,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&Nf("required",b._enabled?"":null)},inputs:{required:"required"},features:[lg([VJb]),Jf]});
var WJb={provide:aw,useExisting:fd(function(){return Aw}),multi:!0},Aw=function(){xw.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return"number"===typeof a?a:parseInt(a,10)};this.createValidator=function(a){return ula(a)}};W(Aw,xw);Aw.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(Aw)))(b||Aw)}}();
Aw.\u0275dir=sd({type:Aw,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Nf("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},features:[lg([WJb]),Jf]});var XJb={provide:aw,useExisting:fd(function(){return Bw}),multi:!0},Bw=function(){xw.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return wla(a)}};
W(Bw,xw);Bw.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(Bw)))(b||Bw)}}();Bw.\u0275dir=sd({type:Bw,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Nf("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},features:[lg([XJb]),Jf]});var Cw=function(){};Cw.\u0275fac=function(a){return new (a||Cw)};Cw.\u0275mod=qd({type:Cw});Cw.\u0275inj=ad({imports:[sw]});var Dw=function(){};Dw.\u0275fac=function(a){return new (a||Dw)};Dw.\u0275mod=qd({type:Dw});Dw.\u0275inj=ad({imports:[Cw]});var Ew=function(){};Ew.\u0275fac=function(a){return new (a||Ew)};Ew.\u0275mod=qd({type:Ew});Ew.\u0275inj=ad({imports:[Cw]});new nu;var ama,bma="color button checkbox date datetime-local email file hidden image month number password radio range reset search submit tel text time url week".split(" ");var Wg;var fma,Yg;var hma;var YJb;try{YJb="undefined"!==typeof Intl&&Intl.v8BreakIterator}catch(a){YJb=!1}
var Fw=function(a){this.EDGE=(this.isBrowser=(this._platformId=a)?"browser"===this._platformId:"object"===typeof document&&!!document)&&/(edge)/i.test(navigator.userAgent);this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);this.BLINK=this.isBrowser&&!(!window.chrome&&!YJb)&&"undefined"!==typeof CSS&&!this.EDGE&&!this.TRIDENT;this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&
!("MSStream"in window);this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};Fw.\u0275fac=function(a){return new (a||Fw)(n(hu))};Fw.\u0275prov=$c({token:Fw,factory:Fw.\u0275fac,providedIn:"root"});var Gw=function(a){this._platform=a};Gw.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};Gw.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||"function"===typeof a.getClientRects&&a.getClientRects().length)&&"visible"===getComputedStyle(a).visibility};
var ZJb=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(h){c=null}if(c&&(-1===lma(c)||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=lma(b);if(b.hasAttribute("contenteditable"))a=-1!==d;else{var e;if(!(e="iframe"===c||"object"===c)&&(e=a._platform.WEBKIT&&a._platform.IOS)){e=b.nodeName.toLowerCase();var f="input"===e&&b.type;e=!("text"===f||"password"===f||"select"===e||"textarea"===e)}a=e?!1:"audio"===
c?b.hasAttribute("controls")?-1!==d:!1:"video"===c?-1===d?!1:null!==d?!0:a._platform.FIREFOX||b.hasAttribute("controls"):0<=b.tabIndex}return a};
Gw.prototype.isFocusable=function(a,b){if("input"==a.nodeName.toLowerCase()&&"hidden"==a.type)var c=!1;else c=a.nodeName.toLowerCase(),c="input"===c||"select"===c||"button"===c||"textarea"===c||"a"==a.nodeName.toLowerCase()&&a.hasAttribute("href")||a.hasAttribute("contenteditable")||kma(a);return c&&!this.isDisabled(a)&&((null==b?void 0:b.ignoreVisibility)||this.isVisible(a))};Gw.\u0275fac=function(a){return new (a||Gw)(n(Fw))};Gw.\u0275prov=$c({token:Gw,factory:Gw.\u0275fac,providedIn:"root"});var Jw=function(a,b,c,d,e){var f=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._hasAttached=!1;this.startAnchorListener=function(){return $Jb(f)};this.endAnchorListener=function(){return Hw(f)};this._enabled=!0;(void 0===e?0:e)||Iw(this)};
Jw.prototype.destroy=function(){var a=this._startAnchor,b=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove());b&&(b.removeEventListener("focus",this.endAnchorListener),b.remove());this._startAnchor=this._endAnchor=null;this._hasAttached=!1};
var Iw=function(a){a._hasAttached||(a._ngZone.runOutsideAngular(function(){a._startAnchor||(a._startAnchor=a._createAnchor(),a._startAnchor.addEventListener("focus",a.startAnchorListener));a._endAnchor||(a._endAnchor=a._createAnchor(),a._endAnchor.addEventListener("focus",a.endAnchorListener))}),a._element.parentNode&&(a._element.parentNode.insertBefore(a._startAnchor,a._element),a._element.parentNode.insertBefore(a._endAnchor,a._element.nextSibling),a._hasAttached=!0))},aKb=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})};
Jw.prototype._getRegionBoundary=function(a){var b=this._element.querySelectorAll("[cdk-focus-region-"+a+"], [cdkFocusRegion"+(a+"], [cdk-focus-")+(a+"]"));return"start"==a?b.length?b[0]:this._getFirstTabbableElement(this._element):b.length?b[b.length-1]:this._getLastTabbableElement(this._element)};
Jw.prototype.focusInitialElement=function(){var a=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(a){if(!this._checker.isFocusable(a))return a=this._getFirstTabbableElement(a),null==a||a.focus(void 0),!!a;a.focus(void 0);return!0}return Hw(this)};var Hw=function(a){(a=a._getRegionBoundary("start"))&&a.focus(void 0);return!!a},$Jb=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=Jw.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&ZJb(this._checker,a))return a;a=a.children;for(var b=0;b<a.length;b++){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(a[b]):null;if(c)return c}return null};g._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&ZJb(this._checker,a))return a;a=a.children;for(var b=a.length-1;0<=b;b--){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(a[b]):null;if(c)return c}return null};
g._createAnchor=function(){var a=this._document.createElement("div");this._toggleAnchorTabIndex(this._enabled,a);a.classList.add("cdk-visually-hidden");a.classList.add("cdk-focus-trap-anchor");a.setAttribute("aria-hidden","true");return a};g._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var bKb=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
Jw.prototype._executeOnStable=function(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe(nf()).subscribe(a)};Qh.Object.defineProperties(Jw.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled=a;this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}}});var Kw=function(a,b,c){this._checker=a;this._ngZone=b;this._document=c};
Kw.prototype.create=function(a,b){return new Jw(a,this._checker,this._ngZone,this._document,void 0===b?!1:b)};Kw.\u0275fac=function(a){return new (a||Kw)(n(Gw),n(Df),n(Oh))};Kw.\u0275prov=$c({token:Kw,factory:Kw.\u0275fac,providedIn:"root"});var Lw=function(a,b){this._elementRef=a;this._focusTrapFactory=b;this._previouslyFocusedElement=null;this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)};g=Lw.prototype;
g.ngOnDestroy=function(){this.focusTrap.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){Iw(this.focusTrap);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap.hasAttached()||Iw(this.focusTrap)};g.ngOnChanges=function(a){(a=a.autoCapture)&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()};
g._captureFocus=function(){this._previouslyFocusedElement=Zg();aKb(this.focusTrap)};Qh.Object.defineProperties(Lw.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this.focusTrap.enabled},set:function(a){this.focusTrap.enabled=ah(a)}},autoCapture:{configurable:!0,enumerable:!0,get:function(){return this._autoCapture},set:function(a){this._autoCapture=ah(a)}}});Lw.\u0275fac=function(a){return new (a||Lw)(z(ae),z(Kw),z(Oh))};
Lw.\u0275dir=sd({type:Lw,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Fd]});var cKb=new Ad("cdk-input-modality-detector-options"),dKb={ignoreKeys:[18,17,224,91,16]},Mw=Xg({passive:!0,capture:!0}),Nw=function(a,b,c,d){var e=this;this._platform=a;this._mostRecentTarget=null;this._modality=new B.BehaviorSubject(null);this._lastTouchMs=0;this._onKeydown=function(f){var h,k;(null==(h=e._options)?0:null==(k=h.ignoreKeys)?0:k.some(function(q){return q===f.keyCode}))||(e._modality.next("keyboard"),e._mostRecentTarget=$g(f))};this._onMousedown=function(f){650>Date.now()-e._lastTouchMs||
(e._modality.next(oma(f)?"keyboard":"mouse"),e._mostRecentTarget=$g(f))};this._onTouchstart=function(f){pma(f)?e._modality.next("keyboard"):(e._lastTouchMs=Date.now(),e._modality.next("touch"),e._mostRecentTarget=$g(f))};this._options=Object.assign({},dKb,d);this.modalityDetected=this._modality.pipe(xf(1));this.modalityDetected.pipe(mf());a.isBrowser&&b.runOutsideAngular(function(){c.addEventListener("keydown",e._onKeydown,Mw);c.addEventListener("mousedown",e._onMousedown,Mw);c.addEventListener("touchstart",
e._onTouchstart,Mw)})};Nw.prototype.ngOnDestroy=function(){this._modality.complete();this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Mw),document.removeEventListener("mousedown",this._onMousedown,Mw),document.removeEventListener("touchstart",this._onTouchstart,Mw))};Qh.Object.defineProperties(Nw.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});
Nw.\u0275fac=function(a){return new (a||Nw)(n(Fw),n(Df),n(Oh),n(cKb,8))};Nw.\u0275prov=$c({token:Nw,factory:Nw.\u0275fac,providedIn:"root"});var eKb=new Ad("cdk-focus-monitor-default-options"),fKb=Xg({passive:!0,capture:!0}),Ow=function(a,b,c,d,e){var f=this;this._ngZone=a;this._platform=b;this._inputModalityDetector=c;this._origin=null;this._originFromTouchInteraction=this._windowFocused=!1;this._elementInfo=new Map;this._monitoredElementCount=0;this._rootNodeFocusListenerCount=new Map;this._windowFocusListener=function(){f._windowFocused=!0;f._windowFocusTimeoutId=window.setTimeout(function(){return f._windowFocused=!1})};this._stopInputModalityDetector=
new B.Subject;this._rootNodeFocusAndBlurListener=function(h){for(var k=$g(h);k;k=k.parentElement)"focus"===h.type?f._onFocus(h,k):f._onBlur(h,k)};this._document=d;this._detectionMode=(null==e?void 0:e.detectionMode)||0};
Ow.prototype.monitor=function(a,b){b=void 0===b?!1:b;a=ch(a);if(!this._platform.isBrowser||1!==a.nodeType)return(0,B.of)();var c=ima(a)||this._getDocument(),d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new B.Subject,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};
Ow.prototype.stopMonitoring=function(a){a=ch(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};var Pw=function(a,b,c,d){b=ch(b);b===a._getDocument().activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=l(e);e=f.next().value;f=f.next().value;return a._originChanged(e,c,f)}):(a._setOrigin(c),"function"===typeof b.focus&&b.focus(d))};g=Ow.prototype;
g.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};g._getDocument=function(){return this._document||document};g._getWindow=function(){return this._getDocument().defaultView||window};
g._getFocusOrigin=function(a){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(a)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:a&&this._isLastInteractionFromInputLabel(a)?"mouse":"program"};g._shouldBeAttributedToTouch=function(a){return 1===this._detectionMode||!(null==a||!a.contains(this._inputModalityDetector._mostRecentTarget))};
g._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused","touch"===b);a.classList.toggle("cdk-keyboard-focused","keyboard"===b);a.classList.toggle("cdk-mouse-focused","mouse"===b);a.classList.toggle("cdk-program-focused","program"===b)};
g._setOrigin=function(a,b){var c=this;b=void 0===b?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction="touch"===a&&b;0===c._detectionMode&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};g._onFocus=function(a,b){var c=this._elementInfo.get(b);a=$g(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
g._onBlur=function(a,b){var c=this._elementInfo.get(b);!c||c.checkChildren&&a.relatedTarget instanceof Node&&b.contains(a.relatedTarget)||(this._setClasses(b),this._emitOrigin(c,null))};g._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
g._registerGlobalListeners=function(a){var b=this;if(this._platform.isBrowser){var c=a.rootNode;(a=this._rootNodeFocusListenerCount.get(c)||0)||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",b._rootNodeFocusAndBlurListener,fKb);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,fKb)});this._rootNodeFocusListenerCount.set(c,a+1);1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(Af(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
g._removeGlobalListeners=function(a){a=a.rootNode;if(this._rootNodeFocusListenerCount.has(a)){var b=this._rootNodeFocusListenerCount.get(a);1<b?this._rootNodeFocusListenerCount.set(a,b-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fKb),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fKb),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};g._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};g._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};
g._isLastInteractionFromInputLabel=function(a){var b=this._inputModalityDetector,c=b._mostRecentTarget;if("mouse"!==b.mostRecentModality||!c||c===a||"INPUT"!==a.nodeName&&"TEXTAREA"!==a.nodeName||a.disabled)return!1;if(a=a.labels)for(b=0;b<a.length;b++)if(a[b].contains(c))return!0;return!1};Ow.\u0275fac=function(a){return new (a||Ow)(n(Df),n(Fw),n(Nw),n(Oh,8),n(eKb,8))};Ow.\u0275prov=$c({token:Ow,factory:Ow.\u0275fac,providedIn:"root"});
var Qw=function(a,b){this._elementRef=a;this._focusMonitor=b;this._focusOrigin=null;this.cdkFocusChange=new Yu};Qw.prototype.ngAfterViewInit=function(){var a=this,b=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(b,1===b.nodeType&&b.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){a._focusOrigin=c;a.cdkFocusChange.emit(c)})};Qw.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
Qh.Object.defineProperties(Qw.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});Qw.\u0275fac=function(a){return new (a||Qw)(z(ae),z(Ow))};Qw.\u0275dir=sd({type:Qw,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var Rw=function(){};Rw.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};Rw.prototype.detach=function(){var a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())};Qh.Object.defineProperties(Rw.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return null!=this._attachedHost}}});var Sw=function(a,b,c,d,e){this.component=a;this.viewContainerRef=b;this.injector=c;this.componentFactoryResolver=d;this.projectableNodes=e};W(Sw,Rw);
var Tw=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};W(Tw,Rw);Tw.prototype.attach=function(a,b){this.context=b=void 0===b?this.context:b;return Rw.prototype.attach.call(this,a)};Tw.prototype.detach=function(){this.context=void 0;return Rw.prototype.detach.call(this)};Qh.Object.defineProperties(Tw.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var Uw=function(){this._isDisposed=!1};g=Uw.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof Sw)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof Tw)return this._attachedPortal=a,this.attachTemplatePortal(a)};g.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};g.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
g.setDisposeFn=function(a){this._disposeFn=a};g._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};var Vw=function(a,b,c,d,e){this._isDisposed=!1;this.outletElement=a;this._componentFactoryResolver=b;this._appRef=c;this._defaultInjector=d;this._document=e};W(Vw,Uw);
Vw.prototype.attachComponentPortal=function(a){var b=this,c=DHb(a.componentFactoryResolver||this._componentFactoryResolver,a.component);if(a.viewContainerRef){var d=a.viewContainerRef.createComponent(c,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector,a.projectableNodes||void 0);this.setDisposeFn(function(){return d.destroy()})}else d=c.create(a.injector||this._defaultInjector||fHb),NIb(this._appRef,d.hostView),this.setDisposeFn(function(){0<b._appRef.viewCount&&b._appRef.detachView(d.hostView);
d.destroy()});this.outletElement.appendChild(this._getComponentRootNode(d));this._attachedPortal=a;return d};Vw.prototype.attachTemplatePortal=function(a){var b=this,c=a.viewContainerRef,d=c.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});d.rootNodes.forEach(function(e){return b.outletElement.appendChild(e)});d.detectChanges();this.setDisposeFn(function(){var e=c.indexOf(d);-1!==e&&c.remove(e)});this._attachedPortal=a;return d};
Vw.prototype.dispose=function(){Uw.prototype.dispose.call(this);this.outletElement.remove()};Vw.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};var Ww=function(a,b){Tw.call(this,a,b)};W(Ww,Tw);Ww.\u0275fac=function(a){return new (a||Ww)(z(vg),z(wg))};Ww.\u0275dir=sd({type:Ww,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Jf]});var Xw=function(a,b,c){this._isDisposed=!1;this._componentFactoryResolver=a;this._viewContainerRef=b;this._isInitialized=!1;this.attached=new Yu;this._document=c};W(Xw,Uw);g=Xw.prototype;g.ngOnInit=function(){this._isInitialized=!0};
g.ngOnDestroy=function(){Uw.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
g.attachComponentPortal=function(a){a._attachedHost=this;var b=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,c=DHb(a.componentFactoryResolver||this._componentFactoryResolver,a.component),d=b.createComponent(c,b.length,a.injector||b.injector,a.projectableNodes||void 0);b!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]);Uw.prototype.setDisposeFn.call(this,function(){return d.destroy()});this._attachedPortal=a;this._attachedRef=d;this.attached.emit(d);
return d};g.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});Uw.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};g._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
Qh.Object.defineProperties(Xw.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&Uw.prototype.detach.call(this),a&&Uw.prototype.attach.call(this,a),this._attachedPortal=a||null}}});Xw.\u0275fac=function(a){return new (a||Xw)(z(fu),z(wg),z(Oh))};
Xw.\u0275dir=sd({type:Xw,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Jf]});var Yw=function(){};Yw.\u0275fac=function(a){return new (a||Yw)};Yw.\u0275mod=qd({type:Yw});Yw.\u0275inj=ad({});var gKb=function(){};W(gKb,tJb);var Zw=function(){};W(Zw,gKb);var hKb=function(a,b,c){a.addEventListener(b,c);return function(){a.removeEventListener(b,c)}};Zw.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};Zw.prototype.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};Zw.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var vJb=function(a,b){return"window"===b?window:"document"===b?a:"body"===b?a.body:null};
Zw.prototype.getBaseHref=function(){var a=(iKb=iKb||document.querySelector("base"))?iKb.getAttribute("href"):null;null==a?a=null:(jKb=jKb||document.createElement("a"),jKb.setAttribute("href",a),a=jKb.pathname,a="/"===a.charAt(0)?a:"/"+a);return a};var iKb=null,jKb;var kKb=function(){},FIb=function(a){ne.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,void 0===c?!0:c);if(null==b)throw new dd(5103,!1);return b};ne.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};ne.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};ne.frameworkStabilizers||(ne.frameworkStabilizers=[]);ne.frameworkStabilizers.push(function(b){var c=ne.getAllAngularTestabilities(),d=c.length,e=!1,f=function(h){e=e||
h;d--;0==d&&b(e)};c.forEach(function(h){h.whenStable(f)})})};kKb.prototype.findTestabilityInTree=function(a,b,c){if(null==b)return null;var d=a._applications.get(b)||null;if(null!=d)a=d;else{var e;c?e=b instanceof DocumentFragment?this.findTestabilityInTree(a,b.host,!0):this.findTestabilityInTree(a,b.parentElement,!0):e=null;a=e}return a};var $w=function(){};$w.prototype.build=function(){return new XMLHttpRequest};$w.\u0275fac=function(a){return new (a||$w)};$w.\u0275prov=$c({token:$w,factory:$w.\u0275fac});var lKb=new Ad("EventManagerPlugins"),ax=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){d.manager=c});this._plugins=a.slice().reverse()};ax.prototype.addEventListener=function(a,b,c){return this._findPluginFor(b).addEventListener(a,b,c)};ax.prototype._findPluginFor=function(a){var b=this._eventNameToPlugin.get(a);if(b)return b;b=this._plugins.find(function(c){return c.supports(a)});if(!b)throw new dd(5101,!1);this._eventNameToPlugin.set(a,b);return b};
ax.\u0275fac=function(a){return new (a||ax)(n(lKb),n(Df))};ax.\u0275prov=$c({token:ax,factory:ax.\u0275fac});var mKb=function(a){this._doc=a};var bx=function(a,b,c,d){d=void 0===d?{}:d;this.doc=a;this.appId=b;this.nonce=c;this.styleRef=new Map;this.hostNodes=new Set;this.styleNodesInDOM=nKb(this);this.platformIsServer="server"===d;oKb(this)},rKb=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,1===pKb(a,c,1))for(var d=a,e=l(d.hostNodes),f=e.next();!f.done;f=e.next())qKb(d,f.value,c)};
bx.prototype.ngOnDestroy=function(){var a=this.styleNodesInDOM;a&&(a.forEach(function(c){return c.remove()}),a.clear());a=l(this.styleRef.keys());for(var b=a.next();!b.done;b=a.next())sKb(this,b.value);oKb(this)};
var sKb=function(a,b){a=a.styleRef;var c,d;null==(c=a.get(b))||null==(d=c.elements)||d.forEach(function(e){return e.remove()});a.delete(b)},nKb=function(a){var b,c=null==(b=a.doc.head)?void 0:b.querySelectorAll('style[ng-app-id="'+a.appId+'"]');if(null==c?0:c.length){var d=new Map;c.forEach(function(e){null!=e.textContent&&d.set(e.textContent,e)});return d}return null},pKb=function(a,b,c){a=a.styleRef;if(a.has(b))return b=a.get(b),b.usage+=c,b.usage;a.set(b,{usage:c,elements:[]});return c},qKb=function(a,
b,c){var d=a.styleNodesInDOM;var e=null==d?void 0:d.get(c);(null==e?void 0:e.parentNode)===b?(d.delete(c),e.removeAttribute("ng-app-id"),d=e):(d=a.doc.createElement("style"),a.nonce&&d.setAttribute("nonce",a.nonce),d.textContent=c,a.platformIsServer&&d.setAttribute("ng-app-id",a.appId));b.appendChild(d);a=a.styleRef;var f;(b=null==(f=a.get(c))?void 0:f.elements)?b.push(d):a.set(c,{elements:[d],usage:1})},oKb=function(a){var b=a.hostNodes;b.clear();b.add(a.doc.head)};
bx.\u0275fac=function(a){return new (a||bx)(n(Oh),n(hHb),n(iHb,8),n(hu))};bx.\u0275prov=$c({token:bx,factory:bx.\u0275fac});var tKb={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},qma=/%COMP%/g,uKb=new Ad("RemoveStylesOnCompDestroy",{providedIn:"root",factory:function(){return!0}}),dx=function(a,b,c,d,e,f,h,k){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.removeStylesOnCompDestroy=d;this.doc=e;this.ngZone=h;this.nonce=void 0===
k?null:k;this.rendererByCompId=new Map;this.platformIsServer="server"===f;this.defaultRenderer=new cx(a,e,h,this.platformIsServer)};
dx.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;this.platformIsServer&&3===b.encapsulation&&(b=Object.assign({},b,{encapsulation:0}));a:{var c=this.rendererByCompId,d=c.get(b.id);if(!d){d=this.doc;var e=this.ngZone,f=this.eventManager,h=this.sharedStylesHost,k=this.removeStylesOnCompDestroy,q=this.platformIsServer;switch(b.encapsulation){case 0:d=new vKb(f,h,b,this.appId,k,d,e,q);break;case 3:b=new wKb(f,h,a,b,d,e,this.nonce,q);break a;default:d=new ex(f,h,b,k,d,e,
q)}c.set(b.id,d)}b=d}b instanceof vKb?(rKb(b.sharedStylesHost,b.styles),b.setAttribute(a,b.hostAttr,"")):b instanceof ex&&rKb(b.sharedStylesHost,b.styles);return b};dx.prototype.ngOnDestroy=function(){this.rendererByCompId.clear()};dx.\u0275fac=function(a){return new (a||dx)(n(ax),n(bx),n(hHb),n(uKb),n(Oh),n(hu),n(Df),n(iHb))};dx.\u0275prov=$c({token:dx,factory:dx.\u0275fac});
var cx=function(a,b,c,d){this.eventManager=a;this.doc=b;this.ngZone=c;this.platformIsServer=d;this.data=Object.create(null);this.destroyNode=null};g=cx.prototype;g.destroy=function(){};g.createElement=function(a,b){return b?this.doc.createElementNS(tKb[b]||b,a):this.doc.createElement(a)};g.createComment=function(a){return this.doc.createComment(a)};g.createText=function(a){return this.doc.createTextNode(a)};g.appendChild=function(a,b){("TEMPLATE"===a.tagName&&void 0!==a.content?a.content:a).appendChild(b)};
g.insertBefore=function(a,b,c){a&&("TEMPLATE"===a.tagName&&void 0!==a.content?a.content:a).insertBefore(b,c)};g.removeChild=function(a,b){a&&a.removeChild(b)};g.selectRootElement=function(a,b){a="string"===typeof a?this.doc.querySelector(a):a;if(!a)throw new dd(-5104,!1);b||(a.textContent="");return a};g.parentNode=function(a){return a.parentNode};g.nextSibling=function(a){return a.nextSibling};
g.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=tKb[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};g.removeAttribute=function(a,b,c){if(c){var d=tKb[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};g.addClass=function(a,b){a.classList.add(b)};g.removeClass=function(a,b){a.classList.remove(b)};g.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};
g.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};g.setProperty=function(a,b,c){a[b]=c};g.setValue=function(a,b){a.nodeValue=b};g.listen=function(a,b,c){if("string"===typeof a&&(a=vJb(this.doc,a),!a))throw Error("Xa`"+a+"`"+b);return this.eventManager.addEventListener(a,b,xKb(this,c))};
var xKb=function(a,b){return function(c){if("__ngUnwrap__"===c)return b;!1===(a.platformIsServer?a.ngZone.runGuarded(function(){return b(c)}):b(c))&&c.preventDefault()}},wKb=function(a,b,c,d,e,f,h,k){cx.call(this,a,e,f,k);this.sharedStylesHost=b;this.hostEl=c;this.shadowRoot=c.attachShadow({mode:"open"});a=this.sharedStylesHost;b=this.shadowRoot;a.hostNodes.add(b);c=l(a.styleRef.keys());for(e=c.next();!e.done;e=c.next())qKb(a,b,e.value);d=rma(d.id,d.styles);d=l(d);for(a=d.next();!a.done;a=d.next())a=
a.value,b=document.createElement("style"),h&&b.setAttribute("nonce",h),b.textContent=a,this.shadowRoot.appendChild(b)};W(wKb,cx);var fx=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=wKb.prototype;g.appendChild=function(a,b){return cx.prototype.appendChild.call(this,fx(this,a),b)};g.insertBefore=function(a,b,c){return cx.prototype.insertBefore.call(this,fx(this,a),b,c)};g.removeChild=function(a,b){return cx.prototype.removeChild.call(this,fx(this,a),b)};
g.parentNode=function(a){return fx(this,cx.prototype.parentNode.call(this,fx(this,a)))};g.destroy=function(){this.sharedStylesHost.hostNodes.delete(this.shadowRoot)};var ex=function(a,b,c,d,e,f,h,k){cx.call(this,a,e,f,h);this.sharedStylesHost=b;this.removeStylesOnCompDestroy=d;this.styles=k?rma(k,c.styles):c.styles};W(ex,cx);
ex.prototype.destroy=function(){if(this.removeStylesOnCompDestroy)for(var a=this.sharedStylesHost,b=l(this.styles),c=b.next();!c.done;c=b.next())c=c.value,0>=pKb(a,c,-1)&&sKb(a,c)};var vKb=function(a,b,c,d,e,f,h,k){d=d+"-"+c.id;ex.call(this,a,b,c,e,f,h,k,d);this.contentAttr="_ngcontent-%COMP%".replace(qma,d);this.hostAttr="_nghost-%COMP%".replace(qma,d)};W(vKb,ex);
vKb.prototype.createElement=function(a,b){a=ex.prototype.createElement.call(this,a,b);ex.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};var gx=function(a){this._doc=a};W(gx,mKb);gx.prototype.supports=function(){return!0};gx.prototype.addEventListener=function(a,b,c){var d=this;a.addEventListener(b,c,!1);return function(){return d.removeEventListener(a,b,c)}};gx.prototype.removeEventListener=function(a,b,c){return a.removeEventListener(b,c)};gx.\u0275fac=function(a){return new (a||gx)(n(Oh))};gx.\u0275prov=$c({token:gx,factory:gx.\u0275fac});var yKb=["alt","control","meta","shift"],zKb={"\b":"Backspace","\t":"Tab","\u007f":"Delete","\u001b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},AKb={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},hx=function(a){this._doc=a};W(hx,mKb);hx.prototype.supports=function(a){return null!=BKb(a)};
hx.prototype.addEventListener=function(a,b,c){var d=BKb(b),e=CKb(d.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return hKb(a,d.domEventName,e)})};
var BKb=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(0===b.length||"keydown"!==a&&"keyup"!==a)return null;var c=DKb(b.pop()),d="",e=b.indexOf("code");-1<e&&(b.splice(e,1),d="code.");yKb.forEach(function(f){var h=b.indexOf(f);-1<h&&(b.splice(h,1),d+=f+".")});d+=c;if(0!=b.length||0===c.length)return null;a={domEventName:a};a.fullKey=d;return a},EKb=function(a,b){var c=zKb[a.key]||a.key,d="";-1<b.indexOf("code.")&&(c=a.code,d="code.");if(null==c||!c)return!1;c=c.toLowerCase();" "===c?
c="space":"."===c&&(c="dot");yKb.forEach(function(e){e!==c&&(0,AKb[e])(a)&&(d+=e+".")});d+=c;return d===b},CKb=function(a,b,c){return function(d){EKb(d,a)&&c.runGuarded(function(){return b(d)})}},DKb=function(a){switch(a){case "esc":return"escape";default:return a}};hx.\u0275fac=function(a){return new (a||hx)(n(Oh))};hx.\u0275prov=$c({token:hx,factory:hx.\u0275fac});var LIb=dja(dJb,"browser",[{provide:hu,useValue:"browser"},{provide:Zia,useValue:function(){var a=new Zw;sJb||(sJb=a)},multi:!0},{provide:Oh,useFactory:function(){return efa=document},deps:[]}]),FKb=new Ad(""),GKb=[{provide:DIb,useClass:kKb,deps:[]},{provide:CIb,useClass:sv,deps:[Df,tv,DIb]},{provide:sv,useClass:sv,deps:[Df,tv,DIb]}],HKb=[{provide:eja,useValue:"root"},{provide:ve,useFactory:function(){return new ve},deps:[]},{provide:lKb,useClass:gx,multi:!0,deps:[Oh,Df,hu]},{provide:lKb,useClass:hx,
multi:!0,deps:[Oh]},dx,bx,ax,{provide:ju,useExisting:dx},{provide:CJb,useClass:$w,deps:[]},[]],ix=function(){};ix.\u0275fac=function(a){return new (a||ix)(n(FKb,12))};ix.\u0275mod=qd({type:ix});ix.\u0275inj=ad({providers:[].concat(p(HKb),p(GKb)),imports:[Sv,wv]});var jx=function(a){this._doc=a};jx.prototype.getTitle=function(){return this._doc.title};jx.prototype.setTitle=function(a){this._doc.title=a||""};jx.\u0275fac=function(a){return new (a||jx)(n(Oh))};jx.\u0275prov=$c({token:jx,factory:function(a){var b=null;a?b=new a:b=new jx(n(Oh));return b},providedIn:"root"});new Ad("HammerGestureConfig");new Ad("HammerLoader");var IKb=function(){},JKb=function(){};var kx=function(a){var b=this;this.normalizedNames=new Map;this.lazyUpdate=null;a?"string"===typeof a?this.lazyInit=function(){b.headers=new Map;a.split("\n").forEach(function(c){var d=c.indexOf(":");if(0<d){var e=c.slice(0,d),f=e.toLowerCase();c=c.slice(d+1).trim();KKb(b,e,f);b.headers.has(f)?b.headers.get(f).push(c):b.headers.set(f,[c])}})}:"undefined"!==typeof Headers&&a instanceof Headers?(this.headers=new Map,a.forEach(function(c,d){LKb(b,d,c)})):this.lazyInit=function(){b.headers=new Map;Object.entries(a).forEach(function(c){var d=
l(c);c=d.next().value;d=d.next().value;LKb(b,c,d)})}:this.headers=new Map};g=kx.prototype;g.has=function(a){this.init();return this.headers.has(a.toLowerCase())};g.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&0<a.length?a[0]:null};g.keys=function(){this.init();return Array.from(this.normalizedNames.values())};g.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};g.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};
g.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};g.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var KKb=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};kx.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof kx?MKb(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return NKb(a,b)}),this.lazyUpdate=null))};
var MKb=function(a,b){b.init();Array.from(b.headers.keys()).forEach(function(c){a.headers.set(c,b.headers.get(c));a.normalizedNames.set(c,b.normalizedNames.get(c))})};kx.prototype.clone=function(a){var b=new kx;b.lazyInit=this.lazyInit&&this.lazyInit instanceof kx?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var NKb=function(a,b){var c=b.name.toLowerCase();switch(b.op){case "a":case "s":var d=b.value;"string"===typeof d&&(d=[d]);if(0===d.length)break;KKb(a,b.name,c);b=("a"===b.op?a.headers.get(c):void 0)||[];b.push.apply(b,p(d));a.headers.set(c,b);break;case "d":var e=b.value;if(e){if(d=a.headers.get(c))d=d.filter(function(f){return-1===e.indexOf(f)}),0===d.length?(a.headers.delete(c),a.normalizedNames.delete(c)):a.headers.set(c,d)}else a.headers.delete(c),a.normalizedNames.delete(c)}},LKb=function(a,
b,c){c=(Array.isArray(c)?c:[c]).map(function(e){return e.toString()});var d=b.toLowerCase();a.headers.set(d,c);KKb(a,b,d)};kx.prototype.forEach=function(a){var b=this;this.init();Array.from(this.normalizedNames.keys()).forEach(function(c){return a(b.normalizedNames.get(c),b.headers.get(c))})};var OKb=function(){},tma=/%(\d[a-f0-9])/gi,uma={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},lx=function(a){var b=this;a=void 0===a?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new OKb;if(a.fromString){if(a.fromObject)throw Error("Ya");this.map=sma(a.fromString)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(c){var d=a.fromObject[c];d=Array.isArray(d)?d.map(wma):[""+d];b.map.set(c,d)})):this.map=null};g=lx.prototype;
g.has=function(a){this.init();return this.map.has(a)};g.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};g.getAll=function(a){this.init();return this.map.get(a)||null};g.keys=function(){this.init();return Array.from(this.map.keys())};g.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};g.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
g.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=vma(b);return a.map.get(b).map(function(d){return c+"="+vma(d)}).join("&")}).filter(function(b){return""!==b}).join("&")};g.clone=function(a){var b=new lx({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
g.init=function(){var a=this;null===this.map&&(this.map=new Map);null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(b){return a.map.set(b,a.cloneFrom.map.get(b))}),this.updates.forEach(function(b){switch(b.op){case "a":case "s":var c=("a"===b.op?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(void 0!==b.value){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);-1!==d&&c.splice(d,1);0<c.length?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};var PKb=function(){this.map=new Map};g=PKb.prototype;g.set=function(a,b){this.map.set(a,b);return this};g.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};g.delete=function(a){this.map.delete(a);return this};g.has=function(a){return this.map.has(a)};g.keys=function(){return this.map.keys()};var mx=function(a,b,c,d){this.url=b;this.body=null;this.withCredentials=this.reportProgress=!1;this.responseType="json";this.method=a.toUpperCase();a:switch(this.method){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":a=!1;break a;default:a=!0}if(a||d)this.body=void 0!==c?c:null,c=d;c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),
c.params&&(this.params=c.params));this.headers||(this.headers=new kx);this.context||(this.context=new PKb);this.params?(c=this.params.toString(),0===c.length?this.urlWithParams=b:(d=b.indexOf("?"),this.urlWithParams=b+(-1===d?"?":d<b.length-1?"&":"")+c)):(this.params=new lx,this.urlWithParams=b)},QKb=function(a){return null===a.body?null:xma(a.body)||yma(a.body)||zma(a.body)||"undefined"!==typeof URLSearchParams&&a.body instanceof URLSearchParams||"string"===typeof a.body?a.body:a.body instanceof
lx?a.body.toString():"object"===typeof a.body||"boolean"===typeof a.body||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
mx.prototype.clone=function(a){a=void 0===a?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e=void 0!==a.body?a.body:this.body,f=void 0!==a.withCredentials?a.withCredentials:this.withCredentials,h=void 0!==a.reportProgress?a.reportProgress:this.reportProgress,k=a.headers||this.headers,q=a.params||this.params,u,x=null!=(u=a.context)?u:this.context;void 0!==a.setHeaders&&(k=Object.keys(a.setHeaders).reduce(function(y,E){return y.set(E,a.setHeaders[E])},k));a.setParams&&
(q=Object.keys(a.setParams).reduce(function(y,E){return y.set(E,a.setParams[E])},q));return new mx(b,c,e,{params:q,headers:k,context:x,reportProgress:h,responseType:d,withCredentials:f})};var nx=function(a,b,c){b=void 0===b?200:b;c=void 0===c?"OK":c;this.headers=a.headers||new kx;this.status=void 0!==a.status?a.status:b;this.statusText=a.statusText||c;this.url=a.url||null;this.ok=200<=this.status&&300>this.status},RKb=function(a){a=void 0===a?{}:a;nx.call(this,a);this.type=2};W(RKb,nx);
RKb.prototype.clone=function(a){a=void 0===a?{}:a;return new RKb({headers:a.headers||this.headers,status:void 0!==a.status?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};var ox=function(a){a=void 0===a?{}:a;nx.call(this,a);this.type=4;this.body=void 0!==a.body?a.body:null};W(ox,nx);
ox.prototype.clone=function(a){a=void 0===a?{}:a;return new ox({body:void 0!==a.body?a.body:this.body,headers:a.headers||this.headers,status:void 0!==a.status?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};
var SKb=function(a){nx.call(this,a,0,"Unknown Error");this.name="HttpErrorResponse";this.ok=!1;this.message=200<=this.status&&300>this.status?"Http failure during parsing for "+(a.url||"(unknown url)"):"Http failure response for "+(a.url||"(unknown url)")+": "+a.status+" "+a.statusText;this.error=a.error||null};W(SKb,nx);var px=function(a){this.handler=a};g=px.prototype;
g.request=function(a,b,c){var d=this;c=void 0===c?{}:c;if(a instanceof mx)b=a;else{var e=void 0;e=c.headers instanceof kx?c.headers:new kx(c.headers);var f=void 0;c.params&&(f=c.params instanceof lx?c.params:new lx({fromObject:c.params}));b=new mx(a,b,void 0!==c.body?c.body:null,{headers:e,context:c.context,params:f,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials})}e=(0,B.of)(b).pipe(Xe(function(h){return d.handler.handle(h)},1));if(a instanceof
mx||"events"===c.observe)return e;a=e.pipe(cf(function(h){return h instanceof ox}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(A(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw Error("Za");return h.body}));case "blob":return a.pipe(A(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw Error("$a");return h.body}));case "text":return a.pipe(A(function(h){if(null!==h.body&&"string"!==typeof h.body)throw Error("ab");return h.body}));
default:return a.pipe(A(function(h){return h.body}))}case "response":return a;default:throw Error("bb`"+c.observe);}};g.delete=function(a,b){b=void 0===b?{}:b;return this.request("DELETE",a,b)};g.get=function(a,b){b=void 0===b?{}:b;return this.request("GET",a,b)};g.head=function(a,b){b=void 0===b?{}:b;return this.request("HEAD",a,b)};g.jsonp=function(a,b){return this.request("JSONP",a,{params:(new lx).append(b,"JSONP_CALLBACK"),observe:"body",responseType:"json"})};
g.options=function(a,b){b=void 0===b?{}:b;return this.request("OPTIONS",a,b)};g.patch=function(a,b,c){c=void 0===c?{}:c;return this.request("PATCH",a,Ama(c,b))};g.post=function(a,b,c){c=void 0===c?{}:c;return this.request("POST",a,Ama(c,b))};g.put=function(a,b,c){c=void 0===c?{}:c;return this.request("PUT",a,Ama(c,b))};px.\u0275fac=function(a){return new (a||px)(n(IKb))};px.\u0275prov=$c({token:px,factory:px.\u0275fac});var qx=new Ad(""),TKb=new Ad(""),UKb=new Ad(""),rx=function(a,b){this.backend=a;this.injector=b;this.chain=null;this.pendingTasks=jd(Wu)};W(rx,IKb);rx.prototype.handle=function(a){var b=this;null===this.chain&&(this.chain=Array.from(new Set([].concat(p(this.injector.get(TKb)),p(this.injector.get(UKb,[]))))).reduceRight(function(d,e){return Dma(d,e,b.injector)},Bma));var c=this.pendingTasks.add();return this.chain(a,function(d){return b.backend.handle(d)}).pipe(pf(function(){return b.pendingTasks.remove(c)}))};
rx.\u0275fac=function(a){return new (a||rx)(n(JKb),n($t))};rx.\u0275prov=$c({token:rx,factory:rx.\u0275fac});var VKb=/^\)\]\}',?\n/,sx=function(a){this.xhrFactory=a};
sx.prototype.handle=function(a){if("JSONP"===a.method)throw new dd(-2800,!1);var b=this.xhrFactory;return(b.\u0275loadImpl?(0,B.from)(b.\u0275loadImpl()):(0,B.of)(null)).pipe(zf(function(){return new B.Observable(function(c){var d=b.build();d.open(a.method,a.urlWithParams);a.withCredentials&&(d.withCredentials=!0);a.headers.forEach(function(H,J){return d.setRequestHeader(H,J.join(","))});a.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var e=
null===a.body||zma(a.body)?null:yma(a.body)?a.body.type||null:xma(a.body)?null:"string"===typeof a.body?"text/plain":a.body instanceof lx?"application/x-www-form-urlencoded;charset=UTF-8":"object"===typeof a.body||"number"===typeof a.body||"boolean"===typeof a.body?"application/json":null;null!==e&&d.setRequestHeader("Content-Type",e)}a.responseType&&(e=a.responseType.toLowerCase(),d.responseType="json"!==e?e:"text");var f=QKb(a),h=null,k=function(){if(null!==h)return h;var H=d.statusText||"OK",J=
new kx(d.getAllResponseHeaders()),O=("responseURL"in d&&d.responseURL?d.responseURL:/^X-Request-URL:/m.test(d.getAllResponseHeaders())?d.getResponseHeader("X-Request-URL"):null)||a.url;return h=new RKb({headers:J,status:d.status,statusText:H,url:O})},q=function(){var H=k(),J=H.headers,O=H.status,R=H.statusText;H=H.url;var U=null;204!==O&&(U="undefined"===typeof d.response?d.responseText:d.response);0===O&&(O=U?200:0);var Z=200<=O&&300>O;if("json"===a.responseType&&"string"===typeof U){var na=U;U=
U.replace(VKb,"");try{U=""!==U?JSON.parse(U):null}catch(oa){U=na,Z&&(Z=!1,U={error:oa,text:U})}}Z?(c.next(new ox({body:U,headers:J,status:O,statusText:R,url:H||void 0})),c.complete()):c.error(new SKb({error:U,headers:J,status:O,statusText:R,url:H||void 0}))},u=function(H){var J=k().url;H=new SKb({error:H,status:d.status||0,statusText:d.statusText||"Unknown Error",url:J||void 0});c.error(H)},x=!1,y=function(H){x||(c.next(k()),x=!0);var J={type:3,loaded:H.loaded};H.lengthComputable&&(J.total=H.total);
"text"===a.responseType&&d.responseText&&(J.partialText=d.responseText);c.next(J)},E=function(H){var J={type:1,loaded:H.loaded};H.lengthComputable&&(J.total=H.total);c.next(J)};d.addEventListener("load",q);d.addEventListener("error",u);d.addEventListener("timeout",u);d.addEventListener("abort",u);a.reportProgress&&(d.addEventListener("progress",y),null!==f&&d.upload&&d.upload.addEventListener("progress",E));d.send(f);c.next({type:0});return function(){d.removeEventListener("error",u);d.removeEventListener("abort",
u);d.removeEventListener("load",q);d.removeEventListener("timeout",u);a.reportProgress&&(d.removeEventListener("progress",y),null!==f&&d.upload&&d.upload.removeEventListener("progress",E));d.readyState!==d.DONE&&d.abort()}})}))};sx.\u0275fac=function(a){return new (a||sx)(n(CJb))};sx.\u0275prov=$c({token:sx,factory:sx.\u0275fac});var Ema=new Ad("XSRF_ENABLED"),WKb=new Ad("XSRF_COOKIE_NAME",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),Gma=new Ad("XSRF_HEADER_NAME",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),Fma=function(){},tx=function(a,b,c){this.doc=a;this.platform=b;this.cookieName=c;this.lastCookieString="";this.lastToken=null};
tx.prototype.getToken=function(){if("server"===this.platform)return null;var a=this.doc.cookie||"";if(a!==this.lastCookieString){a:{var b=this.cookieName;b=encodeURIComponent(b);for(var c=l(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=l(-1==e?[d,""]:[d.slice(0,e),d.slice(e+1)]);d=e.next().value;e=e.next().value;if(d.trim()===b){b=decodeURIComponent(e);break a}}b=null}this.lastToken=b;this.lastCookieString=a}return this.lastToken};
tx.\u0275fac=function(a){return new (a||tx)(n(Oh),n(hu),n(WKb))};tx.\u0275prov=$c({token:tx,factory:tx.\u0275fac});var XKb=new Ad("LEGACY_INTERCEPTOR_FN");var ux=function(){};ux.\u0275fac=function(a){return new (a||ux)};ux.\u0275mod=qd({type:ux});
ux.\u0275inj=ad({providers:[function(){for(var a=[px,sx,rx,{provide:IKb,useExisting:rx},{provide:JKb,useExisting:sx},{provide:TKb,useValue:Hma,multi:!0},{provide:Ema,useValue:!0},{provide:Fma,useClass:tx}],b=l(xd.apply(0,arguments)),c=b.next();!c.done;c=b.next())a.push.apply(a,p(c.value.\u0275providers));return{"\u0275providers":a}}({"\u0275kind":1,"\u0275providers":[{provide:XKb,useFactory:function(){var a=null;return function(b,c){if(null===a){var d;a=(null!=(d=jd(qx,{optional:!0}))?d:[]).reduceRight(Cma,
Bma)}var e=jd(Wu),f=e.add();return a(b,c).pipe(pf(function(){return e.remove(f)}))}}},{provide:TKb,useExisting:XKb,multi:!0}]})]});new Ad("");var vx=function(){};vx.\u0275fac=function(a){return new (a||vx)};vx.\u0275prov=$c({token:vx,factory:function(a){return a?new (a||vx):n(wx)},providedIn:"root"});var wx=function(a){this._doc=a};W(wx,vx);
wx.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case 0:return b;case 1:return le(b,"HTML")?ke(b):Ufa(this._doc,String(b)).toString();case 2:return le(b,"Style")?ke(b):b;case 3:if(le(b,"Script"))return ke(b);throw new dd(5200,!1);case 4:return le(b,"URL")?ke(b):Hfa(String(b));case 5:if(le(b,"ResourceURL"))return ke(b);throw new dd(5201,!1);default:throw new dd(5202,!1);}};wx.prototype.bypassSecurityTrustHtml=function(a){return new mHb(a)};wx.prototype.bypassSecurityTrustUrl=function(a){return new nHb(a)};
wx.prototype.bypassSecurityTrustResourceUrl=function(a){return new oHb(a)};wx.\u0275fac=function(a){return new (a||wx)(n(Oh))};wx.\u0275prov=$c({token:wx,factory:function(a){a?a=new a:(a=n(eu),a=new wx(a.get(Oh)));return a},providedIn:"root"});new nu;var YKb=Xs([""]),ZKb=KDb(["\x00"],["\\0"]),$Kb=KDb(["\n"],["\\n"]),aLb=KDb(["\x00"],["\\u0000"]);Ima(function(a){return a(YKb)})||Ima(function(a){return a(ZKb)})||Ima(function(a){return a($Kb)})||Ima(function(a){return a(aLb)});var cLb=function(a){var b=Jo("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||da.$googDebugFname||b}catch(h){e="Not available",c=!0}b=bLb(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,xx[c])c=xx[c];else{c=String(c);if(!xx[c]){var f=/function\s+([^\(]+)/m.exec(c);xx[c]=f?f[1]:"[Anonymous]"}c=xx[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}},bLb=function(a,b){b||(b={});b[dLb(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[dLb(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=bLb(a,b));return c},dLb=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack},xx={};var eLb;try{new URL("s://g"),eLb=!0}catch(a){eLb=!1}var Jma=eLb;var Mma=/^[a-z][a-z\d-]*$/i,Nma="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Qma="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Rma=["action","formaction","href"];var Sma=function(a){this.isValid=a},Tma=[nh("data"),nh("http"),nh("https"),nh("mailto"),nh("ftp"),new Sma(function(a){return/^[^:]*([/?#]|$)/.test(a)})];var yx=function(a){this.decorated=new wx(a)};W(yx,vx);yx.prototype.sanitize=function(a,b){if(null==b)return null;if(b instanceof Vt||b instanceof Dc||b instanceof fh){if(fLb(b,a))return this.decorated.sanitize(a,gLb(this,b));throw Error("cb`"+xHb[a]+"`"+b);}return this.decorated.sanitize(a,b)};yx.prototype.bypassSecurityTrustHtml=function(){throw Error("db");};yx.prototype.bypassSecurityTrustUrl=function(){throw Error("db");};
yx.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("db");};var gLb=function(a,b){if(null!=b){if(b instanceof fh)return a.decorated.bypassSecurityTrustHtml(String(b));if(b instanceof Dc)return a.decorated.bypassSecurityTrustUrl(Ec(b));if(b instanceof Vt)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},fLb=function(a,b){switch(b){case 1:return a instanceof fh;case 4:return a instanceof Dc||a instanceof Vt;case 5:return a instanceof Vt;case 3:return!1;default:return!1}};
yx.\u0275fac=function(a){return new (a||yx)(n(Oh))};yx.\u0275prov=$c({token:yx,factory:yx.\u0275fac});var hLb=[{provide:zHb,useExisting:vx},{provide:vx,useClass:yx}],zx=function(){};zx.\u0275fac=function(a){return new (a||zx)};zx.\u0275mod=qd({type:zx});zx.\u0275inj=ad({providers:hLb,imports:[ix]});var Xma=new Set(["true","1"]),Yma=new Set(["false","0"]);var iLb=function(){},jLb=function(){};var xh=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._originalOnDoneFns=[];this._originalOnStartFns=[];this._finished=this._destroyed=this._started=!1;this._position=0;this.parentPlayer=null;this.totalTime=(void 0===a?0:a)+(void 0===b?0:b)};g=xh.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
g.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};g.hasStarted=function(){return this._started};g.init=function(){};g.play=function(){this.hasStarted()||(this._onStart(),kLb(this));this._started=!0};var kLb=function(a){queueMicrotask(function(){return a._onFinish()})};g=xh.prototype;g._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};g.pause=function(){};g.restart=function(){};
g.finish=function(){this._onFinish()};g.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this._finished=this._started=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};g.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};
g.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};g.triggerCallback=function(a){a="start"==a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var $ma=function(a){var b=this;this._onDoneFns=[];this._onStartFns=[];this._destroyed=this._started=this._finished=!1;this._onDestroyFns=[];this.parentPlayer=null;this.totalTime=0;this.players=a;var c=0,d=0,e=0,f=this.players.length;0==f?queueMicrotask(function(){return b._onFinish()}):this.players.forEach(function(h){h.onDone(function(){++c==f&&b._onFinish()});h.onDestroy(function(){++d==f&&b._onDestroy()});h.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(h,
k){return Math.max(h,k.totalTime)},0)};g=$ma.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this.players.forEach(function(a){return a.init()})};g.onStart=function(a){this._onStartFns.push(a)};g._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.hasStarted=function(){return this._started};g.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};g.pause=function(){this.players.forEach(function(a){return a.pause()})};g.restart=function(){this.players.forEach(function(a){return a.restart()})};g.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};g.destroy=function(){this._onDestroy()};
g._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(a){return a.destroy()}),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};g.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
g.getPosition=function(){var a=this.players.reduce(function(b,c){return null===b||c.totalTime>b.totalTime?c:b},null);return null!=a?a.getPosition():0};g.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};g.triggerCallback=function(a){a="start"==a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var hna="undefined"===typeof document?null:document.documentElement;var rna=RegExp("{{\\s*(.+?)\\s*}}","g"),tna=/-+([a-z0-9])/g;var vna=RegExp("s*:selfs*,?","g"),lLb=function(a){this._driver=a};g=lLb.prototype;g.build=function(a,b){b=new mLb(b);this._resetContextStyleTimingState(b);return Hh(this,Fh(a),b)};g._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
g.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],h=[];"@"==a.name.charAt(0)&&b.errors.push(new dd(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(0==k.type){var q=k.name;q.toString().split(/\s*,\s*/).forEach(function(u){k.name=u;f.push(c.visitState(k,b))});k.name=q}else 1==k.type?(q=c.visitTransition(k,b),d+=q.queryCount,e+=q.depCount,h.push(q)):b.errors.push(new dd(3007,!1))});return{type:7,name:a.name,states:f,transitions:h,queryCount:d,
depCount:e,options:null}};g.visitState=function(a,b){var c=this.visitStyle(a.styles,b),d=a.options&&a.options.params||null;if(c.containsDynamicStyles){var e=new Set,f=d||{};c.styles.forEach(function(h){h instanceof Map&&h.forEach(function(k){pna(k).forEach(function(q){f.hasOwnProperty(q)||e.add(q)})})});e.size&&(sna(e.values()),b.errors.push(new dd(3008,!1)))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
g.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=Hh(this,Fh(a.animation),b);return{type:1,matchers:Wma(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:Ih(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Hh(c,d,b)}),options:Ih(a.options)}};
g.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(h){b.currentTime=d;h=Hh(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:Ih(a.options)}};
g.visitAnimate=function(a,b){var c=yna(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:sh({});if(5==d.type)a=this.visitKeyframes(d,b);else{d=a.styles;a=!1;d||(a=!0,d={},c.easing&&(d.easing=c.easing),d=sh(d));b.currentTime+=c.duration+c.delay;var e=this.visitStyle(d,b);e.isEmptyStep=a;a=e}b.currentAnimateTimings=null;return{type:4,timings:c,style:a,options:null}};g.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
g._makeStyleAst=function(a,b){var c=[],d=Array.isArray(a.styles)?a.styles:[a.styles];d=l(d);for(var e=d.next();!e.done;e=d.next())e=e.value,"string"===typeof e?"*"===e?c.push(e):b.errors.push(new dd(3002,!1)):c.push(nna(e));var f=!1,h=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(h=k.get("easing"),k.delete("easing")),!f)){k=l(k.values());for(var q=k.next();!q.done;q=k.next())if(0<=q.value.toString().indexOf("{{")){f=!0;break}}});return{type:6,styles:c,easing:h,offset:a.offset,
containsDynamicStyles:f,options:null}};g._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&0<e&&(e-=c.duration+c.delay);a.styles.forEach(function(f){"string"!==typeof f&&f.forEach(function(h,k){var q=b.collectedStyles.get(b.currentQuerySelector),u=q.get(k),x=!0;u&&(e!=d&&e>=u.startTime&&d<=u.endTime&&(b.errors.push(new dd(3010,!1)),x=!1),e=u.startTime);x&&q.set(k,{startTime:e,endTime:d});b.options&&qna(h,b.options,b.errors)})})};
g.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new dd(3011,!1)),d;var e=0,f=[],h=!1,k=!1,q=0,u=a.steps.map(function(O){O=c._makeStyleAst(O,b);var R=null!=O.offset?O.offset:xna(O.styles),U=0;null!=R&&(e++,U=O.offset=R);k=k||0>U||1<U;h=h||U<q;q=U;f.push(U);return O});k&&b.errors.push(new dd(3012,!1));h&&b.errors.push(new dd(3200,!1));a=a.steps.length;var x=0;0<e&&e<a?b.errors.push(new dd(3202,!1)):0==e&&(x=1/(a-1));var y=
a-1,E=b.currentTime,H=b.currentAnimateTimings,J=H.duration;u.forEach(function(O,R){R=0<x?R==y?1:x*R:f[R];var U=R*J;b.currentTime=E+H.delay+U;H.duration=U;c._validateStyleAst(O,b);O.offset=R;d.styles.push(O)});return d};g.visitReference=function(a,b){return{type:8,animation:Hh(this,Fh(a.animation),b),options:Ih(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:Ih(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:Ih(a.options)}};
g.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=l(wna(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;zh(b.collectedStyles,b.currentQuerySelector,new Map);var h=Hh(this,Fh(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:h,originalSelector:a.selector,options:Ih(a.options)}};
g.visitStagger=function(a,b){b.currentQuery||b.errors.push(new dd(3013,!1));var c="full"===a.timings?{duration:0,delay:0,easing:"full"}:mna(a.timings,b.errors,!0);return{type:12,animation:Hh(this,Fh(a.animation),b),timings:c,options:null}};var mLb=function(a){this.errors=a;this.depCount=this.queryCount=0;this.currentAnimateTimings=this.currentQuerySelector=this.currentQuery=this.currentTransition=null;this.currentTime=0;this.collectedStyles=new Map;this.options=null};var Ax=function(){this._map=new Map};Ax.prototype.get=function(a){return this._map.get(a)||[]};Ax.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,p(b))};Ax.prototype.has=function(a){return this._map.has(a)};Ax.prototype.clear=function(){this._map.clear()};var nLb=RegExp(":enter","g"),oLb=RegExp(":leave","g"),Ana=function(){};g=Ana.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,u){u=void 0===u?[]:u;q=q||new Ax;a=new Bx(a,b,q,d,e,u,[]);a.options=k;d=k.delay?Ah(k.delay):0;a.currentTimeline.delayNextStep(d);pLb(a.currentTimeline,[f],null,a.errors,k);Hh(this,c,a);c=a.timelines.filter(function(y){return y.containsAnimation()});if(c.length&&h.size){for(f=c.length-1;0<=f;f--)if(e=c[f],e.element===b){var x=e;break}x&&x._currentEmptyStepKeyframe===x._currentKeyframe&&pLb(x,[h],null,a.errors,k)}return c.length?c.map(function(y){return y.buildKeyframes()}):
[zna(b,[],[],[],0,d,"",!1)]};g.visitTrigger=function(){};g.visitState=function(){};g.visitTransition=function(){};g.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=Cx(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&Dx(b,c)}b.previousNode=a};
g.visitAnimateRef=function(a,b){var c=Cx(b,a.options);Dx(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);Dx(b,c.currentTimeline.currentTime);b.previousNode=a};g._applyAnimationRefDelays=function(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=null==(e=d)?void 0:e.delay;if(f){var h=e=void 0;d="number"===typeof f?f:Ah(Gh(f,null!=(h=null==(e=d)?void 0:e.params)?h:{},b.errors));c.delayNextStep(d)}}};
g._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=null!=c.duration?Ah(c.duration):null,f=null!=c.delay?Ah(c.delay):null;0!==e&&a.forEach(function(h){var k={duration:null!=e?e:h.duration,delay:b.currentTimeline.currentTime+(null!=f?f:0)+h.delay,easing:""};h=new qLb(b._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,k,h.stretchStartingKeyframe);b.timelines.push(h);d=Math.max(d,k.duration+k.delay)});return d};
g.visitReference=function(a,b){rLb(b,a.options,!0);Hh(this,a.animation,b);b.previousNode=a};g.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=Cx(b,f),Dx(e),null!=f.delay&&(6==e.previousNode.type&&(Ex(e.currentTimeline),e.previousNode=sLb),e.delayNextStep(Ah(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return Hh(c,h,e)}),Fx(e.currentTimeline),e.subContextCount>d&&Dx(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Ah(a.options.delay):0;a.steps.forEach(function(h){var k=Cx(b,a.options);f&&k.delayNextStep(f);Hh(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return tLb(b.currentTimeline,h)});Dx(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?Gh(a,b.params,b.errors):a,mna(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
g.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(uLb(b.currentTimeline,b.currentTimeline.duration+c.delay),Ex(d));var e=a.style;5==e.type?this.visitKeyframes(e,b):(uLb(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),Fx(d));b.currentAnimateTimings=null;b.previousNode=a};
g.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&0<c._currentKeyframe.size&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=l(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else pLb(c,a.styles,d,b.errors,b.options);b.previousNode=
a};g.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=Cx(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){uLb(f,(h.offset||0)*e);pLb(f,h.styles,h.easing,b.errors,b.options);Fx(f)});tLb(b.currentTimeline,f);Dx(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Ah(e.delay):0;f&&(6===b.previousNode.type||0==d&&0<b.currentTimeline._currentKeyframe.size)&&(Ex(b.currentTimeline),b.previousNode=sLb);var h=d;d=vLb(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,u){b.currentQueryIndex=u;u=Cx(b,a.options,q);f&&u.delayNextStep(f);q===b.element&&(k=u.currentTimeline);Hh(c,a.animation,u);Fx(u.currentTimeline);
h=Math.max(h,u.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;Dx(b,h);k&&(tLb(b.currentTimeline,k),Ex(b.currentTimeline));b.previousNode=a};
g.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),h=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(0>e.duration?"reverse":e.easing){case "reverse":f=h-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;Hh(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var sLb={},Bx=function(a,b,c,d,e,f,h,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=h;this.currentAnimateTimings=this.parentContext=null;this.previousNode=sLb;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new Gx(this._driver,b,0);h.push(this.currentTimeline)},rLb=function(a,b,c){if(b){var d=a.options;null!=b.duration&&(d.duration=
Ah(b.duration));null!=b.delay&&(d.delay=Ah(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(h){c&&f.hasOwnProperty(h)||(f[h]=Gh(e[h],f,a.errors))})}}};Bx.prototype._copyOptions=function(){var a={};if(this.options){var b=this.options.params;if(b){var c=a.params={};Object.keys(b).forEach(function(d){c[d]=b[d]})}}return a};
var Cx=function(a,b,c){b=void 0===b?null:b;c=c||a.element;c=new Bx(a._driver,c,a.subInstructions,a._enterClassName,a._leaveClassName,a.errors,a.timelines,a.currentTimeline.fork(c,0));c.previousNode=a.previousNode;c.currentAnimateTimings=a.currentAnimateTimings;c.options=a._copyOptions();rLb(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},Dx=function(a,b){a.previousNode=sLb;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};Bx.prototype.delayNextStep=function(a){0<a&&this.currentTimeline.delayNextStep(a)};var vLb=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);0<b.length&&(b=b.replace(nLb,"."+a._enterClassName),b=b.replace(oLb,"."+a._leaveClassName),a=a._driver.query(a.element,b,1!=c),0!==c&&(a=0>c?a.slice(a.length+c,a.length):a.slice(0,c)),h.push.apply(h,p(a)));e||0!=h.length||f.push(new dd(3014,!1));return h};
Qh.Object.defineProperties(Bx.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var Gx=function(a,b,c,d){this._driver=a;this.element=b;this.startTime=c;this._elementTimelineStylesLookup=d;this.duration=0;this.easing=null;this._previousKeyframe=new Map;this._currentKeyframe=new Map;this._keyframes=new Map;this._styleSummary=new Map;this._localTimelineStyles=new Map;this._pendingStyles=new Map;this._backFill=new Map;this._currentEmptyStepKeyframe=null;this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map);this._globalTimelineStyles=this._elementTimelineStylesLookup.get(b);
this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(b,this._localTimelineStyles));this._loadKeyframe()};Gx.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return 0<this._currentKeyframe.size;default:return!0}};Gx.prototype.delayNextStep=function(a){var b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(uLb(this,this.currentTime+a),b&&Ex(this)):this.startTime+=a};
Gx.prototype.fork=function(a,b){Fx(this);return new Gx(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};Gx.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe);this._currentKeyframe=this._keyframes.get(this.duration);this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))};var uLb=function(a,b){Fx(a);a.duration=b;a._loadKeyframe()};
Gx.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
var pLb=function(a,b,c,d,e){c&&a._previousKeyframe.set("easing",c);c=e&&e.params||{};b=Dna(b,a._globalTimelineStyles);b=l(b);for(e=b.next();!e.done;e=b.next()){var f=l(e.value);e=f.next().value;f=f.next().value;f=Gh(f,c,d);a._pendingStyles.set(e,f);if(!a._localTimelineStyles.has(e)){var h=void 0;a._backFill.set(e,null!=(h=a._globalTimelineStyles.get(e))?h:"*")}a._updateStyle(e,f)}},Fx=function(a){0!=a._pendingStyles.size&&(a._pendingStyles.forEach(function(b,c){a._currentKeyframe.set(c,b)}),a._pendingStyles.clear(),
a._localTimelineStyles.forEach(function(b,c){a._currentKeyframe.has(c)||a._currentKeyframe.set(c,b)}))},Ex=function(a){for(var b=l(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},tLb=function(a,b){b._styleSummary.forEach(function(c,d){var e=a._styleSummary.get(d);(!e||c.time>e.time)&&a._updateStyle(d,c.value)})};
Gx.prototype.buildKeyframes=function(){var a=this;Fx(this);var b=new Set,c=new Set,d=1===this._keyframes.size&&0===this.duration,e=[];this._keyframes.forEach(function(u,x){u=Ch(u,new Map,a._backFill);u.forEach(function(y,E){"!"===y?b.add(E):"*"===y&&c.add(E)});d||u.set("offset",x/a.duration);e.push(u)});var f=b.size?sna(b.values()):[],h=c.size?sna(c.values()):[];if(d){var k=e[0],q=new Map(k);k.set("offset",0);q.set("offset",1);e=[k,q]}return zna(this.element,e,f,h,this.duration,this.startTime,this.easing,
!1)};Qh.Object.defineProperties(Gx.prototype,{currentTime:{configurable:!0,enumerable:!0,get:function(){return this.startTime+this.duration}},properties:{configurable:!0,enumerable:!0,get:function(){var a=[],b;for(b in this._currentKeyframe)a.push(b);return a}}});var qLb=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;Gx.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=h;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
W(qLb,Gx);qLb.prototype.containsAnimation=function(){return 1<this.keyframes.length};
qLb.prototype.buildKeyframes=function(){var a=this.keyframes,b=this.timings,c=b.delay,d=b.duration,e=b.easing;if(this._stretchStartingKeyframe&&c){b=[];e=d+c;var f=c/e,h=Ch(a[0]);h.set("offset",0);b.push(h);h=Ch(a[0]);h.set("offset",Cna(f));b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=Ch(a[h]),q=k.get("offset");k.set("offset",Cna((c+q*d)/e));b.push(k)}d=e;c=0;e="";a=b}return zna(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};var wLb=function(){};var xLb=new Set("width height minWidth minHeight maxWidth maxHeight left top bottom right fontSize outlineWidth outlineOffset paddingTop paddingLeft paddingBottom paddingRight marginTop marginLeft marginBottom marginRight borderRadius borderWidth borderTopWidth borderLeftWidth borderRightWidth borderBottomWidth textIndent perspective".split(" ")),yLb=function(){};W(yLb,wLb);
var bna=function(a,b,c){var d="",e=b.toString().trim();xLb.has(a)&&0!==b&&"0"!==b&&("number"===typeof b?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&0==a[1].length&&c.push(new dd(3005,!1)));return e+d};var Hx=function(){};g=Hx.prototype;g.containsElement=function(a,b){return jna(a,b)};g.getParentElement=function(a){return ina(a)};g.query=function(a,b,c){return kna(a,b,c)};g.computeStyle=function(a,b,c){return c||""};g.animate=function(a,b,c,d){return new xh(c,d)};Hx.\u0275fac=function(a){return new (a||Hx)};Hx.\u0275prov=$c({token:Hx,factory:Hx.\u0275fac});var zLb=function(){};var ALb={},Jh=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};Jh.prototype.match=function(a,b,c,d){return Fna(this.ast.matchers,a,b,c,d)};Jh.prototype.buildStyles=function(a,b,c){var d=this._stateStyles.get("*");void 0!==a&&(d=this._stateStyles.get(null==a?void 0:a.toString())||d);return d?d.buildStyles(b,c):new Map};
Jh.prototype.build=function(a,b,c,d,e,f,h,k,q,u){var x=[],y=this.ast.options&&this.ast.options.params||ALb;h=this.buildStyles(c,h&&h.params||ALb,x);var E=k&&k.params||ALb;k=this.buildStyles(d,E,x);var H=new Set,J=new Map,O=new Map,R="void"===d,U;y={params:Gna(E,y),delay:null==(U=this.ast.options)?void 0:U.delay};a=u?[]:Bna(a,b,this.ast.animation,e,f,h,k,y,q,x);var Z=0;a.forEach(function(na){Z=Math.max(na.duration+na.delay,Z)});if(x.length)return Ena(b,this._triggerName,c,d,R,h,k,[],[],J,O,Z,x);a.forEach(function(na){var oa=
na.element,wa=zh(J,oa,new Set);na.preStyleProps.forEach(function(Ga){return wa.add(Ga)});var Da=zh(O,oa,new Set);na.postStyleProps.forEach(function(Ga){return Da.add(Ga)});oa!==b&&H.add(oa)});x=sna(H.values());return Ena(b,this._triggerName,c,d,R,h,k,a,x,J,O,Z)};var BLb=function(a,b){this.styles=a;this.defaultParams=b};
BLb.prototype.buildStyles=function(a,b){var c=new Map,d=Bh(this.defaultParams);Object.keys(a).forEach(function(e){var f=a[e];null!==f&&(d[e]=f)});this.styles.styles.forEach(function(e){"string"!==typeof e&&e.forEach(function(f,h){f&&(f=Gh(f,d,b));var k=ana(h);f=bna(k,f,b);c.set(h,f)})});return c};var CLb=function(a,b,c){var d=this;this.name=a;this.ast=b;this._normalizer=c;this.transitionFactories=[];this.states=new Map;b.states.forEach(function(e){d.states.set(e.name,new BLb(e.style,e.options&&e.options.params||{}))});Ina(this.states,"true","1");Ina(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new Jh(a,e,d.states))});this.fallbackTransition=Hna(a,this.states)},DLb=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};var ELb=new Ax,FLb=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=FLb.prototype;g.register=function(a,b){var c=[];b=(new lLb(this._driver)).build(b,c,[]);if(c.length)throw new dd(3503,!1);this._animations.set(a,b)};g._buildPlayer=function(a,b,c){var d=a.element;b=cna(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
g.create=function(a,b,c){var d=this;c=void 0===c?{}:c;var e=[],f=this._animations.get(a),h=new Map;f?(b=Bna(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,ELb,e),b.forEach(function(k){var q=zh(h,k.element,new Map);k.postStyleProps.forEach(function(u){return q.set(u,null)})})):(e.push(new dd(3300,!1)),b=[]);if(e.length)throw new dd(3504,!1);h.forEach(function(k,q){k.forEach(function(u,x){k.set(x,d._driver.computeStyle(q,x,"*"))})});e=b.map(function(k){var q=h.get(k.element);return d._buildPlayer(k,
new Map,q)});e=yh(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};g.destroy=function(a){var b=this._getPlayer(a);b.destroy();this._playersById.delete(a);a=this.players.indexOf(b);0<=a&&this.players.splice(a,1)};g._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new dd(3301,!1);return a};g.listen=function(a,b,c,d){b=fna(b,"","","");ena(this._getPlayer(a),c,b,d);return function(){}};
g.command=function(a,b,c,d){if("register"==c)this.register(a,d[0]);else if("create"==c)this.create(a,b,d[0]||{});else switch(b=this._getPlayer(a),c){case "play":b.play();break;case "pause":b.pause();break;case "reset":b.reset();break;case "restart":b.restart();break;case "finish":b.finish();break;case "init":b.init();break;case "setPosition":b.setPosition(parseFloat(d[0]));break;case "destroy":this.destroy(a)}};var GLb=[],HLb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lna={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ILb=function(a,b){this.namespaceId=void 0===b?"":b;var c=(b=a&&a.hasOwnProperty("value"))?a.value:a;this.value=null!=c?c:null;b?(a=Bh(a),delete a.value,this.options=a):this.options={};this.options.params||(this.options.params={})},JLb=function(a,b){var c=b.params;if(c){var d=a.options.params;Object.keys(c).forEach(function(e){null==
d[e]&&(d[e]=c[e])})}};Qh.Object.defineProperties(ILb.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var KLb=new ILb("void"),Ix=function(a,b,c){this.id=a;this.hostElement=b;this._engine=c;this.players=[];this._triggers=new Map;this._queue=[];this._elementListeners=new Map;this._hostClassName="ng-tns-"+a;Kh(b,this._hostClassName)};g=Ix.prototype;
g.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new dd(3302,!1);if(null==c||0==c.length)throw new dd(3303,!1);if("start"!=c&&"done"!=c)throw new dd(3400,!1);var f=zh(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=zh(this._engine.statesByElement,a,new Map);k.has(b)||(Kh(a,"ng-trigger"),Kh(a,"ng-trigger-"+b),k.set(b,KLb));return function(){Jx(e._engine,function(){var q=f.indexOf(h);0<=q&&f.splice(q,1);e._triggers.has(b)||k.delete(b)})}};
g.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};g._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new dd(3401,!1);return a};
g.trigger=function(a,b,c,d){var e=this;d=void 0===d?!0:d;var f=this._getTrigger(b),h=new LLb(this.id,b,a),k=this._engine.statesByElement.get(a);k||(Kh(a,"ng-trigger"),Kh(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),u=new ILb(c,this.id);c&&c.hasOwnProperty("value")||!q||JLb(u,q.options);k.set(b,u);q||(q=KLb);if("void"!==u.value&&q.value===u.value){if(!Rna(q.params,u.params)){d=[];var x=f.fallbackTransition.buildStyles(q.value,q.params,d),y=f.fallbackTransition.buildStyles(u.value,
u.params,d);d.length?this._engine.reportError(d):Jx(this._engine,function(){Eh(a,x);Dh(a,y)})}}else{c=zh(this._engine.playersByElement,a,[]);c.forEach(function(H){H.namespaceId==e.id&&H.triggerName==b&&H.queued&&H.destroy()});k=DLb(f,q.value,u.value,a,u.params);var E=!1;if(!k){if(!d)return;k=f.fallbackTransition;E=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:q,toState:u,player:h,isFallbackTransition:E});E||(Kh(a,"ng-animate-queued"),h.onStart(function(){Lh(a,
"ng-animate-queued")}));h.onDone(function(){var H=e.players.indexOf(h);0<=H&&e.players.splice(H,1);if(H=e._engine.playersByElement.get(a)){var J=H.indexOf(h);0<=J&&H.splice(J,1)}});this.players.push(h);c.push(h);return h}};g.deregister=function(a){var b=this;this._triggers.delete(a);this._engine.statesByElement.forEach(function(c){return c.delete(a)});this._elementListeners.forEach(function(c,d){b._elementListeners.set(d,c.filter(function(e){return e.name!=a}))})};
var MLb=function(a,b){a._engine.statesByElement.delete(b);a._elementListeners.delete(b);var c=a._engine.playersByElement.get(b);c&&(c.forEach(function(d){return d.destroy()}),a._engine.playersByElement.delete(b))};
Ix.prototype._signalRemovalForInnerTriggers=function(a,b){var c=this,d=this._engine.driver.query(a,".ng-trigger",!0);d.forEach(function(e){if(!e.__ng_removed){var f=NLb(c._engine,e);f.size?f.forEach(function(h){return OLb(h,e,b,!1,!0)}):MLb(c,e)}});this._engine.afterFlushAnimationsDone(function(){return d.forEach(function(e){return MLb(c,e)})})};
var OLb=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,u){h.set(u,q.value);a._triggers.has(u)&&(q=a.trigger(b,u,"void",e))&&k.push(q)});if(k.length){PLb(a._engine,a.id,b,!0,c,h);if(d)yh(k).onDone(function(){return Mh(a._engine,b)});return!0}}return!1},QLb=function(a,b){var c=a._elementListeners.get(b),d=a._engine.statesByElement.get(b);if(c&&d){var e=new Set;c.forEach(function(f){f=f.name;if(!e.has(f)){e.add(f);var h=a._triggers.get(f).fallbackTransition,
k=d.get(f)||KLb,q=new ILb("void"),u=new LLb(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:u,isFallbackTransition:!0})}})}};
Ix.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!OLb(this,a,b,!0)){var e=!1;if(d.totalAnimations){var f=d.players.length?d.playersByQueriedElement.get(a):[];if(f&&f.length)e=!0;else for(f=a;f=f.parentNode;)if(d.statesByElement.get(f)){e=!0;break}}QLb(this,a);e?PLb(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==HLb||(Jx(d,function(){return MLb(c,a)}),RLb(d,a),d._onRemovalComplete(a,b)))}};
Ix.prototype.insertNode=function(a){Kh(a,this._hostClassName)};
var SLb=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,h=a._elementListeners.get(f);h&&h.forEach(function(k){if(k.name==d.triggerName){var q=fna(f,d.triggerName,d.fromState.value,d.toState.value);q._data=b;ena(d.player,k.phase,q,k.callback)}});e.markedForDestroy?Jx(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,h=e.transition.ast.depCount;return 0==f||0==h?f-h:a._engine.driver.containsElement(d.element,
e.element)?1:-1})};Ix.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var Kx=function(a,b,c){this.bodyNode=a;this.driver=b;this._normalizer=c;this.players=[];this.newHostElements=new Map;this.playersByElement=new Map;this.playersByQueriedElement=new Map;this.statesByElement=new Map;this.disabledNodes=new Set;this.totalQueuedPlayers=this.totalAnimations=0;this._namespaceLookup={};this._namespaceList=[];this._flushFns=[];this._whenQuietFns=[];this.namespacesByHostElement=new Map;this.collectedEnterElements=[];this.collectedLeaveElements=[];this.onRemovalComplete=function(){}};
g=Kx.prototype;g._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};g._balanceNamespaceList=function(a,b){var c=this._namespaceList,d=this.namespacesByHostElement;if(0<=c.length-1){for(var e=!1,f=this.driver.getParentElement(b);f;){var h=d.get(f);if(h){e=c.indexOf(h);c.splice(e+1,0,a);e=!0;break}f=this.driver.getParentElement(f)}e||c.unshift(a)}else c.push(a);d.set(b,a);return a};
g.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new Ix(a,b,this),this.bodyNode&&this.driver.containsElement(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};g.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
g.destroy=function(a,b){var c=this;a&&(Jx(this,function(){}),this.afterFlushAnimationsDone(function(){var d=c._fetchNamespace(a);c.namespacesByHostElement.delete(d.hostElement);var e=c._namespaceList.indexOf(d);0<=e&&c._namespaceList.splice(e,1);d.destroy(b);delete c._namespaceLookup[a]}))};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var NLb=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=l(b.values());for(var d=b.next();!d.done;d=b.next())d=d.value,d.namespaceId&&(d=a._fetchNamespace(d.namespaceId))&&c.add(d)}return c};Kx.prototype.trigger=function(a,b,c,d){return Jna(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
Kx.prototype.insertNode=function(a,b,c,d){if(Jna(b)){var e=b.__ng_removed;e&&e.setForRemoval&&(e.setForRemoval=!1,e.setForMove=!0,e=this.collectedLeaveElements.indexOf(b),0<=e&&this.collectedLeaveElements.splice(e,1));a&&(a=this._fetchNamespace(a))&&a.insertNode(b,c);d&&this.collectedEnterElements.push(b)}};var TLb=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),Kh(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),Lh(b,"ng-animate-disabled"))};
Kx.prototype.removeNode=function(a,b,c){if(Jna(b)){var d=a?this._fetchNamespace(a):null;d?d.removeNode(b,c):PLb(this,a,b,!1,c);(d=this.namespacesByHostElement.get(b))&&d.id!==a&&d.removeNode(b,c)}else this._onRemovalComplete(b,c)};var PLb=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};Kx.prototype.listen=function(a,b,c,d,e){return Jna(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};
Kx.prototype._buildInstruction=function(a,b,c,d,e){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,c,d,a.fromState.options,a.toState.options,b,e)};
var RLb=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return ULb(a,d)});0!=a.playersByQueriedElement.size&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return VLb(a,d)}))},ULb=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},VLb=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},Mh=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
HLb;if(c.namespaceId){RLb(a,b);var d=a._fetchNamespace(c.namespaceId);d&&MLb(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;(null==(e=b.classList)?0:e.contains("ng-animate-disabled"))&&TLb(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){TLb(a,f,!1)})};
Kx.prototype.flush=function(a){var b=this;a=void 0===a?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,h){return b._balanceNamespaceList(f,h)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)Kh(this.collectedEnterElements[d],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){d=[];try{c=this._flushAnimations(d,
a)}finally{for(a=0;a<d.length;a++)d[a]()}}else for(a=0;a<this.collectedLeaveElements.length;a++)Mh(this,this.collectedLeaveElements[a]);this.totalQueuedPlayers=0;this.collectedEnterElements.length=0;this.collectedLeaveElements.length=0;this._flushFns.forEach(function(f){return f()});this._flushFns=[];if(this._whenQuietFns.length){var e=this._whenQuietFns;this._whenQuietFns=[];if(c.length)yh(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
Kx.prototype.reportError=function(){throw new dd(3402,!1);};
Kx.prototype._flushAnimations=function(a,b){var c=this,d=new Ax,e=[],f=new Map,h=[],k=new Map,q=new Map,u=new Map,x=new Set;this.disabledNodes.forEach(function(Qa){x.add(Qa);Qa=c.driver.query(Qa,".ng-animate-queued",!0);for(var Ab=0;Ab<Qa.length;Ab++)x.add(Qa[Ab])});var y=this.bodyNode,E=Array.from(this.statesByElement.keys()),H=Nna(E,this.collectedEnterElements),J=new Map,O=0;H.forEach(function(Qa,Ab){var db="ng-enter"+O++;J.set(Ab,db);Qa.forEach(function(Gb){return Kh(Gb,db)})});for(var R=[],U=
new Set,Z=new Set,na=0;na<this.collectedLeaveElements.length;na++){var oa=this.collectedLeaveElements[na],wa=oa.__ng_removed;wa&&wa.setForRemoval&&(R.push(oa),U.add(oa),wa.hasAnimation?this.driver.query(oa,".ng-star-inserted",!0).forEach(function(Qa){return U.add(Qa)}):Z.add(oa))}var Da=new Map,Ga=Nna(E,Array.from(U));Ga.forEach(function(Qa,Ab){var db="ng-leave"+O++;Da.set(Ab,db);Qa.forEach(function(Gb){return Kh(Gb,db)})});a.push(function(){H.forEach(function(Qa,Ab){var db=J.get(Ab);Qa.forEach(function(Gb){return Lh(Gb,
db)})});Ga.forEach(function(Qa,Ab){var db=Da.get(Ab);Qa.forEach(function(Gb){return Lh(Gb,db)})});R.forEach(function(Qa){Mh(c,Qa)})});var Ub=[],Vb=[];for(a=this._namespaceList.length-1;0<=a;a--)SLb(this._namespaceList[a],b).forEach(function(Qa){var Ab=Qa.player,db=Qa.element;Ub.push(Ab);if(c.collectedEnterElements.length){var Gb=db.__ng_removed;if(Gb&&Gb.setForMove){if(Gb.previousTriggersValues&&Gb.previousTriggersValues.has(Qa.triggerName)){Gb=Gb.previousTriggersValues.get(Qa.triggerName);var Lb=
c.statesByElement.get(Qa.element);if(Lb&&Lb.has(Qa.triggerName)){var Rb=Lb.get(Qa.triggerName);Rb.value=Gb;Lb.set(Qa.triggerName,Rb)}}Ab.destroy();return}}Gb=!y||!c.driver.containsElement(y,db);Lb=Da.get(db);Rb=J.get(db);var Cc=c._buildInstruction(Qa,d,Rb,Lb,Gb);if(Cc.errors&&Cc.errors.length)Vb.push(Cc);else if(Gb)Ab.onStart(function(){return Eh(db,Cc.fromStyles)}),Ab.onDestroy(function(){return Dh(db,Cc.toStyles)}),e.push(Ab);else if(Qa.isFallbackTransition)Ab.onStart(function(){return Eh(db,Cc.fromStyles)}),
Ab.onDestroy(function(){return Dh(db,Cc.toStyles)}),e.push(Ab);else{var Tf=[];Cc.timelines.forEach(function(yd){yd.stretchStartingKeyframe=!0;c.disabledNodes.has(yd.element)||Tf.push(yd)});Cc.timelines=Tf;d.append(db,Cc.timelines);h.push({instruction:Cc,player:Ab,element:db});Cc.queriedElements.forEach(function(yd){return zh(k,yd,[]).push(Ab)});Cc.preStyleProps.forEach(function(yd,me){if(yd.size){var tj=q.get(me);tj||q.set(me,tj=new Set);yd.forEach(function(Y$,Es){return tj.add(Es)})}});Cc.postStyleProps.forEach(function(yd,
me){var tj=u.get(me);tj||u.set(me,tj=new Set);yd.forEach(function(Y$,Es){return tj.add(Es)})})}});if(Vb.length){var $a=[];Vb.forEach(function(){$a.push(new dd(3505,!1))});Ub.forEach(function(Qa){return Qa.destroy()});this.reportError($a)}var ja=new Map,ya=new Map;h.forEach(function(Qa){var Ab=Qa.element;d.has(Ab)&&(ya.set(Ab,Ab),c._beforeAnimationBuild(Qa.player.namespaceId,Qa.instruction,ja))});e.forEach(function(Qa){var Ab=Qa.element;c._getPreviousPlayers(Ab,!1,Qa.namespaceId,Qa.triggerName,null).forEach(function(db){zh(ja,
Ab,[]).push(db);db.destroy()})});var Ha=R.filter(function(Qa){return Sna(Qa,q,u)}),ab=new Map;Mna(ab,this.driver,Z,u,"*").forEach(function(Qa){Sna(Qa,q,u)&&Ha.push(Qa)});var Ra=new Map;H.forEach(function(Qa){Mna(Ra,c.driver,new Set(Qa),q,"!")});Ha.forEach(function(Qa){var Ab=ab.get(Qa),db=Ra.get(Qa),Gb,Lb;ab.set(Qa,new Map([].concat(p(null!=(Gb=null==Ab?void 0:Ab.entries())?Gb:[]),p(null!=(Lb=null==db?void 0:db.entries())?Lb:[]))))});var Jc=[],Ua=[],mb={};h.forEach(function(Qa){var Ab=Qa.element,
db=Qa.player,Gb=Qa.instruction;if(d.has(Ab))if(x.has(Ab))db.onDestroy(function(){return Dh(Ab,Gb.toStyles)}),db.disabled=!0,db.totalTime=Gb.totalTime,e.push(db);else{var Lb=mb;if(1<ya.size){Qa=Ab;for(var Rb=[];Qa=Qa.parentNode;){var Cc=ya.get(Qa);if(Cc){Lb=Cc;break}Rb.push(Qa)}Rb.forEach(function(Tf){return ya.set(Tf,Lb)})}Qa=c._buildAnimation(db.namespaceId,Gb,ja,f,Ra,ab);WLb(db,Qa);Lb===mb?Jc.push(db):((Qa=c.playersByElement.get(Lb))&&Qa.length&&(db.parentPlayer=yh(Qa)),e.push(db))}else Eh(Ab,Gb.fromStyles),
db.onDestroy(function(){return Dh(Ab,Gb.toStyles)}),Ua.push(db),x.has(Ab)&&e.push(db)});Ua.forEach(function(Qa){var Ab=f.get(Qa.element);Ab&&Ab.length&&(Ab=yh(Ab),WLb(Qa,Ab))});e.forEach(function(Qa){Qa.parentPlayer?XLb(Qa,Qa.parentPlayer):Qa.destroy()});for(b=0;b<R.length;b++)if(Z=R[b],a=Z.__ng_removed,Lh(Z,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((E=k.get(Z))&&E.length&&a.push.apply(a,p(E)),E=this.driver.query(Z,".ng-animating",!0),na=0;na<E.length;na++)(oa=k.get(E[na]))&&oa.length&&
a.push.apply(a,p(oa));a=a.filter(function(Qa){return!Qa.destroyed});a.length?Ona(this,Z,a):Mh(this,Z)}R.length=0;Jc.forEach(function(Qa){c.players.push(Qa);Qa.onDone(function(){Qa.destroy();var Ab=c.players.indexOf(Qa);c.players.splice(Ab,1)});Qa.play()});return Jc};var Jx=function(a,b){a._flushFns.push(b)};g=Kx.prototype;g.afterFlushAnimationsDone=function(a){this._whenQuietFns.push(a)};
g._getPreviousPlayers=function(a,b,c,d,e){var f=[];if(b)(e=this.playersByQueriedElement.get(a))&&(f=e);else if(a=this.playersByElement.get(a)){var h=!e||"void"==e;a.forEach(function(k){k.queued||(h||k.triggerName==d)&&f.push(k)})}if(c||d)f=f.filter(function(k){return c&&c!=k.namespaceId||d&&d!=k.triggerName?!1:!0});return f};
g._beforeAnimationBuild=function(a,b,c){var d=b.triggerName,e=b.element;a=b.isRemovalTransition?void 0:a;d=b.isRemovalTransition?void 0:d;for(var f=l(b.timelines),h=f.next(),k={};!h.done;k={players$jscomp$9:k.players$jscomp$9},h=f.next()){h=h.value.element;var q=h!==e;k.players$jscomp$9=zh(c,h,[]);this._getPreviousPlayers(h,q,a,d,b.toState).forEach(function(u){return function(x){var y=x._player;y.beforeDestroy&&y.beforeDestroy();x.destroy();u.players$jscomp$9.push(x)}}(k))}Eh(e,b.fromStyles)};
g._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,u=[],x=new Set,y=new Set,E=b.timelines.map(function(J){var O=J.element;x.add(O);var R=O.__ng_removed;if(R&&R.removedBeforeQueried)return new xh(J.duration,J.delay);R=O!==q;var U=Qna((c.get(O)||GLb).map(function(oa){return oa._player})).filter(function(oa){return oa.element?oa.element===O:!1}),Z=e.get(O),na=f.get(O);Z=cna(J.keyframes,Z,na);U=h._buildPlayer(J,Z,U);J.subTimeline&&d&&y.add(O);R&&(J=new LLb(a,k,O),WLb(J,U),
u.push(J));return U});u.forEach(function(J){zh(h.playersByQueriedElement,J.element,[]).push(J);J.onDone(function(){var O=h.playersByQueriedElement,R=J.element,U=O.get(R);if(U){if(U.length){var Z=U.indexOf(J);U.splice(Z,1)}0==U.length&&O.delete(R)}return U})});x.forEach(function(J){return Kh(J,"ng-animating")});var H=yh(E);H.onDestroy(function(){x.forEach(function(J){return Lh(J,"ng-animating")});Dh(q,b.toStyles)});y.forEach(function(J){zh(d,J,[]).push(H)});return H};
g._buildPlayer=function(a,b,c){return 0<b.length?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new xh(a.duration,a.delay)};
var LLb=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new xh;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.destroyed=!1;this.parentPlayer=null;this.disabled=this.markedForDestroy=!1;this.queued=!0;this.totalTime=0},WLb=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return ena(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},
XLb=function(a,b){var c=a._player;if(c.triggerCallback)b.onStart(function(){return c.triggerCallback("start")});b.onDone(function(){return a.finish()});b.onDestroy(function(){return a.destroy()})};g=LLb.prototype;g._queueEvent=function(a,b){zh(this._queuedCallbacks,a,[]).push(b)};g.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};g.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};
g.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};g.init=function(){this._player.init()};g.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};g.play=function(){!this.queued&&this._player.play()};g.pause=function(){!this.queued&&this._player.pause()};g.restart=function(){!this.queued&&this._player.restart()};g.finish=function(){this._player.finish()};g.destroy=function(){this.destroyed=!0;this._player.destroy()};
g.reset=function(){!this.queued&&this._player.reset()};g.setPosition=function(a){this.queued||this._player.setPosition(a)};g.getPosition=function(){return this.queued?0:this._player.getPosition()};g.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};var Lx=function(a,b,c){var d=this;this.bodyNode=a;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new Kx(a,b,c);this._timelineEngine=new FLb(a,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=Lx.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new lLb(this._driver)).build(e,c,[]);if(c.length)throw new dd(3404,!1);c=new CLb(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};g.register=function(a,b){this._transitionEngine.register(a,b)};g.destroy=function(a,b){this._transitionEngine.destroy(a,b)};g.onRemove=function(a,b,c){this._transitionEngine.removeNode(a,b,c)};
g.disableAnimations=function(a,b){TLb(this._transitionEngine,a,b)};g.process=function(a,b,c,d){"@"==c.charAt(0)?(c=l(gna(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};g.listen=function(a,b,c,d,e){return"@"==c.charAt(0)?(c=l(gna(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};g.flush=function(a){this._transitionEngine.flush(void 0===a?-1:a)};
g.afterFlushAnimationsDone=function(a){this._transitionEngine.afterFlushAnimationsDone(a)};Qh.Object.defineProperties(Lx.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this._transitionEngine.players),p(this._timelineEngine.players))}}});var Una=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=YLb.get(a);d||YLb.set(a,d=new Map);this._initialStyles=d};Una.prototype.start=function(){1>this._state&&(this._startStyles&&Dh(this._element,this._startStyles,this._initialStyles),this._state=1)};Una.prototype.finish=function(){this.start();2>this._state&&(Dh(this._element,this._initialStyles),this._endStyles&&(Dh(this._element,this._endStyles),this._endStyles=null),this._state=1)};
Una.prototype.destroy=function(){this.finish();3>this._state&&(YLb.delete(this._element),this._startStyles&&(Eh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Eh(this._element,this._endStyles),this._endStyles=null),Dh(this._element,this._initialStyles),this._state=3)};var YLb=new WeakMap;var ZLb=function(a,b,c,d){this.element=a;this.keyframes=b;this.options=c;this._specialStyles=d;this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._destroyed=this._started=this._finished=this._initialized=!1;this._originalOnDoneFns=[];this._originalOnStartFns=[];this.time=0;this.parentPlayer=null;this.currentSnapshot=new Map;this._duration=c.duration;this._delay=c.delay||0;this.time=this._duration+this._delay};g=ZLb.prototype;
g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this._buildPlayer();this._preparePlayerBeforeStart()};g._buildPlayer=function(){var a=this;if(!this._initialized){this._initialized=!0;var b=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,b,this.options);this._finalKeyframe=b.length?b[b.length-1]:new Map;this.domPlayer.addEventListener("finish",function(){return a._onFinish()})}};
g._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()};g._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};g._triggerWebAnimation=function(a,b,c){return a.animate(this._convertKeyframesToObject(b),c)};g.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};g.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.play=function(){this._buildPlayer();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start());this.domPlayer.play()};g.pause=function(){this.init();this.domPlayer.pause()};g.finish=function(){this.init();this._specialStyles&&this._specialStyles.finish();this._onFinish();this.domPlayer.finish()};
g.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};g._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()};g.restart=function(){this.reset();this.play()};g.hasStarted=function(){return this._started};
g.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.setPosition=function(a){void 0===this.domPlayer&&this.init();this.domPlayer.currentTime=a*this.time};g.getPosition=function(){var a;return+(null!=(a=this.domPlayer.currentTime)?a:0)/this.time};
g.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){if("offset"!==d){var e=b.set,f;a._finished?f=c:f=window.getComputedStyle(a.element)[d];e.call(b,d,f)}});this.currentSnapshot=b};g.triggerCallback=function(a){a="start"===a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};Qh.Object.defineProperties(ZLb.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});var $Lb=function(){};g=$Lb.prototype;g.containsElement=function(a,b){return jna(a,b)};g.getParentElement=function(a){return ina(a)};g.query=function(a,b,c){return kna(a,b,c)};g.computeStyle=function(a,b){return window.getComputedStyle(a)[b]};
g.animate=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h={duration:c,delay:d,fill:0==d?"both":"forwards"};e&&(h.easing=e);var k=new Map;e=f.filter(function(u){return u instanceof ZLb});0!==c&&0!==d||e.forEach(function(u){u.currentSnapshot.forEach(function(x,y){return k.set(y,x)})});var q=ona(b).map(function(u){return Ch(u)});q=una(a,q,k);b=Vna(a,q);return new ZLb(a,q,h,b)};var Mx=function(a,b){this._nextAnimationId=0;this._renderer=a.createRenderer(b.body,{id:"0",encapsulation:2,styles:[],data:{animation:[]}})};W(Mx,iLb);Mx.prototype.build=function(a){var b=this._nextAnimationId.toString();this._nextAnimationId++;a=[Array.isArray(a)?{type:2,steps:a,options:null}:a];this._renderer.setProperty(null,"@@"+b+":register",a);return new aMb(b,this._renderer)};Mx.\u0275fac=function(a){return new (a||Mx)(n(ju),n(Oh))};Mx.\u0275prov=$c({token:Mx,factory:Mx.\u0275fac});
var aMb=function(a,b){this._id=a;this._renderer=b};W(aMb,jLb);aMb.prototype.create=function(a,b){return new bMb(this._id,a,b||{},this._renderer)};var bMb=function(a,b,c,d){this.id=a;this.element=b;this._renderer=d;this.parentPlayer=null;this._started=!1;this.totalTime=0;this._command("create",c)};g=bMb.prototype;g._listen=function(a,b){return this._renderer.listen(this.element,"@@"+this.id+":"+a,b)};
g._command=function(a){return this._renderer.setProperty(this.element,"@@"+this.id+":"+a,xd.apply(1,arguments))};g.onDone=function(a){this._listen("done",a)};g.onStart=function(a){this._listen("start",a)};g.onDestroy=function(a){this._listen("destroy",a)};g.init=function(){this._command("init")};g.hasStarted=function(){return this._started};g.play=function(){this._command("play");this._started=!0};g.pause=function(){this._command("pause")};g.restart=function(){this._command("restart")};g.finish=function(){this._command("finish")};
g.destroy=function(){this._command("destroy")};g.reset=function(){this._command("reset");this._started=!1};g.setPosition=function(a){this._command("setPosition",a)};g.getPosition=function(){var a,b;return null!=(b=null==(a=this._renderer.engine.players[+this.id])?void 0:a.getPosition())?b:0};var Nx=function(a,b,c){this.delegate=a;this.engine=b;this._zone=c;this._currentId=0;this._microtaskId=1;this._animationCallbacksBuffer=[];this._rendererCache=new Map;this._cdRecurDepth=0;b.onRemovalComplete=function(d,e){var f=null==e?void 0:e.parentNode(d);f&&e.removeChild(f,d)}};
Nx.prototype.createRenderer=function(a,b){var c=this,d=this.delegate.createRenderer(a,b);if(!(a&&b&&b.data&&b.data.animation))return b=this._rendererCache.get(d),b||(b=new Ox("",d,this.engine,function(){return c._rendererCache.delete(d)}),this._rendererCache.set(d,b)),b;var e=b.id,f=b.id+"-"+this._currentId;this._currentId++;this.engine.register(f,a);var h=function(k){Array.isArray(k)?k.forEach(h):c.engine.registerTrigger(e,f,a,k.name,k)};b.data.animation.forEach(h);return new cMb(this,f,d,this.engine)};
Nx.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};Nx.prototype._scheduleCountTask=function(){var a=this;queueMicrotask(function(){a._microtaskId++})};
var dMb=function(a,b,c,d){0<=b&&b<a._microtaskId?a._zone.run(function(){return c(d)}):(0==a._animationCallbacksBuffer.length&&queueMicrotask(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(e){var f=l(e);e=f.next().value;f=f.next().value;e(f)});a._animationCallbacksBuffer=[]})}),a._animationCallbacksBuffer.push([c,d]))};
Nx.prototype.end=function(){var a=this;this._cdRecurDepth--;0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){a._scheduleCountTask();a.engine.flush(a._microtaskId)});this.delegate.end&&this.delegate.end()};Nx.\u0275fac=function(a){return new (a||Nx)(n(ju),n(Lx),n(Df))};Nx.\u0275prov=$c({token:Nx,factory:Nx.\u0275fac});var Ox=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d};g=Ox.prototype;
g.destroyNode=function(a){var b,c;null==(c=(b=this.delegate).destroyNode)||c.call(b,a)};g.destroy=function(){var a=this;this.engine.destroy(this.namespaceId,this.delegate);this.engine.afterFlushAnimationsDone(function(){queueMicrotask(function(){a.delegate.destroy()})});var b;null==(b=this._onDestroy)||b.call(this)};g.createElement=function(a,b){return this.delegate.createElement(a,b)};g.createComment=function(a){return this.delegate.createComment(a)};g.createText=function(a){return this.delegate.createText(a)};
g.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};g.insertBefore=function(a,b,c,d){d=void 0===d?!0:d;this.delegate.insertBefore(a,b,c);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,d)};g.removeChild=function(a,b){this.engine.onRemove(this.namespaceId,b,this.delegate)};g.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};g.parentNode=function(a){return this.delegate.parentNode(a)};
g.nextSibling=function(a){return this.delegate.nextSibling(a)};g.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};g.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};g.addClass=function(a,b){this.delegate.addClass(a,b)};g.removeClass=function(a,b){this.delegate.removeClass(a,b)};g.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};g.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};
g.setProperty=function(a,b,c){"@"==b.charAt(0)&&"@.disabled"==b?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};g.setValue=function(a,b){this.delegate.setValue(a,b)};g.listen=function(a,b,c){return this.delegate.listen(a,b,c)};g.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};Qh.Object.defineProperties(Ox.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});
var cMb=function(a,b,c,d,e){Ox.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};W(cMb,Ox);cMb.prototype.setProperty=function(a,b,c){"@"==b.charAt(0)?"."==b.charAt(1)&&"@.disabled"==b?this.disableAnimations(a,void 0===c?!0:!!c):this.engine.process(this.namespaceId,a,b.slice(1),c):this.delegate.setProperty(a,b,c)};
cMb.prototype.listen=function(a,b,c){var d=this;if("@"==b.charAt(0)){a=Wna(a);b=b.slice(1);var e="";"@"!=b.charAt(0)&&(e=l(Xna(b)),b=e.next().value,e=e.next().value);return this.engine.listen(this.namespaceId,a,b,e,function(f){dMb(d.factory,f._data||-1,c,f)})}return this.delegate.listen(a,b,c)};var Px=function(a,b,c){Lx.call(this,a.body,b,c)};W(Px,Lx);Px.prototype.ngOnDestroy=function(){this.flush()};Px.\u0275fac=function(a){return new (a||Px)(n(Oh),n(zLb),n(wLb),n(vv))};Px.\u0275prov=$c({token:Px,factory:Px.\u0275fac});var eMb=[{provide:iLb,useClass:Mx},{provide:wLb,useFactory:function(){return new yLb}},{provide:Lx,useClass:Px},{provide:ju,useFactory:function(a,b,c){return new Nx(a,b,c)},deps:[dx,Lx,Df]}],fMb=[{provide:zLb,useFactory:function(){return new $Lb}},{provide:iu,useValue:"BrowserAnimations"}].concat(p(eMb));
[{provide:zLb,useClass:Hx},{provide:iu,useValue:"NoopAnimations"}].concat(p(eMb));var Qx=function(){};Qx.\u0275fac=function(a){return new (a||Qx)};Qx.\u0275mod=qd({type:Qx});Qx.\u0275inj=ad({providers:fMb,imports:[zx]});var gMb=new Set,Rx,Sx=function(a,b){this._platform=a;this._nonce=b;this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Yna};Sx.prototype.matchMedia=function(a){if(this._platform.WEBKIT||this._platform.BLINK){var b=this._nonce;if(!gMb.has(a))try{Rx||(Rx=document.createElement("style"),b&&(Rx.nonce=b),Rx.setAttribute("type","text/css"),document.head.appendChild(Rx)),Rx.sheet&&(Rx.sheet.insertRule("@media "+a+" {body{ }}",0),gMb.add(a))}catch(c){console.error(c)}}return this._matchMedia(a)};
Sx.\u0275fac=function(a){return new (a||Sx)(n(Fw),n(iHb,8))};Sx.\u0275prov=$c({token:Sx,factory:Sx.\u0275fac,providedIn:"root"});var Tx=function(a,b){this._mediaMatcher=a;this._zone=b;this._queries=new Map;this._destroySubject=new B.Subject};Tx.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
Tx.prototype.observe=function(a){var b=this;a=Zna(mma(a)).map(function(c){return b._registerQuery(c).observable});a=(0,B.combineLatest)(a);a=(0,B.concat)(a.pipe(nf()),a.pipe(xf(1),jf(0)));return a.pipe(A(function(c){var d={matches:!1,breakpoints:{}};c.forEach(function(e){var f=e.matches;e=e.query;d.matches=d.matches||f;d.breakpoints[e]=f});return d}))};
Tx.prototype._registerQuery=function(a){var b=this;if(this._queries.has(a))return this._queries.get(a);var c=this._mediaMatcher.matchMedia(a),d={observable:(new B.Observable(function(e){var f=function(h){return b._zone.run(function(){return e.next(h)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(yf(c),A(function(e){return{query:a,matches:e.matches}}),Af(this._destroySubject)),mql:c};this._queries.set(a,d);return d};Tx.\u0275fac=function(a){return new (a||Tx)(n(Sx),n(Df))};
Tx.\u0275prov=$c({token:Tx,factory:Tx.\u0275fac,providedIn:"root"});var Ux=function(a,b){var c=this;this._platform=a;this._document=b;this._breakpointSubscription=jd(Tx).observe("(forced-colors: active)").subscribe(function(){c._hasCheckedHighContrastMode&&(c._hasCheckedHighContrastMode=!1,c._applyBodyHighContrastModeCssClasses())})},hMb=function(a){if(!a._platform.isBrowser)return 0;var b=a._document.createElement("div");b.style.backgroundColor="rgb(1,2,3)";b.style.position="absolute";a._document.body.appendChild(b);a=(a=a._document.defaultView||window)&&a.getComputedStyle?
a.getComputedStyle(b):null;a=(a&&a.backgroundColor||"").replace(/ /g,"");b.remove();switch(a){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return 2;case "rgb(255,255,255)":case "rgb(255,250,239)":return 1}return 0};Ux.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
Ux.prototype._applyBodyHighContrastModeCssClasses=function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var a=this._document.body.classList;a.remove("cdk-high-contrast-active","cdk-high-contrast-black-on-white","cdk-high-contrast-white-on-black");this._hasCheckedHighContrastMode=!0;var b=hMb(this);1===b?a.add("cdk-high-contrast-active","cdk-high-contrast-black-on-white"):2===b&&a.add("cdk-high-contrast-active","cdk-high-contrast-white-on-black")}};
Ux.\u0275fac=function(a){return new (a||Ux)(n(Fw),n(Oh))};Ux.\u0275prov=$c({token:Ux,factory:Ux.\u0275fac,providedIn:"root"});var iMb=new Ad("liveAnnouncerElement",{providedIn:"root",factory:$na}),jMb=new Ad("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var Vx=function(){};Vx.prototype.create=function(a){return"undefined"===typeof MutationObserver?null:new MutationObserver(a)};Vx.\u0275fac=function(a){return new (a||Vx)};Vx.\u0275prov=$c({token:Vx,factory:Vx.\u0275fac,providedIn:"root"});var Wx=function(a){this._mutationObserverFactory=a;this._observedElements=new Map};g=Wx.prototype;g.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
g.observe=function(a){var b=this,c=ch(a);return new B.Observable(function(d){var e=b._observeElement(c).subscribe(d);return function(){e.unsubscribe();b._unobserveElement(c)}})};g._observeElement=function(a){if(this._observedElements.has(a))this._observedElements.get(a).count++;else{var b=new B.Subject,c=this._mutationObserverFactory.create(function(d){return b.next(d)});c&&c.observe(a,{characterData:!0,childList:!0,subtree:!0});this._observedElements.set(a,{observer:c,stream:b,count:1})}return this._observedElements.get(a).stream};
g._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};g._cleanupObserver=function(a){if(this._observedElements.has(a)){var b=this._observedElements.get(a),c=b.observer;b=b.stream;c&&c.disconnect();b.complete();this._observedElements.delete(a)}};Wx.\u0275fac=function(a){return new (a||Wx)(n(Vx))};Wx.\u0275prov=$c({token:Wx,factory:Wx.\u0275fac,providedIn:"root"});
var Xx=function(a,b,c){this._contentObserver=a;this._elementRef=b;this._ngZone=c;this.event=new Yu;this._disabled=!1;this._currentSubscription=null};Xx.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};Xx.prototype.ngOnDestroy=function(){this._unsubscribe()};
Xx.prototype._subscribe=function(){var a=this;this._unsubscribe();var b=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){a._currentSubscription=(a.debounce?b.pipe(jf(a.debounce)):b).subscribe(a.event)})};Xx.prototype._unsubscribe=function(){var a;null==(a=this._currentSubscription)||a.unsubscribe()};
Qh.Object.defineProperties(Xx.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=ah(a))?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=dh(a);this._subscribe()}}});Xx.\u0275fac=function(a){return new (a||Xx)(z(Wx),z(ae),z(Df))};
Xx.\u0275dir=sd({type:Xx,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var Yx=function(){};Yx.\u0275fac=function(a){return new (a||Yx)};Yx.\u0275mod=qd({type:Yx});Yx.\u0275inj=ad({providers:[Vx]});var kMb=0,Zx=function(a,b,c,d){this._ngZone=b;this._defaultOptions=d;this._document=c;this._liveElement=a||this._createLiveElement()};g=Zx.prototype;
g.announce=function(a){var b=xd.apply(1,arguments),c=this,d=this._defaultOptions;if(1===b.length&&"number"===typeof b[0])var e=b[0];else{b=l(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");null==e&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=
new Promise(function(h){return c._currentResolve=h}));clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){c._liveElement.textContent=a;"number"===typeof e&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));c._currentResolve();c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};g.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
g.ngOnDestroy=function(){clearTimeout(this._previousTimeout);var a;null==(a=this._liveElement)||a.remove();this._liveElement=null;var b;null==(b=this._currentResolve)||b.call(this);this._currentPromise=this._currentResolve=void 0};
g._createLiveElement=function(){for(var a=this._document.getElementsByClassName("cdk-live-announcer-element"),b=this._document.createElement("div"),c=0;c<a.length;c++)a[c].remove();b.classList.add("cdk-live-announcer-element");b.classList.add("cdk-visually-hidden");b.setAttribute("aria-atomic","true");b.setAttribute("aria-live","polite");b.id="cdk-live-announcer-"+kMb++;this._document.body.appendChild(b);return b};
g._exposeAnnouncerToModals=function(a){for(var b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");e?-1===e.indexOf(a)&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};Zx.\u0275fac=function(a){return new (a||Zx)(n(iMb,8),n(Df),n(Oh),n(jMb,8))};Zx.\u0275prov=$c({token:Zx,factory:Zx.\u0275fac,providedIn:"root"});var ay=function(a){a._applyBodyHighContrastModeCssClasses()};ay.\u0275fac=function(a){return new (a||ay)(n(Ux))};ay.\u0275mod=qd({type:ay});ay.\u0275inj=ad({imports:[Yx]});var doa=0,by=function(a,b){this._platform=b;this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+doa++;this._document=a;this._id=jd(hHb)+"-"+doa++};by.prototype.describe=function(a,b,c){if(this._canBeDescribed(a,b)){var d=coa(b,c);"string"!==typeof b?(eoa(b,this._id),this._messageRegistry.set(d,{messageElement:b,referenceCount:0})):this._messageRegistry.has(d)||this._createMessageElement(b,c);this._isElementDescribedByMessage(a,d)||this._addMessageReference(a,d)}};
var cy=function(a,b,c,d){if(c&&a._isElementNode(b)){d=coa(c,d);a._isElementDescribedByMessage(b,d)&&a._removeMessageReference(b,d);"string"===typeof c&&(b=a._messageRegistry.get(d))&&0===b.referenceCount&&a._deleteMessageElement(d);var e;0===(null==(e=a._messagesContainer)?void 0:e.childNodes.length)&&(a._messagesContainer.remove(),a._messagesContainer=null)}};g=by.prototype;
g.ngOnDestroy=function(){for(var a=this._document.querySelectorAll('[cdk-describedby-host="'+this._id+'"]'),b=0;b<a.length;b++)this._removeCdkDescribedByReferenceIds(a[b]),a[b].removeAttribute("cdk-describedby-host");var c;null==(c=this._messagesContainer)||c.remove();this._messagesContainer=null;this._messageRegistry.clear()};
g._createMessageElement=function(a,b){var c=this._document.createElement("div");eoa(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(coa(a,b),{messageElement:c,referenceCount:0})};g._deleteMessageElement=function(a){var b,c;null==(b=this._messageRegistry.get(a))||null==(c=b.messageElement)||c.remove();this._messageRegistry.delete(a)};
g._createMessagesContainer=function(){if(!this._messagesContainer){for(var a=this._document.querySelectorAll('.cdk-describedby-message-container[platform="server"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.style.visibility="hidden";a.classList.add("cdk-describedby-message-container");a.classList.add("cdk-visually-hidden");this._platform&&!this._platform.isBrowser&&a.setAttribute("platform","server");this._document.body.appendChild(a);this._messagesContainer=a}};
g._removeCdkDescribedByReferenceIds=function(a){var b=aoa(a,"aria-describedby").filter(function(c){return 0!=c.indexOf("cdk-describedby-message")});a.setAttribute("aria-describedby",b.join(" "))};g._addMessageReference=function(a,b){b=this._messageRegistry.get(b);boa(a,"aria-describedby",b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};
g._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;Nh(a,"aria-describedby",b.messageElement.id);a.removeAttribute("cdk-describedby-host")};g._isElementDescribedByMessage=function(a,b){a=aoa(a,"aria-describedby");b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&-1!=a.indexOf(b)};
g._canBeDescribed=function(a,b){if(!this._isElementNode(a))return!1;if(b&&"object"===typeof b)return!0;b=null==b?"":b.trim();a=a.getAttribute("aria-label");return b?!a||a.trim()!==b:!1};g._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};by.\u0275fac=function(a){return new (a||by)(n(Oh),n(Fw))};by.\u0275prov=$c({token:by,factory:by.\u0275fac,providedIn:"root"});var dy=function(a,b,c,d,e,f,h){Jw.call(this,a,b,c,d,h.defer);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};W(dy,Jw);dy.prototype.destroy=function(){this._focusTrapManager.deregister(this);Jw.prototype.destroy.call(this)};dy.prototype._enable=function(){lMb(this._inertStrategy,this);bKb(this,!0)};dy.prototype._disable=function(){var a=this._inertStrategy;a._listener&&(this._document.removeEventListener("focus",a._listener,!0),a._listener=null);bKb(this,!1)};
Qh.Object.defineProperties(dy.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){(this._enabled=a)?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}}});var mMb=function(){this._listener=null},lMb=function(a,b){a._listener&&b._document.removeEventListener("focus",a._listener,!0);a._listener=function(c){return a._trapFocus(b,c)};b._ngZone.runOutsideAngular(function(){b._document.addEventListener("focus",a._listener,!0)})};mMb.prototype._trapFocus=function(a,b){b=b.target;var c=a._element,d;!b||c.contains(b)||(null==(d=b.closest)?0:d.call(b,"div.cdk-overlay-pane"))||setTimeout(function(){a.enabled&&!c.contains(a._document.activeElement)&&Hw(a)})};var nMb=new Ad("FOCUS_TRAP_INERT_STRATEGY");var ey=function(){this._focusTrapStack=[]};ey.prototype.register=function(a){var b=this._focusTrapStack=this._focusTrapStack.filter(function(c){return c!==a});b.length&&b[b.length-1]._disable();b.push(a);a._enable()};ey.prototype.deregister=function(a){a._disable();var b=this._focusTrapStack;a=b.indexOf(a);-1!==a&&(b.splice(a,1),b.length&&b[b.length-1]._enable())};ey.\u0275fac=function(a){return new (a||ey)};ey.\u0275prov=$c({token:ey,factory:ey.\u0275fac,providedIn:"root"});var fy=function(a,b,c,d,e){this._checker=a;this._ngZone=b;this._focusTrapManager=c;this._document=d;this._inertStrategy=e||new mMb};fy.prototype.create=function(a,b){b=void 0===b?{defer:!1}:b;var c;"boolean"===typeof b?c={defer:b}:c=b;return new dy(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c)};fy.\u0275fac=function(a){return new (a||fy)(n(Gw),n(Df),n(ey),n(Oh),n(nMb,8))};fy.\u0275prov=$c({token:fy,factory:fy.\u0275fac,providedIn:"root"});var gy=function(a){var b=this;this._items=a;this._activeItemIndex=-1;this._activeItem=null;this._wrap=!1;this._letterKeyStream=new B.Subject;this._typeaheadSubscription=B.Subscription.EMPTY;this._vertical=!0;this._allowedModifierKeys=[];this._homeAndEnd=!1;this._pageUpAndDown={enabled:!1,delta:10};this._skipPredicateFn=function(c){return c.disabled};this._pressedLetters=[];this.tabOut=new B.Subject;this.change=new B.Subject;a instanceof Cg&&(this._itemChangesSubscription=a.changes.subscribe(function(c){b._activeItem&&
(c=c.toArray().indexOf(b._activeItem),-1<c&&c!==b._activeItemIndex&&(b._activeItemIndex=c))}))},hy=function(a,b){a._skipPredicateFn=b;return a},iy=function(a){a._wrap=!0;return a},jy=function(a,b){a._vertical=void 0===b?!0:b;return a},ky=function(a,b){a._horizontal=b;return a},oMb=function(a){a._allowedModifierKeys=["shiftKey"];return a},pMb=function(a,b){b=void 0===b?200:b;a._typeaheadSubscription.unsubscribe();a._typeaheadSubscription=a._letterKeyStream.pipe(Bf(function(c){return a._pressedLetters.push(c)}),
jf(b),cf(function(){return 0<a._pressedLetters.length}),A(function(){return a._pressedLetters.join("")})).subscribe(function(c){for(var d=a._getItemsArray(),e=1;e<d.length+1;e++){var f=(a._activeItemIndex+e)%d.length,h=d[f];if(!a._skipPredicateFn(h)&&0===h.getLabel().toUpperCase().trim().indexOf(c)){a.setActiveItem(f);break}}a._pressedLetters=[]});return a},ly=function(a){a._homeAndEnd=!0;return a},qMb=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};
gy.prototype.setActiveItem=function(a){var b=this._activeItem;my(this,a);this._activeItem!==b&&this.change.next(this._activeItemIndex)};
gy.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(e){return!a[e]||-1<b._allowedModifierKeys.indexOf(e)});switch(c){case 9:this.tabOut.next();return;case 40:if(this._vertical&&d){this.setNextItemActive();break}else return;case 38:if(this._vertical&&d){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&d){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&
d){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&d){this._setActiveItemByIndex(0,1);break}else return;case 35:if(this._homeAndEnd&&d){rMb(this);break}else return;case 33:if(this._pageUpAndDown.enabled&&d){c=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(0<c?c:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&d){c=this._activeItemIndex+this._pageUpAndDown.delta;d=this._getItemsArray().length;
this._setActiveItemByIndex(c<d?c:d-1,-1);break}else return;default:if(d||eh(a,"shiftKey"))a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(65<=c&&90>=c||48<=c&&57>=c)&&this._letterKeyStream.next(String.fromCharCode(c));return}this._pressedLetters=[];a.preventDefault()};var rMb=function(a){a._setActiveItemByIndex(a._items.length-1,-1)};gy.prototype.setNextItemActive=function(){0>this._activeItemIndex?this._setActiveItemByIndex(0,1):this._setActiveItemByDelta(1)};
gy.prototype.setPreviousItemActive=function(){0>this._activeItemIndex&&this._wrap?rMb(this):this._setActiveItemByDelta(-1)};var my=function(a,b){var c=a._getItemsArray();b="number"===typeof b?b:c.indexOf(b);c=c[b];a._activeItem=null==c?null:c;a._activeItemIndex=b};g=gy.prototype;
g.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;null==(a=this._itemChangesSubscription)||a.unsubscribe();this._letterKeyStream.complete();this.tabOut.complete();this.change.complete();this._pressedLetters=[]};g._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};
g._setActiveInWrapMode=function(a){for(var b=this._getItemsArray(),c=1;c<=b.length;c++){var d=(this._activeItemIndex+a*c+b.length)%b.length;if(!this._skipPredicateFn(b[d])){this.setActiveItem(d);break}}};g._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)};g._setActiveItemByIndex=function(a,b){var c=this._getItemsArray();if(c[a]){for(;this._skipPredicateFn(c[a]);)if(a+=b,!c[a])return;this.setActiveItem(a)}};
g._getItemsArray=function(){return this._items instanceof Cg?this._items.toArray():this._items};Qh.Object.defineProperties(gy.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem}}});var ny=function(){gy.apply(this,arguments)};W(ny,gy);ny.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();gy.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};var oy=function(){gy.apply(this,arguments);this._origin="program"};W(oy,gy);var sMb=function(a,b){a._origin=b;return a};oy.prototype.setActiveItem=function(a){gy.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};var tMb=new Ad("cdk-dir-doc",{providedIn:"root",factory:foa});var uMb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,py=function(a){this.value="ltr";this.change=new Yu;if(a){var b=a.documentElement?a.documentElement.dir:null;b=(a.body?a.body.dir:null)||b||"ltr";b=(null==b?void 0:b.toLowerCase())||"";var c;this.value="auto"===b&&"undefined"!==typeof navigator&&(null==(c=navigator)?0:c.language)?uMb.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}};py.prototype.ngOnDestroy=function(){this.change.complete()};
py.\u0275fac=function(a){return new (a||py)(n(tMb,8))};py.\u0275prov=$c({token:py,factory:py.\u0275fac,providedIn:"root"});var qy=function(){};qy.\u0275fac=function(a){return new (a||qy)};qy.\u0275mod=qd({type:qy});qy.\u0275inj=ad({});var ry=function(a){this._attachedOverlays=[];this._document=a};ry.prototype.ngOnDestroy=function(){this.detach()};ry.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};ry.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);-1<a&&this._attachedOverlays.splice(a,1);0===this._attachedOverlays.length&&this.detach()};ry.\u0275fac=function(a){return new (a||ry)(n(Oh))};ry.\u0275prov=$c({token:ry,factory:ry.\u0275fac,providedIn:"root"});var sy=function(a,b){ry.call(this,a);var c=this;this._ngZone=b;this._keydownListener=function(d){for(var e=c._attachedOverlays,f={},h=e.length-1;-1<h;f={keydownEvents:f.keydownEvents},h--)if(0<e[h]._keydownEvents.observers.length){f.keydownEvents=e[h]._keydownEvents;c._ngZone?c._ngZone.run(function(k){return function(){return k.keydownEvents.next(d)}}(f)):f.keydownEvents.next(d);break}}};W(sy,ry);
sy.prototype.add=function(a){var b=this;ry.prototype.add.call(this,a);this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return b._document.body.addEventListener("keydown",b._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)};sy.prototype.detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)};
sy.\u0275fac=function(a){return new (a||sy)(n(Oh),n(Df,8))};sy.\u0275prov=$c({token:sy,factory:sy.\u0275fac,providedIn:"root"});var ty=function(a,b,c){ry.call(this,a);var d=this;this._platform=b;this._ngZone=c;this._cursorStyleIsSet=!1;this._pointerDownListener=function(e){d._pointerDownEventTarget=$g(e)};this._clickListener=function(e){var f=$g(e),h="click"===e.type&&d._pointerDownEventTarget?d._pointerDownEventTarget:f;d._pointerDownEventTarget=null;for(var k=d._attachedOverlays.slice(),q={},u=k.length-1;-1<u;q={outsidePointerEvents:q.outsidePointerEvents},u--){var x=k[u];if(!(1>x._outsidePointerEvents.observers.length)&&
x.hasAttached()){if(x.overlayElement.contains(f)||x.overlayElement.contains(h))break;q.outsidePointerEvents=x._outsidePointerEvents;d._ngZone?d._ngZone.run(function(y){return function(){return y.outsidePointerEvents.next(e)}}(q)):q.outsidePointerEvents.next(e)}}}};W(ty,ry);
ty.prototype.add=function(a){var b=this;ry.prototype.add.call(this,a);if(!this._isAttached){var c=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return b._addEventListeners(c)}):this._addEventListeners(c);this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor="pointer",this._cursorStyleIsSet=!0);this._isAttached=!0}};
ty.prototype.detach=function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0);a.removeEventListener("click",this._clickListener,!0);a.removeEventListener("auxclick",this._clickListener,!0);a.removeEventListener("contextmenu",this._clickListener,!0);this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1);this._isAttached=!1}};
ty.prototype._addEventListeners=function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0);a.addEventListener("click",this._clickListener,!0);a.addEventListener("auxclick",this._clickListener,!0);a.addEventListener("contextmenu",this._clickListener,!0)};ty.\u0275fac=function(a){return new (a||ty)(n(Oh),n(Fw),n(Df,8))};ty.\u0275prov=$c({token:ty,factory:ty.\u0275fac,providedIn:"root"});var uy=function(a,b){this._platform=b;this._document=a};uy.prototype.ngOnDestroy=function(){var a;null==(a=this._containerElement)||a.remove()};var vMb=function(a){a._containerElement||a._createContainer();return a._containerElement};
uy.prototype._createContainer=function(){if(this._platform.isBrowser||jma())for(var a=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.classList.add("cdk-overlay-container");jma()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
uy.\u0275fac=function(a){return new (a||uy)(n(Oh),n(Fw))};uy.\u0275prov=$c({token:uy,factory:uy.\u0275fac,providedIn:"root"});var wMb=ema(),vy=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};vy.prototype.attach=function(){};
vy.prototype.enable=function(){if(this._canBeEnabled()){var a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition();this._previousHTMLStyles.left=a.style.left||"";this._previousHTMLStyles.top=a.style.top||"";a.style.left=bh(-this._previousScrollPosition.left);a.style.top=bh(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
vy.prototype.disable=function(){if(this._isEnabled){var a=this._document.documentElement,b=a.style,c=this._document.body.style,d=b.scrollBehavior||"",e=c.scrollBehavior||"";this._isEnabled=!1;b.left=this._previousHTMLStyles.left;b.top=this._previousHTMLStyles.top;a.classList.remove("cdk-global-scrollblock");wMb&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);wMb&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
vy.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var a=this._document.body,b=this._viewportRuler.getViewportSize();return a.scrollHeight>b.height||a.scrollWidth>b.width};var wy=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._ngZone=b;this._viewportRuler=c;this._config=d;this._scrollSubscription=null;this._detach=function(){e.disable();e._overlayRef.hasAttached()&&e._ngZone.run(function(){return e._overlayRef.detach()})}};wy.prototype.attach=function(a){this._overlayRef=a};
wy.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0).pipe(cf(function(c){return!c||!a._overlayRef.overlayElement.contains(c.elementRef.nativeElement)}));this._config&&this._config.threshold&&1<this._config.threshold?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=b.subscribe(function(){var c=a._viewportRuler.getViewportScrollPosition().top;Math.abs(c-a._initialScrollPosition)>a._config.threshold?
a._detach():a._overlayRef.updatePosition()})):this._scrollSubscription=b.subscribe(this._detach)}};wy.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};wy.prototype.detach=function(){this.disable();this._overlayRef=null};var xy=function(){};xy.prototype.enable=function(){};xy.prototype.disable=function(){};xy.prototype.attach=function(){};var yy=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};yy.prototype.attach=function(a){this._overlayRef=a};
yy.prototype.enable=function(){var a=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){a._overlayRef.updatePosition();if(a._config&&a._config.autoClose){var b=a._overlayRef.overlayElement.getBoundingClientRect(),c=a._viewportRuler.getViewportSize(),d=c.width;c=c.height;goa(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
yy.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};yy.prototype.detach=function(){this.disable();this._overlayRef=null};new Ad("VIRTUAL_SCROLL_STRATEGY");var zy=function(a,b,c){this._ngZone=a;this._platform=b;this._scrolled=new B.Subject;this._globalSubscription=null;this._scrolledCount=0;this.scrollContainers=new Map;this._document=c};zy.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};zy.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
zy.prototype.scrolled=function(a){var b=this;a=void 0===a?20:a;return this._platform.isBrowser?new B.Observable(function(c){b._globalSubscription||b._addGlobalListener();var d=0<a?b._scrolled.pipe(ff(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;b._scrolledCount||b._removeGlobalListener()}}):(0,B.of)()};
zy.prototype.ngOnDestroy=function(){var a=this;this._removeGlobalListener();this.scrollContainers.forEach(function(b,c){return a.deregister(c)});this._scrolled.complete()};var xMb=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};zy.prototype._getWindow=function(){return this._document.defaultView||window};
zy.prototype._scrollableContainsElement=function(a,b){b=ch(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};zy.prototype._addGlobalListener=function(){var a=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return(0,B.fromEvent)(a._getWindow().document,"scroll").subscribe(function(){return a._scrolled.next()})})};
zy.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)};zy.\u0275fac=function(a){return new (a||zy)(n(Df),n(Fw),n(Oh,8))};zy.\u0275prov=$c({token:zy,factory:zy.\u0275fac,providedIn:"root"});var Ay=function(a,b,c,d){var e=this;this.elementRef=a;this.scrollDispatcher=b;this.ngZone=c;this.dir=d;this._destroyed=new B.Subject;this._elementScrolled=new B.Observable(function(f){return e.ngZone.runOutsideAngular(function(){return(0,B.fromEvent)(e.elementRef.nativeElement,"scroll").pipe(Af(e._destroyed)).subscribe(f)})})};Ay.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)};Ay.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
Ay.prototype.scrollTo=function(a){var b=this.elementRef.nativeElement,c=this.dir&&"rtl"==this.dir.value;null==a.left&&(a.left=c?a.end:a.start);null==a.right&&(a.right=c?a.start:a.end);null!=a.bottom&&(a.top=b.scrollHeight-b.clientHeight-a.bottom);c&&0!=gma()?(null!=a.left&&(a.right=b.scrollWidth-b.clientWidth-a.left),2==gma()?a.left=a.right:1==gma()&&(a.left=a.right?-a.right:a.right)):null!=a.right&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
Ay.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;ema()?b.scrollTo(a):(null!=a.top&&(b.scrollTop=a.top),null!=a.left&&(b.scrollLeft=a.left))};Ay.\u0275fac=function(a){return new (a||Ay)(z(ae),z(zy),z(Df),z(py,8))};Ay.\u0275dir=sd({type:Ay,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});var yMb=function(){},zMb=function(a,b,c,d){WIb(a,function(e,f,h){if(null==e.previousIndex){var k=c(e,f,h);k=b.createEmbeddedView(k.templateRef,k.context,k.index);f=1}else null==h?(b.remove(f),f=3):(k=b.get(f),b.move(k,h),f=2);if(d){var q;d({context:null==(q=k)?void 0:q.context,operation:f,record:e})}})};yMb.prototype.detach=function(){};var By=function(a,b,c,d){var e=this;a=void 0===a?!1:a;c=void 0===c?!0:c;this._multiple=a;this._emitChanges=c;this.compareWith=d;this._selection=new Set;this._deselectedToEmit=[];this._selectedToEmit=[];this.changed=new B.Subject;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=By.prototype;
g.select=function(){var a=this;xd.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};g.deselect=function(){var a=this;xd.apply(0,arguments).forEach(function(c){return a._unmarkSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};g.toggle=function(a){return this.isSelected(a)?this.deselect(a):this.select(a)};
g.clear=function(a){a=void 0===a?!0:a;this._unmarkAll();var b=this._hasQueuedChanges();a&&this._emitChangeEvent();return b};g.isSelected=function(a){return this._selection.has(this._getConcreteValue(a))};g.isEmpty=function(){return 0===this._selection.size};g.hasValue=function(){return!this.isEmpty()};g.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
g._emitChangeEvent=function(){this._selected=null;if(this._selectedToEmit.length||this._deselectedToEmit.length)this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]};g._markSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
g._unmarkSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};g._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};g._verifyValueAssignment=function(){};g._hasQueuedChanges=function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)};
g._getConcreteValue=function(a){if(this.compareWith)for(var b=l(this._selection),c=b.next();!c.done;c=b.next())if(c=c.value,this.compareWith(a,c))return c;return a};Qh.Object.defineProperties(By.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});var Cy=function(){this._listeners=[]};Cy.prototype.notify=function(a,b){for(var c=l(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};Cy.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};Cy.prototype.ngOnDestroy=function(){this._listeners=[]};Cy.\u0275fac=function(a){return new (a||Cy)};Cy.\u0275prov=$c({token:Cy,factory:Cy.\u0275fac,providedIn:"root"});var AMb=new Ad("_ViewRepeater");var Dy=function(a,b,c){var d=this;this._platform=a;this._change=new B.Subject;this._changeListener=function(e){d._change.next(e)};this._document=c;b.runOutsideAngular(function(){if(a.isBrowser){var e=d._getWindow();e.addEventListener("resize",d._changeListener);e.addEventListener("orientationchange",d._changeListener)}d.change().subscribe(function(){return d._viewportSize=null})})};g=Dy.prototype;
g.ngOnDestroy=function(){if(this._platform.isBrowser){var a=this._getWindow();a.removeEventListener("resize",this._changeListener);a.removeEventListener("orientationchange",this._changeListener)}this._change.complete()};g.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
g.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var a=this._document,b=this._getWindow(),c=a.documentElement,d=c.getBoundingClientRect();return{top:-d.top||a.body.scrollTop||b.scrollY||c.scrollTop||0,left:-d.left||a.body.scrollLeft||b.scrollX||c.scrollLeft||0}};g.change=function(a){a=void 0===a?20:a;return 0<a?this._change.pipe(ff(a)):this._change};g._getWindow=function(){return this._document.defaultView||window};
g._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};Dy.\u0275fac=function(a){return new (a||Dy)(n(Fw),n(Df),n(Oh,8))};Dy.\u0275prov=$c({token:Dy,factory:Dy.\u0275fac,providedIn:"root"});new Ad("VIRTUAL_SCROLLABLE");var Ey=function(){};Ey.\u0275fac=function(a){return new (a||Ey)};Ey.\u0275mod=qd({type:Ey});Ey.\u0275inj=ad({});var Fy=function(){};Fy.\u0275fac=function(a){return new (a||Fy)};Fy.\u0275mod=qd({type:Fy});Fy.\u0275inj=ad({imports:[qy,Ey,qy,Ey]});var Gy=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this.noop=function(){return new xy};this.close=function(f){return new wy(e._scrollDispatcher,e._ngZone,e._viewportRuler,f)};this.block=function(){return new vy(e._viewportRuler,e._document)};this.reposition=function(f){return new yy(e._scrollDispatcher,e._viewportRuler,e._ngZone,f)};this._document=d};Gy.\u0275fac=function(a){return new (a||Gy)(n(zy),n(Dy),n(Df),n(Oh))};
Gy.\u0275prov=$c({token:Gy,factory:Gy.\u0275fac,providedIn:"root"});var Hy=function(a){this.scrollStrategy=new xy;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,void 0!==a[c]&&(this[c]=a[c])}};var Iy=function(a,b,c,d,e,f,h,k,q,u){var x=this;u=void 0===u?!1:u;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=h;this._location=k;this._outsideClickDispatcher=q;this._animationsDisabled=u;this._backdropElement=null;this._backdropClick=new B.Subject;this._attachments=new B.Subject;this._detachments=new B.Subject;this._locationChanges=B.Subscription.EMPTY;this._backdropClickHandler=function(y){return x._backdropClick.next(y)};
this._backdropTransitionendHandler=function(y){x._disposeBackdrop(y.target)};this._keydownEvents=new B.Subject;this._outsidePointerEvents=new B.Subject;d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};g=Iy.prototype;
g.attach=function(a){var b=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);a=this._portalOutlet.attach(a);this._positionStrategy&&this._positionStrategy.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();this._ngZone.onStable.pipe(nf()).subscribe(function(){b.hasAttached()&&b.updatePosition()});this._togglePointerEvents(!0);this._config.hasBackdrop&&
this._attachBackdrop();this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0);this._attachments.next();this._keyboardDispatcher.add(this);this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return b.dispose()}));this._outsideClickDispatcher.add(this);if("function"===typeof(null==a?void 0:a.onDestroy))a.onDestroy(function(){b.hasAttached()&&b._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return b.detach()})})});
return a};g.detach=function(){if(this.hasAttached()){BMb(this);this._togglePointerEvents(!1);this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach();this._scrollStrategy&&this._scrollStrategy.disable();var a=this._portalOutlet.detach();this._detachments.next();this._keyboardDispatcher.remove(this);this._detachContentWhenStable();this._locationChanges.unsubscribe();this._outsideClickDispatcher.remove(this);return a}};
g.dispose=function(){var a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose();this._disposeScrollStrategy();this._disposeBackdrop(this._backdropElement);this._locationChanges.unsubscribe();this._keyboardDispatcher.remove(this);this._portalOutlet.dispose();this._attachments.complete();this._backdropClick.complete();this._keydownEvents.complete();this._outsidePointerEvents.complete();this._outsideClickDispatcher.remove(this);var b;null==(b=this._host)||b.remove();this._previousHostParent=
this._pane=this._host=null;a&&this._detachments.next();this._detachments.complete()};g.hasAttached=function(){return this._portalOutlet.hasAttached()};g.backdropClick=function(){return this._backdropClick};g.attachments=function(){return this._attachments};g.keydownEvents=function(){return this._keydownEvents};g.outsidePointerEvents=function(){return this._outsidePointerEvents};g.getConfig=function(){return this._config};g.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};
g.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};g.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};g.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};g.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};g.getDirection=function(){var a=this._config.direction;return a?"string"===typeof a?a:a.value:"ltr"};
g._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())};g._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=bh(this._config.width);a.height=bh(this._config.height);a.minWidth=bh(this._config.minWidth);a.minHeight=bh(this._config.minHeight);a.maxWidth=bh(this._config.maxWidth);a.maxHeight=bh(this._config.maxHeight)}};g._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
g._attachBackdrop=function(){var a=this;this._backdropElement=this._document.createElement("div");this._backdropElement.classList.add("cdk-overlay-backdrop");this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation");this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0);this._host.parentElement.insertBefore(this._backdropElement,this._host);this._backdropElement.addEventListener("click",this._backdropClickHandler);
this._animationsDisabled||"undefined"===typeof requestAnimationFrame?this._backdropElement.classList.add("cdk-overlay-backdrop-showing"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a._backdropElement&&a._backdropElement.classList.add("cdk-overlay-backdrop-showing")})})};g._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var BMb=function(a){var b=a._backdropElement;b&&(a._animationsDisabled?a._disposeBackdrop(b):(b.classList.remove("cdk-overlay-backdrop-showing"),a._ngZone.runOutsideAngular(function(){b.addEventListener("transitionend",a._backdropTransitionendHandler)}),b.style.pointerEvents="none",a._backdropTimeout=a._ngZone.runOutsideAngular(function(){return setTimeout(function(){a._disposeBackdrop(b)},500)})))};
Iy.prototype._toggleClasses=function(a,b,c){b=mma(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,p(b)):a.classList.remove.apply(a.classList,p(b)))};
Iy.prototype._detachContentWhenStable=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._ngZone.onStable.pipe(Af((0,B.merge)(a._attachments,a._detachments))).subscribe(function(){a._pane&&a._host&&0!==a._pane.children.length||(a._pane&&a._config.panelClass&&a._toggleClasses(a._pane,a._config.panelClass,!1),a._host&&a._host.parentElement&&(a._previousHostParent=a._host.parentElement,a._host.remove()),b.unsubscribe())})})};
Iy.prototype._disposeScrollStrategy=function(){var a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())};Iy.prototype._disposeBackdrop=function(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null));this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)};
Qh.Object.defineProperties(Iy.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});var CMb=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};var joa=/([A-Za-z%]+)$/,Jy=function(a,b,c,d,e){this._viewportRuler=b;this._document=c;this._platform=d;this._overlayContainer=e;this._lastBoundingBoxSize={width:0,height:0};this._isPushed=!1;this._canPush=!0;this._growAfterOpen=!1;this._hasFlexibleDimensions=!0;this._positionLocked=!1;this._viewportMargin=0;this._scrollables=[];this._preferredPositions=[];this._positionChanges=new B.Subject;this._resizeSubscription=B.Subscription.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};Jy.prototype.attach=function(a){var b=this;a.hostElement.classList.add("cdk-overlay-connected-position-bounding-box");this._overlayRef=a;this._boundingBox=a.hostElement;this._pane=a.overlayElement;this._isDisposed=!1;this._isInitialRender=!0;this._lastPosition=null;this._resizeSubscription.unsubscribe();this._resizeSubscription=this._viewportRuler.change().subscribe(function(){b._isInitialRender=!0;b.apply()})};
Jy.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)DMb(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=vMb(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,h=l(this._preferredPositions),k=h.next();!k.done;k=h.next()){k=k.value;var q=this._getOriginPoint(a,d,k),u=this._getOverlayPoint(q,b,k),x=this._getOverlayFit(u,b,c,k);if(x.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(x,u,c))e.push({position:k,origin:q,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(q,k)});else if(!f||f.overlayFit.visibleArea<x.visibleArea)f={overlayFit:x,
overlayPoint:u,originPoint:q,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=l(e);for(c=e.next();!c.done;c=e.next())c=c.value,d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1),d>b&&(b=d,a=c);this._isPushed=!1;this._applyPosition(a.position,a.origin)}else this._canPush&&(this._isPushed=!0),this._applyPosition(f.position,f.originPoint)}};Jy.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
Jy.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Ph(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)};
var DMb=function(a){if(!a._isDisposed&&a._platform.isBrowser){var b=a._lastPosition;if(b){a._originRect=a._getOriginRect();a._overlayRect=a._pane.getBoundingClientRect();a._viewportRect=a._getNarrowedViewportRect();a._containerRect=vMb(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},EMb=function(a,b){a._scrollables=b;return a},Ky=function(a,b){a._preferredPositions=b;-1===b.indexOf(a._lastPosition)&&(a._lastPosition=
null);return a},Ly=function(a,b){a._viewportMargin=b;return a},My=function(a,b){a._hasFlexibleDimensions=void 0===b?!0:b;return a},FMb=function(a,b){a._growAfterOpen=void 0===b?!0:b;return a},GMb=function(a,b){a._canPush=void 0===b?!0:b;return a},HMb=function(a,b){a._positionLocked=void 0===b?!0:b;return a};Jy.prototype.setOrigin=function(a){this._origin=a;return this};var IMb=function(a,b){a._transformOriginSelector=b;return a};g=Jy.prototype;
g._getOriginPoint=function(a,b,c){if("center"==c.originX)var d=a.left+a.width/2;else{d=this._isRtl()?a.right:a.left;var e=this._isRtl()?a.left:a.right;d="start"==c.originX?d:e}0>b.left&&(d-=b.left);a="center"==c.originY?a.top+a.height/2:"top"==c.originY?a.top:a.bottom;0>b.top&&(a-=b.top);return{x:d,y:a}};
g._getOverlayPoint=function(a,b,c){var d="center"==c.overlayX?-b.width/2:"start"===c.overlayX?this._isRtl()?-b.width:0:this._isRtl()?0:-b.width;return{x:a.x+d,y:a.y+("center"==c.overlayY?-b.height/2:"top"==c.overlayY?0:-b.height)}};
g._getOverlayFit=function(a,b,c,d){b=loa(b);var e=a.x;a=a.y;var f=this._getOffset(d,"x");d=this._getOffset(d,"y");f&&(e+=f);d&&(a+=d);d=-a;a=a+b.height-c.height;c=this._subtractOverflows(b.width,-e,e+b.width-c.width);e=this._subtractOverflows(b.height,d,a);d=c*e;return{visibleArea:d,isCompletelyWithinViewport:b.width*b.height===d,fitsInViewportVertically:e===b.height,fitsInViewportHorizontally:c==b.width}};
g._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=koa(this._overlayRef.getConfig().minHeight);var e=koa(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||null!=e&&e<=c;return(a.fitsInViewportVertically||null!=b&&b<=d)&&c}return!1};
g._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=loa(b);var d=this._viewportRect,e=Math.max(a.x+b.width-d.width,0),f=Math.max(a.y+b.height-d.height,0),h=Math.max(d.top-c.top-a.y,0),k=Math.max(d.left-c.left-a.x,0);e=b.width<=d.width?k||-e:a.x<this._viewportMargin?d.left-c.left-a.x:0;c=b.height<=d.height?h||-f:a.y<this._viewportMargin?d.top-c.top-a.y:0;this._previousPushAmount={x:e,y:c};
return{x:a.x+e,y:a.y+c}};g._applyPosition=function(a,b){this._setTransformOrigin(a);this._setOverlayElementStyles(b,a);this._setBoundingBoxStyles(b,a);a.panelClass&&this._addPanelClasses(a.panelClass);this._lastPosition=a;this._positionChanges.observers.length&&(b=this._getScrollVisibility(),this._positionChanges.next(new CMb(a,b)));this._isInitialRender=!1};
g._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a="center"===a.overlayX?"center":this._isRtl()?"start"===a.overlayX?"right":"left":"start"===a.overlayX?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
g._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if("top"===b.overlayY){var e=a.y;var f=c.height-e+this._viewportMargin}else if("bottom"===b.overlayY){var h=c.height-a.y+2*this._viewportMargin;f=c.height-h+this._viewportMargin}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=2*e;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k="start"===b.overlayX&&!d||"end"===b.overlayX&&d;if("end"===b.overlayX&&!d||"start"===
b.overlayX&&d){var q=c.width-a.x+this._viewportMargin;b=a.x-this._viewportMargin}else if(k){var u=a.x;b=c.right-a.x}else u=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=2*u,u=a.x-u,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.x-c/2);return{top:e,left:u,bottom:h,right:q,width:b,height:f}};
g._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.height=bh(a.height);c.top=bh(a.top);c.bottom=bh(a.bottom);
c.width=bh(a.width);c.left=bh(a.left);c.right=bh(a.right);c.alignItems="center"===b.overlayX?"center":"end"===b.overlayX?"flex-end":"flex-start";c.justifyContent="center"===b.overlayY?"center":"bottom"===b.overlayY?"flex-end":"flex-start";d&&(c.maxHeight=bh(d));e&&(c.maxWidth=bh(e))}this._lastBoundingBoxSize=a;Ph(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){Ph(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){Ph(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
g._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var h=this._viewportRuler.getViewportScrollPosition();Ph(c,this._getExactOverlayY(b,a,h));Ph(c,this._getExactOverlayX(b,a,h))}else c.position="static";a="";h=this._getOffset(b,"x");b=this._getOffset(b,"y");h&&(a+="translateX("+h+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=bh(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=bh(f.maxWidth):e&&(c.maxWidth=""));Ph(this._pane.style,c)};g._getExactOverlayY=function(a,b,c){var d={top:"",bottom:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));"bottom"===a.overlayY?d.bottom=this._document.documentElement.clientHeight-(b.y+this._overlayRect.height)+"px":d.top=bh(b.y);return d};
g._getExactOverlayX=function(a,b,c){var d={left:"",right:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));"right"===(this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left")?d.right=this._document.documentElement.clientWidth-(b.x+this._overlayRect.width)+"px":d.left=bh(b.x);return d};
g._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:hoa(a,c),isOriginOutsideView:goa(a,c),isOverlayClipped:hoa(b,c),isOverlayOutsideView:goa(b,c)}};g._subtractOverflows=function(a){return xd.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
g._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+a-this._viewportMargin,bottom:c.top+b-this._viewportMargin,width:a-2*this._viewportMargin,height:b-2*this._viewportMargin}};g._isRtl=function(){return"rtl"===this._overlayRef.getDirection()};
g._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};g._getOffset=function(a,b){return"x"===b?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY};g._validatePositions=function(){};g._addPanelClasses=function(a){var b=this;this._pane&&mma(a).forEach(function(c){""!==c&&-1===b._appliedPanelClasses.indexOf(c)&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
g._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};g._getOriginRect=function(){var a=this._origin;if(a instanceof ae)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();var b=a.width||0,c=a.height||0;return{top:a.y,bottom:a.y+c,left:a.x,right:a.x+b,height:c,width:b}};
Qh.Object.defineProperties(Jy.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});var JMb=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=JMb.prototype;g.attach=function(a){var b=a.getConfig();this._overlayRef=a;this._width&&!b.width&&a.updateSize({width:this._width});this._height&&!b.height&&a.updateSize({height:this._height});a.hostElement.classList.add("cdk-global-overlay-wrapper");this._isDisposed=!1};
g.top=function(a){this._bottomOffset="";this._topOffset=void 0===a?"":a;this._alignItems="flex-start";return this};g.left=function(a){this._xOffset=void 0===a?"":a;this._xPosition="left";return this};g.bottom=function(a){this._topOffset="";this._bottomOffset=void 0===a?"":a;this._alignItems="flex-end";return this};g.right=function(a){this._xOffset=void 0===a?"":a;this._xPosition="right";return this};g.start=function(a){this._xOffset=void 0===a?"":a;this._xPosition="start";return this};
g.end=function(a){this._xOffset=void 0===a?"":a;this._xPosition="end";return this};g.width=function(a){a=void 0===a?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};g.height=function(a){a=void 0===a?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};var KMb=function(a){a.left("");a._xPosition="center";return a},LMb=function(a){a.top("");a._alignItems="center";return a};
JMb.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),d=c.width,e=c.height,f=c.maxWidth;c=c.maxHeight;d=("100%"===d||"100vw"===d)&&(!f||"100%"===f||"100vw"===f);e=("100%"===e||"100vh"===e)&&(!c||"100%"===c||"100vh"===c);f=this._xPosition;c=this._xOffset;var h="rtl"===this._overlayRef.getConfig().direction,k="",q="",u="";if(d)u="flex-start";else if("center"===
f)u="center",h?q=c:k=c;else if(h)if("left"===f||"end"===f)u="flex-end",k=c;else{if("right"===f||"start"===f)u="flex-start",q=c}else if("left"===f||"start"===f)u="flex-start",k=c;else if("right"===f||"end"===f)u="flex-end",q=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":q;b.justifyContent=u;b.alignItems=e?"flex-start":this._alignItems}};
JMb.prototype.dispose=function(){if(!this._isDisposed&&this._overlayRef){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement,c=b.style;b.classList.remove("cdk-global-overlay-wrapper");c.justifyContent=c.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="";this._overlayRef=null;this._isDisposed=!0}};var Ny=function(a,b,c,d){this._viewportRuler=a;this._document=b;this._platform=c;this._overlayContainer=d};Ny.prototype.global=function(){return new JMb};var Oy=function(a,b){return new Jy(b,a._viewportRuler,a._document,a._platform,a._overlayContainer)};Ny.\u0275fac=function(a){return new (a||Ny)(n(Dy),n(Oh),n(Fw),n(uy))};Ny.\u0275prov=$c({token:Ny,factory:Ny.\u0275fac,providedIn:"root"});var MMb=0,Py=function(a,b,c,d,e,f,h,k,q,u,x,y){this.scrollStrategies=a;this._overlayContainer=b;this._componentFactoryResolver=c;this._positionBuilder=d;this._keyboardDispatcher=e;this._injector=f;this._ngZone=h;this._document=k;this._directionality=q;this._location=u;this._outsideClickDispatcher=x;this._animationsModuleType=y};g=Py.prototype;
g.create=function(a){var b=this._createHostElement(),c=this._createPaneElement(b),d=this._createPortalOutlet(c);a=new Hy(a);a.direction=a.direction||this._directionality.value;return new Iy(d,b,c,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)};g.position=function(){return this._positionBuilder};
g._createPaneElement=function(a){var b=this._document.createElement("div");b.id="cdk-overlay-"+MMb++;b.classList.add("cdk-overlay-pane");a.appendChild(b);return b};g._createHostElement=function(){var a=this._document.createElement("div");vMb(this._overlayContainer).appendChild(a);return a};g._createPortalOutlet=function(a){this._appRef||(this._appRef=this._injector.get(vv));return new Vw(a,this._componentFactoryResolver,this._appRef,this._injector,this._document)};
Py.\u0275fac=function(a){return new (a||Py)(n(Gy),n(uy),n(fu),n(Ny),n(sy),n(eu),n(Df),n(Oh),n(py),n($v),n(ty),n(iu,8))};Py.\u0275prov=$c({token:Py,factory:Py.\u0275fac,providedIn:"root"});var NMb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],OMb=new Ad("cdk-connected-overlay-scroll-strategy"),Qy=function(a){this.elementRef=a};Qy.\u0275fac=function(a){return new (a||Qy)(z(ae))};
Qy.\u0275dir=sd({type:Qy,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});
var Ry=function(a,b,c,d,e){this._overlay=a;this._dir=e;this._push=this._flexibleDimensions=this._growAfterOpen=this._lockPosition=this._hasBackdrop=!1;this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=B.Subscription.EMPTY;this._disposeOnNavigation=!1;this.viewportMargin=0;this.disableClose=this.open=!1;this.backdropClick=new Yu;this.positionChange=new Yu;this.attach=new Yu;this.detach=new Yu;this.overlayKeydown=new Yu;this.overlayOutsideClick=
new Yu;this._templatePortal=new Tw(b,c);this._scrollStrategyFactory=d;this.scrollStrategy=this._scrollStrategyFactory()};g=Ry.prototype;g.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();this._overlayRef&&this._overlayRef.dispose()};
g.ngOnChanges=function(a){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),a.origin&&this.open&&this._position.apply());a.open&&(this.open?this._attachOverlay():this._detachOverlay())};
g._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=NMb);var b=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=b.attachments().subscribe(function(){return a.attach.emit()});this._detachSubscription=b._detachments.subscribe(function(){return a.detach.emit()});b.keydownEvents().subscribe(function(c){a.overlayKeydown.next(c);27!==c.keyCode||a.disableClose||eh(c)||(c.preventDefault(),a._detachOverlay())});this._overlayRef.outsidePointerEvents().subscribe(function(c){a.overlayOutsideClick.next(c)})};
g._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new Hy({direction:this._dir,positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});if(this.width||0===this.width)a.width=this.width;if(this.height||0===this.height)a.height=this.height;if(this.minWidth||0===this.minWidth)a.minWidth=this.minWidth;if(this.minHeight||0===this.minHeight)a.minHeight=this.minHeight;this.backdropClass&&
(a.backdropClass=this.backdropClass);this.panelClass&&(a.panelClass=this.panelClass);return a};
g._updatePositionStrategy=function(a){var b=this,c=this.positions.map(function(d){return{originX:d.originX,originY:d.originY,overlayX:d.overlayX,overlayY:d.overlayY,offsetX:d.offsetX||b.offsetX,offsetY:d.offsetY||b.offsetY,panelClass:d.panelClass||void 0}});return IMb(HMb(Ly(FMb(GMb(My(Ky(a.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=Oy(this._overlay.position(),this._getFlexibleConnectedPositionStrategyOrigin());this._updatePositionStrategy(a);return a};g._getFlexibleConnectedPositionStrategyOrigin=function(){return this.origin instanceof Qy?this.origin.elementRef:this.origin};
g._attachOverlay=function(){var a=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay();this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal);this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(b){a.backdropClick.emit(b)}):this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();0<this.positionChange.observers.length&&(this._positionSubscription=this._position.positionChanges.pipe(Kia(function(){return 0<
a.positionChange.observers.length})).subscribe(function(b){a.positionChange.emit(b);0===a.positionChange.observers.length&&a._positionSubscription.unsubscribe()}))};g._detachOverlay=function(){this._overlayRef&&this._overlayRef.detach();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe()};
Qh.Object.defineProperties(Ry.prototype,{offsetX:{configurable:!0,enumerable:!0,get:function(){return this._offsetX},set:function(a){this._offsetX=a;this._position&&this._updatePositionStrategy(this._position)}},offsetY:{configurable:!0,enumerable:!0,get:function(){return this._offsetY},set:function(a){this._offsetY=a;this._position&&this._updatePositionStrategy(this._position)}},hasBackdrop:{configurable:!0,enumerable:!0,get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=
ah(a)}},lockPosition:{configurable:!0,enumerable:!0,get:function(){return this._lockPosition},set:function(a){this._lockPosition=ah(a)}},flexibleDimensions:{configurable:!0,enumerable:!0,get:function(){return this._flexibleDimensions},set:function(a){this._flexibleDimensions=ah(a)}},growAfterOpen:{configurable:!0,enumerable:!0,get:function(){return this._growAfterOpen},set:function(a){this._growAfterOpen=ah(a)}},push:{configurable:!0,enumerable:!0,get:function(){return this._push},set:function(a){this._push=
ah(a)}},disposeOnNavigation:{configurable:!0,enumerable:!0,get:function(){return this._disposeOnNavigation},set:function(a){this._disposeOnNavigation=a}},overlayRef:{configurable:!0,enumerable:!0,get:function(){return this._overlayRef}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir?this._dir.value:"ltr"}}});Ry.\u0275fac=function(a){return new (a||Ry)(z(Py),z(vg),z(wg),z(OMb),z(py,8))};
Ry.\u0275dir=sd({type:Ry,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth",
"minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],
hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],disposeOnNavigation:["cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Gg]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",
overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[tja,Fd]});var PMb={provide:OMb,deps:[Py],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};var Sy=function(){};Sy.\u0275fac=function(a){return new (a||Sy)};Sy.\u0275mod=qd({type:Sy});Sy.\u0275inj=ad({providers:[Py,PMb],imports:[qy,Yw,Fy,Fy]});new nu;new nu;var QMb=new Ad("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Ty=function(a,b,c){this._sanityChecks=b;this._document=c;this._hasDoneGlobalChecks=!1;a._applyBodyHighContrastModeCssClasses();this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)};Ty.prototype._checkIsEnabled=function(a){return jma()?!1:"boolean"===typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[a]};Ty.\u0275fac=function(a){return new (a||Ty)(n(Ux),n(QMb,8),n(Oh))};Ty.\u0275mod=qd({type:Ty});
Ty.\u0275inj=ad({imports:[qy,qy]});new Ad("MAT_DATE_LOCALE",{providedIn:"root",factory:noa});var Uy=function(){this.localeChanges=this._localeChanges=new B.Subject},Wy=function(a,b){return Vy(b)&&a.isValid(b)?b:null};Uy.prototype.deserialize=function(a){return null==a||Vy(a)&&this.isValid(a)?a:this.invalid()};Uy.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var Xy=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};
Uy.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!Xy(this,a,b):c==d}return a==b};var RMb=function(a,b,c,d){return c&&0>Xy(a,b,c)?c:d&&0<Xy(a,b,d)?d:b};var Yy=new Ad("mat-date-formats");var Zy=function(){};Zy.prototype.isErrorState=function(a,b){return!!(a&&a.invalid&&(a.touched||b&&b.submitted))};Zy.\u0275fac=function(a){return new (a||Zy)};Zy.\u0275prov=$c({token:Zy,factory:Zy.\u0275fac,providedIn:"root"});var $y=function(){};$y.\u0275fac=function(a){return new (a||$y)};$y.\u0275dir=sd({type:$y,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var az=function(){};az.\u0275fac=function(a){return new (a||az)};az.\u0275mod=qd({type:az});az.\u0275inj=ad({imports:[Ty,Ty]});var SMb=new Ad("MAT_OPTION_PARENT_COMPONENT");Th(function(){});var TMb=new Ad("MatOptgroup");var UMb=Xg({passive:!0,capture:!0}),WMb=function(a,b,c,d){var e=VMb,f=e._events.get(b);f?(a=f.get(c))?a.add(d):f.set(c,new Set([d])):(e._events.set(b,new Map([[c,new Set([d])]])),a.runOutsideAngular(function(){document.addEventListener(b,e._delegateEventHandler,UMb)}))};var XMb=function(a,b,c,d){d=void 0===d?!1:d;this._renderer=a;this.element=b;this.config=c;this._animationForciblyDisabledThroughCss=d;this.state=3};var YMb={enterDuration:225,exitDuration:150},ZMb=Xg({passive:!0,capture:!0}),$Mb=["mousedown","touchstart"],aNb=["mouseup","mouseleave","touchend","touchcancel"],bNb=function(a,b,c,d){this._target=a;this._ngZone=b;this._platform=d;this._isPointerDown=!1;this._activeRipples=new Map;this._pointerUpEventsRegistered=!1;d.isBrowser&&(this._containerElement=ch(c))},cNb=function(a,b,c,d){d=void 0===d?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},
YMb,d.animation);d.centered&&(b=e.left+e.width/2,c=e.top+e.height/2);var h=d.radius||poa(b,c,e);b-=e.left;var k=c-e.top;c=f.enterDuration;var q=document.createElement("div");q.classList.add("mat-ripple-element");q.style.left=b-h+"px";q.style.top=k-h+"px";q.style.height=2*h+"px";q.style.width=2*h+"px";null!=d.color&&(q.style.backgroundColor=d.color);q.style.transitionDuration=c+"ms";a._containerElement.appendChild(q);h=window.getComputedStyle(q);b=h.transitionDuration;e="none"===h.transitionProperty||
"0s"===b||"0s, 0s"===b||0===e.width&&0===e.height;var u=new XMb(a,q,d,e);q.style.transform="scale3d(1, 1, 1)";u.state=0;d.persistent||(a._mostRecentTransientRipple=u);var x=null;e||!c&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var y=function(){return a._finishRippleTransition(u)},E=function(){return a._destroyRipple(u)};q.addEventListener("transitionend",y);q.addEventListener("transitioncancel",E);x={onTransitionEnd:y,onTransitionCancel:E}});a._activeRipples.set(u,x);!e&&c||a._finishRippleTransition(u);
return u},dNb=function(a,b){if(2!==b.state&&3!==b.state){var c=b.element,d=Object.assign({},YMb,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};bNb.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||dNb(a._renderer,a)})};
var eNb=function(a,b){var c=ch(b);a._platform.isBrowser&&c&&c!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=c,$Mb.forEach(function(d){WMb(a._ngZone,d,c,a)}))};g=bNb.prototype;
g.handleEvent=function(a){var b=this;"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(function(){aNb.forEach(function(c){b._triggerElement.addEventListener(c,b,ZMb)})}),this._pointerUpEventsRegistered=!0)};g._finishRippleTransition=function(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)};
g._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||dNb(a._renderer,a)};
g._destroyRipple=function(a){var b,c=null!=(b=this._activeRipples.get(a))?b:null;this._activeRipples.delete(a);this._activeRipples.size||(this._containerRect=null);a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null);a.state=3;null!==c&&(a.element.removeEventListener("transitionend",c.onTransitionEnd),a.element.removeEventListener("transitioncancel",c.onTransitionCancel));a.element.remove()};
g._onMousedown=function(a){var b=oma(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,cNb(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!pma(a)&&(this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0,a=a.changedTouches))for(var b=0;b<a.length;b++)cNb(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)};
g._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(function(a){var b=1===a.state||a.config.terminateOnPointerUp&&0===a.state;!a.config.persistent&&b&&dNb(a._renderer,a)}))};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this,b=this._triggerElement;b&&($Mb.forEach(function(c){var d=VMb,e=d._events.get(c);if(e){var f=e.get(b);f&&(f.delete(a),0===f.size&&e.delete(b),0===e.size&&(d._events.delete(c),document.removeEventListener(c,d._delegateEventHandler,UMb)))}}),this._pointerUpEventsRegistered&&aNb.forEach(function(c){return b.removeEventListener(c,a,ZMb)}))};
var VMb=new function(){var a=this;this._events=new Map;this._delegateEventHandler=function(b){var c=$g(b);if(c){var d;null==(d=a._events.get(b.type))||d.forEach(function(e,f){(f===c||f.contains(c))&&e.forEach(function(h){return h.handleEvent(b)})})}}};var bz=new Ad("mat-ripple-global-options"),cz=function(a,b,c,d,e){this._elementRef=a;this._animationMode=e;this.radius=0;this._isInitialized=this._disabled=!1;this._globalOptions=d||{};this._rippleRenderer=new bNb(this,b,a,c)};g=cz.prototype;g.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};g.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};g.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};
g._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&eNb(this._rippleRenderer,this.trigger)};g.launch=function(a,b,c){return"number"===typeof a?cNb(this._rippleRenderer,a,void 0===b?0:b,Object.assign({},this.rippleConfig,c)):cNb(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
Qh.Object.defineProperties(cz.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){a&&this.fadeOutAllNonPersistent();this._disabled=a;this._setupTriggerEventsIfEnabled()}},trigger:{configurable:!0,enumerable:!0,get:function(){return this._trigger||this._elementRef.nativeElement},set:function(a){this._trigger=a;this._setupTriggerEventsIfEnabled()}},rippleConfig:{configurable:!0,enumerable:!0,get:function(){return{centered:this.centered,radius:this.radius,
color:this.color,animation:Object.assign({},this._globalOptions.animation,"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||!!this._globalOptions.disabled}}});cz.\u0275fac=function(a){return new (a||cz)(z(ae),z(Df),z(Fw),z(bz,8),z(iu,8))};
cz.\u0275dir=sd({type:cz,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&Xf("mat-ripple-unbounded",b.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});var dz=function(a){this._animationMode=a;this.state="unchecked";this.disabled=!1;this.appearance="full"};dz.\u0275fac=function(a){return new (a||dz)(z(iu,8))};
dz.\u0275cmp=od({type:dz,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,b){a&2&&Xf("mat-pseudo-checkbox-indeterminate","indeterminate"===b.state)("mat-pseudo-checkbox-checked","checked"===b.state)("mat-pseudo-checkbox-disabled",b.disabled)("mat-pseudo-checkbox-minimal","minimal"===b.appearance)("mat-pseudo-checkbox-full","full"===b.appearance)("_mat-animation-noopable","NoopAnimations"===b._animationMode)},inputs:{state:"state",disabled:"disabled",
appearance:"appearance"},decls:0,vars:0,template:function(){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],
encapsulation:2,changeDetection:0});var ez=function(){};ez.\u0275fac=function(a){return new (a||ez)};ez.\u0275mod=qd({type:ez});ez.\u0275inj=ad({imports:[Ty,Ty]});var fz=function(){};fz.\u0275fac=function(a){return new (a||fz)};fz.\u0275mod=qd({type:fz});fz.\u0275inj=ad({imports:[Ty]});var fNb={capture:!0},gNb=["focus","click","mouseenter","touchstart"],gz=function(){var a=this;this._document=jd(Oh,{optional:!0});this._animationMode=jd(iu,{optional:!0});this._globalRippleOptions=jd(bz,{optional:!0});this._platform=jd(Fw);this._ngZone=jd(Df);this._onInteraction=function(b){b.target instanceof HTMLElement&&(b=b.target.closest("[mat-ripple-loader-uninitialized]"))&&hNb(a,b)};this._ngZone.runOutsideAngular(function(){for(var b=l(gNb),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;
null==(d=a._document)||d.addEventListener(c,a._onInteraction,fNb)}})};gz.prototype.ngOnDestroy=function(){for(var a=l(gNb),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;null==(c=this._document)||c.removeEventListener(b,this._onInteraction,fNb)}};
var iNb=function(a,b){a.setAttribute("mat-ripple-loader-uninitialized","");!b.className&&a.hasAttribute("mat-ripple-loader-class-name")||a.setAttribute("mat-ripple-loader-class-name",b.className||"");b.centered&&a.setAttribute("mat-ripple-loader-centered","");b.disabled&&a.setAttribute("mat-ripple-loader-disabled","")},jNb=function(a,b){return b.matRipple?b.matRipple:hNb(a,b)},kNb=function(a,b){var c=a.matRipple;c?c.disabled=b:b?a.setAttribute("mat-ripple-loader-disabled",""):a.removeAttribute("mat-ripple-loader-disabled")},
hNb=function(a,b){if(a._document){var c;null==(c=b.querySelector(".mat-ripple"))||c.remove();c=a._document.createElement("span");c.classList.add("mat-ripple",b.getAttribute("mat-ripple-loader-class-name"));b.append(c);a=new cz(new ae(c),a._ngZone,a._platform,a._globalRippleOptions?a._globalRippleOptions:void 0,a._animationMode?a._animationMode:void 0);a._isInitialized=!0;a.trigger=b;a.centered=b.hasAttribute("mat-ripple-loader-centered");a.disabled=b.hasAttribute("mat-ripple-loader-disabled");lNb(b,
a);return a}},lNb=function(a,b){a.removeAttribute("mat-ripple-loader-uninitialized");a.matRipple=b};gz.\u0275fac=function(a){return new (a||gz)};gz.\u0275prov=$c({token:gz,factory:gz.\u0275fac,providedIn:"root"});var mNb=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini",
"mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],nNb=Rh(Th(Sh(function(a){this._elementRef=a}))),hz=function(a,b,c,d){var e=nNb.call(this,a)||this;e._platform=b;e._ngZone=c;e._animationMode=d;e._focusMonitor=jd(Ow);e._rippleLoader=jd(gz);e._isFab=!1;e._disableRipple=!1;e._disabled=!1;null==e._rippleLoader||iNb(e._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});var f=a.nativeElement.classList;a=l(mNb);for(var h=a.next();!h.done;h=
a.next())h=h.value,e._hasHostAttributes(h.selector)&&h.mdcClasses.forEach(function(k){f.add(k)});return e};W(hz,nNb);g=hz.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){(a=void 0===a?"program":a)?Pw(this._focusMonitor,this._elementRef.nativeElement,a,b):this._elementRef.nativeElement.focus(b)};g._hasHostAttributes=function(){var a=this;return xd.apply(0,arguments).some(function(b){return a._elementRef.nativeElement.hasAttribute(b)})};
g._updateRippleDisabled=function(){null==this._rippleLoader||kNb(this._elementRef.nativeElement,this.disableRipple||this.disabled)};
Qh.Object.defineProperties(hz.prototype,{ripple:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this._rippleLoader)?void 0:jNb(a,this._elementRef.nativeElement)},set:function(a){null==this._rippleLoader||lNb(this._elementRef.nativeElement,a)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=ah(a);this._updateRippleDisabled()}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(a){this._disabled=ah(a);this._updateRippleDisabled()}}});hz.\u0275fac=function(){ee()};hz.\u0275dir=sd({type:hz,features:[Jf]});var oNb=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],iz=function(a,b,c,d){return hz.call(this,a,b,c,d)||this};W(iz,hz);iz.\u0275dir=hz.\u0275dir;iz.\u0275fac=function(a){return new (a||iz)(z(ae),z(Fw),z(Df),z(iu,8))};
iz.\u0275cmp=od({type:iz,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(a,b){a&2&&(Nf("disabled",b.disabled||null),Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-unthemed",!b.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Jf],attrs:["mat-button",""],ngContentSelectors:[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])",
"*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,b){a&1&&(eg(oNb),G(0,"span",0),fg(1),D(2,"span",1),fg(3,1),F(),fg(4,2),G(5,"span",2)(6,"span",3));a&2&&Xf("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}\n',
".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}\n"],encapsulation:2,changeDetection:0});var jz=function(a,b,c,d){a=hz.call(this,a,b,c,d)||this;iNb(a._elementRef.nativeElement,{centered:!0});return a};W(jz,hz);jz.\u0275dir=hz.\u0275dir;jz.\u0275fac=function(a){return new (a||jz)(z(ae),z(Fw),z(Df),z(iu,8))};
jz.\u0275cmp=od({type:jz,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(a,b){a&2&&(Nf("disabled",b.disabled||null),Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-unthemed",!b.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Jf],attrs:["mat-icon-button",""],ngContentSelectors:["*"],decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],
[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a){a&1&&(eg(),G(0,"span",0),fg(1),G(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',
".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}\n"],encapsulation:2,changeDetection:0});var kz=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new B.Subject;this.selection=a};kz.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};kz.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};kz.prototype._isValidDateInstance=function(a){return Vy(a)&&this._adapter.isValid(a)};kz.\u0275fac=function(){ee()};kz.\u0275prov=$c({token:kz,factory:kz.\u0275fac});
var lz=function(a){kz.call(this,null,a)};W(lz,kz);lz.prototype.add=function(a){kz.prototype.updateSelection.call(this,a,this)};lz.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)};lz.prototype.isComplete=function(){return null!=this.selection};lz.prototype.clone=function(){var a=new lz(this._adapter);a.updateSelection(this.selection,this);return a};lz.\u0275fac=function(a){return new (a||lz)(n(Uy))};lz.\u0275prov=$c({token:lz,factory:lz.\u0275fac});
var pNb={provide:kz,deps:[[new au,new bu,kz],Uy],useFactory:function(a,b){return a||new lz(b)}};new au;new bu;var mz=function(){this.changes=new B.Subject};mz.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};mz.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};mz.\u0275fac=function(a){return new (a||mz)};mz.\u0275prov=$c({token:mz,factory:mz.\u0275fac,providedIn:"root"});var qNb=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;this.value=a;this.displayValue=b;this.ariaLabel=c;this.enabled=d;this.cssClasses=e;this.compareValue=void 0===f?a:f;this.rawValue=h},rNb=1,sNb=Xg({passive:!1,capture:!0}),nz=Xg({passive:!0,capture:!0}),tNb=Xg({passive:!0}),oz=function(a,b){var c=this;this._elementRef=a;this._ngZone=b;this._platform=jd(Fw);this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;this.cellAspectRatio=1;this.previewEnd=this.previewStart=
null;this.selectedValueChange=new Yu;this.previewChange=new Yu;this.activeDateChange=new Yu;this.dragStarted=new Yu;this.dragEnded=new Yu;this._didDragSinceMouseDown=!1;this._enterHandler=function(d){if(c._skipNextFocus&&"focus"===d.type)c._skipNextFocus=!1;else if(d.target&&c.isRange){var e=c._getCellFromElement(d.target);e&&c._ngZone.run(function(){return c.previewChange.emit({value:e.enabled?e:null,event:d})})}};this._touchmoveHandler=function(d){if(c.isRange){var e=zoa(d),f=e?c._getCellFromElement(e):
null;e!==d.target&&(c._didDragSinceMouseDown=!0);voa(d.target)&&d.preventDefault();c._ngZone.run(function(){return c.previewChange.emit({value:(null==f?0:f.enabled)?f:null,event:d})})}};this._leaveHandler=function(d){null!==c.previewEnd&&c.isRange&&("blur"!==d.type&&(c._didDragSinceMouseDown=!0),!d.target||!c._getCellFromElement(d.target)||d.relatedTarget&&c._getCellFromElement(d.relatedTarget)||c._ngZone.run(function(){return c.previewChange.emit({value:null,event:d})}))};this._mousedownHandler=
function(d){if(c.isRange){c._didDragSinceMouseDown=!1;var e=d.target&&c._getCellFromElement(d.target);e&&c._isInRange(e.rawValue)&&c._ngZone.run(function(){c.dragStarted.emit({value:e.rawValue,event:d})})}};this._mouseupHandler=function(d){if(c.isRange){var e=voa(d.target);e?e.closest(".mat-calendar-body")===c._elementRef.nativeElement&&c._ngZone.run(function(){var f=c._getCellFromElement(e),h;c.dragEnded.emit({value:null!=(h=null==f?void 0:f.rawValue)?h:null,event:d})}):c._ngZone.run(function(){c.dragEnded.emit({value:null,
event:d})})}};this._touchendHandler=function(d){(d=zoa(d))&&c._mouseupHandler({target:d})};this._id="mat-calendar-body-"+rNb++;this._startDateLabelId=this._id+"-start-date";this._endDateLabelId=this._id+"-end-date";b.runOutsideAngular(function(){var d=a.nativeElement;d.addEventListener("touchmove",c._touchmoveHandler,sNb);d.addEventListener("mouseenter",c._enterHandler,nz);d.addEventListener("focus",c._enterHandler,nz);d.addEventListener("mouseleave",c._leaveHandler,nz);d.addEventListener("blur",
c._leaveHandler,nz);d.addEventListener("mousedown",c._mousedownHandler,tNb);d.addEventListener("touchstart",c._mousedownHandler,tNb);c._platform.isBrowser&&(window.addEventListener("mouseup",c._mouseupHandler),window.addEventListener("touchend",c._touchendHandler))})};g=oz.prototype;g.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};
g._cellClicked=function(a,b){this._didDragSinceMouseDown||a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};g._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};g._isSelected=function(a){return this.startValue===a||this.endValue===a};
g.ngOnChanges=function(a){var b=a.numCols,c=this.rows,d=this.numCols;if(a.rows||b)this._firstRowOffset=c&&c.length&&c[0].length?d-c[0].length:0;if(a.cellAspectRatio||b||!this._cellPadding)this._cellPadding=50*this.cellAspectRatio/d+"%";if(b||!this._cellWidth)this._cellWidth=100/d+"%"};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;a.removeEventListener("touchmove",this._touchmoveHandler,sNb);a.removeEventListener("mouseenter",this._enterHandler,nz);a.removeEventListener("focus",this._enterHandler,nz);a.removeEventListener("mouseleave",this._leaveHandler,nz);a.removeEventListener("blur",this._leaveHandler,nz);a.removeEventListener("mousedown",this._mousedownHandler,tNb);a.removeEventListener("touchstart",this._mousedownHandler,tNb);this._platform.isBrowser&&(window.removeEventListener("mouseup",
this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))};g._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};g._focusActiveCell=function(a){var b=this;a=void 0===a?!0:a;this._ngZone.runOutsideAngular(function(){b._ngZone.onStable.pipe(nf()).subscribe(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})})})};
g._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};g._isRangeStart=function(a){return woa(a,this.startValue,this.endValue)};g._isRangeEnd=function(a){return xoa(a,this.startValue,this.endValue)};g._isInRange=function(a){return yoa(a,this.startValue,this.endValue,this.isRange)};g._isComparisonStart=function(a){return woa(a,this.comparisonStart,this.comparisonEnd)};
g._isComparisonBridgeStart=function(a,b,c){if(!this._isComparisonStart(a)||this._isRangeStart(a)||!this._isInRange(a))return!1;a=this.rows[b][c-1];a||(a=(b=this.rows[b-1])&&b[b.length-1]);return a&&!this._isRangeEnd(a.compareValue)};g._isComparisonBridgeEnd=function(a,b,c){if(!this._isComparisonEnd(a)||this._isRangeEnd(a)||!this._isInRange(a))return!1;a=this.rows[b][c+1];a||(a=(b=this.rows[b+1])&&b[0]);return a&&!this._isRangeStart(a.compareValue)};
g._isComparisonEnd=function(a){return xoa(a,this.comparisonStart,this.comparisonEnd)};g._isInComparisonRange=function(a){return yoa(a,this.comparisonStart,this.comparisonEnd,this.isRange)};g._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};g._isPreviewStart=function(a){return woa(a,this.previewStart,this.previewEnd)};g._isPreviewEnd=function(a){return xoa(a,this.previewStart,this.previewEnd)};
g._isInPreview=function(a){return yoa(a,this.previewStart,this.previewEnd,this.isRange)};g._getDescribedby=function(a){return this.isRange?this.startValue===a&&this.endValue===a?this._startDateLabelId+" "+this._endDateLabelId:this.startValue===a?this._startDateLabelId:this.endValue===a?this._endDateLabelId:null:null};g._getCellFromElement=function(a){var b=voa(a);return b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)?this.rows[parseInt(a)][parseInt(b)]:null};
oz.\u0275fac=function(a){return new (a||oz)(z(ae),z(Df))};
oz.\u0275cmp=od({type:oz,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",
endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Fd],attrs:["mat-calendar-body",""],decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",
3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,b){a&1&&(P(0,qoa,3,6,"tr",0),P(1,toa,3,2,"tr",1),D(2,"label",
2),Q(3),F(),D(4,"label",2),Q(5),F());a&2&&(C("ngIf",b._firstRowOffset<b.labelMinRequiredCells),w(1),C("ngForOf",b.rows),w(1),C("id",b._startDateLabelId),w(1),S(" ",b.startDateAccessibleName,"\n"),w(1),C("id",b._endDateLabelId),w(1),S(" ",b.endDateAccessibleName,"\n"))},dependencies:[Cv,Dv,Ev],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],
encapsulation:2,changeDetection:0});var uNb=new Ad("MAT_DATE_RANGE_SELECTION_STRATEGY");new au;new bu;var pz=function(a,b,c,d,e){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rangeStrategy=e;this._rerenderSubscription=B.Subscription.EMPTY;this.activeDrag=null;this.selectedChange=new Yu;this._userSelection=new Yu;this.dragStarted=new Yu;this.dragEnded=new Yu;this.activeDateChange=new Yu;this._activeDate=new Bn};g=pz.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yf(null)).subscribe(function(){return a._init()})};
g.ngOnChanges=function(a){var b=a.comparisonStart||a.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected);a.activeDrag&&!this.activeDrag&&this._clearPreview()};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};g._dateSelected=function(a){var b=a.value,c=this._getDateFromDayOfMonth(b),d;(d=this._getDateInCurrentMonth(this._selected))===b&&d===b||this.selectedChange.emit(c);this._userSelection.emit({value:c,event:a.event});this._clearPreview();this._changeDetectorRef.markForCheck()};
g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);Xy(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=qz(this._activeDate,c?1:-1);break;case 39:this.activeDate=qz(this._activeDate,c?-1:1);break;case 38:this.activeDate=qz(this._activeDate,-7);break;case 40:this.activeDate=qz(this._activeDate,7);break;case 36:this.activeDate=qz(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=qz(this._activeDate,vNb(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?rz(this._activeDate,-1):sz(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?rz(this._activeDate,1):sz(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:null==this._previewEnd||eh(a)||(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:a}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:a})),a.preventDefault(),
a.stopPropagation());return;default:return}Xy(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){this._setRanges(this.selected);this._todayDate=this._getCellCompareValue(new Bn);this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.locale.SHORTMONTHS[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();this._firstWeekOffset=(7+tz(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1).getDay()-this._dateAdapter.getFirstDayOfWeek())%
7;this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._previewChanged=function(a){var b=a.event;a=a.value;if(this._rangeStrategy){a=a?a.rawValue:null;var c=this._rangeStrategy.createPreview(a,this.selected,b);this._previewStart=this._getCellCompareValue(c.start);this._previewEnd=this._getCellCompareValue(c.end);if(this.activeDrag&&a){var d,e;if(c=null==(e=(d=this._rangeStrategy).createDrag)?void 0:e.call(d,this.activeDrag.value,this.selected,a,b))this._previewStart=this._getCellCompareValue(c.start),this._previewEnd=this._getCellCompareValue(c.end)}this._changeDetectorRef.detectChanges()}};
g._dragEnded=function(a){if(this.activeDrag)if(a.value){var b,c,d=null==(b=this._rangeStrategy)?void 0:null==(c=b.createDrag)?void 0:c.call(b,this.activeDrag.value,this.selected,a.value,a.event);this.dragEnded.emit({value:null!=d?d:null,event:a.event})}else this.dragEnded.emit({value:null,event:a.event})};g._getDateFromDayOfMonth=function(a){return tz(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
g._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=wNb(this._dateAdapter,"narrow"),c=wNb(this._dateAdapter,"long").map(function(d,e){return{long:d,narrow:b[e]}});this._weekdays=c.slice(a).concat(c.slice(0,a))};
g._createWeekCells=function(){var a=vNb(this.activeDate),b=xNb;this._weeks=[[]];for(var c=0,d=this._firstWeekOffset;c<a;c++,d++){7==d&&(this._weeks.push([]),d=0);var e=tz(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),c+1),f=this._shouldEnableDate(e),h=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),k=this.dateClass?this.dateClass(e,"month"):void 0;this._weeks[this._weeks.length-1].push(new qNb(c+1,b[c],h,f,k,this._getCellCompareValue(e),
e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||0<=Xy(this._dateAdapter,a,this.minDate))&&(!this.maxDate||0>=Xy(this._dateAdapter,a,this.maxDate))&&(!this.dateFilter||this.dateFilter(a))};g._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};g._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};
g._getCellCompareValue=function(a){if(a){var b=this._dateAdapter.getYear(a),c=this._dateAdapter.getMonth(a);a=this._dateAdapter.getDate(a);return(new Date(b,c,a)).getTime()}return null};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};g._setRanges=function(a){this._rangeStart=this._rangeEnd=this._getCellCompareValue(a);this._isRange=!1;this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart);this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)};
g._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};g._clearPreview=function(){this._previewStart=this._previewEnd=null};
Qh.Object.defineProperties(pz.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))||new Bn;this._activeDate=RMb(this._dateAdapter,a,this.minDate,this.maxDate);this._hasSameMonthAndYear(b,this._activeDate)||this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Wy(this._dateAdapter,this._dateAdapter.deserialize(a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}}});pz.\u0275fac=function(a){return new (a||pz)(z(xv),z(Yy,8),z(Uy,8),z(py,8),z(uNb,8))};
pz.\u0275cmp=od({type:pz,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&zg(oz,5);if(a&2){var c;yg(c=Bg())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",
_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Fd],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd",
"isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(a,b){a&1&&(D(0,"table",0)(1,"thead",1)(2,"tr"),P(3,Aoa,5,2,"th",2),F(),D(4,"tr"),G(5,"th",3),F()(),D(6,"tbody",4),L("selectedValueChange",function(c){return b._dateSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("previewChange",
function(c){return b._previewChanged(c)})("dragStarted",function(c){return b.dragStarted.emit(c)})("dragEnded",function(c){return b._dragEnded(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),F()());a&2&&(w(3),C("ngForOf",b._weekdays),w(3),C("label",b._monthLabel)("rows",b._weeks)("todayValue",b._todayDate)("startValue",b._rangeStart)("endValue",b._rangeEnd)("comparisonStart",b._comparisonRangeStart)("comparisonEnd",b._comparisonRangeEnd)("previewStart",
b._previewStart)("previewEnd",b._previewEnd)("isRange",b._isRange)("labelMinRequiredCells",3)("activeCell",b._dateAdapter.getDate(b.activeDate)-1)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName))},dependencies:[Dv,oz],encapsulation:2,changeDetection:0});var uz=function(a,b,c){this._changeDetectorRef=a;this._dateAdapter=b;this._dir=c;this._rerenderSubscription=B.Subscription.EMPTY;this.selectedChange=new Yu;this.yearSelected=new Yu;this.activeDateChange=new Yu;this._activeDate=new Bn};g=uz.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yf(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._init=function(){var a=this;this._todayYear=this._dateAdapter.getYear(new Bn);var b=this._dateAdapter.getYear(this._activeDate)-Xh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var c=0,d=[];24>c;c++)d.push(b+c),4==d.length&&(this._years.push(d.map(function(e){return a._createCellForYear(e)})),d=[]);this._changeDetectorRef.markForCheck()};g._yearSelected=function(a){var b=a.value;a=tz(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};
g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);Xy(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=rz(this._activeDate,c?1:-1);break;case 39:this.activeDate=rz(this._activeDate,c?-1:1);break;case 38:this.activeDate=rz(this._activeDate,-4);break;case 40:this.activeDate=rz(this._activeDate,4);break;case 36:this.activeDate=rz(this._activeDate,-Xh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=rz(this._activeDate,24-Xh(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=rz(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=rz(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}Xy(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:a}),this._selectionKeyPressed=!1};g._getActiveCell=function(){return Xh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate);var c=tz(a,b,1);c=vNb(c);return tz(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};g._createCellForYear=function(a){var b=tz(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new qNb(a,c,c,this._shouldEnableYear(a),b)};
g._shouldEnableYear=function(a){if(void 0===a||null===a||this.maxDate&&a>this._dateAdapter.getYear(this.maxDate)||this.minDate&&a<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var b=tz(a,0,1);this._dateAdapter.getYear(b)==a;b=qz(b,1))if(this.dateFilter(b))return!0;return!1};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};g._setSelectedYear=function(a){this._selectedYear=null;a&&(this._selectedYear=this._dateAdapter.getYear(a))};
Qh.Object.defineProperties(uz.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))||new Bn;this._activeDate=RMb(this._dateAdapter,a,this.minDate,this.maxDate);Coa(this._dateAdapter,b,this._activeDate,this.minDate,this.maxDate)||this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Wy(this._dateAdapter,
this._dateAdapter.deserialize(a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}}});uz.\u0275fac=function(a){return new (a||uz)(z(xv),z(Uy,8),z(py,8))};
uz.\u0275cmp=od({type:uz,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&zg(oz,5);if(a&2){var c;yg(c=Bg())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden",
"true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,b){a&1&&(D(0,"table",0)(1,"thead",1)(2,"tr"),G(3,"th",2),F()(),D(4,"tbody",3),L("selectedValueChange",function(c){return b._yearSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",
function(c){return b._handleCalendarBodyKeydown(c)}),F()());a&2&&(w(4),C("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[oz],encapsulation:2,changeDetection:0});var vz=function(a,b,c,d){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rerenderSubscription=B.Subscription.EMPTY;this.selectedChange=new Yu;this.monthSelected=new Yu;this.activeDateChange=new Yu;this._activeDate=new Bn};g=vz.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yf(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._monthSelected=function(a){a=a.value;var b=tz(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);Xy(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=sz(this._activeDate,c?1:-1);break;case 39:this.activeDate=sz(this._activeDate,c?-1:1);break;case 38:this.activeDate=sz(this._activeDate,-4);break;case 40:this.activeDate=sz(this._activeDate,4);break;case 36:this.activeDate=sz(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=sz(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=rz(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=rz(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}Xy(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth=this._getMonthInCurrentYear(new Bn);this._yearLabel=""+this.activeDate.getFullYear();var b=this._dateAdapter.locale.SHORTMONTHS;this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(c){return c.map(function(d){return a._createCellForMonth(d,b[d])})});this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};g._getDateFromMonth=function(a){var b=tz(this._dateAdapter.getYear(this.activeDate),a,1);b=vNb(b);return tz(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
g._createCellForMonth=function(a,b){var c=tz(this._dateAdapter.getYear(this.activeDate),a,1),d=this._dateAdapter.format(c,this._dateFormats.display.monthYearA11yLabel);c=this.dateClass?this.dateClass(c,"year"):void 0;return new qNb(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
g._shouldEnableMonth=function(a){var b=this._dateAdapter.getYear(this.activeDate);if(void 0===a||null===a||this._isYearAndMonthAfterMaxDate(b,a)||this._isYearAndMonthBeforeMinDate(b,a))return!1;if(!this.dateFilter)return!0;for(b=tz(b,a,1);this._dateAdapter.getMonth(b)==a;b=qz(b,1))if(this.dateFilter(b))return!0;return!1};g._isYearAndMonthAfterMaxDate=function(a,b){if(this.maxDate){var c=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return a>c||a===c&&b>d}return!1};
g._isYearAndMonthBeforeMinDate=function(a,b){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return a<c||a===c&&b<d}return!1};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};g._setSelectedMonth=function(a){this._selectedMonth=this._getMonthInCurrentYear(a)};
Qh.Object.defineProperties(vz.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))||new Bn;this._activeDate=RMb(this._dateAdapter,a,this.minDate,this.maxDate);this._dateAdapter.getYear(b)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Wy(this._dateAdapter,
this._dateAdapter.deserialize(a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}}});vz.\u0275fac=function(a){return new (a||vz)(z(xv),z(Yy,8),z(Uy,8),z(py,8))};
vz.\u0275cmp=od({type:vz,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&zg(oz,5);if(a&2){var c;yg(c=Bg())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",
1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,b){a&1&&(D(0,"table",0)(1,"thead",1)(2,"tr"),G(3,"th",2),F()(),D(4,"tbody",3),L("selectedValueChange",function(c){return b._monthSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",
function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),F()());a&2&&(w(4),C("label",b._yearLabel)("rows",b._months)("todayValue",b._todayMonth)("startValue",b._selectedMonth)("endValue",b._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._dateAdapter.getMonth(b.activeDate)))},dependencies:[oz],encapsulation:2,changeDetection:0});var yNb=1,wz=function(a,b,c,d,e){this._intl=a;this.calendar=b;this._dateAdapter=c;this._dateFormats=d;this._id="mat-calendar-header-"+yNb++;this._periodButtonLabelId=this._id+"-period-label";this.calendar.stateChanges.subscribe(function(){return e.markForCheck()})};
wz.prototype._isSameView=function(a,b){return"month"==this.calendar.currentView?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b)&&this._dateAdapter.getMonth(a)==this._dateAdapter.getMonth(b):"year"==this.calendar.currentView?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b):Coa(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
wz.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-Xh(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+tz(a,0,1).getFullYear();b=""+tz(b,0,1).getFullYear();return[a,b]};
Qh.Object.defineProperties(wz.prototype,{periodButtonText:{configurable:!0,enumerable:!0,get:function(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?""+this.calendar.activeDate.getFullYear():this._intl.formatYearRange.apply(this._intl,p(this._formatMinAndMaxYearLabels()))}},periodButtonDescription:{configurable:!0,enumerable:!0,get:function(){return"month"==
this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?""+this.calendar.activeDate.getFullYear():this._intl.formatYearRangeLabel.apply(this._intl,p(this._formatMinAndMaxYearLabels()))}},periodButtonLabel:{configurable:!0,enumerable:!0,get:function(){return"month"==this.calendar.currentView?"Choose month and year":"Choose date"}},prevButtonLabel:{configurable:!0,enumerable:!0,get:function(){return{month:"Previous month",
year:"Previous year","multi-year":"Previous 24 years"}[this.calendar.currentView]}},nextButtonLabel:{configurable:!0,enumerable:!0,get:function(){return{month:"Next month",year:"Next year","multi-year":"Next 24 years"}[this.calendar.currentView]}}});wz.\u0275fac=function(a){return new (a||wz)(z(mz),z(fd(function(){return xz})),z(Uy,8),z(Yy,8),z(xv))};
wz.\u0275cmp=od({type:wz,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",
3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(a,b){a&1&&(eg(),D(0,"div",0)(1,"div",1)(2,"button",2),L("click",function(){b.calendar.currentView="month"==b.calendar.currentView?"multi-year":"month"}),D(3,"span",3),Q(4),F(),Qd(),D(5,"svg",4),G(6,"polygon",5),F()(),Kd.currentNamespace=null,G(7,"div",6),fg(8),D(9,"button",7),L("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?
sz(b.calendar.activeDate,-1):rz(b.calendar.activeDate,"year"==b.calendar.currentView?-1:-24)}),F(),D(10,"button",8),L("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?sz(b.calendar.activeDate,1):rz(b.calendar.activeDate,"year"==b.calendar.currentView?1:24)}),F()()(),D(11,"label",9),Q(12),F());a&2&&(w(2),Nf("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),w(2),jg(b.periodButtonText),w(1),Xf("mat-calendar-invert","month"!==b.calendar.currentView),
w(4),C("disabled",!(b.calendar.minDate?!b.calendar.minDate||!b._isSameView(b.calendar.activeDate,b.calendar.minDate):1)),Nf("aria-label",b.prevButtonLabel),w(1),C("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),Nf("aria-label",b.nextButtonLabel),w(1),C("id",b._periodButtonLabelId),w(1),jg(b.periodButtonDescription))},dependencies:[iz,jz],encapsulation:2,changeDetection:0});
var xz=function(a,b,c,d){var e=this;this._dateAdapter=b;this._dateFormats=c;this._changeDetectorRef=d;this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new Yu;this.yearSelected=new Yu;this.monthSelected=new Yu;this.viewChanged=new Yu(!0);this._userSelection=new Yu;this._userDragDrop=new Yu;this._activeDrag=null;this.stateChanges=new B.Subject;this._intlChanges=a.changes.subscribe(function(){d.markForCheck();e.stateChanges.next()})};g=xz.prototype;
g.ngAfterContentInit=function(){this._calendarHeaderPortal=new Sw(this.headerComponent||wz);this.activeDate=this.startAt||new Bn;this._currentView=this.startView};g.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};g.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
g.ngOnChanges=function(a){var b=a.minDate&&!this._dateAdapter.sameDate(a.minDate.previousValue,a.minDate.currentValue)?a.minDate:void 0,c=a.maxDate&&!this._dateAdapter.sameDate(a.maxDate.previousValue,a.maxDate.currentValue)?a.maxDate:void 0;(a=b||c||a.dateFilter)&&!a.firstChange&&(a=this._getCurrentViewComponent())&&(this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
g._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};g._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};g._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};g._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};g._dragStarted=function(a){this._activeDrag=a};g._dragEnded=function(a){this._activeDrag&&(a.value&&this._userDragDrop.emit(a),this._activeDrag=null)};
g._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
Qh.Object.defineProperties(xz.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Wy(this._dateAdapter,this._dateAdapter.deserialize(a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=RMb(this._dateAdapter,a,this.minDate,this.maxDate);this.stateChanges.next();this._changeDetectorRef.markForCheck()}},currentView:{configurable:!0,enumerable:!0,get:function(){return this._currentView},set:function(a){var b=
this._currentView!==a?a:null;this._currentView=a;this._moveFocusOnNextTick=!0;this._changeDetectorRef.markForCheck();b&&this.viewChanged.emit(b)}}});xz.\u0275fac=function(a){return new (a||xz)(z(mz),z(Uy,8),z(Yy,8),z(xv))};
xz.\u0275cmp=od({type:xz,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(zg(pz,5),zg(vz,5),zg(uz,5));if(a&2){var c;yg(c=Bg())&&(b.monthView=c.first);yg(c=Bg())&&(b.yearView=c.first);yg(c=Bg())&&(b.multiYearView=c.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",
startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[lg([pNb]),Fd],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter",
"maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate",
"selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(a,b){a&1&&(P(0,Doa,
0,0,"ng-template",0),D(1,"div",1),P(2,Eoa,1,11,"mat-month-view",2),P(3,Foa,1,6,"mat-year-view",3),P(4,Goa,1,6,"mat-multi-year-view",4),F());a&2&&(C("cdkPortalOutlet",b._calendarHeaderPortal),w(1),C("ngSwitch",b.currentView),w(1),C("ngSwitchCase","month"),w(1),C("ngSwitchCase","year"),w(1),C("ngSwitchCase","multi-year"))},dependencies:[Fv,Gv,Qw,Xw,pz,vz,uz],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}\n'],
encapsulation:2,changeDetection:0});var zNb={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},yz=zNb;yz=zNb;var ANb=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),BNb=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,CNb=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,DNb=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31},ENb=function(a,b,c,d,e){a=new Date(a,b,c);d=void 0!==d?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+864E5*((d-e+7)%7-b)},zz=function(a,b,c,d,e,f){"string"===
typeof a?(this.years="y"==a?b:0,this.months="m"==a?b:0,this.days="d"==a?b:0,this.hours="h"==a?b:0,this.minutes="n"==a?b:0,this.seconds="s"==a?b:0):(this.years=a||0,this.months=b||0,this.days=c||0,this.hours=d||0,this.minutes=e||0,this.seconds=f||0)};g=zz.prototype;
g.toIsoString=function(a){var b=Math.min(this.years,this.months,this.days,this.hours,this.minutes,this.seconds),c=Math.max(this.years,this.months,this.days,this.hours,this.minutes,this.seconds);if(0>b&&0<c)return null;if(!a&&0==b&&0==c)return"PT0S";c=[];0>b&&c.push("-");c.push("P");(this.years||a)&&c.push(Math.abs(this.years)+"Y");(this.months||a)&&c.push(Math.abs(this.months)+"M");(this.days||a)&&c.push(Math.abs(this.days)+"D");if(this.hours||this.minutes||this.seconds||a)c.push("T"),(this.hours||
a)&&c.push(Math.abs(this.hours)+"H"),(this.minutes||a)&&c.push(Math.abs(this.minutes)+"M"),(this.seconds||a)&&c.push(Math.abs(this.seconds)+"S");return c.join("")};g.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.hours==this.hours&&a.minutes==this.minutes&&a.seconds==this.seconds};g.clone=function(){return new zz(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
g.isZero=function(){return 0==this.years&&0==this.months&&0==this.days&&0==this.hours&&0==this.minutes&&0==this.seconds};g.times=function(a){return new zz(this.years*a,this.months*a,this.days*a,this.hours*a,this.minutes*a,this.seconds*a)};g.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.hours+=a.hours;this.minutes+=a.minutes;this.seconds+=a.seconds};
var pi=function(a,b,c){"number"===typeof a?(this.date=FNb(a,b||0,c||1),GNb(this,c||1)):Fa(a)?(this.date=FNb(a.getFullYear(),a.getMonth(),a.getDate()),GNb(this,a.getDate())):(this.date=new Date(Date.now()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),GNb(this,a))},FNb=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};g=pi.prototype;g.firstDayOfWeek_=yz.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=yz.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new pi(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};g.getFullYear=function(){return this.date.getFullYear()};g.getYear=function(){return this.getFullYear()};g.getMonth=function(){return this.date.getMonth()};g.getDate=function(){return this.date.getDate()};g.getTime=function(){return this.date.getTime()};g.getDay=function(){return this.date.getDay()};
g.getUTCFullYear=function(){return this.date.getUTCFullYear()};g.getUTCMonth=function(){return this.date.getUTCMonth()};g.getUTCDate=function(){return this.date.getUTCDate()};g.getUTCDay=function(){return this.date.getDay()};g.getUTCHours=function(){return this.date.getUTCHours()};g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};var vNb=function(a){return DNb(a.getFullYear(),a.getMonth())};g=pi.prototype;g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};g.setFullYear=function(a){this.date.setFullYear(a)};g.setYear=function(a){this.setFullYear(a)};g.setMonth=function(a){this.date.setMonth(a)};g.setDate=function(a){this.date.setDate(a)};g.setTime=function(a){this.date.setTime(a)};g.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};g.setUTCMonth=function(a){this.date.setUTCMonth(a)};g.setUTCDate=function(a){this.date.setUTCDate(a)};
g.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+12*a.years,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(DNb(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=0<=c&&99>=c?-1900:0,c=new Date(c,this.getMonth(),this.getDate(),12),a=new Date(c.getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),GNb(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+Yt(Math.abs(b),c?6:4),Yt(this.getMonth()+1,2),Yt(this.getDate(),2)].join(a?"-":"")};g.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};g.toString=function(){return this.toIsoString()};var GNb=function(a,b){a.getDate()!=b&&(b=a.getDate()<b?1:-1,a.date.setUTCHours(a.date.getUTCHours()+b))};pi.prototype.valueOf=function(){return this.date.valueOf()};
var Bn=function(a,b,c,d,e,f,h){this.date="number"===typeof a?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a&&a.getTime?a.getTime():Date.now())};ft(Bn,pi);g=Bn.prototype;g.getHours=function(){return this.date.getHours()};g.getMinutes=function(){return this.date.getMinutes()};g.getSeconds=function(){return this.date.getSeconds()};g.getMilliseconds=function(){return this.date.getMilliseconds()};g.getUTCDay=function(){return this.date.getUTCDay()};g.getUTCHours=function(){return this.date.getUTCHours()};
g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getUTCSeconds=function(){return this.date.getUTCSeconds()};g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};g.setHours=function(a){this.date.setHours(a)};g.setMinutes=function(a){this.date.setMinutes(a)};g.setSeconds=function(a){this.date.setSeconds(a)};g.setMilliseconds=function(a){this.date.setMilliseconds(a)};g.setUTCHours=function(a){this.date.setUTCHours(a)};g.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
g.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};g.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};g.add=function(a){pi.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
g.toIsoString=function(a){var b=pi.prototype.toIsoString.call(this,a);return a?b+"T"+Yt(this.getHours(),2)+":"+Yt(this.getMinutes(),2)+":"+Yt(this.getSeconds(),2):b+"T"+Yt(this.getHours(),2)+Yt(this.getMinutes(),2)+Yt(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new Bn(this.date);a.firstDayOfWeek_=this.getFirstDayOfWeek();a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var HNb=function(){},gi=function(a){if("number"==typeof a){var b=new HNb;b.standardOffset_=a;var c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Yt(c,2));c=d.join("")}b.timeZoneId_=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=INb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new HNb;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},INb=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Yt(Math.floor(a/60)%100,2),":",Yt(a%60,2));return b.join("")},JNb=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c<a.transitions_.length&&b>=a.transitions_[c];)c+=2;return 0==c?0:a.transitions_[c-1]};
HNb.prototype.getOffset=function(a){a=this.standardOffset_-JNb(this,a);return-1440===a?0:a};var Az=function(a){this.patternParts_=[];this.dateTimeSymbols_=yz;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)},KNb=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEabBhKHcLQdmsvVwzZ]+/],Bz=function(a){return a.getHours?a.getHours():0};
Az.prototype.applyPattern_=function(a){for(LNb&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<KNb.length;++c){var d=a.match(KNb[c]);if(d){var e=d[0];a=a.substring(e.length);0==c&&("''"==e?e="'":(e=e.substring(1,"'"==d[1]?e.length-1:e.length),e=e.replace(/''/g,"'")));this.patternParts_.push({text:e,type:c});break}}if(b===a)throw Error("eb`"+a);}};
Az.prototype.format=function(a,b){if(!a)throw Error("fb");var c=b?6E4*(a.getTimezoneOffset()-b.getOffset(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));c=[];for(var f=0;f<this.patternParts_.length;++f){var h=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(MNb(this,h,a,d,e,b)):c.push(h)}return c.join("")};
Az.prototype.applyStandardPattern_=function(a){if(4>a)var b=this.dateTimeSymbols_.DATEFORMATS[a];else if(8>a)b=this.dateTimeSymbols_.TIMEFORMATS[a-4];else if(12>a)b=this.dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.dateTimeSymbols_.TIMEFORMATS[a-8]);else if(12===a)b=this.dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(13===a)b=this.dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,"");else{this.applyStandardPattern_(10);
return}this.applyPattern_(b)};
var Cz=function(a,b){return NNb(b,a.dateTimeSymbols_)},LNb=!1,NNb=function(a,b){a=String(a);b=b||yz;if(void 0===b.ZERODIGIT)return a;for(var c=[],d=0;d<a.length;d++){var e=a.charCodeAt(d);c.push(48<=e&&57>=e?String.fromCharCode(b.ZERODIGIT+e-48):a.charAt(d))}return c.join("")},Dz=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("gb");},ONb=function(a,b){Dz(b);b=Bz(b);return a.dateTimeSymbols_.AMPMS[12<=b&&24>b?1:0]},MNb=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=
0<d.getFullYear()?1:0,4<=h?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==h&&(c%=100),Cz(a,Yt(c,h));case "Y":return c=d.getMonth(),e=d.getDate(),c=ENb(d.getFullYear(),c,e,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),Cz(a,Yt(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:h=a.dateTimeSymbols_.MONTHS[c];
break a;case 3:h=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:h=Cz(a,Yt(c+1,h))}return h;case "k":return Dz(e),c=Bz(e)||24,Cz(a,Yt(c,h));case "S":return Cz(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(3<h?Yt(0,h-3):""));case "E":return c=d.getDay(),4<=h?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return ONb(a,e);case "b":return ONb(a,e);case "B":return ONb(a,e);case "h":return Dz(e),c=Bz(e)%12||12,Cz(a,Yt(c,h));case "K":return Dz(e),c=Bz(e)%12,
Cz(a,Yt(c,h));case "H":return Dz(e),c=Bz(e),Cz(a,Yt(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:h=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:h=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:h=Cz(a,Yt(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:h=a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:h=a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];
break a;default:h=Cz(a,Yt(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return Cz(a,Yt(d.getDate(),h));case "m":return Dz(e),Cz(a,Yt(e.getMinutes?e.getMinutes():0,h));case "s":return Dz(e),Cz(a,Yt(e.getSeconds(),h));case "v":return(f||gi(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||gi(c.getTimezoneOffset()),2>=h?a.timeZoneId_:0<JNb(a,c)?void 0!==a.tzNamesExt_.DST_GENERIC_LOCATION?a.tzNamesExt_.DST_GENERIC_LOCATION:
a.tzNamesExt_.DST_GENERIC_LOCATION:void 0!==a.tzNamesExt_.STD_GENERIC_LOCATION?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=e.getMonth(),d=e.getDate(),c=ENb(e.getFullYear(),c,d,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),Cz(a,Yt(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||gi(c.getTimezoneOffset()),4>h?a.tzNames_[0<JNb(a,c)?2:0]:a.tzNames_[0<JNb(a,c)?3:1];
case "Z":return d=f||gi(c.getTimezoneOffset()),4>h?(h=-d.getOffset(c),a=[0>h?"-":"+"],h=Math.abs(h),a.push(Yt(Math.floor(h/60)%100,2),Yt(h%60,2)),h=a.join("")):h=Cz(a,INb(d.getOffset(c))),h;default:return""}};var PNb=["mat-button",""],QNb=["*"],RNb=function(){return".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"},
SNb="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),TNb=Rh(Th(Sh(function(a){this._elementRef=a}))),Ez=function(a,b,c){var d=TNb.call(this,a)||this;d._focusMonitor=b;d._animationMode=c;d.isRoundButton=d._hasHostAttributes("mat-fab","mat-mini-fab");d.isIconButton=d._hasHostAttributes("mat-icon-button");for(var e=l(SNb),f=e.next();!f.done;f=e.next())f=f.value,d._hasHostAttributes(f)&&d._getHostElement().classList.add(f);a.nativeElement.classList.add("mat-button-base");
d.isRoundButton&&(d.color="accent");return d};W(Ez,TNb);g=Ez.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?Pw(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};g._getHostElement=function(){return this._elementRef.nativeElement};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};
g._hasHostAttributes=function(){var a=this;return xd.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};Ez.\u0275fac=function(a){return new (a||Ez)(z(ae),z(Ow),z(iu,8))};
Ez.\u0275cmp=od({type:Ez,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(a,b){a&1&&zg(cz,5);if(a&2){var c;yg(c=Bg())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:6,hostBindings:function(a,b){a&2&&(Nf("disabled",b.disabled||null)("mat-id-collision",null),Xf("_mat-animation-noopable",
"NoopAnimations"===b._animationMode)("mat-button-disabled",b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Jf],attrs:PNb,ngContentSelectors:QNb,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(a,b){a&1&&(eg(),D(0,"span",0),fg(1),F(),G(2,"span",1)(3,"span",2));a&2&&(w(2),Xf("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),C("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[cz],styles:[RNb()],encapsulation:2,changeDetection:0});var Fz=function(a,b,c,d){var e=Ez.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};W(Fz,Ez);
Fz.prototype.ngAfterViewInit=function(){var a=this;Ez.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};Fz.prototype.ngOnDestroy=function(){Ez.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
Fz.\u0275fac=function(a){return new (a||Fz)(z(Ow),z(ae),z(iu,8),z(Df,8))};
Fz.\u0275cmp=od({type:Fz,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:8,hostBindings:function(a,b){a&2&&(Nf("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString())("mat-id-collision",null),Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Jf],attrs:PNb,ngContentSelectors:QNb,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(a,b){a&1&&(eg(),D(0,"span",0),fg(1),F(),G(2,"span",1)(3,"span",2));a&2&&(w(2),Xf("mat-button-ripple-round",b.isRoundButton||
b.isIconButton),C("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[cz],styles:[RNb()],encapsulation:2,changeDetection:0});Th(function(){});var UNb=["text"],VNb=0,WNb=function(a,b){this.source=a;this.isUserInput=void 0===b?!1:b},Gz=function(a,b,c,d){this._element=a;this._changeDetectorRef=b;this._parent=c;this.group=d;this._disabled=this._active=this._selected=!1;this._mostRecentViewValue="";this.id="mat-option-"+VNb++;this.onSelectionChange=new Yu;this._stateChanges=new B.Subject};g=Gz.prototype;g.select=function(a){a=void 0===a?!0:a;this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};
g.deselect=function(a){a=void 0===a?!0:a;this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};g.focus=function(a,b){var c=this._getHostElement();"function"===typeof c.focus&&c.focus(b)};g.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};g.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};g.getLabel=function(){return this.viewValue};
g._handleKeydown=function(a){13!==a.keyCode&&32!==a.keyCode||eh(a)||(this._selectViaInteraction(),a.preventDefault())};g._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._element.nativeElement};
g.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=a)}};g.ngOnDestroy=function(){this._stateChanges.complete()};g._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new WNb(this,void 0===a?!1:a))};
Qh.Object.defineProperties(Gz.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._parent&&this._parent.multiple}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.group&&this.group.disabled||this._disabled},set:function(a){this._disabled=ah(a)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return!(!this._parent||!this._parent.disableRipple)}},hideSingleSelectionIndicator:{configurable:!0,
enumerable:!0,get:function(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}},active:{configurable:!0,enumerable:!0,get:function(){return this._active}},viewValue:{configurable:!0,enumerable:!0,get:function(){var a;return((null==(a=this._text)?void 0:a.nativeElement.textContent)||"").trim()}}});Gz.\u0275fac=function(){ee()};
Gz.\u0275dir=sd({type:Gz,viewQuery:function(a,b){a&1&&zg(UNb,7);if(a&2){var c;yg(c=Bg())&&(b._text=c.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});Xg({passive:!0,capture:!0});Xg({passive:!0,capture:!0});new nu;var Hz=function(a,b,c,d){return Gz.call(this,a,b,c,d)||this};W(Hz,Gz);Hz.\u0275fac=function(a){return new (a||Hz)(z(ae),z(xv),z(SMb,8),z(TMb,8))};
Hz.\u0275cmp=od({type:Hz,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:13,hostBindings:function(a,b){a&1&&L("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(cg("id",b.id),Nf("tabindex",b._getTabIndex())("aria-selected",b.selected)("aria-disabled",b.disabled.toString())("mat-id-collision",null),Xf("mat-selected",b.selected)("mat-option-multiple",b.multiple)("mat-active",b.active)("mat-option-disabled",
b.disabled))},exportAs:["matOption"],features:[Jf],ngContentSelectors:["*"],decls:6,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(a,b){a&1&&(eg(),P(0,Koa,1,2,"mat-pseudo-checkbox",0),D(1,"span",1,2),fg(3),F(),
P(4,Loa,2,1,"span",3),G(5,"div",4));a&2&&(C("ngIf",b.multiple),w(4),C("ngIf",b.group&&b.group._inert),w(1),C("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[cz,Ev,dz],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n'],
encapsulation:2,changeDetection:0});var Iz=function(){};Iz.\u0275fac=function(a){return new (a||Iz)};Iz.\u0275mod=qd({type:Iz});Iz.\u0275inj=ad({imports:[ez,Sv,Ty,fz]});var XNb={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},YNb=qh("dialogContainer",[th("void, exit",sh({opacity:0,transform:"scale(0.7)"})),th("enter",sh({transform:"none"})),uh("* => enter",Zma([rh("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",sh({transform:"none",opacity:1})),wh("@*",vh())]),XNb),uh("* => void, * => exit",Zma([rh("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",sh({opacity:0})),wh("@*",vh())]),XNb)]);var Jz=function(){this.role="dialog";this.panelClass="";this.hasBackdrop=!0;this.backdropClass="";this.disableClose=!1;this.height=this.width="";this.maxWidth="80vw";this.ariaLabel=this.ariaLabelledBy=this.ariaDescribedBy=this.data=null;this.ariaModal=!0;this.autoFocus="first-tabbable";this.closeOnNavigation=this.delayFocusTrap=this.restoreFocus=!0};var ZNb=function(){this.role="dialog";this.panelClass="";this.hasBackdrop=!0;this.backdropClass="";this.disableClose=!1;this.height=this.width="";this.ariaLabel=this.ariaLabelledBy=this.ariaDescribedBy=this.data=null;this.ariaModal=!0;this.autoFocus="first-tabbable";this.closeOnOverlayDetachments=this.closeOnDestroy=this.closeOnNavigation=this.restoreFocus=!0};var Kz=function(a,b,c,d,e,f,h,k){this._isDisposed=!1;this._elementRef=a;this._focusTrapFactory=b;this._config=d;this._interactivityChecker=e;this._ngZone=f;this._overlayRef=h;this._focusMonitor=k;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=null;this._ariaLabelledByQueue=[];this._document=c;this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)};W(Kz,Uw);g=Kz.prototype;
g._contentAttached=function(){this._initializeFocusTrap();this._handleBackdropClicks();this._captureInitialFocus()};g._captureInitialFocus=function(){this._trapFocus()};g.ngOnDestroy=function(){this._restoreFocus()};g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return a};g._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
g._forceFocus=function(a,b){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var c=function(){a.removeEventListener("blur",c);a.removeEventListener("mousedown",c);a.removeAttribute("tabindex")};a.addEventListener("blur",c);a.addEventListener("mousedown",c)}));a.focus(b)};g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
g._trapFocus=function(){var a=this,b=this._elementRef.nativeElement;switch(this._config.autoFocus){case !1:case "dialog":this._containsFocus()||b.focus();break;case !0:case "first-tabbable":aKb(this._focusTrap).then(function(c){c||a._focusDialogContainer()});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}};
g._restoreFocus=function(){var a=this._config.restoreFocus,b=null;"string"===typeof a?b=this._document.querySelector(a):"boolean"===typeof a?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&"function"===typeof b.focus){a=Zg();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(Pw(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
g._focusDialogContainer=function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=Zg();return a===b||a.contains(b)};g._initializeFocusTrap=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement);this._document&&(this._elementFocusedBeforeDialogWasOpened=Zg())};
g._handleBackdropClicks=function(){var a=this;this._overlayRef.backdropClick().subscribe(function(){a._config.disableClose&&a._recaptureFocus()})};Kz.\u0275fac=function(a){return new (a||Kz)(z(ae),z(Kw),z(Oh,8),z(ZNb),z(Gw),z(Df),z(Iy),z(Ow))};
Kz.\u0275cmp=od({type:Kz,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&zg(Xw,7);if(a&2){var c;yg(c=Bg())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&Nf("id",b._config.id||null)("role",b._config.role)("aria-modal",b._config.ariaModal)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledByQueue[0])("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null)},standalone:!0,
features:[Jf,eka],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&P(0,Moa,0,0,"ng-template",0)},dependencies:[Yw,Xw],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});var $Nb=new Ad("DialogScrollStrategy",{providedIn:"root",factory:function(){var a=jd(Py);return function(){return a.scrollStrategies.block()}}}),aOb=new Ad("DialogData"),bOb=new Ad("DefaultDialogConfig");var cOb=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new B.Subject;this.disableClose=b.disableClose;this.backdropClick=a.backdropClick();this.keydownEvents=a.keydownEvents();this.outsidePointerEvents=a.outsidePointerEvents();this.id=b.id;this.keydownEvents.subscribe(function(d){27!==d.keyCode||c.disableClose||eh(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){c.disableClose||c.close(void 0,{focusOrigin:"mouse"})});
this._detachSubscription=a._detachments.subscribe(function(){!1!==b.closeOnOverlayDetachments&&c.close()})};g=cOb.prototype;g.close=function(a,b){if(this.containerInstance){var c=this.closed;this.containerInstance._closeInteractionType=(null==b?void 0:b.focusOrigin)||"program";this._detachSubscription.unsubscribe();this.overlayRef.dispose();c.next(a);c.complete();this.componentInstance=this.containerInstance=null}};g.updatePosition=function(){this.overlayRef.updatePosition()};
g.updateSize=function(a,b){this.overlayRef.updateSize({width:void 0===a?"":a,height:void 0===b?"":b})};g.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};g.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};var dOb=0,Lz=function(a,b,c,d,e,f){var h=this;this._overlay=a;this._injector=b;this._defaultOptions=c;this._parentDialog=d;this._overlayContainer=e;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new B.Subject;this._afterOpenedAtThisLevel=new B.Subject;this._ariaHiddenElements=new Map;(0,B.defer)(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(yf(void 0))});this._scrollStrategy=f};g=Lz.prototype;
g.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new ZNb,b);b.id=b.id||"cdk-dialog-"+dOb++;b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=this._overlay.create(d);var e=new cOb(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;this._attachDialogContent(a,e,d,b);this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology();this.openDialogs.push(e);e.closed.subscribe(function(){return c._removeOpenDialog(e,!0)});this.afterOpened.next(e);
return e};g.closeAll=function(){Noa(this.openDialogs,function(a){return a.close()})};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){var a=this;Noa(this._openDialogsAtThisLevel,function(b){!1===b.config.closeOnDestroy&&a._removeOpenDialog(b,!1)});Noa(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
g._getOverlayConfig=function(a){var b=new Hy({positionStrategy:a.positionStrategy||LMb(KMb(this._overlay.position().global())),scrollStrategy:a.scrollStrategy||this._scrollStrategy(),panelClass:a.panelClass,hasBackdrop:a.hasBackdrop,direction:a.direction,minWidth:a.minWidth,minHeight:a.minHeight,maxWidth:a.maxWidth,maxHeight:a.maxHeight,width:a.width,height:a.height,disposeOnNavigation:a.closeOnNavigation});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
g._attachContainer=function(a,b,c){var d,e=c.injector||(null==(d=c.viewContainerRef)?void 0:d.injector);b=[{provide:ZNb,useValue:c},{provide:cOb,useValue:b},{provide:Iy,useValue:a}];c.container?"function"===typeof c.container?d=c.container:(d=c.container.type,b.push.apply(b,p(c.container.providers(c)))):d=Kz;c=new Sw(d,c.viewContainerRef,Gf({parent:e||this._injector,providers:b}),c.componentFactoryResolver);return a.attach(c).instance};
g._attachDialogContent=function(a,b,c,d){if(a instanceof vg){var e=this._createInjector(d,b,c,void 0);b={$implicit:d.data,dialogRef:b};d.templateContext&&(b=Object.assign({},b,"function"===typeof d.templateContext?d.templateContext():d.templateContext));c.attachTemplatePortal(new Tw(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new Sw(a,d.viewContainerRef,e,d.componentFactoryResolver)),b.componentRef=a,b.componentInstance=a.instance};
g._createInjector=function(a,b,c,d){var e,f=a.injector||(null==(e=a.viewContainerRef)?void 0:e.injector);e=[{provide:aOb,useValue:a.data},{provide:cOb,useValue:b}];a.providers&&("function"===typeof a.providers?e.push.apply(e,p(a.providers(b,a,c))):e.push.apply(e,p(a.providers)));!a.direction||f&&f.get(py,null,{optional:!0})||e.push({provide:py,useValue:{value:a.direction,change:(0,B.of)()}});return Gf({parent:f||d,providers:e})};
g._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);-1<a&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,d){c?d.setAttribute("aria-hidden",c):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),b&&this._getAfterAllClosed().next()))};
g._hideNonDialogContentFromAssistiveTechnology=function(){var a=vMb(this._overlayContainer);if(a.parentElement)for(var b=a.parentElement.children,c=b.length-1;-1<c;c--){var d=b[c];d===a||"SCRIPT"===d.nodeName||"STYLE"===d.nodeName||d.hasAttribute("aria-live")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
Qh.Object.defineProperties(Lz.prototype,{openDialogs:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},afterOpened:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}});Lz.\u0275fac=function(a){return new (a||Lz)(n(Py),n(eu),n(bOb,8),n(Lz,12),n(uy),n($Nb))};Lz.\u0275prov=$c({token:Lz,factory:Lz.\u0275fac,providedIn:"root"});var Mz=function(){};Mz.\u0275fac=function(a){return new (a||Mz)};Mz.\u0275mod=qd({type:Mz});Mz.\u0275inj=ad({providers:[Lz],imports:[Sy,Yw,ay,Kz,Yw]});var Nz=function(a,b,c,d,e,f,h,k){Kz.call(this,a,b,c,d,e,f,h,k);this._animationStateChanged=new Yu};W(Nz,Kz);Nz.prototype._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};Nz.prototype._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};Nz.\u0275fac=function(a){return new (a||Nz)(z(ae),z(Kw),z(Oh,8),z(Jz),z(Gw),z(Df),z(Iy),z(Ow))};
Nz.\u0275cmp=od({type:Nz,selectors:[["ng-component"]],features:[Jf],decls:0,vars:0,template:function(){},encapsulation:2});var Oz=function(a,b,c){var d=this;this._ref=a;this._containerInstance=c;this._afterOpened=new B.Subject;this._beforeClosed=new B.Subject;this._state=0;this.disableClose=b.disableClose;this.id=a.id;c._animationStateChanged.pipe(cf(function(e){return"opened"===e.state}),nf()).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(cf(function(e){return"closed"===e.state}),nf()).subscribe(function(){clearTimeout(d._closeFallbackTimeout);d._finishDialogClose()});
a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});(0,B.merge)(this.backdropClick(),this.keydownEvents().pipe(cf(function(e){return 27===e.keyCode&&!d.disableClose&&!eh(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType="keydown"===e.type?"keyboard":"mouse",d.close(void 0))})};
Oz.prototype.close=function(a){var b=this;this._result=a;this._containerInstance._animationStateChanged.pipe(cf(function(c){return"closing"===c.state}),nf()).subscribe(function(c){b._beforeClosed.next(a);b._beforeClosed.complete();BMb(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},c.totalTime+100)});this._state=1;this._containerInstance._startExitAnimation()};Oz.prototype.afterOpened=function(){return this._afterOpened};var Pz=function(a){return a._ref.closed};
g=Oz.prototype;g.backdropClick=function(){return this._ref.backdropClick};g.keydownEvents=function(){return this._ref.keydownEvents};g.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):KMb(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):LMb(b);this._ref.updatePosition()};g.updateSize=function(a,b){this._ref.updateSize(void 0===a?"":a,void 0===b?"":b)};g.addPanelClass=function(a){this._ref.addPanelClass(a)};
g.removePanelClass=function(a){this._ref.removePanelClass(a)};g.getState=function(){return this._state};g._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};new Ad("MatMdcDialogData");new Ad("mat-mdc-dialog-default-options");new Ad("mat-mdc-dialog-scroll-strategy");var eOb=0,Qz=function(a,b,c,d,e,f,h,k,q){var u=this;this._overlay=a;this._defaultOptions=c;this._parentDialog=d;this._dialogRefConstructor=h;this._dialogContainerType=k;this._dialogDataToken=q;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new B.Subject;this._afterOpenedAtThisLevel=new B.Subject;this._idPrefix="mat-dialog-";this.dialogConfigClass=Jz;(0,B.defer)(function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe(yf(void 0))});this._scrollStrategy=
f;this._dialog=b.get(Lz)};g=Qz.prototype;g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
g.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new Jz,b);b.id=b.id||"mat-dialog-"+eOb++;b.scrollStrategy=b.scrollStrategy||this._scrollStrategy();a=this._dialog.open(a,Object.assign({},b,{positionStrategy:LMb(KMb(this._overlay.position().global())),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:c.dialogConfigClass,useValue:b},{provide:ZNb,useValue:b}]}},templateContext:function(){return{dialogRef:d}},
providers:function(e,f,h){d=new c._dialogRefConstructor(e,b,h);var k;d.updatePosition(null==(k=b)?void 0:k.position);return[{provide:c._dialogContainerType,useValue:h},{provide:c._dialogDataToken,useValue:f.data},{provide:c._dialogRefConstructor,useValue:d}]}}));d.componentRef=a.componentRef;d.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);Pz(d).subscribe(function(){var e=c.openDialogs.indexOf(d);-1<e&&(c.openDialogs.splice(e,1),c.openDialogs.length||c._getAfterAllClosed().next())});
return d};g.closeAll=function(){this._closeDialogs(this.openDialogs)};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};g._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
Qh.Object.defineProperties(Qz.prototype,{openDialogs:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},afterOpened:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}});Qz.\u0275fac=function(){ee()};Qz.\u0275prov=$c({token:Qz,factory:Qz.\u0275fac});var Rz=function(){Oz.apply(this,arguments)};W(Rz,Oz);var fOb=function(){Jz.apply(this,arguments);this.enterAnimationDuration=XNb.params.enterAnimationDuration;this.exitAnimationDuration=XNb.params.exitAnimationDuration};W(fOb,Jz);var Sz=function(a,b,c,d,e,f,h,k,q){Nz.call(this,a,b,c,d,e,f,h,q);this._changeDetectorRef=k;this._state="enter"};W(Sz,Nz);Sz.prototype._onAnimationDone=function(a){var b=a.toState;a=a.totalTime;"enter"===b?this._openAnimationDone(a):"exit"===b&&this._animationStateChanged.next({state:"closed",totalTime:a})};
Sz.prototype._onAnimationStart=function(a){var b=a.toState;a=a.totalTime;"enter"===b?this._animationStateChanged.next({state:"opening",totalTime:a}):("exit"===b||"void"===b)&&this._animationStateChanged.next({state:"closing",totalTime:a})};Sz.prototype._startExitAnimation=function(){this._state="exit";this._changeDetectorRef.markForCheck()};
Sz.prototype._getAnimationState=function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||"150ms",exitAnimationDuration:this._config.exitAnimationDuration||"75ms"}}};Sz.\u0275fac=function(a){return new (a||Sz)(z(ae),z(Kw),z(Oh,8),z(fOb),z(Gw),z(Df),z(Iy),z(xv),z(Ow))};
Sz.\u0275cmp=od({type:Sz,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:8,hostBindings:function(a,b){a&1&&Sja("@dialogContainer.start",function(c){return b._onAnimationStart(c)})("@dialogContainer.done",function(c){return b._onAnimationDone(c)});a&2&&(cg("id",b._config.id),Nf("aria-modal",b._config.ariaModal)("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledByQueue[0])("aria-label",b._config.ariaLabel)("aria-describedby",
b._config.ariaDescribedBy||null)("mat-id-collision",null),dg("@dialogContainer",b._getAnimationState()))},features:[Jf],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&P(0,Ooa,0,0,"ng-template",0)},dependencies:[Xw],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],
encapsulation:2,data:{animation:[YNb]}});var Tz=new Ad("MatDialogData"),gOb=new Ad("mat-dialog-default-options"),hOb=new Ad("mat-dialog-scroll-strategy"),iOb={provide:hOb,deps:[Py],useFactory:function(a){return function(){return a.scrollStrategies.block()}}},Uz=function(a,b,c,d,e,f,h,k){Qz.call(this,a,b,d,f,h,e,Rz,Sz,Tz,k);this.dialogConfigClass=fOb};W(Uz,Qz);Uz.\u0275fac=function(a){return new (a||Uz)(n(Py),n(eu),n($v,8),n(gOb,8),n(hOb),n(Uz,12),n(uy),n(iu,8))};Uz.\u0275prov=$c({token:Uz,factory:Uz.\u0275fac});var jOb=0,Vz=function(a,b,c){this.dialogRef=a;this._elementRef=b;this._dialog=c;this.type="button"};Vz.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Poa(this._elementRef,this._dialog.openDialogs))};Vz.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};Vz.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=0===a.screenX&&0===a.screenY?"keyboard":"mouse";b.close(c)};
Vz.\u0275fac=function(a){return new (a||Vz)(z(Rz,8),z(ae),z(Uz))};Vz.\u0275dir=sd({type:Vz,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&L("click",function(c){return b._onButtonClick(c)});a&2&&Nf("aria-label",b.ariaLabel||null)("type",b.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Fd]});
var Wz=function(a,b,c){this._dialogRef=a;this._elementRef=b;this._dialog=c;this.id="mat-dialog-title-"+jOb++};Wz.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=Poa(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){var b,c;null==(b=a._dialogRef._containerInstance)||null==(c=b._ariaLabelledByQueue)||c.push(a.id)})};
Wz.prototype.ngOnDestroy=function(){var a=this,b,c,d=null==(b=this._dialogRef)?void 0:null==(c=b._containerInstance)?void 0:c._ariaLabelledByQueue;d&&Promise.resolve().then(function(){var e=d.indexOf(a.id);-1<e&&d.splice(e,1)})};Wz.\u0275fac=function(a){return new (a||Wz)(z(Rz,8),z(ae),z(Uz))};Wz.\u0275dir=sd({type:Wz,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(a,b){a&2&&cg("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});
var Xz=function(){};Xz.\u0275fac=function(a){return new (a||Xz)};Xz.\u0275dir=sd({type:Xz,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var Yz=function(){this.align="start"};Yz.\u0275fac=function(a){return new (a||Yz)};
Yz.\u0275dir=sd({type:Yz,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(a,b){a&2&&Xf("mat-dialog-actions-align-center","center"===b.align)("mat-dialog-actions-align-end","end"===b.align)},inputs:{align:"align"}});var Zz=function(){};Zz.\u0275fac=function(a){return new (a||Zz)};Zz.\u0275mod=qd({type:Zz});Zz.\u0275inj=ad({providers:[Uz,iOb],imports:[Mz,Sy,Yw,Ty,Ty]});var kOb=Xg({passive:!0}),$z=function(a,b){this._platform=a;this._ngZone=b;this._monitoredElements=new Map};
$z.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return B.EMPTY;var c=ch(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new B.Subject,e=function(f){"cdk-text-field-autofill-start"!==f.animationName||c.classList.contains("cdk-text-field-autofilled")?"cdk-text-field-autofill-end"===f.animationName&&c.classList.contains("cdk-text-field-autofilled")&&(c.classList.remove("cdk-text-field-autofilled"),b._ngZone.run(function(){return d.next({target:f.target,isAutofilled:!1})})):
(c.classList.add("cdk-text-field-autofilled"),b._ngZone.run(function(){return d.next({target:f.target,isAutofilled:!0})}))};this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",e,kOb);c.classList.add("cdk-text-field-autofill-monitored")});this._monitoredElements.set(c,{subject:d,unlisten:function(){c.removeEventListener("animationstart",e,kOb)}});return d};
$z.prototype.stopMonitoring=function(a){a=ch(a);var b=this._monitoredElements.get(a);b&&(b.unlisten(),b.subject.complete(),a.classList.remove("cdk-text-field-autofill-monitored"),a.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(a))};$z.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};$z.\u0275fac=function(a){return new (a||$z)(n(Fw),n(Df))};$z.\u0275prov=$c({token:$z,factory:$z.\u0275fac,providedIn:"root"});var aA=function(a,b,c,d){var e=this;this._elementRef=a;this._platform=b;this._ngZone=c;this._destroyed=new B.Subject;this._enabled=!0;this._previousMinRows=-1;this._isViewInited=!1;this._handleFocusEvent=function(f){e._hasFocus="focus"===f.type};this._document=d;this._textareaElement=this._elementRef.nativeElement};g=aA.prototype;g._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};
g._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,bA(this),this._ngZone.runOutsideAngular(function(){(0,B.fromEvent)(a._getWindow(),"resize").pipe(ff(16),Af(a._destroyed)).subscribe(function(){return bA(a,!0)});a._textareaElement.addEventListener("focus",a._handleFocusEvent);a._textareaElement.addEventListener("blur",a._handleFocusEvent)}),this._isViewInited=!0,bA(this,!0))};
g.ngOnDestroy=function(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent);this._textareaElement.removeEventListener("blur",this._handleFocusEvent);this._destroyed.next();this._destroyed.complete()};
g._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var a=this._textareaElement.cloneNode(!1);a.rows=1;a.style.position="absolute";a.style.visibility="hidden";a.style.border="none";a.style.padding="0";a.style.height="";a.style.minHeight="";a.style.maxHeight="";a.style.overflow="hidden";this._textareaElement.parentNode.appendChild(a);this._cachedLineHeight=a.clientHeight;a.remove();this._setMinHeight();this._setMaxHeight()}};
g._measureScrollHeight=function(){var a=this._textareaElement,b=a.style.marginBottom||"",c=this._platform.FIREFOX,d=c&&this._hasFocus;c=c?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(a.style.marginBottom=a.clientHeight+"px");a.classList.add(c);var e=a.scrollHeight-4;a.classList.remove(c);d&&(a.style.marginBottom=b);return e};
g._cacheTextareaPlaceholderHeight=function(){if(this._isViewInited&&void 0==this._cachedPlaceholderHeight)if(this.placeholder){var a=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder;this._cachedPlaceholderHeight=this._measureScrollHeight();this._textareaElement.value=a}else this._cachedPlaceholderHeight=0};g.ngDoCheck=function(){this._platform.isBrowser&&bA(this)};
var bA=function(a,b){b=void 0===b?!1:b;if(a._enabled&&(a._cacheTextareaLineHeight(),a._cacheTextareaPlaceholderHeight(),a._cachedLineHeight)){var c=a._elementRef.nativeElement,d=c.value;if(b||a._minRows!==a._previousMinRows||d!==a._previousValue)b=a._measureScrollHeight(),c.style.height=Math.max(b,a._cachedPlaceholderHeight||0)+"px",a._ngZone.runOutsideAngular(function(){"undefined"!==typeof requestAnimationFrame?requestAnimationFrame(function(){return a._scrollToCaretPosition(c)}):setTimeout(function(){return a._scrollToCaretPosition(c)})}),
a._previousValue=d,a._previousMinRows=a._minRows}};g=aA.prototype;g.reset=function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)};g._noopInputHandler=function(){};g._getDocument=function(){return this._document||document};g._getWindow=function(){return this._getDocument().defaultView||window};g._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&a.setSelectionRange(b,c)};
Qh.Object.defineProperties(aA.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=dh(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=dh(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){a=ah(a);this._enabled!==a&&((this._enabled=a)?bA(this,!0):this.reset())}},placeholder:{configurable:!0,
enumerable:!0,get:function(){return this._textareaElement.placeholder},set:function(a){this._cachedPlaceholderHeight=void 0;a?this._textareaElement.setAttribute("placeholder",a):this._textareaElement.removeAttribute("placeholder");this._cacheTextareaPlaceholderHeight()}}});aA.\u0275fac=function(a){return new (a||aA)(z(ae),z(Fw),z(Df),z(Oh,8))};
aA.\u0275dir=sd({type:aA,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&L("input",function(){})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var cA=function(){};cA.\u0275fac=function(a){return new (a||cA)};cA.\u0275mod=qd({type:cA});cA.\u0275inj=ad({});var lOb=new Ad("MatError");var mOb=new Ad("MatPrefix");var nOb=new Ad("MatSuffix");var oOb=qh("transitionMessages",[th("enter",sh({opacity:1,transform:"translateY(0%)"})),uh("void => enter",[sh({opacity:0,transform:"translateY(-5px)"}),rh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);var dA=function(){};dA.\u0275fac=function(a){return new (a||dA)};dA.\u0275dir=sd({type:dA});new Ad("FloatingLabelParent");var eA=new Ad("MatFormField");new Ad("MAT_FORM_FIELD_DEFAULT_OPTIONS");var pOb=Number.MAX_SAFE_INTEGER,fA=function(a,b){this.id="mat-error-"+pOb--;a||b.nativeElement.setAttribute("aria-live","polite")};fA.\u0275fac=function(a){return new (a||fA)(Ud("aria-live"),z(ae))};fA.\u0275dir=sd({type:fA,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(a,b){a&2&&Nf("id",b.id)},inputs:{id:"id"},features:[lg([{provide:lOb,useExisting:fA}])]});var qOb=Number.MAX_SAFE_INTEGER,rOb=new Ad("MatHint"),gA=function(){this.align="start";this.id="mat-hint-"+qOb--};gA.\u0275fac=function(a){return new (a||gA)};gA.\u0275dir=sd({type:gA,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(a,b){a&2&&(Nf("id",b.id)("align",null),Xf("mat-form-field-hint-end","end"===b.align))},inputs:{align:"align",id:"id"},features:[lg([{provide:rOb,useExisting:gA}])]});var hA=function(){};hA.\u0275fac=function(a){return new (a||hA)};hA.\u0275dir=sd({type:hA,selectors:[["mat-label"]]});var iA=function(){};iA.\u0275fac=function(a){return new (a||iA)};iA.\u0275dir=sd({type:iA,selectors:[["mat-placeholder"]]});var sOb=["connectionContainer"],tOb=["inputContainer"],uOb=["label"],vOb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],wOb=Number.MAX_SAFE_INTEGER,xOb=Rh(function(a){this._elementRef=a},"primary"),yOb=new Ad("MAT_FORM_FIELD_DEFAULT_OPTIONS"),jA=function(a,b,c,d,e,f,h){a=xOb.call(this,a)||this;a._changeDetectorRef=b;a._dir=c;a._defaults=d;a._platform=e;a._ngZone=f;a._outlineGapCalculationNeededImmediately=
!1;a._outlineGapCalculationNeededOnStable=!1;a._destroyed=new B.Subject;a._hideRequiredMarker=!1;a._showAlwaysAnimate=!1;a._subscriptAnimationState="";a._hintLabel="";a._hintLabelId="mat-hint-"+wOb--;a._labelId="mat-form-field-label-"+wOb--;a.floatLabel=a._getDefaultFloatLabelState();a._animationsEnabled="NoopAnimations"!==h;a.appearance=(null==d?void 0:d.appearance)||"legacy";d&&(a._hideRequiredMarker=!!d.hideRequiredMarker,d.color&&(a.color=a.defaultColor=d.color));return a};W(jA,xOb);g=jA.prototype;
g._shouldAlwaysFloat=function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate};g._canLabelFloat=function(){return"never"!==this.floatLabel};g.getLabelId=function(){return this._hasFloatingLabel()?this._labelId:null};
g.ngAfterContentInit=function(){var a=this,b=this._control;b.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+b.controlType);b.stateChanges.pipe(yf(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});b.ngControl&&b.ngControl.valueChanges&&b.ngControl.valueChanges.pipe(Af(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(Af(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&
Yh(a)})});(0,B.merge)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0;a._changeDetectorRef.markForCheck()});this._hintChildren.changes.pipe(yf(null)).subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.pipe(yf(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._dir&&this._dir.change.pipe(Af(this._destroyed)).subscribe(function(){"function"===
typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Yh(a)})}):Yh(a)})};g.ngAfterContentChecked=function(){this._outlineGapCalculationNeededImmediately&&Yh(this)};g.ngAfterViewInit=function(){this._subscriptAnimationState="enter";this._changeDetectorRef.detectChanges()};g.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};g._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};
g._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)};g._hasLabel=function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)};g._shouldLabelFloat=function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())};g._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()};
g._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()};g._getDisplayedMessages=function(){return this._errorChildren&&0<this._errorChildren.length&&this._control.errorState?"error":"hint"};
g._animateAndLockLabel=function(){var a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,B.fromEvent)(this._label.nativeElement,"transitionend").pipe(nf()).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())};g._validatePlaceholders=function(){};g._processHints=function(){this._syncDescribedByIds()};g._validateHints=function(){};
g._getDefaultFloatLabelState=function(){return this._defaults&&this._defaults.floatLabel||"auto"};
g._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&"string"===typeof this._control.userAriaDescribedBy&&a.push.apply(a,p(this._control.userAriaDescribedBy.split(" ")));if("hint"===this._getDisplayedMessages()){var b=this._hintChildren?this._hintChildren.find(function(d){return"start"===d.align}):null,c=this._hintChildren?this._hintChildren.find(function(d){return"end"===d.align}):null;b?a.push(b.id):this._hintLabel&&a.push(this._hintLabelId);c&&a.push(c.id)}else this._errorChildren&&
a.push.apply(a,p(this._errorChildren.map(function(d){return d.id})));this._control.setDescribedByIds(a)}};g._validateControlChild=function(){};
var Yh=function(a){var b=a._label?a._label.nativeElement:null,c=a._connectionContainerRef.nativeElement;if("outline"===a.appearance&&a._platform.isBrowser)if(b&&b.children.length&&b.textContent.trim())if(a._isAttachedToDOM()){var d=0,e=0,f=c.querySelectorAll(".mat-form-field-outline-start"),h=c.querySelectorAll(".mat-form-field-outline-gap");if(a._label&&a._label.nativeElement.children.length){d=c.getBoundingClientRect();if(0===d.width&&0===d.height){a._outlineGapCalculationNeededOnStable=!0;a._outlineGapCalculationNeededImmediately=
!1;return}d=a._getStartEnd(d);e=b.children;c=a._getStartEnd(e[0].getBoundingClientRect());for(var k=b=0;k<e.length;k++)b+=e[k].offsetWidth;d=Math.abs(c-d)-5;e=0<b?.75*b+10:0}for(b=0;b<f.length;b++)f[b].style.width=d+"px";for(f=0;f<h.length;f++)h[f].style.width=e+"px";a._outlineGapCalculationNeededOnStable=a._outlineGapCalculationNeededImmediately=!1}else a._outlineGapCalculationNeededImmediately=!0;else for(a=c.querySelectorAll(".mat-form-field-outline-start, .mat-form-field-outline-gap"),h=0;h<a.length;h++)a[h].style.width=
"0"};jA.prototype._getStartEnd=function(a){return this._dir&&"rtl"===this._dir.value?a.right:a.left};jA.prototype._isAttachedToDOM=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
Qh.Object.defineProperties(jA.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b=this._appearance,c;this._appearance=a||(null==(c=this._defaults)?void 0:c.appearance)||"legacy";"outline"===this._appearance&&b!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=ah(a)}},hintLabel:{configurable:!0,
enumerable:!0,get:function(){return this._hintLabel},set:function(a){this._hintLabel=a;this._processHints()}},floatLabel:{configurable:!0,enumerable:!0,get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},_control:{configurable:!0,enumerable:!0,get:function(){return this._explicitFormFieldControl||this._controlNonStatic||
this._controlStatic},set:function(a){this._explicitFormFieldControl=a}}});jA.\u0275fac=function(a){return new (a||jA)(z(ae),z(xv),z(py,8),z(yOb,8),z(Fw),z(Df),z(iu,8))};
jA.\u0275cmp=od({type:jA,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(Ag(c,dA,5),Ag(c,dA,7),Ag(c,hA,5),Ag(c,hA,7),Ag(c,iA,5),Ag(c,lOb,5),Ag(c,rOb,5),Ag(c,mOb,5),Ag(c,nOb,5));if(a&2){var d;yg(d=Bg())&&(b._controlNonStatic=d.first);yg(d=Bg())&&(b._controlStatic=d.first);yg(d=Bg())&&(b._labelChildNonStatic=d.first);yg(d=Bg())&&(b._labelChildStatic=d.first);yg(d=Bg())&&(b._placeholderChild=d.first);yg(d=Bg())&&(b._errorChildren=d);yg(d=Bg())&&(b._hintChildren=d);yg(d=Bg())&&(b._prefixChildren=
d);yg(d=Bg())&&(b._suffixChildren=d)}},viewQuery:function(a,b){a&1&&(zg(sOb,7),zg(tOb,5),zg(uOb,5));if(a&2){var c;yg(c=Bg())&&(b._connectionContainerRef=c.first);yg(c=Bg())&&(b._inputContainerRef=c.first);yg(c=Bg())&&(b._label=c.first)}},hostAttrs:["ngSkipHydration","",1,"mat-form-field"],hostVars:41,hostBindings:function(a,b){a&2&&(Nf("mat-id-collision",null),Xf("mat-form-field-appearance-standard","standard"==b.appearance)("mat-form-field-appearance-fill","fill"==b.appearance)("mat-form-field-appearance-outline",
"outline"==b.appearance)("mat-form-field-appearance-legacy","legacy"==b.appearance)("mat-form-field-invalid",b._control.errorState)("mat-form-field-can-float",b._canLabelFloat())("mat-form-field-should-float",b._shouldLabelFloat())("mat-form-field-has-label",b._hasFloatingLabel())("mat-form-field-hide-placeholder",b._hideControlPlaceholder())("mat-form-field-disabled",b._control.disabled)("mat-form-field-autofilled",b._control.autofilled)("mat-focused",b._control.focused)("ng-untouched",b._shouldForward("untouched"))("ng-touched",
b._shouldForward("touched"))("ng-pristine",b._shouldForward("pristine"))("ng-dirty",b._shouldForward("dirty"))("ng-valid",b._shouldForward("valid"))("ng-invalid",b._shouldForward("invalid"))("ng-pending",b._shouldForward("pending"))("_mat-animation-noopable",!b._animationsEnabled))},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[lg([{provide:eA,useExisting:jA}]),Jf],ngContentSelectors:"* [matPrefix] mat-placeholder mat-label [matSuffix] mat-error mat-hint:not([align='end']) mat-hint[align='end']".split(" "),
decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",
4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled",
"id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(a,b){a&1&&(eg(vOb),D(0,"div",0)(1,"div",
1,2),L("click",function(){return b._control.onContainerClick()}),P(3,Qoa,9,0,"ng-container",3),P(4,Roa,2,1,"div",4),D(5,"div",5,6),fg(7),D(8,"span",7),P(9,Voa,5,16,"label",8),F()(),P(10,Woa,2,0,"div",9),F(),P(11,Xoa,2,4,"div",10),D(12,"div",11),P(13,Yoa,2,1,"div",12),P(14,$oa,5,2,"div",13),F()());a&2&&(w(3),C("ngIf","outline"==b.appearance),w(1),C("ngIf",b._prefixChildren.length),w(5),C("ngIf",b._hasFloatingLabel()),w(1),C("ngIf",b._suffixChildren.length),w(1),C("ngIf","outline"!=b.appearance),w(1),
C("ngSwitch",b._getDisplayedMessages()),w(1),C("ngSwitchCase","error"),w(1),C("ngSwitchCase","hint"))},dependencies:[Ev,Fv,Gv,Xx],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}.mat-form-field .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-button-base,.mat-form-field .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-form-field .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{font-size:1em;display:inline-block;margin:-2px 0 1px}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button{font-size:inherit;width:1.5em;height:1.5em;padding:0}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{line-height:1.5em;margin:0}.mat-form-field .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:baseline}\n",
'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n',
'.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',
".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",
".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",
".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],
encapsulation:2,data:{animation:[oOb]},changeDetection:0});var kA=function(){};kA.\u0275fac=function(a){return new (a||kA)};kA.\u0275mod=qd({type:kA});kA.\u0275inj=ad({imports:[Sv,Ty,Yx,Ty]});var zOb=new Ad("MAT_INPUT_VALUE_ACCESSOR");Uh(function(a,b,c,d){this._defaultErrorStateMatcher=a;this._parentForm=b;this._parentFormGroup=c;this.ngControl=d;this.stateChanges=new B.Subject});var lA=function(){};lA.\u0275fac=function(a){return new (a||lA)};lA.\u0275dir=sd({type:lA});new Ad("FloatingLabelParent");var AOb="button checkbox file hidden image radio range reset submit".split(" "),BOb=Number.MAX_SAFE_INTEGER,COb=Uh(function(a,b,c,d){this._defaultErrorStateMatcher=a;this._parentForm=b;this._parentFormGroup=c;this.ngControl=d;this.stateChanges=new B.Subject}),mA=function(a,b,c,d,e,f,h,k,q,u){var x=COb.call(this,f,d,e,c)||this;x._elementRef=a;x._platform=b;x._autofillMonitor=k;x._formField=u;x._uid="mat-input-"+BOb--;x.focused=!1;x.stateChanges=new B.Subject;x.controlType="mat-input";x.autofilled=
!1;x._disabled=!1;x._type="text";x._readonly=!1;x._neverEmptyInputTypes="date datetime datetime-local month time week".split(" ").filter(function(E){return cma().has(E)});x._iOSKeyupListener=function(E){E=E.target;E.value||0!==E.selectionStart||0!==E.selectionEnd||(E.setSelectionRange(1,1),E.setSelectionRange(0,0))};c=x._elementRef.nativeElement;var y=c.nodeName.toLowerCase();x._inputValueAccessor=h||c;x._previousNativeValue=x.value;x.id=x.id;b.IOS&&q.runOutsideAngular(function(){a.nativeElement.addEventListener("keyup",
x._iOSKeyupListener)});x._isServer=!x._platform.isBrowser;x._isNativeSelect="select"===y;x._isTextarea="textarea"===y;x._isInFormField=!!u;x._isNativeSelect&&(x.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select");return x};W(mA,COb);g=mA.prototype;g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};g.ngOnChanges=function(){this.stateChanges.next()};
g.ngOnDestroy=function(){this.stateChanges.complete();this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)};g.ngDoCheck=function(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next()));this._dirtyCheckNativeValue();this._dirtyCheckPlaceholder()};
g.focus=function(a){this._elementRef.nativeElement.focus(a)};g._focusChanged=function(a){a!==this.focused&&(this.focused=a,this.stateChanges.next())};g._onInput=function(){};g._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};
g._dirtyCheckPlaceholder=function(){var a=this._getPlaceholder();if(a!==this._previousPlaceholder){var b=this._elementRef.nativeElement;(this._previousPlaceholder=a)?b.setAttribute("placeholder",a):b.removeAttribute("placeholder")}};g._getPlaceholder=function(){return this.placeholder||null};g._validateType=function(){AOb.indexOf(this._type)};g._isNeverEmpty=function(){return-1<this._neverEmptyInputTypes.indexOf(this._type)};
g._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};g.onContainerClick=function(){this.focused||this.focus()};g._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||1<a.size)};
Qh.Object.defineProperties(mA.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=ah(a);this.focused&&(this.focused=!1,this.stateChanges.next())}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=a||this._uid}},required:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return null!=(d=null!=(c=this._required)?c:null==(a=this.ngControl)?void 0:null==(b=a.control)?void 0:GJb(b))?d:!1},
set:function(a){this._required=ah(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&cma().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},value:{configurable:!0,enumerable:!0,get:function(){return this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._inputValueAccessor.value=a,this.stateChanges.next())}},readonly:{configurable:!0,enumerable:!0,get:function(){return this._readonly},
set:function(a){this._readonly=ah(a)}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,b=a.options[0];return this.focused||a.multiple||!this.empty||!!(-1<a.selectedIndex&&b&&b.label)}return this.focused||!this.empty}}});
mA.\u0275fac=function(a){return new (a||mA)(z(ae),z(Fw),z(ew,10),z(mw,8),z(vw,8),z(Zy),z(zOb,10),z($z),z(Df),z(eA,8))};
mA.\u0275dir=sd({type:mA,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(a,b){a&1&&L("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(cg("id",b.id)("disabled",b.disabled)("required",b.required),Nf("name",b.name||null)("readonly",
b.readonly&&!b._isNativeSelect||null)("aria-invalid",b.empty&&b.required?null:b.errorState)("aria-required",b.required)("id",b.id),Xf("mat-input-server",b._isServer)("mat-mdc-form-field-textarea-control",b._isInFormField&&b._isTextarea)("mat-mdc-form-field-input-control",b._isInFormField)("mdc-text-field__input",b._isInFormField)("mat-mdc-native-select-inline",b._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",
userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[lg([{provide:lA,useExisting:mA}]),Jf,Fd]});var nA=function(){var a=mA.apply(this,arguments)||this;a._legacyFormField=jd(eA,{optional:!0});return a};W(nA,mA);nA.prototype._getPlaceholder=function(){var a=this._legacyFormField,b;return!a||"legacy"!==a.appearance||(null==(b=a._hasLabel)?0:b.call(a))?this.placeholder:null};nA.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(nA)))(b||nA)}}();
nA.\u0275dir=sd({type:nA,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(a,b){a&2&&(Nf("data-placeholder",b.placeholder),Xf("mat-input-server",b._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",
!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",b._isInlineSelect()))},exportAs:["matInput"],features:[lg([{provide:dA,useExisting:nA}]),Jf]});var oA=function(){};oA.\u0275fac=function(a){return new (a||oA)};oA.\u0275mod=qd({type:oA});oA.\u0275inj=ad({providers:[Zy],imports:[cA,kA,Ty,cA,kA]});var apa;var DOb=function(a,b){this.url=a;this.svgText=null;this.options=b},pA=function(a,b,c,d){this._httpClient=a;this._sanitizer=b;this._errorHandler=d;this._svgIconConfigs=new Map;this._iconSetConfigs=new Map;this._cachedIconsByUrl=new Map;this._inProgressUrlFetches=new Map;this._fontCssClassesByAlias=new Map;this._resolvers=[];this._defaultFontSetClass=["material-icons","mat-ligature-font"];this._document=c},EOb=function(a,b){return a._fontCssClassesByAlias.get(b)||b},FOb=function(a,b,c){c=void 0===c?
"":c;var d=c+":"+b,e=a._svgIconConfigs.get(d);return e?a._getSvgFromConfig(e):(e=a._getIconConfigFromResolvers(c,b))?(a._svgIconConfigs.set(d,e),a._getSvgFromConfig(e)):(c=a._iconSetConfigs.get(c))?a._getSvgFromIconSetConfigs(b,c):(0,B.throwError)(Error("hb`"+d))};g=pA.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};
g._getSvgFromConfig=function(a){return a.svgText?(0,B.of)(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(A(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return(0,B.of)(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(gf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return(0,B.of)(null)}))});return(0,B.forkJoin)(d).pipe(A(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("hb`"+a);return e}))};
g._extractIconWithNameFromAnySet=function(a,b){for(var c=b.length-1;0<=c;c--){var d=b[c];if(d.svgText&&-1<d.svgText.toString().indexOf(a)){var e=this._svgElementFromConfig(d);if(d=this._extractSvgIconFromSet(e,a,d.options))return d}}return null};g._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(Bf(function(c){return a.svgText=c}),A(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?(0,B.of)(null):this._fetchIcon(a).pipe(Bf(function(b){return a.svgText=b}))};
g._extractSvgIconFromSet=function(a,b,c){a=a.querySelector('[id="'+b+'"]');if(!a)return null;a=a.cloneNode(!0);a.removeAttribute("id");if("svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,c);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),c);b=this._svgElementFromString(cpa("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
g._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("kb");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString(cpa("<svg></svg>")),c=a.attributes,d=0;d<c.length;d++){var e=c[d],f=e.name;e=e.value;"id"!==f&&b.setAttribute(f,e)}for(c=0;c<a.childNodes.length;c++)a.childNodes[c].nodeType===this._document.ELEMENT_NODE&&b.appendChild(a.childNodes[c].cloneNode(!0));return b};
g._setSvgAttributes=function(a,b){a.setAttribute("fit","");a.setAttribute("height","100%");a.setAttribute("width","100%");a.setAttribute("preserveAspectRatio","xMidYMid meet");a.setAttribute("focusable","false");b&&b.viewBox&&a.setAttribute("viewBox",b.viewBox);return a};
g._fetchIcon=function(a){var b=this,c=a.url,d,e;a=null!=(e=null==(d=a.options)?void 0:d.withCredentials)?e:!1;if(!this._httpClient)throw Error("ib");if(null==c)throw Error("lb`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("jb`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(A(function(h){return cpa(h)}),pf(function(){return b._inProgressUrlFetches.delete(f)}),vf());this._inProgressUrlFetches.set(f,c);return c};
g._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};g._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};g._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
g._getIconConfigFromResolvers=function(a,b){for(var c=0;c<this._resolvers.length;c++){var d=this._resolvers[c](b,a);if(d)return d.url&&d.options?new DOb(d.url,d.options):new DOb(d)}};pA.\u0275fac=function(a){return new (a||pA)(n(px,8),n(vx),n(Oh,8),n(ve))};pA.\u0275prov=$c({token:pA,factory:pA.\u0275fac,providedIn:"root"});new au;new bu;new au;new au;var GOb=Rh(function(a){this._elementRef=a}),HOb=new Ad("MAT_ICON_DEFAULT_OPTIONS"),IOb=new Ad("mat-icon-location",{providedIn:"root",factory:dpa}),JOb="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),KOb=JOb.map(function(a){return"["+a+"]"}).join(", "),LOb=/^url\(['"]?#(.*?)['"]?\)$/,qA=function(a,b,c,d,e,f){var h=GOb.call(this,a)||this;h._iconRegistry=b;h._location=d;h._errorHandler=e;h._inline=!1;h._previousFontSetClass=[];h._currentIconFetch=
B.Subscription.EMPTY;f&&(f.color&&(h.color=h.defaultColor=f.color),f.fontSet&&(h.fontSet=f.fontSet));c||a.nativeElement.setAttribute("aria-hidden","true");return h};W(qA,GOb);g=qA.prototype;g._splitIconName=function(a){if(!a)return["",""];var b=a.split(":");switch(b.length){case 1:return["",b[0]];case 2:return b;default:throw Error("mb`"+a);}};g.ngOnInit=function(){this._updateFontIconClasses()};
g.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};g.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};g._usingFontIcon=function(){return!this.svgIcon};
g._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};g._clearSvgElement=function(){var a=this._elementRef.nativeElement,b=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();b--;){var c=a.childNodes[b];1===c.nodeType&&"svg"!==c.nodeName.toLowerCase()||c.remove()}};
g._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?EOb(this._iconRegistry,this.fontSet).split(/ +/):this._iconRegistry._defaultFontSetClass).filter(function(c){return 0<c.length});this._previousFontSetClass.forEach(function(c){return a.classList.remove(c)});b.forEach(function(c){return a.classList.add(c)});this._previousFontSetClass=b;this.fontIcon===this._previousFontIconClass||b.includes("mat-ligature-font")||(this._previousFontIconClass&&
a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}};g._cleanupFontValue=function(a){return"string"===typeof a?a.trim().split(" ")[0]:a};g._prependPathToReferences=function(a){var b=this._elementsWithExternalReferences;b&&b.forEach(function(c,d){c.forEach(function(e){d.setAttribute(e.name,"url('"+a+"#"+e.value+"')")})})};
g._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(KOb),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={i$jscomp$560:0};a.i$jscomp$560<b.length;a={i$jscomp$560:a.i$jscomp$560},a.i$jscomp$560++)JOb.forEach(function(d){return function(e){var f=b[d.i$jscomp$560],h=f.getAttribute(e);if(h=h?h.match(LOb):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:h[1]})}}}(a))};
g._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=l(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=FOb(this._iconRegistry,d,c).pipe(nf()).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("nb`"+c+"`"+d+"`"+e.message))})}};
Qh.Object.defineProperties(qA.prototype,{inline:{configurable:!0,enumerable:!0,get:function(){return this._inline},set:function(a){this._inline=ah(a)}},svgIcon:{configurable:!0,enumerable:!0,get:function(){return this._svgIcon},set:function(a){a!==this._svgIcon&&(a?this._updateSvgIcon(a):this._svgIcon&&this._clearSvgElement(),this._svgIcon=a)}},fontSet:{configurable:!0,enumerable:!0,get:function(){return this._fontSet},set:function(a){a=this._cleanupFontValue(a);a!==this._fontSet&&(this._fontSet=
a,this._updateFontIconClasses())}},fontIcon:{configurable:!0,enumerable:!0,get:function(){return this._fontIcon},set:function(a){a=this._cleanupFontValue(a);a!==this._fontIcon&&(this._fontIcon=a,this._updateFontIconClasses())}}});qA.\u0275fac=function(a){return new (a||qA)(z(ae),z(pA),Ud("aria-hidden"),z(IOb),z(ve),z(HOb,8))};
qA.\u0275cmp=od({type:qA,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(a,b){a&2&&(Nf("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet)("fontIcon",b._usingFontIcon()?b.fontIcon:null),Xf("mat-icon-inline",b.inline)("mat-icon-no-color","primary"!==b.color&&"accent"!==b.color&&"warn"!==b.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",
fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Jf],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],
encapsulation:2,changeDetection:0});var rA=function(){};rA.\u0275fac=function(a){return new (a||rA)};rA.\u0275mod=qd({type:rA});rA.\u0275inj=ad({});var sA=function(){};sA.\u0275fac=function(a){return new (a||sA)};sA.\u0275mod=qd({type:sA});sA.\u0275inj=ad({});var tA={};tA.AssertionError=ba;tA.ENABLE_ASSERTS=!1;tA.assert=function(a){return a};tA.assertArray=function(a){return a};tA.assertBoolean=function(a){return a};tA.assertElement=function(a){return a};tA.assertExists=function(a){return a};tA.assertFinite=function(a){return a};tA.assertFunction=function(a){return a};tA.assertInstanceof=function(a){return a};tA.assertNumber=function(a){return a};tA.assertObject=function(a){return a};tA.assertString=function(a){return a};tA.fail=function(){};var uA=function(){};uA.\u0275fac=function(a){return new (a||uA)};uA.\u0275mod=qd({type:uA});uA.\u0275inj=ad({});var vA=function(){};vA.\u0275fac=function(a){return new (a||vA)};vA.\u0275mod=qd({type:vA});vA.\u0275inj=ad({imports:[uA]});var MOb=function(a){this.cellValue_=a};var wA=function(a,b,c){this.metricName_=a;this.cellType_=b;this.fields_=c||[];this.cellMap_=new Map};g=wA.prototype;g.addCell=function(a){var b=xd.apply(1,arguments),c=this.getCells(b);c?c.push(new MOb(a)):this.setCell(a,b)};g.setCell=function(a){var b=this.getKey_(xd.apply(1,arguments));this.cellMap_.set(b,[new MOb(a)])};g.getCells=function(){var a=this.getKey_(xd.apply(0,arguments));return this.cellMap_.has(a)?this.cellMap_.get(a):void 0};
g.getCell=function(){var a=this.getCells(xd.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap_.clear()};g.getKey_=function(){var a=xd.apply(0,arguments);return a?a.join(","):"key"};var xA=function(a,b){wA.call(this,a,3,b)};W(xA,wA);xA.prototype.incrementCounter=function(){this.incrementCounterBy(1,xd.apply(0,arguments))};xA.prototype.incrementCounterBy=function(a){var b=xd.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue_);this.setCell(c+a,b)};var NOb=function(a,b){wA.call(this,a,2,b)};W(NOb,wA);NOb.prototype.record=function(a){this.addCell(a,xd.apply(1,arguments))};var yA=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};yA.prototype.disposed_=!1;yA.prototype.isDisposed=function(){return this.disposed_};yA.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};var zA=function(a,b){b=et(Zh,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};yA.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var AA=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};AA.prototype.stopPropagation=function(){this.propagationStopped_=!0};AA.prototype.preventDefault=function(){this.defaultPrevented=!0};var OOb=[],POb=[],QOb=!1,ROb=function(a){OOb[OOb.length]=a;if(QOb)for(var b=0;b<POb.length;b++)a(dt(POb[b].wrap,POb[b]))};var SOb=function(){if(!da.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};da.addEventListener("test",c,b);da.removeEventListener("test",c,b)}catch(d){}return a}();var BA=function(a,b){AA.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.platformModifierKey=!1;this.pointerId=0;this.pointerType="";this.event_=null;a&&this.init(a,b)};ft(BA,AA);var TOb={2:"touch",3:"pen",4:"mouse"};
BA.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?it&&(zEb(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=jt||void 0!==a.offsetX?
a.offsetX:a.layerX,this.offsetY=jt||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=tq?a.metaKey:a.ctrlKey;this.pointerId=
a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:TOb[a.pointerType]||"";this.state=a.state;this.event_=a;a.defaultPrevented&&BA.superClass_.preventDefault.call(this)};BA.prototype.stopPropagation=function(){BA.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
BA.prototype.preventDefault=function(){BA.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var UOb="closure_listenable_"+(1E6*Math.random()|0),CA=function(a){return!(!a||!a[UOb])};var VOb=0;var WOb=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++VOb;this.removed=this.callOnce=!1},XOb=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};var DA=function(a){this.src=a;this.listeners={};this.typeCount_=0};DA.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var h=YOb(a,b,d,e);-1<h?(b=a[h],c||(b.callOnce=!1)):(b=new WOb(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
DA.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=YOb(e,b,c,d);return-1<b?(XOb(e[b]),xa(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var ZOb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=za(a.listeners[c],b);d&&(XOb(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d};
DA.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,XOb(d[e]);delete this.listeners[c];this.typeCount_--}return b};DA.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=YOb(a,b,c,d));return-1<e?a[e]:null};
DA.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return pca(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var YOb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1};var $Ob="closure_lm_"+(1E6*Math.random()|0),aPb={},bPb=0,Qo=function(a,b,c,d,e){if(d&&d.once)return EA(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Qo(a,b[f],c,d,e);return null}c=cPb(c);return CA(a)?a.listen(b,c,Fa(d)?!!d.capture:!!d,e):dPb(a,b,c,!1,d,e)},dPb=function(a,b,c,d,e,f){if(!b)throw Error("ob");var h=Fa(e)?!!e.capture:!!e,k=FA(a);k||(a[$Ob]=k=new DA(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=ePb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)SOb||(e=h),void 0===e&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(fPb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("pb");bPb++;return c},ePb=function(){var a=gPb,b=function(c){return a.call(b.src,b.listener,c)};return b},EA=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)EA(a,b[f],c,d,e);return null}c=cPb(c);return CA(a)?a.listenOnce(b,c,Fa(d)?!!d.capture:!!d,e):dPb(a,b,c,!0,d,e)},GA=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)GA(a,b[f],c,d,e);else d=Fa(d)?!!d.capture:!!d,c=cPb(c),CA(a)?a.unlisten(b,c,d,e):a&&(a=FA(a))&&(b=a.getListener(b,c,d,e))&&HA(b)},HA=function(a){if("number"===typeof a||!a||a.removed)return!1;var b=a.src;if(CA(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(fPb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);bPb--;(c=FA(b))?(ZOb(c,a),0==c.typeCount_&&(c.src=null,b[$Ob]=null)):XOb(a);
return!0},fPb=function(a){return a in aPb?aPb[a]:aPb[a]="on"+a},gPb=function(a,b){if(a.removed)a=!0;else{b=new BA(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&HA(a);a=c.call(d,b)}return a},FA=function(a){a=a[$Ob];return a instanceof DA?a:null},hPb="__closure_events_fn_"+(1E9*Math.random()>>>0),cPb=function(a){if("function"===typeof a)return a;a[hPb]||(a[hPb]=function(b){return a.handleEvent(b)});return a[hPb]};ROb(function(a){gPb=a(gPb)});var Po=function(){yA.call(this);this.eventTargetListeners_=new DA(this);this.actualEventTarget_=this;this.parentEventTarget_=null};ft(Po,yA);Po.prototype[UOb]=!0;g=Po.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){Qo(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){GA(this,a,b,c,d)};
g.dispatchEvent=function(a){var b,c=this.getParentEventTarget();if(c)for(b=[];c;c=c.getParentEventTarget())b.push(c);c=this.actualEventTarget_;var d=a.type||a;if("string"===typeof a)a=new AA(a,c);else if(a instanceof AA)a.target=a.target||c;else{var e=a;a=new AA(d,c);Bc(a,e)}e=!0;if(b)for(var f=b.length-1;!a.propagationStopped_&&0<=f;f--){var h=a.currentTarget=b[f];e=h.fireListeners(d,!0,a)&&e}a.propagationStopped_||(h=a.currentTarget=c,e=h.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=h.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)h=a.currentTarget=b[f],e=h.fireListeners(d,!1,a)&&e;return e};g.disposeInternal=function(){Po.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};g.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};g.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
g.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};g.unlistenByKey=function(a){return ZOb(this.eventTargetListeners_,a)};g.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0};
g.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var h=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=!1!==h.call(k,c)&&d}}return d&&!c.defaultPrevented};g.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
g.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(void 0!==a?String(a):void 0,b)};var iPb=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};iPb.prototype.get=function(){if(0<this.occupants_){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a};iPb.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var jPb=rq||jt;var kPb=function(a,b){return a+Math.random()*(b-a)};var Bq=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};Bq.prototype.clone=function(){return new Bq(this.x,this.y)};Bq.prototype.equals=function(a){return a instanceof Bq&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Cq=function(a,b){return new Bq(a.x-b.x,a.y-b.y)};g=Bq.prototype;g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.translate=function(a,b){a instanceof Bq?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),"number"===typeof b&&(this.y+=b));return this};g.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};var IA=function(a,b){this.width=a;this.height=b},i6a=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=IA.prototype;g.clone=function(){return new IA(this.width,this.height)};g.aspectRatio=function(){return this.width/this.height};g.isEmpty=function(){return!(this.width*this.height)};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};var So=function(a){return a?new JA(KA(a)):hEb||(hEb=new JA)},LA=function(a,b){return"string"===typeof b?a.getElementById(b):b},MA=function(a,b){return(b||document).getElementsByTagName(String(a))},mPb=function(a,b){vc(b,function(c,d){c&&"object"==typeof c&&c.implementsGoogStringTypedString&&(c=c.getTypedStringValue());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:lPb.hasOwnProperty(d)?a.setAttribute(lPb[d],c):si(d,"aria-")||si(d,"data-")?a.setAttribute(d,c):a[d]=c})},
lPb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},NA=function(a){a=(a||window).document;a=nPb(a)?a.documentElement:a.body;return new IA(a.clientWidth,a.clientHeight)},PA=function(a){var b=OA(a);a=a.parentWindow||a.defaultView;return rq&&a.pageYOffset!=b.scrollTop?new Bq(b.scrollLeft,b.scrollTop):new Bq(a.pageXOffset||
b.scrollLeft,a.pageYOffset||b.scrollTop)},OA=function(a){return a.scrollingElement?a.scrollingElement:!jt&&nPb(a)?a.documentElement:a.body||a.documentElement},QA=function(a){return a?a.parentWindow||a.defaultView:window},pPb=function(a,b,c){return oPb(document,arguments)},oPb=function(a,b){var c=b[1],d=Oj(a,String(b[0]));c&&("string"===typeof c?d.className=c:Array.isArray(c)?d.className=c.join(" "):mPb(d,c));2<b.length&&qPb(a,d,b,2);return d},qPb=function(a,b,c,d){function e(k){k&&b.appendChild("string"===
typeof k?a.createTextNode(k):k)}for(;d<c.length;d++){var f=c[d];if(!Ca(f)||Fa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(Fa(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}ta(h?Ba(f):f,e)}}},Oj=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},nPb=function(a){return"CSS1Compat"==a.compatMode},rPb=function(a,b){qPb(KA(a),a,arguments,
1)},sPb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},RA=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},SA=function(a){return Fa(a)&&1==a.nodeType},d8a=function(a){var b;if(jPb&&(b=a.parentElement))return b;b=a.parentNode;return SA(b)?b:null},xPa=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==
a},KA=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},tPb=function(a){return a.contentDocument||a.contentWindow.document},TA=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else sPb(a),a.appendChild(KA(a).createTextNode(String(b)))},uPb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},vPb={IMG:" ",BR:"\n"},wPb=function(a){a=
a.tabIndex;return"number"===typeof a&&0<=a&&32768>a},xPb=function(a,b,c){if(!(a.nodeName in uPb))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in vPb)b.push(vPb[a.nodeName]);else for(a=a.firstChild;a;)xPb(a,b,c),a=a.nextSibling},D6a=function(){var a=QA();return void 0!==a.devicePixelRatio?a.devicePixelRatio:a.matchMedia?yPb(3)||yPb(2)||yPb(1.5)||yPb(1)||.75:1},yPb=function(a){return QA().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+
a+"),(min-resolution: "+96*a+"dpi)").matches?a:0},JA=function(a){this.document_=a||da.document||document};g=JA.prototype;g.getDomHelper=So;g.getElement=function(a){return LA(this.document_,a)};g.$=JA.prototype.getElement;g.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
g.getElementsByTagNameAndClass=function(a,b,c){c=c||this.document_;a=a&&"*"!=a?String(a).toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))b=c.querySelectorAll(a+(b?"."+b:""));else if(b&&c.getElementsByClassName)if(c=c.getElementsByClassName(b),a){for(var d={},e=0,f=0,h;h=c[f];f++)a==h.nodeName&&(d[e++]=h);d.length=e;b=d}else b=c;else if(c=c.getElementsByTagName(a||"*"),b){d={};for(f=e=0;h=c[f];f++)a=h.className,"function"==typeof a.split&&va(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;
b=d}else b=c;return b};g.$$=JA.prototype.getElementsByTagNameAndClass;g.setProperties=mPb;g.getViewportSize=function(a){return NA(a||this.getWindow())};g.createDom=function(a,b,c){return oPb(this.document_,arguments)};g.createElement=function(a){return Oj(this.document_,a)};g.createTextNode=function(a){return this.document_.createTextNode(String(a))};g.getWindow=function(){var a=this.document_;return a.parentWindow||a.defaultView};g.appendChild=function(a,b){a.appendChild(b)};g.append=rPb;
g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};g.removeChildren=sPb;g.removeNode=RA;
g.getChildren=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};g.isElement=SA;g.getParentElement=d8a;g.contains=xPa;
g.isFocusable=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!a.hasAttribute("tabindex")||wPb(a)):b=a.hasAttribute("tabindex")&&wPb(a);if(b&&rq){var c;"function"!==typeof a.getBoundingClientRect||rq&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};var zPb,APb=function(){var a=da.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!la("Presto")&&(a=function(){var e=Oj(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),k="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=dt(function(q){if(("*"==k||q.origin==k)&&q.data==h)this.port1.onmessage()},
this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,k)}}});if("undefined"!==typeof a&&!daa()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cb;c.cb=null;e()}};return function(e){d.next={cb:e};d=d.next;b.port2.postMessage(0)}}return function(e){da.setTimeout(e,0)}},BPb=cGb;ROb(function(a){BPb=a});var CPb=function(){this.workTail_=this.workHead_=null};CPb.prototype.add=function(a,b){var c=DPb.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};CPb.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};var DPb=new iPb(function(){return new EPb},function(a){return a.reset()}),EPb=function(){this.next=this.scope=this.fn=null};
EPb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};EPb.prototype.reset=function(){this.next=this.scope=this.fn=null};var FPb,GPb=!1,HPb=new CPb,UA=function(a,b){FPb||IPb();GPb||(FPb(),GPb=!0);HPb.add(a,b)},IPb=function(){if(da.Promise&&da.Promise.resolve){var a=da.Promise.resolve(void 0);FPb=function(){a.then(JPb)}}else FPb=function(){var b=JPb;b=BPb(b);"function"!==typeof da.setImmediate||da.Window&&da.Window.prototype&&(ma()||!la("Edge"))&&da.Window.prototype.setImmediate==da.setImmediate?(zPb||(zPb=APb()),zPb(b)):da.setImmediate(b)}},JPb=function(){for(var a;a=HPb.remove();){try{a.fn.call(a.scope)}catch(b){ea(b)}DPb.put(a)}GPb=
!1};var KPb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var WA=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=St)try{var b=this;a.call(void 0,function(c){VA(b,2,c)},function(c){VA(b,3,c)})}catch(c){VA(this,3,c)}},LPb=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};LPb.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var MPb=new iPb(function(){return new LPb},function(a){a.reset()}),NPb=function(a,b,c){var d=MPb.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},XA=function(a){if(a instanceof WA)return a;var b=new WA(St);VA(b,2,a);return b},OPb=function(a){return new WA(function(b,c){c(a)})},QPb=function(a,b,c){PPb(a,b,c,null)||UA(et(b,a))},RPb=function(a){return new WA(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],QPb(e,b,c)})},SPb=function(a){return new WA(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(u,x){d--;e[u]=x;0==d&&b(e)},h=function(u){c(u)},k=0,q;k<a.length;k++)q=a[k],QPb(q,et(f,k),h);else b(e)})},TPb=function(a){return new WA(function(b,c){var d=a.length,e=[];if(d)for(var f=function(u){b(u)},h=function(u,x){d--;e[u]=x;0==d&&c(e)},k=0,q;k<a.length;k++)q=a[k],QPb(q,f,et(h,k));else b(void 0)})},VPb=function(){var a,b,c=new WA(function(d,e){a=d;b=e});return new UPb(c,a,b)};
WA.prototype.then=function(a,b,c){return WPb(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};WA.prototype.$goog_Thenable=!0;var YPb=function(a,b){b=NPb(b,b);b.always=!0;XPb(a,b);return a};WA.prototype.thenCatch=function(a,b){return WPb(this,null,a,b)};WA.prototype.catch=WA.prototype.thenCatch;WA.prototype.cancel=function(a){if(0==this.state_){var b=new YA(a);UA(function(){ZPb(this,b)},this)}};
var ZPb=function(a,b){if(0==a.state_)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,f=null,h=c.callbackEntries_;h&&(h.always||(d++,h.child==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.state_&&1==d?ZPb(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):$Pb(c),aQb(c,e,3,b)))}a.parent_=null}else VA(a,3,b)},XPb=function(a,b){a.callbackEntries_||2!=a.state_&&3!=a.state_||bQb(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},WPb=function(a,b,c,d){var e=NPb(null,null,null);e.child=new WA(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(u){h(u)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);void 0===q&&k instanceof YA?h(k):f(q)}catch(u){h(u)}}:h});e.child.parent_=a;XPb(a,e);return e.child};WA.prototype.unblockAndFulfill_=function(a){this.state_=0;VA(this,2,a)};WA.prototype.unblockAndReject_=function(a){this.state_=0;VA(this,3,a)};
var VA=function(a,b,c){0==a.state_&&(a===c&&(b=3,c=new TypeError("qb")),a.state_=1,PPb(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,bQb(a),3!=b||c instanceof YA||cQb(a,c)))},PPb=function(a,b,c,d){if(a instanceof WA)return XPb(a,NPb(b||St,c||null,d)),!0;if(KPb(a))return a.then(b,c,d),!0;if(Fa(a))try{var e=a.then;if("function"===typeof e)return dQb(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},dQb=function(a,b,c,d,e){var f=!1,h=function(q){f||(f=!0,
c.call(e,q))},k=function(q){f||(f=!0,d.call(e,q))};try{b.call(a,h,k)}catch(q){k(q)}},bQb=function(a){a.executing_||(a.executing_=!0,UA(a.executeCallbacks_,a))},$Pb=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};WA.prototype.executeCallbacks_=function(){for(var a;a=$Pb(this);)aQb(this,a,this.state_,this.result_);this.executing_=!1};
var aQb=function(a,b,c,d){if(3==c&&b.onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,eQb(b,c,d);else try{b.always?b.onFulfilled.call(b.context):eQb(b,c,d)}catch(e){fQb.call(null,e)}MPb.put(b)},eQb=function(a,b,c){2==b?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},cQb=function(a,b){a.hadUnhandledRejection_=!0;UA(function(){a.hadUnhandledRejection_&&fQb.call(null,b)})},fQb=ea,YA=function(a){aa.call(this,
a);this.reportErrorToServer=!1};ft(YA,aa);YA.prototype.name="cancel";var UPb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var ZA=function(a,b){Po.call(this);this.interval_=a||1;this.timerObject_=b||da;this.boundTick_=dt(this.tick_,this);this.last_=Date.now()};ft(ZA,Po);g=ZA.prototype;g.enabled=!1;g.timer_=null;g.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
g.tick_=function(){if(this.enabled){var a=Date.now()-this.last_;0<a&&a<.8*this.interval_?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};g.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Date.now())};
g.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};g.disposeInternal=function(){ZA.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Mp=function(a,b,c){if("function"===typeof a)c&&(a=dt(a,c));else if(a&&"function"==typeof a.handleEvent)a=dt(a.handleEvent,a);else throw Error("rb");return 2147483647<Number(b)?-1:da.setTimeout(a,b||0)},Np=function(a){da.clearTimeout(a)},gQb=function(a,b){var c=null;return(new WA(function(d,e){c=Mp(function(){d(b)},a);-1==c&&e(Error("sb"))})).thenCatch(function(d){Np(c);throw d;})};var hQb=function(a){yA.call(this);this.streamzLogger_=a;this.metricMap=new Map;this.disabledMetrics_=new Set;this.invocationCount=0;this.flushInterval=3E4;this.flushTimer=new ZA(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this);zA(this,this.flushTimer)};W(hQb,yA);var iQb=function(a){a.flushTimer.enabled||a.flushTimer.start();a.invocationCount++;100<=a.invocationCount&&a.snapshotAndFlush()};g=hQb.prototype;
g.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(p(a)).filter(function(b){return b.cellMap_.size});a.length&&this.streamzLogger_.flush(a,!1);jQb(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=xd.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new xA(a,b))};g.addNewEventMetric=function(a){var b=xd.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new NOb(a,b))};
g.getMetric=function(a){return this.disabledMetrics_.has(a)?void 0:this.metricMap.get(a)};g.incrementCounter=function(a){this.incrementCounterBy.apply(this,[a,1].concat(p(xd.apply(1,arguments))))};g.incrementCounterBy=function(a,b){var c=xd.apply(2,arguments),d=this.getMetric(a);d&&d instanceof xA&&(d.incrementCounterBy(b,c),iQb(this))};g.record=function(a,b){var c=xd.apply(2,arguments),d=this.getMetric(a);d&&d instanceof NOb&&(d.record(b,c),iQb(this))};var jQb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};var kQb=function(a){this.metricName_="/client_streamz/one_developer_workflow/events/usage";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"name"},{field_type:3,field_name:"source"},{field_type:1,field_name:"state"})};kQb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};kQb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var lQb=function(a){this.metricName_="/client_streamz/one_developer_workflow/events/performance";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"name"})};lQb.prototype.record=function(a,b,c){this.streamzService_.record(this.metricName_,a,b,c)};lQb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var mQb=function(a){this.metricName_="/client_streamz/one_developer_workflow/rpc/request_count";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"method_id"})};mQb.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};mQb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var nQb=function(a){this.metricName_="/client_streamz/one_developer_workflow/rpc/error_count";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"method_id"},{field_type:2,field_name:"code"})};nQb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};nQb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};var oQb={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};var rQb=function(a){a=pQb(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,f=e,h=0,k=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};12<=f;f-=12,h+=12)b+=qQb(a,h),c+=qQb(a,h+4),d+=qQb(a,h+8),k();d+=e;switch(f){case 11:d+=a[h+10]<<24;case 10:d+=a[h+9]<<16;case 9:d+=a[h+8]<<8;case 8:c+=a[h+7]<<24;case 7:c+=a[h+6]<<16;case 6:c+=a[h+5]<<8;case 5:c+=a[h+4];
case 4:b+=a[h+3]<<24;case 3:b+=a[h+2]<<16;case 2:b+=a[h+1]<<8;case 1:b+=a[h]}k();return oQb.toString(d)},sQb=function(a){return a},pQb=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b},qQb=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var tQb=function(a){this.internalArray_=m(a)};W(tQb,X);tQb.prototype.getValueCase=function(){return Bl(this,uQb)};var uQb=[1,2,3];var vQb=function(a){this.internalArray_=m(a)};W(vQb,X);vQb.prototype.getValueCase=function(){return Bl(this,wQb)};var wQb=[1,2,3];var xQb=function(a){this.internalArray_=m(a)};W(xQb,X);xQb.prototype.setField=function(a){rt(this,1,tQb,a)};xQb.repeatedFields_=[1];var $A=function(a){this.internalArray_=m(a)};W($A,X);$A.prototype.getFieldName=function(){return xt(this,3)};$A.prototype.setFieldName=function(a){Dt(this,3,a)};$A.repeatedFields_=[3,6,4];var yQb=function(a){this.internalArray_=m(a)};W(yQb,X);yQb.repeatedFields_=[1];var zQb=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.startsWith("blob:")&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("tb`"+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==
c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("ub`"+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};var BQb=function(a,b,c){var d=String(da.location.href);return d&&a&&b?[b,AQb(zQb(d),a,c||null)].join(" "):null},AQb=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],ta(d,function(k){e.push(k)}),CQb(e.join(" "));var f=[],h=[];ta(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];ta(d,function(k){e.push(k)});a=CQb(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},CQb=function(a){var b=
fpa();b.update(a);return b.digestString().toLowerCase()};var DQb={};var EQb=function(){this.document_=document||{cookie:""}};g=EQb.prototype;g.isEnabled=function(){if(!da.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("vb`"+a);if(/[;\r\n]/.test(b))throw Error("wb`"+b);void 0===k&&(k=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";k=0>k?"":0==k?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*k)).toUTCString();this.document_.cookie=a+"="+b+c+h+k+d+(null!=e?";samesite="+e:"")};
g.get=function(a,b){for(var c=a+"=",d=(this.document_.cookie||"").split(";"),e=0,f;e<d.length;e++){f=ui(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};g.getKeys=function(){return FQb(this).keys};g.getValues=function(){return FQb(this).values};g.isEmpty=function(){return!this.document_.cookie};
g.getCount=function(){return this.document_.cookie?(this.document_.cookie||"").split(";").length:0};g.containsKey=function(a){return void 0!==this.get(a)};g.containsValue=function(a){for(var b=FQb(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=FQb(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var FQb=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=ui(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};var GQb=function(a){return!!DQb.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)},HQb=function(a,b,c,d){(a=da[a])||"undefined"===typeof document||(a=(new EQb).get(b));return a?BQb(a,c,d):null},Ko=function(a,b){b=void 0===b?!1:b;var c=zQb(String(da.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=da.__SAPISID||da.__APISID||da.__3PSAPISID||da.__OVERRIDE_SID;GQb(e)&&(f=f||da.__1PSAPISID);if(f)e=!0;else{if("undefined"!==typeof document){var h=new EQb;f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||
h.get("SID")||h.get("OSID");GQb(e)&&(f=f||h.get("__Secure-1PAPISID"))}e=!!f}e&&(e=(c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:"))?da.__SAPISID:da.__APISID,e||"undefined"===typeof document||(e=new EQb,e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?BQb(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&GQb(b)&&((b=HQb("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=HQb("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a)));return 0==d.length?null:d.join(" ")};var aB=function(a){this.internalArray_=m(a)};W(aB,X);aB.repeatedFields_=[2];var IQb=function(a){this.internalArray_=m(a)};W(IQb,X);var JQb=function(a){this.internalArray_=m(a)};W(JQb,X);var KQb=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a};KQb.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};KQb.prototype.getValue=function(){return this.currValue_};var LQb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),MQb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}},NQb=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+
1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]},OQb=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)OQb(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))},PQb=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)OQb(a[b],a[b+1],c);return c.join("&")},QQb=function(a){var b=[],c;for(c in a)OQb(c,a[c],b);return b.join("&")},bB=function(a,b){var c=2==arguments.length?PQb(arguments[1],0):PQb(arguments,
1);return NQb(a,c)},eua=function(a,b){b=QQb(b);return NQb(a,b)},cB=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";return NQb(a,b+c)},RQb=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1},SQb=/#|$/,TQb=function(a,b){var c=a.search(SQb),d=RQb(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,
-1!==e?e:0).replace(/\+/g," "))},UQb=/[?&]($|#)/;var dB=function(a){this.internalArray_=m(a)};W(dB,X);dB.prototype.setTransmissionType=function(a){rj(this,1,a)};dB.prototype.setRetryCount=function(a){nj(this,3,a)};dB.prototype.setPersistedLogRecoveredCount=function(a){nj(this,4,a)};dB.prototype.setPersistedLogExpiredCount=function(a){nj(this,5,a)};var eB=function(a){this.internalArray_=m(a)};W(eB,X);eB.prototype.setModel=function(a){return qj(this,6,a)};eB.repeatedFields_=[1];var fB=function(a){this.internalArray_=m(a)};W(fB,X);fB.prototype.getLocale=function(){return Ej(this,5)};fB.prototype.setLocale=function(a){return qj(this,5,a)};fB.prototype.setBuildLabel=function(a){qj(this,7,a)};fB.prototype.getMutableFlushInfo=function(){return zFb(this,dB,10)};var VQb=["platform","platformVersion","architecture","model","uaFullVersion"];new eB;var Bt=function(a){this.internalArray_=m(a)};W(Bt,X);Bt.prototype.getMutableJsClientInfo=function(){return zFb(this,fB,11)};var gB=function(a){this.internalArray_=m(a)};W(gB,X);g=gB.prototype;g.getKey=function(){return Ej(this,1)};g.hasKey=function(){return Ii(this,1)};g.getValue=function(){return Ej(this,2)};g.getValue_legacyNullable=function(){return Ej(this,2)};g.setValue=function(a){return qj(this,2,a)};g.hasValue=function(){return Ii(this,2)};var hB=function(a){this.internalArray_=m(a)};W(hB,X);var iB=function(a){this.internalArray_=m(a,34)};W(iB,X);g=iB.prototype;g.getTag=function(){return Ej(this,2)};g.getComponentId=function(){return Ej(this,26)};g.setComponentId=function(a){return qj(this,26,a)};g.hasComponentId=function(){return Ii(this,26)};g.getValueList=function(){return Ji(this,gB,3)};g.addValue=function(){return Wp(this,3,gB)};g.setValue=function(a,b){return rt(this,3,gB,a,b)};g.getStore=function(){return bq(this,4)};var WQb=function(a,b){return qj(a,8,b)};
iB.prototype.getExperimentIds=function(){return Fi(this,aB,16)};iB.prototype.setExperimentIds=function(a){oj(this,aB,16,a)};iB.prototype.clearExperimentIds=function(){return st(this,16)};var jB=function(a,b){qj(a,24,b)};iB.prototype.getComplianceData=function(){return Fi(this,hB,33)};iB.prototype.setComplianceData=function(a){oj(this,hB,33,a)};iB.repeatedFields_=[3,20,27];var XQb=function(a){this.internalArray_=m(a,19)};W(XQb,X);g=XQb.prototype;g.getClientInfo=function(){return Fi(this,Bt,1)};g.getMutableClientInfo=function(){return zFb(this,Bt,1)};g.setClientInfo=function(a){oj(this,Bt,1,a)};g.getLogSource=function(){return Vi(this,2,-1)};g.setLogSource=function(a){return rj(this,2,a)};g.getComplianceData=function(){return Fi(this,hB,18)};g.setComplianceData=function(a){oj(this,hB,18,a)};XQb.repeatedFields_=[3,5];var kB=function(a){this.internalArray_=m(a)};W(kB,X);kB.prototype.getId=function(a){return xt(this,1,a)};kB.prototype.setId=function(a){return Dt(this,1,a)};kB.repeatedFields_=[1];var lB=function(a){this.internalArray_=m(a,6)};W(lB,X);lB.prototype.getExperiments=function(){return Fi(this,kB,2)};lB.prototype.setExperiments=function(a){oj(this,kB,2,a)};lB.prototype.hasExperiments=function(){return Zi(this,kB,2)};var YQb=tc(lB);lB.repeatedFields_=[5];var ZQb=function(a){this.internalArray_=m(a)};W(ZQb,X);var $Qb=pc(175237375,{jsExtension:0},ZQb,function(a){if(null!=a)return uc(a),{suggestedFlushIntervalMillis:hi(a,1,-1)}});var nB=function(a){yA.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.useGetRequestForFinalFlush=this.useSendBeaconForFinalFlush=this.clientSideLogOnlyForDevelopment=!1;this.noFlushUntilMs=this.startWaitingMs=-1;this.useConsistentTimezoneOffset=this.clientSpecifiedFlushInterval=!1;this.gzipCompressor=this.experimentIds=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=
0;this.sequencePosition=1;this.timeoutMillis=0;this.sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue=a.getAuthHeaderValue||function(){};this.logRequestBuilder=new mB(a.logSource,a.isServiceWorkerScope);this.network=a.network;this.productID=a.productID||null;this.bufferSize=1E3;this.uniformRandomFunction=et(kPb,0,1);this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.pageId=a.pageId||null;
this.logger=null;this.withCredentials=!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!QA()&&!!QA().navigator&&void 0!==QA().navigator.sendBeacon;var c=DFb();this.logRequestBuilder.setClientInfo(c);this.flushBackoff=new KQb(1E4);this.flushTimer=new ZA(this.flushBackoff.getValue());zA(this,this.flushTimer);a=aRb(this,a.backgroundJobDeferrer);Qo(this.flushTimer,"tick",a,!1,this);this.backupTimer=new ZA(6E5);zA(this,
this.backupTimer);Qo(this.backupTimer,"tick",a,!1,this);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(Qo(document,"visibilitychange",function(){"hidden"===document.visibilityState&&b.finalFlush()}),Qo(document,"pagehide",this.finalFlush,!1,this))};W(nB,yA);var aRb=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};nB.prototype.disposeInternal=function(){this.finalFlush();yA.prototype.disposeInternal.call(this)};
nB.prototype.setClearcutUrl=function(a){this.clearcutUrl=a};nB.prototype.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};nB.prototype.getClearcutUrl=function(){this.clearcutUrl||(this.clearcutUrl=.01>this.uniformRandomFunction()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return this.clearcutUrl};var oB=function(a,b){b instanceof iB?a.log(b):(b=WQb(new iB,b.serialize()),a.log(b))};g=nB.prototype;
g.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};g.setComponentId=function(a){this.componentId=a};g.setProductID=function(a){this.productID=a};g.setOpaqueExperimentIds=function(a){this.experimentIds||(this.experimentIds=new aB);ac(this.experimentIds,2,a,Sba)};g.setClearExperimentIds=function(a){a?(this.experimentIds||(this.experimentIds=new aB),a=a.serialize(),qj(this.experimentIds,4,a)):this.experimentIds&&st(this.experimentIds,4)};
g.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment=a};g.setGzipCompressor=function(a){this.gzipCompressor=a};g.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};g.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;bRb(this,a)};var bRb=function(a,b){a.flushBackoff=new KQb(1>b?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())};
nB.prototype.log=function(a){a=a.clone();var b=this.sequencePosition++;a=xj(a,21,b);this.componentId&&a.setComponentId(this.componentId);if(!Zp(a,1)){b=a;var c=Date.now().toString();wj(b,1,c)}cj(a,15)||xj(a,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds&&a.setExperimentIds(this.experimentIds.clone());b=this.pendingEvents.length-this.bufferSize+1;0<b&&(this.pendingEvents.splice(0,b),this.numLogsDroppedSinceLastFlush+=b);this.pendingEvents.push(a);this.disableAutomaticFlush||
this.flushTimer.enabled||this.flushTimer.start()};
nB.prototype.flush=function(a,b){var c=this;if(0===this.pendingEvents.length)a&&a();else if(this.sendBeaconApiEnabled)this.logRequestBuilder.setTransmissionType(3),cRb(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{this.logRequestBuilder.setTransmissionType(1);var e=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount);
d={};var f=this.getAuthHeaderValue();f&&(d.Authorization=f);var h=this.getClearcutUrl();this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,h=cB(h,"authuser",this.sessionIndex));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=cB(h,"pageId",this.pageId));if(f&&this.lastFailedAuth===f)b&&b("stale-auth-token");else if(this.pendingEvents=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment)a&&a();else{var k=e.serialize(),q;this.gzipCompressor&&
this.gzipCompressor.getHiddenPropertyName_()&&(q=this.gzipCompressor.compress(k));var u={url:h,body:k,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},x=function(H){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(H){var J=null;try{var O=JSON.stringify(JSON.parse(H.replace(")]}'\n","")));J=YQb(O)}catch(R){}J&&(H=Number(Yi(J,1,"-1")),0<H&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+
H),J=jca(J,$Qb))&&(J=hi(J,1,-1),-1!==J&&(c.clientSpecifiedFlushInterval||bRb(c,J)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},y=function(H,J){var O=Ji(e,iB,3),R=Wm(e,14),U=c.flushBackoff;U.currBaseValue_=Math.min(3E5,2*U.currBaseValue_);U.currValue_=Math.min(3E5,U.currBaseValue_+Math.round(.2*(Math.random()-.5)*U.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());401===H&&f&&(c.lastFailedAuth=f);R&&(c.numLogsDroppedSinceLastFlush+=R);void 0===J&&(J=500<=H&&600>H||401===H||0===
H);J&&(c.pendingEvents=O.concat(c.pendingEvents),c.disableAutomaticFlush||c.flushTimer.enabled||c.flushTimer.start());b&&b("net-send-failed",H);++c.numRetriesSinceLastSuccessfulFlush},E=function(){c.network&&c.network.send(u,x,y)};q?q.then(function(H){u.requestHeaders["Content-Encoding"]="gzip";u.requestHeaders["Content-Type"]="application/binary";u.body=H;u.bodyType=2;E()},function(){E()}):E()}}}};
nB.prototype.finalFlush=function(){this.clientSideLogOnlyForDevelopment||(dRb(this.logRequestBuilder,!0),this.useSendBeaconForFinalFlush&&(this.logRequestBuilder.setTransmissionType(3),cRb(this)),this.useGetRequestForFinalFlush&&(this.logRequestBuilder.setTransmissionType(2),eRb(this)),this.flush(),dRb(this.logRequestBuilder,!1))};
var cRb=function(a){fRb(a,32,10,function(b,c){b=cB(b,"format","json");var d=!1;try{d=QA().navigator.sendBeacon(b,c.serialize())}catch(e){}a.sendBeaconApiEnabled&&!d&&(a.sendBeaconApiEnabled=!1);return d})},eRb=function(a){fRb(a,6,5,function(b,c){c=c.serialize();for(var d=[],e=0,f=0;f<c.length;f++){var h=c.charCodeAt(f);255<h&&(d[e++]=h&255,h>>=8);d[e++]=h}c=La(d,3);b=bB(b,"format","base64json","p",c);if(15360<b.length)return!1;(new Image).src=b;return!0})},fRb=function(a,b,c,d){if(0!==a.pendingEvents.length){var e=
a.getClearcutUrl();for(var f=e.search(SQb),h=0,k,q=[];0<=(k=RQb(e,h,"format",f));)q.push(e.substring(h,k)),h=Math.min(e.indexOf("&",k)+1||f,f);q.push(e.slice(h));e=q.join("").replace(UQb,"$1");e=bB(e,"auth",a.getAuthHeaderValue(),"authuser",a.sessionIndex||"0");for(f=0;f<c&&a.pendingEvents.length;++f){h=a.pendingEvents.slice(0,b);k=a.logRequestBuilder.build(h,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!d(e,
k)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=a.pendingEvents.slice(h.length)}a.flushTimer.enabled&&a.flushTimer.stop()}},mB=function(a,b){this.isServiceWorkerScope=b=void 0===b?!1:b;this.uach=this.locale=null;this.logRequest=new XQb;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));
this.setClientInfo(new Bt)};mB.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};mB.prototype.setClientInfo=function(a){this.logRequest.setClientInfo(a);Mr(a,1)||rj(a,1,1);this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),Fi(a,eB,9)||oj(a,eB,9,this.uach))};mB.prototype.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};
mB.prototype.setTransmissionType=function(a){Zi(this.getMutableClientInfo(),fB,11)&&this.getMutableFlushInfo().setTransmissionType(a)};var dRb=function(a,b){Zi(a.getMutableClientInfo(),fB,11)&&(a=a.getMutableFlushInfo(),mj(a,2,b))};mB.prototype.setRetryCount=function(a){Zi(this.getMutableClientInfo(),fB,11)&&this.getMutableFlushInfo().setRetryCount(a)};mB.prototype.setPersistedLogRecoveredCount=function(a){Zi(this.getMutableClientInfo(),fB,11)&&this.getMutableFlushInfo().setPersistedLogRecoveredCount(a)};
mB.prototype.setPersistedLogExpiredCount=function(a){Zi(this.getMutableClientInfo(),fB,11)&&this.getMutableFlushInfo().setPersistedLogExpiredCount(a)};mB.prototype.getMutableClientInfo=function(){return this.logRequest.getClientInfo()};var gRb=function(a,b){var c=void 0===c?VQb:c;b(QA(),c).then(function(d){a.uach=d;d=a.getMutableJsClientInfo();oj(d,eB,9,a.uach);return!0}).catch(function(){return!1})};
mB.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=Fi(a,fB,11);b||(b=new fB,oj(a,fB,11,b));return b};mB.prototype.getMutableFlushInfo=function(){var a=this.getMutableJsClientInfo(),b=Fi(a,dB,10);b||(b=new dB,mj(b,2,!1),oj(a,dB,10,b));return b};mB.prototype.getComplianceData=function(a){var b=new IQb;a=nj(b,13,a);b=new JQb;a=oj(b,IQb,2,a);b=new hB;return oj(b,JQb,1,a)};
mB.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;this.setRetryCount(void 0===c?0:c);this.setPersistedLogRecoveredCount(e);this.setPersistedLogExpiredCount(f);c=this.logRequest.clone();e=Date.now().toString();c=wj(c,4,e);a=om(c,3,a);d&&a.setComplianceData(this.getComplianceData(d));b&&xj(a,14,b);return a};var hRb=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},iRb=function(a){try{return da.JSON.parse(a)}catch(b){}a=String(a);if(hRb(a))try{return eval("("+a+")")}catch(b){}throw Error("xb`"+a);},kRb=function(a,b){return(new jRb(b)).serialize(a)},jRb=function(a){this.replacer_=
a};jRb.prototype.serialize=function(a){var b=[];lRb(this,a,b);return b.join("")};
var lRb=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],lRb(a,a.replacer_?a.replacer_.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),mRb(d,c),c.push(":"),lRb(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":mRb(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("yb`"+typeof b);}}},nRb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},oRb=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,mRb=function(a,b){b.push('"',a.replace(oRb,
function(c){var d=nRb[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),nRb[c]=d);return d}),'"')};var pRb=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var qRb=function(){};qRb.prototype.cachedOptions_=null;qRb.prototype.getOptions=function(){return this.cachedOptions_||(this.cachedOptions_=this.internalGetOptions())};var rRb,sRb=function(){};ft(sRb,qRb);sRb.prototype.createInstance=function(){var a=tRb(this);return a?new ActiveXObject(a):new XMLHttpRequest};sRb.prototype.internalGetOptions=function(){var a={};tRb(this)&&(a[0]=!0,a[1]=!0);return a};
var tRb=function(a){if(!a.ieProgId_&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.ieProgId_=d}catch(e){}}throw Error("zb");}return a.ieProgId_};rRb=new sRb;var pB=function(a){Po.call(this);this.headers=new Map;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhrOptions_=this.xhr_=null;this.lastUri_="";this.lastErrorCode_=0;this.lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_="";this.useXhr2Timeout_=this.withCredentials_=!1;this.attributionReportingOptions_=this.trustToken_=null};ft(pB,Po);
var uRb=/^https?$/i,vRb=["POST","PUT"],wRb=[],go=function(a,b,c,d,e,f,h){var k=new pB;wRb.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));h&&(k.withCredentials_=h);k.send(a,c,d,e);return k};pB.prototype.cleanupSend_=function(){this.dispose();za(wRb,this)};pB.prototype.setTrustToken=function(a){this.trustToken_=a};pB.prototype.setAttributionReporting=function(a){this.attributionReportingOptions_=a};
pB.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("Ab`"+this.lastUri_+"`"+a);b=b?b.toUpperCase():"GET";this.lastUri_=a;this.lastError_="";this.lastErrorCode_=0;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.createXhr();this.xhrOptions_=this.xmlHttpFactory_?this.xmlHttpFactory_.getOptions():rRb.getOptions();this.xhr_.onreadystatechange=dt(this.onReadyStateChange_,this);try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(h){this.error_(5,h);return}a=c||"";c=
new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=l(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Bb`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=da.FormData&&a instanceof da.FormData;!va(vRb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=l(c);for(d=
b.next();!d.done;d=b.next())c=l(d.value),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(h){}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(h){}try{xRb(this),
0<this.timeoutInterval_&&((this.useXhr2Timeout_=yRb(this.xhr_))?(this.xhr_.timeout=this.timeoutInterval_,this.xhr_.ontimeout=dt(this.timeout_,this)):this.timeoutId_=Mp(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};var yRb=function(a){return rq&&"number"===typeof a.timeout&&void 0!==a.ontimeout};pB.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():rRb.createInstance()};
pB.prototype.timeout_=function(){"undefined"!=typeof $Db&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};pB.prototype.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;zRb(this);ARb(this)};var zRb=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
pB.prototype.abort=function(a){this.xhr_&&this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ARb(this))};pB.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),ARb(this,!0));pB.superClass_.disposeInternal.call(this)};
pB.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)BRb(this);else this.onReadyStateChangeEntryPoint_()};pB.prototype.onReadyStateChangeEntryPoint_=function(){BRb(this)};
var BRb=function(a){if(a.active_&&"undefined"!=typeof $Db&&(!a.xhrOptions_[1]||4!=a.getReadyState()||2!=a.getStatus()))if(a.inSend_&&4==a.getReadyState())Mp(a.onReadyStateChange_,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.lastErrorCode_=6;try{var b=2<a.getReadyState()?a.xhr_.statusText:""}catch(c){b=""}a.lastError_=b+" ["+a.getStatus()+"]";zRb(a)}}finally{ARb(a)}}},ARb=function(a,
b){if(a.xhr_){xRb(a);var c=a.xhr_,d=a.xhrOptions_[0]?function(){}:null;a.xhr_=null;a.xhrOptions_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}},xRb=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);a.timeoutId_&&(Np(a.timeoutId_),a.timeoutId_=null)};g=pB.prototype;g.isActive=function(){return!!this.xhr_};g.isComplete=function(){return 4==this.getReadyState()};
g.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(a=0===a)a=String(this.lastUri_).match(LQb)[1]||null,!a&&da.self&&da.self.location&&(a=da.self.location.protocol.slice(0,-1)),a=!uRb.test(a?a.toLowerCase():"");b=a}return b};g.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};g.getStatus=function(){try{return 2<this.getReadyState()?this.xhr_.status:-1}catch(a){return-1}};
g.getLastUri=function(){return String(this.lastUri_)};g.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};g.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));a:{a=b;if(da.JSON)try{var c=da.JSON.parse(a);break a}catch(d){}c=iRb(a)}return c}};
g.getResponse=function(){try{if(!this.xhr_)return null;if("response"in this.xhr_)return this.xhr_.response;switch(this.responseType_){case "":case "text":return this.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.xhr_)return this.xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};g.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),null===a?void 0:a};
g.getAllResponseHeaders=function(){return this.xhr_&&2<=this.getReadyState()?this.xhr_.getAllResponseHeaders()||"":""};g.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!Oi(b[c])){var d=JGb(b[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=a[e]||[];a[e]=f;f.push(d)}}return oca(a,function(h){return h.join(", ")})};var ai=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};pB.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
pB.prototype.getLastError=function(){return"string"===typeof this.lastError_?this.lastError_:String(this.lastError_)};ROb(function(a){pB.prototype.onReadyStateChangeEntryPoint_=a(pB.prototype.onReadyStateChangeEntryPoint_)});var CRb=function(){};CRb.prototype.send=function(a,b,c){b=void 0===b?function(){}:b;c=void 0===c?function(){}:c;go(a.url,function(d){d=d.target;d.isSuccess()?b(d.getResponseText()):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};var Oo=function(a,b){yA.call(this);this.logSource=a;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.serviceWorkerScopeEnabled=!1;this.componentId="";this.sendBeaconApiEnabled=this.getRequestForFinalFlush=this.sendBeaconForFinalFlush=!1;this.useConsistentTimezoneOffset=void 0;this.network=new CRb};W(Oo,yA);g=Oo.prototype;g.setBuildLabel=function(a){this.buildLabel=a};g.setGzipCompressor=function(a){this.gzipCompressor=a};
g.setComponentId=function(a){this.componentId=a;return this};g.setProductID=function(a){this.productID=a};g.setClearExperimentIds=function(a){this.clearExperimentIds=a};g.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds=a};g.setClearcutClientInfo=function(a){this.clearcutClientInfo=a};g.useSendBeaconForFinalFlush=function(){this.sendBeaconForFinalFlush=!0;return this};g.useGetRequestForFinalFlush=function(){this.getRequestForFinalFlush=!0;return this};
g.setFlushIntervalMs=function(a){this.flushIntervalMs=Math.max(a,1E3)};g.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};g.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
g.build=function(){var a=new nB({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Ko,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,pageId:this.pageId,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network?this.network:void 0});zA(this,a);this.clearcutClientInfo&&a.setClearcutClientInfo(this.clearcutClientInfo);
this.buildLabel&&a.setBuildLabel(this.buildLabel);this.gzipCompressor&&a.setGzipCompressor(this.gzipCompressor);this.componentId&&a.setComponentId(this.componentId);this.productID&&a.setProductID(this.productID);this.clearExperimentIds&&a.setClearExperimentIds(this.clearExperimentIds);this.opaqueExperimentIds&&a.setOpaqueExperimentIds(this.opaqueExperimentIds);this.sendBeaconForFinalFlush&&(a.useSendBeaconForFinalFlush=this.sendBeaconForFinalFlush&&a.isSendBeaconSupported);this.getRequestForFinalFlush&&
(a.useGetRequestForFinalFlush=this.getRequestForFinalFlush);this.flushIntervalMs&&a.setFlushIntervalMs(this.flushIntervalMs);this.sendBeaconApiEnabled&&(a.sendBeaconApiEnabled=a.isSendBeaconSupported);this.userAgentClientHintsProvider&&gRb(a.logRequestBuilder,this.userAgentClientHintsProvider);this.useConsistentTimezoneOffset&&a.setUseConsistentTimezoneOffset(!0);return a};var qB=function(a,b,c,d,e,f){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;yA.call(this);f?c=f:(f=(new Oo(a,"0")).setComponentId(b),zA(this,f),""!=c&&(f.destinationUrl=c),d&&(f.serviceWorkerScopeEnabled=!0),e&&f.setBuildLabel(e),c=f.build());this.logSource_=a;this.componentId_=b;this.transport_=c};W(qB,yA);qB.prototype.getLogSource=function(){return this.logSource_};qB.prototype.getComponentId=function(){return this.componentId_};
qB.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new yQb,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new $A;h=qj(h,1,f.metricName_);for(var k=f,q=[],u=0;u<k.fields_.length;u++)q.push(k.fields_[u].field_name);h=yj(h,3,q);k=[];q=[];u=l(f.cellMap_.keys());for(var x=u.next();!x.done;x=u.next())q.push(x.value.split(","));for(u=0;u<q.length;u++){x=q[u];var y=f.cellType_;for(var E=f.getCells(x)||[],H=[],J=0;J<E.length;J++){var O=E[J],R=O&&O.cellValue_;O=new vQb;switch(y){case 3:R=Number(R);
Number.isFinite(R)&&Kl(O,1,wQb,wb(R));break;case 2:Kl(O,2,wQb,nb(Number(R)))}H.push(O)}y=H;for(E=0;E<y.length;E++){H=y[E];J=new xQb;H=oj(J,vQb,2,H);J=x;O=[];R=f;for(var U=[],Z=0;Z<R.fields_.length;Z++)U.push(R.fields_[Z].field_type);R=U;for(U=0;U<R.length;U++){var na=R[U],oa=J[U];Z=new tQb;switch(na){case 3:Jl(Z,1,uQb,String(oa));break;case 2:na=Number(oa);Number.isFinite(na)&&Kl(Z,2,uQb,null==na?na:tb(na));break;case 1:Kl(Z,3,uQb,pb("true"==oa))}O.push(Z)}om(H,1,O);k.push(H)}}om(h,4,k);c.push(h);
e.clear()}om(b,1,c);oB(this.transport_,b);this.transport_.flush()}};var DRb=new Ad("PRODUCTION_ALLOWLIST",{factory:function(){return"l2YMRd lfR6bb iQyyte LhFyIb aVezrf i1iYkd dVgi5c kMzkoe pglXEd AbcbBc Yc0Dnb cvLsDf UAiaPe NdZs2d elAd5d q7HsZb kbrYBc qX517e KmD3Se w0tcsb".split(" ")}}),ERb=new Ad("STREAMZ_PRODUCT_IDENTIFIER"),FRb=new Ad("STREAMZ_ALLOWLIST_IDENTIFIER"),GRb=new Ad("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return jd(Df).runOutsideAngular(function(){var a=new qB(1503);a=new hQb(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);
return a})}}),rB=function(a,b,c,d,e){this.streamzService=a;this.zone=b;this.oneDeveloperWorkflowUsageMetrics=new kQb(this.streamzService);new lQb(this.streamzService);new mQb(this.streamzService);new nQb(this.streamzService);this.productIdentifier=d||window.location.hostname;this.productionAllowlist=c.map(sQb);this.allowlistIdentifier=rQb(null!=e?e:this.productIdentifier)},IRb=function(a,b,c){a.zone.runOutsideAngular(function(){HRb(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,
c)})},HRb=function(a){return a.productionAllowlist.some(function(b){return a.allowlistIdentifier===b})};rB.\u0275fac=function(a){return new (a||rB)(n(GRb),n(Df),n(DRb),n(ERb,8),n(FRb,8))};rB.\u0275prov=$c({token:rB,factory:rB.\u0275fac,providedIn:"root"});var JRb=new Ad("Feature Tooltip Controller Config");new Ad("TooltipAnchor");new Ad("TooltipPeventer");var KRb=new Ad("MatMenuContent");var LRb=new Ad("MAT_MENU_PANEL");Sh(Th(function(){}));var MRb=new Ad("mat-menu-default-options",{providedIn:"root",factory:gpa});var NRb=new Ad("mat-menu-scroll-strategy");Xg({passive:!0});var ORb=qh("transformMenu",[th("void",sh({opacity:0,transform:"scale(0.8)"})),uh("void => enter",rh("120ms cubic-bezier(0, 0, 0.2, 1)",sh({opacity:1,transform:"scale(1)"}))),uh("* => void",rh("100ms 25ms linear",sh({opacity:0})))]),PRb=qh("fadeInItems",[th("showing",sh({opacity:1})),uh("void => *",[sh({opacity:0}),rh("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);var sB=function(a,b,c,d,e,f,h){this._template=a;this._componentFactoryResolver=b;this._appRef=c;this._injector=d;this._viewContainerRef=e;this._document=f;this._changeDetectorRef=h;this._attached=new B.Subject};
sB.prototype.attach=function(a){a=void 0===a?{}:a;this._portal||(this._portal=new Tw(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new Vw(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var b=this._template.elementRef.nativeElement;b.parentNode.insertBefore(this._outlet.outletElement,b);var c;null==(c=this._changeDetectorRef)||c.markForCheck();this._portal.attach(this._outlet,a);this._attached.next()};
sB.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()};sB.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()};sB.\u0275fac=function(a){return new (a||sB)(z(vg),z(fu),z(vv),z(eu),z(wg),z(Oh),z(xv))};sB.\u0275dir=sd({type:sB});var QRb=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],RRb=Sh(Th(function(){})),tB=function(a,b,c,d,e){var f=RRb.call(this)||this;f._elementRef=a;f._document=b;f._focusMonitor=c;f._parentMenu=d;f._changeDetectorRef=e;f.role="menuitem";f._hovered=new B.Subject;f._focused=new B.Subject;f._highlighted=!1;f._triggersSubmenu=!1;var h;null==d||null==(h=d.addItem)||h.call(d,f);return f};W(tB,RRb);g=tB.prototype;
g.focus=function(a,b){this._focusMonitor&&a?Pw(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};g.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};g.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};
g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._elementRef.nativeElement};g._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};g._handleMouseEnter=function(){this._hovered.next(this)};g.getLabel=function(){for(var a=this._elementRef.nativeElement.cloneNode(!0),b=a.querySelectorAll("mat-icon, .material-icons"),c=0;c<b.length;c++)b[c].remove();var d;return(null==(d=a.textContent)?void 0:d.trim())||""};
g._setHighlighted=function(a){this._highlighted=a;var b;null==(b=this._changeDetectorRef)||b.markForCheck()};g._setTriggersSubmenu=function(a){this._triggersSubmenu=a;var b;null==(b=this._changeDetectorRef)||b.markForCheck()};g._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};tB.\u0275fac=function(a){return new (a||tB)(z(ae),z(Oh),z(Ow),z(LRb,8),z(xv))};
tB.\u0275cmp=od({type:tB,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:9,hostBindings:function(a,b){a&1&&L("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(Nf("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled)("disabled",b.disabled||null)("mat-id-collision",null),Xf("mat-mdc-menu-item-highlighted",b._highlighted)("mat-mdc-menu-item-submenu-trigger",b._triggersSubmenu))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Jf],attrs:["mat-menu-item",""],ngContentSelectors:["mat-icon, [matMenuItemIcon]","*"],decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],
["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(eg(QRb),fg(0),D(1,"span",0),fg(2,1),F(),G(3,"div",1),P(4,hpa,2,0,"svg",2));a&2&&(w(3),C("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),w(1),C("ngIf",b._triggersSubmenu))},dependencies:[Ev,cz],encapsulation:2,changeDetection:0});var SRb=0,uB=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._changeDetectorRef=d;this._directDescendantItems=new Cg;this._classList={};this._panelAnimationState="void";this._animationDone=new B.Subject;this.close=this.closed=new Yu;this.panelId="mat-menu-panel-"+SRb++;this.overlayPanelClass=c.overlayPanelClass||"";this._xPosition=c.xPosition;this._yPosition=c.yPosition;this.backdropClass=c.backdropClass;this._overlapTrigger=c.overlapTrigger;this._hasBackdrop=c.hasBackdrop};g=uB.prototype;
g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=ly(pMb(iy(new oy(this._directDescendantItems))));this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(yf(this._directDescendantItems),zf(function(b){return B.merge.apply(null,p(b.map(function(c){return c._focused})))})).subscribe(function(b){return my(a._keyManager,b)});this._directDescendantItems.changes.subscribe(function(b){var c=a._keyManager,
d;"enter"===a._panelAnimationState&&(null==(d=c.activeItem)?0:d._hasFocus())&&(b=b.toArray(),d=Math.max(0,Math.min(b.length-1,c.activeItemIndex||0)),b[d]&&!b[d].disabled?c.setActiveItem(d):c.setNextItemActive())})};g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this._directDescendantItems.destroy();this.closed.complete();var b;null==(b=this._firstItemFocusSubscription)||b.unsubscribe()};
g._hovered=function(){return this._directDescendantItems.changes.pipe(yf(this._directDescendantItems),zf(function(a){return B.merge.apply(null,p(a.map(function(b){return b._hovered})))}))};g.addItem=function(){};g.removeItem=function(){};
g._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:eh(a)||(a.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==b&&40!==b||sMb(c,"keyboard");c.onKeydown(a);return}a.stopPropagation()};
var TRb=function(a,b){b=void 0===b?"program":b;var c;null==(c=a._firstItemFocusSubscription)||c.unsubscribe();a._firstItemFocusSubscription=a._ngZone.onStable.pipe(nf()).subscribe(function(){var d=null;a._directDescendantItems.length&&(d=a._directDescendantItems.first._getHostElement().closest('[role="menu"]'));if(!d||!d.contains(document.activeElement)){var e=a._keyManager;sMb(e,b)._setActiveItemByIndex(0,1);!e.activeItem&&d&&d.focus()}})};g=uB.prototype;
g.setElevation=function(a){var b=this;a=this._elevationPrefix+Math.min(this._baseElevation+a,24);var c=Object.keys(this._classList).find(function(d){return d.startsWith(b._elevationPrefix)});c&&c!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)};
g.setPositionClasses=function(a,b){a=void 0===a?this.xPosition:a;b=void 0===b?this.yPosition:b;var c=this._classList;c["mat-menu-before"]="before"===a;c["mat-menu-after"]="after"===a;c["mat-menu-above"]="above"===b;c["mat-menu-below"]="below"===b;var d;null==(d=this._changeDetectorRef)||d.markForCheck()};g._startAnimation=function(){this._panelAnimationState="enter"};g._resetAnimation=function(){this._panelAnimationState="void"};
g._onAnimationDone=function(a){this._animationDone.next(a);this._isAnimating=!1};g._onAnimationStart=function(a){this._isAnimating=!0;"enter"===a.toState&&0===this._keyManager.activeItemIndex&&(a.element.scrollTop=0)};g._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(yf(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));xg(a._directDescendantItems)})};
Qh.Object.defineProperties(uB.prototype,{xPosition:{configurable:!0,enumerable:!0,get:function(){return this._xPosition},set:function(a){this._xPosition=a;this.setPositionClasses()}},yPosition:{configurable:!0,enumerable:!0,get:function(){return this._yPosition},set:function(a){this._yPosition=a;this.setPositionClasses()}},overlapTrigger:{configurable:!0,enumerable:!0,get:function(){return this._overlapTrigger},set:function(a){this._overlapTrigger=ah(a)}},hasBackdrop:{configurable:!0,enumerable:!0,
get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=ah(a)}},panelClass:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(function(d){b._classList[d]=!1});(this._previousPanelClass=a)&&a.length&&(a.split(" ").forEach(function(d){b._classList[d]=!0}),this._elementRef.nativeElement.className="")}},classList:{configurable:!0,enumerable:!0,get:function(){return this.panelClass},set:function(a){this.panelClass=a}}});
uB.\u0275fac=function(a){return new (a||uB)(z(ae),z(Df),z(MRb),z(xv))};
uB.\u0275dir=sd({type:uB,contentQueries:function(a,b,c){a&1&&(Ag(c,KRb,5),Ag(c,tB,5),Ag(c,tB,4));if(a&2){var d;yg(d=Bg())&&(b.lazyContent=d.first);yg(d=Bg())&&(b._allItems=d);yg(d=Bg())&&(b.items=d)}},viewQuery:function(a,b){a&1&&zg(vg,5);if(a&2){var c;yg(c=Bg())&&(b.templateRef=c.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",
overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}});var URb={provide:NRb,deps:[Py],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},VRb=Xg({passive:!0}),vB=function(a,b,c,d,e,f,h,k,q){var u=this;this._overlay=a;this._element=b;this._viewContainerRef=c;this._menuItemInstance=f;this._dir=h;this._focusMonitor=k;this._ngZone=q;this._overlayRef=null;this._menuOpen=!1;this._menuCloseSubscription=this._hoverSubscription=this._closingActionsSubscription=B.Subscription.EMPTY;this._changeDetectorRef=jd(xv);this._handleTouchStart=
function(x){pma(x)||(u._openedBy="touch")};this._openedBy=void 0;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new Yu;this.onMenuClose=this.menuClosed=new Yu;this._scrollStrategy=d;this._parentMaterialMenu=e instanceof uB?e:void 0;b.nativeElement.addEventListener("touchstart",this._handleTouchStart,VRb)};vB.prototype.ngAfterContentInit=function(){this._handleHover()};
vB.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,VRb);this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._hoverSubscription.unsubscribe()};var wB=function(a){return!!(a._menuItemInstance&&a._parentMaterialMenu&&a.menu)};g=vB.prototype;
g.openMenu=function(){var a=this,b=this.menu;if(!this._menuOpen&&b){var c=this._createOverlay(b),d=c.getConfig(),e=d.positionStrategy;this._setPosition(b,e);d.hasBackdrop=null==b.hasBackdrop?!wB(this):b.hasBackdrop;c.attach(this._getPortal(b));b.lazyContent&&b.lazyContent.attach(this.menuData);this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return a.closeMenu()});this._initMenu(b);b instanceof uB&&(b._startAnimation(),b._directDescendantItems.changes.pipe(Af(b.close)).subscribe(function(){DMb(HMb(e,
!1));HMb(e,!0)}))}};g.closeMenu=function(){var a;null==(a=this.menu)||a.close.emit()};g.focus=function(a,b){this._focusMonitor&&a?Pw(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.updatePosition=function(){var a;null==(a=this._overlayRef)||a.updatePosition()};
g._destroyMenu=function(a){var b=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe();this._overlayRef.detach();!this.restoreFocus||"keydown"!==a&&this._openedBy&&wB(this)||this.focus(this._openedBy);this._openedBy=void 0;if(c instanceof uB)c._resetAnimation(),c.lazyContent?c._animationDone.pipe(cf(function(e){return"void"===e.toState}),nf(),Af(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return b._setIsMenuOpen(!1)}}):
this._setIsMenuOpen(!1);else{this._setIsMenuOpen(!1);var d;null==c||null==(d=c.lazyContent)||d.detach()}}};g._initMenu=function(a){a.parentMenu=wB(this)?this._parentMaterialMenu:void 0;a.direction=this.dir;this._setMenuElevation(a);TRb(a,this._openedBy||"program");this._setIsMenuOpen(!0)};g._setMenuElevation=function(a){if(a.setElevation){for(var b=0,c=a.parentMenu;c;)b++,c=c.parentMenu;a.setElevation(b)}};
g._setIsMenuOpen=function(a){a!==this._menuOpen&&((this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit(),wB(this)&&this._menuItemInstance._setHighlighted(a),this._changeDetectorRef.markForCheck())};g._createOverlay=function(a){if(!this._overlayRef){var b=this._getOverlayConfig(a);this._subscribeToPositions(a,b.positionStrategy);this._overlayRef=this._overlay.create(b);this._overlayRef.keydownEvents().subscribe()}return this._overlayRef};
g._getOverlayConfig=function(a){return new Hy({positionStrategy:IMb(FMb(HMb(Oy(this._overlay.position(),this._element))),".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:a.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:a.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})};
g._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){var e="start"===d.connectionPair.overlayX?"after":"before",f="top"===d.connectionPair.overlayY?"below":"above";c._ngZone?c._ngZone.run(function(){return a.setPositionClasses(e,f)}):a.setPositionClasses(e,f)})};
g._setPosition=function(a,b){var c=l("before"===a.xPosition?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=l("above"===a.yPosition?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var h=l([f,e]),k=h.next().value;h=h.next().value;var q=l([d,c]),u=q.next().value;q=q.next().value;var x=0;wB(this)?(q=d="before"===a.xPosition?"start":"end",c=u="end"===d?"start":"end",this._parentMaterialMenu&&(null==this._parentInnerPadding&&(this._parentInnerPadding=(a=this._parentMaterialMenu.items.first)?
a._getHostElement().offsetTop:0),x="bottom"===f?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k="top"===f?"bottom":"top",h="top"===e?"bottom":"top");Ky(b,[{originX:d,originY:k,overlayX:u,overlayY:f,offsetY:x},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:x},{originX:d,originY:h,overlayX:u,overlayY:e,offsetY:-x},{originX:c,originY:h,overlayX:q,overlayY:e,offsetY:-x}])};
g._menuClosingActions=function(){var a=this,b=this._overlayRef.backdropClick(),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,B.of)(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(cf(function(f){return f!==a._menuItemInstance}),cf(function(){return a._menuOpen})):(0,B.of)();return(0,B.merge)(b,d,e,c)};g._handleMousedown=function(a){oma(a)||(this._openedBy=0===a.button?"mouse":void 0,wB(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(13===a||32===a)this._openedBy="keyboard";wB(this)&&(39===a&&"ltr"===this.dir||37===a&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())};g._handleClick=function(a){wB(this)?(a.stopPropagation(),this.openMenu()):this._menuOpen?this.closeMenu():this.openMenu()};
g._handleHover=function(){var a=this;wB(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(cf(function(b){return b===a._menuItemInstance&&!b.disabled}),lf(0,B.asapScheduler)).subscribe(function(){a._openedBy="mouse";a.menu instanceof uB&&a.menu._isAnimating?a.menu._animationDone.pipe(nf(),lf(0,B.asapScheduler),Af(a._parentMaterialMenu._hovered())).subscribe(function(){return a.openMenu()}):a.openMenu()}))};
g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new Tw(a.templateRef,this._viewContainerRef));return this._portal};
Qh.Object.defineProperties(vB.prototype,{_deprecatedMatMenuTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.menu},set:function(a){this.menu=a}},menu:{configurable:!0,enumerable:!0,get:function(){return this._menu},set:function(a){var b=this;if(a!==this._menu){this._menu=a;this._menuCloseSubscription.unsubscribe();a&&(this._menuCloseSubscription=a.close.subscribe(function(d){b._destroyMenu(d);"click"!==d&&"tab"!==d||!b._parentMaterialMenu||b._parentMaterialMenu.closed.emit(d)}));
var c;null==(c=this._menuItemInstance)||c._setTriggersSubmenu(wB(this))}}},menuOpen:{configurable:!0,enumerable:!0,get:function(){return this._menuOpen}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}});vB.\u0275fac=function(a){return new (a||vB)(z(Py),z(ae),z(wg),z(NRb),z(LRb,8),z(tB,10),z(py,8),z(Ow),z(Df))};
vB.\u0275dir=sd({type:vB,hostVars:3,hostBindings:function(a,b){a&1&&L("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&Nf("aria-haspopup",b.menu?"menu":null)("aria-expanded",b.menuOpen)("aria-controls",b.menuOpen?b.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData",
"menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}});var xB=function(){sB.apply(this,arguments)};W(xB,sB);xB.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(xB)))(b||xB)}}();xB.\u0275dir=sd({type:xB,selectors:[["ng-template","matMenuContent",""]],features:[lg([{provide:KRb,useExisting:xB}]),Jf]});var yB=function(){return tB.apply(this,arguments)||this};W(yB,tB);yB.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(yB)))(b||yB)}}();
yB.\u0275cmp=od({type:yB,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:21,hostBindings:function(a,b){a&2&&(Nf("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled.toString())("disabled",b.disabled||null)("mat-id-collision",null),Xf("mat-menu-item",!0)("mat-menu-item-highlighted",b._highlighted)("mat-menu-item-submenu-trigger",b._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",
!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[lg([{provide:tB,useExisting:yB}]),Jf],attrs:["mat-menu-item",""],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,
"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(eg(),fg(0),G(1,"div",0),P(2,ipa,2,0,"svg",1));a&2&&(w(1),C("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),w(1),C("ngIf",b._triggersSubmenu))},dependencies:[Ev,cz],encapsulation:2,changeDetection:0});var zB=function(){vB.apply(this,arguments)};W(zB,vB);zB.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(zB)))(b||zB)}}();zB.\u0275dir=sd({type:zB,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Jf]});var AB=function(a,b,c,d){uB.call(this,a,b,c,d);this._elevationPrefix="mat-elevation-z";this._baseElevation=4};W(AB,uB);AB.\u0275dir=uB.\u0275dir;AB.\u0275fac=function(a){return new (a||AB)(z(ae),z(Df),z(MRb),z(xv))};
AB.\u0275cmp=od({type:AB,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(a){a&2&&Nf("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[lg([{provide:LRb,useExisting:AB}]),Jf],ngContentSelectors:["*"],decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(a){a&1&&(eg(),P(0,jpa,3,6,"ng-template"))},
dependencies:[Cv],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],
encapsulation:2,data:{animation:[ORb,PRb]},changeDetection:0});var BB=function(){};BB.\u0275fac=function(a){return new (a||BB)};BB.\u0275mod=qd({type:BB});BB.\u0275inj=ad({providers:[URb],imports:[Sv,Ty,ez,Sy,Ey,Ty]});var WRb=new Ad("mat-tooltip-scroll-strategy"),XRb=new Ad("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});Xg({passive:!0});var YRb={provide:WRb,deps:[Py],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},ZRb=Xg({passive:!0}),CB=function(a,b,c,d,e,f,h,k,q,u,x,y){var E=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=h;this._focusMonitor=k;this._dir=u;this._defaultOptions=x;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=
!1;this._viewportMargin=8;this._cssClassPrefix="mat";this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new B.Subject;this._scrollStrategy=q;this._document=y;x&&(this._showDelay=x.showDelay,this._hideDelay=x.hideDelay,x.position&&(this.position=x.position),x.positionAtOrigin&&(this.positionAtOrigin=x.positionAtOrigin),x.touchGestures&&(this.touchGestures=x.touchGestures));u.change.pipe(Af(this._destroyed)).subscribe(function(){E._overlayRef&&E._updatePosition(E._overlayRef)})};
g=CB.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(Af(this._destroyed)).subscribe(function(b){b?"keyboard"===b&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,ZRb)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();cy(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a,b){var c=this;a=void 0===a?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;null==(d=this._tooltipInstance)||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new Sw(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b._onHide.pipe(Af(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};g.hide=function(a){a=void 0===a?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};g.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof ae)return this._overlayRef;this._detach()}c=xMb(this._scrollDispatcher,this._elementRef);a=EMb(Ly(My(IMb(Oy(this._overlay.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),".mat-tooltip"),!1),this._viewportMargin),c);a.positionChanges.pipe(Af(this._destroyed)).subscribe(function(e){b._updateCurrentPositionClass(e.connectionPair);
b._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&b._tooltipInstance.isVisible()&&b._ngZone.run(function(){return b.hide(0)})});this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(Af(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(Af(this._destroyed)).subscribe(function(){var e;
return null==(e=b._tooltipInstance)?void 0:e._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(Af(this._destroyed)).subscribe(function(e){b._isTooltipVisible()&&27===e.keyCode&&!eh(e)&&(e.preventDefault(),e.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))});var d;(null==(d=this._defaultOptions)?0:d.disableTooltipInteractivity)&&this._overlayRef.addPanelClass("mat-tooltip-panel-non-interactive");return this._overlayRef};
g._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};g._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();Ky(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};g._addOffset=function(a){return a};
g._getOrigin=function(){var a=!this._dir||"ltr"==this._dir.value,b=this.position;if("above"==b||"below"==b)var c={originX:"center",originY:"above"==b?"top":"bottom"};else if("before"==b||"left"==b&&a||"right"==b&&!a)c={originX:"start",originY:"center"};else if("after"==b||"right"==b&&a||"left"==b&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
g._getOverlayPosition=function(){var a=!this._dir||"ltr"==this._dir.value,b=this.position;if("above"==b)var c={overlayX:"center",overlayY:"bottom"};else if("below"==b)c={overlayX:"center",overlayY:"top"};else if("before"==b||"left"==b&&a||"right"==b&&!a)c={overlayX:"end",overlayY:"center"};else if("after"==b||"right"==b&&a||"left"==b&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
g._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(nf(),Af(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};g._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
g._invertPosition=function(a,b){"above"===this.position||"below"===this.position?"top"===b?b="bottom":"bottom"===b&&(b="top"):"end"===a?a="start":"start"===a&&(a="end");return{x:a,y:b}};
g._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b="center"===b?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===b&&"top"===a?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)c.removePanelClass("mat-tooltip-panel-"+this._currentPosition),c.addPanelClass("mat-tooltip-panel-"+b);this._currentPosition=b}};
g._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;void 0!==b.x&&void 0!==b.y&&(c=b);a.show(void 0,c)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=null==(c=b.targetTouches)?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show(void 0,d)},500)}])),this._addListeners(this._passiveListeners))};
g._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&(null==(e=a._overlayRef)?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var c=function(){clearTimeout(a._touchstartTimeout);a.hide(a._defaultOptions.touchendHideDelay)};
b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,p(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,ZRb)})};g._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
g._wheelListener=function(a){if(this._isTooltipVisible()){a=this._document.elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
g._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if("off"!==a){var b=this._elementRef.nativeElement,c=b.style;if("on"===a||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";"on"!==a&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
Qh.Object.defineProperties(CB.prototype,{position:{configurable:!0,enumerable:!0,get:function(){return this._position},set:function(a){if(a!==this._position&&(this._position=a,this._overlayRef)){this._updatePosition(this._overlayRef);var b;null==(b=this._tooltipInstance)||b.show(0);this._overlayRef.updatePosition()}}},positionAtOrigin:{configurable:!0,enumerable:!0,get:function(){return this._positionAtOrigin},set:function(a){this._positionAtOrigin=ah(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=ah(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=dh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=dh(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;cy(this._ariaDescriber,this._elementRef.nativeElement,this._message,"tooltip");this._message=null!=a?String(a).trim():"";!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){b._ariaDescriber.describe(b._elementRef.nativeElement,b.message,"tooltip")})}))}},tooltipClass:{configurable:!0,enumerable:!0,
get:function(){return this._tooltipClass},set:function(a){this._tooltipClass=a;this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}});CB.\u0275fac=function(){ee()};
CB.\u0275dir=sd({type:CB,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});
var DB=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new B.Subject;this._animationsDisabled="NoopAnimations"===b};g=DB.prototype;g.show=function(a){var b=this;null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};
g.hide=function(a){var b=this;null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};g.isVisible=function(){return this._isVisible};g.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};g._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};
g._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};g._onShow=function(){};g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};
g._cancelPendingAnimations=function(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId);null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};g._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
g._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);(this._isVisible=a)&&!this._animationsDisabled&&"function"===typeof getComputedStyle&&(c=getComputedStyle(b),"0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0);this._animationsDisabled&&(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};
DB.\u0275fac=function(a){return new (a||DB)(z(xv),z(iu,8))};DB.\u0275dir=sd({type:DB});/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
 @type {{XSmall: string, Small: string, Medium: string, Large: string, XLarge: string, Handset: string, Tablet: string, Web: string, HandsetPortrait: string, TabletPortrait: string, WebPortrait: string, HandsetLandscape: string, TabletLandscape: string, WebLandscape: string}}
*/
var $Rb=["tooltip"],FB=function(a,b,c,d,e,f,h,k,q,u,x,y){CB.call(this,a,b,c,d,e,f,h,k,q,u,x,y);this._tooltipComponent=EB};W(FB,CB);FB.\u0275fac=function(a){return new (a||FB)(z(Py),z(ae),z(zy),z(wg),z(Df),z(Fw),z(by),z(Ow),z(WRb),z(py,8),z(XRb,8),z(Oh))};FB.\u0275dir=sd({type:FB,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&Xf("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],features:[Jf]});
var EB=function(a,b,c){DB.call(this,a,c);this._showAnimation="mat-tooltip-show";this._hideAnimation="mat-tooltip-hide";this._isHandset=b.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")};W(EB,DB);EB.\u0275dir=DB.\u0275dir;EB.\u0275fac=function(a){return new (a||EB)(z(xv),z(Tx),z(iu,8))};
EB.\u0275cmp=od({type:EB,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&zg($Rb,7);if(a&2){var c;yg(c=Bg())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(a,b){a&1&&L("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&(Nf("mat-id-collision",null),Wf("zoom",b.isVisible()?1:null))},features:[Jf],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(a,b){a&1&&(D(0,"div",0,1),L("animationend",
function(d){return b._handleAnimationEnd(d)}),T(2,"async"),Q(3),F());if(a&2){var c;Xf("mat-tooltip-handset",null==(c=V(2,4,b._isHandset))?null:c.matches);C("ngClass",b.tooltipClass);w(3);jg(b.message)}},dependencies:[Cv,Kv],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;-webkit-transform:scale(0);transform:scale(0)}.mat-tooltip._mat-animation-noopable{-webkit-animation:none;animation:none;-webkit-transform:scale(1);transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:1px solid}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@-webkit-keyframes mat-tooltip-show{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{opacity:.5;-webkit-transform:scale(.99);transform:scale(.99)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes mat-tooltip-show{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{opacity:.5;-webkit-transform:scale(.99);transform:scale(.99)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes mat-tooltip-hide{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.mat-tooltip-show{-webkit-animation:mat-tooltip-show .2s cubic-bezier(0,0,.2,1) forwards;animation:mat-tooltip-show .2s cubic-bezier(0,0,.2,1) forwards}.mat-tooltip-hide{-webkit-animation:mat-tooltip-hide .1s cubic-bezier(0,0,.2,1) forwards;animation:mat-tooltip-hide .1s cubic-bezier(0,0,.2,1) forwards}"],
encapsulation:2,changeDetection:0});var GB=function(){};GB.\u0275fac=function(a){return new (a||GB)};GB.\u0275mod=qd({type:GB});GB.\u0275inj=ad({imports:[Ty,Ty]});var aSb=new Ad("g3cWidgetTaskManagementServicePromiseClient"),bSb=new Ad("g3cWidgetUserPrefsServicePromiseClient"),cSb=new Ad("g3cWidgetServiceConfig");var hl=function(a){this.internalArray_=m(a)};W(hl,X);g=hl.prototype;g.getYear=function(){return hi(this,1)};g.setYear=function(a){return il(this,1,a)};g.getMonth=function(){return hi(this,2)};g.setMonth=function(a){return il(this,2,a)};g.getDay=function(){return hi(this,3)};var HB=function(a){this.internalArray_=m(a)};W(HB,X);HB.prototype.getTypeName=function(){return Hi(this,1).split("/").pop()};HB.prototype.getValue=function(){var a=Mr(this,2);if(Array.isArray(a)||a instanceof X)throw Error("R");return Kxa(this,2)};HB.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=rj(this,2,Ob(a,Fba,void 0,void 0,!1,!1));else if("string"===typeof a||a instanceof Pa||Ma(a))a=bc(this,2,hc(a),Oa());else throw Error("S`"+a);return a};var Tn=function(a){this.internalArray_=m(a)};W(Tn,X);g=Tn.prototype;g.getDescription=function(){return Hi(this,1)};g.setDescription=function(a){return wm(this,1,a)};g.getStatus=function(){return Vi(this,3,0)};g.setStatus=function(a){return bm(this,3,a)};g.getVersion=function(){return dj(this,5)};g.setVersion=function(a){return um(this,5,a)};g.getOwnedByMe=function(){return Ri(this,7)};g.setOwnedByMe=function(a){return ho(this,7,a)};g.getCreatorEmail=function(){return Hi(this,9)};
Tn.repeatedFields_=[4,6];var IB=function(a){this.internalArray_=m(a)};W(IB,X);IB.prototype.getAccessLevel=function(){return Vi(this,1,0)};IB.prototype.setAccessLevel=function(a){return bm(this,1,a)};var JB=function(a){this.internalArray_=m(a)};W(JB,X);JB.prototype.getAuthorEmail=function(){return Hi(this,2)};JB.prototype.getContent=function(){return Hi(this,3)};JB.prototype.setContent=function(a){return wm(this,3,a)};JB.prototype.getExternalLink=function(){return Hi(this,6)};JB.repeatedFields_=[5];var Qn=function(a){this.internalArray_=m(a)};W(Qn,X);g=Qn.prototype;g.getDescription=function(){return Hi(this,1)};g.setDescription=function(a){return wm(this,1,a)};g.getStatus=function(){return Vi(this,3,0)};g.setStatus=function(a){return bm(this,3,a)};g.getCommentsList=function(){return Ji(this,JB,7)};g.getAuthorEmail=function(){return Hi(this,10)};Qn.repeatedFields_=[5,6,7,11,17,13,14];var KB=function(a){this.internalArray_=m(a)};W(KB,X);KB.prototype.getCommentId=function(){return Hi(this,1)};KB.prototype.getContent=function(){return Hi(this,8)};KB.prototype.setContent=function(a){return wm(this,8,a)};KB.prototype.getExternalLink=function(){return Hi(this,12)};KB.repeatedFields_=[14];var Sn=function(a){this.internalArray_=m(a)};W(Sn,X);g=Sn.prototype;g.getCreatedTimestamp=function(){return dj(this,1)};g.getOwnedByMe=function(){return Ri(this,3)};g.setOwnedByMe=function(a){return ho(this,3,a)};g.getMimeType=function(){return Hi(this,15)};g.setMimeType=function(a){wm(this,15,a)};g.getCommentsList=function(){return Ji(this,KB,6)};g.getCreatorEmail=function(){return Hi(this,11)};Sn.repeatedFields_=[17,6];var dSb=function(a){this.internalArray_=m(a)};W(dSb,X);g=dSb.prototype;g.getResourceId=function(){return Hi(this,17)};g.setResourceId=function(a){wm(this,17,a)};g.getTitle=function(){return Hi(this,2)};g.setTitle=function(a){return wm(this,2,a)};g.getLastModifiedTimestamp=function(){return dj(this,3)};g.getIconName=function(){return Hi(this,10)};g.getExternalLink=function(){return Hi(this,16)};g.getIsDeleted=function(){return Ri(this,19)};g.setIsDeleted=function(a){ho(this,19,a)};
var Rn=[5,6,7,8,9,18,22,23,24];var LB=function(a){this.internalArray_=m(a)};W(LB,X);LB.prototype.getName=function(){return Hi(this,1)};LB.prototype.setName=function(a){return wm(this,1,a)};LB.prototype.getContent=function(){return Hi(this,2)};LB.prototype.setContent=function(a){return wm(this,2,a)};var MB=function(a){this.internalArray_=m(a)};W(MB,X);var eSb=function(a,b){return wm(a,1,b)},fSb=function(a,b){return bm(a,3,b)};MB.prototype.getResource=function(){return Fi(this,dSb,6)};MB.prototype.setResource=function(a){return oj(this,dSb,6,a)};var gSb=function(a,b){return um(a,12,b)};MB.prototype.getNote=function(){return Fi(this,LB,22)};MB.prototype.getCreatedTimestamp=function(){return dj(this,7)};MB.prototype.getUpdatedTimestamp=function(){return dj(this,8)};var hSb=function(a){this.internalArray_=m(a)};W(hSb,X);var NB=function(a){this.internalArray_=m(a)};W(NB,X);NB.prototype.getCreatedTimestamp=function(){return dj(this,3)};NB.prototype.getUpdatedTimestamp=function(){return dj(this,4)};var iSb=[2];var jSb=function(a){this.internalArray_=m(a)};W(jSb,X);var kSb=function(){var a=new jSb;return yj(a,1,[void 0])};jSb.repeatedFields_=[1];var km=function(a){this.internalArray_=m(a)};W(km,X);km.prototype.getId=function(){return Hi(this,1)};km.prototype.setId=function(a){return wm(this,1,a)};km.prototype.getVersion=function(){return Hi(this,2)};km.prototype.setVersion=function(a){return wm(this,2,a)};var OB=function(a){this.internalArray_=m(a)};W(OB,X);g=OB.prototype;g.getTask=function(){return Fi(this,MB,8)};g.setTask=function(a){return oj(this,MB,8,a)};g.hasTask=function(){return Zi(this,MB,8)};g.setUndoToken=function(a){return wm(this,7,a)};g.getClientId=function(){return hi(this,9)};g.setClientId=function(a){return il(this,9,a)};var PB=function(a){this.internalArray_=m(a)};W(PB,X);PB.prototype.getName=function(){return Hi(this,1)};PB.prototype.setName=function(a){return wm(this,1,a)};var QB=function(a,b,c){var d=this;this.userPrefsApiPromiseClient=a;this.taskManagementApiPromiseClient=b;this.config=c;this.sessionIndex="0";(0,B.defer)(function(){var e=(new PB).setName("keys/2");return(0,B.from)(d.userPrefsApiPromiseClient.getUserPrefs(e,d.getHeaders()))}).pipe(A(function(e){return(e=Fl(e.getUserPrefs()||new NB,hSb,2,iSb))?12096E5>=Date.now()-dj(e,21):!1}),wf(1))};
QB.prototype.getTask=function(){var a=this,b=kSb();return(0,B.defer)(function(){var c=B.from;var d=a.taskManagementApiPromiseClient;var e=a.getHeaders();d=RB(d.client_,d.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",b,e||{},lSb);return c.call(B,d)}).pipe(A(function(c){return(c=c.getTasksList())&&0!==c.length?{taskId:void 0,taskStatus:mSb(Vi(c[0],3,0)),snoozeUntilMs:Number(dj(c[0],12)||"")}:{taskId:void 0,taskStatus:0,snoozeUntilMs:0}}))};
QB.prototype.updateTaskStatus=function(a,b){var c=this;var d=void 0===d?0:d;var e=(new OB).setTask(gSb(eSb(fSb(new MB,a),b),d||0)).setUndoToken("");return(0,B.defer)(function(){return(0,B.from)(c.taskManagementApiPromiseClient.updateTaskStatus(e,c.getHeaders()))}).pipe(A(function(f){f=f.getTask();return{taskId:Hi(f,1),taskStatus:mSb(Vi(f,3,0)),snoozeUntilMs:Number(dj(f,12)||0)}}))};
QB.prototype.getHeaders=function(){return{"X-Goog-Api-Key":this.config?this.config.apikey?this.config.apikey:"nonprod"===this.config.environment?"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA":"AIzaSyBIugcexIJggeGpV_dVry6fkIO6bKH_nHk":"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA",Authorization:Ko([])||"","X-Goog-AuthUser":this.sessionIndex}};var mSb=function(a){switch(a){case 0:case 6:case 2:case 3:case 5:case 1:return a;default:$h(a)}};QB.\u0275fac=function(a){return new (a||QB)(n(bSb),n(aSb),n(cSb,8))};
QB.\u0275prov=$c({token:QB,factory:QB.\u0275fac,providedIn:"root"});var SB=function(){};SB.\u0275fac=function(a){return new (a||SB)};SB.\u0275mod=qd({type:SB});SB.\u0275inj=ad({imports:[ez,Ty,Ty]});var TB=function(){};TB.\u0275fac=function(a){return new (a||TB)};TB.\u0275mod=qd({type:TB});TB.\u0275inj=ad({imports:[ay,rA,Sv,vA,SB,GB,Sy,sA]});var nSb=function(a){this.internalArray_=m(a)};W(nSb,X);var oSb=function(a,b,c){this.requestMessage_=a;this.methodDescriptor_=b;this.metadata_=c};oSb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};oSb.prototype.getMetadata=function(){return this.metadata_};var pSb=function(a,b,c){c=void 0===c?{}:c;this.responseMessage_=a;this.metadata_=c;this.methodDescriptor_=b;this.status_=null};pSb.prototype.getMetadata=function(){return this.metadata_};pSb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};pSb.prototype.getStatus=function(){return this.status_};var UB=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},qSb=function(a,b,c){c=void 0===c?{}:c;return new oSb(b,a,c)};UB.prototype.getName=function(){return this.name};UB.prototype.getName=UB.prototype.getName;var VB=function(a){this.internalArray_=m(a)};W(VB,X);VB.prototype.getTasksList=function(){return Ji(this,MB,1)};VB.prototype.setTasksList=function(a){return om(this,1,a)};var rSb=tc(VB);VB.repeatedFields_=[1];var lSb=new UB("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",jSb,VB,function(a){return a.serialize()},rSb);var WB=function(a){this.internalArray_=m(a)};W(WB,X);WB.prototype.getTask=function(){return Fi(this,MB,1)};WB.prototype.setTask=function(a){return oj(this,MB,1,a)};WB.prototype.hasTask=function(){return Zi(this,MB,1)};WB.prototype.setUndoToken=function(a){return wm(this,4,a)};var sSb=new UB("/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",OB,WB,function(a){return a.serialize()},tc(WB));var XB=function(a){this.internalArray_=m(a)};W(XB,X);g=XB.prototype;g.getTasksList=function(){return Ji(this,MB,1)};g.setTasksList=function(a){return om(this,1,a)};g.setUndoToken=function(a){return wm(this,2,a)};g.getClientId=function(){return hi(this,3)};g.setClientId=function(a){return il(this,3,a)};XB.repeatedFields_=[1];var YB=function(a){this.internalArray_=m(a)};W(YB,X);YB.prototype.getTasksList=function(){return Ji(this,MB,1)};YB.prototype.setTasksList=function(a){return om(this,1,a)};YB.prototype.setUndoToken=function(a){return wm(this,2,a)};var tSb=tc(YB);YB.repeatedFields_=[1];var uSb=new UB("/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatuses",XB,YB,function(a){return a.serialize()},tSb);var vSb=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}},wSb=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";
case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";default:return""}};var ZB=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};W(ZB,Error);ZB.prototype.toString=function(){var a="RpcError("+(wSb(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};ZB.prototype.name="RpcError";var xSb=Promise;var $B=function(a){this.internalArray_=m(a)};W($B,X);$B.prototype.getCode=function(){return hi(this,1)};$B.prototype.setCode=function(a){return il(this,1,a)};$B.prototype.getMessage=function(){return Hi(this,2)};$B.prototype.setMessage=function(a){wm(this,2,a)};var ySb=tc($B);$B.repeatedFields_=[3];var aC=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.onErrorCallbacks_=[];this.xhrNodeReadableStream_&&zSb(this)},ESb=function(a,b){Qo(a.xhr_,"complete",function(){if(a.xhr_.isSuccess()){var c=a.xhr_.getResponseText();if(b&&"text/plain"===a.xhr_.getResponseHeader("Content-Type")){if(!atob)throw Error("Cb");c=atob(c)}try{var d=
a.grpcResponseDeserializeFn_(c)}catch(f){bC(a,new ZB(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=vSb(a.xhr_.getStatus());ASb(a,BSb(a));0==c?CSb(a,d):bC(a,new ZB(c,"Xhr succeeded but the status code is not 200"))}else{d=a.xhr_.getResponseText();var e={};d?(e=DSb(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+a.xhr_.getLastErrorCode()+", error: "+a.xhr_.getLastError());ASb(a,BSb(a));bC(a,new ZB(d,c,e))}})},zSb=function(a){a.xhrNodeReadableStream_.on("data",
function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){bC(a,new ZB(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&CSb(a,d)}if("2"in b)for(b=DSb(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){ASb(a,BSb(a));for(var b=0;b<a.onEndCallbacks_.length;b++)a.onEndCallbacks_[b]()});a.xhrNodeReadableStream_.on("error",function(){if(0!=a.onErrorCallbacks_.length){var b=a.xhr_.getLastErrorCode();
0!==b||a.xhr_.isSuccess()||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.xhr_.getStatus();d=vSb(c);break;default:d=14}ASb(a,BSb(a));b=pRb(b)+", error: "+a.xhr_.getLastError();-1!=c&&(b+=", http status code: "+c);bC(a,new ZB(d,b))}})},BSb=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},DSb=function(a,b){var c=2,d={};try{var e=ySb(b);c=e.getCode();var f=e.getMessage();Ji(e,HB,3).length&&(d["grpc-web-status-details-bin"]=
b)}catch(h){a.xhr_&&404===a.xhr_.getStatus()?(c=5,f="Not Found: "+a.xhr_.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};aC.prototype.on=function(a,b){"data"==a?this.onDataCallbacks_.push(b):"metadata"==a?this.onMetadataCallbacks_.push(b):"status"==a?this.onStatusCallbacks_.push(b):"end"==a?this.onEndCallbacks_.push(b):"error"==a&&this.onErrorCallbacks_.push(b);return this};var cC=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
aC.prototype.removeListener=function(a,b){"data"==a?cC(this.onDataCallbacks_,b):"metadata"==a?cC(this.onMetadataCallbacks_,b):"status"==a?cC(this.onStatusCallbacks_,b):"end"==a?cC(this.onEndCallbacks_,b):"error"==a&&cC(this.onErrorCallbacks_,b);return this};aC.prototype.cancel=function(){this.xhr_.abort()};
var CSb=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},ASb=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},bC=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};aC.prototype.cancel=aC.prototype.cancel;aC.prototype.removeListener=aC.prototype.removeListener;aC.prototype.on=aC.prototype.on;var dC=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};ft(dC,qRb);dC.prototype.createInstance=function(){var a=new eC(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};dC.prototype.internalGetOptions=Rt({});dC.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};
dC.prototype.setCacheMode=function(a){this.cacheMode_=a};var eC=function(a,b){Po.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.requestHeaders_=new Headers;this.responseHeaders_=null;this.method_="GET";this.url_="";this.inProgress_=!1;this.textDecoder_=this.currentReader_=this.fetchResponse_=null};
ft(eC,Po);eC.prototype.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Db");this.method_=a;this.url_=b;this.readyState=1;fC(this)};eC.prototype.send=function(a){if(1!=this.readyState)throw this.abort(),Error("Eb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_};a&&(b.body=a);(this.worker_||da).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
eC.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});1<=this.readyState&&this.inProgress_&&4!=this.readyState&&(this.inProgress_=!1,gC(this));this.readyState=0};
eC.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.responseHeaders_=a.headers,this.readyState=2,fC(this)),this.inProgress_&&(this.readyState=3,fC(this),this.inProgress_)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if("undefined"!==typeof da.ReadableStream&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("Fb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;FSb(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var FSb=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
eC.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.streamBinaryChunks_){var b=a.value?a.value:new Uint8Array(0);if(b=this.textDecoder_.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?gC(this):fC(this);3==this.readyState&&FSb(this)}};eC.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,gC(this))};
eC.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,gC(this))};eC.prototype.handleSendFailure_=function(){this.inProgress_&&gC(this)};var gC=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;fC(a)};g=eC.prototype;g.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};g.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
g.getAllResponseHeaders=function(){if(!this.responseHeaders_)return"";for(var a=[],b=this.responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};g.setCredentialsMode=function(a){this.credentialsMode_=a};g.setCacheMode=function(a){this.cacheMode_=a};var fC=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(eC.prototype,"withCredentials",{get:function(){return"include"===this.credentialsMode_},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var GSb=function(a){if(a.getCount&&"function"==typeof a.getCount)a=a.getCount();else if(Ca(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},hC=function(a){if(a.getValues&&"function"==typeof a.getValues)return a.getValues();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(Ca(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return qca(a)},HSb=
function(a){if(a.getKeys&&"function"==typeof a.getKeys)return a.getKeys();if(!a.getValues||"function"!=typeof a.getValues){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(Ca(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}b=[];c=0;for(var d in a)b[c++]=d;return b}}},ISb=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(Ca(a)||"string"===typeof a)Array.prototype.forEach.call(a,
b,c);else for(var d=HSb(a),e=hC(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},JSb=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(Ca(a)||"string"===typeof a)return Array.prototype.every.call(a,b,c);for(var d=HSb(a),e=hC(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var Vo=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof Vo?(this.ignoreCase_=void 0!==b?b:a.ignoreCase_,iC(this,a.scheme_),this.setUserInfo(a.getUserInfo()),jC(this,a.getDomain()),kC(this,a.port_),this.setPath(a.getPath()),lC(this,a.queryData_.clone()),mC(this,a.fragment_)):a&&(c=String(a).match(LQb))?(this.ignoreCase_=!!b,iC(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),jC(this,c[3]||"",!0),kC(this,c[4]),
this.setPath(c[5]||"",!0),lC(this,c[6]||"",!0),mC(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new nC(null,this.ignoreCase_))};
Vo.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(oC(b,KSb,!0),":");var c=this.getDomain();if(c||"file"==b)a.push("//"),(b=this.getUserInfo())&&a.push(oC(b,KSb,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.port_,null!=c&&a.push(":",String(c));if(c=this.getPath())this.domain_&&"/"!=c.charAt(0)&&a.push("/"),a.push(oC(c,"/"==c.charAt(0)?LSb:MSb,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",oC(c,NSb));return a.join("")};
Vo.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?iC(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?jC(b,a.getDomain()):c=null!=a.port_;var d=a.getPath();if(c)kC(b,a.port_);else if(c=a.hasPath()){if("/"!=d.charAt(0))if(this.domain_&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(ka(e,"./")||ka(e,"/.")){d=si(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var k=
e[h++];"."==k?d&&h==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?lC(b,a.queryData_.clone()):c=!!a.fragment_;c&&mC(b,a.fragment_);return b};Vo.prototype.clone=function(){return new Vo(this)};var iC=function(a,b,c){a.scheme_=c?pC(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};Vo.prototype.getUserInfo=function(){return this.userInfo_};
Vo.prototype.setUserInfo=function(a,b){this.userInfo_=b?pC(a):a;return this};Vo.prototype.hasUserInfo=function(){return!!this.userInfo_};Vo.prototype.getDomain=function(){return this.domain_};var jC=function(a,b,c){a.domain_=c?pC(b,!0):b;return a},kC=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Gb`"+b);a.port_=b}else a.port_=null;return a};Vo.prototype.getPath=function(){return this.path_};Vo.prototype.setPath=function(a,b){this.path_=b?pC(a,!0):a;return this};
Vo.prototype.hasPath=function(){return!!this.path_};Vo.prototype.hasQuery=function(){return""!==this.queryData_.toString()};var lC=function(a,b,c){b instanceof nC?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=oC(b,OSb)),a.queryData_=new nC(b,a.ignoreCase_));return a};Vo.prototype.setQuery=function(a){return lC(this,a)};Vo.prototype.getQuery=function(){return this.queryData_.toString()};
var qC=function(a,b,c){a.queryData_.set(b,c);return a},rC=function(a,b){return a.queryData_.get(b)},mC=function(a,b,c){a.fragment_=c?pC(b):b;return a},sC=function(a){qC(a,"zx",Zt());return a};Vo.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};Vo.prototype.isReadOnly=function(){return!1};Vo.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var tC=function(a,b){return a instanceof Vo?a.clone():new Vo(a,b)},PSb=function(a,b,c,d,e){var f=new Vo(null);a&&iC(f,a);b&&f.setUserInfo(b);c&&jC(f,c);d&&kC(f,d);e&&f.setPath(e);return f},pC=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},oC=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,QSb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},QSb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},KSb=
/[#\/\?@]/g,MSb=/[#\?:]/g,LSb=/[#\?]/g,OSb=/[#\?@]/g,NSb=/#/g,nC=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},uC=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&MQb(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=nC.prototype;g.getCount=function(){uC(this);return this.count_};
g.add=function(a,b){uC(this);this.encodedQuery_=null;a=vC(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};g.remove=function(a){uC(this);a=vC(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};g.isEmpty=function(){uC(this);return 0==this.count_};g.containsKey=function(a){uC(this);a=vC(this,a);return this.keyMap_.has(a)};
g.containsValue=function(a){var b=this.getValues();return va(b,a)};g.forEach=function(a,b){uC(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){uC(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.getValues=function(a){uC(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=b.concat(this.keyMap_.get(vC(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};g.set=function(a,b){uC(this);this.encodedQuery_=null;a=vC(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};g.get=function(a,b){if(!a)return b;a=this.getValues(a);return 0<a.length?String(a[0]):b};
g.setValues=function(a,b){this.remove(a);0<b.length&&(this.encodedQuery_=null,this.keyMap_.set(vC(this,a),Ba(b)),this.count_+=b.length)};g.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.getValues(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}}return this.encodedQuery_=a.join("&")};
g.clone=function(){var a=new nC;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var vC=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};nC.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(uC(this),this.encodedQuery_=null,this.keyMap_.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.ignoreCase_=a};
nC.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)ISb(arguments[b],function(c,d){this.add(d,c)},this)};var RSb=function(a){var b="";vc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},SSb=function(a,b,c){if(xc(c))return a;c=RSb(c);if("string"===typeof a)return cB(a,encodeURIComponent(String(b)),c);qC(a,b,c);return a};var xq=function(a){yA.call(this);this.handler_=a;this.keys_={}};ft(xq,yA);var TSb=[];xq.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(TSb[0]=b.toString()),b=TSb);for(var e=0;e<b.length;e++){var f=Qo(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};xq.prototype.listenOnce=function(a,b,c,d){return USb(this,a,b,c,d)};
var USb=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)USb(a,b,c[h],d,e,f);else{b=EA(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
xq.prototype.unlisten=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else c=c||this.handleEvent,d=Fa(d)?!!d.capture:!!d,e=e||this.handler_||this,c=cPb(c),d=!!d,b=CA(a)?a.getListener(b,c,d,e):a?(a=FA(a))?a.getListener(b,c,d,e):null:null,b&&(HA(b),delete this.keys_[b.key]);return this};xq.prototype.removeAll=function(){vc(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&HA(a)},this);this.keys_={}};
xq.prototype.disposeInternal=function(){xq.superClass_.disposeInternal.call(this);this.removeAll()};xq.prototype.handleEvent=function(){throw Error("Ib");};var VSb=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};VSb.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("Jb`"+this.streamPos_+"`"+b+"`"+a);};
VSb.prototype.decode=function(a){this.isInputValid_||this.error_(a,"stream already broken");this.leftoverInput_+=a;a=Math.floor(this.leftoverInput_.length/4);if(0==a)return null;try{var b=bFb(this.leftoverInput_.slice(0,4*a))}catch(c){this.error_(this.leftoverInput_,c.message)}this.streamPos_+=4*a;this.leftoverInput_=this.leftoverInput_.slice(4*a);return b};var bi=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};bi.prototype.getErrorMessage=function(){return this.errorMessage_};bi.prototype.error_=function(a,b,c){this.state_=3;this.errorMessage_="The stream is broken @"+this.streamPos_+"/"+b+". Error: "+c+". With input:\n"+a;throw Error(this.errorMessage_);};bi.prototype.acceptsBinaryInput=function(){return!0};
bi.prototype.parse=function(a){function b(q){q&128&&f.error_(h,k,"invalid tag");2!=(q&7)&&f.error_(h,k,"invalid wire type");f.tag_=q>>>3;1!=f.tag_&&2!=f.tag_&&15!=f.tag_&&f.error_(h,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(q){f.countLengthBytes_++;5==f.countLengthBytes_&&q&240&&f.error_(h,k,"message length too long");f.length_|=(q&127)<<7*(f.countLengthBytes_-1);q&128||(f.state_=2,f.countMessageBytes_=0,"undefined"!==typeof Uint8Array?f.messageBuffer_=new Uint8Array(f.length_):
f.messageBuffer_=Array(f.length_),0==f.length_&&e())}function d(q){f.messageBuffer_[f.countMessageBytes_++]=q;f.countMessageBytes_==f.length_&&e()}function e(){if(15>f.tag_){var q={};q[f.tag_]=f.messageBuffer_;f.result_.push(q)}f.state_=0}for(var f=this,h=a instanceof Array?a:new Uint8Array(a),k=0;k<h.length;){switch(f.state_){case 3:f.error_(h,k,"stream already broken");break;case 0:b(h[k]);break;case 1:c(h[k]);break;case 2:d(h[k]);break;default:throw Error("Kb`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return 0<a.length?a:null};var ci=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new VSb;this.pbParser_=new bi};ci.prototype.getErrorMessage=function(){return this.errorMessage_};ci.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};ci.prototype.acceptsBinaryInput=function(){return!1};
ci.prototype.parse=function(a){null!==this.errorMessage_&&this.error_(a,"stream already broken");var b=null;try{var c=this.base64Decoder_.decode(a);b=null===c?null:this.pbParser_.parse(c)}catch(d){this.error_(a,d.message)}this.streamPos_+=a.length;return b};var wC=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};var lpa=function(a){this.errorMessage_=null;this.result_=[];this.buffer_="";this.stack_=[];this.pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)},WSb={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,
NUM_DIGIT:20};g=lpa.prototype;g.getErrorMessage=function(){return this.errorMessage_};g.done=function(){return 2===this.streamState_};g.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};g.acceptsBinaryInput=function(){return!1};
g.parse=function(a){function b(){for(;E<a.length;)if(wC(a[E]))E++,f.pos_++;else break;return E<u}function c(){for(var J;;){J=a[E++];if(!J)break;f.pos_++;switch(f.state_){case q.INIT:"{"===J?f.state_=q.OBJECT_OPEN:"["===J?f.state_=q.ARRAY_OPEN:wC(J)||f.error_(a,E);continue;case q.KEY_START:case q.OBJECT_OPEN:if(wC(J))continue;if(f.state_===q.KEY_START)h.push(q.KEY_END);else if("}"===J){e("{}");f.state_=d();continue}else h.push(q.OBJECT_END);'"'===J?f.state_=q.STRING:f.error_(a,E);continue;case q.KEY_END:case q.OBJECT_END:if(wC(J))continue;
":"===J?(f.state_===q.OBJECT_END&&(h.push(q.OBJECT_END),f.depth_++),f.state_=q.VALUE):"}"===J?(f.depth_--,e(),f.state_=d()):","===J?(f.state_===q.OBJECT_END&&h.push(q.OBJECT_END),f.state_=q.KEY_START):f.error_(a,E);continue;case q.ARRAY_OPEN:case q.VALUE:if(wC(J))continue;if(f.state_===q.ARRAY_OPEN)if(f.depth_++,f.state_=q.VALUE,"]"===J){f.depth_--;if(0===f.depth_){f.state_=q.ARRAY_END;return}e("[]");f.state_=d();continue}else h.push(q.ARRAY_END);'"'===J?f.state_=q.STRING:"{"===J?f.state_=q.OBJECT_OPEN:
"["===J?f.state_=q.ARRAY_OPEN:"t"===J?f.state_=q.TRUE1:"f"===J?f.state_=q.FALSE1:"n"===J?f.state_=q.NULL1:"-"!==J&&(-1!=="0123456789".indexOf(J)?f.state_=q.NUM_DIGIT:f.error_(a,E));continue;case q.ARRAY_END:if(","===J)h.push(q.ARRAY_END),f.state_=q.VALUE,1===f.depth_&&(y=E);else if("]"===J){f.depth_--;if(0===f.depth_)return;e();f.state_=d()}else if(wC(J))continue;else f.error_(a,E);continue;case q.STRING:var O=E;a:for(;;){for(;0<f.unicodeCount_;)if(J=a[E++],4===f.unicodeCount_?f.unicodeCount_=0:f.unicodeCount_++,
!J)break a;if('"'===J&&!f.slashed_){f.state_=d();break}if("\\"===J&&!f.slashed_&&(f.slashed_=!0,J=a[E++],!J))break;if(f.slashed_)if(f.slashed_=!1,"u"===J&&(f.unicodeCount_=1),J=a[E++])continue;else break;k.lastIndex=E;J=k.exec(a);if(!J){E=a.length+1;break}E=J.index+1;J=a[J.index];if(!J)break}f.pos_+=E-O;continue;case q.TRUE1:if(!J)continue;"r"===J?f.state_=q.TRUE2:f.error_(a,E);continue;case q.TRUE2:if(!J)continue;"u"===J?f.state_=q.TRUE3:f.error_(a,E);continue;case q.TRUE3:if(!J)continue;"e"===J?
f.state_=d():f.error_(a,E);continue;case q.FALSE1:if(!J)continue;"a"===J?f.state_=q.FALSE2:f.error_(a,E);continue;case q.FALSE2:if(!J)continue;"l"===J?f.state_=q.FALSE3:f.error_(a,E);continue;case q.FALSE3:if(!J)continue;"s"===J?f.state_=q.FALSE4:f.error_(a,E);continue;case q.FALSE4:if(!J)continue;"e"===J?f.state_=d():f.error_(a,E);continue;case q.NULL1:if(!J)continue;"u"===J?f.state_=q.NULL2:f.error_(a,E);continue;case q.NULL2:if(!J)continue;"l"===J?f.state_=q.NULL3:f.error_(a,E);continue;case q.NULL3:if(!J)continue;
"l"===J?f.state_=d():f.error_(a,E);continue;case q.NUM_DECIMAL_POINT:"."===J?f.state_=q.NUM_DIGIT:f.error_(a,E);continue;case q.NUM_DIGIT:if(-1!=="0123456789.eE+-".indexOf(J))continue;else E--,f.pos_--,f.state_=d();continue;default:f.error_(a,E)}}}function d(){var J=h.pop();return null!=J?J:q.VALUE}function e(J){1<f.depth_||(J||(J=-1===y?f.buffer_+a.substring(x,E):a.substring(y,E)),f.deliverMessageAsRawString_?f.result_.push(J):f.result_.push(JSON.parse(J)),y=E)}for(var f=this,h=f.stack_,k=f.stringInputPattern_,
q=WSb,u=a.length,x=0,y=-1,E=0;E<u;)switch(f.streamState_){case 3:return f.error_(a,E),null;case 2:return b()&&f.error_(a,E),null;case 0:if(b()){var H=a[E++];f.pos_++;if("["===H){f.streamState_=1;x=E;f.state_=q.ARRAY_OPEN;continue}else f.error_(a,E)}return null;case 1:return c(),0===f.depth_&&f.state_==q.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(E)):f.buffer_=-1===y?f.buffer_+a.substring(x):a.substring(y),0<f.result_.length?(H=f.result_,f.result_=[],H):null}return null};var kpa=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};kpa.prototype.getErrorMessage=function(){return this.errorMessage_};kpa.prototype.acceptsBinaryInput=function(){return!1};
kpa.prototype.parse=function(a){function b(q){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+h+". Error: "+q+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new lpa({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var u=0;u<q.length;u++){var x={};x[1]=q[u];f.result_.push(x)}}function e(q){if(q){(f.statusParsed_||1<q.length)&&b("extra status: "+q);f.statusParsed_=!0;var u={};u[2]=q[0];f.result_.push(u)}}for(var f=
this,h=0;h<a.length;){var k;if(k=2!==f.state_){a:{for(;h<a.length;){if(!wC(a[h])){k=!0;break a}h++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.state_=1,h++,f.streamPos_++):b("unexpected input token");break;case 1:"["===a[h]?(f.state_=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.state_=3:"]"===a[h]?(f.state_=5,h++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(h));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.state_=4,c(),f.jsonStreamParser_.parse("["),h+=","===a[h]?1:5,f.streamPos_++):"]"===a[h]&&(f.state_=5,h++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(h));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);
break;case 5:b("extra input after stream end")}}return 0<f.result_.length?(a=f.result_,f.result_=[],a):null};var XSb=function(a){this.xhr_=a;this.parser_=null;this.status_=this.pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.textDecoder_=null;this.eventHandler_=new xq(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};XSb.prototype.getXhr=function(){return this.xhr_};
var xC=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},yC=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};XSb.prototype.getStatus=function(){return this.status_};
XSb.prototype.readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.xhr_)a:{var b=this.xhr_.getReadyState(),c=this.xhr_.getLastErrorCode(),d=this.xhr_.getStatus(),e=this.xhr_.getResponseText();a=[];if(this.xhr_.getResponse()instanceof Array){var f=this.xhr_.getResponse();0<f.length&&f[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?xC(this,7):7==c?xC(this,8):d||xC(this,3)),this.parser_||(this.parser_=mpa(this.xhr_),
null==this.parser_&&xC(this,5)),2<this.status_)yC(this);else{if(a.length>this.pos_){var h=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<h;k++){var q=this.parser_.parse(Array.from(a[k]));q&&(c=c.concat(q))}else{q="";if(!this.textDecoder_){if("undefined"===typeof TextDecoder)throw Error("Lb");this.textDecoder_=new TextDecoder}for(k=0;k<h;k++)q+=this.textDecoder_.decode(a[k],{stream:4==b&&k==h-1});c=this.parser_.parse(q)}a.splice(0,h);c&&this.dataHandler_(c)}catch(x){xC(this,5);
yC(this);break a}}else if(e.length>this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var u=this.parser_.parse(k);null!=u&&this.dataHandler_&&this.dataHandler_(u)}catch(x){xC(this,5);yC(this);break a}}4==b?(0!=e.length||this.hasStreamingResponseData_?xC(this,2):xC(this,4),yC(this)):xC(this,1)}}}catch(x){xC(this,6),yC(this)}};var YSb=function(a){this.xhrReader_=a;a=dt(this.onData_,this);this.xhrReader_.dataHandler_=a;a=dt(this.onStatusChange_,this);this.xhrReader_.statusHandler_=a;this.callbackMap_={};this.callbackOnceMap_={}};g=YSb.prototype;g.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};g.addListener=function(a,b){this.on(a,b);return this};g.removeListener=function(a,b){var c=this.callbackMap_[a];c&&za(c,b);(a=this.callbackOnceMap_[a])&&za(a,b);return this};
g.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};g.onData_=function(a){var b=this.callbackMap_.data;b&&ZSb(this,a,b);(b=this.callbackOnceMap_.data)&&ZSb(this,a,b);this.callbackOnceMap_.data=[]};
var ZSb=function(a,b,c){for(var d={},e=0;e<b.length;d={message$jscomp$679:d.message$jscomp$679},e++)d.message$jscomp$679=b[e],c.forEach(function(f){return function(h){try{h(f.message$jscomp$679)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};YSb.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:$Sb(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$Sb(this,"error");break;case 8:$Sb(this,"close");break;case 2:$Sb(this,"end")}};
var $Sb=function(a,b){var c=a.callbackMap_[b];c&&c.forEach(function(d){try{d()}catch(e){a.handleError_("status-callback exception (ignored) "+e)}});(c=a.callbackOnceMap_[b])&&c.forEach(function(d){d()});a.callbackOnceMap_[b]=[]};YSb.prototype.handleError_=function(){};var zC=function(a){a=void 0===a?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||Jo("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||Jo("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},cTb=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return aTb(function(h){return new xSb(function(k,q){var u=
{},x=bTb(a,h,f);x.on("error",function(y){return q(y)});x.on("metadata",function(y){u=y});x.on("data",function(y){var E=u;E=void 0===E?{}:E;k(new pSb(y,h.getMethodDescriptor(),E))})})},a.unaryInterceptors_).call(a,qSb(e,c,d)).then(function(h){return h.responseMessage_})},RB=function(a,b,c,d,e){return cTb(a,b,c,d,e)};
zC.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return aTb(function(h){var k=h.getMethodDescriptor(),q=h.getMetadata(),u=dTb(e,!1);q=eTb(e,q,u,f+k.getName());var x=fTb(u,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage_);u.send(q,"POST",h);return x},this.streamInterceptors_).call(this,qSb(d,b,c))};
var bTb=function(a,b,c){var d=b.getMethodDescriptor(),e=b.getMetadata(),f=dTb(a,!0);a=eTb(a,e,f,c+d.getName());c=fTb(f,d.responseDeserializeFn,!1);ESb(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.requestSerializeFn(b.requestMessage_);f.send(a,"POST",b);return c},dTb=function(a,b){b=a.chunkedServerStreaming_&&!b;return a.workerScope_||b?new pB(new dC({worker:a.workerScope_,streamBinaryChunks:b})):new pB},eTb=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]=
"grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.withCredentials_)c.withCredentials_=!0;if(a.suppressCorsPreflight_)d=SSb(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d},fTb=function(a,b,c){if(c)if(!rq||10<=Number(kt)){c=new XSb(a);var d=new YSb(c)}else d=null;return new aC({xhr:a,nodeReadableStream:d},b)},aTb=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,
e)}});return c};var gTb=function(a){this.client_=new zC({format:"jspb"});this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};gTb.prototype.updateTaskStatus=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",a,b||{},sSb)};gTb.prototype.updateTaskStatuses=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatuses",a,b||{},uSb)};var hTb=function(a){this.internalArray_=m(a)};W(hTb,X);hTb.prototype.getUserPrefs=function(){return Fi(this,NB,1)};var iTb=new UB("/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",PB,hTb,function(a){return a.serialize()},tc(hTb));var AC=function(a){this.internalArray_=m(a)};W(AC,X);AC.repeatedFields_=[1];var jTb=function(a){this.client_=new zC({format:"jspb"});this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};jTb.prototype.getUserPrefs=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",a,b||{},iTb)};var kTb=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},BC=function(a,b,c){var d=this;this._elementRef=a;this._dateAdapter=b;this._dateFormats=c;this.dateChange=new Yu;this.dateInput=new Yu;this.stateChanges=new B.Subject;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=B.Subscription.EMPTY;this._parseValidator=function(){return d._lastValueValid?null:{matDatepickerParse:{text:d._elementRef.nativeElement.value}}};
this._filterValidator=function(e){e=Wy(d._dateAdapter,d._dateAdapter.deserialize(e.value));return!e||d._matchesFilter(e)?null:{matDatepickerFilter:!0}};this._minValidator=function(e){e=Wy(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.min;return!f||!e||0>=Xy(d._dateAdapter,f,e)?null:{matDatepickerMin:{min:f,actual:e}}};this._maxValidator=function(e){e=Wy(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.max;return!f||!e||0<=Xy(d._dateAdapter,f,e)?null:
{matDatepickerMax:{max:f,actual:e}}};this._lastValueValid=!1;this._localeSubscription=b.localeChanges.subscribe(function(){d._assignValueProgrammatically(d.value)})};g=BC.prototype;g._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
g._registerModel=function(a){var b=this;this._model=a;this._valueChangesSubscription.unsubscribe();this._pendingValue&&this._assignValue(this._pendingValue);this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){b._shouldHandleChangeEvent(c)&&(c=b._getValueFromModel(c.selection),b._lastValueValid=b._isValidValue(c),b._cvaOnChange(c),b._onTouched(),b._formatValue(c),b.dateInput.emit(new kTb(b,b._elementRef.nativeElement)),b.dateChange.emit(new kTb(b,b._elementRef.nativeElement)))})};
g.ngAfterViewInit=function(){this._isInitialized=!0};g.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(Vy(d)&&Vy(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};g.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
g.registerOnValidatorChange=function(a){this._validatorOnChange=a};g.validate=function(a){return this._validator?this._validator(a):null};g.writeValue=function(a){this._assignValueProgrammatically(a)};g.registerOnChange=function(a){this._cvaOnChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};
g._onKeydown=function(a){var b=["ctrlKey","shiftKey","metaKey"];eh(a,"altKey")&&40===a.keyCode&&b.every(function(c){return!eh(a,c)})&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
g._onInput=function(a){var b=this._lastValueValid,c=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(c);c=Wy(this._dateAdapter,c);var d=!this._dateAdapter.sameDate(c,this.value);!c||d?this._cvaOnChange(c):(a&&!this.value&&this._cvaOnChange(c),b!==this._lastValueValid&&this._validatorOnChange());d&&(this._assignValue(c),this.dateInput.emit(new kTb(this,this._elementRef.nativeElement)))};g._onChange=function(){this.dateChange.emit(new kTb(this,this._elementRef.nativeElement))};
g._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};g._formatValue=function(a){this._elementRef.nativeElement.value=null!=a?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};g._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};g._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};g._parentDisabled=function(){return!1};
g._assignValueProgrammatically=function(a){a=this._dateAdapter.deserialize(a);this._lastValueValid=this._isValidValue(a);a=Wy(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._rangeInput.dateFilter;return!b||b(a)};
Qh.Object.defineProperties(BC.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(a){this._assignValueProgrammatically(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return!!this._disabled||this._parentDisabled()},set:function(a){a=ah(a);var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
BC.\u0275fac=function(a){return new (a||BC)(z(ae),z(Uy,8),z(Yy,8))};BC.\u0275dir=sd({type:BC,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Fd]});var lTb=new Ad("MAT_DATE_RANGE_INPUT_PARENT"),CC=function(a,b,c,d,e,f,h,k){BC.call(this,b,h,k);this._rangeInput=a;this._elementRef=b;this._defaultErrorStateMatcher=c;this._injector=d;this._parentForm=e;this._parentFormGroup=f;this._dir=jd(py,{optional:!0})};W(CC,BC);g=CC.prototype;g.ngOnInit=function(){var a=this._injector.get(ew,null,{optional:!0,self:!0});a&&(this.ngControl=a)};g.ngDoCheck=function(){this.ngControl&&this.updateErrorState()};g.isEmpty=function(){return 0===this._elementRef.nativeElement.value.length};
g._getPlaceholder=function(){return this._elementRef.nativeElement.placeholder};g.focus=function(){this._elementRef.nativeElement.focus()};g._onInput=function(a){BC.prototype._onInput.call(this,a);this._rangeInput._handleChildValueChange()};g._openPopup=function(){this._rangeInput._openDatepicker()};g._getMinDate=function(){return this._rangeInput.min};g._getMaxDate=function(){return this._rangeInput.max};g._getDateFilter=function(){return this._rangeInput.dateFilter};g._parentDisabled=function(){return this._rangeInput._groupDisabled};
g._shouldHandleChangeEvent=function(a){a=a.source;return a!==this._rangeInput._startInput&&a!==this._rangeInput._endInput};g._assignValueProgrammatically=function(a){BC.prototype._assignValueProgrammatically.call(this,a);var b;null==(b=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)||b._validatorOnChange()};g._getAccessibleName=function(){return npa(this._elementRef.nativeElement,!0)};
CC.\u0275fac=function(a){return new (a||CC)(z(lTb),z(ae),z(Zy),z(eu),z(mw,8),z(vw,8),z(Uy,8),z(Yy,8))};CC.\u0275dir=sd({type:CC,features:[Jf]});Uh(CC);var mTb={provide:new Ad("mat-datepicker-scroll-strategy"),deps:[Py],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};Rh(function(a){this._elementRef=a});new Ad("mat-mdc-fab-default-options",{providedIn:"root",factory:opa});[].concat(p(["disabled","disableRipple","color","tabIndex"]),["extended"]);var DC=function(){};DC.\u0275fac=function(a){return new (a||DC)};DC.\u0275mod=qd({type:DC});DC.\u0275inj=ad({imports:[Ty,ez,Ty]});var EC=function(){};EC.\u0275fac=function(a){return new (a||EC)};EC.\u0275mod=qd({type:EC});EC.\u0275inj=ad({providers:[mz,mTb],imports:[Sv,DC,Sy,ay,Yw,Ty,Ey]});var FC=function(){};FC.\u0275fac=function(a){return new (a||FC)};FC.\u0275mod=qd({type:FC});FC.\u0275inj=ad({providers:[YRb],imports:[ay,Sv,Sy,Ty,Ty,Ey]});var GC=function(){};GC.\u0275fac=function(a){return new (a||GC)};GC.\u0275mod=qd({type:GC});GC.\u0275inj=ad({providers:[{provide:bSb,useFactory:function(a){return new jTb(ppa(a))},deps:[cSb]},{provide:aSb,useFactory:function(a){return new gTb(ppa(a))},deps:[cSb]},QB],imports:[Sv,TB,SB,EC,Zz,GB,oA,BB,FC]});var nTb=function(a){this.metricName_="/client_streamz/buganizer/load_time";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};nTb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};nTb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var oTb=function(a){this.metricName_="/client_streamz/buganizer/user_action_counts";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};oTb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};oTb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var pTb=function(a){this.metricName_="/client_streamz/buganizer/user_latency";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};pTb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};pTb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};var qTb="alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var rTb=function(a){this.servicePromise_=a;a.then(dt(function(){},this),function(){},this)},sTb=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("Nb`"+b);return e.apply(d,c)})},uTb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=tTb(a,b).then(function(f){return f.apply(null,d)});return new rTb(e)},vTb={},tTb=function(a,b){var c=vTb[b];if(c)return c;c=(c=Jo(b))?XA(c):(new WA(function(d,e){var f=(new JA(document)).createElement("SCRIPT");
f.async=!0;ei(f,lh(Gc(a)));f.onload=f.onreadystatechange=function(){f.readyState&&"loaded"!=f.readyState&&"complete"!=f.readyState||d()};f.onerror=e;(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=Jo(b);if(!d)throw Error("Ob`"+b+"`"+a);return d});return vTb[b]=c};var wTb=function(a){this.loader_=a};wTb.prototype.startFeedback=function(a){sTb(this.loader_,"startFeedback",arguments)};wTb.prototype.requestSurvey=function(a){sTb(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};wTb.prototype.presentSurvey=function(a){sTb(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var xTb=Ut("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");tTb(xTb,"help.service.Lazy.create").thenCatch(function(){});var HC=function(){this.roundCorners=this.showDividers=!1};HC.\u0275fac=function(a){return new (a||HC)};
HC.\u0275cmp=od({type:HC,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&Xf("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap}.show-dividers[_nghost-%COMP%]     button.gmat-button:not(:last-of-type), .show-dividers[_nghost-%COMP%]     :not(:last-child) button.gmat-button{border-right:1px solid #dadce0}.show-dividers[_nghost-%COMP%]     button.gmat-button:not(:first-of-type), .show-dividers[_nghost-%COMP%]     :not(:first-child) button.gmat-button{border-left:1px solid #dadce0}[_nghost-%COMP%]    >:not(:last-child){margin-right:0}[_nghost-%COMP%]    >:not(:first-child){margin-left:0}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:not(:last-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:last-child) button.gmat-button{margin-right:-1px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:not(:first-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:first-child) button.gmat-button{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:hover{z-index:2}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:focus{z-index:3}/*# sourceMappingURL=button-group.css.map */"],changeDetection:0});var yTb={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},Vua={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Xua={ACCESS_LEVEL_UNSPECIFIED:0,INTERNAL:1,EXTERNAL_PARTNER:2,EXTERNAL_PUBLIC:3},zwa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"LIMIT_NONE",2:"LIMIT_VIEW",3:"LIMIT_APPEND",4:"LIMIT_VIEW_TRUSTED"},Jwa={ACCESS_LEVEL_UNSPECIFIED:0,LIMIT_NONE:1,LIMIT_VIEW:2,LIMIT_APPEND:3,LIMIT_VIEW_TRUSTED:4},
Twa={ACTION_TYPE_UNSPECIFIED:0,ADD:1,REMOVE:2},nwa={0:"OFF",1:"ON"},owa={OFF:0,ON:1},KRa={0:"CONFIDENCE_LEVEL_UNSPECIFIED",1:"VERY_HIGH",2:"HIGH",3:"MEDIUM",4:"LOW"},zTb={CONFIDENCE_LEVEL_UNSPECIFIED:0,VERY_HIGH:1,HIGH:2,MEDIUM:3,LOW:4},iwa={0:"DAY_TYPE_UNSPECIFIED",1:"CALENDAR",2:"BUSINESS"},lwa={DAY_TYPE_UNSPECIFIED:0,CALENDAR:1,BUSINESS:2},uwa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},Hwa={DELETION_REASON_UNSPECIFIED:0,USER_REQUEST:1,
ABUSE:2,PII:3,RETENTION:4,ACCOUNT_CAPABILITIES:5},lqa={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Bqa={COMFORTABLE:1,COZY:2,COMPACT:3},lra={0:"NO_DETAILED_TYPE",1:"UNRESTRICTED_GOOGLER",2:"TVC",3:"EXTERNAL",4:"PUBLIC",5:"ISSUE_CREATION_ONLY"},Vxa={0:"UNKNOWN_DIFF_TYPE",1:"SINGLE_VALUE",2:"COLLECTION",5:"USER_COLLECTION",3:"LINKED_COLLECTION",4:"CUSTOM_FIELD",6:"STATUS_UPDATE"},mva={0:"EDIT_SIGNIFICANCE_UNSPECIFIED",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},rva={EDIT_SIGNIFICANCE_UNSPECIFIED:0,
SILENT:1,MINOR:2,MAJOR:3,BULK:4,CLOSING:5},Ui={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},sj={UNKNOWN_PRIORITY:0,CLOSURE_ONLY:4,MINIMAL:1,IMPORTANT:2,ALL:3},kqa={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},Aqa={DEFAULT:0,ASSIGNMENT:1,RESPONSE:2,CLOSURE:3},O$a={0:"ISSUE_LABEL_FIELD_UNSPECIFIED",1:"ID",2:"BLOCKING_ID",3:"BLOCKED_BY_ID",4:"CANONICAL_ID",5:"PARENT_ID",6:"INCOMING_DEPENDENCY_ID",7:"LINKED_ID",8:"HOTLIST_ID",9:"SAVED_SEARCH_ID",10:"COMPONENT_ID",11:"TEAM_ID",
12:"REPORTER",13:"ASSIGNEE",14:"CC",15:"VERIFIER",16:"MODIFIER",17:"LAST_MODIFIER",18:"COMMENTER",19:"LAST_COMMENTER",20:"PRIORITY",21:"SEVERITY",22:"TYPE",23:"STATUS",24:"DELETION_REASON",25:"TITLE",26:"COMMENT",27:"ATTACHMENT",28:"CL",29:"POSTMORTEM",30:"FOUND_IN",31:"TARGETED_TO",32:"VERIFIED_IN",33:"CREATED",34:"MODIFIED",35:"RESOLVED",36:"VERIFIED",37:"DELETION_TIME",38:"IN_PROD",39:"STAR",40:"MUTE",41:"IS_DELETED",42:"CUSTOM_FIELD",43:"DUPLICATE_COUNT",44:"VOTE_COUNT",45:"COMMENT_COUNT",46:"CC_COUNT",
47:"ARCHIVED",48:"MIN_SLO_TARGET",49:"EFFORT_LABEL",50:"EFFORT_VALUE",51:"MENTION",52:"VOTE",53:"EFFORT_TOTAL_OPEN",54:"EFFORT_TOTAL_COMPLETE",55:"COLLABORATOR",56:"COLLABORATOR_COUNT",57:"TRACKER_ID",58:"ACCESS_LEVEL"},Axa={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},ATb={FIELD_ORDERING_UNSPECIFIED:0,INHERITED:1,CUSTOMIZED:2},BTb={FIELD_STATE_UNSPECIFIED:"FIELD_STATE_UNSPECIFIED",INHERIT:"INHERIT",DISABLED:"DISABLED",ENABLED:"ENABLED"},lva={0:"FIELD_STATE_UNSPECIFIED",1:"INHERIT",
2:"DISABLED",3:"ENABLED"},sva={FIELD_STATE_UNSPECIFIED:0,INHERIT:1,DISABLED:2,ENABLED:3},CTb={UNSPECIFIED_FORMATTING_AUDIENCE:0,INTERNAL_AUDIENCE:1,EXTERNAL_AUDIENCE:2},IC={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},rya={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},Fwa={UNSPECIFIED_FORMATTING_MODE:0,PLAIN:1,MARKDOWN:2,LITERAL:3},yva={0:"IMPLICIT_ACCESS_UNSPECIFIED",1:"ALLOW",2:"DENY"},DTb={IMPLICIT_ACCESS_UNSPECIFIED:0,
ALLOW:1,DENY:2},Bj={ISSUE_ID:"ISSUE_ID",COMPONENT_PATH:"COMPONENT_PATH",TYPE:"TYPE",STATUS:"STATUS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",REPORTER:"REPORTER",ASSIGNEE:"ASSIGNEE",VERIFIER:"VERIFIER",CC:"CC",COLLABORATOR:"COLLABORATOR",CHANGELIST:"CHANGELIST",POSTMORTEM:"POSTMORTEM",BLOCKING_ISSUE_ID:"BLOCKING_ISSUE_ID",BLOCKED_BY_ISSUE_ID:"BLOCKED_BY_ISSUE_ID",CREATED_TIME:"CREATED_TIME",MODIFIED_TIME:"MODIFIED_TIME",RESOLVED_TIME:"RESOLVED_TIME",VERIFIED_TIME:"VERIFIED_TIME",DELETION_TIME:"DELETION_TIME",
TITLE:"TITLE",FOUND_IN_VERSION:"FOUND_IN_VERSION",TARGETED_TO_VERSION:"TARGETED_TO_VERSION",VERIFIED_IN_VERSION:"VERIFIED_IN_VERSION",IN_PROD:"IN_PROD",CANONICAL_ISSUE_ID:"CANONICAL_ISSUE_ID",CUSTOM_FIELD:"CUSTOM_FIELD",POSITION:"POSITION",VOTE_COUNT:"VOTE_COUNT",DUPLICATE_COUNT:"DUPLICATE_COUNT",CC_COUNT:"CC_COUNT",COLLABORATOR_COUNT:"COLLABORATOR_COUNT",MODIFIED_BY:"MODIFIED_BY",LAST_MODIFIER:"LAST_MODIFIER",ARCHIVED:"ARCHIVED",MIN_SLO:"MIN_SLO",ASSIGNMENT_SLO:"ASSIGNMENT_SLO",RESPONSE_SLO:"RESPONSE_SLO",
CLOSURE_SLO:"CLOSURE_SLO",TEAM:"TEAM",ESTIMATE:"ESTIMATE",ESTIMATE_TOTAL_OPEN:"ESTIMATE_TOTAL_OPEN",ESTIMATE_TOTAL_COMPLETE:"ESTIMATE_TOTAL_COMPLETE",ACCESS_LEVEL:"ACCESS_LEVEL"},uqa={1:Bj.ISSUE_ID,2:Bj.COMPONENT_PATH,3:Bj.TYPE,4:Bj.STATUS,5:Bj.PRIORITY,6:Bj.SEVERITY,7:Bj.REPORTER,8:Bj.ASSIGNEE,9:Bj.VERIFIER,10:Bj.CC,43:Bj.COLLABORATOR,11:Bj.CHANGELIST,32:Bj.POSTMORTEM,12:Bj.BLOCKING_ISSUE_ID,13:Bj.BLOCKED_BY_ISSUE_ID,14:Bj.CREATED_TIME,15:Bj.MODIFIED_TIME,16:Bj.RESOLVED_TIME,17:Bj.VERIFIED_TIME,
38:Bj.DELETION_TIME,18:Bj.TITLE,19:Bj.FOUND_IN_VERSION,20:Bj.TARGETED_TO_VERSION,21:Bj.VERIFIED_IN_VERSION,22:Bj.IN_PROD,23:Bj.CANONICAL_ISSUE_ID,24:Bj.CUSTOM_FIELD,25:Bj.POSITION,26:Bj.VOTE_COUNT,27:Bj.DUPLICATE_COUNT,28:Bj.CC_COUNT,44:Bj.COLLABORATOR_COUNT,29:Bj.MODIFIED_BY,30:Bj.LAST_MODIFIER,31:Bj.ARCHIVED,33:Bj.MIN_SLO,35:Bj.ASSIGNMENT_SLO,36:Bj.RESPONSE_SLO,37:Bj.CLOSURE_SLO,39:Bj.TEAM,40:Bj.ESTIMATE,41:Bj.ESTIMATE_TOTAL_OPEN,42:Bj.ESTIMATE_TOTAL_COMPLETE,45:Bj.ACCESS_LEVEL},Jqa={ISSUE_ID:1,
COMPONENT_PATH:2,TYPE:3,STATUS:4,PRIORITY:5,SEVERITY:6,REPORTER:7,ASSIGNEE:8,VERIFIER:9,CC:10,COLLABORATOR:43,CHANGELIST:11,POSTMORTEM:32,BLOCKING_ISSUE_ID:12,BLOCKED_BY_ISSUE_ID:13,CREATED_TIME:14,MODIFIED_TIME:15,RESOLVED_TIME:16,VERIFIED_TIME:17,DELETION_TIME:38,TITLE:18,FOUND_IN_VERSION:19,TARGETED_TO_VERSION:20,VERIFIED_IN_VERSION:21,IN_PROD:22,CANONICAL_ISSUE_ID:23,CUSTOM_FIELD:24,POSITION:25,VOTE_COUNT:26,DUPLICATE_COUNT:27,CC_COUNT:28,COLLABORATOR_COUNT:44,MODIFIED_BY:29,LAST_MODIFIER:30,
ARCHIVED:31,MIN_SLO:33,ASSIGNMENT_SLO:35,RESPONSE_SLO:36,CLOSURE_SLO:37,TEAM:39,ESTIMATE:40,ESTIMATE_TOTAL_OPEN:41,ESTIMATE_TOTAL_COMPLETE:42,ACCESS_LEVEL:45},bxa={ISSUE_RELATION_UNSPECIFIED:0,BLOCKING:1,BLOCKED_BY:2,DUPLICATE:3,CANONICAL:4},JC={ISSUE_RELATIONSHIP_TYPE_UNSPECIFIED:0,CHILD:1,DEPENDENCY:2,LINKED:3},vwa={0:"TYPE_UNSPECIFIED",1:"BUG",2:"FEATURE_REQUEST",3:"CUSTOMER_ISSUE",4:"INTERNAL_CLEANUP",5:"PROCESS",6:"VULNERABILITY",7:"PRIVACY_ISSUE",8:"PROJECT",9:"FEATURE",10:"MILESTONE",11:"EPIC",
12:"STORY",13:"TASK"},Bwa={TYPE_UNSPECIFIED:0,BUG:1,FEATURE_REQUEST:2,CUSTOMER_ISSUE:3,INTERNAL_CLEANUP:4,PROCESS:5,VULNERABILITY:6,PRIVACY_ISSUE:7,PROJECT:8,FEATURE:9,MILESTONE:10,EPIC:11,STORY:12,TASK:13},N$a={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},ETb={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},
bya={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},Xwa={UNKNOWN_SUBSCRIPTION:0,UNSUBSCRIBED:1,SUBSCRIBED_CLOSURE_ONLY:2,SUBSCRIBED_MAJOR_UPDATES:3,SUBSCRIBED_ALL_UPDATES:4},P$a={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},Nvb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},FTb={PII_SEVERITY_UNSPECIFIED:"PII_SEVERITY_UNSPECIFIED",NONE_DETECTED:"NONE_DETECTED",PII:"PII",SPII:"SPII"},Vva={0:"PII_SEVERITY_UNSPECIFIED",
1:"NONE_DETECTED",2:"PII",3:"SPII"},kra={0:"PRINCIPAL_TYPE_UNSPECIFIED",1:"NON_GAIA",2:"USER",3:"GROUP",4:"ALIAS"},GTb={PRIORITY_UNSPECIFIED:"PRIORITY_UNSPECIFIED",P0:"P0",P1:"P1",P2:"P2",P3:"P3",P4:"P4"},wwa={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},Dwa={PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5},HTb={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",UPVOTE:"UPVOTE"},uya={0:"REACTION_TYPE_UNSPECIFIED",1:"UPVOTE"},ITb={REACTION_TYPE_UNSPECIFIED:0,UPVOTE:1},Txa={0:"UNSPECIFIED",
1:"USER_REQUEST",2:"ABUSE",3:"RESTRICTED",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},GRa={REJECTION_REASON_UNSPECIFIED:0,REVERSED:1,SIMILAR:2,NOT_SIMILAR:3,OTHER:4},bAa={0:"UNKNOWN",1:"HOTLIST",2:"BOOKMARK_GROUP",3:"SAVED_SEARCH"},JTb={UNKNOWN:0,HOTLIST:1,BOOKMARK_GROUP:2,SAVED_SEARCH:3},KTb={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},twa={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},Gwa={RETENTION_UNSPECIFIED:0,COMPONENT_DEFAULT:1,
INDEFINITE:2},LTb={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},Pva={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},Rva={UNSPECIFIED_RETENTION:0,BUGANIZER_DEFAULT:1,CUSTOM_PERIOD:2,INDEFINITE_RETENTION:3},xwa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},Ewa={SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5},vqa={0:"SIGNAL_TYPE_UNKNOWN",
1:"NEAR_SLO",2:"MENTIONED",6:"REPLIED_TO_MENTION",7:"NEWLY_BLOCKING",3:"UNBLOCKED",5:"ASSIGNED",4:"NEEDS_REPORTER_INPUT"},Lqa={SIGNAL_TYPE_UNKNOWN:0,NEAR_SLO:1,MENTIONED:2,REPLIED_TO_MENTION:6,NEWLY_BLOCKING:7,UNBLOCKED:3,ASSIGNED:5,NEEDS_REPORTER_INPUT:4},I$a={0:"SIMPLE_VALUE_TYPE_UNSPECIFIED",1:"TEXT",2:"QUOTED_TEXT",3:"YEAR",4:"MONTH",5:"DAY",6:"HOUR",7:"MINUTE",8:"SECOND",9:"RELATIVE_YEAR",10:"RELATIVE_MONTH",15:"RELATIVE_WEEK",11:"RELATIVE_DAY"},Mvb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",
4:"ENORMOUS"},hwa={0:"METRIC_UNSPECIFIED",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},kwa={METRIC_UNSPECIFIED:0,ASSIGNMENT:1,RESPONSE:2,CLOSURE:3},ywa={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},Iwa={SLO_SNOOZE_TYPE_UNSPECIFIED:0,STARTS_ON:1,ASSIGNMENT_ETA:2,RESPONSE_ETA:3,CLOSURE_ETA:4},zxa={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},awa={SLO_SOURCE_UNSPECIFIED:0,USER:1,BUGSCOPE:2},dva={0:"STANDARD_FIELD_UNSPECIFIED",1:"REPORTER",2:"ASSIGNEE",
3:"VERIFIER",4:"CC",5:"TYPE",6:"STATUS",7:"PRIORITY",8:"SEVERITY",9:"CHANGELISTS",10:"PENDING_CHANGELISTS",11:"POSTMORTEMS",12:"FOUND_IN",13:"TARGETED_TO",14:"VERIFIED_IN",15:"IN_PRODUCTION",16:"SLO_STATUS",17:"TEAM",18:"COLLABORATORS"},fva={STANDARD_FIELD_UNSPECIFIED:0,REPORTER:1,ASSIGNEE:2,VERIFIER:3,CC:4,TYPE:5,STATUS:6,PRIORITY:7,SEVERITY:8,CHANGELISTS:9,PENDING_CHANGELISTS:10,POSTMORTEMS:11,FOUND_IN:12,TARGETED_TO:13,VERIFIED_IN:14,IN_PRODUCTION:15,SLO_STATUS:16,TEAM:17,COLLABORATORS:18},xbb=
{0:"STATE_UNSPECIFIED",1:"STATE_DISABLED",2:"STATE_ENABLED"},pm={0:"STATUS_UNSPECIFIED",1:"NEW",2:"ASSIGNED",3:"ACCEPTED",4:"FIXED",5:"VERIFIED",6:"NOT_REPRODUCIBLE",7:"INTENDED_BEHAVIOR",8:"OBSOLETE",9:"INFEASIBLE",10:"DUPLICATE"},Cwa={STATUS_UNSPECIFIED:0,NEW:1,ASSIGNED:2,ACCEPTED:3,FIXED:4,VERIFIED:5,NOT_REPRODUCIBLE:6,INTENDED_BEHAVIOR:7,OBSOLETE:8,INFEASIBLE:9,DUPLICATE:10},Uxa={0:"ACTIVE",1:"DELETED",2:"PURGED"},aqa={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},kva={0:"TYPE_UNSPECIFIED",
1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},qva={TYPE_UNSPECIFIED:0,TEXT:1,DATE:2,ENUM:3,NUMERIC:4,REPEATED_TEXT:5,REPEATED_DATE:6,REPEATED_ENUM:7,REPEATED_NUMERIC:8},oua={0:"UNKNOWN",1:"ISSUE_ID",2:"COMPONENT_PATH",3:"TYPE",4:"STATUS",5:"PRIORITY",6:"SEVERITY",7:"REPORTER",8:"ASSIGNEE",9:"VERIFIER",10:"CC",43:"COLLABORATOR",11:"CHANGELIST",33:"POSTMORTEM",12:"BLOCKING_ISSUE_ID",13:"BLOCKED_BY_ISSUE_ID",14:"CREATED_TIME",15:"MODIFIED_TIME",
16:"RESOLVED_TIME",17:"VERIFIED_TIME",38:"DELETION_TIME",18:"TITLE",19:"FOUND_IN_VERSION",20:"TARGETED_TO_VERSION",21:"VERIFIED_IN_VERSION",22:"IN_PROD",23:"DUPLICATE_OF_ISSUE_ID",24:"CUSTOM_FIELD",25:"POSITION",26:"VOTE_COUNT",27:"DUPLICATE_COUNT",28:"CC_COUNT",44:"COLLABORATOR_COUNT",29:"MODIFIED_BY",30:"LAST_MODIFIER",31:"ARCHIVED",32:"CANONICAL_ISSUE_ID",34:"MIN_SLO",35:"ASSIGNMENT_SLO",36:"RESPONSE_SLO",37:"CLOSURE_SLO",39:"TEAM",40:"ESTIMATE",41:"ESTIMATE_TOTAL_OPEN",42:"ESTIMATE_TOTAL_COMPLETE",
45:"ACCESS_LEVEL"},qua={UNKNOWN:0,ISSUE_ID:1,COMPONENT_PATH:2,TYPE:3,STATUS:4,PRIORITY:5,SEVERITY:6,REPORTER:7,ASSIGNEE:8,VERIFIER:9,CC:10,COLLABORATOR:43,CHANGELIST:11,POSTMORTEM:33,BLOCKING_ISSUE_ID:12,BLOCKED_BY_ISSUE_ID:13,CREATED_TIME:14,MODIFIED_TIME:15,RESOLVED_TIME:16,VERIFIED_TIME:17,DELETION_TIME:38,TITLE:18,FOUND_IN_VERSION:19,TARGETED_TO_VERSION:20,VERIFIED_IN_VERSION:21,IN_PROD:22,DUPLICATE_OF_ISSUE_ID:23,CUSTOM_FIELD:24,POSITION:25,VOTE_COUNT:26,DUPLICATE_COUNT:27,CC_COUNT:28,COLLABORATOR_COUNT:44,
MODIFIED_BY:29,LAST_MODIFIER:30,ARCHIVED:31,CANONICAL_ISSUE_ID:32,MIN_SLO:34,ASSIGNMENT_SLO:35,RESPONSE_SLO:36,CLOSURE_SLO:37,TEAM:39,ESTIMATE:40,ESTIMATE_TOTAL_OPEN:41,ESTIMATE_TOTAL_COMPLETE:42,ACCESS_LEVEL:45},T$a={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},JRa={0:"TYPE_UNSPECIFIED",1:"ISSUE_DEDUPLICATION"},MTb={TYPE_UNSPECIFIED:0,ISSUE_DEDUPLICATION:1},FRa={TYPE_UNSPECIFIED:0,VIEWED:1,ACCEPTED:2,REJECTED:3},Ypa={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},Zpa={UNSPECIFIED:0,
ACTIVE:1,DELETED:2,UNAVAILABLE:3},ybb={0:"USER_GROUP_UNSPECIFIED",1:"USER_GROUP_BUGANIZER_TEAM",2:"USER_GROUP_TRUSTED_TESTER"},K$a={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"},NTb={VIEW_UNSPECIFIED:0,BASIC:1,FULL:2};var sm=function(a){this.internalArray_=m(a)};W(sm,X);var em=function(a){this.internalArray_=m(a)};W(em,X);g=em.prototype;g.getStartTime=function(){return Fi(this,gj,1)};g.setStartTime=function(a){oj(this,gj,1,a)};g.getEndTime=function(){return Fi(this,gj,2)};g.setEndTime=function(a){oj(this,gj,2,a)};g.getTargetTime=function(){return Fi(this,gj,3)};g.setTargetTime=function(a){oj(this,gj,3,a)};g.getObjective=function(){return Fi(this,ll,4)};g.setObjective=function(a){return oj(this,ll,4,a)};g.getBusinessDays=function(){return hi(this,5)};
g.setBusinessDays=function(a){return il(this,5,a)};g.getDayType=function(){return Vi(this,6,0)};g.setDayType=function(a){return bm(this,6,a)};var Im=function(a){this.internalArray_=m(a)};W(Im,X);g=Im.prototype;g.getAssignmentBounds=function(){return Fi(this,em,1)};g.setAssignmentBounds=function(a){oj(this,em,1,a)};g.hasAssignmentBounds=function(){return Zi(this,em,1)};g.getResponseBounds=function(){return Fi(this,em,2)};g.setResponseBounds=function(a){oj(this,em,2,a)};g.hasResponseBounds=function(){return Zi(this,em,2)};g.getClosureBounds=function(){return Fi(this,em,3)};g.setClosureBounds=function(a){oj(this,em,3,a)};
g.hasClosureBounds=function(){return Zi(this,em,3)};var Jm=function(a){this.internalArray_=m(a)};W(Jm,X);Jm.prototype.getSourceIssueIdsList=function(){return Hj(this,1)};Jm.prototype.setSourceIssueIdsList=function(a){return ac(this,1,a,vb)};Jm.repeatedFields_=[1];var KC=function(a){this.internalArray_=m(a)};W(KC,X);KC.prototype.getStatus=function(){return Vi(this,1,0)};KC.prototype.setStatus=function(a){return bm(this,1,a)};KC.prototype.getReason=function(){return Vi(this,2,0)};KC.prototype.setReason=function(a){bm(this,2,a)};var Gm=function(a){this.internalArray_=m(a)};W(Gm,X);Gm.prototype.getRetentionPeriod=function(){return Fi(this,ll,1)};Gm.prototype.setRetentionPeriod=function(a){oj(this,ll,1,a)};Gm.prototype.getScheduledDeletionTime=function(){return Fi(this,gj,2)};Gm.prototype.setScheduledDeletionTime=function(a){oj(this,gj,2,a)};var OTb=function(a){this.internalArray_=m(a)};W(OTb,X);g=OTb.prototype;g.getCustomFieldId=function(){return dj(this,Dl(this,LC,1))};g.setCustomFieldId=function(a){Kl(this,1,LC,wb(a))};g.hasCustomFieldId=function(){return null!=Wm(this,Dl(this,LC,1))};g.getStandardField=function(){return Vi(this,Dl(this,LC,2),0)};g.setStandardField=function(a){Kl(this,2,LC,a)};var LC=[1,2];var ml=function(a){this.internalArray_=m(a)};W(ml,X);g=ml.prototype;g.getEmailAddress=function(){return Hi(this,1)};g.setEmailAddress=function(a){wm(this,1,a)};g.getObfuscatedEmailAddress=function(){return Hi(this,2)};g.setObfuscatedEmailAddress=function(a){wm(this,2,a)};g.getUserGaiaStatus=function(){return Vi(this,3,0)};g.setUserGaiaStatus=function(a){bm(this,3,a)};g.getAliasesList=function(){return ii(this,4)};g.setAliasesList=function(a){yj(this,4,a)};ml.repeatedFields_=[4];var Dj=function(a){this.internalArray_=m(a)};W(Dj,X);var MC=function(a){this.internalArray_=m(a)};W(MC,X);MC.prototype.getAccessLevel=function(){return Vi(this,1,0)};MC.prototype.setAccessLevel=function(a){return bm(this,1,a)};var mya=function(a){this.internalArray_=m(a)};W(mya,X);mya.prototype.getHref=function(){return Hi(this,1)};var nn=function(a){this.internalArray_=m(a)};W(nn,X);nn.prototype.getIssueId=function(){return dj(this,1)};nn.prototype.setIssueId=function(a){return xj(this,1,a)};nn.prototype.getCommentNumber=function(){return hi(this,2)};nn.prototype.setCommentNumber=function(a){return nj(this,2,a)};var cya=function(a){this.internalArray_=m(a)};W(cya,X);var lya=[1,2];var NC=new Map([[1,"New"],[2,"Assigned"],[3,"In Progress (Accepted)"],[4,"Fixed"],[5,"Fixed (Verified)"],[6,"Won't fix (Not reproducible)"],[7,"Won't fix (Intended behavior)"],[8,"Won't fix (Obsolete)"],[9,"Won't fix (Infeasible)"],[10,"Duplicate"],[0,""]]),OC=new Map([[1,"New"],[2,"Assigned"],[3,"In Progress"],[4,"Fixed"],[5,"Verified"],[6,"Can't Repro"],[7,"WAI"],[8,"Obsolete"],[9,"Infeasible"],[10,"Duplicate"],[0,""]]);var PC={},QC=(PC.STATUS_UNSPECIFIED=OC.get(0),PC.NEW=OC.get(1),PC.ASSIGNED=OC.get(2),PC.ACCEPTED=OC.get(3),PC.FIXED=OC.get(4),PC.VERIFIED=OC.get(5),PC.DUPLICATE=OC.get(10),PC.INFEASIBLE=OC.get(9),PC.NOT_REPRODUCIBLE=OC.get(6),PC.OBSOLETE=OC.get(8),PC.INTENDED_BEHAVIOR=OC.get(7),PC),RC={},Mza=(RC.STATUS_UNSPECIFIED=0,RC.NEW=10,RC.ASSIGNED=20,RC.ACCEPTED=30,RC.FIXED=40,RC.VERIFIED=50,RC.DUPLICATE=60,RC.INFEASIBLE=70,RC.NOT_REPRODUCIBLE=80,RC.OBSOLETE=90,RC.INTENDED_BEHAVIOR=100,RC),SC={},PTb=(SC.ASSIGNED=
!0,SC.ACCEPTED=!0,SC.FIXED=!0,SC.VERIFIED=!0,SC.DUPLICATE=!0,SC.INFEASIBLE=!0,SC.NOT_REPRODUCIBLE=!0,SC.OBSOLETE=!0,SC.INTENDED_BEHAVIOR=!0,SC),TC={},Uk=(TC.STATUS_UNSPECIFIED=NC.get(0),TC.NEW=NC.get(1),TC.ASSIGNED=NC.get(2),TC.ACCEPTED=NC.get(3),TC.FIXED=NC.get(4),TC.VERIFIED=NC.get(5),TC.DUPLICATE=NC.get(10),TC.INFEASIBLE=NC.get(9),TC.NOT_REPRODUCIBLE=NC.get(6),TC.OBSOLETE=NC.get(8),TC.INTENDED_BEHAVIOR=NC.get(7),TC),UC={},QTb=(UC.P0="P0",UC.P1="P1",UC.P2="P2",UC.P3="P3",UC.P4="P4",UC.PRIORITY_UNSPECIFIED=
"--",UC),VC={},RTb=(VC.S0="S0",VC.S1="S1",VC.S2="S2",VC.S3="S3",VC.S4="S4",VC.SEVERITY_UNSPECIFIED="--",VC),WC={},STb=(WC.TYPE_UNSPECIFIED="",WC.BUG="Bug",WC.FEATURE_REQUEST="Feature Request",WC.CUSTOMER_ISSUE="Customer Issue",WC.INTERNAL_CLEANUP="Internal Cleanup",WC.PROCESS="Process",WC.VULNERABILITY="Vulnerability",WC.PRIVACY_ISSUE="Privacy Issue",WC.PROJECT="Project",WC.FEATURE="Feature",WC.MILESTONE="Milestone",WC.EPIC="Epic",WC.STORY="Story",WC.TASK="Task",WC),XC={},TTb=(XC.STATUS_UNSPECIFIED=
"issue-status-wont-fix",XC.NEW="issue-status-new",XC.ASSIGNED="issue-status-assigned",XC.ACCEPTED="issue-status-accepted",XC.FIXED="issue-status-fixed",XC.VERIFIED="issue-status-verified",XC.DUPLICATE="issue-status-duplicate",XC.INFEASIBLE="issue-status-wont-fix",XC.NOT_REPRODUCIBLE="issue-status-wont-fix",XC.OBSOLETE="issue-status-wont-fix",XC.INTENDED_BEHAVIOR="issue-status-wont-fix",XC);var Dpa=Object.prototype.hasOwnProperty;var Tvb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"ALIAS:"+a.alias})),UTb={AGGREGATION_TYPE_UNSPECIFIED:"AGGREGATION_TYPE_UNSPECIFIED",SUM:"SUM",MAX:"MAX"};var Bi=function(a){this.internalArray_=m(a)};W(Bi,X);g=Bi.prototype;g.getEmailAddress=function(){return Hi(this,1)};g.setEmailAddress=function(a){qj(this,1,a)};g.getObfuscatedEmailAddress=function(){return Hi(this,2)};g.setObfuscatedEmailAddress=function(a){qj(this,2,a)};g.getUserGaiaStatus=function(){return Vi(this,3,0)};g.setUserGaiaStatus=function(a){rj(this,3,a)};g.getAliasesList=function(){return ii(this,4)};g.setAliasesList=function(a){yj(this,4,a)};Bi.repeatedFields_=[4];var Gi=function(a){this.internalArray_=m(a,0,Gi.messageId)};W(Gi,X);Gi.prototype.getLogoUrl=function(){return Hi(this,1)};Gi.prototype.getTheme=function(){return Vi(this,2,0)};Gi.prototype.setTheme=function(a){return rj(this,2,a)};Gi.messageId="b.Branding";var Lj=function(a){this.internalArray_=m(a,0,Lj.messageId)};W(Lj,X);g=Lj.prototype;g.getTrackerId=function(){return Yi(this,1)};g.setTrackerId=function(a){wj(this,1,a)};g.getComponentId=function(){return Yi(this,2)};g.setComponentId=function(a){return wj(this,2,a)};g.hasComponentId=function(){return Xi(this,2)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return qj(this,3,a)};g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};
Lj.repeatedFields_=[4,8];Lj.messageId="b.Tracker";var eqa={COMMENT_FORMATTING_MODE_UNSPECIFIED:0,PLAIN_FORMATTING_MODE:1,MARKDOWN_FORMATTING_MODE:2,LITERAL_FORMATTING_MODE:3,0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},VTb={},WTb=(VTb[3]="LITERAL_FORMATTING_MODE",VTb[1]="PLAIN_FORMATTING_MODE",VTb[2]="MARKDOWN_FORMATTING_MODE",VTb),XTb=WTb[2],YTb=WTb[1],YC={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:void 0,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",
assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"IMPORTANT",collaboratorPriority:"IMPORTANT",starredPriority:"IMPORTANT",excludeChangesByMe:!0,unsubscribeFromAll:!1,enableV2Prefs:!1},listViewPreferences:{showHotlists:!1,wrapTitles:!1,wrapComponents:!1,showStatusIcons:!1,rtlComponentPath:!1},layoutPreferences:{leftSidebarWidth:220,expandIssueSlo:!1},dateTimePreferences:{calendarFormat:"MMM d, yyyy",timeFormat:"hh:mma",timeZone:"",sloEtaViewAs:"DEFAULT"},themePreferences:{density:"COMFORTABLE"},
homepagePreferences:{resourceType:void 0,resourceId:void 0},keyboardPreferences:{enableAllHotkeys:!0},textDisplayPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1,commentFilterPreferences:{commentFilter:void 0},showInlineImages:!0,needsAttentionPreferences:{selectedSignals:"NEAR_SLO MENTIONED UNBLOCKED NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_BLOCKING ASSIGNED".split(" ")},
missionControlPreferences:{}};var Li=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Li.prototype.isCustomField=function(){return"CUSTOM_FIELD"===this.type};Li.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Li.prototype.toString=function(){return this.toApiUrlParam()};var Pi=function(a,b){this.fieldId=a;this.direction=b};Pi.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+("ASCENDING"===this.direction?"asc":"desc")};Pi.prototype.toString=function(){return this.toApiUrlParam()};var aj=function(a){this.internalArray_=m(a)};W(aj,X);var hj=function(a){this.internalArray_=m(a)};W(hj,X);var Aj=function(a){this.internalArray_=m(a)};W(Aj,X);g=Aj.prototype;g.getType=function(){return Vi(this,1,1)};g.setType=function(a){return rj(this,1,a)};g.hasType=function(){return Ti(this,1)};g.getCustomFieldId=function(){return dj(this,2)};g.setCustomFieldId=function(a){xj(this,2,a)};g.hasCustomFieldId=function(){return cj(this,2)};var uj=function(a){this.internalArray_=m(a)};W(uj,X);uj.prototype.getTimeZone=function(){return Hi(this,5)};uj.prototype.setTimeZone=function(a){return qj(this,5,a)};uj.prototype.hasTimeZone=function(){return Ii(this,5)};var zj=function(a){this.internalArray_=m(a)};W(zj,X);zj.prototype.getColumnList=function(){return Ji(this,Aj,1)};zj.prototype.setColumnList=function(a){return om(this,1,a)};zj.prototype.setColumn=function(a){return rt(this,1,Aj,a)};zj.repeatedFields_=[1];var zqa=function(a){this.internalArray_=m(a)};W(zqa,X);var jqa=function(a){this.internalArray_=m(a)};W(jqa,X);var Cj=function(a){this.internalArray_=m(a)};W(Cj,X);Cj.prototype.getColumn=function(){return Fi(this,Aj,1)};Cj.prototype.setColumn=function(a){return oj(this,Aj,1,a)};var pj=function(a){this.internalArray_=m(a)};W(pj,X);pj.prototype.getColumnList=function(){return Ji(this,Cj,1)};pj.prototype.setColumnList=function(a){return om(this,1,a)};pj.prototype.setColumn=function(a){return rt(this,1,Cj,a)};pj.repeatedFields_=[1];var Wi=function(a){this.internalArray_=m(a)};W(Wi,X);Wi.prototype.getDensity=function(){return Vi(this,1,1)};Wi.prototype.setDensity=function(a){return rj(this,1,a)};var bj=function(a){this.internalArray_=m(a)};W(bj,X);var vj=function(a){this.internalArray_=m(a)};W(vj,X);g=vj.prototype;g.getResourceType=function(){return Vi(this,1,1)};g.setResourceType=function(a){rj(this,1,a)};g.hasResourceType=function(){return Ti(this,1)};g.getResourceId=function(){return Yi(this,2)};g.setResourceId=function(a){wj(this,2,a)};g.hasResourceId=function(){return Xi(this,2)};var nqa=function(a){this.internalArray_=m(a)};W(nqa,X);var jj=function(a){this.internalArray_=m(a)};W(jj,X);jj.prototype.getCollapsedMap=function(){return Zb(this,2,Db)};jj.repeatedFields_=[1];var ij=function(a){this.internalArray_=m(a)};W(ij,X);ij.repeatedFields_=[1];var iqa=function(a){this.internalArray_=m(a)};W(iqa,X);var fj=function(a){this.internalArray_=m(a)};W(fj,X);fj.prototype.getComponentId=function(){return dj(this,1)};fj.prototype.setComponentId=function(a){return xj(this,1,a)};fj.prototype.hasComponentId=function(){return cj(this,1)};var ej=function(a){this.internalArray_=m(a)};W(ej,X);var Kqa=function(a,b){om(a,1,b)};ej.repeatedFields_=[1];var $i=function(a){this.internalArray_=m(a)};W($i,X);var lj=function(a){this.internalArray_=m(a,500)};W(lj,X);g=lj.prototype;g.getDisplayColumns=function(){return Fi(this,zj,4)};g.setDisplayColumns=function(a){oj(this,zj,4,a)};g.getSortColumns=function(){return Fi(this,pj,6)};g.getLayoutPreferences=function(){return Fi(this,zqa,10)};g.getDateTimePreferences=function(){return Fi(this,uj,11)};g.getHomepagePreferences=function(){return Fi(this,vj,13)};g.getCollapsedMap=function(){return Zb(this,27,Db)};g.getShowInlineImages=function(){return Ri(this,29)};var Gj=function(a){this.internalArray_=m(a)};W(Gj,X);g=Gj.prototype;g.getAnalyticsId=function(){return Hi(this,1)};g.getAppName=function(){return Hi(this,2)};g.getDocumentationBaseUrl=function(){return Hi(this,3)};g.getEnvironmentType=function(){return Hi(this,5)};g.getMaxAccurateSearchResults=function(){return hi(this,6)};g.getOnePickUrl=function(){return Hi(this,7)};g.getOnePickSecretToken=function(){return Hi(this,12)};g.getCommentNumberLimit=function(){return hi(this,8)};
g.getCreateComponentRedirectDelay=function(){return El(this,9)};g.getCreateRestrictedSubresourcesComponentWhitelist=function(){var a=Hj(this,13,void 0,2);kb(a);return a[void 0]};Gj.repeatedFields_=[10,13,18];var Fj=function(a){this.internalArray_=m(a)};W(Fj,X);g=Fj.prototype;g.getEmail=function(){return Hi(this,1)};g.setEmail=function(a){return qj(this,1,a)};g.hasEmail=function(){return Ii(this,1)};g.getSessionIdentifier=function(){return Hi(this,3)};g.getUserTypeLabel=function(){return Hi(this,5)};var Jj=function(a){this.internalArray_=m(a,0,Jj.messageId)};W(Jj,X);Jj.prototype.getId=function(){return Hi(this,1)};Jj.prototype.setId=function(a){return qj(this,1,a)};Jj.repeatedFields_=[2,4];Jj.messageId="b.TimeZoneData";var Kj=function(a){this.internalArray_=m(a,0,Kj.messageId)};W(Kj,X);Kj.prototype.getMessage=function(){return Hi(this,1)};Kj.prototype.setMessage=function(a){qj(this,1,a)};Kj.prototype.getTags=function(a){return xt(this,4,a)};Kj.repeatedFields_=[4];Kj.messageId="b.Announcement";var Ij=function(a){this.internalArray_=m(a)};W(Ij,X);Ij.prototype.getAnnouncement=function(){return Fi(this,Kj,2)};Ij.repeatedFields_=[1];var ZTb=function(a){this.internalArray_=m(a)};W(ZTb,X);var Pqa=function(a){this.internalArray_=m(a)};W(Pqa,X);var Qqa=function(a){this.internalArray_=m(a)};W(Qqa,X);g=Qqa.prototype;g.getUser=function(){return Fi(this,Fj,1)};g.setUser=function(a){oj(this,Fj,1,a)};g.hasUser=function(){return Zi(this,Fj,1)};g.getConfig=function(){return Fi(this,Gj,2)};g.getXsrfToken=function(){return Hi(this,3)};g.getCspNonce=function(){return Hi(this,8)};g.getFrontendAccessMode=function(){return Hi(this,4)};g.getMustAcknowledgeTerms=function(){return Ri(this,5)};g.getShowNewFeaturesDialog=function(){return Ri(this,6)};
g.getUserPreferences=function(){return Fi(this,lj,7)};g.getAppBaseHref=function(){return Hi(this,10)};g.getTracker=function(){return Fi(this,Lj,11)};g.getPassiveLoginIframeUrl=function(){return Fi(this,Pqa,12)};var Rqa=window,Nj;var Us=function(){this.session=Mj();this.tracker=this.session.tracker||void 0};Us.prototype.getAppBaseHref=function(){return this.session.appBaseHref};Us.prototype.getFrontendAccessMode=function(){return this.session.frontendAccessMode||"INTERNAL"};Us.prototype.isExternalSession=function(){return"INTERNAL"!==this.getFrontendAccessMode()};Us.prototype.isInternalSession=function(){return"INTERNAL"===this.getFrontendAccessMode()};
var $Tb=function(a){return"PARTNER"===a.getFrontendAccessMode()},ZC=function(a){return"PUBLIC"===a.getFrontendAccessMode()};Us.prototype.isNonPublicSession=function(){return"PUBLIC"!==this.getFrontendAccessMode()};var $C=function(a,b){return!!a.session.config.enabledFlags.get(b)};g=Us.prototype;g.isAnonymous=function(){return this.session.user.anonymous};g.getUserEmail=function(){return this.session.user.email||""};g.getSessionIdentifier=function(){return this.session.user.sessionIdentifier||"0"};
g.getTracker=function(){return this.tracker};g.getPassiveLoginIframeUrl=function(){return this.session.passiveLoginIframeUrl};g.getMustAcknowledgeTerms=function(){return this.session.mustAcknowledgeTerms};g.getShowNewFeaturesDialog=function(){return this.session.showNewFeaturesDialog};g.getEnvironmentType=function(){return this.session.config.environmentType||"QA"};
var rRa=function(a){a=a.getEnvironmentType();switch(a){case "QA":case "DEV":return!1;case "NIGHTLY":case "PROD":return!0;default:$h(a,"Unknown environment type.")}};g=Us.prototype;g.getAppBaseUrl=function(a){return(void 0===a?0:a)||!this.isInternalSession()?rRa(this)?"https://issuetracker.google.com/":"https://issuetracker.sandbox.google.com/":rRa(this)?"http://b/":"http://b-qa/"};g.getOnePickUrl=function(){return this.session.config.onePickUrl};g.getAppName=function(){return this.session.config.appName};
g.getCommentNumberLimit=function(){return this.session.config.commentNumberLimit};g.getCreateComponentRedirectDelay=function(){return this.session.config.createComponentRedirectDelay};g.getDocumentationBaseUrl=function(){return this.session.config.documentationBaseUrl};g.getMaxAccurateSearchResults=function(){return this.session.config.maxAccurateSearchResults};g.getAnalyticsId=function(){return this.session.config.analyticsId};g.getUserPreferences=function(){return this.session.userPreferences};
g.getXsrfToken=function(){return this.session.xsrfToken};g.getOnePickSecretToken=function(){return this.session.config.onePickSecretToken};g.getCreateRestrictedSubresourcesComponentWhitelist=function(){return this.session.config.createRestrictedSubresourcesComponentWhitelist};g.getCspNonce=function(){return this.session.cspNonce};g.getAnnouncement=function(){return this.session.preload.announcement};g.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};
Us.\u0275fac=function(a){return new (a||Us)};Us.\u0275prov=$c({token:Us,factory:Us.\u0275fac,providedIn:"root"});var aD=function(){};aD.\u0275fac=function(a){return new (a||aD)};aD.\u0275mod=qd({type:aD});aD.\u0275inj=ad({imports:[Sv,GB]});var aUb=function(a,b){return[a,b]},bD=function(){this.size=this.name=""};bD.prototype.ngOnInit=function(){};bD.\u0275fac=function(a){return new (a||bD)};
bD.\u0275cmp=od({type:bD,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},decls:1,vars:5,consts:[[3,"svgIcon","ngClass"]],template:function(a,b){a&1&&G(0,"mat-icon",0);a&2&&C("svgIcon",b.name)("ngClass",pg(2,aUb,b.name,b.size))},dependencies:[Cv,qA],styles:['[_nghost-%COMP%]{display:inline-block;line-height:0;vertical-align:middle}.hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]::before{background:none;border-radius:50%;bottom:-3px;box-sizing:border-box;content:"";display:block;left:-3px;opacity:0;position:absolute;right:-3px;top:-3px;z-index:-1}.hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]:hover::before, .hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]:focus::before{background-color:#dadce0;background-color:var(--c300);opacity:1}[_nghost-%COMP%]   .mat-icon[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   .small[_ngcontent-%COMP%]{height:18px;width:18px}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]{height:24px;width:24px}'],changeDetection:0});var bUb=new Map([["BUG","Unintended behavior"],["FEATURE_REQUEST","Request for new functionality"],["CUSTOMER_ISSUE","Issue affecting a 3rd party"],["INTERNAL_CLEANUP","Maintenance work"],["PROCESS","Miscellaneous non-feature work"],["VULNERABILITY","A security concern"],["PRIVACY_ISSUE","A privacy concern"],["PROJECT","Goal-driven effort"],["FEATURE","A collection of work"],["MILESTONE","An important achievement"],["EPIC","A large collection of work"],["STORY","A small collection of work"],["TASK",
"A small unit of work"],["TYPE_UNSPECIFIED","Unspecified"]]),cUb=["P0","P1","P2","P3","P4"],dUb="NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE".split(" "),eUb="BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),fUb=["S0","S1","S2","S3","S4"],gUb=new Map([["PRIORITY_UNSPECIFIED","(Unspecified Priority)"],["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4",
"P4"]]),hUb=new Map([["TYPE_UNSPECIFIED","(Unspecified Issue Type)"],["BUG","Bug"],["FEATURE_REQUEST","Feature Request"],["CUSTOMER_ISSUE","Customer Issue"],["INTERNAL_CLEANUP","Internal Cleanup"],["PROCESS","Process"],["VULNERABILITY","Vulnerability"],["PRIVACY_ISSUE","Privacy Issue"],["PROJECT","Project"],["FEATURE","Feature"],["MILESTONE","Milestone"],["EPIC","Epic"],["STORY","Story"],["TASK","Task"]]),iUb=new Set("PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" ")),jUb=eUb.map(function(a){return{value:a,
displayText:wpa(a),altText:bUb.get(a)}}),cD=function(){this.priorities=cUb;this.severities=fUb;this.editIssueTypes=eUb;this.editIssueTypeChoices=jUb;this.issueTypesDisplayNames=hUb;this.issueTypesShortDescriptions=bUb;this.issuePrioritiesDisplayNames=gUb;this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}]};cD.\u0275fac=function(a){return new (a||cD)};cD.\u0275prov=$c({token:cD,factory:cD.\u0275fac,providedIn:"root"});var dD=function(){this._inset=this._vertical=!1};Qh.Object.defineProperties(dD.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=ah(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=ah(a)}}});dD.\u0275fac=function(a){return new (a||dD)};
dD.\u0275cmp=od({type:dD,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(Nf("aria-orientation",b.vertical?"vertical":"horizontal"),Xf("mat-divider-vertical",b.vertical)("mat-divider-horizontal",!b.vertical)("mat-divider-inset",b.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],
encapsulation:2,changeDetection:0});var eD=function(a,b){this.constants=a;this.activeSession=b;this.STATUS_JS_FULL_TEXT=Uk;this.ISSUE_TYPES=eUb;this.STATUSES=dUb;this.SEVERITIES_VALUES=fUb;this.PRIORITIES_VALUES=cUb;this.enableBulkEstimatedEffortOption=!1;this.onBulkEdit=new Yu;this.onQuickBulkEdit=new Yu;this.onBulkEditIssueRelation=new Yu;this.onBulkMarkIssueRead=new Yu;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditUi=$C(this.activeSession,"enableBulkEditUi")};eD.prototype.bulkEdit=function(a){this.onBulkEdit.emit(a)};
eD.prototype.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};eD.prototype.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:void 0===b?!0:b})};eD.prototype.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};eD.\u0275fac=function(a){return new (a||eD)(z(cD),z(Us))};
eD.\u0275cmp=od({type:eD,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt",enableBulkEstimatedEffortOption:"enableBulkEstimatedEffortOption"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},decls:92,vars:16,consts:[["mat-button","","class","gmat-button medium",3,"disabled","matMenuTriggerFor",4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"disabled",
"click"],["editMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click",4,"ngIf"],["prioritySubmenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["severitySubmenu","matMenu"],["statusSubmenu","matMenu"],["typeSubmenu","matMenu"],["mat-menu-item","",3,"matTooltip","click",4,"ngFor","ngForOf"],["ArchiveSubmenu","matMenu"],["inProdSubmenu","matMenu"],["linkMenu","matMenu"],["ccMenu","matMenu"],["mat-button","",1,"gmat-button",
"medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["mat-menu-item","",3,"matTooltip","click"]],template:function(a,b){a&1&&(D(0,"b-button-group"),P(1,Sqa,4,2,"button",0),D(2,"button",1),L("click",function(){return b.bulkMarkIssueRead()}),Q(3),F(),P(4,Tqa,4,2,"button",0),P(5,Uqa,4,2,"button",0),F(),D(6,"mat-menu",null,2)(8,"button",3),L("click",function(){return b.bulkEdit("ASSIGNEE")}),Q(9,"Assignee"),F(),D(10,"button",3),L("click",function(){return b.bulkEdit("COMPONENT")}),
Q(11,"Component"),F(),D(12,"button",4),Q(13,"Priority"),F(),D(14,"button",4),Q(15,"Severity"),F(),D(16,"button",4),Q(17,"Status"),F(),D(18,"button",4),Q(19,"Type"),F(),D(20,"button",3),L("click",function(){return b.bulkEdit("VERIFIER")}),Q(21,"Verifier"),F(),D(22,"button",3),L("click",function(){return b.bulkEdit("REPORTER")}),Q(23,"Reporter"),F(),D(24,"button",3),L("click",function(){return b.bulkEdit("CHANGELIST")}),Q(25,"Changelist"),F(),D(26,"button",3),L("click",function(){return b.bulkEdit("CUSTOM_FIELDS")}),
Q(27,"Custom Fields"),F(),D(28,"button",4),Q(29," Archival state "),F(),D(30,"button",3),L("click",function(){return b.bulkEdit("FOUND_IN")}),Q(31,"Found In"),F(),D(32,"button",3),L("click",function(){return b.bulkEdit("SLO_START_TIME")}),Q(33,"SLO Start Time"),F(),P(34,Vqa,2,0,"button",5),D(35,"button",3),L("click",function(){return b.bulkEdit("VERIFIED_IN")}),Q(36,"Verified In"),F(),D(37,"button",3),L("click",function(){return b.bulkEdit("TARGETED_TO")}),Q(38,"Targeted To"),F(),D(39,"button",4),
Q(40,"In Prod"),F(),G(41,"mat-divider"),D(42,"button",3),L("click",function(){return b.bulkEdit("COMMENT")}),Q(43,"Add Comment"),F()(),D(44,"mat-menu",null,6),P(46,Wqa,2,1,"button",7),F(),D(47,"mat-menu",null,8),P(49,Xqa,2,1,"button",7),F(),D(50,"mat-menu",null,9),P(52,Yqa,2,1,"button",7),F(),D(53,"mat-menu",null,10),P(55,Zqa,2,2,"button",11),F(),D(56,"mat-menu",null,12)(58,"button",3),L("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!0)}),Q(59,"Archive"),F(),D(60,"button",3),L("click",function(){return b.quickBulkEdit("IS_ARCHIVED",
!1)}),Q(61,"Unarchive"),F()(),D(62,"mat-menu",null,13)(64,"button",3),L("click",function(){return b.quickBulkEdit("IN_PROD",!0)}),Q(65,"In Prod"),F(),D(66,"button",3),L("click",function(){return b.quickBulkEdit("IN_PROD",!1)}),Q(67,"Not in Prod"),F()(),D(68,"mat-menu",null,14)(70,"button",3),L("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!0)}),Q(71,"Mark as Blocked By"),F(),D(72,"button",3),L("click",function(){return b.bulkEditIssueRelation("BLOCKING",!0)}),Q(73,"Mark as Blocking"),
F(),D(74,"button",3),L("click",function(){return b.bulkEditIssueRelation("PARENT",!0)}),Q(75,"Add Parent"),F(),D(76,"button",3),L("click",function(){return b.bulkEditIssueRelation("DUPLICATE")}),Q(77,"Duplicate"),F(),D(78,"button",3),L("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!1)}),Q(79,"Unmark as Blocked By"),F(),D(80,"button",3),L("click",function(){return b.bulkEditIssueRelation("BLOCKING",!1)}),Q(81,"Unmark as Blocking"),F(),D(82,"button",3),L("click",function(){return b.bulkEditIssueRelation("PARENT",
!1)}),Q(83,"Remove Parent"),F()(),D(84,"mat-menu",null,15)(86,"button",3),L("click",function(){return b.quickBulkEdit("CC",!0)}),Q(87,"CC me"),F(),D(88,"button",3),L("click",function(){return b.quickBulkEdit("CC",!1)}),Q(89,"Un-CC me"),F(),D(90,"button",3),L("click",function(){return b.bulkEdit("CC")}),Q(91,"Edit CC"),F()());if(a&2){var c=N(45),d=N(48),e=N(51),f=N(54),h=N(57),k=N(63);w(1);C("ngIf",b.enableBulkEditUi);w(1);C("disabled",b.isAnonymous);w(1);S(" ",b.readStatePrompt," ");w(1);C("ngIf",
b.enableBulkEditUi);w(1);C("ngIf",b.enableBulkEditUi);w(7);C("matMenuTriggerFor",c);w(2);C("matMenuTriggerFor",d);w(2);C("matMenuTriggerFor",e);w(2);C("matMenuTriggerFor",f);w(10);C("matMenuTriggerFor",h);w(6);C("ngIf",b.enableBulkEstimatedEffortOption);w(5);C("matMenuTriggerFor",k);w(7);C("ngForOf",b.PRIORITIES_VALUES);w(3);C("ngForOf",b.SEVERITIES_VALUES);w(3);C("ngForOf",b.STATUSES);w(3);C("ngForOf",b.ISSUE_TYPES)}},dependencies:[AB,yB,zB,Dv,Ev,bD,HC,Ez,dD,FB],encapsulation:2,changeDetection:0});var fD=function(a){this.activeSession=a;this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new Yu;this.flagAsSpamClicked=new Yu;this.isAnonymous=this.activeSession.isAnonymous()};fD.\u0275fac=function(a){return new (a||fD)(z(Us))};
fD.\u0275cmp=od({type:fD,selectors:[["b-app-bar-more-menu"]],inputs:{showExportCsv:"showExportCsv",showFlagIssuesAsSpam:"showFlagIssuesAsSpam"},outputs:{exportCsvClicked:"exportCsvClicked",flagAsSpamClicked:"flagAsSpamClicked"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["moreMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&
P(0,bra,9,4,"ng-container",0);a&2&&C("ngIf",b.showExportCsv||b.showFlagIssuesAsSpam)},dependencies:[AB,yB,zB,Ev,bD,Ez],encapsulation:2,changeDetection:0});var gD=function(){};gD.\u0275fac=function(a){return new (a||gD)};gD.\u0275mod=qd({type:gD});gD.\u0275inj=ad({imports:[aD]});var hD=function(){};hD.\u0275fac=function(a){return new (a||hD)};hD.\u0275mod=qd({type:hD});hD.\u0275inj=ad({imports:[aD]});var iD=function(){};iD.\u0275fac=function(a){return new (a||iD)};iD.\u0275mod=qd({type:iD});iD.\u0275inj=ad({imports:[Ty,Ty]});var jD=function(){};jD.\u0275fac=function(a){return new (a||jD)};jD.\u0275mod=qd({type:jD});jD.\u0275inj=ad({imports:[BB,aD,hD,gD,SB,iD,FC]});var kD=function(a,b,c){var d=this;this.activeSession=a;this.connectionChecker=b;this.ssoInterceptorState=c;this.notifyUserAndWaitForGoodConnection$=new B.Observable(function(e){d.ssoInterceptorState.showRefreshSso$.next(!0);var f=d.watchForRestoredConnection$.subscribe(e);d.watchForRestoredConnection$.subscribe(function(){d.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){f.unsubscribe()}});this.watchForRestoredConnection$=(0,B.fromEvent)(window,"focus").pipe(zf(function(){return d.connectionChecker.ok$}),
cf(function(e){return e}),nf(),A(function(){}),vf())};kD.prototype.intercept=function(a,b){return $C(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?kUb(this,b,a):b.handle(a)};
var kUb=function(a,b,c){return new B.Observable(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){lUb(a,b,c,h).pipe(Af(f)).subscribe(d)}}),f=new B.ReplaySubject(1);return function(){f.next();e.unsubscribe()}})},lUb=function(a,b,c,d){return 403===d.status||404===d.status||429===d.status?(0,B.throwError)(d):a.connectionChecker.ok$.pipe(zf(function(e){return e?(0,B.throwError)(d):a.notifyUserAndWaitForGoodConnection$.pipe(zf(function(){return b.handle(c)}))}))};
kD.\u0275fac=function(a){return new (a||kD)(n(Us),n(lD),n(mD))};kD.\u0275prov=$c({token:kD,factory:kD.\u0275fac,providedIn:"root"});var mD=function(){this.showRefreshSso$=new B.BehaviorSubject(!1)};mD.\u0275fac=function(a){return new (a||mD)};mD.\u0275prov=$c({token:mD,factory:mD.\u0275fac,providedIn:"root"});
var lD=function(a){var b=this;this.ngZone=a;this.ok$=new B.Observable(function(c){var d=go("action/yes",function(){b.ngZone.run(function(){d.isSuccess()?c.next("yes"===d.getResponseText()):c.next(!1);c.complete()})});return function(){d.dispose()}})};lD.\u0275fac=function(a){return new (a||lD)(n(Df))};lD.\u0275prov=$c({token:lD,factory:lD.\u0275fac,providedIn:"root"});var mUb={provide:qx,useClass:kD,multi:!0};var nUb=function(a,b){return[a,b]},oUb=[[["b-callout-body"]],[["b-callout-actions"]]],nD=function(){this.messageType="info";this.format="default"};nD.prototype.getIconName=function(){if(null!=this.iconOverride)return this.iconOverride;switch(this.messageType){case "caution":return"warning";case "success":return"success";case "error":return"alert";default:return"info"}};nD.\u0275fac=function(a){return new (a||nD)};
nD.\u0275cmp=od({type:nD,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&Yf(pg(2,nUb,b.messageType,b.format).join(" "))},inputs:{messageType:"messageType",format:"format",iconOverride:"iconOverride"},ngContentSelectors:["b-callout-body","b-callout-actions"],decls:6,vars:1,consts:[[1,"callout"],[3,"svgIcon"],["role","alert",1,"content"],[1,"actions"]],template:function(a,b){a&1&&(eg(oUb),D(0,"div",0),G(1,"mat-icon",1),D(2,"div",2),fg(3),F(),D(4,"div",3),fg(5,1),F()());a&2&&(w(1),
C("svgIcon",b.getIconName()))},dependencies:[qA],styles:["[_nghost-%COMP%]{display:block;border-radius:8px;color:#3c4043;color:var(--c800);padding:4px}[_nghost-%COMP%]     .mat-button{min-height:28px;line-height:28px;padding:0px 8px}.app[_nghost-%COMP%]{border-radius:0;padding-left:24px}.app[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:0;margin-right:10px}.content[_ngcontent-%COMP%]{flex-grow:1}mat-icon[_ngcontent-%COMP%]{margin-left:8px;margin-right:4px}.callout[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:36px}.info[_nghost-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50)}.info[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.info[_nghost-%COMP%]    .mat-button, .info[_nghost-%COMP%]    .mat-stroked-button, .info[_nghost-%COMP%]    .mat-icon-button{color:#1a73e8;color:var(--link)}.info[_nghost-%COMP%]    .mat-flat-button, .info[_nghost-%COMP%]    .mat-raised-button{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse)}.archived[_nghost-%COMP%], .caution[_nghost-%COMP%]{background-color:#feefc3;background-color:var(--warn-c50);border-color:#fbbc04;border-color:var(--warn-gfx-muted)}.archived[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%], .caution[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx)}.archived[_nghost-%COMP%]    .mat-button, .archived[_nghost-%COMP%]    .mat-stroked-button, .archived[_nghost-%COMP%]    .mat-icon-button, .caution[_nghost-%COMP%]    .mat-button, .caution[_nghost-%COMP%]    .mat-stroked-button, .caution[_nghost-%COMP%]    .mat-icon-button{color:rgba(0,0,0,.7);color:var(--text-warn)}.archived[_nghost-%COMP%]    .mat-flat-button, .archived[_nghost-%COMP%]    .mat-raised-button, .caution[_nghost-%COMP%]    .mat-flat-button, .caution[_nghost-%COMP%]    .mat-raised-button{background-color:#e37400;background-color:var(--warn-gfx);color:#fff;color:var(--text-inverse)}.error[_nghost-%COMP%]{background-color:#fef4f3;background-color:var(--bad-bg-pale);border-color:#f6aea9;border-color:var(--bad-gfx-muted)}.error[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-gfx)}.error[_nghost-%COMP%]    .mat-button, .error[_nghost-%COMP%]    .mat-stroked-button, .error[_nghost-%COMP%]    .mat-icon-button{color:#c5221f;color:var(--bad-link)}.error[_nghost-%COMP%]    .mat-flat-button, .error[_nghost-%COMP%]    .mat-raised-button{background-color:#a50e0e;background-color:var(--bad-bg-inverse);color:#fff;color:var(--text-inverse)}.success[_nghost-%COMP%]{background-color:#eafaef;background-color:var(--good-bg-pale);border-color:#1e8e3e;border-color:var(--good-gfx)}.success[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1e8e3e;color:var(--good-gfx)}.success[_nghost-%COMP%]    .mat-button, .success[_nghost-%COMP%]    .mat-stroked-button, .success[_nghost-%COMP%]    .mat-icon-button{color:#1e8e3e;color:var(--good-link)}.success[_nghost-%COMP%]    .mat-flat-button, .success[_nghost-%COMP%]    .mat-raised-button{background-color:#34a853;background-color:var(--good);color:#fff;color:var(--text-inverse)}/*# sourceMappingURL=callout.css.map */"]});
var oD=function(){};oD.\u0275fac=function(a){return new (a||oD)};oD.\u0275dir=sd({type:oD,selectors:[["b-callout-body"],["b-callout-actions"]]});var pD=function(a,b){this.activeSession=a;this.isAnonymous=this.activeSession.isAnonymous();this.showRefreshSsoMessage$=b.showRefreshSso$};pD.\u0275fac=function(a){return new (a||pD)(z(Us),z(mD))};
pD.\u0275cmp=od({type:pD,selectors:[["b-sso-expired-callout-outlet"]],decls:2,vars:3,consts:[["format","app",3,"messageType",4,"ngIf"],["format","app",3,"messageType"],[4,"ngIf","ngIfElse"],["signedInMessage",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(P(0,hra,7,4,"b-callout",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.showRefreshSsoMessage$))},dependencies:[Ev,nD,oD,Ez,Kv],encapsulation:2,changeDetection:0});var ira=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var pUb=Symbol("Rb"),qUb=Symbol("Sb"),qD=Symbol("Tb"),rD=function(){};rD.prototype.schedule=function(a,b){b=void 0===b?0:b;var c=Rj(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[qD]=!0;return}c.resolve(e);d[qD]=!0},b);d[pUb]=b;d[qUb]=c.reject;d[qD]=!1;return c.promise};rD.prototype.cancel=function(a){var b=a[pUb];if(null==b||a[qD])return!1;clearTimeout(b);var c;null==(c=a[qUb])||c.call(a,Error("Ub"));return a[qD]=!0};rD.\u0275fac=function(a){return new (a||rD)};
rD.\u0275prov=$c({token:rD,factory:rD.\u0275fac,providedIn:"root"});var sD=function(a){this.timeout=a};sD.prototype.adapt=function(a){return new rUb(this.timeout,a)};sD.\u0275fac=function(a){return new (a||sD)(n(rD))};sD.\u0275prov=$c({token:sD,factory:sD.\u0275fac,providedIn:"root"});var rUb=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
rUb.prototype.get=function(a){var b=Rj(),c=this.batchedInputs[this.batchedInputs.length-1],d=this.batchedDeferreds[this.batchedDeferreds.length-1];100>c.length?(c.push(a),d.push(b)):(this.batchedInputs.push([a]),this.batchedDeferreds.push([b]));this.isBatchScheduled||sUb(this);return b.promise};
var sUb=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={batchedDeferred:b.batchedDeferred},c++){var d=a.batchedInputs[c];b.batchedDeferred=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.batchedDeferred.length;h++)e.batchedDeferred[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=l(e.batchedDeferred),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=
[[]];a.isBatchScheduled=!1})};var tD=function(){},uD=function(){};var tUb=function(a){return"action/issues/"+a+"/statusUpdate"},ys={COMPONENT_CREATE:"/components/new",HOTLIST_SEARCH:function(a){return"/issues?q=hotlistid:"+a},HOTLIST_VIEW:function(a){return"/hotlists/"+(void 0===a?"":a)},ISSUE:function(a){return"/issues/"+a},ISSUE_LIST:"/issues",ISSUE_CREATE:"/issues/new"},uUb={ISSUE_ID:"issueId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId"};var jra=function(a){this.internalArray_=m(a)};W(jra,X);var vUb=function(a){this.internalArray_=m(a,0,vUb.messageId)};W(vUb,X);vUb.messageId="b.PrincipalTypeInfoBatchResponse";var vD=function(a,b){this.principalResources=a;this.principalTypeGetter=b.adapt(wUb(this,!1));this.principalTypeWithDetailGetter=b.adapt(wUb(this,!0))},wUb=function(a,b){return function(c){return xUb(a.principalResources,c,b).then(function(d){return nra(c,d)})}};vD.prototype.get=function(a){return wD(this,a,!1)};var wD=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(function(d){return null!=d?d:wra()})};
vD.\u0275fac=function(a){return new (a||vD)(n(xD),n(sD))};vD.\u0275prov=$c({token:vD,factory:vD.\u0275fac,providedIn:"root"});var xD=function(a){this.executor=a},xUb=function(a,b,c){var d={};d.email=Tj(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:vUb}).then(mra).then(function(e){for(var f={},h=l(b),k=h.next();!k.done;k=h.next()){k=k.value;var q=void 0;f[k]=null!=(q=e[k])?q:wra()}return f})};
xD.\u0275fac=function(a){return new (a||xD)(n(uD))};xD.\u0275prov=$c({token:xD,factory:xD.\u0275fac,providedIn:"root"});var yD=function(a,b){this.cdr=a;this.zone=b;this.destroyed=!1};yD.prototype.ngOnDestroy=function(){this.destroyed=!0};yD.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};yD.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};yD.\u0275fac=function(a){return new (a||yD)(n(xv),n(Df))};yD.\u0275prov=$c({token:yD,factory:yD.\u0275fac});var zD=function(a,b,c){var d=this;this.session=a;this.principalTypes=b;this.cdr=c;this.showHiringBanner=!1;$C(this.session,"weAreHiring")&&wD(this.principalTypes,this.session.getUserEmail(),!0).then(function(e){d.showHiringBanner="UNRESTRICTED_GOOGLER"===e.detailedUserType;d.cdr.detectChanges()}).catch(function(){})};zD.\u0275fac=function(a){return new (a||zD)(z(Us),z(vD),z(yD,2))};
zD.\u0275cmp=od({type:zD,selectors:[["b-hiring-banner"]],features:[lg([yD])],decls:1,vars:1,consts:[["class","hiring-banner","title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",4,"ngIf"],["title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",1,"hiring-banner"]],template:function(a,b){a&1&&P(0,xra,2,0,"a",0);a&2&&C("ngIf",b.showHiringBanner)},dependencies:[Ev],styles:[".hiring-banner[_ngcontent-%COMP%]{background:#a02160;color:#fff!important;display:block;font-size:.6875rem;left:50px;overflow:hidden;padding-bottom:3px;position:absolute;text-align:center;top:-76px;-webkit-transform:rotate(-45deg) translate(-100%);transform:rotate(-45deg) translate(-100%);-webkit-transform-origin:0 0;transform-origin:0 0;width:10em;z-index:1000}"],
changeDetection:0});var AD=function(){};AD.\u0275fac=function(a){return new (a||AD)};AD.\u0275mod=qd({type:AD});AD.\u0275inj=ad({imports:[aD]});var Uj=function(a,b){this.char=a;this.modifiers=b};var yUb={category:"Edit Issue Page",keys:[Vj("r")],displayAs:"Shift+r",description:"Refresh"},zUb={category:"Issue List",keys:["u",Vj("r")],displayAs:"u / Shift+r",description:"Refresh search results"},BD={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[Vj("a")],displayAs:"Shift+a",description:"Assign issue to the default assignee for this component"},CHANGE_ASSIGNEE:{category:"Edit Issue Page",keys:["a"],displayAs:"a",description:"Change assignee"},CHANGE_ISSUE_PRIORITY:{category:"Edit Issue Page",
keys:[Wj("p","0"),Wj("p","1"),Wj("p","2"),Wj("p","3"),Wj("p","4")],displayAs:"p <n>",description:"Mark issue as priority [0-4]"},COPY_ISSUE_EMAIL_ADDRESS:{category:"Issue Id Picker",keys:["e"],displayAs:"i - e",description:"Copy issue email address",allowIn:["input"]},COPY_ISSUE_ID:{category:"Issue Id Picker",keys:["d"],displayAs:"i - d",description:"Copy issue ID",allowIn:["input"]},COPY_ISSUE_SHORTLINK:{category:"Issue Id Picker",keys:["l"],displayAs:"i - l",description:"Copy issue shortlink",allowIn:["input"]},
COPY_ISSUE_TITLE:{category:"Issue Id Picker",keys:["t"],displayAs:"i - t",description:"Copy issue url and title",allowIn:["input"]},COPY_ISSUE_TODO:{category:"Issue Id Picker",keys:["o"],displayAs:"i - o",description:"Copy issue TODO comment",allowIn:["input"]},COPY_ISSUE_URL:{category:"Issue Id Picker",keys:["u"],displayAs:"i - u",description:"Copy issue url",allowIn:["input"]},FOCUS_COMMENT_BOX:{category:"Edit Issue Page",keys:["r"],displayAs:"r",description:"Focus the comment box"},GO_TO_NEXT_ISSUE:{category:"Edit Issue Page",
keys:["j"],displayAs:"j",description:"Move to the next issue"},GO_TO_PREVIOUS_ISSUE:{category:"Edit Issue Page",keys:["k"],displayAs:"k",description:"Move to the previous issue"},GO_UP_TO_LIST:{category:"Edit Issue Page",keys:["u"],displayAs:"u",description:"Up to issue list"},HIGHLIGHT_ISSUE_ID:{category:"Edit Issue Page",keys:["i"],displayAs:"i",description:"Highlight issue ID"},OPEN_HOTLIST_PICKER:{category:"Edit Issue Page",keys:["h"],displayAs:"h",description:"Edit hotlists"},OPEN_ISSUE_ACCESS_LIMITS_DIALOG:{category:"Edit Issue Page",
keys:["m"],displayAs:"m",description:"Manage issue access limits"},REFRESH_ISSUE:yUb,REFRESH_ISSUE_LIST:zUb,TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},TOGGLE_STAR:{category:"Edit Issue Page",keys:["s"],displayAs:"s",description:"Star/Unstar this issue"}};/*

 Copyright 2016 Craig Campbell

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 Mousetrap is a simple keyboard shortcut library for Javascript with
 no external dependencies

 @version 1.6.0
 @url craig.is/killing/mice
*/
(function(a,b,c){function d(J,O,R){J.addEventListener?J.addEventListener(O,R,!1):J.attachEvent("on"+O,R)}function e(J){if("keypress"==J.type){var O=String.fromCharCode(J.which);J.shiftKey||(O=O.toLowerCase());return O}return u[J.which]?u[J.which]:x[J.which]?x[J.which]:String.fromCharCode(J.which).toLowerCase()}function f(J){return"shift"==J||"ctrl"==J||"alt"==J||"meta"==J}function h(J,O){var R,U=[];"+"===J?J=["+"]:(J=J.replace(/\+{2}/g,"+plus"),J=J.split("+"));for(R=0;R<J.length;++R){var Z=J[R];E[Z]&&
(Z=E[Z]);O&&"keypress"!=O&&y[Z]&&(Z=y[Z],U.push("shift"));f(Z)&&U.push(Z)}J=Z;R=O;if(!R){if(!H){H={};for(var na in u)95<na&&112>na||u.hasOwnProperty(na)&&(H[u[na]]=na)}R=H[J]?"keydown":"keypress"}"keypress"==R&&U.length&&(R="keydown");return{key:Z,modifiers:U,action:R}}function k(J,O){return null===J||J===b?!1:J===O?!0:k(J.parentNode,O)}function q(J){function O(ja){ja=ja||{};var ya=!1,Ha;for(Ha in Da)ja[Ha]?ya=!0:Da[Ha]=0;ya||($a=!1)}function R(ja,ya,Ha,ab,Ra,Jc){var Ua,mb,Qa=[],Ab=Ha.type;if(!wa._callbacks[ja])return[];
"keyup"==Ab&&f(ja)&&(ya=[ja]);for(Ua=0;Ua<wa._callbacks[ja].length;++Ua)if(mb=wa._callbacks[ja][Ua],(ab||!mb.seq||Da[mb.seq]==mb.level)&&Ab==mb.action){var db;(db="keypress"==Ab&&!Ha.metaKey&&!Ha.ctrlKey)||(db=mb.modifiers,db=ya.sort().join(",")===db.sort().join(","));db&&(db=ab&&mb.seq==ab&&mb.level==Jc,(!ab&&mb.combo==Ra||db)&&wa._callbacks[ja].splice(Ua,1),Qa.push(mb))}return Qa}function U(ja,ya,Ha,ab){wa.stopCallback(ya,ya.target||ya.srcElement,Ha,ab)||!1!==ja(ya,Ha)||(ya.preventDefault?ya.preventDefault():
ya.returnValue=!1,ya.stopPropagation?ya.stopPropagation():ya.cancelBubble=!0)}function Z(ja){"number"!==typeof ja.which&&(ja.which=ja.keyCode);var ya=e(ja);if(ya)if("keyup"==ja.type&&Ub===ya)Ub=!1;else{var Ha=wa,ab=Ha.handleKey,Ra=[];ja.shiftKey&&Ra.push("shift");ja.altKey&&Ra.push("alt");ja.ctrlKey&&Ra.push("ctrl");ja.metaKey&&Ra.push("meta");ab.call(Ha,ya,Ra,ja)}}function na(ja,ya,Ha,ab){function Ra(Qa){return function(){$a=Qa;++Da[ja];clearTimeout(Ga);Ga=setTimeout(O,1E3)}}function Jc(Qa){U(Ha,
Qa,ja);"keyup"!==ab&&(Ub=e(Qa));setTimeout(O,10)}for(var Ua=Da[ja]=0;Ua<ya.length;++Ua){var mb=Ua+1===ya.length?Jc:Ra(ab||h(ya[Ua+1]).action);oa(ya[Ua],mb,ab,ja,Ua)}}function oa(ja,ya,Ha,ab,Ra){wa._directMap[ja+":"+Ha]=ya;ja=ja.replace(/\s+/g," ");var Jc=ja.split(" ");1<Jc.length?na(ja,Jc,ya,Ha):(Ha=h(ja,Ha),wa._callbacks[Ha.key]=wa._callbacks[Ha.key]||[],R(Ha.key,Ha.modifiers,{type:Ha.action},ab,ja,Ra),wa._callbacks[Ha.key][ab?"unshift":"push"]({callback:ya,modifiers:Ha.modifiers,action:Ha.action,
seq:ab,level:Ra,combo:ja}))}var wa=this;J=J||b;if(!(wa instanceof q))return new q(J);wa.target=J;wa._callbacks={};wa._directMap={};var Da={},Ga,Ub=!1,Vb=!1,$a=!1;wa._handleKey=function(ja,ya,Ha){var ab=R(ja,ya,Ha),Ra;ya={};var Jc=0,Ua=!1;for(Ra=0;Ra<ab.length;++Ra)ab[Ra].seq&&(Jc=Math.max(Jc,ab[Ra].level));for(Ra=0;Ra<ab.length;++Ra)ab[Ra].seq?ab[Ra].level==Jc&&(Ua=!0,ya[ab[Ra].seq]=1,U(ab[Ra].callback,Ha,ab[Ra].combo,ab[Ra].seq)):Ua||U(ab[Ra].callback,Ha,ab[Ra].combo);ab="keypress"==Ha.type&&Vb;
Ha.type!=$a||f(ja)||ab||O(ya);Vb=Ua&&"keydown"==Ha.type};wa._bindMultiple=function(ja,ya,Ha){for(var ab=0;ab<ja.length;++ab)oa(ja[ab],ya,Ha)};d(J,"keypress",Z);d(J,"keydown",Z);d(J,"keyup",Z)}if(a){var u={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},x={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",
189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},y={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},E={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},H;for(c=1;20>c;++c)u[111+c]="f"+c;for(c=0;9>=c;++c)u[c+96]=c;q.prototype.bind=function(J,O,R){J=J instanceof Array?J:[J];this._bindMultiple.call(this,
J,O,R);return this};q.prototype.unbind=function(J,O){return this.bind.call(this,J,function(){},O)};q.prototype.trigger=function(J,O){if(this._directMap[J+":"+O])this._directMap[J+":"+O]({},J);return this};q.prototype.reset=function(){this._callbacks={};this._directMap={};return this};q.prototype.stopCallback=function(J,O){return-1<(" "+O.className+" ").indexOf(" mousetrap ")||k(O,this.target)?!1:"INPUT"==O.tagName||"SELECT"==O.tagName||"TEXTAREA"==O.tagName||O.isContentEditable};q.prototype.handleKey=
function(){return this._handleKey.apply(this,arguments)};q.addKeycodes=function(J){for(var O in J)J.hasOwnProperty(O)&&(u[O]=J[O]);H=null};q.init=function(){var J=q(b),O;for(O in J)"_"!==O.charAt(0)&&(q[O]=function(R){return function(){return J[R].apply(J,arguments)}}(O))};q.init();a.Mousetrap=q;"undefined"!==typeof module&&module.exports&&(module.exports=q);"function"===typeof define&&define.amd&&define(function(){return q})}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?
document:null);var Xj={},AUb={logInfo:function(){console.log(Fra());console.log("\nDuplicate Requests:");console.table(Dra())},getCounts:function(){return Xj},getDupes:Dra,getAggregates:Fra};var vk=Symbol("Wb"),CD=function(a){this.params=a||{}};CD.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};CD.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};CD.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};Qh.Object.defineProperties(CD.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});var Ira={exact:Nra,subset:Qra},Jra={exact:Lra,subset:Ora,ignored:function(){return!0}},dk=function(a,b,c){a=void 0===a?new ck([],{}):a;b=void 0===b?{}:b;this.root=a;this.queryParams=b;this.fragment=void 0===c?null:c};dk.prototype.toString=function(){return BUb.serialize(this)};Qh.Object.defineProperties(dk.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new CD(this.queryParams));return this._queryParamMap}}});
var ck=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;Object.values(b).forEach(function(d){return d.parent=c})};ck.prototype.hasChildren=function(){return 0<this.numberOfChildren};ck.prototype.toString=function(){return Vra(this)};Qh.Object.defineProperties(ck.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var hk=function(a,b){this.path=a;this.parameters=b};
hk.prototype.toString=function(){return Tra(this.path)+Ura(this.parameters)};var DD=function(){};DD.\u0275fac=function(a){return new (a||DD)};DD.\u0275prov=$c({token:DD,factory:function(){return new ED},providedIn:"root"});var ED=function(){};ED.prototype.parse=function(a){a=new CUb(a);FD(a,"/");var b=""===a.remaining||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new ck([],{}):new ck([],DUb(a));return new dk(b,a.parseQueryParams(),FD(a,"#")?decodeURIComponent(a.remaining):null)};
ED.prototype.serialize=function(a){var b="/"+bk(a.root,!0),c=Yra(a.queryParams);a="string"===typeof a.fragment?"#"+encodeURI(a.fragment):"";return b+c+a};var BUb=new ED,Zra=/^[^\/()?;#]+/,EUb=/^[^\/()?;=#]+/,FUb=/^[^=?&#]+/,GUb=/^[^&#]+/,CUb=function(a){this.remaining=this.url=a};
CUb.prototype.parseQueryParams=function(){var a={};if(FD(this,"?")){do{var b,c=this.remaining.match(FUb);if(b=c?c[0]:""){this.capture(b);c="";if(FD(this,"=")){var d;if(d=(d=this.remaining.match(GUb))?d[0]:"")c=d,this.capture(c)}b=decodeURIComponent(b.replace(/\+/g,"%20"));c=decodeURIComponent(c.replace(/\+/g,"%20"));a.hasOwnProperty(b)?(d=a[b],Array.isArray(d)||(d=[d],a[b]=d),d.push(c)):a[b]=c}}while(FD(this,"&"))}return a};
var DUb=function(a){if(""===a.remaining)return{};FD(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(HUb(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(HUb(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=IUb(a,!0));var d={};a.remaining.startsWith("(")&&(d=IUb(a,!1));if(0<b.length||0<Object.keys(c).length)d.primary=new ck(b,c);return d},HUb=function(a){var b=$ra(a.remaining);if(""===b&&a.remaining.startsWith(";"))throw new dd(4009,
!1);a.capture(b);b=decodeURIComponent(b);for(var c={};FD(a,";");){var d,e=a;if(d=(d=e.remaining.match(EUb))?d[0]:""){e.capture(d);var f="";if(FD(e,"=")){var h=$ra(e.remaining);h&&(f=h,e.capture(f))}c[decodeURIComponent(d)]=decodeURIComponent(f)}}return new hk(b,c)},IUb=function(a,b){var c={};for(a.capture("(");!FD(a,")")&&0<a.remaining.length;){var d=$ra(a.remaining),e=a.remaining[d.length];if("/"!==e&&")"!==e&&";"!==e)throw new dd(4010,!1);e=void 0;-1<d.indexOf(":")?(e=d.slice(0,d.indexOf(":")),
a.capture(e),a.capture(":")):b&&(e="primary");d=DUb(a);c[e]=1===Object.keys(d).length?d.primary:new ck([],d);FD(a,"//")}return c},FD=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};CUb.prototype.capture=function(a){if(!FD(this,a))throw new dd(4011,!1);};var ksa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&0<c.length&&gsa(c[0]))throw new dd(4003,!1);if((a=c.find(gk))&&a!==(0<c.length?c[c.length-1]:null))throw new dd(4004,!1);},fsa=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};var GD=function(a,b){this.id=a;this.url=b},Ak=function(a,b,c,d){c=void 0===c?"imperative":c;d=void 0===d?null:d;GD.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};W(Ak,GD);Ak.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var wk=function(a,b,c){GD.call(this,a,b);this.urlAfterRedirects=c;this.type=1};W(wk,GD);
wk.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var xk=function(a,b,c,d){GD.call(this,a,b);this.reason=c;this.code=d;this.type=2};W(xk,GD);xk.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var zk=function(a,b,c,d){GD.call(this,a,b);this.reason=c;this.code=d;this.type=16};W(zk,GD);
var yk=function(a,b,c,d){GD.call(this,a,b);this.error=c;this.target=d;this.type=3};W(yk,GD);yk.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var HD=function(a,b,c,d){GD.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};W(HD,GD);HD.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var JUb=function(a,b,c,d){GD.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};W(JUb,GD);JUb.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var KUb=function(a,b,c,d,e){GD.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};W(KUb,GD);
KUb.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var LUb=function(a,b,c,d){GD.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};W(LUb,GD);LUb.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var MUb=function(a,b,c,d){GD.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};W(MUb,GD);MUb.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var NUb=function(a){this.route=a;this.type=9};NUb.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var OUb=function(a){this.route=a;this.type=10};
OUb.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var Rsa=function(a){this.snapshot=a;this.type=11};Rsa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var PUb=function(a){this.snapshot=a;this.type=12};PUb.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var Ssa=function(a){this.snapshot=a;this.type=13};Ssa.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var QUb=function(a){this.snapshot=a;this.type=14};QUb.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var RUb=function(a,b){this.position=a;this.anchor=b;this.type=15};
RUb.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};var SUb=function(){},TUb=function(a){this.url=a};var UUb=function(){this.injector=this.route=this.outlet=null;this.children=new ID;this.attachRef=null},ID=function(){this.contexts=new Map},VUb=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},WUb=function(a,b){var c=a.getContext(b);c||(c=new UUb,a.contexts.set(b,c));return c};ID.prototype.getContext=function(a){return this.contexts.get(a)||null};ID.\u0275fac=function(a){return new (a||ID)};ID.\u0275prov=$c({token:ID,factory:ID.\u0275fac,providedIn:"root"});var JD=function(a){this._root=a};JD.prototype.parent=function(a){a=this.pathFromRoot(a);return 1<a.length?a[a.length-2]:null};JD.prototype.children=function(a){return(a=psa(a,this._root))?a.children.map(function(b){return b.value}):[]};JD.prototype.firstChild=function(a){return(a=psa(a,this._root))&&0<a.children.length?a.children[0].value:null};JD.prototype.pathFromRoot=function(a){return qsa(a,this._root).map(function(b){return b.value})};
Qh.Object.defineProperties(JD.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var jk=function(a,b){this.value=a;this.children=b};jk.prototype.toString=function(){return"TreeNode("+this.value+")"};var ssa=function(a,b){this._root=a;this.snapshot=b;wsa(this,a)};W(ssa,JD);ssa.prototype.toString=function(){return this.snapshot.toString()};
var lk=function(a,b,c,d,e,f,h,k){this.urlSubject=a;this.paramsSubject=b;this.queryParamsSubject=c;this.fragmentSubject=d;this.dataSubject=e;this.outlet=f;this.component=h;this._futureSnapshot=k;var q,u;this.title=null!=(u=null==(q=this.dataSubject)?void 0:q.pipe(A(function(x){return x[vk]})))?u:(0,B.of)(void 0);this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e};lk.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
Qh.Object.defineProperties(lk.prototype,{routeConfig:{configurable:!0,enumerable:!0,get:function(){return this._futureSnapshot.routeConfig}},root:{configurable:!0,enumerable:!0,get:function(){return this._routerState.root}},parent:{configurable:!0,enumerable:!0,get:function(){return this._routerState.parent(this)}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this._routerState.firstChild(this)}},children:{configurable:!0,enumerable:!0,get:function(){return this._routerState.children(this)}},
pathFromRoot:{configurable:!0,enumerable:!0,get:function(){return this._routerState.pathFromRoot(this)}},paramMap:{configurable:!0,enumerable:!0,get:function(){this._paramMap||(this._paramMap=this.params.pipe(A(function(a){return new CD(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(A(function(a){return new CD(a)})));return this._queryParamMap}}});
var kk=function(a,b,c,d,e,f,h,k,q){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;this.routeConfig=k;this._resolve=q};kk.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
Qh.Object.defineProperties(kk.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this.data)?void 0:a[vk]}},root:{configurable:!0,enumerable:!0,get:function(){return this._routerState.root}},parent:{configurable:!0,enumerable:!0,get:function(){return this._routerState.parent(this)}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this._routerState.firstChild(this)}},children:{configurable:!0,enumerable:!0,get:function(){return this._routerState.children(this)}},
pathFromRoot:{configurable:!0,enumerable:!0,get:function(){return this._routerState.pathFromRoot(this)}},paramMap:{configurable:!0,enumerable:!0,get:function(){this._paramMap||(this._paramMap=new CD(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new CD(this.queryParams));return this._queryParamMap}}});var rsa=function(a,b){this._root=b;this.url=a;wsa(this,b)};W(rsa,JD);rsa.prototype.toString=function(){return xsa(this._root)};var KD=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new Yu;this.deactivateEvents=new Yu;this.attachEvents=new Yu;this.detachEvents=new Yu;this.parentContexts=jd(ID);this.location=jd(wg);this.changeDetector=jd(xv);this.environmentInjector=jd($t);this.inputBinder=jd(XUb,{optional:!0})};KD.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(YUb(this,b)&&(this.deactivate(),VUb(this.parentContexts,b)),ZUb(this))}};
KD.prototype.ngOnDestroy=function(){YUb(this,this.name)&&VUb(this.parentContexts,this.name);var a;null==(a=this.inputBinder)||LD(a,this)};var YUb=function(a,b){var c;return(null==(c=a.parentContexts.getContext(b))?void 0:c.outlet)===a};KD.prototype.ngOnInit=function(){ZUb(this)};
var ZUb=function(a){var b=a.parentContexts,c=a.name,d=WUb(b,c);d.outlet=a;b.contexts.set(c,d);!a.activated&&(b=a.parentContexts.getContext(a.name),null==b?0:b.route)&&(b.attachRef?a.attach(b.attachRef,b.route):$Ub(a,b.route,b.injector))};KD.prototype.detach=function(){if(!this.activated)throw new dd(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};
KD.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);null!=(b=this.inputBinder)&&(LD(b,this),aVb(b,this));this.attachEvents.emit(a.instance)};KD.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var $Ub=function(a,b,c){if(a.isActivated)throw new dd(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=WUb(a.parentContexts,a.name).children;a.activated=d.createComponent(e,{index:d.length,injector:new bVb(b,f,d.injector),environmentInjector:null!=c?c:a.environmentInjector});a.changeDetector.markForCheck();null!=(b=a.inputBinder)&&(LD(b,a),aVb(b,a));a.activateEvents.emit(a.activated.instance)};
Qh.Object.defineProperties(KD.prototype,{activatedComponentRef:{configurable:!0,enumerable:!0,get:function(){return this.activated}},isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new dd(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new dd(4012,!1);return this._activatedRoute}}});
KD.\u0275fac=function(a){return new (a||KD)};KD.\u0275dir=sd({type:KD,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Fd]});var bVb=function(a,b,c){this.route=a;this.childContexts=b;this.parent=c};bVb.prototype.get=function(a,b){return a===lk?this.route:a===ID?this.childContexts:this.parent.get(a,b)};
var XUb=new Ad(""),MD=function(){this.outletDataSubscriptions=new Map},LD=function(a,b){var c;null==(c=a.outletDataSubscriptions.get(b))||c.unsubscribe();a.outletDataSubscriptions.delete(b)},aVb=function(a,b){var c=b.activatedRoute,d=(0,B.combineLatest)([c.queryParams,c.params,c.data]).pipe(zf(function(e,f){var h=l(e);e=h.next().value;var k=h.next().value;h=h.next().value;h=Object.assign({},e,k,h);return 0===f?(0,B.of)(h):Promise.resolve(h)})).subscribe(function(e){if(b.isActivated&&b.activatedComponentRef&&
b.activatedRoute===c&&null!==c.component){var f=Fka(c.component);if(f){f=l(f.inputs);for(var h=f.next();!h.done;h=f.next())h=h.value.templateName,b.activatedComponentRef.setInput(h,e[h])}else LD(a,b)}else LD(a,b)});a.outletDataSubscriptions.set(b,d)};MD.\u0275fac=function(a){return new (a||MD)};MD.\u0275prov=$c({token:MD,factory:MD.\u0275fac});var mk=function(){};mk.\u0275fac=function(a){return new (a||mk)};mk.\u0275cmp=od({type:mk,selectors:[["ng-component"]],standalone:!0,features:[eka],decls:1,vars:0,template:function(a){a&1&&G(0,"router-outlet")},dependencies:[KD],encapsulation:2});var dVb=function(a,b,c,d){return A(function(e){(new cVb(b,e.targetRouterState,e.currentRouterState,c,d)).activate(a);return e})},cVb=function(a,b,c,d,e){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d;this.inputBindingEnabled=e};cVb.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;eVb(this,b,c,a);ysa(this.futureState.root);ND(this,b,c,a)};
var eVb=function(a,b,c,d){var e=ik(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,u=k?k.value:null;q===u?q.component?(q=d.getContext(q.outlet))&&eVb(a,f,k,q.children):eVb(a,f,k,d):u&&fVb(a,k,d);delete e[h]});Object.values(e).forEach(function(f){fVb(a,f,d)})},fVb=function(a,b,c){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;b=ik(b);for(var e=l(Object.keys(b)),f=e.next();!f.done;f=e.next())fVb(a,b[f.value],c);d&&(d.outlet&&(d.outlet.deactivate(),d.children.contexts=
new Map),d.attachRef=null,d.route=null)},ND=function(a,b,c,d){var e=ik(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;ysa(k);k===q?k.component?(k=WUb(d,k.outlet),ND(a,f,h,k.children)):ND(a,f,h,d):k.component?(h=WUb(d,k.outlet),q=ok(k.snapshot),h.attachRef=null,h.route=k,h.injector=q,h.outlet&&$Ub(h.outlet,k,h.injector),ND(a,f,null,h.children)):ND(a,f,null,d);a.forwardEvent(new QUb(f.value.snapshot))});b.children.length&&a.forwardEvent(new PUb(b.value.snapshot))};var Isa=Symbol("Yb");var Ksa=function(a){this.path=a;this.route=this.path[this.path.length-1]},Lsa=function(a,b){this.component=a;this.route=b};var Ysa=function(a){this.segmentGroup=a||null},gVb=function(a){this.urlTree=a},hVb=function(a,b){this.urlSerializer=a;this.urlTree=b},iVb=function(a){var b=[];for(a=a.root;;){b=b.concat(a.segments);if(0===a.numberOfChildren)return(0,B.of)(b);if(1<a.numberOfChildren||!a.children.primary)return(0,B.throwError)(new dd(4E3,!1));a=a.children.primary}},lVb=function(a,b,c,d){var e=a.urlSerializer.parse(c);b=jVb(a,c,e.root,b,d);return new dk(b,kVb(e.queryParams,a.urlTree.queryParams),e.fragment)},kVb=function(a,
b){var c={};Object.entries(a).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;c[d]="string"===typeof e&&e.startsWith(":")?b[e.substring(1)]:e});return c},jVb=function(a,b,c,d,e){var f=mVb(c.segments,d,e),h={};Object.entries(c.children).forEach(function(k){var q=l(k);k=q.next().value;q=q.next().value;h[k]=jVb(a,b,q,d,e)});return new ck(f,h)},mVb=function(a,b,c){return a.map(function(d){if(d.path.startsWith(":")){if(d=c[d.path.substring(1)],!d)throw new dd(4001,!1);}else a:for(var e=
0,f=l(b),h=f.next();!h.done;h=f.next()){h=h.value;if(h.path===d.path){b.splice(e);d=h;break a}e++}return d})};var $sa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};var ita=function(a,b,c,d,e,f,h){this.injector=a;this.configLoader=b;this.rootComponentType=c;this.config=d;this.urlTree=e;this.paramsInheritanceStrategy=f;this.urlSerializer=h;this.allowRedirects=!0;this.applyRedirects=new hVb(this.urlSerializer,this.urlTree)};
ita.prototype.recognize=function(){var a=this,b=eta(this.urlTree.root,[],[],this.config).segmentGroup;return nVb(this,this.injector,this.config,b,"primary").pipe(gf(function(c){if(c instanceof gVb)return a.allowRedirects=!1,a.urlTree=c.urlTree,a.match(c.urlTree);if(c instanceof Ysa)throw new dd(4002,!1);throw c;}),A(function(c){var d=new kk([],Object.freeze({}),Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,{},"primary",a.rootComponentType,null,{});c=new rsa("",new jk(d,
c));var e=a.urlTree.queryParams,f=a.urlTree.fragment;e=void 0===e?null:e;f=void 0===f?null:f;d=csa(d);d=isa(d,[],e,f);d.queryParams=a.urlTree.queryParams;c.url=a.urlSerializer.serialize(d);oVb(a,c._root);return{state:c,tree:d}}))};ita.prototype.match=function(a){return nVb(this,this.injector,this.config,a.root,"primary").pipe(gf(function(b){if(b instanceof Ysa)throw new dd(4002,!1);throw b;}))};
var oVb=function(a,b){var c=b.value,d=vsa(c,a.paramsInheritanceStrategy);c.params=Object.freeze(d.params);c.data=Object.freeze(d.data);b.children.forEach(function(e){return oVb(a,e)})},nVb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?a.processChildren(b,c,d):pVb(a,b,c,d,d.segments,e,!0)};
ita.prototype.processChildren=function(a,b,c){for(var d=this,e=[],f=l(Object.keys(c.children)),h=f.next();!h.done;h=f.next())h=h.value,"primary"===h?e.unshift(h):e.push(h);return(0,B.from)(e).pipe(Xe(function(k){var q=c.children[k],u=Hsa(b,k);return nVb(d,a,u,q,k)},1),yia(function(k,q){k.push.apply(k,p(q));return k}),kf(null),via(),Xe(function(k){if(null===k)return uk(c);k=hta(k);fta(k);return(0,B.of)(k)}))};
var pVb=function(a,b,c,d,e,f,h){return(0,B.from)(c).pipe(Xe(function(k){var q;return qVb(a,null!=(q=k._injector)?q:b,c,k,d,e,f,h).pipe(gf(function(u){if(u instanceof Ysa)return(0,B.of)(null);throw u;}))},1),qf(function(k){return!!k}),gf(function(k){if(Msa(k))return 0!==e.length||d.children[f]?uk(d):(0,B.of)([]);throw k;}))},qVb=function(a,b,c,d,e,f,h,k){if((nk(d)===h||"primary"!==h&&dta(e,f,d))&&("**"===d.path||Zsa(e,d,f).matched))if(void 0===d.redirectTo)a=rVb(a,b,e,d,f,h);else{var q;k&&a.allowRedirects?
q="**"===d.path?sVb(a,b,c,d,h):tVb(a,b,e,c,d,f,h):q=uk(e);a=q}else a=uk(e);return a},sVb=function(a,b,c,d,e){var f=lVb(a.applyRedirects,[],d.redirectTo,{});return d.redirectTo.startsWith("/")?(0,B.throwError)(new gVb(f)):iVb(f).pipe(Xe(function(h){var k=new ck(h,{});return pVb(a,b,c,k,h,e,!1)}))},tVb=function(a,b,c,d,e,f,h){f=Zsa(c,e,f);var k=f.consumedSegments,q=f.remainingSegments,u=f.positionalParamSegments;if(!f.matched)return uk(c);f=lVb(a.applyRedirects,k,e.redirectTo,u);return e.redirectTo.startsWith("/")?
(0,B.throwError)(new gVb(f)):iVb(f).pipe(Xe(function(x){return pVb(a,b,d,c,x.concat(q),h,!1)}))},rVb=function(a,b,c,d,e,f){var h;if("**"===d.path){var k,q=new kk(e,0<e.length?(0<e.length?e[e.length-1]:null).parameters:{},Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},nk(d),null!=(k=null!=(h=d.component)?h:d._loadedComponent)?k:null,d,d.resolve||{});h=(0,B.of)({snapshot:q,consumedSegments:[],remainingSegments:[]});c.children={}}else h=ata(c,d,e,b).pipe(A(function(u){var x=
u.consumedSegments,y=u.remainingSegments;if(!u.matched)return null;var E,H;return{snapshot:new kk(x,u.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},nk(d),null!=(H=null!=(E=d.component)?E:d._loadedComponent)?H:null,d,d.resolve||{}),consumedSegments:x,remainingSegments:y}}));return h.pipe(zf(function(u){if(null===u)return uk(c);var x;b=null!=(x=d._injector)?x:b;return uVb(a,b,d,e).pipe(zf(function(y){y=y.routes;var E,H=null!=(E=d._loadedInjector)?E:
b,J=u.snapshot,O=eta(c,u.consumedSegments,u.remainingSegments,y);E=O.segmentGroup;O=O.slicedSegments;return 0===O.length&&E.hasChildren()?a.processChildren(H,y,E).pipe(A(function(R){return null===R?null:[new jk(J,R)]})):0===y.length&&0===O.length?(0,B.of)([new jk(J,[])]):pVb(a,H,y,E,O,nk(d)===f?"primary":f,!0).pipe(A(function(R){return[new jk(J,R)]}))}))}))},uVb=function(a,b,c,d){return c.children?(0,B.of)({routes:c.children,injector:b}):c.loadChildren?void 0!==c._loadedRoutes?(0,B.of)({routes:c._loadedRoutes,
injector:c._loadedInjector}):Wsa(b,c,d).pipe(Xe(function(e){return e?a.configLoader.loadChildren(b,c).pipe(Bf(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector})):(0,B.throwError)(Dsa(3))})):(0,B.of)({routes:[],injector:b})};var vVb=new Ad("ROUTES"),OD=function(){this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap;jd(Xu)};
OD.prototype.loadComponent=function(a){var b=this;if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return(0,B.of)(a._loadedComponent);if(this.onLoadStartListener)this.onLoadStartListener(a);var c=Zj(a.loadComponent()).pipe(A(qta),Bf(function(d){if(b.onLoadEndListener)b.onLoadEndListener(a);a._loadedComponent=d}),pf(function(){b.componentLoaders.delete(a)}));c=(new B.ConnectableObservable(c,function(){return new B.Subject})).pipe(Ke());this.componentLoaders.set(a,
c);return c};
OD.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return(0,B.of)({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=wVb(b.loadChildren).pipe(A(function(e){if(c.onLoadEndListener)c.onLoadEndListener(b);if(!Array.isArray(e)){var f=e.create(a).injector;e=f.get(vVb,[],10).flat()}return{routes:e.map(Gsa),injector:f}}),pf(function(){c.childrenLoaders.delete(b)}));d=
(new B.ConnectableObservable(d,function(){return new B.Subject})).pipe(Ke());this.childrenLoaders.set(b,d);return d};var wVb=function(a){return Zj(a()).pipe(A(qta),Xe(function(b){return b instanceof gHb||Array.isArray(b)?(0,B.of)(b):(0,B.from)(Promise.resolve(new FHb(b)))}))};OD.\u0275fac=function(a){return new (a||OD)};OD.\u0275prov=$c({token:OD,factory:OD.\u0275fac,providedIn:"root"});var PD=function(){var a=this;this.lastSuccessfulNavigation=this.currentTransition=this.currentNavigation=null;this.events=new B.Subject;this.transitionAbortSubject=new B.Subject;this.configLoader=jd(OD);this.environmentInjector=jd($t);this.urlSerializer=jd(DD);this.rootContexts=jd(ID);this.inputBindingEnabled=null!==jd(XUb,{optional:!0});this.navigationId=0;this.afterPreactivation=function(){return(0,B.of)(void 0)};this.rootComponentType=null;this.configLoader.onLoadEndListener=function(b){return a.events.next(new OUb(b))};
this.configLoader.onLoadStartListener=function(b){return a.events.next(new NUb(b))}};PD.prototype.complete=function(){var a;null==(a=this.transitions)||a.complete()};
var xVb=function(a,b){var c=++a.navigationId,d;null==(d=a.transitions)||d.next(Object.assign({},a.transitions.value,b,{id:c}))},zVb=function(a,b,c,d){a.transitions=new B.BehaviorSubject({id:0,currentUrlTree:c,currentRawUrl:c,currentBrowserUrl:c,extractedUrl:b.urlHandlingStrategy.extract(c),urlAfterRedirects:b.urlHandlingStrategy.extract(c),rawUrl:c,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:d.snapshot,targetSnapshot:null,currentRouterState:d,
targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null});return a.transitions.pipe(cf(function(e){return 0!==e.id}),A(function(e){return Object.assign({},e,{extractedUrl:b.urlHandlingStrategy.extract(e.rawUrl)})}),zf(function(e){a.currentTransition=e;var f=!1,h=!1;return(0,B.of)(e).pipe(Bf(function(k){a.currentNavigation={id:k.id,initialUrl:k.rawUrl,extractedUrl:k.extractedUrl,trigger:k.source,extras:k.extras,previousNavigation:a.lastSuccessfulNavigation?Object.assign({},
a.lastSuccessfulNavigation,{previousNavigation:null}):null}}),zf(function(k){var q=k.currentBrowserUrl.toString();q=!b.navigated||k.extractedUrl.toString()!==q||q!==k.currentUrlTree.toString();var u,x=null!=(u=k.extras.onSameUrlNavigation)?u:b.onSameUrlNavigation;return q||"reload"===x?(0,B.of)(k).pipe(zf(function(y){var E,H=null==(E=a.transitions)?void 0:E.getValue();a.events.next(new Ak(y.id,a.urlSerializer.serialize(y.extractedUrl),y.source,y.restoredState));var J;return H!==(null==(J=a.transitions)?
void 0:J.getValue())?B.EMPTY:Promise.resolve(y)}),jta(a.environmentInjector,a.configLoader,a.rootComponentType,b.config,a.urlSerializer,b.paramsInheritanceStrategy),Bf(function(y){e.targetSnapshot=y.targetSnapshot;e.urlAfterRedirects=y.urlAfterRedirects;a.currentNavigation=Object.assign({},a.currentNavigation,{finalUrl:y.urlAfterRedirects});y=new HD(y.id,a.urlSerializer.serialize(y.extractedUrl),a.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);a.events.next(y)})):(a.events.next(new zk(k.id,
a.urlSerializer.serialize(k.rawUrl),"",0)),k.resolve(null),B.EMPTY)}),Bf(function(k){k=new JUb(k.id,a.urlSerializer.serialize(k.extractedUrl),a.urlSerializer.serialize(k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}),A(function(k){var q=Object,u=q.assign;var x=k.currentSnapshot;var y=k.targetSnapshot._root;x=rk(y,x?x._root:null,a.rootContexts,[y.value]);return a.currentTransition=e=u.call(q,{},k,{guards:x})}),Psa(a.environmentInjector,function(k){return a.events.next(k)}),Bf(function(k){e.guardsResult=
k.guardsResult;if(ek(k.guardsResult))throw Esa(k.guardsResult);k=new KUb(k.id,a.urlSerializer.serialize(k.extractedUrl),a.urlSerializer.serialize(k.urlAfterRedirects),k.targetSnapshot,!!k.guardsResult);a.events.next(k)}),cf(function(k){return k.guardsResult?!0:(yVb(a,k,3),!1)}),pta(function(k){if(k.guards.canActivateChecks.length)return(0,B.of)(k).pipe(Bf(function(q){q=new LUb(q.id,a.urlSerializer.serialize(q.extractedUrl),a.urlSerializer.serialize(q.urlAfterRedirects),q.targetSnapshot);a.events.next(q)}),
zf(function(q){var u=!1;return(0,B.of)(q).pipe(lta(b.paramsInheritanceStrategy,a.environmentInjector),Bf({next:function(){return u=!0},complete:function(){u||yVb(a,q,2)}}))}),Bf(function(q){q=new MUb(q.id,a.urlSerializer.serialize(q.extractedUrl),a.urlSerializer.serialize(q.urlAfterRedirects),q.targetSnapshot);a.events.next(q)}))}),pta(function(k){var q=function(u){var x=[],y;(null==(y=u.routeConfig)?0:y.loadComponent)&&!u.routeConfig._loadedComponent&&x.push(a.configLoader.loadComponent(u.routeConfig).pipe(Bf(function(H){u.component=
H}),A(function(){})));y=l(u.children);for(var E=y.next();!E.done;E=y.next())x.push.apply(x,p(q(E.value)));return x};return(0,B.combineLatest)(q(k.targetSnapshot.root)).pipe(kf(),nf())}),pta(function(){return a.afterPreactivation()}),A(function(k){var q=k.targetSnapshot;var u=k.currentRouterState;u=Csa(b.routeReuseStrategy,q._root,u?u._root:void 0);q=new ssa(u,q);return a.currentTransition=e=Object.assign({},k,{targetRouterState:q})}),Bf(function(){a.events.next(new SUb)}),dVb(a.rootContexts,b.routeReuseStrategy,
function(k){return a.events.next(k)},a.inputBindingEnabled),nf(),Bf({next:function(k){f=!0;a.lastSuccessfulNavigation=a.currentNavigation;a.events.next(new wk(k.id,a.urlSerializer.serialize(k.extractedUrl),a.urlSerializer.serialize(k.urlAfterRedirects)));var q;null==(q=b.titleStrategy)||q.updateTitle(k.targetRouterState.snapshot);k.resolve(!0)},complete:function(){f=!0}}),Af(a.transitionAbortSubject.pipe(Bf(function(k){throw k;}))),pf(function(){f||h||yVb(a,e,1);var k;(null==(k=a.currentNavigation)?
void 0:k.id)===e.id&&(a.currentNavigation=null)}),gf(function(k){h=!0;if(k&&k.ngNavigationCancelingError)a.events.next(new xk(e.id,a.urlSerializer.serialize(e.extractedUrl),k.message,k.cancellationCode)),k&&k.ngNavigationCancelingError&&ek(k.url)?a.events.next(new TUb(k.url)):e.resolve(!1);else{var q;a.events.next(new yk(e.id,a.urlSerializer.serialize(e.extractedUrl),k,null!=(q=e.targetSnapshot)?q:void 0));try{e.resolve(b.errorHandler(k))}catch(u){e.reject(u)}}return B.EMPTY}))}))},yVb=function(a,
b,c){c=new xk(b.id,a.urlSerializer.serialize(b.extractedUrl),"",c);a.events.next(c);b.resolve(!1)};Qh.Object.defineProperties(PD.prototype,{hasRequestedNavigation:{configurable:!0,enumerable:!0,get:function(){return 0!==this.navigationId}}});PD.\u0275fac=function(a){return new (a||PD)};PD.\u0275prov=$c({token:PD,factory:PD.\u0275fac,providedIn:"root"});var QD=function(){},AVb=function(a){for(a=a.root;void 0!==a;){var b=void 0;var c=null!=(b=a.data[vk])?b:c;a=a.children.find(function(d){return"primary"===d.outlet})}return c};QD.\u0275fac=function(a){return new (a||QD)};QD.\u0275prov=$c({token:QD,factory:function(){return jd(RD)},providedIn:"root"});var RD=function(a){this.title=a};W(RD,QD);RD.prototype.updateTitle=function(a){a=AVb(a);void 0!==a&&this.title.setTitle(a)};RD.\u0275fac=function(a){return new (a||RD)(n(jx))};
RD.\u0275prov=$c({token:RD,factory:RD.\u0275fac,providedIn:"root"});var SD=function(){};SD.\u0275fac=function(a){return new (a||SD)};SD.\u0275prov=$c({token:SD,factory:function(){return jd(TD)},providedIn:"root"});var BVb=function(){};BVb.prototype.store=function(){};BVb.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var TD=function(){};W(TD,BVb);TD.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(TD)))(b||TD)}}();TD.\u0275prov=$c({token:TD,factory:TD.\u0275fac,providedIn:"root"});var CVb=new Ad("",{providedIn:"root",factory:function(){return{}}});var UD=function(){};UD.\u0275fac=function(a){return new (a||UD)};UD.\u0275prov=$c({token:UD,factory:function(){return jd(VD)},providedIn:"root"});var VD=function(){};VD.prototype.extract=function(a){return a};VD.prototype.merge=function(a){return a};VD.\u0275fac=function(a){return new (a||VD)};VD.\u0275prov=$c({token:VD,factory:VD.\u0275fac,providedIn:"root"});var DVb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},EVb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},WD=function(){var a=this;this.disposed=!1;this.currentPageId=0;this.console=jd(qu);this._events=new B.Subject;this.options=jd(CVb,{optional:!0})||{};this.pendingTasks=jd(Wu);this.errorHandler=this.options.errorHandler||sta;this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||tta;this.navigated=!1;this.lastSuccessfulId=
-1;this.urlHandlingStrategy=jd(UD);this.routeReuseStrategy=jd(SD);this.titleStrategy=jd(QD);this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";var b,c;this.config=null!=(c=null==(b=jd(vVb,{optional:!0}))?void 0:b.flat())?c:[];this.navigationTransitions=
jd(PD);this.urlSerializer=jd(DD);this.location=jd($v);jd(XUb,{optional:!0});this.eventsSubscription=new B.Subscription;jd(Df)instanceof Df&&Xia();this.config=this.config.map(Gsa);this.navigated=!1;this.lastSuccessfulId=-1;this.browserUrlTree=this.rawUrlTree=this.currentUrlTree=new dk;this.routerState=tsa();zVb(this.navigationTransitions,this,this.currentUrlTree,this.routerState).subscribe(function(d){a.lastSuccessfulId=d.id;a.currentPageId=a.browserPageId},function(d){a.console.warn("Unhandled Navigation Error: "+
d)});FVb(this)},FVb=function(a){var b=a.navigationTransitions.events.subscribe(function(c){try{var d=a.navigationTransitions.currentTransition;if(null!==d){if(c instanceof Ak)"imperative"!==d.source&&(a.browserUrlTree=d.extractedUrl);else if(c instanceof zk)a.rawUrlTree=d.rawUrl;else if(c instanceof HD){if("eager"===a.urlUpdateStrategy){if(!d.extras.skipLocationChange){var e=a.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);GVb(a,e,d)}a.browserUrlTree=d.urlAfterRedirects}}else if(c instanceof
SUb)a.currentUrlTree=d.urlAfterRedirects,a.rawUrlTree=a.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl),a.routerState=d.targetRouterState,"deferred"===a.urlUpdateStrategy&&(d.extras.skipLocationChange||GVb(a,a.rawUrlTree,d),a.browserUrlTree=d.urlAfterRedirects);else if(c instanceof xk)0!==c.code&&1!==c.code&&(a.navigated=!0),3!==c.code&&2!==c.code||HVb(a,d);else if(c instanceof TUb){var f=a.urlHandlingStrategy.merge(c.url,d.currentRawUrl);IVb(a,f,"imperative",null,{skipLocationChange:d.extras.skipLocationChange,
replaceUrl:"eager"===a.urlUpdateStrategy||"imperative"!==d.source},{resolve:d.resolve,reject:d.reject,promise:d.promise})}c instanceof yk&&HVb(a,d,!0);c instanceof wk&&(a.navigated=!0)}c instanceof SUb||c instanceof TUb||a._events.next(c)}catch(h){a.navigationTransitions.transitionAbortSubject.next(h)}});a.eventsSubscription.add(b)};
WD.prototype.initialNavigation=function(){JVb(this);if(!this.navigationTransitions.hasRequestedNavigation){var a=this.location.getState();KVb(this,this.location.path(!0),"imperative",a)}};
var JVb=function(a){a.locationSubscription||(a.locationSubscription=a.location.subscribe(function(b){var c="popstate"===b.type?"popstate":"hashchange";"popstate"===c&&setTimeout(function(){KVb(a,b.url,c,b.state)},0)}))},KVb=function(a,b,c,d){var e={replaceUrl:!0},f=(null==d?0:d.navigationId)?d:null;d&&(d=Object.assign({},d),delete d.navigationId,delete d.\u0275routerPageId,0!==Object.keys(d).length&&(e.state=d));b=LVb(a,b);IVb(a,b,c,f,e)};WD.prototype.ngOnDestroy=function(){this.dispose()};
WD.prototype.dispose=function(){this.navigationTransitions.complete();this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0);this.disposed=!0;this.eventsSubscription.unsubscribe()};
var XD=function(a,b,c){var d=c=void 0===c?{}:c;c=d.relativeTo;var e=d.queryParams,f=d.fragment;f=d.preserveFragment?a.currentUrlTree.fragment:f;switch(d.queryParamsHandling){case "merge":d=Object.assign({},a.currentUrlTree.queryParams,e);break;case "preserve":d=a.currentUrlTree.queryParams;break;default:d=e||null}null!==d&&(d=MVb(d));try{var h=csa(c?c.snapshot:a.routerState.snapshot.root)}catch(k){"string"===typeof b[0]&&b[0].startsWith("/")||(b=[]),h=a.currentUrlTree.root}return isa(h,b,d,null!=
f?f:null)},ws=function(a,b,c){c=void 0===c?{skipLocationChange:!1}:c;b=ek(b)?b:LVb(a,b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return IVb(a,b,"imperative",null,c)};WD.prototype.navigate=function(a,b){b=void 0===b?{skipLocationChange:!1}:b;for(var c=0;c<a.length;c++)if(null==a[c])throw new dd(4008,!1);return ws(this,XD(this,a,b),b)};var LVb=function(a,b){try{var c=a.urlSerializer.parse(b)}catch(d){c=a.malformedUriErrorHandler(d,a.urlSerializer,b)}return c};
WD.prototype.isActive=function(a,b){var c;!0===b?c=Object.assign({},DVb):!1===b?c=Object.assign({},EVb):c=b;if(ek(a))return Kra(this.currentUrlTree,a,c);a=LVb(this,a);return Kra(this.currentUrlTree,a,c)};
var MVb=function(a){return Object.keys(a).reduce(function(b,c){var d=a[c];null!==d&&void 0!==d&&(b[c]=d);return b},{})},IVb=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var h=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(u,x){h=u;k=x});var q=a.pendingTasks.add();rta(a,function(){queueMicrotask(function(){return a.pendingTasks.remove(q)})});xVb(a.navigationTransitions,{source:c,restoredState:d,currentUrlTree:a.currentUrlTree,currentRawUrl:a.currentUrlTree,
currentBrowserUrl:a.browserUrlTree,rawUrl:b,extras:e,resolve:h,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(u){return Promise.reject(u)})},GVb=function(a,b,c){b=a.urlSerializer.serialize(b);var d=a.location;var e=void 0===e?"":e;d.path()==d.normalize(b+Qg(e))||c.extras.replaceUrl?(c=Object.assign({},c.extras.state,NVb(a,c.id,a.browserPageId)),a.location.replaceState(b,"",c)):(c=Object.assign({},c.extras.state,NVb(a,c.id,a.browserPageId+
1)),a.location.go(b,"",c))},HVb=function(a,b,c){c=void 0===c?!1:c;if("computed"===a.canceledNavigationResolution)if(c=a.currentPageId-a.browserPageId,0!==c)a.location.historyGo(c);else{var d;a.currentUrlTree===(null==(d=a.navigationTransitions.currentNavigation)?void 0:d.finalUrl)&&0===c&&(a.resetState(b),a.browserUrlTree=b.currentUrlTree,OVb(a))}else"replace"===a.canceledNavigationResolution&&(c&&a.resetState(b),OVb(a))};
WD.prototype.resetState=function(a){this.routerState=a.currentRouterState;this.currentUrlTree=a.currentUrlTree;this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)};var OVb=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",NVb(a,a.lastSuccessfulId,a.currentPageId))},NVb=function(a,b,c){return"computed"===a.canceledNavigationResolution?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
Qh.Object.defineProperties(WD.prototype,{navigationId:{configurable:!0,enumerable:!0,get:function(){return this.navigationTransitions.navigationId}},browserPageId:{configurable:!0,enumerable:!0,get:function(){if("computed"!==this.canceledNavigationResolution)return this.currentPageId;var a,b;return null!=(b=null==(a=this.location.getState())?void 0:a.\u0275routerPageId)?b:this.currentPageId}},events:{configurable:!0,enumerable:!0,get:function(){return this._events}},url:{configurable:!0,enumerable:!0,
get:function(){return this.urlSerializer.serialize(this.currentUrlTree)}},lastSuccessfulNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationTransitions.lastSuccessfulNavigation}}});WD.\u0275fac=function(a){return new (a||WD)};WD.\u0275prov=$c({token:WD,factory:WD.\u0275fac,providedIn:"root"});var YD=function(a,b,c,d,e,f){var h=this;this.router=a;this.route=b;this.tabIndexAttribute=c;this.renderer=d;this.el=e;this.locationStrategy=f;this.commands=this.href=null;this.onChanges=new B.Subject;this.replaceUrl=this.skipLocationChange=this.preserveFragment=!1;var k;b=null==(k=e.nativeElement.tagName)?void 0:k.toLowerCase();(this.isAnchorElement="a"===b||"area"===b)?this.subscription=a.events.subscribe(function(q){q instanceof wk&&PVb(h)}):QVb(this,"0")},QVb=function(a,b){null!=a.tabIndexAttribute||
a.isAnchorElement||RVb(a,"tabindex",b)};YD.prototype.ngOnChanges=function(){this.isAnchorElement&&PVb(this);this.onChanges.next(this)};YD.prototype.onClick=function(a,b,c,d,e){if(null===this.urlTree||this.isAnchorElement&&(0!==a||b||c||d||e||"string"===typeof this.target&&"_self"!=this.target))return!0;ws(this.router,this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state});return!this.isAnchorElement};
YD.prototype.ngOnDestroy=function(){var a;null==(a=this.subscription)||a.unsubscribe()};var PVb=function(a){var b;a.href=null!==a.urlTree&&a.locationStrategy?null==(b=a.locationStrategy)?void 0:b.prepareExternalUrl(a.router.urlSerializer.serialize(a.urlTree)):null;null===a.href?b=null:(b=a.el.nativeElement.tagName.toLowerCase(),b=("base"===b||"link"===b?aga:re)(a.href));RVb(a,"href",b)},RVb=function(a,b,c){var d=a.renderer;a=a.el.nativeElement;null!==c?d.setAttribute(a,b,c):d.removeAttribute(a,b)};
Qh.Object.defineProperties(YD.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?(this.commands=Array.isArray(a)?a:[a],QVb(this,"0")):(this.commands=null,QVb(this,null))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return null===this.commands?null:XD(this.router,this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}});
YD.\u0275fac=function(a){return new (a||YD)(z(WD),z(lk),Ud("tabindex"),z(ku),z(ae),z(Xv))};
YD.\u0275dir=sd({type:YD,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(a,b){a&1&&L("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&Nf("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Gg],skipLocationChange:["skipLocationChange","skipLocationChange",Gg],replaceUrl:["replaceUrl",
"replaceUrl",Gg],routerLink:"routerLink"},standalone:!0,features:[tja,Fd]});var ZD=function(a,b,c,d,e){var f=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.link=e;this.classes=[];this._isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new Yu;this.routerEventsSubscription=a.events.subscribe(function(h){h instanceof wk&&f.update()})};ZD.prototype.ngAfterContentInit=function(){var a=this;(0,B.of)(this.links.changes,(0,B.of)(null)).pipe(Ye()).subscribe(function(){a.update();SVb(a)})};
var SVb=function(a){var b;null==(b=a.linkInputChangesSubscription)||b.unsubscribe();b=[].concat(p(a.links.toArray()),[a.link]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=(0,B.from)(b).pipe(Ye()).subscribe(function(c){a._isActive!==TVb(a,a.router)(c)&&a.update()})};ZD.prototype.ngOnChanges=function(){this.update()};
ZD.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;null==(a=this.linkInputChangesSubscription)||a.unsubscribe()};
ZD.prototype.update=function(){var a=this;this.links&&this.router.navigated&&queueMicrotask(function(){var b=UVb(a);a._isActive!==b&&(a._isActive=b,a.cdr.markForCheck(),a.classes.forEach(function(c){b?a.renderer.addClass(a.element.nativeElement,c):a.renderer.removeClass(a.element.nativeElement,c)}),b&&void 0!==a.ariaCurrentWhenActive?a.renderer.setAttribute(a.element.nativeElement,"aria-current",a.ariaCurrentWhenActive.toString()):a.renderer.removeAttribute(a.element.nativeElement,"aria-current"),
a.isActiveChange.emit(b))})};var TVb=function(a,b){var c=a.routerLinkActiveOptions.paths?a.routerLinkActiveOptions:a.routerLinkActiveOptions.exact||!1;return function(d){return d.urlTree?b.isActive(d.urlTree,c):!1}},UVb=function(a){var b=TVb(a,a.router);return a.link&&b(a.link)||a.links.some(b)};
Qh.Object.defineProperties(ZD.prototype,{isActive:{configurable:!0,enumerable:!0,get:function(){return this._isActive}},routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});ZD.\u0275fac=function(a){return new (a||ZD)(z(WD),z(ae),z(ku),z(xv),z(YD,8))};
ZD.\u0275dir=sd({type:ZD,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&Ag(c,YD,5);if(a&2){var d;yg(d=Bg())&&(b.links=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Fd]});var VVb=function(){},$D=function(a,b,c,d,e){this.router=a;this.injector=c;this.preloadingStrategy=d;this.loader=e},WVb=function(a){a.subscription=a.router.events.pipe(cf(function(b){return b instanceof wk}),Xe(function(){return a.preload()},1)).subscribe(function(){})};$D.prototype.preload=function(){return XVb(this,this.injector,this.router.config)};$D.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var XVb=function(a,b,c){var d=[];c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=Kga(e.providers,b,"Route: "+e.path));var f=void 0,h=null!=(f=e._injector)?f:b,k=void 0;f=null!=(k=e._loadedInjector)?k:h;(e.loadChildren&&!e._loadedRoutes&&void 0===e.canLoad||e.loadComponent&&!e._loadedComponent)&&d.push(YVb(a,h,e));if(e.children||e._loadedRoutes)h=void 0,d.push(XVb(a,f,null!=(h=e.children)?h:e._loadedRoutes))}return(0,B.from)(d).pipe(Ye())},YVb=function(a,
b,c){return a.preloadingStrategy.preload(c,function(){var d=(c.loadChildren&&void 0===c.canLoad?a.loader.loadChildren(b,c):(0,B.of)(null)).pipe(Xe(function(f){if(null===f)return(0,B.of)(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var h;return XVb(a,null!=(h=f.injector)?h:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(c);return(0,B.from)([d,e]).pipe(Ye())}return d})};$D.\u0275fac=function(a){return new (a||$D)(n(WD),n(Xu),n($t),n(VVb),n(OD))};
$D.\u0275prov=$c({token:$D,factory:$D.\u0275fac,providedIn:"root"});var ZVb=new Ad(""),aE=function(a,b,c,d,e){e=void 0===e?{}:e;this.urlSerializer=a;this.transitions=b;this.viewportScroller=c;this.zone=d;this.options=e;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};e.scrollPositionRestoration=e.scrollPositionRestoration||"disabled";e.anchorScrolling=e.anchorScrolling||"disabled"};
aE.prototype.init=function(){if("disabled"!==this.options.scrollPositionRestoration){var a=this.viewportScroller;AJb(a)&&(a.window.history.scrollRestoration="manual")}this.routerEventsSubscription=$Vb(this);this.scrollEventsSubscription=aWb(this)};
var $Vb=function(a){return a.transitions.events.subscribe(function(b){b instanceof Ak?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof wk?(a.lastId=b.id,bWb(a,a.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof zk&&0===b.code&&(a.lastSource=void 0,a.restoredId=0,bWb(a,a.urlSerializer.parse(b.url).fragment))})},aWb=function(a){return a.transitions.events.subscribe(function(b){if(b instanceof
RUb)if(b.position)"top"===a.options.scrollPositionRestoration?BJb(a.viewportScroller,[0,0]):"enabled"===a.options.scrollPositionRestoration&&BJb(a.viewportScroller,b.position);else if(b.anchor&&"enabled"===a.options.anchorScrolling){var c=a.viewportScroller;if(AJb(c)){a:{var d=c.document;b=b.anchor;var e=d.getElementById(b)||d.getElementsByName(b)[0];if(e)b=e;else{if("function"===typeof d.createTreeWalker&&d.body&&"function"===typeof d.body.attachShadow)for(d=d.createTreeWalker(d.body,NodeFilter.SHOW_ELEMENT),
e=d.currentNode;e;){if(e=e.shadowRoot)if(e=e.getElementById(b)||e.querySelector('[name="'+b+'"]')){b=e;break a}e=d.nextNode()}b=null}}if(b){e=b.getBoundingClientRect();d=e.left+c.window.pageXOffset;e=e.top+c.window.pageYOffset;var f=c.offset();c.window.scrollTo(d-f[0],e-f[1]);b.focus()}}}else"disabled"!==a.options.scrollPositionRestoration&&BJb(a.viewportScroller,[0,0])})},bWb=function(a,b){a.zone.runOutsideAngular(function(){setTimeout(function(){a.zone.run(function(){a.transitions.events.next(new RUb("popstate"===
a.lastSource?a.store[a.restoredId]:null,b))})},0)})};aE.prototype.ngOnDestroy=function(){var a;null==(a=this.routerEventsSubscription)||a.unsubscribe();var b;null==(b=this.scrollEventsSubscription)||b.unsubscribe()};aE.\u0275fac=function(){ee()};aE.\u0275prov=$c({token:aE,factory:aE.\u0275fac});new Ad("",{providedIn:"root",factory:function(){return!1}});var cWb=new Ad("",{factory:function(){return new B.Subject}}),dWb=new Ad("",{providedIn:"root",factory:function(){return 1}}),eWb=new Ad("");var fWb=new Ad("ROUTER_FORROOT_GUARD"),gWb=[$v,{provide:DD,useClass:ED},WD,ID,{provide:lk,useFactory:function(a){return a.routerState.root},deps:[WD]},OD,[]],bE=function(){};bE.\u0275fac=function(a){return new (a||bE)(n(fWb,8))};bE.\u0275mod=qd({type:bE});bE.\u0275inj=ad({});var hWb=new Ad("");new nu;var iWb={attributes:!1,childList:!0,subtree:!0},cE=function(a,b,c){var d=this;this.ngZone=a;this.router=b;this.activatedRoute=c;this.dom$=new B.Subject;this.cdr$=this.ngZone.onStable;this.xhr$=new B.Subject;this.render$=(0,B.merge)(this.dom$,this.cdr$);this.renderSettled$=this.render$.pipe(jf(200));this.navigatedTo$=this.router.events.pipe(cf(wta),A(function(){return vta(d.activatedRoute.snapshot)}));this.navigatedTo$.pipe(zf(function(e){return d.renderSettled$.pipe(nf(),A(function(){return e}))}),
wf(1));this.domObserver=new MutationObserver(function(){return void d.dom$.next()})},jWb=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,iWb)};cE.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;Xj[c]=~~Xj[c]+1;this.xhr$.next(c);return b.handle(a)};cE.\u0275fac=function(a){return new (a||cE)(n(Df),n(WD),n(lk))};cE.\u0275prov=$c({token:cE,factory:cE.\u0275fac,providedIn:"root"});var kWb={provide:qx,useExisting:cE,multi:!0};var Y=function(){this.destroyed$=new B.ReplaySubject(1);this.subscriptions=new B.Subscription};Y.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};Y.\u0275fac=function(a){return new (a||Y)};Y.\u0275dir=sd({type:Y});var dE=function(){};g=dE.prototype;g.debug=function(){Ck.apply(null,p(xd.apply(0,arguments)))};g.error=function(){zta.apply(null,p(xd.apply(0,arguments)))};g.info=function(){Dk.apply(null,p(xd.apply(0,arguments)))};g.log=function(){yta.apply(null,p(xd.apply(0,arguments)))};g.warn=function(){Ek.apply(null,p(xd.apply(0,arguments)))};dE.\u0275fac=function(a){return new (a||dE)};dE.\u0275prov=$c({token:dE,factory:dE.\u0275fac,providedIn:"root"});var eE=function(a){Y.call(this);var b=this;this.ngZone=a;this.activeSubject$=new B.BehaviorSubject(!1);this.active$=this.activeSubject$.pipe(mf(),Af(this.destroyed$),Ata(this.ngZone));this.onUserEvent=eGb(function(){b.activeSubject$.next(!0);lWb(b)},200);this.onVisibilityChange=function(){"hidden"===document.visibilityState?(b.activeSubject$.next(!1),clearTimeout(b.activeTimeoutId)):(b.activeSubject$.next(!0),lWb(b))}};W(eE,Y);eE.\u0275dir=Y.\u0275dir;
eE.prototype.install=function(){var a=this;if("visible"===document.visibilityState)this.onUserEvent();this.ngZone.runOutsideAngular(function(){window.addEventListener("click",a.onUserEvent);window.addEventListener("keydown",a.onUserEvent);window.addEventListener("mousemove",a.onUserEvent);window.addEventListener("wheel",a.onUserEvent);window.addEventListener("touchstart",a.onUserEvent);window.addEventListener("focus",a.onUserEvent)});document.addEventListener("visibilitychange",this.onVisibilityChange)};
eE.prototype.ngOnDestroy=function(){Y.prototype.ngOnDestroy.call(this);clearTimeout(this.activeTimeoutId);window.removeEventListener("click",this.onUserEvent);window.removeEventListener("keydown",this.onUserEvent);window.removeEventListener("mousemove",this.onUserEvent);window.removeEventListener("wheel",this.onUserEvent);window.removeEventListener("touchstart",this.onUserEvent);window.removeEventListener("focus",this.onUserEvent);document.removeEventListener("visibilitychange",this.onVisibilityChange)};
var lWb=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},3E3)};eE.\u0275fac=function(a){return new (a||eE)(n(Df))};eE.\u0275prov=$c({token:eE,factory:eE.\u0275fac,providedIn:"root"});var mWb=[wk,yk,xk],gE=function(a,b){Y.call(this);var c=this;this.router=a;this.activatedRoute=b;this.routeChangeStart=new B.Subject;this.routeChangeSuccess=new B.Subject;this.locationChangeStart=new B.Subject;this.locationChangeSuccess=new B.Subject;this.routeUpdate=new B.Subject;this.viewContentLoaded=new B.Subject;this.navigationEnd$=this.router.events.pipe(cf(wta));this.navigationOver$=this.router.events.pipe(cf(function(d){return mWb.some(function(e){return d instanceof e})}));fE(this,Ssa).subscribe(function(d){c.routeChangeStart.next({params:Object.assign({},
d.snapshot.queryParams,d.snapshot.params)})});a=fE(this,QUb);(0,B.merge)(this.navigationOver$.pipe(sf(B.NEVER)),this.routeChangeStart.pipe(sf(a))).pipe(zf(Ee),Af(this.destroyed$),cf(function(d){return d.snapshot.routeConfig.isRootRoute}),A(function(d){return{params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)}})).subscribe(function(d){c.routeChangeSuccess.next(d)});fE(this,Ak).pipe(A(function(d){return d.url}),mf()).subscribe(function(){c.locationChangeStart.next()});fE(this,wk).pipe(A(function(d){return d.url}),
mf()).subscribe(function(){c.locationChangeSuccess.next()});a=this.activatedRoute.queryParams.pipe(Cf(fE(this,HD)));(0,B.merge)(this.routeChangeStart.pipe(sf(B.NEVER)),this.navigationOver$.pipe(sf(a))).pipe(zf(Ee),Af(this.destroyed$)).subscribe(function(d){d=l(d);d.next();d=d.next().value;c.routeUpdate.next({params:d.state.root.params})});fE(this,wk).subscribe(function(){c.viewContentLoaded.next()})};W(gE,Y);gE.\u0275dir=Y.\u0275dir;
var fE=function(a,b){return a.router.events.pipe(cf(function(c){return c instanceof b}),A(function(c){return c}),Af(a.destroyed$))};gE.\u0275fac=function(a){return new (a||gE)(n(WD),n(lk))};gE.\u0275prov=$c({token:gE,factory:gE.\u0275fac,providedIn:"root"});var hE=function(a){this.executor=a},nWb=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:lj,body:Hqa(b)}).pipe(A(function(c){return tqa(c)}))};hE.\u0275fac=function(a){return new (a||hE)(n(tD))};hE.\u0275prov=$c({token:hE,factory:hE.\u0275fac,providedIn:"root"});var iE=function(a){this.userPreferencesManagerBase=a;this.destroyed$=new B.ReplaySubject(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(A(li));this.textDisplayPreferences$=this.preferences$.pipe(A(function(b){return b.textDisplayPreferences||{}}));this.textDisplayPreferencesSubject$=Fk(this.textDisplayPreferences$.pipe(Af(this.destroyed$)),{});this.lastPublishMode$=this.textDisplayPreferences$.pipe(A(function(b){return b.lastPublishMode}),
mf());this.lastPublishModeProto$=this.lastPublishMode$.pipe(A(Ki));this.themePreferences$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.themePreferences)?c:li(YC.themePreferences)}),Hk());this.listViewPreferences$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.listViewPreferences)?c:li(YC.listViewPreferences)}),Hk());this.layoutPreferences$=this.preferences$.pipe(A(this.getLayoutPreferences),Hk());this.dateTimePreferences$=this.preferences$.pipe(A(function(b){var c;return null!=
(c=b.dateTimePreferences)?c:li(YC.dateTimePreferences)}),Hk());this.homepagePreferences$=this.preferences$.pipe(A(this.getHomepagePreferences),Hk());this.keyboardPrefs$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.keyboardPreferences)?c:li(YC.keyboardPreferences)}),Hk());this.displayColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return null!=(d=null==(c=b.displayColumns)?void 0:c.column)?d:[]}),Hk());this.sortColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,
d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}),Hk());this.needsAttentionPreferences$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.needsAttentionPreferences)?c:li(YC.needsAttentionPreferences)}),Hk());this.bugScreensaverPreferences$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.bugScreensaverPreferences)?c:li(YC.bugScreensaverPreferences)}),Hk());this.bugScreensaverSubject$=Fk(this.bugScreensaverPreferences$.pipe(Af(this.destroyed$)),YC.bugScreensaverPreferences);
this.g3nPreferences$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.g3nPreferences)?c:li(YC.g3nPreferences)}),Hk());Fk(this.g3nPreferences$.pipe(Af(this.destroyed$)),YC.g3nPreferences);this.teamWarningPreferences$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.teamWarningPreferences)?c:li(YC.teamWarningPreferences)}),Hk());this.teamWarningPreferencesSubject$=Fk(this.teamWarningPreferences$.pipe(Af(this.destroyed$)),YC.teamWarningPreferences);this.commentFilterPreferences$=
this.preferences$.pipe(A(function(b){var c;return null!=(c=b.commentFilterPreferences)?c:li(YC.commentFilterPreferences)}),Hk());Fk(this.commentFilterPreferences$.pipe(Af(this.destroyed$)),YC.commentFilterPreferences);this.codeFont$=this.preferences$.pipe(A(function(b){return!!b.useCodefont}),mf());this.autoCcOnComment$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.autoCcOnComment)?c:!1}),mf());this.showFullHistory$=this.preferences$.pipe(A(function(b){return!!b.showFullHistory}),mf());
this.showRecentEventsFirst$=this.preferences$.pipe(A(function(b){return!!b.showRecentEventsFirst}),mf());this.showInlineImages$=this.preferences$.pipe(A(function(b){var c;return null!=(c=b.showInlineImages)?c:YC.showInlineImages}),mf())};iE.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};iE.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};
var oWb=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(A(a.getLayoutPreferences))},pWb=function(a,b){return a.save({homepagePreferences:b}).pipe(A(a.getHomepagePreferences))};iE.prototype.getDateTimePreferences=function(){var a;return null!=(a=(void 0).dateTimePreferences)?a:li(YC.dateTimePreferences)};
var qWb=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},rWb=function(a,b){var c;return null==(c=a.preferencesSubject$.value.collapsed)?void 0:c[b]},sWb=function(a,b){return a.save({displayColumns:{column:b}}).pipe(A(function(c){var d,e;return null!=(e=null==(d=c.displayColumns)?void 0:d.column)?e:[]}))};
iE.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(A(function(b){var c,d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}))};var tWb=function(a,b){return a.save({teamWarningPreferences:b}).pipe(A(function(c){var d;return null!=(d=c.teamWarningPreferences)?d:li(YC.teamWarningPreferences)}))};iE.prototype.getLayoutPreferences=function(a){var b;return null!=(b=a.layoutPreferences)?b:li(YC.layoutPreferences)};
iE.prototype.getHomepagePreferences=function(a){var b;return null!=(b=a.homepagePreferences)?b:li(YC.homepagePreferences)};var jE=function(a){return li(a.preferencesSubject$.getValue())};iE.\u0275fac=function(a){return new (a||iE)(n(kE))};iE.\u0275prov=$c({token:iE,factory:iE.\u0275fac,providedIn:"root"});
var kE=function(a,b){this.activeSession=a;this.userPreferencesResources=b;this.preferences$=new B.BehaviorSubject(li(YC));a=this.preferences$.value;if(b=this.activeSession.getUserPreferences())a=Object.assign({},a,b),uWb(a);this.preferences$.next(a)};kE.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?(0,B.of)(vWb(this,a)):nWb(this.userPreferencesResources,a).pipe(A(function(){return vWb(b,a)}))};
var vWb=function(a,b){var c=li(a.preferences$.value);c=Object.assign({},c,b);uWb(c);a.preferences$.next(c);return c},uWb=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=YC.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=YC.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=YC.dateTimePreferences.sloEtaViewAs));!a.notificationPreferences||
a.notificationPreferences.collaboratorPriority&&"UNKNOWN_PRIORITY"!==a.notificationPreferences.collaboratorPriority||(a.notificationPreferences.collaboratorPriority=YC.notificationPreferences.collaboratorPriority)};kE.\u0275fac=function(a){return new (a||kE)(n(Us),n(hE))};kE.\u0275prov=$c({token:kE,factory:kE.\u0275fac,providedIn:"root"});/*

 The MIT License (MIT)

 Copyright (c) 2016 Nick Richardson

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var wWb=function(a,b,c,d,e,f){this.combo=a;this.callback=b;this.allowIn=c;this.description=d;this.action=e;this.persistent=f;this.combo=Array.isArray(a)?a:[a];this.allowIn=c||[];this.description=d||""};
Qh.Object.defineProperties(wWb.prototype,{formatted:{configurable:!0,enumerable:!0,get:function(){if(!this._formatted){for(var a=this.combo[0].split(/[\s]/),b=0;b<a.length;b++){var c=b;var d={command:"\u2318",shift:"\u21e7",left:"\u2190",right:"\u2192",up:"\u2191",down:"\u2193","return":"\u23ce",backspace:"\u232b"};for(var e=a[b].split("+"),f=0;f<e.length;f++)"mod"===e[f]&&(window.navigator&&0<=window.navigator.platform.indexOf("Mac")?e[f]="command":e[f]="ctrl"),e[f]=d[e[f]]||e[f];d=e.join(" + ");
a[c]=d}this._formatted=a}return this._formatted}}});var xWb=new Ad("HotkeyOptions");var lE=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new B.Subject;this.preventIn=["INPUT","SELECT","TEXTAREA"];Mousetrap.prototype.stopCallback=function(b,c){return-1<(" "+c.className+" ").indexOf(" mousetrap ")?!1:c.contentEditable&&"true"===c.contentEditable};this.mousetrap=new Mousetrap;this.options.disableCheatSheet||this.add(new wWb(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new wWb("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=lE.prototype;
g.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=l(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(h,k){var q=!0;if(h){var u=h.target,x=u.nodeName.toUpperCase();-1<(" "+u.className+" ").indexOf(" mousetrap ")?q=!0:-1<c.preventIn.indexOf(x)&&-1===a.allowIn.map(function(y){return y.toUpperCase()}).indexOf(x)&&(q=!1)}if(q)return a.callback.apply(c,[h,k])},b);return a};
g.remove=function(a){var b=[];if(!a){var c=l(this.hotkeys);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}if(Array.isArray(a)){c=l(a);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}b=this.hotkeys.indexOf(a);return-1<b?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
g.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(this.get(c.value));return b}for(b=0;b<this.hotkeys.length;b++)if(-1<this.hotkeys[b].combo.indexOf(a))return this.hotkeys[b];return null};g.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
g.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return-1<b?(this.add(a),this.pausedHotkeys.splice(b,1)):null};g.reset=function(){this.mousetrap.reset()};lE.\u0275fac=function(a){return new (a||lE)(n(xWb))};lE.\u0275prov=$c({token:lE,factory:lE.\u0275fac});var mE=function(){};mE.\u0275fac=function(a){return new (a||mE)};mE.\u0275mod=qd({type:mE});mE.\u0275inj=ad({imports:[Sv]});var yWb;wca("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));
var zWb="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),nE=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},oE=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(yWb||(c={},yWb=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort=
"none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=yWb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},AWb=function(a,b){a=a.getAttribute("aria-"+b);return null==a||void 0==a?"":String(a)},pE=function(a,b){var c="";b&&(c=b.id);oE(a,"activedescendant",c)},BWb=function(a,b){oE(a,"label",b)};var qE=function(a,b,c,d){Y.call(this);var e=this;this.rawHotkeysService=c;this.ngZone=d;this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;this.stopCallback=function(f,h){if(!e.enabled||e.paused)h=!0;else if(-1<(" "+h.className+" ").indexOf(" mousetrap ")||h.classList.contains("has-hotkey"))h=!1;else{if(f=h.getAttribute)f=h.getAttribute("role")||null,f=va(zWb,f);h=f||"true"===h.contentEditable||"INPUT"===h.tagName&&"text"===h.type||"SELECT"===h.tagName||"TEXTAREA"===h.tagName||CWb(h)?!0:!1}return h};
b.keyboardPrefs$.pipe(Af(this.destroyed$)).subscribe(function(f){f&&(e.enabled=!!f.enableAllHotkeys)});a.routeChangeStart.pipe(Af(this.destroyed$)).subscribe(function(){e.unpause()});this.rawHotkeysService.mousetrap.stopCallback=this.stopCallback;this.destroyed$.subscribe(function(){DWb(e)})};W(qE,Y);qE.\u0275dir=Y.\u0275dir;qE.prototype.isEnabled=function(){return this.enabled};qE.prototype.isPaused=function(){return this.paused};
var rE=function(a,b){var c=b.title,d=b.hotkeys,e;b=null!=(e=a.hotkeyGroups.get(c))?e:[];a.hotkeyGroups.set(c,[].concat(p(b),p(d)));EWb(a);return function(){var f=new Set(d.map(function(q){return q.onPress})),h,k=(null!=(h=a.hotkeyGroups.get(c))?h:[]).filter(function(q){return!f.has(q.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);EWb(a)}},DWb=function(a){var b=[].concat(p(a.rawHotkeysService.hotkeys));b=l(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},EWb=function(a){DWb(a);for(var b=l(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){c=FWb(a,c.value);c=l(c);for(var d=c.next(),e={};!d.done;e={binding$jscomp$1:e.binding$jscomp$1},d=c.next())e.binding$jscomp$1=d.value,d=new wWb(Cra(e.binding$jscomp$1.key),function(f){return function(h){a.ngZone.run(function(){f.binding$jscomp$1.command()});h.stopPropagation();return!1}}(e),e.binding$jscomp$1.allowIn),a.rawHotkeysService.add(d)}},CWb=function(a){return[].concat(p(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return"static"===
b.style.position}).some(function(b){return b.contains(a)})},FWb=function(a,b){var c=[];b=l(b);for(var d=b.next(),e={};!d.done;e={hotkeySpec:e.hotkeySpec},d=b.next()){e.hotkeySpec=d.value;d=l(e.hotkeySpec.keys.entries());for(var f=d.next(),h={};!f.done;h={index$jscomp$1041:h.index$jscomp$1041},f=d.next()){var k=l(f.value);f=k.next().value;k=k.next().value;h.index$jscomp$1041=f;c.push(new GWb(k,function(q,u){return function(){a.ngZone.run(function(){q.hotkeySpec.onPress(u.index$jscomp$1041)})}}(e,h),
e.hotkeySpec.allowIn))}}saa(c,function(q,u){return q.strokeLength>u.strokeLength?-1:q.strokeLength<u.strokeLength?1:0});return c};qE.prototype.pause=function(){this.paused=!0};qE.prototype.unpause=function(){this.paused=!1};var HWb=function(a){return[].concat(p(a.hotkeyGroups.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:Sj(c,Cta)}})};qE.\u0275fac=function(a){return new (a||qE)(n(gE),n(iE),n(lE),n(Df))};
qE.\u0275prov=$c({token:qE,factory:qE.\u0275fac,providedIn:"root"});var GWb=function(a,b,c){c=void 0===c?[]:c;this.key=a;this.command=b;this.allowIn=c;a instanceof Array&&(this.strokeLength=a.length);this.strokeLength=1};var sE=function(a,b){Y.call(this);this.hotkeys=a;this.tooltip=b;this.hotkeyEnabled=!0;this.onHotkey=new Yu;this.hasHotkey=!0};W(sE,Y);sE.prototype.ngOnChanges=function(a){if("matTooltip"in a&&this.tooltip&&this.hotkeyEnabled){var b;a=null!=(b=this.hotkey.displayAs)?b:this.hotkey.keys.join("+");this.tooltip.message=this.matTooltip+" (Shortcut: "+a+")"}};
sE.prototype.ngOnInit=function(){var a=this;this.hotkeyEnabled&&this.subscriptions.add(rE(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};sE.\u0275fac=function(a){return new (a||sE)(z(qE),z(FB,8))};
sE.\u0275dir=sd({type:sE,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&Xf("has-hotkey",b.hasHotkey)},inputs:{hotkey:"hotkey",hotkeyEnabled:"hotkeyEnabled",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},features:[Jf,Fd]});var tE=function(){};tE.\u0275fac=function(a){return new (a||tE)};tE.\u0275mod=qd({type:tE});tE.\u0275inj=ad({});var uE=function(a){this.hotkeys=a};uE.prototype.ngOnInit=function(){this.hotkeys.pause()};uE.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};uE.\u0275fac=function(a){return new (a||uE)(z(qE))};
uE.\u0275cmp=od({type:uE,selectors:[["b-hotkeys-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-button","","mat-dialog-close","","type","button",1,"gmat-button","medium","primary"],["colspan","2"],[1,"bv2-hotkeys-header"],[1,"bv2-hotkeys-key"],[1,"bv2-hotkeys-value"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Keyboard shortcuts"),F(),D(2,"mat-dialog-content")(3,"table"),P(4,Eta,6,2,"thead",1),F()(),D(5,"mat-dialog-actions")(6,"button",2),Q(7,"Close"),F()());
a&2&&(w(4),C("ngForOf",HWb(b.hotkeys)))},dependencies:[Dv,Ez,Vz,Wz,Xz,Yz],encapsulation:2});var vE=function(){};vE.\u0275fac=function(a){return new (a||vE)};vE.\u0275mod=qd({type:vE});vE.\u0275inj=ad({imports:[aD,SB,Zz]});var Fta=window,Wta=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},IWb=function(a){if(Ik())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};var JWb={clear:function(){},getItem:function(){},removeItem:function(){},setItem:function(){}},Jk=window.localStorage||JWb,Izb=function(a){return function(){var b=Jk.getItem(a);if(null!=b)return b=Number(b),isNaN(b)?void 0:b}},KWb=function(a){return function(){var b=Jk.getItem(a);if(null!=b)return String(b)}},oAb=function(a){return function(b){null==b?Jk.removeItem(a):Jk.setItem(a,String(b))}},LWb=function(a){return function(b){null==b?Jk.removeItem(a):Jk.setItem(a,b)}},MWb=function(a){return function(){var b=
Kk(a)();Pta(a)(!b);return!b}},Ps=function(a){return function(){var b=Jk.getItem(a);if(null!=b)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+a+")"),console.warn(c)}}},Os=function(a){return function(b){null==b?Jk.removeItem(a):Jk.setItem(a,JSON.stringify(b))}};var Yta=Kk("debug-logging")(),Lk=window,NWb,Vta=!1;var OWb=function(a){this.allowExecution=a;this.queue=[]};OWb.prototype.addTask=function(a){this.queue.push(a);PWb(this)};var PWb=function(a){if(0!==a.queue.length)if(a.allowExecution()){var b=l(a.queue),c=b.next().value;a.queue=bf(b);c();PWb(a)}else setTimeout(function(){PWb(a)},0)};var wE=function(a,b,c,d){var e=this;this.location=a;this.platformLocation=b;this.activatedRoute=c;this.router=d;this.scheduler=new OWb(function(){return!e.router.navigationTransitions.currentNavigation})};g=wE.prototype;g.absUrl=function(){return this.platformLocation.href};g.hash=function(a,b){"undefined"!==typeof a&&this.setHash(null!=a?a:"",b);return this.getHash()};g.getHash=function(){var a;return null!=(a=this.activatedRoute.snapshot.fragment)?a:""};
g.setHash=function(a,b){var c=this;a=void 0===a?"":a;b=void 0===b?!1:b;this.addTask(function(){c.router.navigate([],{fragment:a,replaceUrl:b})})};g.path=function(a,b){"undefined"!==typeof a&&this.setPath(a,b);return this.getPath()};var QWb=function(a,b){a.path(b,!0)};g=wE.prototype;g.getPath=function(){var a=l(this.location.path().split("?")).next().value;return l(a.split("#")).next().value};
g.setPath=function(a,b){var c=this;a=void 0===a?"":a;b=void 0===b?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};g.search=function(a,b,c){"undefined"!==typeof a&&this.setSearch(a,b,c);return this.getSearch()};g.getSearch=function(){return kua(this.activatedRoute.snapshot.queryParamMap)};
g.setSearch=function(a,b,c){var d=this;c=void 0===c?!1:c;this.addTask(function(){var e={};d.router.navigate([],{relativeTo:d.activatedRoute,queryParams:(e[a]=b,e),queryParamsHandling:"merge",replaceUrl:c})})};g.url=function(a,b){return"undefined"===typeof a?this.getUrl():this.setUrl(a,b)};g.replaceUrl=function(a){return this.url(a,!0)};g.setUrl=function(a,b){var c=this;b=void 0===b?!1:b;return new Promise(function(d,e){c.addTask(function(){ws(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};
g.getUrl=function(){return this.location.path(!0)};g.addTask=function(a){this.scheduler.addTask(a)};wE.\u0275fac=function(a){return new (a||wE)(n($v),n(Vv),n(lk),n(WD))};wE.\u0275prov=$c({token:wE,factory:wE.\u0275fac,providedIn:"root"});var xE=function(a){this.bLocation=a};g=xE.prototype;g.createIssue=function(a){return Rk("issues/new",{params:a})};g.editIssue=function(a,b){return Qk(a,b)};g.listIssues=function(a){return Sk(a)};g.needsAttention=function(){return"attention"};g.viewSavedSearch=function(a){return Pk("savedsearches/:savedSearchId",{id:a,params:void 0})};var RWb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;a=a.bLocation.url();a=new Vo(a);b=new Vo(b);return a.getPath()===b.getPath()&&pC(a.queryData_.toString())===pC(b.queryData_.toString())};
g=xE.prototype;g.viewHotlist=function(a){return Pk("hotlists/:hotlistId",{id:a})};g.editHotlist=function(a){return Rk("hotlists/:hotlistId/edit",{id:a,tab:void 0})};g.createHotlist=function(){return"hotlists/new"};g.createBookmarkGroup=function(){return"bookmark-groups/new"};g.viewBookmarkGroup=function(a){return Pk("bookmark-groups/:groupId",{id:a})};g.editBookmarkGroup=function(a){return Rk("bookmark-groups/:groupId/edit",{id:a})};
g.editSavedSearch=function(a){return Rk("savedsearches/:savedSearchId/edit",{id:a})};g.dashboard=function(a){return Rk("dashboard/:groupId",{id:a})};g.issuesCsvAction=function(a,b,c,d,e){c=aua(c);d=bua(d);return bB("action/issues/csv","q",a,"trackerIds",b,"s",c,"c",d,"h",e)};g.hotlistIssuesCsvAction=function(a,b,c,d,e){a="action/hotlists/"+a+"/issues/csv";c=aua(c);(d=bua(d))&&(d="position,"+d);return bB(a,"trackerIds",b,"s",c,"c",d,"h",e)};g.toApiSortParamValue=function(a){return aua(a)};
g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return Rk("components",{params:void 0})};g.viewComponent=function(a,b){return Pk("components/:componentId",{id:a,tab:b})};g.manageComponent=function(a,b){return cua(a,b)};g.createComponent=function(a){return Rk("components/new",{params:a})};g.editComponent=function(a,b){return Rk("components/:componentId/edit",{id:a,tab:b})};
g.createSlo=function(){return Rk("slos/new",{params:void 0})};g.editSlo=function(a){return jua(a).path};g.listSlos=function(){return Rk("slos",{params:void 0})};g.getBaseUrl=function(){var a=this.bLocation.absUrl();a=a.slice(0,a.length-this.bLocation.url().length);"/"===a.charAt(a.length-1)&&(a=a.slice(0,a.length-1));return a};g.listHotlists=function(){return"hotlists"};g.settings=function(a){return dua(a)};g.home=function(){return Rk("home",{params:void 0})};
xE.\u0275fac=function(a){return new (a||xE)(n(wE))};xE.\u0275prov=$c({token:xE,factory:xE.\u0275fac,providedIn:"root"});var yE={},Wk=(yE.NEW=Vk("NEW",!0,"FORBIDDEN",10),yE.ASSIGNED=Vk("ASSIGNED",!0,"REQUIRED",20),yE.ACCEPTED=Vk("ACCEPTED",!0,"REQUIRED",30),yE.FIXED=Vk("FIXED",!1,"REQUIRED",40),yE.VERIFIED=Vk("VERIFIED",!1,"REQUIRED",50),yE.DUPLICATE=Vk("DUPLICATE",!1,"ALLOWED",60),yE.INFEASIBLE=Vk("INFEASIBLE",!1,"ALLOWED",70),yE.NOT_REPRODUCIBLE=Vk("NOT_REPRODUCIBLE",!1,"ALLOWED",80),yE.OBSOLETE=Vk("OBSOLETE",!1,"ALLOWED",90),yE.INTENDED_BEHAVIOR=Vk("INTENDED_BEHAVIOR",!1,"ALLOWED",100),yE),SWb=[Wk.NEW,Wk.ASSIGNED,
Wk.ACCEPTED,Wk.FIXED,Wk.VERIFIED,Wk.NOT_REPRODUCIBLE,Wk.INTENDED_BEHAVIOR,Wk.OBSOLETE,Wk.INFEASIBLE,Wk.DUPLICATE],TWb=SWb.map(function(a){return{value:a.status,displayText:a.displayValue}}),UWb=new Set(Object.values(wc(Wk,function(a){return"REQUIRED"===a.assigneeRequirement})));var lua=function(){this.assignee=this.reporter=this.team=null;this.assigneeEmail=void 0;this.verifier=null;this.verifierEmail=void 0;this.duplicateOfIssueId=this.inProd=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.lastViewedTime=this.verifiedTime=this.resolvedTime=this.blockedByIssueId=this.blockingIssueId=this.hotlistId=this.postmortem=this.changelist=this.collaborator=this.cc=null;this.customFieldMap={};this.customFieldNameToIdMap={};this.customFieldValueMap={};this.lastModifier=
this.ccCount=this.collaboratorCount=this.duplicateCount=this.voteCount=null;this.isClosed=this.isRead=this.selected=!1;this.sloEndTime=this.sloStartTime=this.sloStatus=this.position=this.effort=null;this.signals=[];this.issueAccessLevel=null};var zE=function(a,b,c){this.internalIssues=a;this.params=b;this.numTotalResults=c;this.numPages=Math.ceil(c/b.resultsPerPage);this.startIndex=(b.page-1)*b.resultsPerPage+1;this.endIndex=Math.min(this.startIndex+b.resultsPerPage-1,c);a=b.sortColumns;var d;!(d=0===a.length)&&(d=1===a.length)&&(a=a[0],d="ISSUE_ID"===a.fieldId.type&&"DESCENDING"===a.direction?!0:"CREATED_TIME"===a.fieldId.type?!0:"MODIFIED_TIME"===a.fieldId.type?!0:"POSITION"===a.fieldId.type?!0:!1);this.isPreSort=d;this.totalText=this.getTotalText(c,
b.page,b.resultsPerPage,this.isPreSort);this.numResults=c;this.changed$=new B.BehaviorSubject(this)},VWb=function(a,b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=nua(e,b.componentMap[sa(e.snapshot).componentId||0]);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new zE(d,a,b.numTotalResults)},WWb=function(a,b){var c=b.issuesWithSignals.map(function(d){var e,f=nua(d.issue,null!=(e=b.components[sa(d.issue.snapshot).componentId||0])?e:null);f.signals=d.signals;return f});return new zE(c,
a,b.numTotalResults)};zE.prototype.hasPreviousPage=function(){return 1<this.params.page};zE.prototype.hasNextPage=function(){return this.params.page<this.numPages};var AE=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return-1!==c?c+a.startIndex:-1};zE.prototype.getIssueIdFromIndex=function(a){if(a>=this.startIndex&&a<=this.endIndex&&(a-=this.startIndex,a<this.issues.length))return this.issues[a].issueId};
var XWb=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=AE(a,c.issueId);-1!==e&&(e-=a.startIndex,mua(a.issues[e],c,d),a.issues[e].selected=!1)}a.changed$.next(a)},YWb=function(a,b,c,d){b=AE(a,b);-1!==b&&(b-=a.startIndex,void 0!==d&&(a.issues[b].lastViewedTime=null!=d?d:null),void 0!==c&&(a.issues[b].isRead=c),void 0===c&&void 0===d&&(a.issues[b].isRead=!!a.issues[b].lastViewedTime&&a.issues[b].lastViewedTime>=a.issues[b].majorModifiedTime));
a.changed$.next(a)};zE.prototype.clone=function(){var a=new zE(this.internalIssues,this.params,this.numTotalResults);a.changed$.next(a);return a};zE.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};Qh.Object.defineProperties(zE.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});var ZWb=function(a,b,c,d,e){this.issueApi=a;this.hotlistApi=b;this.needsAttentionApi=c;this.paths=d;this.params=e;this.resultPromise=this.searchResultsPage=null};
ZWb.prototype.fetchIssues=function(){var a=this;if(1>this.params.page)return Promise.reject("Invalid page requested.");if(!this.resultPromise)if(this.params.fromNeedsAttention)this.resultPromise=this.needsAttentionApi.listIssues(this.params.sortColumns[0],this.params.trackerIds,this.params.selectedSignals);else if(this.params.hotlistId)this.resultPromise=this.hotlistApi.getPagedHotlistContent(this.params.hotlistId,this.params.page,this.params.resultsPerPage,this.params.sortColumns,this.params.trackerIds);
else{var b={p:this.params.page,count:this.params.resultsPerPage,trackerIds:this.params.trackerIds},c=this.paths.toApiSortParamValue(this.params.sortColumns);c&&(b.s=c);var d;this.resultPromise=this.issueApi.listIssues(null!=(d=this.params.query)?d:"",b)}return this.resultPromise.then(function(e){a.searchResultsPage||(a.searchResultsPage=a.params.fromNeedsAttention?WWb(a.params,e):VWb(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})};
var $Wb=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};var BE=function(){};BE.prototype.adapt=function(a){var b,c=new aXb(a.call.bind(a),a.split.bind(a),null!=(b=a.bufferTimeMs)?b:500,a.maxBatchSize||100);return c.get.bind(c)};BE.\u0275fac=function(a){return new (a||BE)};BE.\u0275prov=$c({token:BE,factory:BE.\u0275fac,providedIn:"root"});
var aXb=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new B.Subject;this.inputs$=this.inputSubject.pipe(aia(this.inputSubject.pipe(ff(this.bufferTimeMs,B.asapScheduler))));this.removeDuplicates=A(function(f){return[].concat(p(new Set(f)))});this.limitInputSize=A(function(f){for(var h=l(f.slice(e.maxBatchSize)),k=h.next();!k.done;k=h.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=
(0,B.pipe)(Xe(function(f){try{return e.batchCall(f).pipe(nf(),A(function(h){return{inputs:f,batchResponse:h,error:void 0}}),gf(function(h){return(0,B.of)({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return(0,B.of)({inputs:f,batchResponse:void 0,error:h})}}),vf());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
aXb.prototype.get=function(a){var b=this;return new B.Observable(function(c){c=b.batchResults$.pipe(cf(function(d){return d.inputs.has(a)}),nf(),A(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw d.error;})).subscribe(c);b.inputSubject.next(a);return c})};var bXb=function(a,b){this.childIterator_=a[da.Symbol.iterator]();this.mapFn_=b};bXb.prototype[Symbol.iterator]=function(){return this};bXb.prototype.next=function(){var a=this.childIterator_.next();return{value:a.done?void 0:this.mapFn_.call(void 0,a.value),done:a.done}};var cXb=function(a,b){return new bXb(a,b)};var CE=function(){};CE.prototype.next=function(){return dXb};var dXb={done:!0,value:void 0};CE.prototype.__iterator__=function(){return this};var eXb=function(a){if(a instanceof DE||a instanceof EE||a instanceof FE)return a;if("function"==typeof a.next)return new DE(function(){return a});if("function"==typeof a[Symbol.iterator])return new DE(function(){return a[Symbol.iterator]()});if("function"==typeof a.__iterator__)return new DE(function(){return a.__iterator__()});throw Error("Zb");},DE=function(a){this.func_=a};DE.prototype.__iterator__=function(){return new EE(this.func_())};DE.prototype[Symbol.iterator]=function(){return new FE(this.func_())};
DE.prototype.toEs6=function(){return new FE(this.func_())};var EE=function(a){this.iter_=a};W(EE,CE);EE.prototype.next=function(){return this.iter_.next()};EE.prototype[Symbol.iterator]=function(){return new FE(this.iter_)};EE.prototype.toEs6=function(){return new FE(this.iter_)};var FE=function(a){DE.call(this,function(){return a});this.iter_=a};W(FE,DE);FE.prototype.next=function(){return this.iter_.next()};var GE=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("V");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};g=GE.prototype;g.getCount=function(){return this.size};g.getValues=function(){HE(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){HE(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return IE(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(IE(this.map_,c)&&this.map_[c]==a)return!0}return!1};g.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||fXb;HE(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var fXb=function(a,b){return a===b};GE.prototype.isEmpty=function(){return 0==this.size};
GE.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};GE.prototype.remove=function(a){return this.delete(a)};GE.prototype.delete=function(a){return IE(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&HE(this),!0):!1};
var HE=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];IE(a.map_,d)&&(a.keys_[c++]=d);b++}a.keys_.length=c}if(a.size!=a.keys_.length){var e={};for(c=b=0;b<a.keys_.length;)d=a.keys_[b],IE(e,d)||(a.keys_[c++]=d,e[d]=1),b++;a.keys_.length=c}};g=GE.prototype;g.get=function(a,b){return IE(this.map_,a)?this.map_[a]:b};g.set=function(a,b){IE(this.map_,a)||(this.setSizeInternal_(this.size+1),this.keys_.push(a),this.version_++);this.map_[a]=b};
g.addAll=function(a){if(a instanceof GE)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};g.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new GE(this)};g.keys=function(){return eXb(this.__iterator__(!0)).toEs6()};g.values=function(){return eXb(this.__iterator__(!1)).toEs6()};g.entries=function(){var a=this;return cXb(this.keys(),function(b){return[b,a.get(b)]})};
g.__iterator__=function(a){HE(this);var b=0,c=this.version_,d=this,e=new CE;e.next=function(){if(c!=d.version_)throw Error("$b");if(b>=d.keys_.length)return dXb;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var IE=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var JE=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new GE;this.head_=new gXb("");this.head_.next=this.head_.prev=this.head_},iXb=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),hXb(a,b));return b};JE.prototype.get=function(a,b){return(a=iXb(this,a))?a.value:b};var jXb=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=JE.prototype;g.set=function(a,b){var c=iXb(this,a);c?c.value=b:(c=new gXb(a,b),this.map_.set(a,c),hXb(this,c))};
g.shift=function(){return kXb(this,this.head_.next)};g.pop=function(){return kXb(this,this.head_.prev)};g.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};g.removeNode=function(a){a.remove();this.map_.remove(a.key)};g.getCount=function(){return this.map_.getCount()};g.isEmpty=function(){return this.map_.isEmpty()};g.getKeys=function(){return this.map(function(a,b){return b})};g.getValues=function(){return this.map(function(a){return a})};
g.contains=function(a){return this.some(function(b){return b==a})};g.containsKey=function(a){return this.map_.containsKey(a)};g.clear=function(){lXb(this,0)};g.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};g.map=function(a,b){for(var c=[],d=this.head_.next;d!=this.head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};g.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};
g.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
var hXb=function(a,b){a.cache_?(b.next=a.head_.next,b.prev=a.head_,a.head_.next=b,b.next.prev=b):(b.prev=a.head_.prev,b.next=a.head_,a.head_.prev=b,b.prev.next=b);null!=a.maxCount_&&lXb(a,a.maxCount_)},lXb=function(a,b){for(;a.getCount()>b;){var c=a.cache_?a.head_.prev:a.head_.next;a.removeNode(c);a.evictionCallback_&&a.evictionCallback_(c.key,c.value)}},kXb=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},gXb=function(a,b){this.key=a;this.value=b};
gXb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var KE=function(){this.caches=new Map};KE.prototype.create=function(a,b){if(this.caches.has(a))throw Error("ac`"+a);b=new LE(null==b?void 0:b.capacity);this.caches.set(a,b);return b};KE.prototype.get=function(a){return this.caches.get(a)};KE.\u0275fac=function(a){return new (a||KE)};KE.\u0275prov=$c({token:KE,factory:KE.\u0275fac,providedIn:"root"});var LE=function(a){this.lruCache=new JE(a,!0)};LE.prototype.get=function(a){return this.lruCache.get(a)};
LE.prototype.put=function(a,b){void 0!==b&&this.lruCache.set(a,b);return b};LE.prototype.remove=function(a){this.lruCache.remove(a)};LE.prototype.removeAll=function(){this.lruCache.clear()};var dl=function(a){this.internalArray_=m(a)};W(dl,X);g=dl.prototype;g.getType=function(){return Vi(this,1,0)};g.setType=function(a){return rj(this,1,a)};g.hasType=function(){return Ti(this,1)};g.getCustomFieldId=function(){return Yi(this,2)};g.setCustomFieldId=function(a){wj(this,2,a)};g.hasCustomFieldId=function(){return Xi(this,2)};var el=function(a){this.internalArray_=m(a)};W(el,X);el.prototype.getField=function(){return Fi(this,dl,1)};el.prototype.setField=function(a){oj(this,dl,1,a)};el.prototype.getDirection=function(){return Vi(this,2,0)};el.prototype.setDirection=function(a){return rj(this,2,a)};var ME={},uua=(ME[0]="",ME[1]="issue_id",ME[3]="type",ME[4]="status",ME[5]="priority",ME[6]="severity",ME[18]="title",ME[15]="modified_time",ME[14]="created_time",ME[17]="verified_time",ME[16]="resolved_time",ME[38]="deletion_time",ME[13]="blocked_by_issue_ids",ME[12]="blocking_issue_ids",ME[26]="vote_count",ME[28]="cc_count",ME[44]="collaborators_count",ME[2]="component_path",ME[27]="duplicate_count",ME[10]="ccs",ME[43]="collaborators",ME[11]="code_changes",ME[33]="postmortems",ME[8]="assignee",
ME[9]="verifier",ME[7]="reporter",ME[19]="found_in_versions",ME[20]="targeted_to_versions",ME[21]="verified_in_versions",ME[22]="in_prod",ME[30]="last_modifier",ME[25]="position",ME[24]="custom_field",ME[29]="modified_by",ME[31]="archived",ME[32]="canonical_issue_id",ME[34]="min_slo",ME[35]="assignment_slo",ME[36]="response_slo",ME[37]="closure_slo",ME[39]="team",ME[40]="estimate",ME[41]="estimate_total_open",ME[42]="estimate_total_complete",ME[23]="duplicate_of_issue_id",ME[45]="access_level",ME),
NE={},wua=(NE[""]=0,NE.issue_id=1,NE.type=3,NE.status=4,NE.priority=5,NE.severity=6,NE.title=18,NE.modified_time=15,NE.created_time=14,NE.verified_time=17,NE.resolved_time=16,NE.deletion_time=38,NE.blocked_by_issue_ids=13,NE.blocking_issue_ids=12,NE.vote_count=26,NE.cc_count=28,NE.collaborators_count=44,NE.component_path=2,NE.duplicate_count=27,NE.ccs=10,NE.collaborators=43,NE.code_changes=11,NE.postmortems=33,NE.assignee=8,NE.verifier=9,NE.reporter=7,NE.found_in_versions=19,NE.targeted_to_versions=
20,NE.verified_in_versions=21,NE.in_prod=22,NE.last_modifier=30,NE.position=25,NE.custom_field=24,NE.modified_by=29,NE.archived=31,NE.canonical_issue_id=32,NE.min_slo=34,NE.assignment_slo=35,NE.response_slo=36,NE.closure_slo=37,NE.team=39,NE.estimate=40,NE.estimate_total_open=41,NE.estimate_total_complete=42,NE.duplicate_of_issue_id=23,NE);var gl=function(a){this.internalArray_=m(a)};W(gl,X);gl.prototype.getDisplayColumns=function(){return xt(this,1)};gl.prototype.setDisplayColumns=function(a){Dt(this,1,a)};gl.repeatedFields_=[1];var rl=function(a){this.internalArray_=m(a)};W(rl,X);g=rl.prototype;g.getHotlistId=function(){return dj(this,1)};g.setHotlistId=function(a){return um(this,1,a)};g.getName=function(){return Hi(this,2)};g.setName=function(a){return wm(this,2,a)};g.getDescription=function(){return Hi(this,3)};g.setDescription=function(a){return wm(this,3,a)};g.getArchived=function(){return Ri(this,4)};g.setArchived=function(a){return ho(this,4,a)};g.getDefaultOrderBy=function(){return Hi(this,5)};
g.setDefaultOrderBy=function(a){return wm(this,5,a)};g.getDisplayPreferences=function(){return Fi(this,gl,6)};g.setDisplayPreferences=function(a){return oj(this,gl,6,a)};g.getCreatedTime=function(){return Fi(this,gj,7)};g.setCreatedTime=function(a){return oj(this,gj,7,a)};g.getModifiedTime=function(){return Fi(this,gj,8)};g.setModifiedTime=function(a){return oj(this,gj,8,a)};g.getOwnersList=function(){return Ji(this,ml,9)};g.setOwnersList=function(a){return om(this,9,a)};
g.getEtag=function(){return Kxa(this,10)};g.setEtag=function(a){bc(this,10,hc(a),Oa())};rl.repeatedFields_=[9];var Kua=Kk("lean-fe-debug-logging");var ql=function(a){this.internalArray_=m(a,0,ql.messageId)};W(ql,X);g=ql.prototype;g.getHotlistId=function(){return Yi(this,1)};g.setHotlistId=function(a){return wj(this,1,a)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return qj(this,3,a)};g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};g.getDescription=function(){return Hi(this,4)};g.setDescription=function(a){return qj(this,4,a)};g.hasDescription=function(){return Ii(this,4)};
g.getArchived=function(){return Ri(this,6)};g.setArchived=function(a){return mj(this,6,a)};g.getDisplayColumnList=function(){return Ji(this,dl,8)};g.setDisplayColumnList=function(a){om(this,8,a)};g.getSortOrderList=function(){return Ji(this,el,9)};g.setSortOrderList=function(a){om(this,9,a)};g.getCreatedTimeMicros=function(){return dj(this,10)};g.setCreatedTimeMicros=function(a){xj(this,10,a)};g.getModifiedTimeMicros=function(){return dj(this,11)};g.setModifiedTimeMicros=function(a){xj(this,11,a)};
g.getAdminUsersList=function(){return Ji(this,Bi,14)};g.setAdminUsersList=function(a){om(this,14,a)};g.getEtag=function(){return Hi(this,15)};g.setEtag=function(a){qj(this,15,a)};g.hasEtag=function(){return Ii(this,15)};g.getIt=function(){return Fi(this,rl,18)};g.setIt=function(a){return oj(this,rl,18,a)};g.hasIt=function(){return Zi(this,rl,18)};ql.repeatedFields_=[8,9,14];ql.messageId="b.Hotlist";var Lua=pl("enableLeanFeB"),Mua=pl("enableLeanFeE");var tl=function(a){this.internalArray_=m(a,0,tl.messageId)};W(tl,X);tl.prototype.getAccessLevel=function(){return Vi(this,1,0)};tl.prototype.setAccessLevel=function(a){return rj(this,1,a)};tl.messageId="b.AccessLimit";var xl=function(a){this.customFieldId=a.customFieldId;this.displayValues=a.displayValues;this.textValue=a.textValue;this.dateValue=a.dateValue;this.enumValue=a.enumValue;this.numericValue=a.numericValue;this.repeatedTextValue=a.repeatedTextValue;this.repeatedDateValue=a.repeatedDateValue;this.repeatedEnumValue=a.repeatedEnumValue;this.repeatedNumericValue=a.repeatedNumericValue};
xl.prototype.getValue=function(){return 0===this.numericValue?this.numericValue:this.textValue||this.dateValue||this.enumValue||this.numericValue||this.repeatedTextValue||this.repeatedDateValue||this.repeatedEnumValue||this.repeatedNumericValue||null};xl.prototype.isEmpty=function(){var a=this.getValue();return null==a?!0:"string"===typeof a?""===a:"number"===typeof a?!1:null!=a.values?0===a.values.length:!a||!a.day||!a.month||!a.year};var wl=function(){this.required=!1;this.allowedValue=null;this.stateOnIssues="INHERIT";this.shared=!1;this.type="TEXT";this.fieldSignificance="MINOR"};wl.prototype.isDate=function(){return"DATE"===this.type};wl.prototype.isText=function(){return"TEXT"===this.type};wl.prototype.isNumeric=function(){return"NUMERIC"===this.type};wl.prototype.isRepeated=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var Il=function(a){this.internalArray_=m(a)};W(Il,X);Il.prototype.getValuesList=function(){return Ji(this,hl,1)};Il.prototype.setValuesList=function(a){om(this,1,a)};Il.prototype.setValues=function(a,b){rt(this,1,hl,a,b)};Il.repeatedFields_=[1];var Hl=function(a){this.internalArray_=m(a)};W(Hl,X);Hl.prototype.getValuesList=function(){return yFb(this,1)};Hl.prototype.setValuesList=function(a){ac(this,1,a,Xaa)};Hl.prototype.getValues=function(a){var b=yFb(this,1,void 0,2);kb(b,a);return b[a]};Hl.prototype.setValues=function(a,b){dc(this,1,a,Xaa(b),yFb)};Hl.repeatedFields_=[1];var Gl=function(a){this.internalArray_=m(a)};W(Gl,X);Gl.prototype.getValuesList=function(){return ii(this,1)};Gl.prototype.setValuesList=function(a){yj(this,1,a)};Gl.prototype.getValues=function(a){return xt(this,1,a)};Gl.prototype.setValues=function(a,b){Dt(this,1,a,b)};Gl.repeatedFields_=[1];var Al=function(a){this.internalArray_=m(a)};W(Al,X);g=Al.prototype;g.getCustomFieldId=function(){return Yi(this,1)};g.setCustomFieldId=function(a){wj(this,1,a)};g.hasCustomFieldId=function(){return Xi(this,1)};g.getDisplayValues=function(){return xt(this,12)};g.setDisplayValues=function(a,b){Dt(this,12,a,b)};g.getDateValue=function(){return Fl(this,hl,5,Cl)};Al.repeatedFields_=[12];var Cl=[4,5,6,7,8,9,10,11];var Ml=function(a){this.internalArray_=m(a)};W(Ml,X);g=Ml.prototype;g.getCustomFieldId=function(){return Yi(this,1)};g.setCustomFieldId=function(a){wj(this,1,a)};g.hasCustomFieldId=function(){return Xi(this,1)};g.getComponentId=function(){return Yi(this,2)};g.setComponentId=function(a){return wj(this,2,a)};g.hasComponentId=function(){return Xi(this,2)};g.getType=function(){return Vi(this,3,0)};g.setType=function(a){return rj(this,3,a)};g.hasType=function(){return Ti(this,3)};
g.getName=function(){return Hi(this,5)};g.setName=function(a){return qj(this,5,a)};g.hasName=function(){return Ii(this,5)};g.getNameOrUndefined=function(){return At(this,5)};g.getDescription=function(){return Hi(this,6)};g.setDescription=function(a){return qj(this,6,a)};g.hasDescription=function(){return Ii(this,6)};g.setFieldSignificance=function(a){return rj(this,9,a)};g.getStateOnIssues=function(){return Vi(this,11,0)};g.setStateOnIssues=function(a){return rj(this,11,a)};
g.getEnabledOnIssues=function(){return Ri(this,12)};g.setEnabledOnIssues=function(a){return mj(this,12,a)};g.getShared=function(){return Ri(this,13)};g.setShared=function(a){mj(this,13,a)};Ml.repeatedFields_=[8];var zl=function(a){this.internalArray_=m(a,0,zl.messageId)};W(zl,X);g=zl.prototype;g.getCustomFieldId=function(){return dj(this,Dl(this,OE,1))};g.setCustomFieldId=function(a){Kl(this,1,OE,wb(a))};g.hasCustomFieldId=function(){return null!=Wm(this,Dl(this,OE,1))};g.getStandardField=function(){return Vi(this,Dl(this,OE,2),0)};g.setStandardField=function(a){Kl(this,2,OE,a)};var OE=[1,2];zl.messageId="b.FieldId";var Ol=function(a){this.internalArray_=m(a)};W(Ol,X);g=Ol.prototype;g.getUser=function(){return Fl(this,Bi,1,Nl)};g.setUser=function(a){Ll(this,1,Nl,a)};g.hasUser=function(){return Tl(this,Bi,1,Nl)};g.getGroup=function(){return Fl(this,Bi,2,Nl)};g.setGroup=function(a){Ll(this,2,Nl,a)};var Nl=[1,2,3];var PE=function(a){this.internalArray_=m(a,0,PE.messageId)};W(PE,X);g=PE.prototype;g.getAppendersList=function(){return Ji(this,Ol,6)};g.setAppendersList=function(a){om(this,6,a)};g.getReadersList=function(){return Ji(this,Ol,8)};g.setReadersList=function(a){om(this,8,a)};g.setImplicitAccess=function(a){return rj(this,10,a)};PE.repeatedFields_=[2,3,4,5,6,7,8,9,11,12];PE.messageId="b.AccessPolicy";var Sl=function(a){this.internalArray_=m(a,0,Sl.messageId)};W(Sl,X);g=Sl.prototype;g.getResourcePath=function(){return Hi(this,2)};g.setResourcePath=function(a){return qj(this,2,a)};g.hasResourcePath=function(){return Ii(this,2)};g.getSeverity=function(){return Vi(this,3,0)};g.setSeverity=function(a){return rj(this,3,a)};g.hasSeverity=function(){return Ti(this,3)};g.getJudgementReason=function(){return Hi(this,4)};g.setJudgementReason=function(a){return qj(this,4,a)};Sl.messageId="b.ContentJudgement";var Yl=function(a){this.internalArray_=m(a)};W(Yl,X);Yl.prototype.getContent=function(){return Fi(this,Dj,1)};Yl.prototype.setContent=function(a){return oj(this,Dj,1,a)};Yl.prototype.hasContent=function(){return Zi(this,Dj,1)};var Xl=function(a){this.internalArray_=m(a)};W(Xl,X);Xl.prototype.getContent=function(){return Fi(this,Dj,1)};Xl.prototype.setContent=function(a){return oj(this,Dj,1,a)};Xl.prototype.hasContent=function(){return Zi(this,Dj,1)};var Wl=function(a){this.internalArray_=m(a)};W(Wl,X);Wl.prototype.getContent=function(){return Fi(this,Dj,2)};Wl.prototype.setContent=function(a){return oj(this,Dj,2,a)};Wl.prototype.hasContent=function(){return Zi(this,Dj,2)};var Ul=function(a){this.internalArray_=m(a)};W(Ul,X);Ul.repeatedFields_=[1];var Km=function(a){this.internalArray_=m(a)};W(Km,X);Km.prototype.getKindCase=function(){return Bl(this,Vl)};var Vl=[1,2,3];var am=function(a){this.internalArray_=m(a)};W(am,X);am.prototype.getLabel=function(){return Hi(this,1)};am.prototype.setLabel=function(a){return wm(this,1,a)};am.prototype.getValue=function(){return El(this,2)};am.prototype.setValue=function(a){return bc(this,2,nb(a),0)};var $l=function(a){this.internalArray_=m(a)};W($l,X);var Nva=function(a,b){return om(a,1,b)};$l.prototype.setOptions=function(a){rt(this,1,am,a)};$l.repeatedFields_=[1];var Lva=function(a){this.internalArray_=m(a)};W(Lva,X);var Kva=function(a,b){return bc(a,1,nb(b),0)};var Zl=function(a){this.internalArray_=m(a)};W(Zl,X);g=Zl.prototype;g.getInherit=function(){return Ri(this,1)};g.setInherit=function(a){ho(this,1,a)};g.getId=function(){return dj(this,2)};g.setId=function(a){return um(this,2,a)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return wm(this,3,a)};var Jva=function(a,b){Ll(a,4,Sm,b)},Mva=function(a,b){Ll(a,5,Sm,b)};Zl.prototype.getCustomFieldId=function(){return dj(this,100)};Zl.prototype.setCustomFieldId=function(a){um(this,100,a)};
var Sm=[4,5];var dm=function(a){this.internalArray_=m(a)};W(dm,X);dm.prototype.getSeverity=function(){return Vi(this,1,0)};dm.prototype.setSeverity=function(a){return rj(this,1,a)};dm.prototype.hasSeverity=function(){return Ti(this,1)};var Rxa=function(a){this.internalArray_=m(a)};W(Rxa,X);var cm=function(a){this.internalArray_=m(a)};W(cm,X);cm.prototype.hasRetentionSelection=function(){return Ti(this,1)};var Fm=function(a){this.internalArray_=m(a,0,Fm.messageId)};W(Fm,X);g=Fm.prototype;g.getRetentionPeriod=function(){return Fi(this,ll,1)};g.setRetentionPeriod=function(a){oj(this,ll,1,a)};g.getScheduledDeletionTime=function(){return Fi(this,gj,2)};g.setScheduledDeletionTime=function(a){oj(this,gj,2,a)};g.getIt=function(){return Fi(this,Gm,3)};g.setIt=function(a){return oj(this,Gm,3,a)};g.hasIt=function(){return Zi(this,Gm,3)};Fm.messageId="b.RetentionState";var Tva=pl("enableLeanFeF");var im=function(a){this.internalArray_=m(a)};W(im,X);g=im.prototype;g.getHours=function(){return hi(this,1)};g.setHours=function(a){return il(this,1,a)};g.getMinutes=function(){return hi(this,2)};g.setMinutes=function(a){return il(this,2,a)};g.getSeconds=function(){return hi(this,3)};g.setSeconds=function(a){return il(this,3,a)};g.getNanos=function(){return hi(this,4)};g.setNanos=function(a){return il(this,4,a)};var jm=function(a){this.internalArray_=m(a)};W(jm,X);g=jm.prototype;g.getId=function(){return dj(this,1)};g.setId=function(a){return xj(this,1,a)};g.setFrequency=function(a){return bm(this,3,a)};g.getTimeZone=function(){return Fi(this,km,5)};g.setTimeZone=function(a){return oj(this,km,5,a)};g.hasTimeZone=function(){return Zi(this,km,5)};var QE=function(a){this.internalArray_=m(a)};W(QE,X);QE.prototype.getTeamId=function(){return dj(this,1)};QE.prototype.setTeamId=function(a){return um(this,1,a)};QE.prototype.getEffectiveSloEditPolicy=function(){return Vi(this,3,0)};var gm=function(a){this.internalArray_=m(a)};W(gm,X);g=gm.prototype;g.getInherit=function(){return Ri(this,1)};g.setInherit=function(a){mj(this,1,a)};g.getSource=function(){return Vi(this,2,0)};g.setSource=function(a){return rj(this,2,a)};g.hasSource=function(){return Ti(this,2)};g.getSourceOrUndefined=function(){return Xr(this,2)};g.getId=function(){return Yi(this,3)};g.setId=function(a){return wj(this,3,a)};g.getSourceTeamId=function(){return Yi(this,5)};
g.setSourceTeamId=function(a){wj(this,5,a)};g.getComment=function(){return Hi(this,4)};g.setComment=function(a){qj(this,4,a)};var fm=function(a){this.internalArray_=m(a)};W(fm,X);g=fm.prototype;g.getStartTime=function(){return Fi(this,gj,1)};g.setStartTime=function(a){oj(this,gj,1,a)};g.getEndTime=function(){return Fi(this,gj,2)};g.setEndTime=function(a){oj(this,gj,2,a)};g.getTargetTime=function(){return Fi(this,gj,3)};g.setTargetTime=function(a){oj(this,gj,3,a)};g.getObjective=function(){return Fi(this,ll,4)};g.setObjective=function(a){return oj(this,ll,4,a)};g.getBusinessDays=function(){return hi(this,5)};
g.setBusinessDays=function(a){return nj(this,5,a)};g.getDayType=function(){return Vi(this,6,0)};g.setDayType=function(a){return rj(this,6,a)};var lm=function(a){this.internalArray_=m(a)};W(lm,X);g=lm.prototype;g.getMetric=function(){return Vi(this,1,0)};g.getMatcher=function(){return Hi(this,2)};g.setMatcher=function(a){return qj(this,2,a)};g.getDayType=function(){return Vi(this,4,0)};g.setDayType=function(a){return rj(this,4,a)};g.getObjective=function(){return Fi(this,ll,3)};g.setObjective=function(a){return oj(this,ll,3,a)};g.getBusinessDays=function(){return hi(this,5)};g.setBusinessDays=function(a){return nj(this,5,a)};var nm=function(a){this.internalArray_=m(a,0,nm.messageId)};W(nm,X);g=nm.prototype;g.getSloId=function(){return Yi(this,1)};g.setSloId=function(a){return wj(this,1,a)};g.getVersion=function(){return hi(this,2)};g.setVersion=function(a){return nj(this,2,a)};g.getVersionOrUndefined=function(){return yt(this,2)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return qj(this,3,a)};g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};
g.getDescription=function(){return Hi(this,4)};g.setDescription=function(a){return qj(this,4,a)};g.hasDescription=function(){return Ii(this,4)};g.getParentId=function(){return Yi(this,5)};g.setParentId=function(a){return wj(this,5,a)};g.getIsArchived=function(){return Ri(this,8)};g.setIsArchived=function(a){return mj(this,8,a)};nm.repeatedFields_=[6,7];nm.messageId="b.SloState";var Hm=function(a){this.internalArray_=m(a)};W(Hm,X);g=Hm.prototype;g.getAssignmentBounds=function(){return Fi(this,fm,1)};g.setAssignmentBounds=function(a){oj(this,fm,1,a)};g.hasAssignmentBounds=function(){return Zi(this,fm,1)};g.getResponseBounds=function(){return Fi(this,fm,2)};g.setResponseBounds=function(a){oj(this,fm,2,a)};g.hasResponseBounds=function(){return Zi(this,fm,2)};g.getClosureBounds=function(){return Fi(this,fm,3)};g.setClosureBounds=function(a){oj(this,fm,3,a)};
g.hasClosureBounds=function(){return Zi(this,fm,3)};g.getIt=function(){return Fi(this,Im,4)};g.setIt=function(a){return oj(this,Im,4,a)};g.hasIt=function(){return Zi(this,Im,4)};var Ywa=pl("enableLeanFeF");var RE=function(a){this.internalArray_=m(a,0,RE.messageId)};W(RE,X);RE.prototype.getIssueId=function(){return Yi(this,1)};RE.prototype.setIssueId=function(a){return wj(this,1,a)};RE.prototype.getReason=function(){return Vi(this,2,0)};RE.prototype.setReason=function(a){rj(this,2,a)};RE.messageId="b.DeleteIssueRequest";var Swa=function(a){this.internalArray_=m(a)};W(Swa,X);g=Swa.prototype;g.getFieldName=function(){return Hi(this,1)};g.setFieldName=function(a){qj(this,1,a)};g.getValue=function(){return Hi(this,2)};g.setValue=function(a){return qj(this,2,a)};g.hasValue=function(){return Ii(this,2)};g.setActionType=function(a){rj(this,3,a)};g.getCustomFieldValue=function(){return Fi(this,Al,5)};g.setCustomFieldValue=function(a){return oj(this,Al,5,a)};g.clearCustomFieldValue=function(){return st(this,5)};
g.hasCustomFieldValue=function(){return Zi(this,Al,5)};var ym=function(a){this.internalArray_=m(a)};W(ym,X);ym.prototype.getAccessLevel=function(){return Vi(this,1,0)};ym.prototype.setAccessLevel=function(a){return rj(this,1,a)};var xm=function(a){this.internalArray_=m(a,0,xm.messageId)};W(xm,X);g=xm.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getIssueAccessLimit=function(){return Fi(this,ym,2)};g.setIssueAccessLimit=function(a){oj(this,ym,2,a)};g.setAddedCollaboratorsList=function(a){om(this,3,a)};g.setRemovedCollaboratorsList=function(a){om(this,4,a)};xm.repeatedFields_=[3,4];xm.messageId="b.GetRetainedAccessPrincipalsRequest";var Em=function(a){this.internalArray_=m(a)};W(Em,X);g=Em.prototype;g.getCreatedTimeMicros=function(){return dj(this,2)};g.setCreatedTimeMicros=function(a){xj(this,2,a)};g.getModifiedTimeMicros=function(){return dj(this,3)};g.setModifiedTimeMicros=function(a){xj(this,3,a)};g.getSloStatus=function(){return Fi(this,Hm,6)};g.setSloStatus=function(a){oj(this,Hm,6,a)};g.hasSloStatus=function(){return Zi(this,Hm,6)};g.getSloId=function(){return Yi(this,7)};g.setSloId=function(a){return wj(this,7,a)};
g.getTeamId=function(){return Yi(this,9)};g.setTeamId=function(a){return wj(this,9,a)};g.getRetentionState=function(){return Fi(this,Fm,8)};g.setRetentionState=function(a){oj(this,Fm,8,a)};var pn=function(a){this.internalArray_=m(a,0,pn.messageId)};W(pn,X);g=pn.prototype;g.getCount=function(){return dj(this,2)};g.setCount=function(a){return xj(this,2,a)};g.getType=function(){return Vi(this,4,0)};g.setType=function(a){return rj(this,4,a)};g.hasType=function(){return Ti(this,4)};pn.repeatedFields_=[3];pn.messageId="b.ReactionState";var on=function(a){this.internalArray_=m(a,0,on.messageId)};W(on,X);on.repeatedFields_=[1];on.messageId="b.CommentReaction";var SE=function(a){this.internalArray_=m(a)};W(SE,X);g=SE.prototype;g.getStatus=function(){return Vi(this,1,0)};g.setStatus=function(a){return rj(this,1,a)};g.hasStatus=function(){return Ti(this,1)};g.getReason=function(){return Vi(this,2,0)};g.setReason=function(a){rj(this,2,a)};var TE=function(a){this.internalArray_=m(a)};W(TE,X);TE.prototype.getState=function(){return Vi(this,2,0)};TE.repeatedFields_=[3];var UE=function(a){this.internalArray_=m(a,0,UE.messageId)};W(UE,X);g=UE.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getCommentId=function(){return hi(this,2)};g.getMentionsList=function(){return Ji(this,TE,16)};g.getVersion=function(){return hi(this,6)};g.setVersion=function(a){return nj(this,6,a)};g.getVersionOrUndefined=function(){return yt(this,6)};g.getEntityStatus=function(){return Fi(this,SE,9)};
g.getFormattingMode=function(){return Vi(this,10,0)};g.setFormattingMode=function(a){return rj(this,10,a)};g.getFormattedComment=function(){return Fi(this,Km,13)};g.hasFormattedComment=function(){return Zi(this,Km,13)};g.getPiiRetentionState=function(){return Fi(this,Fm,11)};g.getPiiRetention=function(){return Vi(this,12,0)};g.setPiiRetention=function(a){return rj(this,12,a)};g.getEtag=function(){return Hi(this,17)};g.setEtag=function(a){qj(this,17,a)};g.hasEtag=function(){return Ii(this,17)};
UE.repeatedFields_=[16];UE.messageId="b.IssueComment";var qm=function(a){this.internalArray_=m(a)};W(qm,X);g=qm.prototype;g.getCreatedTimeMicros=function(){return dj(this,2)};g.setCreatedTimeMicros=function(a){xj(this,2,a)};g.getComponentId=function(){return Yi(this,3)};g.setComponentId=function(a){return wj(this,3,a)};g.hasComponentId=function(){return Xi(this,3)};g.getVersion=function(){return dj(this,4)};g.setVersion=function(a){return xj(this,4,a)};g.getVersionOrUndefined=function(){return zt(this,4)};g.getType=function(){return Vi(this,5,0)};
g.setType=function(a){return rj(this,5,a)};g.hasType=function(){return Ti(this,5)};g.getStatus=function(){return Vi(this,6,0)};g.setStatus=function(a){return rj(this,6,a)};g.hasStatus=function(){return Ti(this,6)};g.getPriority=function(){return Vi(this,7,0)};g.setPriority=function(a){return rj(this,7,a)};g.hasPriority=function(){return Ti(this,7)};g.getSeverity=function(){return Vi(this,8,0)};g.setSeverity=function(a){return rj(this,8,a)};g.hasSeverity=function(){return Ti(this,8)};
g.getTitle=function(){return Hi(this,9)};g.setTitle=function(a){return qj(this,9,a)};g.getAttachmentId=function(){return wt(this,14)};g.setAttachmentId=function(a){dc(this,14,a,vb(void 0),Ei)};g.setFoundInVersion=function(a){Dt(this,19,a)};g.setTargetedToVersion=function(a){Dt(this,20,a)};g.setVerifiedInVersion=function(a){Dt(this,21,a)};g.getInProd=function(){return Ri(this,22)};g.setInProd=function(a){mj(this,22,a)};g.getHotlistIdList=function(){return Ei(this,23)};
g.setHotlistIdList=function(a){rm(this,23,a)};g.getHotlistId=function(){return wt(this,23)};g.setHotlistId=function(a){return dc(this,23,a,vb(void 0),Ei)};g.setCustomField=function(a,b){return rt(this,24,Al,a,b)};g.getRetention=function(){return Vi(this,42,0)};g.setRetention=function(a){rj(this,42,a)};g.getIsDeleted=function(){return Ri(this,27)};g.setIsDeleted=function(a){mj(this,27,a)};g.setDeletionReason=function(a){rj(this,28,a)};g.getSignificanceOverride=function(){return Vi(this,29,0)};
g.setSignificanceOverride=function(a){return rj(this,29,a)};g.getIsArchived=function(){return Ri(this,31)};g.setIsArchived=function(a){return mj(this,31,a)};g.getComment=function(){return Hi(this,25)};g.setComment=function(a){qj(this,25,a)};g.getFormattingMode=function(){return Vi(this,45,0)};g.setFormattingMode=function(a){return rj(this,45,a)};g.getSloStartTime=function(){return Fi(this,gj,34)};g.setSloStartTime=function(a){oj(this,gj,34,a)};g.hasSloStartTime=function(){return Zi(this,gj,34)};
g.getSloEndTime=function(){return Fi(this,gj,54)};g.setSloEndTime=function(a){oj(this,gj,54,a)};g.hasSloEndTime=function(){return Zi(this,gj,54)};g.setSloSnoozeType=function(a){rj(this,52,a)};g.getEffort=function(){return Fi(this,sm,50)};g.setEffort=function(a){oj(this,sm,50,a)};g.hasEffort=function(){return Zi(this,sm,50)};g.getAccessLimitLevel=function(){return Vi(this,53,0)};g.setAccessLimitLevel=function(a){rj(this,53,a)};g.hasAccessLimitLevel=function(){return Ti(this,53)};
qm.repeatedFields_=[40,51,14,16,17,18,35,19,20,21,23,24,30];var Dm=function(a){this.internalArray_=m(a,0,Dm.messageId)};W(Dm,X);g=Dm.prototype;g.getStarred=function(){return Ri(this,1)};g.setStarred=function(a){mj(this,1,a)};g.getVoted=function(){return Ri(this,2)};g.setVoted=function(a){return mj(this,2,a)};g.setNotificationSubscription=function(a){return rj(this,4,a)};Dm.messageId="b.IssueUserData";var VE=function(a){this.internalArray_=m(a,0,VE.messageId)};W(VE,X);g=VE.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getFormattingMode=function(){return Vi(this,4,0)};g.setFormattingMode=function(a){return rj(this,4,a)};g.getAuthor=function(){return Fi(this,Bi,5)};g.setAuthor=function(a){oj(this,Bi,5,a)};g.getUpdateTime=function(){return Fi(this,gj,6)};g.setUpdateTime=function(a){oj(this,gj,6,a)};g.getVersion=function(){return hi(this,7)};
g.setVersion=function(a){return nj(this,7,a)};g.getVersionOrUndefined=function(){return yt(this,7)};g.getEntityStatus=function(){return Fi(this,SE,8)};VE.messageId="b.StatusUpdate";var Cm=function(a){this.internalArray_=m(a)};W(Cm,X);g=Cm.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.setSnapshot=function(a){rt(this,2,qm,a)};g.getUserData=function(){return Fi(this,Dm,3)};g.setUserData=function(a){oj(this,Dm,3,a)};g.getParentIssueIdsList=function(){return Ei(this,8)};g.setParentIssueIdsList=function(a){rm(this,8,a)};g.getAccessLimit=function(){return Fi(this,tl,5)};g.setAccessLimit=function(a){return oj(this,tl,5,a)};
g.getDescription=function(){return Fi(this,UE,16)};g.setDescription=function(a){return oj(this,UE,16,a)};g.hasDescription=function(){return Zi(this,UE,16)};g.getAncestorsMap=function(){return $b(this,9,Jm,kba)};g.getIsArchived=function(){return Ri(this,11)};g.setIsArchived=function(a){return mj(this,11,a)};g.getTrackerId=function(){return Yi(this,13)};g.setTrackerId=function(a){wj(this,13,a)};g.getStatusUpdate=function(){return Fi(this,VE,14)};g.hasStatusUpdate=function(){return Zi(this,VE,14)};
Cm.repeatedFields_=[2,8,15,6,12];var Bm=function(a){this.internalArray_=m(a,0,Bm.messageId)};W(Bm,X);g=Bm.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getPosition=function(){return hi(this,2)};g.setPosition=function(a){return nj(this,2,a)};g.getIssue=function(){return Fi(this,Cm,3)};g.setIssue=function(a){oj(this,Cm,3,a)};Bm.messageId="b.HotlistIssue";var fxa=function(a){this.internalArray_=m(a)};W(fxa,X);g=fxa.prototype;g.getSnapshot=function(){return Fi(this,qm,1)};g.setSnapshot=function(a){oj(this,qm,1,a)};g.getAttachmentsList=function(){return Yb(this,2,Pb(this.internalArray_)&34?Kba:Lba)};g.setAttachmentsList=function(a){ac(this,2,a,Sba)};g.getAttachments=function(){return BFb(this,2)};g.getTemplateId=function(){return Yi(this,4)};g.setTemplateId=function(a){wj(this,4,a)};g.getContentJudgement=function(){return Fi(this,Sl,5)};
g.setContentJudgement=function(a){return oj(this,Sl,5,a)};fxa.repeatedFields_=[2,3];var Vwa=function(a){this.internalArray_=m(a)};W(Vwa,X);g=Vwa.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.setActionsList=function(a){om(this,2,a)};g.getAttachmentsList=function(){return Yb(this,3,Pb(this.internalArray_)&34?Kba:Lba)};g.setAttachmentsList=function(a){ac(this,3,a,Sba)};g.getAttachments=function(){return BFb(this,3)};g.getSignificanceOverride=function(){return Hi(this,4)};g.setSignificanceOverride=function(a){return qj(this,4,a)};
Vwa.repeatedFields_=[2,3,5];var mXb=function(a){this.internalArray_=m(a)};W(mXb,X);g=mXb.prototype;g.getCount=function(){return hi(this,2)};g.setCount=function(a){return nj(this,2,a)};g.setS=function(a){qj(this,3,a)};g.setP=function(a){return nj(this,4,a)};g.getNextPageToken=function(){return Hi(this,5)};g.setTrackerIdsList=function(a){rm(this,6,a)};mXb.repeatedFields_=[6];var Pwa=function(a){this.internalArray_=m(a)};W(Pwa,X);g=Pwa.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getComponentId=function(){return Yi(this,2)};g.setComponentId=function(a){return wj(this,2,a)};g.hasComponentId=function(){return Xi(this,2)};var Mm=function(a){this.internalArray_=m(a,0,Mm.messageId)};W(Mm,X);Mm.prototype.getQuery=function(){return Hi(this,1)};Mm.prototype.setQuery=function(a){return qj(this,1,a)};Mm.prototype.clearQuery=function(){st(this,1)};Mm.prototype.hasQuery=function(){return Ii(this,1)};Mm.messageId="b.ListRecentEventsForIssuesRequest";var WE=function(a){this.internalArray_=m(a,0,WE.messageId)};W(WE,X);WE.prototype.getStatus=function(){return Vi(this,1,0)};WE.prototype.setStatus=function(a){return rj(this,1,a)};WE.prototype.hasStatus=function(){return Ti(this,1)};WE.messageId="b.LlmSummarizeResponse";var Nwa=function(a){this.internalArray_=m(a)};W(Nwa,X);g=Nwa.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getComponentId=function(){return Yi(this,2)};g.setComponentId=function(a){return wj(this,2,a)};g.hasComponentId=function(){return Xi(this,2)};var axa=function(a){this.internalArray_=m(a)};W(axa,X);g=axa.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getRelation=function(){return Vi(this,3,0)};g.setRelation=function(a){rj(this,3,a)};g.setActionType=function(a){rj(this,4,a)};axa.repeatedFields_=[2];var zm=function(a){this.internalArray_=m(a,0,zm.messageId)};W(zm,X);zm.prototype.getIssueId=function(){return Yi(this,1)};zm.prototype.setIssueId=function(a){return wj(this,1,a)};zm.messageId="b.UnCcUserActionRequest";var XE=function(a){this.internalArray_=m(a,0,XE.messageId)};W(XE,X);XE.prototype.getIssueId=function(){return Yi(this,1)};XE.prototype.setIssueId=function(a){return wj(this,1,a)};XE.messageId="b.UndeleteIssueRequest";var YE=function(a){this.internalArray_=m(a)};W(YE,X);YE.prototype.getAccessLevel=function(){return Vi(this,1,0)};YE.prototype.setAccessLevel=function(a){return rj(this,1,a)};var ZE=function(a){this.internalArray_=m(a,0,ZE.messageId)};W(ZE,X);g=ZE.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getIssueAccessLimit=function(){return Fi(this,YE,2)};g.setIssueAccessLimit=function(a){oj(this,YE,2,a)};g.setAddedCollaboratorsList=function(a){om(this,3,a)};g.setRemovedCollaboratorsList=function(a){om(this,4,a)};ZE.repeatedFields_=[3,4];ZE.messageId="b.UpdateIssueAccessLimitRequest";var Am=function(a){this.internalArray_=m(a)};W(Am,X);Am.prototype.getSignificanceOverride=function(){return Vi(this,4,0)};Am.prototype.setSignificanceOverride=function(a){return rj(this,4,a)};Am.repeatedFields_=[1,2];var dxa=function(a){this.internalArray_=m(a)};W(dxa,X);g=dxa.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getRetention=function(){return Vi(this,2,0)};g.setRetention=function(a){rj(this,2,a)};g.getSignificanceOverride=function(){return Vi(this,3,0)};g.setSignificanceOverride=function(a){return rj(this,3,a)};var xxa=function(a){this.internalArray_=m(a)};W(xxa,X);g=xxa.prototype;g.getFieldId=function(){return Fi(this,OTb,1)};g.setFieldId=function(a){return oj(this,OTb,1,a)};g.getStateOnIssues=function(){return Vi(this,4,0)};g.setStateOnIssues=function(a){return bm(this,4,a)};g.getEnabledOnIssues=function(){return Ri(this,5)};g.setEnabledOnIssues=function(a){return ho(this,5,a)};var Pm=function(a){this.internalArray_=m(a)};W(Pm,X);Pm.prototype.getTeamId=function(){return dj(this,1)};Pm.prototype.setTeamId=function(a){return um(this,1,a)};Pm.prototype.getScore=function(){return El(this,2)};Pm.prototype.setScore=function(a){bc(this,2,nb(a),0)};var Om=function(a){this.internalArray_=m(a)};W(Om,X);Om.prototype.getInherit=function(){return Ri(this,1)};Om.prototype.setInherit=function(a){mj(this,1,a)};Om.prototype.getId=function(){return Yi(this,2)};Om.prototype.setId=function(a){return wj(this,2,a)};var oxa=function(a){this.internalArray_=m(a)};W(oxa,X);g=oxa.prototype;g.getUser=function(){return Fi(this,Bi,1)};g.setUser=function(a){oj(this,Bi,1,a)};g.hasUser=function(){return Zi(this,Bi,1)};g.getIsLead=function(){return Ri(this,2)};g.setIsLead=function(a){mj(this,2,a)};var Nm=function(a){this.internalArray_=m(a)};W(Nm,X);g=Nm.prototype;g.getInherit=function(){return Ri(this,1)};g.setInherit=function(a){mj(this,1,a)};g.getSloId=function(){return Yi(this,2)};g.setSloId=function(a){return wj(this,2,a)};g.getComment=function(){return Hi(this,3)};g.setComment=function(a){qj(this,3,a)};g.getSourceTeamId=function(){return Yi(this,4)};g.setSourceTeamId=function(a){wj(this,4,a)};var nXb=function(a){this.internalArray_=m(a)};W(nXb,X);g=nXb.prototype;g.getUser=function(){return Fi(this,ml,1)};g.setUser=function(a){oj(this,ml,1,a)};g.hasUser=function(){return Zi(this,ml,1)};g.getIsLead=function(){return Ri(this,2)};g.setIsLead=function(a){ho(this,2,a)};var $E=function(a){this.internalArray_=m(a)};W($E,X);g=$E.prototype;g.getId=function(){return dj(this,1)};g.setId=function(a){return um(this,1,a)};g.getPathIdsList=function(){return Hj(this,2)};g.setPathIdsList=function(a){ac(this,2,a,vb)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return wm(this,3,a)};g.getPathNamesList=function(){return ii(this,4)};g.setPathNamesList=function(a){yj(this,4,a)};g.getCollapsedPathNamesList=function(){return ii(this,5)};
g.setCollapsedPathNamesList=function(a){yj(this,5,a)};g.getMembersList=function(){return Ji(this,nXb,6)};g.setMembersList=function(a){om(this,6,a)};g.getDescription=function(){return Hi(this,8)};g.setDescription=function(a){return wm(this,8,a)};g.getDeleted=function(){return Ri(this,9)};g.setDeleted=function(a){ho(this,9,a)};$E.repeatedFields_=[2,4,5,6];var aF=function(a){this.internalArray_=m(a,0,aF.messageId)};W(aF,X);g=aF.prototype;g.getTeamId=function(){return Yi(this,1)};g.setTeamId=function(a){return wj(this,1,a)};g.getVersion=function(){return hi(this,2)};g.setVersion=function(a){return nj(this,2,a)};g.getVersionOrUndefined=function(){return yt(this,2)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return qj(this,3,a)};g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};
g.getDescription=function(){return Hi(this,4)};g.setDescription=function(a){return qj(this,4,a)};g.hasDescription=function(){return Ii(this,4)};g.getPathNamesList=function(){return ii(this,5)};g.setPathNamesList=function(a){yj(this,5,a)};g.getPathIdsList=function(){return Hj(this,10)};g.setPathIdsList=function(a){ac(this,10,a,vb)};g.getCollapsedPathNamesList=function(){return ii(this,6)};g.setCollapsedPathNamesList=function(a){yj(this,6,a)};g.getMembersList=function(){return Ji(this,oxa,7)};
g.setMembersList=function(a){om(this,7,a)};g.getDeleted=function(){return Ri(this,8)};g.setDeleted=function(a){mj(this,8,a)};g.getSlo=function(){return Fi(this,Nm,11)};g.setSlo=function(a){oj(this,Nm,11,a)};g.hasSlo=function(){return Zi(this,Nm,11)};g.getIt=function(){return Fi(this,$E,14)};g.setIt=function(a){return oj(this,$E,14,a)};g.hasIt=function(){return Zi(this,$E,14)};aF.repeatedFields_=[5,10,6,7];aF.messageId="b.TeamState";var oXb=function(a){this.internalArray_=m(a)};W(oXb,X);g=oXb.prototype;g.getPathIdsList=function(){return Ei(this,1)};g.setPathIdsList=function(a){rm(this,1,a)};g.getPathNamesList=function(){return ii(this,2)};g.setPathNamesList=function(a){yj(this,2,a)};g.getId=function(){return Yi(this,3)};g.setId=function(a){return wj(this,3,a)};g.getName=function(){return Hi(this,4)};g.setName=function(a){return qj(this,4,a)};g.hasName=function(){return Ii(this,4)};
g.getNameOrUndefined=function(){return At(this,4)};g.getDescription=function(){return Hi(this,5)};g.setDescription=function(a){return qj(this,5,a)};g.hasDescription=function(){return Ii(this,5)};oXb.repeatedFields_=[1,2];var pXb=function(a){this.internalArray_=m(a)};W(pXb,X);g=pXb.prototype;g.getId=function(){return Yi(this,1)};g.setId=function(a){return wj(this,1,a)};g.getName=function(){return Hi(this,2)};g.setName=function(a){return qj(this,2,a)};g.hasName=function(){return Ii(this,2)};g.getNameOrUndefined=function(){return At(this,2)};g.getDescription=function(){return Hi(this,3)};g.setDescription=function(a){return qj(this,3,a)};g.hasDescription=function(){return Ii(this,3)};var Rm=function(a){this.internalArray_=m(a)};W(Rm,X);Rm.repeatedFields_=[1,2,4,5];var Tm=function(a){this.internalArray_=m(a,0,Tm.messageId)};W(Tm,X);g=Tm.prototype;g.getComponentId=function(){return Yi(this,1)};g.setComponentId=function(a){return wj(this,1,a)};g.hasComponentId=function(){return Xi(this,1)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return qj(this,3,a)};g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};g.getDescription=function(){return Hi(this,4)};g.setDescription=function(a){return qj(this,4,a)};
g.hasDescription=function(){return Ii(this,4)};g.getArchived=function(){return Ri(this,5)};g.setArchived=function(a){return mj(this,5,a)};g.getHotlistIdList=function(){return Ei(this,8)};g.setHotlistIdList=function(a){rm(this,8,a)};g.getHotlistId=function(){return wt(this,8)};g.setHotlistId=function(a){return dc(this,8,a,vb(void 0),Ei)};g.getTemplateId=function(){return wt(this,9)};g.setTemplateId=function(a){dc(this,9,a,vb(void 0),Ei)};g.getAccessLimit=function(){return Fi(this,tl,12)};
g.setAccessLimit=function(a){return oj(this,tl,12,a)};g.setCommentEditState=function(a){return rj(this,15,a)};g.getSlo=function(){return Fi(this,gm,19)};g.setSlo=function(a){oj(this,gm,19,a)};g.hasSlo=function(){return Zi(this,gm,19)};g.getRetentionSettings=function(){return Fi(this,cm,21)};g.setRetentionSettings=function(a){oj(this,cm,21,a)};g.hasRetentionSettings=function(){return Zi(this,cm,21)};g.getTeam=function(){return Fi(this,Om,22)};g.setTeam=function(a){oj(this,Om,22,a)};
g.hasTeam=function(){return Zi(this,Om,22)};g.getEffortSpec=function(){return Fi(this,Zl,24)};g.getTeamSuggestionsList=function(){return Ji(this,Pm,25)};g.setTeamSuggestionsList=function(a){om(this,25,a)};g.getTrackerId=function(){return Yi(this,26)};g.setTrackerId=function(a){wj(this,26,a)};Tm.repeatedFields_=[6,8,9,25];Tm.messageId="b.Component";var Um=function(a){this.internalArray_=m(a)};W(Um,X);g=Um.prototype;g.getTemplateId=function(){return dj(this,1)};g.setTemplateId=function(a){xj(this,1,a)};g.getComponentId=function(){return Yi(this,2)};g.setComponentId=function(a){return wj(this,2,a)};g.hasComponentId=function(){return Xi(this,2)};g.getDefault=function(){return Ri(this,6)};g.setDefault=function(a){mj(this,6,a)};g.getName=function(){return Hi(this,3)};g.setName=function(a){return qj(this,3,a)};
g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};g.getDescription=function(){return Hi(this,4)};g.setDescription=function(a){return qj(this,4,a)};g.hasDescription=function(){return Ii(this,4)};g.getSnapshot=function(){return Fi(this,qm,5)};g.setSnapshot=function(a){oj(this,qm,5,a)};var bF=function(a){this.internalArray_=m(a,0,bF.messageId)};W(bF,X);bF.prototype.getSlo=function(){return Fi(this,gm,1)};bF.prototype.setSlo=function(a){oj(this,gm,1,a)};bF.prototype.hasSlo=function(){return Zi(this,gm,1)};bF.messageId="b.UpdateComponentSloRequest";var cF=function(a){this.internalArray_=m(a,0,cF.messageId)};W(cF,X);cF.prototype.getTeam=function(){return Fi(this,Om,1)};cF.prototype.setTeam=function(a){oj(this,Om,1,a)};cF.prototype.hasTeam=function(){return Zi(this,Om,1)};cF.messageId="b.UpdateComponentTeamRequest";var Mxa=function(a){this.internalArray_=m(a)};W(Mxa,X);Mxa.prototype.getContentJudgement=function(){return Fi(this,Sl,2)};Mxa.prototype.setContentJudgement=function(a){return oj(this,Sl,2,a)};var dF=function(a){this.internalArray_=m(a)};W(dF,X);dF.prototype.getIssueId=function(){return Yi(this,1)};dF.prototype.setIssueId=function(a){return wj(this,1,a)};dF.repeatedFields_=[3];var qXb=function(a){this.internalArray_=m(a)};W(qXb,X);g=qXb.prototype;g.getFilename=function(){return Hi(this,1)};g.setFilename=function(a){qj(this,1,a)};g.getMimeType=function(){return Hi(this,2)};g.setMimeType=function(a){qj(this,2,a)};g.getSize=function(){return dj(this,5)};g.setSize=function(a){return xj(this,5,a)};var ln=function(a){this.internalArray_=m(a)};W(ln,X);ln.prototype.setActionsList=function(a){om(this,1,a)};ln.prototype.getIssueIdsList=function(){return Ei(this,2)};ln.prototype.setIssueIdsList=function(a){return rm(this,2,a)};ln.prototype.addIssueIds=function(a){cc(this,2,vb(a))};ln.repeatedFields_=[1,2];var eF=function(a){this.internalArray_=m(a)};W(eF,X);eF.prototype.getSignificanceOverride=function(){return Hi(this,3)};eF.prototype.setSignificanceOverride=function(a){return qj(this,3,a)};eF.repeatedFields_=[4];var oya=pl("enableLeanFeF");var rXb=function(a){this.internalArray_=m(a)};W(rXb,X);var Sxa=function(a){this.internalArray_=m(a)};W(Sxa,X);g=Sxa.prototype;g.getContentType=function(){return Ej(this,1)};g.getTimestamp=function(){return ut(this,2)};g.setTimestamp=function(a){return rj(this,2,null==a?a:xb(a))};g.hasTimestamp=function(){return null!=ut(this,2)};g.getToken=function(){return Ej(this,3)};g.setToken=function(a){return qj(this,3,a)};g.getLength=function(){return Wm(this,4)};g.getFilename=function(){return Ej(this,5)};g.setFilename=function(a){qj(this,5,a)};
g.getPath=function(){return Ej(this,7)};g.setPath=function(a){return qj(this,7,a)};g.hasPath=function(){return Ii(this,7)};g.getHash=function(){return Ej(this,11)};g.setHash=function(a){qj(this,11,a)};g.getObjectId=function(){return Fi(this,rXb,15)};g.setObjectId=function(a){oj(this,rXb,15,a)};Sxa.repeatedFields_=[13];var fF=function(a){this.internalArray_=m(a,0,fF.messageId)};W(fF,X);g=fF.prototype;g.getAttachmentId=function(){return Yi(this,1)};g.setAttachmentId=function(a){wj(this,1,a)};g.getDescription=function(){return Hi(this,2)};g.setDescription=function(a){return qj(this,2,a)};g.hasDescription=function(){return Ii(this,2)};g.getContentType=function(){return Hi(this,4)};g.getFilename=function(){return Hi(this,5)};g.setFilename=function(a){qj(this,5,a)};g.getLength=function(){return dj(this,6)};
g.getEtag=function(){return Hi(this,8)};g.setEtag=function(a){qj(this,8,a)};g.hasEtag=function(){return Ii(this,8)};g.getEntityStatus=function(){return Fi(this,SE,10)};g.getPiiRetentionState=function(){return Fi(this,Fm,12)};g.getPiiRetention=function(){return Vi(this,13,0)};g.setPiiRetention=function(a){return rj(this,13,a)};fF.messageId="b.Attachment";var an=function(a){this.internalArray_=m(a)};W(an,X);g=an.prototype;g.getOldValue=function(){return Hi(this,1)};g.getNewValue=function(){return Hi(this,2)};g.getCustomFieldId=function(){return dj(this,3)};g.setCustomFieldId=function(a){xj(this,3,a)};g.hasCustomFieldId=function(){return cj(this,3)};var gF=function(a){this.internalArray_=m(a)};W(gF,X);gF.prototype.getHref=function(){return Hi(this,1)};gF.prototype.getValue=function(){return Hi(this,2)};gF.prototype.setValue=function(a){return qj(this,2,a)};gF.prototype.hasValue=function(){return Ii(this,2)};var dn=function(a){this.internalArray_=m(a)};W(dn,X);dn.prototype.getAddedList=function(){return Ji(this,gF,1)};dn.prototype.getRemovedList=function(){return Ji(this,gF,2)};dn.repeatedFields_=[1,2];var $m=function(a){this.internalArray_=m(a)};W($m,X);$m.prototype.getOldValue=function(){return Hi(this,1)};$m.prototype.getNewValue=function(){return Hi(this,2)};var Wxa=function(a){this.internalArray_=m(a)};W(Wxa,X);var Xm=function(a){this.internalArray_=m(a)};W(Xm,X);var Zm=[1,2];var Yxa=function(a){this.internalArray_=m(a)};W(Yxa,X);Yxa.prototype.getEntityStatus=function(){return Fi(this,SE,1)};var cn=function(a){this.internalArray_=m(a)};W(cn,X);cn.prototype.getAddedList=function(){return ii(this,1)};cn.prototype.getRemovedList=function(){return ii(this,2)};cn.repeatedFields_=[1,2];var bn=function(a){this.internalArray_=m(a)};W(bn,X);bn.prototype.getAddedList=function(){return Ji(this,Bi,1)};bn.prototype.getRemovedList=function(){return Ji(this,Bi,2)};bn.repeatedFields_=[1,2];var fn=function(a){this.internalArray_=m(a,0,fn.messageId)};W(fn,X);g=fn.prototype;g.getName=function(){return Hi(this,1)};g.setName=function(a){return qj(this,1,a)};g.hasName=function(){return Ii(this,1)};g.getNameOrUndefined=function(){return At(this,1)};g.getDisplayName=function(){return Hi(this,2)};g.setDisplayName=function(a){return qj(this,2,a)};g.getType=function(){return Vi(this,3,0)};g.setType=function(a){return rj(this,3,a)};g.hasType=function(){return Ti(this,3)};
g.getTimestamp=function(){return Fi(this,gj,4)};g.setTimestamp=function(a){return oj(this,gj,4,a)};g.hasTimestamp=function(){return Zi(this,gj,4)};var Ym=[6,7,8,9,10,11];fn.messageId="b.EventDiff";var gn=function(a){this.internalArray_=m(a)};W(gn,X);gn.prototype.getTag=function(){return Hi(this,1)};gn.prototype.getText=function(){return Hi(this,2)};gn.prototype.setText=function(a){return qj(this,2,a)};var jn=function(a){this.internalArray_=m(a,0,jn.messageId)};W(jn,X);g=jn.prototype;g.getIssueId=function(){return Yi(this,14)};g.setIssueId=function(a){return wj(this,14,a)};g.getComment=function(){return Fi(this,UE,6)};g.setComment=function(a){oj(this,UE,6,a)};g.getAttachmentsList=function(){return Ji(this,fF,10)};g.setAttachmentsList=function(a){om(this,10,a)};g.getVersion=function(){return dj(this,7)};g.setVersion=function(a){return xj(this,7,a)};
g.getVersionOrUndefined=function(){return zt(this,7)};g.getStatusUpdate=function(){return Fi(this,VE,13)};g.hasStatusUpdate=function(){return Zi(this,VE,13)};jn.repeatedFields_=[2,3,10,9];jn.messageId="b.IssueEvent";var hF=function(a){this.internalArray_=m(a,0,hF.messageId)};W(hF,X);hF.repeatedFields_=[1];hF.messageId="b.ListIssueEventsResponse";var sXb=RegExp("action/issues/([0-9]+)/"),tXb=new Ad("ETAG_URL_TRANSFORMERS"),uXb=["POST","PUT","DELETE"],iF=function(a){this.etagStore=a};iF.prototype.intercept=function(a,b){var c;if(uXb.includes(a.method)){var d=this.etagStore.getEtag(a);d&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",d)}))}(d=sXb.exec(a.url))&&(c=d[1]);return vXb(this,a,b,c)};
var vXb=function(a,b,c,d){return c.handle(b).pipe(Bf(function(e){if(e instanceof ox){var f=e.headers;f.has("etag")&&a.etagStore.setEtag(b,f.get("etag"));e=e.body;if(e instanceof hF&&d)for(e=l(Ji(e,jn,1)),f=e.next();!f.done;f=e.next()){f=l(f.value.getAttachmentsList());for(var h=f.next();!h.done;h=f.next())if(h=h.value,h.hasEtag()){var k=h.getAttachmentId();k=new mx("GET","action/issues/"+d+"/attachments/"+k);a.etagStore.setEtag(k,h.getEtag())}}}}))};iF.\u0275fac=function(a){return new (a||iF)(n(jF))};
iF.\u0275prov=$c({token:iF,factory:iF.\u0275fac,providedIn:"root"});var jF=function(a){this.transformers=a;this.etagStore={}};jF.prototype.setEtag=function(a,b){null!=b&&(a=wXb(this,a.url),this.etagStore[a]=b)};jF.prototype.getEtag=function(a){a=wXb(this,a.url);return this.etagStore[a]};var wXb=function(a,b){var c;a=l(null!=(c=a.transformers)?c:[]);for(c=a.next();!c.done;c=a.next())if(c=c.value,(c=c(b))&&c!==b)return c;return b};jF.\u0275fac=function(a){return new (a||jF)(n(tXb,8))};
jF.\u0275prov=$c({token:jF,factory:jF.\u0275fac,providedIn:"root"});var xXb={provide:qx,useClass:iF,multi:!0};var kF=function(a){this.internalArray_=m(a,0,kF.messageId)};W(kF,X);kF.prototype.getIssuesList=function(){return Ji(this,Cm,1)};kF.prototype.getNumTotalResults=function(){return hi(this,2)};kF.prototype.getComponentsMap=function(){return $b(this,3,Tm,Eb)};kF.prototype.getNextPageToken=function(){return Hi(this,5)};kF.repeatedFields_=[1];kF.messageId="b.IssueSearchResponse";var lF=function(a){this.internalArray_=m(a,0,lF.messageId)};W(lF,X);lF.prototype.getHotlistsList=function(){return Ji(this,ql,1)};lF.repeatedFields_=[1];lF.messageId="b.ListHotlistsResponse";var mF=function(a,b){this.hotlistApi=b;this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:1E3})};g=mF.prototype;g.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};g.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};g.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};g.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};
g.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};g.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};g.getPagedHotlistContent=function(a,b,c,d,e){return this.hotlistApi.getPagedHotlistContent(a,b,c,d,e)};mF.\u0275fac=function(a){return new (a||mF)(n(KE),n(nF))};mF.\u0275prov=$c({token:mF,factory:mF.\u0275fac,providedIn:"root"});var oF=function(a,b){this.executor=a;this.etagStore=b;this.bufferTimeMs=50};
oF.prototype.call=function(a){a=Array.from(a).map(String);return 0===a.length?(0,B.of)(new Map):1===a.length?this.executor.get({url:"action/hotlists/"+a[0],responseConstructor:ql}).pipe(A(sl),A(function(b){var c=new Map;c.set(String(b.hotlistId),b);return c})):this.executor.get({url:"action/hotlists",responseConstructor:lF,options:{params:{id:a}}}).pipe(A(function(b){var c=new Map;b=l(b.getHotlistsList().map(sl));for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(String(d.hotlistId),d);return c}))};
oF.prototype.split=function(a,b){if(b=b.get(a)){var c=b.etag;if(c){var d=this.etagStore;null!=c&&(a=wXb(d,"action/hotlists/"+a),d.etagStore[a]=c)}}return b};oF.\u0275fac=function(a){return new (a||oF)(n(tD),n(jF))};oF.\u0275prov=$c({token:oF,factory:oF.\u0275fac,providedIn:"root"});var pF=function(a,b,c,d,e){this.paths=a;this.executor=b;this.batchApiConfig=c;this.batchApiAdapter=d;this.activeSession=e;this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};g=pF.prototype;
g.get=function(a){var b=this;return this.adaptedGet(String(a)).pipe(zf(function(c){return c?(0,B.of)(c):b.executor.get({url:"action/hotlists/"+a,responseConstructor:ql}).pipe(A(sl))}))};g.bulkLoad=function(a){var b=this;return 0===a.length?(0,B.of)([]):(0,B.forkJoin)(a.map(function(c){return b.adaptedGet(String(c))})).pipe(A(function(c){return c.filter(cl)}))};
g.repositionHotlistIssue=function(a,b,c){var d=new Bm;d.setIssueId(b);d.setPosition(c);return this.executor.put({url:"action/hotlists/"+a+"/issues",body:d,responseConstructor:null})};g.createHotlist=function(a,b){var c=new ql;c.setName(a);b&&c.setDescription(b);$C(this.activeSession,"enableLeanFeE")&&(a=(new rl).setName(a),b&&a.setDescription(b),c.setIt(a));return this.executor.post({url:"action/hotlists",body:c,responseConstructor:ql}).pipe(A(sl))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:lF,options:{params:{q:a}}}).pipe(A(function(b){var c;return(null!=(c=b.getHotlistsList())?c:[]).map(sl)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:Pua(b),responseConstructor:ql}).pipe(A(sl))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:Pua(b),options:{headers:c},responseConstructor:ql}).pipe(A(sl))};g.getPagedHotlistContent=function(a,b,c,d,e){b={p:String(b),count:String(c)};if(d=this.paths.toApiSortParamValue(d))b.s=d;e&&(b.trackerIds=e);return this.executor.get({url:"action/hotlists/"+a+"/issues",options:{params:Object.assign({},b)},responseConstructor:kF}).pipe(A(xya))};
pF.\u0275fac=function(a){return new (a||pF)(n(xE),n(tD),n(oF),n(BE),n(Us))};pF.\u0275prov=$c({token:pF,factory:pF.\u0275fac,providedIn:"root"});var nF=function(a){this.observableApi=a};g=nF.prototype;g.get=function(a){return(0,B.firstValueFrom)(this.observableApi.get(a))};g.bulkLoad=function(a){return(0,B.firstValueFrom)(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return(0,B.firstValueFrom)(this.observableApi.repositionHotlistIssue(a,b,c))};
g.createHotlist=function(a,b){return(0,B.firstValueFrom)(this.observableApi.createHotlist(a,b))};g.queryHotlists=function(a){return(0,B.firstValueFrom)(this.observableApi.queryHotlists(a))};g.archiveHotlist=function(a,b){return(0,B.firstValueFrom)(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return(0,B.firstValueFrom)(this.observableApi.updateMetadata(a,b))};
g.getPagedHotlistContent=function(a,b,c,d,e){return(0,B.firstValueFrom)(this.observableApi.getPagedHotlistContent(a,b,c,d,e))};nF.\u0275fac=function(a){return new (a||nF)(n(pF))};nF.\u0275prov=$c({token:nF,factory:nF.\u0275fac,providedIn:"root"});var qF=new Ad("buganizerWindow",{factory:function(){return window}});var rF=function(a,b){Y.call(this);this.$window=a;this.activeSession=b;a=B.BehaviorSubject;var c;b=null!=(c=this.$window.sessionStorage.getItem("buganizer.current_tracker_id"))?c:"";this.trackerId$=new a(b);(c=(c=this.activeSession.getTracker())?c.trackerId:void 0)&&this.setTrackerId(c)};W(rF,Y);rF.\u0275dir=Y.\u0275dir;rF.prototype.setTrackerId=function(a){this.trackerId$.next(a);this.$window.sessionStorage.setItem("buganizer.current_tracker_id",a)};rF.prototype.getTrackerId=function(){return this.trackerId$.value};
rF.\u0275fac=function(a){return new (a||rF)(n(qF),n(Us))};rF.\u0275prov=$c({token:rF,factory:rF.\u0275fac,providedIn:"root"});var sF=function(a){this.internalArray_=m(a,0,sF.messageId)};W(sF,X);sF.prototype.setIdsList=function(a){rm(this,2,a)};sF.prototype.getIds=function(){return wt(this,2)};sF.prototype.setIds=function(a){return dc(this,2,a,vb(void 0),Ei)};sF.repeatedFields_=[2];sF.messageId="b.BatchGetIssuesRequest";var tF=function(a){this.internalArray_=m(a,0,tF.messageId)};W(tF,X);tF.prototype.getIssuesList=function(){return Ji(this,Cm,1)};tF.repeatedFields_=[1];tF.messageId="b.BatchGetIssuesResponse";var mn=function(a){this.internalArray_=m(a)};W(mn,X);mn.prototype.getIssueId=function(){return Yi(this,1)};mn.prototype.setIssueId=function(a){return wj(this,1,a)};mn.prototype.getMessage=function(){return Hi(this,2)};mn.prototype.setMessage=function(a){qj(this,2,a)};var uF=function(a){this.internalArray_=m(a,0,uF.messageId)};W(uF,X);uF.prototype.setErrors=function(a,b){rt(this,2,mn,a,b)};uF.repeatedFields_=[2];uF.messageId="b.BulkEditResponse";var vF=function(a){this.internalArray_=m(a,0,vF.messageId)};W(vF,X);vF.prototype.getReadersList=function(){return Ji(this,Ol,1)};vF.prototype.setReadersList=function(a){om(this,1,a)};vF.prototype.getAppendersList=function(){return Ji(this,Ol,2)};vF.prototype.setAppendersList=function(a){om(this,2,a)};vF.repeatedFields_=[1,2,3];vF.messageId="b.GetRetainedAccessPrincipalsResponse";var wF=function(a){this.internalArray_=m(a,0,wF.messageId)};W(wF,X);wF.prototype.getIssueId=function(){return Yi(this,1)};wF.prototype.setIssueId=function(a){return wj(this,1,a)};wF.messageId="b.IssueCreateResponse";var On=function(a){this.internalArray_=m(a,0,On.messageId)};W(On,X);On.prototype.getIssue=function(){return Fi(this,Cm,1)};On.prototype.setIssue=function(a){oj(this,Cm,1,a)};On.messageId="b.IssueFetchResponse";var xF=function(a){this.internalArray_=m(a,0,xF.messageId)};W(xF,X);xF.prototype.getIssueId=function(){return Yi(this,1)};xF.prototype.setIssueId=function(a){return wj(this,1,a)};xF.messageId="b.LlmSummarizeRequest";var yF=function(a){this.internalArray_=m(a)};W(yF,X);g=yF.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getStatus=function(){return Vi(this,2,0)};g.setStatus=function(a){return rj(this,2,a)};g.hasStatus=function(){return Ti(this,2)};g.getTitle=function(){return Hi(this,3)};g.setTitle=function(a){return qj(this,3,a)};g.getVersion=function(){return hi(this,4)};g.setVersion=function(a){return nj(this,4,a)};
g.getVersionOrUndefined=function(){return yt(this,4)};g.getIsArchived=function(){return Ri(this,5)};g.setIsArchived=function(a){return mj(this,5,a)};var zF=function(a){this.internalArray_=m(a,0,zF.messageId)};W(zF,X);zF.prototype.getIssueDigestsList=function(){return Ji(this,yF,1)};zF.prototype.getNumTotalResults=function(){return dj(this,2)};zF.repeatedFields_=[1];zF.messageId="b.RelatedIssuesResponse";var AF=function(){},BF=function(a,b){this.executor=a;this.currentTrackerId=b};g=BF.prototype;g.createIssue=function(a){var b=gxa(a),c={};a.recaptchaToken&&(c["G-Recaptcha-Response-Token"]=a.recaptchaToken);return this.executor.post({url:"action/issues",body:b,options:{headers:c},responseConstructor:wF}).pipe(A(hxa))};
g.createIssueWithWizard=function(a){var b=gxa(a),c={};a.recaptchaToken&&(c["G-Recaptcha-Response-Token"]=a.recaptchaToken);return this.executor.post({url:"action/issues/wizard",body:b,options:{headers:c},responseConstructor:wF}).pipe(A(hxa))};g.getIssue=function(a){var b={},c=this.currentTrackerId.getTrackerId();c&&(b.currentTrackerId=c);return this.executor.get({url:"action/issues/"+a,options:{params:b},responseConstructor:On}).pipe(A(function(d){return kn(d)}))};
g.batchGetIssues=function(a){var b=new sF;b.setIdsList(a);return this.executor.post({url:"action/issues/batch",body:b,responseConstructor:tF}).pipe(A(function(c){return c.getIssuesList().map(function(d){return en(d)})}))};g.updateIssue=function(a,b){b=Wwa(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:On}).pipe(A(function(c){return kn(c)}))};g.moveIssueExternal=function(a,b){b=Qwa(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:On}).pipe(A(function(c){return kn(c)}))};
g.moveIssue=function(a,b){b=Owa(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:On}).pipe(A(function(c){return kn(c)}))};g.unCcUser=function(a){var b=Mwa(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:On}).pipe(A(function(c){return kn(c)}))};
g.updateAccessLimit=function(a,b,c,d){var e=(new ZE).setIssueId(a);if(b){if(b=Jwa[b])b=(new YE).setAccessLevel(b),e.setIssueAccessLimit(b);c&&e.setAddedCollaboratorsList(c.map(Ci));d&&e.setRemovedCollaboratorsList(d.map(Ci))}return this.executor.post({url:"action/issues/"+a+"/accessLimit",body:e,responseConstructor:null})};
g.getRetainedAccessPrincipals=function(a,b,c,d){b=Lwa(a,b,c,d);return this.executor.post({url:"action/issues/"+a+"/retainedAccessPrincipals",body:b,responseConstructor:vF}).pipe(A(function(e){var f,h,k;return{readers:Ql(null!=(f=e.getReadersList())?f:[]),appenders:Ql(null!=(h=e.getAppendersList())?h:[]),writers:Ql(null!=(k=Ji(e,Ol,3))?k:[])}}))};g.relateIssue=function(a,b){b=cxa(b);return this.executor.post({url:"action/issues/"+a+"/relate",body:b,responseConstructor:On}).pipe(A(function(c){return kn(c)}))};
g.updateIssueHotlists=function(a,b){b=Zwa(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:On}).pipe(A(function(c){return kn(c)}))};g.updateIssueRetention=function(a,b){b=exa(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:On}).pipe(A(function(c){return kn(c)}))};
g.listIssues=function(a,b){b=void 0===b?{}:b;var c=new mXb;qj(c,1,a);b.count&&c.setCount(b.count);b.s&&c.setS(b.s);b.p&&c.setP(b.p);var d;c.setTrackerIdsList(null!=(d=b.trackerIds)?d:[]);return this.executor.post({url:"action/issues/list",body:c,responseConstructor:kF}).pipe(A(xya))};
g.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new eF;var d=a.bulkEditOps.map(hya);om(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:uF,options:{headers:c}}).pipe(A(jya))};
g.getRelatedIssues=function(a){var b={};a.q&&(b.q=a.q);a.s&&(b.s=a.s);a.count&&(b.count=String(a.count));a.p&&(b.p=String(a.p));a.trackerId&&(b.trackerId=a.trackerId);var c="action/related";a.resourceType&&(c+="/"+a.resourceType,a.resourceId&&(c+="/"+a.resourceId));return this.executor.get({url:c,options:{params:b},responseConstructor:zF}).pipe(A($wa))};
var yXb=function(a,b){return a.executor.get({url:"action/issues/"+b+"/events",options:{params:{currentTrackerId:a.currentTrackerId.getTrackerId()}},responseConstructor:hF}).pipe(A(function(c){return Ji(c,jn,1).map(function(d){return fya(d)})}))},zXb=function(a,b){b=ixa(b);return a.executor.post({url:"action/issues/list/events",body:b,responseConstructor:hF}).pipe(A(function(c){return Ji(c,jn,1).map(function(d){return fya(d)})}))};BF.\u0275fac=function(a){return new (a||BF)(n(tD),n(rF))};
BF.\u0275prov=$c({token:BF,factory:BF.\u0275fac,providedIn:"root"});var CF=function(a){this.observableApi=a};W(CF,AF);g=CF.prototype;g.createIssue=function(a){return(0,B.firstValueFrom)(this.observableApi.createIssue(a))};g.createIssueWithWizard=function(a){return(0,B.firstValueFrom)(this.observableApi.createIssueWithWizard(a))};g.getIssue=function(a){return(0,B.firstValueFrom)(this.observableApi.getIssue(a))};g.batchGetIssues=function(a){return(0,B.firstValueFrom)(this.observableApi.batchGetIssues(a))};
g.updateIssue=function(a,b){return(0,B.firstValueFrom)(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return(0,B.firstValueFrom)(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return(0,B.firstValueFrom)(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return(0,B.firstValueFrom)(this.observableApi.unCcUser(a))};g.updateAccessLimit=function(a,b,c,d){return(0,B.firstValueFrom)(this.observableApi.updateAccessLimit(a,b,c,d))};
g.getRetainedAccessPrincipals=function(a,b,c,d){return(0,B.firstValueFrom)(this.observableApi.getRetainedAccessPrincipals(a,b,c,d))};g.relateIssue=function(a,b){return(0,B.firstValueFrom)(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return(0,B.firstValueFrom)(this.observableApi.updateIssueHotlists(a,b))};g.updateIssueRetention=function(a,b){return(0,B.firstValueFrom)(this.observableApi.updateIssueRetention(a,b))};
g.listIssues=function(a,b){b=void 0===b?{}:b;return(0,B.firstValueFrom)(this.observableApi.listIssues(a,b))};g.issueBulkEdit=function(a,b){return(0,B.firstValueFrom)(this.observableApi.issueBulkEdit(a,b))};g.getRelatedIssues=function(a){return(0,B.firstValueFrom)(this.observableApi.getRelatedIssues(a))};CF.\u0275fac=function(a){return new (a||CF)(n(BF))};CF.\u0275prov=$c({token:CF,factory:CF.\u0275fac,providedIn:"root"});var DF=function(){this.bookmarkGroupModified=new B.Subject;this.commentSubmitted=new B.Subject;this.commentRendered=new B.Subject;this.componentModified=new B.Subject;this.contactChipsRevertChanges=new B.Subject;this.customFieldsModified=new B.Subject;this.dashboardPanels={moveDown:new B.Subject,moveUp:new B.Subject,moveToTop:new B.Subject,moveToBottom:new B.Subject,remove:new B.Subject};this.favoritesModified=new B.Subject;this.hotlistCreated=new B.Subject;this.onClickAppMenuIcon=new B.Subject;this.openEditField=
new B.Subject;this.sidebarWidthChanged=new B.Subject;this.hotlistChanged=new B.Subject;this.savedSearchModified=new B.Subject;this.sidebarUpdated=new B.Subject;this.topBarEvents={browseComponents:new B.Subject,manageHotlists:new B.Subject,manageSlos:new B.Subject,setDensity:new B.Subject,openSettings:new B.Subject};this.templateModified=new B.Subject;this.issueViewed=new B.Subject;this.issueEdited=new B.Subject;this.focusCommentBox=new B.Subject;this.scrollToCommentBox=new B.Subject;this.needsAttentionIssueCount=
new B.Subject;this.recaptchaSubmitted=new B.Subject;this.missionControlTaskCount=new B.BehaviorSubject(void 0)};DF.\u0275fac=function(a){return new (a||DF)};DF.\u0275prov=$c({token:DF,factory:DF.\u0275fac,providedIn:"root"});var AXb=function(a){this.internalArray_=m(a)};W(AXb,X);g=AXb.prototype;g.getSignalsList=function(){return kj(this,6)};g.setSignalsList=function(a){ac(this,6,a,rb)};g.getCount=function(){return hi(this,1)};g.setCount=function(a){return nj(this,1,a)};g.setS=function(a){qj(this,2,a)};g.setP=function(a){return nj(this,3,a)};g.getNextPageToken=function(){return Hi(this,4)};g.setTrackerIdsList=function(a){rm(this,5,a)};AXb.repeatedFields_=[6,5];var EF=function(a){this.internalArray_=m(a)};W(EF,X);EF.prototype.getTimestamp=function(){return Fi(this,gj,2)};EF.prototype.setTimestamp=function(a){return oj(this,gj,2,a)};EF.prototype.hasTimestamp=function(){return Zi(this,gj,2)};var rn=function(a){this.internalArray_=m(a)};W(rn,X);rn.prototype.getIssue=function(){return Fi(this,Cm,1)};rn.prototype.setIssue=function(a){oj(this,Cm,1,a)};rn.prototype.getSignalsList=function(){return Ji(this,EF,2)};rn.prototype.setSignalsList=function(a){om(this,2,a)};rn.repeatedFields_=[2];var FF=function(a){this.internalArray_=m(a,0,FF.messageId)};W(FF,X);FF.prototype.getNumTotalResults=function(){return hi(this,2)};FF.prototype.getComponentsMap=function(){return $b(this,3,Tm,Eb)};FF.prototype.getNextPageToken=function(){return Hi(this,4)};FF.repeatedFields_=[1];FF.messageId="b.NeedsAttentionSearchResponse";var GF=function(a){this.internalArray_=m(a)};W(GF,X);GF.prototype.getIssueIdsList=function(){return Hj(this,1)};GF.prototype.setIssueIdsList=function(a){return ac(this,1,a,vb)};GF.prototype.addIssueIds=function(a){Ct(this,1,a)};GF.repeatedFields_=[1];var BXb=function(a){this.internalArray_=m(a,0,BXb.messageId)};W(BXb,X);BXb.messageId="b.UpdateIssueDismissTimestampResponse";var HF=function(a,b){this.executor=a;this.appEvents=b;this.COUNT=100};HF.prototype.listIssues=function(a,b,c){var d=this,e=(new AXb).setCount(this.COUNT).setP(1);a&&e.setS(a.toApiUrlParam());b&&e.setTrackerIdsList(b);c&&e.setSignalsList(c.map(Cya));return this.executor.post({url:"action/issues/attention",body:e,responseConstructor:FF}).then(zya).then(function(f){d.appEvents.needsAttentionIssueCount.next(f.numTotalResults||0);return f})};
var IF=function(a,b,c){b=(new GF).setIssueIdsList(b.map(fl));c=mj(b,2,c);return a.executor.post({url:"action/issues/dismiss_timestamp",body:c,responseConstructor:BXb}).then(Bya)};HF.\u0275fac=function(a){return new (a||HF)(n(uD),n(DF))};HF.\u0275prov=$c({token:HF,factory:HF.\u0275fac,providedIn:"root"});var JF=function(a,b,c,d,e){this.$window=a;this.issueApi=b;this.hotlistApi=c;this.needsAttentionApi=d;this.paths=e;this.previousResultsFetcher=this.nextResultsFetcher=this.currentResultsFetcher=null;this.focusedIssueIndex=-1},KF=function(a,b){var c=Rj();CXb(b.page)?(DXb(a,b),a.currentResultsFetcher.fetchIssues().then(function(d){d.getIssueIdFromIndex&&(d.numPages&&b.page>d.numPages?c.reject(d.numPages):c.resolve(d))},function(d){c.reject(d)})):c.reject(1);return c.promise},FXb=function(a){var b=Rj(),
c=null;a.currentResultsFetcher?c=a.currentResultsFetcher.params:c=EXb(a);c?(DXb(a,c),a.currentResultsFetcher.fetchIssues().then(function(d){d.getIssueIdFromIndex?b.resolve(d):b.reject(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},LF=function(a){a.currentResultsFetcher=null;a.nextResultsFetcher=null;a.previousResultsFetcher=null;a.focusedIssueIndex=-1},GXb=function(a,b){var c=Rj();a.focusedIssueIndex=-1;if(!a.currentResultsFetcher)return c.reject("No search results available."),
c.promise;var d=Math.floor((b-1)/a.currentResultsFetcher.params.resultsPerPage)+1;if(1<Math.abs(d-a.currentResultsFetcher.params.page))return c.reject("Requested index is out of range."),c.promise;var e=li(a.currentResultsFetcher.params);e.page=d;DXb(a,e);a.currentResultsFetcher.fetchIssues().then(function(f){f.getIssueIdFromIndex&&((f=f.getIssueIdFromIndex(b))?(a.focusedIssueIndex=b,c.resolve(f)):c.reject("No issue available at index "+b))},function(f){c.reject(f)});return c.promise};
JF.prototype.getFocusedIssue=function(){return this.focusedIssueIndex};
var HXb=function(a){a.currentResultsFetcher?a.currentResultsFetcher.fetchIssues().then(function(b){b.getIssueIdFromIndex&&(a.focusedIssueIndex=b.endIndex>=b.startIndex?b.startIndex:-1)}).catch(function(b){Ek("unexpected error fetching:",b)}):a.focusedIssueIndex=-1},EXb=function(a){if(a=a.$window.sessionStorage.getItem("buganizer.searchParams")){a=JSON.parse(a);if(!a.query||!a.page||!a.resultsPerPage)return null;a.sortColumns&&(a.sortColumns=a.sortColumns.map(function(b){return new Pi(new Li(b.fieldId),
b.direction)}));return a}return null},IXb=function(a,b,c){b=li(b);b.page=c;return new ZWb(a.issueApi,a.hotlistApi,a.needsAttentionApi,a.paths,b)},JXb=function(a,b){a.currentResultsFetcher||(a.currentResultsFetcher=IXb(a,b,b.page),a.currentResultsFetcher.fetchIssues().catch(function(c){Ek("unexpected error fetching:",c)}));!a.previousResultsFetcher&&1<b.page&&(a.previousResultsFetcher=IXb(a,b,b.page-1),a.previousResultsFetcher.fetchIssues().catch(function(c){Ek("unexpected error fetching:",c)}));!a.nextResultsFetcher&&
$Wb(a.currentResultsFetcher)&&(a.nextResultsFetcher=IXb(a,b,b.page+1),a.nextResultsFetcher.fetchIssues().catch(function(c){Ek("unexpected error fetching:",c)}))},DXb=function(a,b){b.page=qi(b.page);if(!b.resultsPerPage||isNaN(b.resultsPerPage))throw Error("tc");a.previousResultsFetcher&&b.page===a.previousResultsFetcher.params.page?(a.nextResultsFetcher=a.currentResultsFetcher,a.currentResultsFetcher=a.previousResultsFetcher,a.previousResultsFetcher=null):a.nextResultsFetcher&&b.page===a.nextResultsFetcher.params.page&&
(a.previousResultsFetcher=a.currentResultsFetcher,a.currentResultsFetcher=a.nextResultsFetcher,a.nextResultsFetcher=null);if(a.currentResultsFetcher){var c=a.currentResultsFetcher.params;b.page===c.page&&b.query===c.query&&ki(b.sortColumns,c.sortColumns)&&b.resultsPerPage===c.resultsPerPage&&ki(b.trackerIds,c.trackerIds)?a.currentResultsFetcher.params.returnUrl=b.returnUrl:LF(a)}JXb(a,b);b=JSON.stringify(a.currentResultsFetcher.params);a.$window.sessionStorage.setItem("buganizer.searchParams",b)},
CXb=function(a){var b=qi(""+a);return isNaN(b)||b!=Number(a)||1>b||2147483647<b?!1:!0};JF.\u0275fac=function(a){return new (a||JF)(n(qF),n(AF),n(mF),n(HF),n(xE))};JF.\u0275prov=$c({token:JF,factory:JF.\u0275fac,providedIn:"root"});var KXb=new Ad("MatSnackBarData"),LXb=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var MXb=new Ad("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new LXb}});Rh(Th(Sh(function(a){this._elementRef=a})));[].concat(p(["disabled","disableRipple","color","tabIndex"]),["extended"]);var NXb=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var OXb=Math.pow(2,31)-1,MF=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new B.Subject;this._afterOpened=new B.Subject;this._onAction=new B.Subject;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};MF.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
var Hya=function(a){a._onAction.closed||(a._dismissedByAction=!0,a._onAction.next(),a._onAction.complete(),a.dismiss());clearTimeout(a._durationTimeoutId)};g=MF.prototype;g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,OXb))};g._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
g._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};g.afterOpened=function(){return this.containerInstance._onEnter};g.onAction=function(){return this._onAction};var PXb=qh("state",[th("void, hidden",sh({transform:"scale(0.8)",opacity:0})),th("visible",sh({transform:"scale(1)",opacity:1})),uh("* => visible",rh("150ms cubic-bezier(0, 0, 0.2, 1)")),uh("* => void, * => hidden",rh("75ms cubic-bezier(0.4, 0.0, 1, 1)",sh({opacity:0})))]);var QXb=0,NF=function(a,b,c,d,e){this._isDisposed=!1;this._ngZone=a;this._elementRef=b;this._changeDetectorRef=c;this._platform=d;this.snackBarConfig=e;this._document=jd(Oh);this._trackedModals=new Set;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new B.Subject;this._onExit=new B.Subject;this._onEnter=new B.Subject;this._animationState="void";this._liveElementId="mat-snack-bar-container-live-"+QXb++;this._live="assertive"!==e.politeness||e.announcementMessage?"off"===e.politeness?"off":
"polite":"assertive";this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))};W(NF,Uw);NF.prototype.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};NF.prototype.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
var RXb=function(a,b){var c=b.fromState;b=b.toState;("void"===b&&"void"!==c||"hidden"===b)&&a._completeExit();if("visible"===b){var d=a._onEnter;a._ngZone.run(function(){d.next();d.complete()})}};g=NF.prototype;g.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};
g.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)});return this._onExit};g.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};g._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(nf()).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};
g._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals()};
g._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?-1===e.indexOf(a)&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
g._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),0<c.length?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};g._assertNotAttached=function(){};
g._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var b=a._elementRef.nativeElement.querySelector("[aria-hidden]"),c=a._elementRef.nativeElement.querySelector("[aria-live]");if(b&&c){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&b.contains(document.activeElement)&&(d=document.activeElement);b.removeAttribute("aria-hidden");c.appendChild(b);var e;null==(e=d)||
e.focus();a._onAnnounce.next();a._onAnnounce.complete()}},a._announceDelay)})};NF.\u0275fac=function(a){return new (a||NF)(z(Df),z(ae),z(xv),z(Fw),z(NXb))};NF.\u0275dir=sd({type:NF,viewQuery:function(a,b){a&1&&zg(Xw,7);if(a&2){var c;yg(c=Bg())&&(b._portalOutlet=c.first)}},features:[Jf]});var OF=function(a,b,c,d,e,f){this._overlay=a;this._live=b;this._injector=c;this._breakpointObserver=d;this._parentSnackBar=e;this._defaultConfig=f;this._snackBarRefAtThisLevel=null};g=OF.prototype;g.open=function(a,b,c){b=void 0===b?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this._attach(this.simpleSnackBarComponent,d)};g.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};
g.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};g._attachSnackBarContainer=function(a,b){var c=Gf({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:NXb,useValue:b}]});a=a.attach(new Sw(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new NXb,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new MF(b,e);if(a instanceof vg)f.instance=b.attachTemplatePortal(new Tw(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new Sw(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Af(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
g._animateSnackBar=function(a,b){var c=this;a._afterDismissed.subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});this._openedSnackBarRef?(this._openedSnackBarRef._afterDismissed.subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter();b.duration&&0<b.duration&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)})};
g._createOverlay=function(a){var b=new Hy;b.direction=a.direction;var c=this._overlay.position().global(),d="rtl"===a.direction;d="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!d||"end"===a.horizontalPosition&&d;var e=!d&&"center"!==a.horizontalPosition;d?c.left("0"):e?c.right("0"):KMb(c);"top"===a.verticalPosition?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return Gf({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:MF,useValue:b},{provide:KXb,useValue:a.data}]})};Qh.Object.defineProperties(OF.prototype,{_openedSnackBarRef:{configurable:!0,enumerable:!0,get:function(){var a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}}});
OF.\u0275fac=function(a){return new (a||OF)(n(Py),n(Zx),n(eu),n(Tx),n(OF,12),n(MXb))};OF.\u0275prov=$c({token:OF,factory:OF.\u0275fac});var PF=function(a,b){this.snackBarRef=a;this.data=b};PF.prototype.action=function(){Hya(this.snackBarRef)};Qh.Object.defineProperties(PF.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});PF.\u0275fac=function(a){return new (a||PF)(z(MF),z(KXb))};
PF.\u0275cmp=od({type:PF,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,b){a&1&&(D(0,"span",0),Q(1),F(),P(2,Dya,3,1,"div",1));a&2&&(w(1),jg(b.data.message),w(1),C("ngIf",b.hasAction))},dependencies:[Ev,Ez],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],
encapsulation:2,changeDetection:0});var QF=function(){NF.apply(this,arguments)};W(QF,NF);QF.\u0275dir=NF.\u0275dir;QF.prototype._afterPortalAttached=function(){NF.prototype._afterPortalAttached.call(this);"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center");"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")};QF.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(QF)))(b||QF)}}();
QF.\u0275cmp=od({type:QF,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(a,b){a&1&&Sja("@state.done",function(c){return RXb(b,c)});a&2&&(Nf("mat-id-collision",null),dg("@state",b._animationState))},features:[Jf],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(D(0,"div",0),P(1,Eya,0,0,"ng-template",1),F(),G(2,"div"));a&2&&(w(2),Nf("aria-live",b._live)("role",b._role)("id",b._liveElementId))},
dependencies:[Xw],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[PXb]}});var RF=function(){};RF.\u0275fac=function(a){return new (a||RF)};RF.\u0275mod=qd({type:RF});RF.\u0275inj=ad({imports:[Sy,Yw,Sv,SB,Ty,Ty]});var SF=function(a,b,c,d,e,f){OF.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=PF;this.snackBarContainerComponent=QF;this.handsetCssClass="mat-snack-bar-handset"};W(SF,OF);SF.\u0275fac=function(a){return new (a||SF)(n(Py),n(Zx),n(eu),n(Tx),n(SF,12),n(MXb))};SF.\u0275prov=$c({token:SF,factory:SF.\u0275fac,providedIn:RF});var TF=function(a){this.snackBar=a};TF.prototype.open=function(a){var b=a.message,c=a.duration,d=a.snackbarType;a={dismissLabel:a.dismissLabel,actionLabel:a.actionLabel,snackbarType:d};"string"===typeof b?a.message=b:a.htmlMessage=b;switch(d){case "ERROR":b="error";break;default:b=void 0}b={data:a,panelClass:b};c&&(b.duration=c);return this.snackBar._attach(UF,b)};TF.\u0275fac=function(a){return new (a||TF)(n(SF))};TF.\u0275prov=$c({token:TF,factory:TF.\u0275fac,providedIn:"root"});
var UF=function(a,b){this.data=a;this.snackBarRef=b};UF.\u0275fac=function(a){return new (a||UF)(z(KXb),z(MF))};
UF.\u0275cmp=od({type:UF,selectors:[["ng-component"]],decls:7,vars:5,consts:[[1,"snackbar-content"],["class","message",4,"ngIf"],["class","message",3,"innerHtml",4,"ngIf"],[1,"actions"],["mat-button","",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Dismiss",3,"click",4,"ngIf"],[1,"message"],[1,"message",3,"innerHtml"],["mat-button","",3,"click"],["mat-icon-button","","aria-label","Dismiss",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,Fya,2,1,"span",1),P(2,
Gya,1,1,"span",2),D(3,"div",3),P(4,Iya,2,1,"button",4),P(5,Jya,2,1,"button",4),P(6,Kya,2,0,"button",5),F()());a&2&&(w(1),C("ngIf",!b.data.htmlMessage),w(1),C("ngIf",b.data.htmlMessage),w(2),C("ngIf",b.data.actionLabel),w(1),C("ngIf",b.data.dismissLabel),w(1),C("ngIf",!b.data.dismissLabel))},dependencies:[Ev,qA,Ez],styles:[".snackbar-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;word-break:break-word}button[_ngcontent-%COMP%]:not(.mat-icon-button){height:24px;line-height:24px;padding:0 10px}.mat-icon-button[_ngcontent-%COMP%]{line-height:24px}.actions[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;margin-left:5px;align-items:center}/*# sourceMappingURL=snackbar_content.css.map */"]});var VF=function(a){this.snackbar=a};VF.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var WF=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},SXb=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})};VF.prototype.showWarning=function(a,b){this.open({message:a,duration:void 0===b?0:b,snackbarType:"ERROR"})};VF.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};VF.\u0275fac=function(a){return new (a||VF)(n(TF))};
VF.\u0275prov=$c({token:VF,factory:VF.\u0275fac,providedIn:"root"});var XF=function(a,b,c,d){this.butterBar=a;this.activeSession=b;this.$log=c;this.timeout=d};
XF.prototype.errorHandler=function(a,b){var c=this;this.timeout.schedule(function(){var d=403===b.status?"Access denied for: "+c.activeSession.getUserEmail():429===b.status?"Request throttled for: "+c.activeSession.getUserEmail()+". Please wait a few seconds and try again.":tn(b)?tn(b):404===b.status?"Invalid ID.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";c.$log.error(d,b);c.butterBar.showWarning(d)})};
var YF=function(a,b){a.$log.warn(b);a.butterBar.showWarning(b)},ZF=function(a,b){if(sn(b))a.errorHandler(null,b);else throw b;};XF.\u0275fac=function(a){return new (a||XF)(n(VF),n(Us),n(dE),n(rD))};XF.\u0275prov=$c({token:XF,factory:XF.\u0275fac,providedIn:"root"});var $F=function(a){this.internalArray_=m(a,0,$F.messageId)};W($F,X);$F.prototype.getTrackersList=function(){return Ji(this,Lj,1)};$F.repeatedFields_=[1];$F.messageId="b.BatchGetTrackersResponse";var aG=function(a){this.internalArray_=m(a,0,aG.messageId)};W(aG,X);aG.prototype.getTrackersList=function(){return Ji(this,Lj,1)};aG.prototype.getNextPageToken=function(){return Hi(this,2)};aG.prototype.getTotalSize=function(){return hi(this,3)};aG.repeatedFields_=[1];aG.messageId="b.ListTrackersResponse";var bG=function(a){this.jspbExecutor=a};bG.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:Lj}).pipe(A(bqa))};bG.prototype.batchGet=function(a){return this.jspbExecutor.get({url:"action/trackers/batch",responseConstructor:$F,options:{params:{trackerIds:a}}}).pipe(A(cqa))};
bG.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:aG,options:{params:{query:a,pageSize:String(b),pageToken:void 0===c?"":c}}}).pipe(A(dqa))};bG.\u0275fac=function(a){return new (a||bG)(n(tD))};bG.\u0275prov=$c({token:bG,factory:bG.\u0275fac,providedIn:"root"});var TXb=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()};g=TXb.prototype;g.age=function(){return Date.now()-this.lastValidated};g.isFresh=function(){return this.age()<this.cfg.freshUntil};g.isAncient=function(){return this.age()>this.cfg.ancientAfter};g.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};g.toString=function(){var a=String(this.data);return Math.ceil(this.age()/1E3)+"s old -- "+a};
var UXb=function(a){this.cfg=a;this.cache=new Map},VXb=function(a,b){a=cG(a,b);return null==a?Infinity:a},cG=function(a,b){var c;return null==(c=a.get(b,!0))?void 0:c.age()};UXb.prototype.isFresh=function(a){return VXb(this,a)<this.cfg.freshUntil};var WXb=function(a,b){return VXb(a,b)<=a.cfg.ancientAfter};g=UXb.prototype;g.isAncient=function(){var a=cG(this);return a?a>this.cfg.ancientAfter:!1};g.getStatus=function(a){a=this.get(a,!0);if(null!=a)return a.getStatus()};
g.has=function(a,b){return!!this.get(a,void 0===b?!1:b)};g.get=function(a,b){b=void 0===b?!1:b;var c=this.cache.get(a);if(null!=c)return c.age()>this.cfg.ancientAfter&&!b&&this.cache.delete(a),this.cache.get(a)};g.getData=function(a,b){var c;return null==(c=this.get(a,void 0===b?!1:b))?void 0:c.data};g.set=function(a,b){this.cache.set(a,new TXb(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new TXb(b.data,this.cfg))};
g.validate=function(a,b,c,d){d=void 0===d?!1:d;if(!this.has(a,d))return!1;a=this.getData(a,d);return c(a,b)};g.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};g.toString=function(){return Array.from(this.cache,function(a){a=l(a);var b=a.next().value;a=a.next().value;b=String(b).slice(-16);var c=a.toString();return a.getStatus()+"  "+b+": "+c}).join("\n")};var dG={trustMemory:!0},XXb=function(){},Hpa=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],YXb=function(a){this.ids=[];Object.assign(this,a)};W(YXb,XXb);YXb.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var ZXb={freshUntil:1E4,ancientAfter:792E5},fG=function(a){var b=this;a=void 0===a?{}:a;this.error$=new B.Subject;this.memoryWasSet$=new B.Subject;this.collectiveMemoryWasSet$=new B.Subject;this.normalizeQueryResponses=!0;this.idKey="id";this.idForRecord=function(c){var d=c[b.idKey];if("string"===typeof d)return d;if("number"===typeof d)return String(d);c=JSON.stringify(c).slice(0,128);if(null==d)throw Error("uc`"+b.idKey+"`"+c);throw Error("vc`"+c);};this.valsById=new Map;this.collectionsById=new Map;
this.setsByLabel=new Map;this.inFlightGets$=new B.BehaviorSubject(Object.freeze({}));this.inFlightSaves$=new B.BehaviorSubject(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(A(Nya));this.saving$=this.inFlightSaves$.pipe(A(Nya));this.thinking$=(0,B.combineLatest)(this.getting$,this.saving$).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),mf());this.gotOne=function(c){return function(d,e){e=void 0===e?{}:e;e=e.doNotTrack?Mya:eG({label:c,value:cG(b.memory,c)});
if(b.memory.validate(c,d,b.isEqual))e("one-isSame"),b.memory.touch(c);else{b.memory.set(c,d);var f=b.valsById.get(c);b.memoryWasSet$.next();e("one-isChanged");f?f.next(d):Ck(b.recordType+"::gotOne("+c+") !isEqual. Nobody's listening")}}};this.gotSet=function(c){return function(d){for(var e=l(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=b.idForRecord(f);b.gotOne(h)(f,{doNotTrack:!0})}(e=$Xb(b,c))?e.next(d):Ek("gotSet("+c+"), but no channel is set up")}};this.gotAll=function(c){return function(d){var e=
eG({label:c,value:cG(b.collectiveMemory,c)});if(b.normalizeQueryResponses)for(var f=l(d.results),h=f.next();!h.done;h=f.next()){h=h.value;var k=b.idForRecord(h);b.gotOne(k)(h,{doNotTrack:!0})}f=b.normalize(d);b.collectiveMemory.validate(c,f,Gpa);b.collectiveMemory.set(c,f);b.collectiveMemoryWasSet$.next();e("all-isChanged");(e=b.collectionsById.get(c))?(d=b.dereference(f,d.results),e.next(d)):yta(c+" gotAll but don't have a behaviorSubject set up to broadcast on. Strange...",d)}};this.dereferenceOne=
function(c){return function(d){var e=c.find(function(f){return b.idForRecord(f)===d});null==e&&Ek("Couldn't find a record for id "+d);return e}};this.debug=function(){return{recordType:b.recordType,isThinking:b.isThinking(),inFlightGets:Object.entries(b.inFlightGets()).map(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves()).map(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),records:b.memory.debug(),
lists:b.collectiveMemory.debug()}};this.implementsFn=function(){return function(){try{b.doSave()}catch(d){var c=d;if((void 0===c.message?"":c.message).match("Default no-op for Fridge"))return!1}return!0}};this.canSave=this.implementsFn();this.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=function(c){return null==c?Nya(b.inFlightSaves()):!!b.inFlightSaves()[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(A(function(d){return!!d[c]}),mf())};this.isGetting=function(c){return null==
c?Nya(b.inFlightGets()):!!b.inFlightGets()[c]};this.watchOne=this.watch=function(c,d){d=void 0===d?dG:d;"number"===typeof d&&(d=dG);if(null==c)return(0,B.of)();"number"===typeof c&&(c=String(c));var e=aYb(b,c);bYb(b,c,d).catch(function(){});return vu(e)};this.watchSet=function(c,d){d=void 0===d?dG:d;"number"===typeof d&&(d=dG);if(0===c.length)return(0,B.of)([]);c=c.map(function(f){return"number"===typeof f?String(f):f});var e=$Xb(b,c);cYb(b,c,d);return e};this.watchMany=function(c){var d=void 0===
d?dG:d;c=Object.assign({},b.defaultQuery,c);var e=dYb(b,c);b.getAll(c,d);return vu(e)};this.save=function(c){var d=b.idForRecord(c);if(null==d)throw Error("wc");c=b.doSave(c).pipe(lf(0,B.asapScheduler),Cia(),Ke());b.setIsSaving(d);c.subscribe(b.gotOne(d),b.gotErr(d,b.inFlightSaves$),eYb(d,b.inFlightSaves$));return c};this.setIsSaving=function(c){var d={};Oya(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){Pya(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};Oya(b.inFlightGets$,
(d[c]=!0,d))};this.clearIsGetting=function(c){Pya(b.inFlightGets$,c)};this.poke=function(c,d){return null==c?Wya():bYb(b,String(c),d)};this.pokeMany=function(c){return null==c?Promise.resolve({results:[]}):b.getAll(Object.assign({},b.defaultQuery,c),void 0)};this.announce=function(c,d){d=void 0===d?{}:d;if(null!=c){var e=b.idForRecord(c);if(null==e)throw Error("xc");b.gotOne(e)(c,Object.assign({},{doNotTrack:!0},d))}};this.memory=new UXb(Object.assign({},ZXb,a));this.collectiveMemory=new UXb(Object.assign({},
ZXb,a))};g=fG.prototype;g.fetchOne=function(){throw Error("yc");};g.fetchAll=function(){throw Error("zc");};g.fetchSet=function(){throw Error("Ac");};g.doSave=function(){throw Error("Bc");};g.copy=function(){throw Error("Cc");};g.isEqual=function(a,b){return Gpa(a,b,100)};g.inFlightGets=function(){return this.inFlightGets$.getValue()};g.inFlightSaves=function(){return this.inFlightSaves$.getValue()};
var bYb=function(a,b,c){c=void 0===c?{}:c;var d=c.trustMemory,e=c.trustUncertainMemory;c=eG({label:b,value:cG(a.memory,b)});d=d&&a.memory.isFresh(b);e=e&&WXb(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),Vya(c);if(a.inFlightGets()[b])return c("one-inFlight"),c=aYb(a,b),Uya(c).then(Vya);c("one-fetch");var f=a.fetchOne(b).pipe(lf(0,B.asapScheduler));a.setIsGetting(b);return new Promise(function(h,k){f.subscribe(function(q){a.gotOne(b)(q);h(q)},function(q){a.gotErr(b,a.inFlightGets$)(q);
k(q)},eYb(b,a.inFlightGets$))})},cYb=function(a,b,c){c=(void 0===c?{}:c).trustMemory;var d="["+[].concat(p(b)).sort().join("-")+"]",e=eG({label:d});if(c&&fYb(a,b))gYb(a,b),e("set-trustMemory");else if(a.inFlightGets()[d])e("set-inFlight");else{e("set-fetch");c=a.fetchSet(b).pipe(lf(0,B.asapScheduler));e={};e=(e[d]=!0,e);for(var f=l(b),h=f.next();!h.done;h=f.next())e[h.value]=!0;Oya(a.inFlightGets$,e);c.subscribe(a.gotSet(b),function(k){Qya(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){Qya(a.inFlightGets$,
[d].concat(p(b)))})}},fYb=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},gYb=function(a,b){var c=hYb(a,b).filter(cl);$Xb(a,b).next(c)};
fG.prototype.getAll=function(a,b){var c=(void 0===b?{}:b).trustMemory;b=Rya(a);var d=eG({label:b,value:cG(this.collectiveMemory,b)});if(c&&this.collectiveMemory.isFresh(b))return d("all-trustMemory"),a=this.collectiveMemory.getData(b),b=hYb(this,a.ids).filter(cl),a=this.dereference(a,b),Promise.resolve(a);if(this.inFlightGets()[b])return d("all-inFlight"),a=dYb(this,a),Uya(a);d("all-fetch");c=this.fetchAll(a).pipe(lf(0,B.asapScheduler));this.setIsGetting(b);c.subscribe(this.gotAll(b),this.gotErr(b,
this.inFlightGets$),eYb(b,this.inFlightGets$));a=dYb(this,a);return Uya(a)};fG.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);zta(a+" gotErr()",d);Pya(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};var eYb=function(a,b){return function(){Pya(b,a)}};fG.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new YXb(Object.assign({},Tya(a),{ids:b}))};
fG.prototype.dereference=function(a,b){b=a.ids.map(this.dereferenceOne(b)).filter(Boolean);return Object.assign({},Tya(a),{results:b})};
var hYb=function(a,b){return b.map(function(c){return a.memory.getData(c)})},dYb=function(a,b){b=Rya(b);return Sya(a.collectionsById,b,new B.ReplaySubject(1))},$Xb=function(a,b){b="["+[].concat(p(b)).sort().join("-")+"]";return Sya(a.setsByLabel,b,new B.ReplaySubject(1))},aYb=function(a,b){var c=new B.ReplaySubject(1),d=a.memory.getData(b);null!=d&&c.next(d);return Sya(a.valsById,b,c)},iYb=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(Rya(b))};
fG.prototype.invalidate=function(a){null==a?(this.memory.cache.clear(),this.collectiveMemory.cache.clear()):["string","number"].includes(typeof a)?this.memory.cache.delete(String(a)):this.collectiveMemory.cache.delete(Rya(a))};
var gG=function(a,b,c,d){d=void 0===d?{}:d;if(void 0!==d.evenWhenInFlight&&d.evenWhenInFlight||!a.inFlightGets()[b])if(b=a.copy(a.memory.getData(String(b))))c(b),a.announce(b)},eG=function(a){for(var b=l(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,null==a[c]&&delete a[c];return function(){}},hG=function(){fG.apply(this,arguments);this.defaultQuery={}};W(hG,fG);var iG=function(a,b){hG.call(this,{freshUntil:36E5,ancientAfter:2592E5});this.trackerApi=a;this.activeSession=b;this.recordType="tracker";this.idKey="trackerId";(a=this.activeSession.getTracker())&&this.announce(a)};W(iG,hG);iG.prototype.fetchOne=function(a){return this.trackerApi.get(a)};iG.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
iG.prototype.fetchAll=function(a){var b,c;return this.trackerApi.query(null!=(b=a.filter)?b:"",null!=(c=a.pageSize)?c:0,a.pageToken).pipe(A(function(d){var e;return{results:null!=(e=null==d?void 0:d.trackers)?e:[]}}))};iG.\u0275fac=function(a){return new (a||iG)(n(bG),n(Us))};iG.\u0275prov=$c({token:iG,factory:iG.\u0275fac,providedIn:"root"});var jG=function(a,b,c,d){Y.call(this);var e=this;this.currentTrackerId=a;this.activeSession=b;this.trackerFridge=c;this.errorHandler=d;this.handleTrackerError=function(f){e.errorHandler.errorHandler(null,f)};this.trackerId$=this.currentTrackerId.trackerId$;this.tracker$=this.trackerId$.pipe(zf(function(f){return""===f?(0,B.of)(void 0):e.trackerFridge.watch(f).pipe(yf(void 0))}));this.inTracker$=this.tracker$.pipe(A(function(f){return!!f}));this.inTracker=!1;this.associatedTrackers$=this.tracker$.pipe(A(function(f){var h;
return null!=(h=null==f?void 0:f.associatedTrackerIds)?h:[]}),zf(this.trackerFridge.watchSet));this.availableTrackers$=this.associatedTrackers$.pipe(Cf(this.tracker$),A(function(f){var h=l(f);f=h.next().value;return(h=h.next().value)?[h].concat(p(f)):[]}));this.trackerFridge.error$.pipe(Af(this.destroyed$)).subscribe(this.handleTrackerError);this.tracker$.pipe(Af(this.destroyed$)).subscribe(function(f){e.tracker=f});this.inTracker$.pipe(Af(this.destroyed$)).subscribe(function(f){e.inTracker=f})};
W(jG,Y);jG.\u0275dir=Y.\u0275dir;jG.prototype.getTrackerId=function(){return this.currentTrackerId.getTrackerId()};var jYb=function(a){a=a.getTrackerId();if(""!==a&&"0"!==a)return[a]};jG.prototype.setTrackerId=function(a){this.currentTrackerId.setTrackerId(a)};
var kG=function(a,b,c,d){c=void 0===c?a.tracker:c;d=void 0===d?!1:d;c?(d=void 0===d?!1:d,a=a.activeSession.isInternalSession()&&!d&&c.internalBaseUrl?c.internalBaseUrl+"/"+b:c.externalBaseUrl?c.externalBaseUrl+"/"+b:kYb(a,b,!0,c.trackerId,d)):a=kYb(a,b,!1,"",d);return a},kYb=function(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?"":d;a=a.activeSession.getAppBaseUrl(void 0===e?!1:e);return c?a+b+"?tracker="+d:a+b},is=function(a,b){if(!b||!a.tracker)return b;var c,d=null!=(c=b.componentPathId)?c:[],e;b=
null!=(e=b.componentPathName)?e:[];a=Number(a.tracker.componentId);a=d.includes(a)?d.indexOf(a):d.length;return{componentPathId:d.slice(a),componentPathName:b.slice(a)}};jG.\u0275fac=function(a){return new (a||jG)(n(rF),n(Us),n(iG),n(XF))};jG.\u0275prov=$c({token:jG,factory:jG.\u0275fac,providedIn:"root"});var lG=function(a,b,c){Y.call(this);var d=this;this.$window=a;this.activeSession=b;this.currentTracker=c;var e,f;this.trackerName=null!=(f=null==(e=this.activeSession.getTracker())?void 0:e.name)?f:"";this.subscriptions.add(this.currentTracker.tracker$.pipe(Af(this.destroyed$)).subscribe(function(h){var k;d.trackerName=null!=(k=null==h?void 0:h.name)?k:""}))};W(lG,Y);lG.\u0275dir=Y.\u0275dir;
lG.prototype.setTitle=function(a){var b=this.trackerName?this.trackerName:this.activeSession.getAppName();this.$window.document.title=a?a+" - "+b:b};lG.\u0275fac=function(a){return new (a||lG)(n(qF),n(Us),n(jG))};lG.\u0275prov=$c({token:lG,factory:lG.\u0275fac,providedIn:"root"});var mG=function(a){this.internalArray_=m(a,0,mG.messageId)};W(mG,X);mG.repeatedFields_=[1,2];mG.messageId="b.CheckPermissionResponse";var nG=function(){},oG=function(a){this.executor=a};g=oG.prototype;g.get=function(a,b){a=un(vn(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:PE}).pipe(A(zva))};
g.update=function(a,b,c){a=un(vn(a,b));b=new PE;var d,e=(null!=(d=c.admins)?d:[]).map(Pl);om(b,2,e);var f;b.setAppendersList((null!=(f=c.appenders)?f:[]).map(Pl));var h;d=(null!=(h=c.editors)?h:[]).map(Pl);om(b,4,d);var k;b.setReadersList((null!=(k=c.readers)?k:[]).map(Pl));var q;h=(null!=(q=c.restrictedReaders)?q:[]).map(Pl);om(b,11,h);var u;q=(null!=(u=c.restrictedPlusReaders)?u:[]).map(Pl);om(b,12,q);c.implicitAccess&&b.setImplicitAccess(DTb[c.implicitAccess]);return this.executor.post({url:"action/access_policies/"+
a,body:b,responseConstructor:PE}).pipe(A(zva))};g.checkPermission=function(a,b,c,d){a=un(a.join(","));b=un(b);c=un(vn(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:mG}).pipe(A(wva))};g.setAccessLimit=function(a,b,c){a=un(vn(a,b));c=Yua(c);return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:tl}).pipe(A(Wua))};
g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(A(function(b){return"ALLOW"===b.implicitAccess}))};oG.\u0275fac=function(a){return new (a||oG)(n(tD))};oG.\u0275prov=$c({token:oG,factory:oG.\u0275fac,providedIn:"root"});var pG=function(a){this.observableApi=a};W(pG,nG);g=pG.prototype;g.get=function(a,b){return(0,B.firstValueFrom)(this.observableApi.get(a,b))};g.update=function(a,b,c){return(0,B.firstValueFrom)(this.observableApi.update(a,b,c))};
g.checkPermission=function(a,b,c,d){return(0,B.firstValueFrom)(this.observableApi.checkPermission(a,b,c,d))};g.setAccessLimit=function(a,b,c){return(0,B.firstValueFrom)(this.observableApi.setAccessLimit(a,b,c))};g.checkComponentImplicitAccessEnabled=function(a){return(0,B.firstValueFrom)(this.observableApi.checkComponentImplicitAccessEnabled(a))};pG.\u0275fac=function(a){return new (a||pG)(n(oG))};pG.\u0275prov=$c({token:pG,factory:pG.\u0275fac,providedIn:"root"});var wn=function(a){this.internalArray_=m(a,0,wn.messageId)};W(wn,X);wn.prototype.getResource=function(){return Hi(this,1)};wn.prototype.setResource=function(a){return qj(this,1,a)};wn.prototype.getRelation=function(){return Vi(this,2,0)};wn.prototype.setRelation=function(a){rj(this,2,a)};wn.messageId="b.ResourceRelation";var qG=function(a){this.internalArray_=m(a,0,qG.messageId)};W(qG,X);qG.repeatedFields_=[1];qG.messageId="b.UserAccessBatchResponse";var rG=function(){this.resourceNamePattern=RegExp("^((components|issues|hotlists|savedSearches|bookmarkGroups|templates|slos|teams)\\/\\d+|components\\/\\d+\\/slo|components\\/\\d+\\/issueDefaults|teams\\/\\d+\\/slo|issues\\/\\d+\\/(attachments|comments)\\/\\d+)$")};rG.prototype.validate=function(a){return this.resourceNamePattern.test(a)};rG.\u0275fac=function(a){return new (a||rG)};rG.\u0275prov=$c({token:rG,factory:rG.\u0275fac,providedIn:"root"});
var sG=function(a,b,c){var d=this;this.rawUserAccess=a;this.resourceNameValidator=b;this.accesses={};this.accessGetter=c.adapt(function(e){return lYb(d,e)})},lYb=function(a,b){return mYb(a,b).then(function(c){return Zya(b,c)})},uG=function(a,b,c){return a.resourceNameValidator.validate(c)?tG(a,b,c):Promise.reject("invalid resource name: "+c)},nYb=function(a,b){return a.resourceNameValidator.validate(b)?Promise.all([tG(a,"admin",b),tG(a,"writer",b),tG(a,"appender",b),tG(a,"reader",b)]).then(function(c){var d=
l(c);c=d.next().value;var e=d.next().value,f=d.next().value;d=d.next().value;return{admin:c,writer:e,appender:f,reader:d}}):Promise.reject("invalid resource name: "+b)},mYb=function(a,b){var c=[],d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return(0,B.firstValueFrom)(a.rawUserAccess.executor.get({url:"action/user_access",options:{params:{relations:c.join(","),resourceNames:d.join(",")}},responseConstructor:qG}).pipe(A(Yya)))},tG=function(a,
b,c){var d=b+"/"+c,e=a.accesses[d];if(e)return e;b=a.accessGetter.get({relation:b,resourceName:c}).then(function(f){return null==f?!1:f});a.accesses[d]=b;b.then(function(){delete a.accesses[d]});return b};sG.\u0275fac=function(a){return new (a||sG)(n(vG),n(rG),n(sD))};sG.\u0275prov=$c({token:sG,factory:sG.\u0275fac,providedIn:"root"});var vG=function(a){this.executor=a};vG.\u0275fac=function(a){return new (a||vG)(n(tD))};vG.\u0275prov=$c({token:vG,factory:vG.\u0275fac,providedIn:"root"});var wG=function(a){this.internalArray_=m(a)};W(wG,X);wG.prototype.getIssueId=function(){return dj(this,1)};wG.prototype.setIssueId=function(a){return um(this,1,a)};wG.prototype.setPageSize=function(a){return il(this,2,a)};wG.prototype.setPageToken=function(a){return wm(this,3,a)};var xG=function(a){this.internalArray_=m(a,0,xG.messageId)};W(xG,X);xG.prototype.getIt=function(){return Fi(this,wG,4)};xG.prototype.setIt=function(a){return oj(this,wG,4,a)};xG.prototype.hasIt=function(){return Zi(this,wG,4)};xG.messageId="b.AggregateIssueDescendantsRequest";var oYb=function(a){this.internalArray_=m(a)};W(oYb,X);g=oYb.prototype;g.getPriority=function(){return Vi(this,1,0)};g.setPriority=function(a){return bm(this,1,a)};g.getIssueIdsList=function(){return Hj(this,2)};g.setIssueIdsList=function(a){return ac(this,2,a,vb)};g.addIssueIds=function(a){Ct(this,2,a)};oYb.repeatedFields_=[2];var pYb=function(a){this.internalArray_=m(a)};W(pYb,X);g=pYb.prototype;g.getStatus=function(){return Vi(this,1,0)};g.setStatus=function(a){return bm(this,1,a)};g.getIssueIdsList=function(){return Hj(this,2)};g.setIssueIdsList=function(a){return ac(this,2,a,vb)};g.addIssueIds=function(a){Ct(this,2,a)};pYb.repeatedFields_=[2];var qYb=function(a){this.internalArray_=m(a)};W(qYb,X);g=qYb.prototype;g.getIssueIdsList=function(){return Hj(this,3)};g.setIssueIdsList=function(a){return ac(this,3,a,vb)};g.addIssueIds=function(a){Ct(this,3,a)};g.getCollaboratorsList=function(){return Ji(this,ml,8)};g.setCollaborators=function(a){rt(this,8,ml,a)};g.getBlockedByIssueIdsList=function(){return Hj(this,10)};g.getBlockingIssueIdsList=function(){return Hj(this,11)};qYb.repeatedFields_=[3,4,12,5,6,7,8,9,10,11];var yG=function(a){this.internalArray_=m(a)};W(yG,X);yG.prototype.getNextPageToken=function(){return Hi(this,4)};var zG=function(a){this.internalArray_=m(a,0,zG.messageId)};W(zG,X);zG.prototype.getIt=function(){return Fi(this,yG,3)};zG.prototype.setIt=function(a){return oj(this,yG,3,a)};zG.prototype.hasIt=function(){return Zi(this,yG,3)};zG.messageId="b.AggregateIssueDescendantsResponse";var AG=function(a){this.executor=a};
AG.prototype.get=function(a){var b=(new xG).setIt((new wG).setIssueId(a));return this.executor.post({url:"action/issues/aggregateIssueDescendants",body:b,responseConstructor:zG}).pipe(A(function(c){var d;if(c=null==(d=c.getIt())?void 0:Fi(d,qYb,1)){var e,f,h,k,q,u,x,y,E,H;d={_rootId:a,issueIds:c.getIssueIdsList().map(Yk).filter(cl),aggregatedStatus:null!=(q=Ji(c,pYb,4).map($ya).filter(cl))?q:[],aggregatedPriority:null!=(u=Ji(c,oYb,12).map(aza).filter(cl))?u:[],reporters:null!=(x=null==(e=Ji(c,ml,
5))?void 0:e.map(nl))?x:[],assignees:null!=(y=null==(f=Ji(c,ml,6))?void 0:f.map(nl))?y:[],verifiers:null!=(E=null==(h=Ji(c,ml,7))?void 0:h.map(nl))?E:[],collaborators:null!=(H=null==(k=c.getCollaboratorsList())?void 0:k.map(nl))?H:[],changelists:ii(c,9),blockedByIssueIds:c.getBlockedByIssueIdsList().map(Yk).filter(cl),blockingIssueIds:c.getBlockingIssueIdsList().map(Yk).filter(cl)}}else d=void 0;return d}))};AG.\u0275fac=function(a){return new (a||AG)(n(tD))};
AG.\u0275prov=$c({token:AG,factory:AG.\u0275fac,providedIn:"root"});var BG=function(a){hG.call(this);this.api=a;this.recordType="AggregatedIssueMetadata";this.idKey="_rootId";this.isEqual=ki};W(BG,hG);BG.prototype.fetchOne=function(a){return this.api.get(a)};BG.\u0275fac=function(a){return new (a||BG)(n(AG))};BG.\u0275prov=$c({token:BG,factory:BG.\u0275fac,providedIn:"root"});var CG=function(a){this.internalArray_=m(a,0,CG.messageId)};W(CG,X);g=CG.prototype;g.getAuthor=function(){return Hi(this,1)};g.setAuthor=function(a){qj(this,1,a)};g.getDescription=function(){return Hi(this,2)};g.setDescription=function(a){return qj(this,2,a)};g.hasDescription=function(){return Ii(this,2)};g.getPending=function(){return Ri(this,3)};g.getTimestamp=function(){return dj(this,4)};g.setTimestamp=function(a){return xj(this,4,a)};g.hasTimestamp=function(){return cj(this,4)};
CG.repeatedFields_=[5];CG.messageId="b.ChangelistDetailsResponse";var DG=function(a){this.internalArray_=m(a)};W(DG,X);DG.prototype.getIssueIdsList=function(){return Ei(this,1)};DG.prototype.setIssueIdsList=function(a){return rm(this,1,a)};DG.prototype.addIssueIds=function(a){cc(this,1,vb(a))};DG.prototype.getAuthorEmail=function(){return Hi(this,3)};DG.repeatedFields_=[1];var EG=function(a){this.internalArray_=m(a,0,EG.messageId)};W(EG,X);g=EG.prototype;g.getQuery=function(){return Fi(this,DG,1)};g.setQuery=function(a){return oj(this,DG,1,a)};g.clearQuery=function(){st(this,1)};g.hasQuery=function(){return Zi(this,DG,1)};g.getNextPageToken=function(){return Hi(this,2)};EG.messageId="b.ListChangelistsRequest";var cza=function(a){this.internalArray_=m(a)};W(cza,X);g=cza.prototype;g.getAuthor=function(){return Hi(this,1)};g.setAuthor=function(a){qj(this,1,a)};g.getPending=function(){return Ri(this,3)};g.getTimestamp=function(){return Fi(this,gj,4)};g.setTimestamp=function(a){return oj(this,gj,4,a)};g.hasTimestamp=function(){return Zi(this,gj,4)};g.getIssueIdsList=function(){return Ei(this,5)};g.setIssueIdsList=function(a){return rm(this,5,a)};g.addIssueIds=function(a){cc(this,5,vb(a))};
cza.repeatedFields_=[5,6];var FG=function(a){this.internalArray_=m(a,0,FG.messageId)};W(FG,X);FG.prototype.getNextPageToken=function(){return Hi(this,2)};FG.repeatedFields_=[1];FG.messageId="b.ListChangelistsResponse";var GG=function(a){this.internalArray_=m(a,0,GG.messageId)};W(GG,X);GG.repeatedFields_=[1];GG.messageId="b.PendingChangelistsResponse";var HG=function(a){this.executor=a};HG.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:GG}).pipe(A(bza))};HG.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:CG}).pipe(A(fza))};
var rYb=function(a,b){var c=new EG,d=c.setQuery;b=(new DG).setIssueIdsList(b);b=rj(b,2,2);c=d.call(c,b);return a.executor.post({url:"action/changelists/list",body:c,responseConstructor:FG}).pipe(A(eza))};HG.\u0275fac=function(a){return new (a||HG)(n(tD))};HG.\u0275prov=$c({token:HG,factory:HG.\u0275fac,providedIn:"root"});var IG=function(a){this.changelistResources=a};IG.prototype.getPendingChangelistsForIssue=function(a){return(0,B.firstValueFrom)(this.changelistResources.getPendingChangelistsForIssue(a))};
IG.prototype.getChangelistDetails=function(a){return(0,B.firstValueFrom)(this.changelistResources.getChangelistDetails(a))};IG.\u0275fac=function(a){return new (a||IG)(n(HG))};IG.\u0275prov=$c({token:IG,factory:IG.\u0275fac,providedIn:"root"});var JG=function(a){fG.call(this);this.api=a;this.defaultQuery={};this.recordType="Changelist";this.idKey="changelistNumber"};W(JG,fG);JG.prototype.fetchAll=function(a){if(a=a.pendingForIssues)return 0===a.length?(0,B.of)({results:[]}):rYb(this.api,a).pipe(A(function(b){var c;return{results:null!=(c=b.changelists)?c:[]}}));throw Error("Ec");};JG.\u0275fac=function(a){return new (a||JG)(n(HG))};JG.\u0275prov=$c({token:JG,factory:JG.\u0275fac,providedIn:"root"});var sYb=function(a){this.internalArray_=m(a,0,sYb.messageId)};W(sYb,X);sYb.messageId="b.CreateComponentResponse";var KG=function(a){this.internalArray_=m(a,0,KG.messageId)};W(KG,X);KG.repeatedFields_=[1];KG.messageId="b.ListComponentsResponse";var Vm=function(a){this.internalArray_=m(a)};W(Vm,X);Vm.prototype.getComponentPath=function(){return Hi(this,1)};Vm.prototype.getRetentionSettings=function(){return Fi(this,cm,2)};Vm.prototype.setRetentionSettings=function(a){oj(this,cm,2,a)};Vm.prototype.hasRetentionSettings=function(){return Zi(this,cm,2)};var LG=function(a){this.internalArray_=m(a,0,LG.messageId)};W(LG,X);LG.repeatedFields_=[2];LG.messageId="b.SubcomponentsResponse";var tYb=function(){},uYb=function(){},MG=function(a,b){this.executor=a;this.currentTrackerId=b};W(MG,uYb);g=MG.prototype;g.get=function(a){return this.query({id:[a]}).pipe(A(function(b){return b.length?b[0]:null}))};g.getChildren=function(a,b){a={parentId:String(a)};if(void 0===b?0:b)a.includearchived=!0;return this.query(a)};g.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:LG}).pipe(A(Jxa))};
g.fetchComponent=function(a,b){var c={};b.checkEditAccess&&(c.checkEditAccess="true");return this.executor.get({url:"action/components/"+a,options:{params:c},responseConstructor:Tm}).pipe(A(Qm))};
g.query=function(a){var b={};a.id&&(b.id=a.id.map(String));a.parentId&&(b.parentId=String(a.parentId));a.query&&(b.query=a.query);a.includearchived&&(b.includearchived="true");a=this.currentTrackerId.getTrackerId();xn(a)||(b.currentTrackerId=a);return this.executor.get({url:"action/components",options:{params:b},responseConstructor:KG}).pipe(A(Hxa))};
g.create=function(a){a=Bxa(a);return this.executor.post({url:"action/components",body:a,responseConstructor:sYb}).pipe(A(function(b){return Qm(Fi(b,Tm,1))}))};
g.update=function(a){var b=a.componentId,c=new Tm;c.setComponentId(String(a.componentId));wj(c,2,String(a.parentComponentId));c.setName(a.name);c.setDescription(a.description);c.setArchived(a.archived);if(a.componentPathInfo){var d=a.componentPathInfo,e=new Rm;if(d.componentPathId){var f=d.componentPathId.map(String);rm(e,1,f)}d.componentPathName&&(f=d.componentPathName.map(String),yj(e,2,f));d.allCustomField&&(d=d.allCustomField.map(tva),om(e,4,d));oj(c,Rm,10,e)}a.accessLimit&&c.setAccessLimit(Yua(a.accessLimit));
qj(c,13,a.emailAlias);a.commentEditState&&c.setCommentEditState("ENABLED"===a.commentEditState?1:2);wj(c,18,String(a.defaultTemplateId));a.slo&&c.setSlo(bwa(a.slo));wj(c,20,a.bugscopeSloId);a.retentionSettings&&c.setRetentionSettings(Sva(a.retentionSettings));a.fieldOrdering&&rj(c,23,ATb[a.fieldOrdering]);a.effortSpec&&(e=Ova(a.effortSpec),oj(c,Zl,24,e));a.team&&c.setTeam(rxa(a.team));var h;c.setTeamSuggestionsList((null!=(h=a.teamSuggestions)?h:[]).map(uxa));return this.executor.post({url:"action/components/"+
b,body:c,responseConstructor:Tm}).pipe(A(Qm))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:String(b)}},responseConstructor:Tm}).pipe(A(Qm))};g.updateSlo=function(a,b){var c=new bF;c.setSlo(bwa(b));return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:Tm}).pipe(A(Qm))};
g.updateTeam=function(a,b){var c=new cF;c.setTeam(rxa(b));return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:Tm}).pipe(A(Qm))};MG.\u0275fac=function(a){return new (a||MG)(n(tD),n(rF))};MG.\u0275prov=$c({token:MG,factory:MG.\u0275fac,providedIn:"root"});var NG=function(a){this.observableApi=a};W(NG,tYb);g=NG.prototype;g.get=function(a){return(0,B.firstValueFrom)(this.observableApi.get(a))};
g.getChildren=function(a,b){return(0,B.firstValueFrom)(this.observableApi.getChildren(a,void 0===b?!1:b))};g.getDescendants=function(a){return(0,B.firstValueFrom)(this.observableApi.getDescendants(a))};g.fetchComponent=function(a,b){return(0,B.firstValueFrom)(this.observableApi.fetchComponent(a,b))};g.query=function(a){return(0,B.firstValueFrom)(this.observableApi.query(a))};g.create=function(a){return(0,B.firstValueFrom)(this.observableApi.create(a))};g.update=function(a){return(0,B.firstValueFrom)(this.observableApi.update(a))};
g.move=function(a,b){return(0,B.firstValueFrom)(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return(0,B.firstValueFrom)(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return(0,B.firstValueFrom)(this.observableApi.updateTeam(a,b))};NG.\u0275fac=function(a){return new (a||NG)(n(MG))};NG.\u0275prov=$c({token:NG,factory:NG.\u0275fac,providedIn:"root"});var OG=function(a){hG.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=a;this.recordType="component";this.idKey="componentId"};W(OG,hG);OG.prototype.fetchOne=function(a){return this.batchedComponentApi.get(a).pipe(gf(function(){return(0,B.of)(void 0)}))};OG.prototype.fetchSet=function(a){var b=this;return(0,B.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(cl)}))};OG.\u0275fac=function(a){return new (a||OG)(n(PG))};
OG.\u0275prov=$c({token:OG,factory:OG.\u0275fac,providedIn:"root"});var PG=function(a,b){var c=this;this.observableComponentApi=a;this.batchApiAdapter=b;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(d){return c.call(d)},split:function(d,e){return c.splitBatch(d,e)}})};
PG.prototype.call=function(a){return 1===a.size?this.observableComponentApi.fetchComponent([].concat(p(a))[0],{}).pipe(A(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(p(a))}).pipe(A(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};PG.prototype.splitBatch=function(a,b){return b.get(Number(a))};PG.\u0275fac=function(a){return new (a||PG)(n(uYb),n(BE))};PG.\u0275prov=$c({token:PG,factory:PG.\u0275fac,providedIn:"root"});var QG=function(a){this.internalArray_=m(a,0,QG.messageId)};W(QG,X);QG.prototype.getSnapshot=function(){return Fi(this,qm,1)};QG.prototype.setSnapshot=function(a){oj(this,qm,1,a)};QG.messageId="b.IssueTemplateResponse";var RG=function(a){this.internalArray_=m(a,0,RG.messageId)};W(RG,X);RG.repeatedFields_=[1];RG.messageId="b.ListTemplatesResponse";var SG=function(a){this.internalArray_=m(a,0,SG.messageId)};W(SG,X);SG.messageId="b.TemplateResponse";var TG=function(){},UG=function(a){this.executor=a};g=UG.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:SG}).pipe(A(gza))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:RG}).pipe(A(hza))};g.create=function(a,b){b=Fxa(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:SG,body:b}).pipe(A(gza))};
g.update=function(a,b,c){c=Fxa(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:SG,body:c}).pipe(A(gza))};g.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};g.getIssueTemplate=function(a,b){return this.executor.get({url:"action/components/"+a+"/issue_template",responseConstructor:QG,options:{params:{templateId:String(b)}}}).pipe(A(Gxa))};UG.\u0275fac=function(a){return new (a||UG)(n(tD))};
UG.\u0275prov=$c({token:UG,factory:UG.\u0275fac,providedIn:"root"});var VG=function(a){this.observableApi=a};W(VG,TG);g=VG.prototype;g.get=function(a,b){return(0,B.firstValueFrom)(this.observableApi.get(a,b))};g.query=function(a){return(0,B.firstValueFrom)(this.observableApi.query(a))};g.create=function(a,b){return(0,B.firstValueFrom)(this.observableApi.create(a,b))};g.update=function(a,b,c){return(0,B.firstValueFrom)(this.observableApi.update(a,b,c))};
g.delete=function(a,b){return(0,B.firstValueFrom)(this.observableApi.delete(a,b))};g.getIssueTemplate=function(a,b){return(0,B.firstValueFrom)(this.observableApi.getIssueTemplate(a,b))};VG.\u0275fac=function(a){return new (a||VG)(n(UG))};VG.\u0275prov=$c({token:VG,factory:VG.\u0275fac,providedIn:"root"});var WG=function(a,b,c,d){this.issueApi=a;this.templatesApi=b;this.errorHandler=c;this.userAccess=d},wYb=function(a,b){b=a.issueApi.getIssue(b).then(function(c){var d=Object,e=d.assign,f=sa(c.issue.snapshot),h=c.firstEvent.unlinkifiedComment;f.comment=h?h.trim():"";f.status="NEW";f.createdTimeMicros=null;f.version=null;f.changelist=null;f.significanceOverride=null;f.duplicateIssueId=null;f.duplicateOfIssueId=null;return e.call(d,{},{snapshot:f,customFieldMap:{}},{trackerId:c.issue.trackerId})}).then(function(c){return vYb(a,
c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},vYb=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return uG(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,h){return e[h]});return b})};WG.\u0275fac=function(a){return new (a||WG)(n(AF),n(TG),n(XF),n(sG))};WG.\u0275prov=$c({token:WG,factory:WG.\u0275fac,providedIn:"root"});var XG=function(a,b){hG.call(this,{freshUntil:3E5,ancientAfter:6048E5});var c=this;this.template=a;this.appEvents=b;this.recordType="componentTemplates";this.idKey="componentId";this.defaultTemplate$=function(d){return c.watch(d).pipe(cf(cl),A(function(e){return e.templates}),A(function(e){var f;return null!=(f=e.find(function(h){return h.default}))?f:e[0]}))};this.appEvents.templateModified.pipe(cf(function(d){return!!d&&"0"!==d})).subscribe(function(d){c.poke(d)})};W(XG,hG);
XG.prototype.fetchOne=function(a){return(0,B.from)(this.template.templatesApi.query(Number(a)).then(function(b){return{componentId:a,templates:b}}))};XG.\u0275fac=function(a){return new (a||XG)(n(WG),n(DF))};XG.\u0275prov=$c({token:XG,factory:XG.\u0275fac,providedIn:"root"});var YG=function(a){this.internalArray_=m(a,0,YG.messageId)};W(YG,X);YG.prototype.setCustomField=function(a){return oj(this,Ml,1,a)};YG.messageId="b.CustomFieldResponse";var ZG=function(){},aH=function(a){this.executor=a};W(aH,ZG);g=aH.prototype;g.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:YG}).then(pva)};g.getResource=function(a){return this.executor.get({url:"action/custom_fields/"+a,responseConstructor:YG}).then(function(b){return hva(Fi(b,Ml,1))})};g.create=function(a,b){b=tva(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:String(a)}},body:b,responseConstructor:YG}).then(pva)};
g.update=function(a,b,c){b=Number(b);c=tva(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:String(a)}},body:c,responseConstructor:YG}).then(pva)};g.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:String(a)}},responseConstructor:null})};aH.\u0275fac=function(a){return new (a||aH)(n(uD))};aH.\u0275prov=$c({token:aH,factory:aH.\u0275fac,providedIn:"root"});var bH=function(a){hG.call(this,{freshUntil:18E5,ancientAfter:2592E6});this.api=a;this.recordType="customFieldResource";this.idKey="customFieldId"};W(bH,hG);bH.prototype.fetchOne=function(a){var b=this;return(0,B.defer)(function(){return b.api.getResource(a)}).pipe(gf(function(c){console.error("error fetching custom field "+a,c);return(0,B.of)(void 0)}))};bH.\u0275fac=function(a){return new (a||bH)(n(ZG))};bH.\u0275prov=$c({token:bH,factory:bH.\u0275fac,providedIn:"root"});var nza=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);var tza=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),sza=RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),wza=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];var cH=function(a){hG.call(this);this.observableIssueResources=a;this.recordType="eventsForIssue"};W(cH,hG);cH.prototype.isEqual=function(a,b){return(null==a?void 0:a.id)!==(null==b?void 0:b.id)?!1:Jza(null==a?void 0:a.events,null==b?void 0:b.events)};cH.prototype.copy=function(a){return a&&li(a)};cH.prototype.fetchOne=function(a){return yXb(this.observableIssueResources,a).pipe(A(function(b){return{id:a,events:b}}))};cH.prototype.fetchSet=function(a){var b=this;return(0,B.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(cl)}))};
cH.\u0275fac=function(a){return new (a||cH)(n(BF))};cH.\u0275prov=$c({token:cH,factory:cH.\u0275fac,providedIn:"root"});var dH=function(a){this.internalArray_=m(a,0,dH.messageId)};W(dH,X);dH.prototype.getIssueId=function(){return dj(this,1)};dH.prototype.setIssueId=function(a){return xj(this,1,a)};dH.prototype.setCurrentTrackerId=function(a){wj(this,3,a)};dH.repeatedFields_=[2];dH.messageId="b.BatchGetIssueCommentsRequest";var eH=function(a){this.internalArray_=m(a,0,eH.messageId)};W(eH,X);eH.prototype.getIssueCommentsList=function(){return Ji(this,UE,1)};eH.repeatedFields_=[1];eH.messageId="b.BatchGetIssueCommentsResponse";var fH=function(a,b){this.jspbExecutor=a;this.currentTrackerId=b};fH.prototype.batchGet=function(a,b){a=(new dH).setIssueId(Number(a));b=ac(a,2,b,tb);(a=this.currentTrackerId.getTrackerId())&&b.setCurrentTrackerId(a);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:eH,body:b}).pipe(A(kya))};fH.\u0275fac=function(a){return new (a||fH)(n(tD),n(rF))};fH.\u0275prov=$c({token:fH,factory:fH.\u0275fac,providedIn:"root"});var gH=function(a,b){hG.call(this);var c=this;this.issueCommentsBatchApi=a;this.batchApiAdapter=b;this.recordType="formattedCommentsForIssue";this.idForRecord=function(d){return d.id.issueId+"-"+d.id.commentId};this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,maxBatchSize:500,call:function(d){return c.call(d)},split:function(d,e){return c.splitBatch(d,e)}})};W(gH,hG);
gH.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return(0,B.combineLatest)(a.map(function(d){return b.get(d)})).pipe(A(function(d){var e=[];d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var h=void 0,k={issueId:c,commentId:null!=(h=f.commentNumber)?h:0};e.push({id:k,formattedComment:f})}return e}))};
gH.prototype.call=function(a){var b="",c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){var e=l(d.value.split("-"));d=e.next().value;e=e.next().value;""!==b&&b===d?c.push(Number(e)):""===b&&(b=d,c.push(Number(e)))}return this.issueCommentsBatchApi.batchGet(b,c).pipe(A(function(f){var h=b,k=new Map;f=l(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var u=void 0,x=Number(h)+"-"+(null!=(u=q.commentNumber)?u:0);k.set(x,q)}return k}))};gH.prototype.splitBatch=function(a,b){return b.get(a)};
gH.\u0275fac=function(a){return new (a||gH)(n(fH),n(BE))};gH.\u0275prov=$c({token:gH,factory:gH.\u0275fac,providedIn:"root"});var hH=function(a){hG.call(this);this.accessPolicyApi=a;this.recordType="hotlistAccessPolicy";this.isEqual=ki};W(hH,hG);hH.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(A(function(b){return Object.assign({},{id:a},b)}))};hH.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(A(function(c){return Object.assign({},{id:b},c)}))};hH.\u0275fac=function(a){return new (a||hH)(n(oG))};
hH.\u0275prov=$c({token:hH,factory:hH.\u0275fac,providedIn:"root"});var xYb=function(a){this.internalArray_=m(a)};W(xYb,X);g=xYb.prototype;g.getUser=function(){return Fi(this,Bi,5)};g.setUser=function(a){oj(this,Bi,5,a)};g.hasUser=function(){return Zi(this,Bi,5)};g.getResourceType=function(){return Vi(this,2,0)};g.setResourceType=function(a){rj(this,2,a)};g.hasResourceType=function(){return Ti(this,2)};g.getResourceId=function(){return Yi(this,3)};g.setResourceId=function(a){wj(this,3,a)};g.hasResourceId=function(){return Xi(this,3)};
g.getName=function(){return Hi(this,4)};g.setName=function(a){return qj(this,4,a)};g.hasName=function(){return Ii(this,4)};g.getNameOrUndefined=function(){return At(this,4)};var co=function(a){this.internalArray_=m(a)};W(co,X);g=co.prototype;g.getSavedSearchId=function(){return dj(this,1)};g.setSavedSearchId=function(a){return um(this,1,a)};g.getName=function(){return Hi(this,2)};g.setName=function(a){return wm(this,2,a)};g.getDescription=function(){return Hi(this,3)};g.setDescription=function(a){return wm(this,3,a)};g.getQuery=function(){return Hi(this,4)};g.setQuery=function(a){return wm(this,4,a)};g.clearQuery=function(){st(this,4)};
g.getDefaultOrderBy=function(){return Hi(this,5)};g.setDefaultOrderBy=function(a){return wm(this,5,a)};g.getDisplayPreferences=function(){return Fi(this,gl,6)};g.setDisplayPreferences=function(a){return oj(this,gl,6,a)};g.getOwnersList=function(){return Ji(this,ml,7)};g.setOwnersList=function(a){return om(this,7,a)};co.repeatedFields_=[7];var Ln=function(a){this.internalArray_=m(a)};W(Ln,X);g=Ln.prototype;g.getName=function(){return Hi(this,3)};g.setName=function(a){return qj(this,3,a)};g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};g.getDescription=function(){return Hi(this,4)};g.setDescription=function(a){return qj(this,4,a)};g.hasDescription=function(){return Ii(this,4)};g.getQuery=function(){return Hi(this,7)};g.setQuery=function(a){return qj(this,7,a)};
g.clearQuery=function(){st(this,7)};g.hasQuery=function(){return Ii(this,7)};g.getSortOrderList=function(){return Ji(this,el,8)};g.setSortOrderList=function(a){om(this,8,a)};g.getDisplayColumnList=function(){return Ji(this,dl,6)};g.setDisplayColumnList=function(a){om(this,6,a)};g.getAdminUsersList=function(){return Ji(this,Bi,11)};g.setAdminUsersList=function(a){om(this,11,a)};g.getIt=function(){return Fi(this,co,12)};g.setIt=function(a){return oj(this,co,12,a)};
g.hasIt=function(){return Zi(this,co,12)};Ln.repeatedFields_=[8,6,11];var dAa=pl("enableLeanFeB");var iH=function(a){this.internalArray_=m(a,0,iH.messageId)};W(iH,X);iH.prototype.getFavorite=function(){return Fi(this,xYb,1)};iH.messageId="b.Favorite";var jH=function(a){this.internalArray_=m(a,0,jH.messageId)};W(jH,X);jH.prototype.addHotlist=function(a){Wp(this,1,ql,a)};jH.prototype.setHotlist=function(a){return rt(this,1,ql,a)};jH.repeatedFields_=[1];jH.messageId="b.HotlistBatchResponse";var Mn=function(a){this.internalArray_=m(a)};W(Mn,X);g=Mn.prototype;g.getId=function(){return Yi(this,1)};g.setId=function(a){return wj(this,1,a)};g.getName=function(){return Hi(this,2)};g.setName=function(a){return qj(this,2,a)};g.hasName=function(){return Ii(this,2)};g.getNameOrUndefined=function(){return At(this,2)};g.getDescription=function(){return Hi(this,3)};g.setDescription=function(a){return qj(this,3,a)};g.hasDescription=function(){return Ii(this,3)};
g.getAdminUsersList=function(){return Ji(this,Bi,8)};g.setAdminUsersList=function(a){om(this,8,a)};g.getStarred=function(){return Ri(this,5)};g.setStarred=function(a){mj(this,5,a)};g.getResourceType=function(){return Hi(this,6)};g.setResourceType=function(a){qj(this,6,a)};g.hasResourceType=function(){return Ii(this,6)};Mn.repeatedFields_=[8];var Nn=function(a){this.internalArray_=m(a)};W(Nn,X);g=Nn.prototype;g.getId=function(){return Yi(this,1)};g.setId=function(a){return wj(this,1,a)};g.getName=function(){return Hi(this,2)};g.setName=function(a){return qj(this,2,a)};g.hasName=function(){return Ii(this,2)};g.getNameOrUndefined=function(){return At(this,2)};g.getDescription=function(){return Hi(this,3)};g.setDescription=function(a){return qj(this,3,a)};g.hasDescription=function(){return Ii(this,3)};
g.getAdminUsersList=function(){return Ji(this,Bi,8)};g.setAdminUsersList=function(a){om(this,8,a)};g.getStarred=function(){return Ri(this,5)};g.setStarred=function(a){mj(this,5,a)};Nn.repeatedFields_=[8,6];var kH=function(a){this.internalArray_=m(a,0,kH.messageId)};W(kH,X);kH.prototype.getHotlistsList=function(){return Ji(this,Mn,1)};kH.repeatedFields_=[1,2,3,4];kH.messageId="b.SidebarInfo";var lH=function(a){this.internalArray_=m(a,0,lH.messageId)};W(lH,X);lH.repeatedFields_=[1];lH.messageId="b.UserRecentComponentResponse";var mH=function(a){this.internalArray_=m(a,0,mH.messageId)};W(mH,X);mH.repeatedFields_=[1];mH.messageId="b.UserSavedSearchesResponse";var nH=function(){},oH=function(){};oH.\u0275fac=function(a){return new (a||oH)};oH.\u0275prov=$c({token:oH,factory:oH.\u0275fac,providedIn:"root"});var pH=function(a){this.executor=a};W(pH,oH);g=pH.prototype;g.getUserHotlists=function(){return this.executor.get({url:"action/current_user/hotlists",responseConstructor:jH}).pipe(A(Uua))};g.getUserSidebar=function(){return this.executor.get({url:"action/current_user/sidebar",responseConstructor:kH}).pipe(A(iAa))};
g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:lH}).pipe(A(Cxa))};g.getUserSavedSearches=function(){return this.executor.get({url:"action/current_user/searches",responseConstructor:mH}).pipe(A(fAa))};g.getFavorite=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:iH}).pipe(A(cAa))};
g.saveFavorite=function(a){var b=new xYb;b.setResourceType(JTb[a.resourceType]);b.setResourceId(String(a.resourceId));return this.executor.post({url:"action/favorites",body:b,responseConstructor:iH}).pipe(A(cAa))};g.deleteFavorite=function(a){return this.executor.delete({url:"action/favorites/"+a.resourceType+"/"+a.resourceId,responseConstructor:null})};
var yYb=function(a,b,c){var d={};d.id=String(b);null!==c.voted&&(d.vote=String(!!c.voted));null!==c.starred&&(d.star=String(!!c.starred));null!==c.notificationSubscription&&(d.subscription=c.notificationSubscription);return a.executor.post({url:"action/current_user/issue_data",body:null,options:{params:d},responseConstructor:null})};pH.\u0275fac=function(a){return new (a||pH)(n(tD))};pH.\u0275prov=$c({token:pH,factory:pH.\u0275fac,providedIn:"root"});var qH=function(a){this.observableApi=a};
W(qH,nH);g=qH.prototype;g.getUserHotlists=function(){return(0,B.firstValueFrom)(this.observableApi.getUserHotlists())};g.getUserSidebar=function(){return(0,B.firstValueFrom)(this.observableApi.getUserSidebar())};g.getRecentComponents=function(){return(0,B.firstValueFrom)(this.observableApi.getRecentComponents())};g.getUserSavedSearches=function(){return(0,B.firstValueFrom)(this.observableApi.getUserSavedSearches())};
g.getFavorite=function(a,b){return(0,B.firstValueFrom)(this.observableApi.getFavorite(a,b))};g.saveFavorite=function(a){return(0,B.firstValueFrom)(this.observableApi.saveFavorite(a))};g.deleteFavorite=function(a){return(0,B.firstValueFrom)(this.observableApi.deleteFavorite(a))};qH.\u0275fac=function(a){return new (a||qH)(n(pH))};qH.\u0275prov=$c({token:qH,factory:qH.\u0275fac,providedIn:"root"});var zYb={parent:"me"},rH=function(a,b,c){hG.call(this,{freshUntil:3E5});var d=this;this.observableHotlistResources=a;this.observableUserResources=b;this.appEvents=c;this.recordType="hotlist";this.idKey="hotlistId";(0,B.merge)(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified).subscribe(function(){d.pokeMany(zYb)})};W(rH,hG);
rH.prototype.fetchOne=function(a){return this.observableHotlistResources.get(a).pipe(gf(function(b){return 403===b.status?(0,B.of)(void 0):(0,B.throwError)(b)}))};rH.prototype.fetchAll=function(a){if("me"===a.parent)return this.observableUserResources.getUserHotlists().pipe(A(function(b){return{results:b}}));Ek("Unsupported query for Fridge['"+this.recordType+"']",a);return(0,B.of)({results:[]})};
rH.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a).pipe(A(function(b){return(null!=b?b:[]).filter(cl)}))};rH.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};var AYb=function(a){return a.watchMany(zYb).pipe(A(function(b){return b.results}))};rH.\u0275fac=function(a){return new (a||rH)(n(pF),n(oH),n(DF))};rH.\u0275prov=$c({token:rH,factory:rH.\u0275fac,providedIn:"root"});var jAa=function(a){this.internalArray_=m(a)};W(jAa,X);jAa.repeatedFields_=[1];var BYb=!1;var lAa=Izb("last-visit"),mAa=Izb("last-visit-count"),oAa=oAb("last-visit"),nAa=oAb("last-visit-count");null==Date.now&&(Date.now=function(){return(new Date).getTime()});var xp={ADD_USER_WITHOUT_ACCESS:"addUserWithoutAccess",BANNED_WORDS:"bannedWords",COMPONENT_PICKER:"componentPicker",CREATE_ISSUE:"createIssue",EDIT_ISSUE:"editIssue",EDIT_SLO:"editSlo",EXPERIMENTAL_HOMEPAGE:"experimentalHomepage",FIELD_ORDERING:"fieldOrdering",G3C_WIDGET:"g3cWidget",G3N:"g3n",GLOBAL_SEARCH:"global-search",ISSUE:"issue",ISSUE_ACCESS_LIMITS:"issueAccessLimits",ISSUE_CARD:"issueCard",ISSUE_EVENT_DETAIL:"issueEventDetail",ISSUE_PICKER:"issuePicker",ISSUE_SLO:"issueSlo",JOURNEY:"journey",
LINK_FIELD:"linkField",LIST_ISSUES:"listIssues",LLM_SUMMARIZE:"llmSummarize",MAGIC_BOX:"magicBox",MANAGE_COMPONENT:"component",MISSION_CONTROL:"missionControl",NEEDS_ATTENTION:"needsAttention",PERSON_CARD:"personCard",PUSH_UPDATE:"pushUpdate",QUICK_ADD_COLLABORATORS:"quickAddCollaborators",RECAPTCHA_TOKEN:"recaptchaToken",RESTRICTED_CONTENT:"restrictedContent",ROLE_BASED_PERMISSIONS:"roleBasedPermissions",SEARCH:"search",SIDEBAR:"sidebar",SLO_REPORTS:"sloReports",TEAM_CARD:"teamCard",TEAM_WARNING:"teamWarning",
UPDATE_HISTORY_MODAL:"updateHistoryModal",WHATS_NEW:"whatsNew"};var sH=function(){var a=new Oo(852,"0");a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.sendBeaconApiEnabled=!0;a=new qB(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new hQb(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};sH.\u0275fac=function(a){return new (a||sH)};sH.\u0275prov=$c({token:sH,factory:sH.\u0275fac,providedIn:"root"});var CYb=Kk("debug-logging")(),tH=function(a,b){this.activeSession=a;this.streamz=b;this.pageLoadTime=new nTb(this.streamz.service);this.userLatency=new pTb(this.streamz.service);this.userActionCounter=new oTb(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
tH.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);CYb&&console.log("Clearcut stub",{action:b,duration:a})};var uH=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);CYb&&console.log("Clearcut stub",{action:c,duration:b})},DYb=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);CYb&&console.log("Clearcut stub",{action:b})};
tH.\u0275fac=function(a){return new (a||tH)(n(Us),n(sH))};tH.\u0275prov=$c({token:tH,factory:tH.\u0275fac,providedIn:"root"});var EYb=xp.GLOBAL_SEARCH,FYb=xp.JOURNEY,GYb=Os("journey-log"),HYb=Ps("journey-log"),vH={},IYb=(vH.ssue__edit="edit",vH.ssue__addComment="comment",vH["ssue__light-ixn"]="ixn",vH.ssue__copyIssueId="ixn",vH[EYb+"__.*__.*text"]="ilp-search",vH[EYb+"__.*__filters"]="ilp-filter",vH),wH={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter","idle"],successMarker:"SUCCESS-search",count:["nav"]},xH=function(a){this.clearcut=a},JYb=function(a,b){var c=void 0===c?Date.now():
c;var d,e=null!=(d=HYb())?d:[];e.push([b,c]);100<e.length&&(e=e.slice(-100));GYb(e);if(wH.successEvents.includes(b)){b=e;c=wH.abortEvents;d=wH.successEvents;e=wH.startEvents;for(var f=wH.successMarker,h,k=b.length-1;0<=k;k--){var q=l(b[k]),u=q.next().value;q=q.next().value;if(c.includes(u))break;if(f===u)break;if(d.includes(u)){if(h&&x)break;var x=q}else x&&e.includes(u)&&(h=q)}x=h&&x?[h,x]:void 0;x&&(x=l(x),h=x.next().value,x=x.next().value-h,uH(a.clearcut,x,qAa(FYb,"global-search-text")),Mk(FYb,
"global-search-text","duration",x),JYb(a,wH.successMarker))}};xH.\u0275fac=function(a){return new (a||xH)(n(tH))};xH.\u0275prov=$c({token:xH,factory:xH.\u0275fac,providedIn:"root"});var yH=function(a){var b=this;this.clearcut=a;this.onMeasurement=function(c){c.getEntries().forEach(b.sendToClearcut)};this.sendToClearcut=function(c){var d=c.name;c=Math.round(c.duration);null!=d&&(isNaN(c)||b.clearcut.timePageLoad&&b.clearcut.timePageLoad(c,d))}},KYb=function(a){Ik()&&(null!=a.observer&&a.observer.disconnect(),a.observer=new Fta.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};yH.\u0275fac=function(a){return new (a||yH)(n(tH))};
yH.\u0275prov=$c({token:yH,factory:yH.\u0275fac,providedIn:"root"});var LYb=Kk("onedev-darkmode"),MYb=Kk("hasClickedCommentSortBtn"),zH=function(a,b,c,d){Y.call(this);var e=this;this.journeyTracker=d;this.preapply=function(){var x=NYb;return function(y){return function(E,H){e.trackEvent(x,y,E,H)}}};pAa();Nk("dimension13",b.getUserTypeLabel());d=b.getUserPreferences();var f=d.needsAttentionPreferences,h;f=null==f?"default":null==f?void 0:null==(h=f.selectedSignals)?void 0:h.length;Nk("dimension1",f);Ok("dimension7",LYb()?"dark":"default");var k;Ok("dimension3",null==
(k=d.themePreferences)?void 0:k.density);Ok("dimension6",$C(b,"readUnreadOptOut"));Ok("dimension8",$C(b,"enableEnhancedCommentThread"));Ok("dimension9",MYb());Ok("dimension14",$C(b,"enablePromptExperiment"));h=d.showFullHistory?"fh":"comments";var q;if($C(b,"enableCommentFiltering")&&(null==(q=d.commentFilterPreferences)?0:q.commentFilter)){var u;h=null==(u=d.commentFilterPreferences)?void 0:u.commentFilter}Nk("dimension2",h);Nk("dimension5",d.showRecentEventsFirst?"newestFirst":"oldestFirst");Ok("dimension11",
$C(b,"enableHomepageVariantA"));this.subscriptions.add(a.viewContentLoaded.pipe(yf(void 0)).subscribe(function(){var x=vta(c.snapshot);Xta("page_location",x);Sta("page_view",{page_path:x})}))};W(zH,Y);zH.\u0275dir=Y.\u0275dir;zH.prototype.trackEvent=function(a,b,c,d){Mk(a,b,c,"boolean"===typeof d?d?1:0:d);d=this.journeyTracker;a=qAa(a,b,c);b=l(Object.entries(IYb));for(c=b.next();!c.done;c=b.next()){var e=l(c.value);c=e.next().value;e=e.next().value;if(a.match(new RegExp(c))){JYb(d,e);break}}};
var OYb=function(a,b,c){Sta("timing",Object.assign({},{timing_category:"userAction",timing_var:a,timing_value:b},void 0!==c?{timing_label:c}:{}))};zH.\u0275fac=function(a){return new (a||zH)(n(gE),n(Us),n(lk),n(xH))};zH.\u0275prov=$c({token:zH,factory:zH.\u0275fac,providedIn:"root"});var PYb=function(a){this.internalArray_=m(a)};W(PYb,X);g=PYb.prototype;g.getComponentId=function(){return dj(this,1)};g.setComponentId=function(a){return um(this,1,a)};g.getType=function(){return Vi(this,2,0)};g.setType=function(a){return bm(this,2,a)};g.getPriority=function(){return Vi(this,3,0)};g.setPriority=function(a){return bm(this,3,a)};g.getSeverity=function(){return Vi(this,4,0)};g.setSeverity=function(a){return bm(this,4,a)};g.getStatus=function(){return Vi(this,5,0)};
g.setStatus=function(a){return bm(this,5,a)};g.getReporter=function(){return Fi(this,ml,6)};g.setReporter=function(a){oj(this,ml,6,a)};g.setAssignee=function(a){oj(this,ml,7,a)};g.clearAssignee=function(){return st(this,7)};g.setVerifier=function(a){oj(this,ml,8,a)};g.clearVerifier=function(){return st(this,8)};g.getCollaboratorsList=function(){return Ji(this,ml,23)};g.setCollaborators=function(a){rt(this,23,ml,a)};g.addHotlistIds=function(a,b){return Ct(this,10,a,b)};
g.getBlockedByIssueIdsList=function(){return Hj(this,11)};g.getBlockingIssueIdsList=function(){return Hj(this,12)};g.getInProd=function(){return Ri(this,15)};g.setInProd=function(a){ho(this,15,a)};g.getSloEndTime=function(){return Fi(this,gj,25)};g.setSloEndTime=function(a){oj(this,gj,25,a)};g.hasSloEndTime=function(){return Zi(this,gj,25)};g.getRetention=function(){return Vi(this,17,0)};g.setRetention=function(a){bm(this,17,a)};g.getEntityStatus=function(){return Fi(this,KC,18)};
g.getIsArchived=function(){return Ri(this,19)};g.setIsArchived=function(a){return ho(this,19,a)};g.getEffort=function(){return Fi(this,sm,24)};g.setEffort=function(a){oj(this,sm,24,a)};g.hasEffort=function(){return Zi(this,sm,24)};g.getAccessLimit=function(){return Fi(this,MC,26)};g.setAccessLimit=function(a){return oj(this,MC,26,a)};PYb.repeatedFields_=[9,23,10,11,12,14];var AH=function(a){this.internalArray_=m(a)};W(AH,X);g=AH.prototype;g.getIssueId=function(){return dj(this,1)};g.setIssueId=function(a){return um(this,1,a)};g.getIssueState=function(){return Fi(this,PYb,2)};g.getVersion=function(){return hi(this,3)};g.setVersion=function(a){return il(this,3,a)};g.getEtag=function(){return Kxa(this,16)};g.setEtag=function(a){bc(this,16,hc(a),Oa())};g.getCreatedTime=function(){return Fi(this,gj,4)};g.setCreatedTime=function(a){return oj(this,gj,4,a)};
g.getModifiedTime=function(){return Fi(this,gj,5)};g.setModifiedTime=function(a){return oj(this,gj,5,a)};g.getSloId=function(){return dj(this,9)};g.setSloId=function(a){return um(this,9,a)};g.getSloStatus=function(){return Fi(this,Im,10)};g.setSloStatus=function(a){oj(this,Im,10,a)};g.hasSloStatus=function(){return Zi(this,Im,10)};g.getTeamId=function(){return dj(this,13)};g.setTeamId=function(a){return um(this,13,a)};g.getRetentionState=function(){return Fi(this,Gm,11)};
g.setRetentionState=function(a){oj(this,Gm,11,a)};g.getAccessLimit=function(){return Fi(this,IB,12)};g.setAccessLimit=function(a){return oj(this,IB,12,a)};g.getParentIssueIdsList=function(){return Hj(this,17)};g.setParentIssueIdsList=function(a){ac(this,17,a,vb)};g.getAncestorsMap=function(){return $b(this,19,Jm,kba)};g.getIsArchived=function(){return Ri(this,18)};g.setIsArchived=function(a){return ho(this,18,a)};AH.repeatedFields_=[17];var QYb=function(a){this.internalArray_=m(a)};W(QYb,X);g=QYb.prototype;g.getComponentId=function(){return dj(this,1)};g.setComponentId=function(a){return xj(this,1,a)};g.hasComponentId=function(){return cj(this,1)};g.getType=function(){return Vi(this,2,0)};g.setType=function(a){return rj(this,2,a)};g.hasType=function(){return Ti(this,2)};g.getPriority=function(){return Vi(this,3,0)};g.setPriority=function(a){return rj(this,3,a)};g.hasPriority=function(){return Ti(this,3)};
g.getSeverity=function(){return Vi(this,4,0)};g.setSeverity=function(a){return rj(this,4,a)};g.hasSeverity=function(){return Ti(this,4)};g.getStatus=function(){return Vi(this,5,0)};g.setStatus=function(a){return rj(this,5,a)};g.hasStatus=function(){return Ti(this,5)};g.getReporter=function(){return Fi(this,Bi,6)};g.setReporter=function(a){oj(this,Bi,6,a)};g.setAssignee=function(a){oj(this,Bi,7,a)};g.clearAssignee=function(){return st(this,7)};g.setVerifier=function(a){oj(this,Bi,8,a)};
g.clearVerifier=function(){return st(this,8)};g.addHotlistIds=function(a,b){return Ct(this,10,a,b)};g.getBlockedByIssueIdsList=function(){return Hj(this,11)};g.getBlockingIssueIdsList=function(){return Hj(this,12)};g.getInProd=function(){return Ri(this,15)};g.setInProd=function(a){mj(this,15,a)};g.getSloStartTime=function(){return Fi(this,gj,16)};g.setSloStartTime=function(a){oj(this,gj,16,a)};g.hasSloStartTime=function(){return Zi(this,gj,16)};g.getSloEndTime=function(){return Fi(this,gj,20)};
g.setSloEndTime=function(a){oj(this,gj,20,a)};g.hasSloEndTime=function(){return Zi(this,gj,20)};g.getRetention=function(){return Vi(this,17,0)};g.setRetention=function(a){rj(this,17,a)};g.getEntityStatus=function(){return Fi(this,SE,18)};g.getIsArchived=function(){return Ri(this,19)};g.setIsArchived=function(a){return mj(this,19,a)};g.getAccessLimitLevel=function(){return Vi(this,21,0)};g.setAccessLimitLevel=function(a){rj(this,21,a)};g.hasAccessLimitLevel=function(){return Ti(this,21)};
QYb.repeatedFields_=[9,10,11,12,14];var BH=function(a){this.internalArray_=m(a,0,BH.messageId)};W(BH,X);g=BH.prototype;g.getIssueId=function(){return dj(this,1)};g.setIssueId=function(a){return xj(this,1,a)};g.getIssueState=function(){return Fi(this,QYb,2)};g.getVersion=function(){return hi(this,3)};g.setVersion=function(a){return nj(this,3,a)};g.getVersionOrUndefined=function(){return yt(this,3)};g.getCreatedTime=function(){return Fi(this,gj,4)};g.setCreatedTime=function(a){return oj(this,gj,4,a)};
g.getModifiedTime=function(){return Fi(this,gj,5)};g.setModifiedTime=function(a){return oj(this,gj,5,a)};g.getSloId=function(){return dj(this,9)};g.setSloId=function(a){return xj(this,9,a)};g.getSloStatus=function(){return Fi(this,Hm,10)};g.setSloStatus=function(a){oj(this,Hm,10,a)};g.hasSloStatus=function(){return Zi(this,Hm,10)};g.getRetentionState=function(){return Fi(this,Fm,11)};g.setRetentionState=function(a){oj(this,Fm,11,a)};g.getAccessLimit=function(){return Fi(this,tl,12)};
g.setAccessLimit=function(a){return oj(this,tl,12,a)};g.getTeamId=function(){return dj(this,13)};g.setTeamId=function(a){return xj(this,13,a)};g.getIt=function(){return Fi(this,AH,14)};g.setIt=function(a){return oj(this,AH,14,a)};g.hasIt=function(){return Zi(this,AH,14)};BH.messageId="b.IssueMetadata";var CH=function(a){this.internalArray_=m(a)};W(CH,X);CH.prototype.getIssueIdsList=function(){return Hj(this,1)};CH.prototype.setIssueIdsList=function(a){return ac(this,1,a,vb)};CH.prototype.addIssueIds=function(a){Ct(this,1,a)};CH.repeatedFields_=[1];var RYb=function(a){this.internalArray_=m(a,0,RYb.messageId)};W(RYb,X);RYb.messageId="b.UpdateIssueReadTimestampResponse";var DH=function(a){this.executor=a};DH.prototype.delete=function(a,b){var c=new RE;c.setIssueId(String(a));c.setReason(Hwa[b]);return this.executor.post({url:"action/issues/"+a+"/delete",body:c,responseConstructor:null})};DH.prototype.undelete=function(a){var b=new XE;b.setIssueId(String(a));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};DH.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:BH}).then(pya)};
DH.prototype.markRead=function(a,b){b=void 0===b?!0:b;var c=new CH;c.setIssueIdsList(a.map(Number));mj(c,2,b);return this.executor.post({url:"action/issues/read_timestamp",body:c,responseConstructor:RYb}).then(nya)};DH.\u0275fac=function(a){return new (a||DH)(n(uD))};DH.\u0275prov=$c({token:DH,factory:DH.\u0275fac,providedIn:"root"});var EH=function(){this.refreshRequest=new B.Subject};EH.prototype.getObservable=function(){return this.refreshRequest};var SYb=function(a,b){return a.getObservable().pipe(yf(void 0)).pipe(zf(function(){return b}))};EH.\u0275fac=function(a){return new (a||EH)};EH.\u0275prov=$c({token:EH,factory:EH.\u0275fac,providedIn:"root"});var FH=xp.ISSUE,GH=function(a,b,c,d,e,f,h,k){hG.call(this);var q=this;this.batchApiAdapter=a;this.issueResources=b;this.userResources=c;this.refreshMonitor=d;this.issueService=e;this.activeSession=f;this.hotlistFridge=h;this.analytics=k;this.recordType="issue";this.normalizeQueryResponses=!1;this.idForRecord=function(u){return String(u.issueId)};this.isEqual=ki;this.issueFetchResponse$=new B.Subject;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(u){return q.call(u)},split:function(u,
x){return q.splitBatch(u,x)}});this.refreshMonitor.getObservable().subscribe(function(){q.invalidate()})};W(GH,hG);GH.prototype.fetchOne=function(a){return this.get(a).pipe(gf(function(){return(0,B.of)(void 0)}))};GH.prototype.fetchSet=function(a){var b=this;return(0,B.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(cl)}))};
GH.prototype.fetchAll=function(a){var b=a.filter;a={s:a.sort,count:a.pageSize};if(b)return this.issueResources.listIssues(b,a).pipe(A(function(c){return{results:c.issues,totalSize:c.numTotalResults}}));throw Error("Fc");};GH.prototype.copy=function(a){return a&&li(a)};
var TYb=function(a,b,c){a.analytics.trackEvent(FH,"light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};ZC(a.activeSession)&&(d.voted=c);return yYb(a.userResources,b,d).pipe(Bf(function(){gG(a,b,function(e){e.userData&&(e.userData.starred=c,ZC(a.activeSession)&&(e.userData.voted=c))})}))};
GH.prototype.setVoted=function(a,b){var c=this;this.analytics.trackEvent(FH,"light-ixn","vote",b);return yYb(this.userResources,a,{voted:b,starred:null,notificationSubscription:null}).pipe(Bf(function(){gG(c,a,function(d){d.userData&&(d.userData.voted=b)})}))};
GH.prototype.setNotificationSubscription=function(a,b){var c=this,d;return Ne(function(e){if(1==e.nextAddress)return c.analytics.trackEvent(FH,"light-ixn","notifs",Number(b)),d={voted:null,starred:null,notificationSubscription:b},e.yield((0,B.firstValueFrom)(yYb(c.userResources,a,d)),2);gG(c,a,function(f){f.userData&&(f.userData.notificationSubscription=b)});Se(e)})};
var UYb=function(a,b,c){a.analytics.trackEvent(FH,"edit","title");var d={issueId:b,actions:[{fieldName:"title",value:c}]};gG(a,b,function(e){e.snapshot[0].title=c});return a.issueResources.updateIssue(b,d).pipe(Bf(function(e){e&&a.announce(e.issue)}))},VYb=function(a,b,c,d){var e,f,h,k,q,u,x;return Ne(function(y){if(1==y.nextAddress){a.analytics.trackEvent(FH,"edit","hotlists");e={removeHotlistIds:d,addHotlistIds:c,hotlistIssue:{issueId:b}};f=l([].concat(p(c),p(d)));for(h=f.next();!h.done;h=f.next())k=
h.value,a.hotlistFridge.setIsSaving(k);Oe(y,2);return y.yield((0,B.firstValueFrom)(a.issueResources.updateIssueHotlists(b,e)).finally(function(){for(var E=l([].concat(p(c),p(d))),H=E.next();!H.done;H=E.next())a.hotlistFridge.clearIsSaving(H.value)}),4)}if(2!=y.nextAddress)return(q=y.yieldResult)&&a.announce(q.issue),y.return(null==(u=q)?void 0:u.issue);x=Re(y);a.poke(b);throw x;})},WYb=function(a,b,c){return HH(a,"ADD","DUPLICATE",c,[b]).then(function(){return a.poke(b)})};
GH.prototype.removeDuplicate=function(a,b){var c=this;return HH(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};
var HH=function(a,b,c,d,e){if(0===e.length||null==d)return Promise.resolve(void 0);a.analytics.trackEvent(FH,"edit","relation",Number(c));b={relation:c,issueId:d,targetIds:e,actionType:b};XYb(a,b);var f=[d].concat(p(e));e=l(f);for(c=e.next();!c.done;c=e.next())a.setIsSaving(c.value);return(0,B.firstValueFrom)(a.issueResources.relateIssue(d,b)).then(function(h){h&&a.announce(h.issue)}).catch(function(h){a.poke(d);throw h;}).finally(function(){for(var h=l(f),k=h.next();!k.done;k=h.next())a.clearIsSaving(k.value)})},
IH=function(a,b,c){c=void 0===c?{}:c;var d=void 0===c.markRead?!0:c.markRead,e=void 0===c.eagerUpdate?!0:c.eagerUpdate,f,h,k,q;return Ne(function(u){if(1==u.nextAddress)return a.activeSession.isAnonymous()?u.return():u.yield(a.issueService.markRead(b,d),2);f=u.yieldResult;if(e)for(h=l(b),k=h.next();!k.done;k=h.next())q=k.value,gG(a,String(q),function(x){x.userData&&(x.userData.lastViewedTimeMicros=f.readTimestamp)});return u.return(f.readTimestamp?Math.round(f.readTimestamp/1E3):void 0)})},XYb=function(a,
b){gG(a,b.issueId,function(c){switch(b.relation){case "BLOCKED_BY":if("ADD"===b.actionType){var d;c.snapshot[0].blockedByIssueId=[].concat(p(null!=(d=c.snapshot[0].blockedByIssueId)?d:[]),p(b.targetIds.map(String)))}else if("REMOVE"===b.actionType){var e,f;c.snapshot[0].blockedByIssueId=null!=(f=null==(e=c.snapshot[0].blockedByIssueId)?void 0:e.filter(function(h){return!b.targetIds.includes(String(h))}))?f:[]}}})};
GH.prototype.call=function(a){var b=this;if(1===a.size){var c=[].concat(p(a))[0];return this.issueResources.getIssue(c).pipe(Bf(function(d){b.issueFetchResponse$.next(d)}),A(function(d){return new Map([[c,d.issue]])}))}return this.issueResources.batchGetIssues([].concat(p(a))).pipe(A(function(d){return new Map(d.map(function(e){return[e.issueId,e]}))}))};GH.prototype.splitBatch=function(a,b){return b.get(a)};GH.\u0275fac=function(a){return new (a||GH)(n(BE),n(BF),n(oH),n(EH),n(DH),n(Us),n(rH),n(zH))};
GH.\u0275prov=$c({token:GH,factory:GH.\u0275fac,providedIn:"root"});var JH=function(a,b){hG.call(this);this.observableIssueResources=a;this.issueFridge=b;this.recordType="issue-fr";this.idForRecord=function(c){return c.issueId};this.isEqual=ki;this.destroyed$=new B.ReplaySubject(1);BYb?a=void 0:(BYb=!0,a=kAa());a&&YYb(this,a);this.issueFridge.issueFetchResponse$.pipe(cf(cl),A(sAa),Af(this.destroyed$)).subscribe(this.announce)};W(JH,hG);
var KH=function(a,b){return a.watch(b).pipe(zf(function(c){return a.issueFridge.watch(b).pipe(A(function(d){return c&&d&&Object.assign({},c,{issue:d})}))}))},LH=function(a,b,c){return a.poke(b,c).then(function(){return(0,B.firstValueFrom)(KH(a,b))})},YYb=function(a,b){var c=Object.assign({},b);b=b.issue;c=(delete c.issue,c);a.announce(Object.assign({},c,{issueId:b.issueId}));a.issueFridge.announce(b)};
JH.prototype.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.observableIssueResources.getIssue(a).pipe(Bf(function(c){(null==c?0:c.issue)&&b.issueFridge.announce(c.issue);b.issueFridge.clearIsGetting(a)}),A(function(c){return c&&sAa(c)}),gf(function(c){b.issueFridge.clearIsGetting(a);return(0,B.throwError)(c)}))};JH.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};JH.prototype.copy=function(a){return a&&Object.assign({},a)};
JH.\u0275fac=function(a){return new (a||JH)(n(BF),n(GH))};JH.\u0275prov=$c({token:JH,factory:JH.\u0275fac,providedIn:"root"});var MH=function(a){this.internalArray_=m(a)};W(MH,X);var NH=function(a,b){return um(a,1,b)},ZYb=function(a,b){return um(a,2,b)};var $Yb=function(a){this.internalArray_=m(a)};W($Yb,X);g=$Yb.prototype;g.getIssueId=function(){return dj(this,1)};g.setIssueId=function(a){return um(this,1,a)};g.setRelationshipType=function(a){return bm(this,2,a)};g.getIssueRelationship=function(){return Fi(this,MH,3)};g.setIssueRelationship=function(a){return oj(this,MH,3,a)};g.getSignificanceOverride=function(){return Vi(this,4,0)};g.setSignificanceOverride=function(a){return bm(this,4,a)};var OH=function(a){this.internalArray_=m(a)};W(OH,X);g=OH.prototype;g.getIssueId=function(){return dj(this,1)};g.setIssueId=function(a){return um(this,1,a)};g.setRelationshipType=function(a){return bm(this,2,a)};g.setRequestsList=function(a){return om(this,3,a)};g.addAndReturnRequests=function(){return ec(this,3,$Yb)};g.getSignificanceOverride=function(){return Vi(this,4,0)};g.setSignificanceOverride=function(a){return bm(this,4,a)};OH.repeatedFields_=[3];var PH=function(a){this.internalArray_=m(a)};W(PH,X);g=PH.prototype;g.getIssueId=function(){return dj(this,1)};g.setIssueId=function(a){return um(this,1,a)};g.setRelationshipType=function(a){return bm(this,2,a)};g.getSignificanceOverride=function(){return Vi(this,4,0)};g.setSignificanceOverride=function(a){return bm(this,4,a)};PH.repeatedFields_=[3];var QH=function(a){this.internalArray_=m(a)};W(QH,X);g=QH.prototype;g.setRelationshipType=function(a){return bm(this,1,a)};g.getSourceIssueIdsList=function(){return Hj(this,2)};g.setSourceIssueIdsList=function(a){return ac(this,2,a,vb)};g.getQuery=function(){return Hi(this,3)};g.setQuery=function(a){return wm(this,3,a)};g.clearQuery=function(){st(this,3)};QH.repeatedFields_=[2];var RH=function(a){this.internalArray_=m(a)};W(RH,X);var aZb=function(a,b){return ac(a,1,b,vb)};RH.prototype.setRelationshipType=function(a){return bm(this,2,a)};var bZb=function(a,b){return il(a,3,b)},cZb=function(a,b){return il(a,4,b)};RH.prototype.getQuery=function(){return Hi(this,5)};RH.prototype.setQuery=function(a){return wm(this,5,a)};RH.prototype.clearQuery=function(){st(this,5)};RH.repeatedFields_=[1];var SH=function(a){this.internalArray_=m(a,0,SH.messageId)};W(SH,X);SH.prototype.getIt=function(){return Fi(this,OH,5)};SH.prototype.setIt=function(a){return oj(this,OH,5,a)};SH.prototype.hasIt=function(){return Zi(this,OH,5)};SH.messageId="b.BatchCreateIssueRelationshipsRequest";var TH=function(a){this.internalArray_=m(a,0,TH.messageId)};W(TH,X);TH.prototype.getIssueRelationshipsList=function(){return Ji(this,MH,1)};TH.repeatedFields_=[1];TH.messageId="b.BatchCreateIssueRelationshipsResponse";var UH=function(a){this.internalArray_=m(a,0,UH.messageId)};W(UH,X);UH.prototype.getIt=function(){return Fi(this,PH,5)};UH.prototype.setIt=function(a){return oj(this,PH,5,a)};UH.prototype.hasIt=function(){return Zi(this,PH,5)};UH.messageId="b.BatchDeleteIssueRelationshipsRequest";var VH=function(a){this.internalArray_=m(a,0,VH.messageId)};W(VH,X);VH.prototype.getIt=function(){return Fi(this,QH,4)};VH.prototype.setIt=function(a){return oj(this,QH,4,a)};VH.prototype.hasIt=function(){return Zi(this,QH,4)};VH.messageId="b.BatchGetIssueRelationshipsRequest";var WH=function(a){this.internalArray_=m(a)};W(WH,X);WH.prototype.getIssueRelationshipsList=function(){return Ji(this,MH,1)};WH.prototype.getTotalSize=function(){return hi(this,2)};WH.repeatedFields_=[1];var XH=function(a){this.internalArray_=m(a,0,XH.messageId)};W(XH,X);XH.repeatedFields_=[1];XH.messageId="b.BatchGetIssueRelationshipsResponse";var YH=function(a){this.internalArray_=m(a,0,YH.messageId)};W(YH,X);YH.prototype.getIssueRelationship=function(){return Fi(this,MH,1)};YH.prototype.setIssueRelationship=function(a){return oj(this,MH,1,a)};YH.messageId="b.CreateIssueRelationshipResponse";var ZH=function(a){this.internalArray_=m(a,0,ZH.messageId)};W(ZH,X);ZH.prototype.getIt=function(){return Fi(this,RH,6)};ZH.prototype.setIt=function(a){return oj(this,RH,6,a)};ZH.prototype.hasIt=function(){return Zi(this,RH,6)};ZH.messageId="b.GetIssueDescendantsRequest";var dZb=function(a){this.internalArray_=m(a,0,dZb.messageId)};W(dZb,X);dZb.messageId="b.GetIssueDescendantsResponse";var $H=function(a){this.internalArray_=m(a,0,$H.messageId)};W($H,X);$H.prototype.getIssueRelationshipsList=function(){return Ji(this,MH,1)};$H.repeatedFields_=[1];$H.messageId="b.ListIssueRelationshipsResponse";var aI=function(a){this.internalArray_=m(a,0,aI.messageId)};W(aI,X);aI.prototype.getIssueRelationship=function(){return Fi(this,MH,1)};aI.prototype.setIssueRelationship=function(a){return oj(this,MH,1,a)};aI.messageId="b.UpdateIssueRelationshipResponse";var bI=function(a){this.executor=a};g=bI.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+JC[b],responseConstructor:$H}).pipe(A(function(c){return c.getIssueRelationshipsList()}))};g.create=function(a,b,c){return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+JC[b],body:c,responseConstructor:YH}).pipe(A(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new MH}))};
g.update=function(a,b,c){b=JC[b];return this.executor.put({url:"action/issues/"+a+"/relationships/"+dj(c,1)+"?relationshipType="+b,body:c,responseConstructor:aI}).pipe(A(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new MH}))};g.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+JC[b],responseConstructor:null})};
g.batchGet=function(a,b){b=JC[b];a=(new VH).setIt((new QH).setSourceIssueIdsList(a).setRelationshipType(b).setQuery(this.getQuery(void 0)));return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:XH}).pipe(A(function(c){return Ji(c,WH,1)}))};
var eZb=function(a,b,c){var d=JC.CHILD;c=c.map(function(e){return(new $Yb).setIssueRelationship(e)});b=(new SH).setIt((new OH).setIssueId(b).setRelationshipType(d).setSignificanceOverride(1<c.length?4:0).setRequestsList(c));return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:TH}).pipe(A(function(e){return e.getIssueRelationshipsList()}))},fZb=function(a,b,c){var d=JC.CHILD,e=new UH,f=e.setIt;b=(new PH).setIssueId(b).setRelationshipType(d);c=ac(b,3,c,vb);
e=f.call(e,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:e,responseConstructor:null})};
bI.prototype.getDescendants=function(a){var b=a.issueIds,c=a.includeArchived,d=a.depthLimit,e=a.prefixSizeLimit;a=JC[a.relationshipType];b=(new ZH).setIt(cZb(bZb(aZb(new RH,b).setRelationshipType(a).setQuery(this.getQuery(c)),d),e));return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:dZb}).pipe(A(function(f){var h=new Map;f=$b(f,1,WH,kba);f=l(f.entries());for(var k=f.next();!k.done;k=f.next()){var q=l(k.value);k=q.next().value;q=q.next().value;h.set(String(k),q)}return h}))};
bI.prototype.getQuery=function(a){return a?"include_archived:true":"include_archived:false"};bI.\u0275fac=function(a){return new (a||bI)(n(tD))};bI.\u0275prov=$c({token:bI,factory:bI.\u0275fac,providedIn:"root"});var cI={},gZb=(cI.BUG="BUG",cI.FEATURE_REQUEST="FEATURE_REQUEST",cI.CUSTOMER_ISSUE="CUSTOMER_ISSUE",cI.INTERNAL_CLEANUP="INTERNAL_CLEANUP",cI.PROCESS="PROCESS",cI.VULNERABILITY="VULNERABILITY",cI.PRIVACY_ISSUE="PRIVACY_ISSUE",cI.EPIC="STORY",cI.STORY="TASK",cI.TASK="TASK",cI.PROJECT="TASK",cI.FEATURE="TASK",cI.MILESTONE="TASK",cI);var dI=function(a,b,c){fG.call(this,{freshUntil:6E4,ancientAfter:792E5});var d=this;this.issueRelationshipService=a;this.issueFridge=b;this.refreshMonitor=c;this.recordType="issueRelationships";this.idForRecord=function(e){return e.issueId};this.isEqual=ki;this.activeMoveOperation$=new B.BehaviorSubject(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=uAa(function(e,f){return hZb(d,e,f)});this.assignParentToOneIssue=function(e,f){return hZb(d,String(e),[{issueId:f}])};
this.moveChildrenInAPI=tAa(function(e){return d.moveChildrenInAPISequentially(e)});this.moveChildrenInAPISequentially=uAa(function(e){var f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,$a,ja,ya,Ha,ab;return Ne(function(Ra){switch(Ra.nextAddress){case 1:h=AAa(e);if(0===h.length)return Ra.return();k=h.map(function(Jc){return Jc.issues.map(function(Ua){return Ua.parentId})}).flat();q=h.map(function(Jc){return Jc.newParentId});u=Tj([].concat(p(k),p(q)));x=l(u);for(y=x.next();!y.done;y=x.next())E=y.value,
d.setIsSaving(E);Oe(Ra,2);H=l(h);J=H.next();case 4:if(J.done){$s(Ra,3);break}O=J.value;R=l(O.newRelations);U=R.next();Z={};case 7:if(U.done){J=H.next();Ra.jumpTo(4);break}Z.newRelation=U.value;na=O.issues.find(function(Jc){return function(Ua){return Ua.issueId===Jc.newRelation.targetIssueId}}(Z)).parentId;if(O.newParentId===na)return wa=void 0,Ra.yield((0,B.firstValueFrom)(d.issueRelationshipService.update(O.newParentId,"CHILD",NH(ZYb(new MH,null!=(wa=Xk(Z.newRelation.afterIssueId))?wa:0),Number(Z.newRelation.targetIssueId)))),
8);oa=void 0;return Ra.yield((0,B.firstValueFrom)(d.issueRelationshipService.create(O.newParentId,"CHILD",NH(ZYb(new MH,null!=(oa=Xk(Z.newRelation.afterIssueId))?oa:0),Number(Z.newRelation.targetIssueId)))).catch(function(Jc){var Ua,mb;if(!(null==Jc?0:null==(Ua=Jc.error)?0:null==(mb=Ua.details)?0:mb.includes("ALREADY_EXISTS")))throw Jc;}),12);case 12:return Ra.yield((0,B.firstValueFrom)(d.issueRelationshipService.delete(na,"CHILD",Z.newRelation.targetIssueId)),8);case 8:Z={newRelation:Z.newRelation};
U=R.next();Ra.jumpTo(7);break;case 2:f=Da=Re(Ra);case 3:Ga=d.activeMoveOperation$.value;Ub=l(e.map(function(Jc){return Jc.eventTimestamps}).flat());for(Vb=Ub.next();!Vb.done;Vb=Ub.next())$a=Vb.value,Ga.delete($a);d.activeMoveOperation$.next(Ga);ja=l(u);for(y=ja.next();!y.done;y=ja.next())ya=y.value,d.clearIsSaving(ya);Promise.all(u.map(function(Jc){return d.poke(Jc)}));Ha=l(h);for(J=Ha.next();!J.done;J=Ha.next())ab=J.value,f&&ab.done.reject(f),ab.done.resolve();Se(Ra)}})});this.refreshMonitor.getObservable().subscribe(function(){d.invalidate()})};
W(dI,fG);dI.prototype.fetchOne=function(a){var b=this;return iZb(this,function(){return b.issueRelationshipService.list(a,"CHILD").pipe(A(function(c){return{issueId:a,relatedChildren:c.map($xa),totalChildCount:c.length}}),gf(function(c){return sn(c)&&403===c.status?(0,B.of)(void 0):(0,B.throwError)(c)}))})};
dI.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(p(null!=(c=a.ids)?c:[]));return 0===d.length?(0,B.of)({results:[]}):iZb(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:"CHILD",includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(A(gya),A(function(e){return{results:e}}))});default:$h(a.type)}};dI.prototype.copy=function(a){return a&&li(a)};
var iZb=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(cf(function(d){return 0===d.size}),zf(function(){return b()}),zf(function(d){return 0===a.activeMoveOperation$.value.size?(0,B.of)(d):c()}),nf())};return c()},jZb=function(a,b){return a.watch(b).pipe(zf(function(c){return c&&c.totalChildCount===c.relatedChildren.length?(0,B.of)(c):a.watch(b,{trustMemory:!1})}))},kZb=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:void 0===c?100:c})},lZb=function(a,
b,c){return a.pokeMany({type:"descendants",ids:new Set([b]),depth:void 0===c?100:c})};
dI.prototype.unlinkFromParent=function(a,b,c){c=void 0===c?!1:c;var d=this,e;return Ne(function(f){switch(f.nextAddress){case 1:gG(d.issueFridge,b,function(h){--h.childIssueCount});gG(d.issueFridge,a,function(h){h.parentIssueIds=h.parentIssueIds.filter(function(k){return k!==b})});gG(d,b,function(h){var k=h.relatedChildren;h.relatedChildren=zAa(k,a);h.totalChildCount-=k.length-h.relatedChildren.length});if(c)return f.return();Oe(f,2);return f.yield((0,B.firstValueFrom)(d.issueRelationshipService.delete(b,
"CHILD",a)),4);case 4:$s(f,0);break;case 2:return e=Re(f),f.yield(Promise.all([d.poke(b),d.issueFridge.poke(b),d.issueFridge.poke(a)]),5);case 5:throw e;}})};
var hZb=function(a,b,c){var d,e,f,h,k,q,u,x,y,E;return Ne(function(H){switch(H.nextAddress){case 1:d=[];e=[];f=[];if(0===c.length)return H.return({added:d,notAdded:e});h=mZb(a,b);k=c.map(function(J,O){var R="-1"===J.afterIssueId?h:J.afterIssueId;return{targetIssueId:J.issueId,afterIssueId:O?c[O-1].issueId:R}});nZb(a,b,k);q=l(k);u=q.next();case 2:if(u.done){H.jumpTo(4);break}x=u.value;Oe(H,5);y=void 0;return H.yield((0,B.firstValueFrom)(a.issueRelationshipService.create(b,"CHILD",NH(ZYb(new MH,null!=
(y=Xk(x.afterIssueId))?y:0),Number(x.targetIssueId)))),7);case 7:d.push(x.targetIssueId);$s(H,3);break;case 5:E=Re(H);if(!sn(E))throw E;f.push(E);e.push(x.targetIssueId);case 3:u=q.next();H.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFridge.poke(b)]),H.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},nZb=function(a,b,c){var d=0;gG(a,b,function(e){var f=yAa(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});
gG(a.issueFridge,b,function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},oZb=function(a,b,c){var d,e,f,h,k,q,u,x,y,E,H,J;return Ne(function(O){if(1==O.nextAddress)return d=[],e=[],f=[],0===c.length?O.return({added:d,notAdded:e}):O.yield(Promise.allSettled(c.map(function(R){return(0,B.firstValueFrom)(a.issueRelationshipService.create(R,"CHILD",NH(ZYb(new MH,Number(mZb(a,R))),Number(b))))})),2);h=O.yieldResult;k=l(h.entries());for(q=k.next();!q.done;q=k.next())u=q.value,x=l(u),y=x.next().value,
E=x.next().value,H=y,J=E,"fulfilled"===J.status&&d.push(c[H]),"rejected"===J.status&&(e.push(c[H]),f.push(J.reason));Promise.all(c.map(function(R){return a.poke(R)}));return O.return({added:d,notAdded:e,errors:f})})},pZb=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f=l(c),h=f.next(),k={};!h.done;k={issue$jscomp$30:k.issue$jscomp$30},h=f.next())k.issue$jscomp$30=h.value,gG(a,k.issue$jscomp$30.parentId,function(U){return function(Z){Z.relatedChildren=
zAa(Z.relatedChildren,U.issue$jscomp$30.issueId);--Z.totalChildCount}}(k));var q=void 0,u;if(null==(u=b.position)?0:u.issueId){var x;if("after"===(null==(x=b.position)?void 0:x.position))q=b.position.issueId;else{var y;if("before"===(null==(y=b.position)?void 0:y.position)){var E,H;f=null!=(H=null==(E=a.memory.getData(d))?void 0:E.relatedChildren)?H:[];E=l(f.entries());for(H=E.next();!H.done;H=E.next())if(h=l(H.value),H=h.next().value,h=h.next().value,h.targetIssueId===b.position.issueId){b=void 0;
q=null==(b=f[H-1])?void 0:b.targetIssueId;break}}}}var J=c.map(function(U,Z){return{targetIssueId:U.issueId,afterIssueId:Z?c[Z-1].issueId:q}});void 0!==iYb(a,d)?gG(a,d,function(U){U.relatedChildren=yAa(U.relatedChildren,J);U.totalChildCount+=J.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:yAa([],J),totalChildCount:J.length});b=new ira;var O,R;a.moveChildrenInAPI({newParentId:d,newRelations:J,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:null!=(R=null==(O=a.memory.getData(d))?
void 0:O.relatedChildren)?R:[],done:b});return b.promise},mZb=function(a,b){var c;a=null==(c=a.memory.getData(b))?void 0:c.relatedChildren;var d,e;return null!=(e=null==a?void 0:null==(d=a[(null==a?NaN:a.length)-1])?void 0:d.targetIssueId)?e:"0"};dI.\u0275fac=function(a){return new (a||dI)(n(bI),n(GH),n(EH))};dI.\u0275prov=$c({token:dI,factory:dI.\u0275fac,providedIn:"root"});var eI=function(a){hG.call(this);this.userAccess=a;this.recordType="permissions"};W(eI,hG);eI.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(A(function(b){return l(b).next().value}))};eI.prototype.fetchSet=function(a){var b=this;return(0,B.combineLatest)(a.map(function(c){return(0,B.defer)(function(){return nYb(b.userAccess,c).then(function(d){return Object.assign({},d,{id:c})})})}))};eI.\u0275fac=function(a){return new (a||eI)(n(sG))};
eI.\u0275prov=$c({token:eI,factory:eI.\u0275fac,providedIn:"root"});var fI=function(a){hG.call(this);this.api=a;this.recordType="recentEventsForIssues";this.idForRecord=function(b){return b.id.query+"-"+b.id.pageSize}};W(fI,hG);fI.prototype.isEqual=function(a,b){return(null==a?void 0:a.id.query)!==(null==b?void 0:b.id.query)||(null==a?void 0:a.id.pageSize)!==(null==b?void 0:b.id.pageSize)?!1:Jza(null==a?void 0:a.events,null==b?void 0:b.events)};
fI.prototype.fetchOne=function(a){a=l(a.split("-"));var b=a.next().value,c=a.next().value;return zXb(this.api,{query:b,maximumSize:Number(c),minimumSignificance:"MAJOR"}).pipe(A(function(d){return{id:{query:b,pageSize:Number(c)},events:d}}))};fI.\u0275fac=function(a){return new (a||fI)(n(BF))};fI.\u0275prov=$c({token:fI,factory:fI.\u0275fac,providedIn:"root"});var gI=function(a){this.internalArray_=m(a,0,gI.messageId)};W(gI,X);gI.prototype.setSearch=function(a,b){rt(this,1,Ln,a,b)};gI.repeatedFields_=[1];gI.messageId="b.BatchGetSearchesResponse";var hI=function(a){this.internalArray_=m(a,0,hI.messageId)};W(hI,X);hI.prototype.getSearch=function(){return Fi(this,Ln,1)};hI.prototype.setSearch=function(a){oj(this,Ln,1,a)};hI.messageId="b.SearchResponse";var iI=function(a){this.jspbExecutor=a};g=iI.prototype;g.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:hI}).pipe(A(BAa))};g.batchGet=function(a){if(500<a.length)throw Error("Gc");return this.jspbExecutor.get({url:"action/saved_searches?"+a.map(function(b){return"id="+b}).join("&"),responseConstructor:gI}).pipe(A(CAa))};
g.create=function(a,b){var c=new Ln;c.setName(a);c.setQuery(b);return this.jspbExecutor.post({url:"action/saved_searches",body:c,responseConstructor:hI}).pipe(A(BAa))};
g.update=function(a,b){var c=new Ln;wj(c,1,String(b.searchId));c.setName(b.name);c.setDescription(b.description);c.setQuery(b.query);var d;c.setSortOrderList((null!=(d=b.sortOrder)?d:[]).map(tua));var e;c.setDisplayColumnList((null!=(e=b.displayColumn)?e:[]).map(rua));var f;c.setAdminUsersList((null!=(f=b.adminUsers)?f:[]).map(Ci));if(dAa){d=c.setIt;var h,k;e=(new co).setSavedSearchId(b.searchId).setName(b.name).setDescription(b.description).setQuery(b.query).setDefaultOrderBy((null!=(h=b.sortOrder)?
h:[]).map(Cua).join(",")).setDisplayPreferences(zua(null!=(k=b.displayColumn)?k:[])).setOwnersList(b.adminUsers.map(Jua));d.call(c,e)}return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:c,responseConstructor:hI}).pipe(A(BAa))};g.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};iI.\u0275fac=function(a){return new (a||iI)(n(tD))};iI.\u0275prov=$c({token:iI,factory:iI.\u0275fac,providedIn:"root"});
var jI=function(a){this.observableResources=a};g=jI.prototype;g.get=function(a){return(0,B.firstValueFrom)(this.observableResources.get(a))};g.batchGet=function(a){return(0,B.firstValueFrom)(this.observableResources.batchGet(a))};g.create=function(a,b){return(0,B.firstValueFrom)(this.observableResources.create(a,b))};g.update=function(a,b){return(0,B.firstValueFrom)(this.observableResources.update(a,b))};g.delete=function(a){return(0,B.firstValueFrom)(this.observableResources.delete(a))};
jI.\u0275fac=function(a){return new (a||jI)(n(iI))};jI.\u0275prov=$c({token:jI,factory:jI.\u0275fac,providedIn:"root"});var qZb={results:[]},kI=function(a,b){hG.call(this);this.userResourcesApi=a;this.savedSearchApi=b;this.recordType="savedSearch";this.idKey="searchId"};W(kI,hG);kI.prototype.fetchOne=function(a){return this.savedSearchApi.get(a)};kI.prototype.fetchSet=function(a){return this.savedSearchApi.batchGet(a)};
kI.prototype.fetchAll=function(a){if("me"===a.parent)return this.userResourcesApi.getUserSavedSearches().pipe(A(function(b){return{results:b}}));Ek("Unsupported query for Fridge['"+this.recordType+"']",a);return(0,B.of)(qZb)};kI.\u0275fac=function(a){return new (a||kI)(n(oH),n(iI))};kI.\u0275prov=$c({token:kI,factory:kI.\u0275fac,providedIn:"root"});var rZb=function(a){this.internalArray_=m(a)};W(rZb,X);var sZb=function(a,b){return ac(a,1,b,rb)},tZb=function(a,b){return il(a,2,b)};rZb.repeatedFields_=[1];var NAa=new Set(["READY_TO_SUBMIT","NEEDS_ATTENTION","TAGGED_IN_COMMENT","REQUIRES_APPROVAL"]);var LAa=function(a){this.internalArray_=m(a)};W(LAa,X);var Vn=[1,2,3,5];var EAa=function(a){this.internalArray_=m(a)};W(EAa,X);g=EAa.prototype;g.getValueCase=function(){return Bl(this,lI)};g.getResourceId=function(){return Hi(this,1)};g.setResourceId=function(a){wm(this,1,a)};g.getTimestamp=function(){return Fi(this,gj,3)};g.setTimestamp=function(a){return oj(this,gj,3,a)};g.hasTimestamp=function(){return Zi(this,gj,3)};g.getUrl=function(){return Fl(this,ZTb,4,lI)};g.setUrl=function(a){return Ll(this,4,lI,a)};g.hasUrl=function(){return Tl(this,ZTb,4,lI)};
g.getDuration=function(){return Fl(this,ll,5,lI)};g.hasDuration=function(){return Tl(this,ll,5,lI)};var lI=[4,5];var mI=function(a){this.internalArray_=m(a)};W(mI,X);mI.prototype.getTasksList=function(){return Ji(this,MB,1)};mI.prototype.setTasksList=function(a){return om(this,1,a)};var uZb=tc(mI);mI.repeatedFields_=[1,2];var vZb=new UB("/google.internal.devopsconsole.v1.TaskPrioritizationService/StreamGetPriorityTasks",rZb,mI,function(a){return a.serialize()},uZb);var wZb=function(a){this.client_=new zC({format:"jspb"});this.hostname_=void 0==a?a:a.replace(/\/+$/,"")},xZb=function(a,b,c){return a.client_.serverStreaming(a.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskPrioritizationService/StreamGetPriorityTasks",b,c||{},vZb)};var nI=function(a,b){this.activeSession=a;this.clientFactory=b;this.environmentType=this.activeSession.getEnvironmentType();this.taskPrioritizationClient=new wZb(this.getServiceEndpoint());this.taskManagementClient=new gTb(this.getServiceEndpoint())},yZb=function(a,b){a=xZb(a.taskPrioritizationClient,tZb(sZb(new rZb,b.sources.map(OAa)),b.maxTaskAgeDays),a.getHeaders());return Xya(a).pipe(A(KAa),zia(Pia,[]),A(function(c){return c.flat()}))};
nI.prototype.updateTaskStatus=function(a){var b=this,c=(new OB).setTask(fSb(eSb(new MB,a),5));return(0,B.defer)(function(){return b.taskManagementClient.updateTaskStatus(c,b.getHeaders())})};nI.prototype.updateTaskStatuses=function(a){var b=this;a=a.map(function(d){return fSb(eSb(new MB,d),5)});var c=(new XB).setTasksList(a);return(0,B.defer)(function(){return b.taskManagementClient.updateTaskStatuses(c,b.getHeaders())})};
nI.prototype.getServiceEndpoint=function(){switch(this.environmentType){case "NIGHTLY":case "PROD":return"https://devopsconsole-pa-googleapis.corp.google.com";default:return"https://autopushcorp-devopsconsole-pa-googleapis.corp.google.com"}};nI.prototype.getHeaders=function(){switch(this.environmentType){case "NIGHTLY":case "PROD":var a="AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk";break;default:a="AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}return{"X-Goog-Api-Key":a,Authorization:Ko([])||"","X-Goog-AuthUser":"0"}};
nI.\u0275fac=function(a){return new (a||nI)(n(Us),n(oI))};nI.\u0275prov=$c({token:nI,factory:nI.\u0275fac,providedIn:"root"});var oI=function(){};oI.\u0275fac=function(a){return new (a||oI)};oI.\u0275prov=$c({token:oI,factory:oI.\u0275fac,providedIn:"root"});var zZb={sources:["CRITIQUE","DRIVE"],maxTaskAgeDays:30},pI=function(a){fG.call(this);this.api=a;this.recordType="Task";this.idKey="taskId";this.defaultQuery=zZb};W(pI,fG);pI.prototype.fetchAll=function(a){a=void 0===a?{}:a;a=Object.assign({},zZb,a);return yZb(this.api,a).pipe(A(function(b){b=void 0===b?[]:b;return{results:b}}))};pI.\u0275fac=function(a){return new (a||pI)(n(nI))};pI.\u0275prov=$c({token:pI,factory:pI.\u0275fac,providedIn:"root"});var AZb=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new JE(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};AZb.prototype.get=function(a){var b=this;return new B.Observable(function(c){var d=b.lruCache.get(a);d||(d=BZb(b,a));return d.obs$.subscribe(c)})};
var BZb=function(a,b){var c=a.rawGet(b).pipe(wf({refCount:!0,bufferSize:1})),d=c.subscribe({error:function(){var e=a.lruCache.get(b);e&&(a.lruCache.remove(b),e.subscription.unsubscribe())}});c=new CZb(c,d);a.lruCache.set(b,c);return c},CZb=function(a,b){this.obs$=a;this.subscription=b};var qI=function(a){this.internalArray_=m(a,0,qI.messageId)};W(qI,X);var DZb=function(a,b){return rm(a,1,b)};qI.repeatedFields_=[1];qI.messageId="b.BatchChildTeamsRequest";var EZb=function(a){this.internalArray_=m(a)};W(EZb,X);EZb.repeatedFields_=[1];var FZb=function(a){this.internalArray_=m(a,0,FZb.messageId)};W(FZb,X);FZb.messageId="b.BatchChildTeamsResponse";var rI=function(a){this.internalArray_=m(a,0,rI.messageId)};W(rI,X);rI.messageId="b.BatchGetTeamsResponse";var sI=function(a){this.internalArray_=m(a,0,sI.messageId)};W(sI,X);sI.prototype.getTeamSuggestionsList=function(){return Ji(this,oXb,1)};sI.prototype.setTeamSuggestionsList=function(a){om(this,1,a)};sI.repeatedFields_=[1];sI.messageId="b.TeamSuggestionResult";var tI=function(a){this.internalArray_=m(a,0,tI.messageId)};W(tI,X);tI.prototype.getTeamId=function(){return Yi(this,1)};tI.prototype.setTeamId=function(a){return wj(this,1,a)};tI.messageId="b.UpdateTeamSloRequest";var uI=function(a,b,c){var d=this;this.executor=a;this.teamsBatchApiConfig=b;this.batchApiAdapter=c;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new AZb(function(e){return d.batchAdaptedGet(e)},100)};uI.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:aF}).pipe(A(nxa))};uI.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var vI=function(a,b){return a.getTeam(b).pipe(A(function(c){return null!=c?c:PAa(b)}),gf(function(){return(0,B.of)(PAa(b))}))},GZb=function(a,b){b=b.filter(function(c){return"0"!==c}).map(function(c){return a.getTeam(c)});return(0,B.forkJoin)(b).pipe(A(function(c){var d=new Map;c=l(c);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&d.set(e.teamId,e);return d}))};
uI.prototype.getChildTeams=function(a){a=DZb(new qI,a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:FZb}).pipe(A(function(b){b=[].concat(p($b(b,1,EZb,Eb).entries()));return new Map(b.map(function(c){var d=l(c);c=d.next().value;d=d.next().value;return[c,Ji(d,pXb,1).map(lxa)]}))}))};
var wI=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:sI}).pipe(A(function(c){return c.getTeamSuggestionsList().map(sxa)}))},HZb=function(a,b,c){return"0"===b?(0,B.of)(!1):a.memoizingTeamStateMap.get(b).pipe(A(function(d){return void 0!==(null==d?void 0:d.members.find(function(e){return e&&zi(e.user)===c}))}))},IZb=function(a,b){return a.executor.get({url:"action/teams",options:{params:{teamIds:b.join(","),view:"full"}},responseConstructor:rI}).pipe(gf(function(){return(0,B.of)(new rI)}),
A(function(c){return new Map(Array.from($b(c,1,aF,Eb).entries()).map(function(d){var e=l(d);d=e.next().value;e=e.next().value;return[d,dj(e,9)]}))}))};
uI.prototype.updateTeam=function(a){var b=new aF;b.setTeamId(a.teamId);b.setVersion(a.version);b.setName(a.name);b.setDescription(a.description);b.setPathNamesList(a.pathNames);var c;b.setPathIdsList(null==(c=a.pathIds)?void 0:c.map(Xk).filter(cl));b.setCollapsedPathNamesList(a.collapsedPathNames);var d;b.setMembersList(null==(d=a.members)?void 0:d.map(pxa));b.setDeleted(a.deleted);xj(b,9,a.estimatedComponentCount);b.setSlo(qxa(a.slo));null!=a.sloLead&&(c=Ci(a.sloLead),oj(b,Bi,12,c));null!=a.defaultSloLead&&
(c=Ci(a.defaultSloLead),oj(b,Bi,13,c));return this.executor.post({url:"action/teams/"+a.teamId,body:b,responseConstructor:aF}).pipe(A(nxa))};uI.\u0275fac=function(a){return new (a||uI)(n(tD),n(xI),n(BE))};uI.\u0275prov=$c({token:uI,factory:uI.\u0275fac,providedIn:"root"});var xI=function(a){this.executor=a};xI.prototype.call=function(a){return this.executor.get({url:"action/teams",options:{params:{teamIds:[].concat(p(a)).join(",")}},responseConstructor:rI}).pipe(gf(function(){return(0,B.of)(new rI)}))};
xI.prototype.split=function(a,b){return(a=$b(b,1,aF,Eb).get(a))?nxa(a):void 0};xI.\u0275fac=function(a){return new (a||xI)(n(tD))};xI.\u0275prov=$c({token:xI,factory:xI.\u0275fac,providedIn:"root"});var yI=function(a){fG.call(this);this.teamsApi=a;this.defaultQuery={};this.recordType="TeamDigest";this.idForRecord=function(b){var c;return null!=(c=b.teamId)?c:"NO_ID"}};W(yI,fG);yI.prototype.fetchAll=function(a){if(a.myTeams)return wI(this.teamsApi,"").pipe(A(function(b){b=void 0===b?[]:b;return{results:b}}));throw Error("Ic");};yI.\u0275fac=function(a){return new (a||yI)(n(uI))};yI.\u0275prov=$c({token:yI,factory:yI.\u0275fac,providedIn:"root"});var zI=function(a){hG.call(this);this.teamsApi=a;this.recordType="team";this.idForRecord=function(b){return b.teamId}};W(zI,hG);zI.prototype.fetchOne=function(a){return"0"===a?(0,B.of)(void 0):this.teamsApi.getTeam(a).pipe(gf(function(){return(0,B.of)(void 0)}))};zI.prototype.fetchSet=function(a){var b=this;return(0,B.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(cl)}))};zI.\u0275fac=function(a){return new (a||zI)(n(uI))};
zI.\u0275prov=$c({token:zI,factory:zI.\u0275fac,providedIn:"root"});var AI=function(a,b){Y.call(this);this.router=a;this.activatedRoute=b;this.params={};this.routeParams$=new B.BehaviorSubject({});this.issueId$=this.routeParams$.pipe(A(function(c){return c.issueId}),mf())};W(AI,Y);AI.\u0275dir=Y.\u0275dir;
var KZb=function(a){a.activatedRoute.queryParams.pipe(Af(a.destroyed$)).subscribe(function(b){JZb(a,a.routeParams$.value,b)});a.router.events.pipe(cf(function(b){return b instanceof Ssa}),A(function(b){return b}),Af(a.destroyed$)).subscribe(function(b){b=b.snapshot;var c={},d=b;do c=Object.assign({},d.params,c),d=d.parent;while(d&&d!==d.root);JZb(a,c,b.queryParams)})},LZb=function(a,b){return a.routeParams$.pipe(A(function(c){return c[b]}))},JZb=function(a,b,c){for(var d=l(Object.keys(a.params)),
e=d.next();!e.done;e=d.next())delete a.params[QAa(e.value)];a.routeParams$.next(b);c=l(Object.entries(c));for(d=c.next();!d.done;d=c.next())e=l(d.value),d=e.next().value,e=e.next().value,a.params[QAa(d)]=e;b=l(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=l(c.value),c=d.next().value,d=d.next().value,a.params[QAa(c)]=d};AI.\u0275fac=function(a){return new (a||AI)(n(WD),n(lk))};AI.\u0275prov=$c({token:AI,factory:AI.\u0275fac,providedIn:"root"});var BI=function(a,b,c){Y.call(this);var d=this;this.paramsService=b;this.issueFetchResponseFridge=c;this.componentIdOverride$=new B.BehaviorSubject(null);this.hotlistIdOverride$=new B.BehaviorSubject(null);this.issueIdOverride$=new B.BehaviorSubject(null);this.routeIssueId$=this.paramsService.issueId$.pipe(A(SAa),wf({refCount:!0,bufferSize:1}));this.routeComponentId$=LZb(this.paramsService,"componentId").pipe(mf());this.routeHotlistId$=LZb(this.paramsService,"hotlistId").pipe(mf());this.issueId$=
(0,B.combineLatest)([this.issueIdOverride$,this.routeIssueId$]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e||f}),A(SAa),mf(),wf({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=this.issueId$.pipe(zf(function(e){return e?KH(d.issueFetchResponseFridge,e):(0,B.of)(void 0)}),A(function(e){var f;return null==e?void 0:null==(f=e.issue)?void 0:f.snapshot[0].componentId}));this.componentId$=(0,B.combineLatest)([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(A(function(e){var f=
l(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e||h||f}),A(RAa),mf(),wf({refCount:!0,bufferSize:1}));this.hotlistId$=(0,B.combineLatest)([this.hotlistIdOverride$,this.routeHotlistId$]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e||f}),A(RAa),mf(),wf({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){d.componentIdOverride$.next(null);d.hotlistIdOverride$.next(null);d.issueIdOverride$.next(null)}));this.subscriptions.add(this.componentId$.subscribe(function(e){Nk("dimension4",
e)}))};W(BI,Y);BI.\u0275dir=Y.\u0275dir;BI.prototype.getComponentId=function(){return this.componentId$};BI.prototype.getIssueId=function(){return this.issueId$};BI.prototype.getHotlistId=function(){return this.hotlistId$};BI.\u0275fac=function(a){return new (a||BI)(n(gE),n(AI),n(JH))};BI.\u0275prov=$c({token:BI,factory:BI.\u0275fac,providedIn:"root"});var CI=function(a,b,c,d,e,f,h){var k=this;this.issueFetchResponseFridge=a;this.issueFridge=b;this.teamFridge=c;this.componentFridge=d;this.eventsForIssue=e;this.activatedRoute=f;this.contextSensitiveRegistry=h;this.id$=this.contextSensitiveRegistry.getIssueId().pipe(A(function(q){return q||void 0}));this.urlComment$=this.activatedRoute.fragment.pipe(A(CBa),wf({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(zf(function(q){return q?KH(k.issueFetchResponseFridge,q):(0,B.of)(void 0)}),wf({refCount:!0,
bufferSize:1}));this.issueJs$.pipe(A(function(q){return null==q?void 0:q.firstEvent}));this.eventsJs$=this.id$.pipe(zf(this.eventsForIssue.watch),A(function(q){var u;return null!=(u=null==q?void 0:q.events)?u:[]}));this.starred$=this.issueJs$.pipe(A(TAa));this.lastViewedTimeMicros$=this.issueJs$.pipe(A(UAa));this.lastViewedTimeMicros$.pipe(A(function(q){return!q}));this.issueJs$.pipe(A(VAa));this.issueJs$.pipe(A(lBa));this.accessLimitLevel$=this.issueJs$.pipe(A(cBa));this.voted$=this.issueJs$.pipe(A(mBa));
this.status$=this.issueJs$.pipe(A(WAa));this.priority$=this.issueJs$.pipe(A(XAa));this.assignee$=this.issueJs$.pipe(A(YAa));this.issueJs$.pipe(A(ZAa));this.teamId$=this.issueJs$.pipe(A($Aa));this.team$=this.teamId$.pipe(zf(this.teamFridge.watch),wf({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(A(bBa));this.collaboratorsUsers$=this.issueJs$.pipe(A(dBa));this.issueJs$.pipe(A(function(q){var u,x;return null!=(x=null==(u=Kn(q))?void 0:u.severity)?x:void 0}));this.type$=this.issueJs$.pipe(A(eBa));
this.issueJs$.pipe(A(fBa));this.issueJs$.pipe(A(gBa));this.issueJs$.pipe(A(hBa));this.postmortems$=this.issueJs$.pipe(A(iBa));this.postmortems$.pipe(A(function(q){return 0<q.length}));this.issueJs$.pipe(A(jBa));this.effort$=this.issueJs$.pipe(A(kBa));this.isDeleted$=this.issueJs$.pipe(A(oBa));this.accessLevel$=this.issueJs$.pipe(A(qBa));this.modifiedTime$=this.issueJs$.pipe(A(rBa));this.retention$=this.issueJs$.pipe(A(tBa));this.retention=function(){return Gk(k.retention$)};this.retentionState$=this.issueJs$.pipe(A(wBa));
this.retentionState=function(){return Gk(k.retentionState$)};this.canonicalIssueId$=this.issueJs$.pipe(A(uBa));this.canonicalIssue$=this.canonicalIssueId$.pipe(zf(this.issueFridge.watch));this.sloStatus$=this.issueJs$.pipe(A(function(q){var u;return null==q?void 0:null==(u=q.issue.aggregatedData)?void 0:u.sloStatus}));this.sloId$=this.issueJs$.pipe(A(xBa));this.createdTimeMicros$=this.issueJs$.pipe(A(yBa));this.componentId$=this.issueJs$.pipe(A(aBa));this.component$=this.componentId$.pipe(zf(this.componentFridge.watch));
this.teamSuggestions$=this.component$.pipe(A(function(q){var u;return null!=(u=null==q?void 0:q.teamSuggestions)?u:[]}));this.effortSpec$=this.component$.pipe(A(zBa));this.isEffortEnabled$=this.component$.pipe(A(ABa));this.component$.pipe(A(BBa));this.thinking$=this.issueFetchResponseFridge.thinking$};CI.\u0275fac=function(a){return new (a||CI)(n(JH),n(GH),n(zI),n(OG),n(cH),n(lk),n(BI))};CI.\u0275prov=$c({token:CI,factory:CI.\u0275fac,providedIn:"root"});var MZb={admin:!1,writer:!0,appender:!0,reader:!0},EI=function(a,b,c,d,e,f){var h=this;this.issueDetailsBrain=a;this.permissionsFridge=b;this.activeSession=c;this.accessPolicyApi=d;this.errorHandler=e;this.userAccess=f;this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+Wn(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(zf(function(k){return k?h.permissionsFridge.watchOne("issues/"+
k):(0,B.of)(void 0)}),A(function(k){return null!=k?k:MZb}),yf(MZb),wf({bufferSize:1,refCount:!1}));this.hasAclToEdit$=this.issuePermissions$.pipe(A(function(k){return!!k.writer}));this.hasAclToEdit=function(){return!!Gk(h.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(A(function(k){return!!k.appender}));this.hasAclToComment=function(){return!!Gk(h.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(A(function(k){return!!k.admin}));this.hasAclToAdmin=function(){return!!Gk(h.hasAclToAdmin$)};
this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(A(function(k){return k.some(function(q){return DI(h,q.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Gk(h.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(A(function(k){return k.some(function(q){return DI(h,q.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!Gk(h.isCurrentUserCollaborator$)};this.isAllowedToEditCC$=this.hasAclToEdit$;(0,B.combineLatest)([this.hasAclToEdit$,
this.isCurrentUserCCd$]).pipe(A(function(k){var q=l(k);k=q.next().value;q=q.next().value;return k?q?"Un-CC yourself in order to change this setting.":"":"Edit issue permission is required to modify the CC list."}));this.isImplicitAccessEnabled$=this.issueDetailsBrain.componentId$.pipe(mf(),zf(function(k){return k?h.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(k)):(0,B.of)(!1)}),gf(function(k){if(403===k.status)return(0,B.of)(!0);h.errorHandler.errorHandler(null,k);return(0,B.of)(!1)}),
wf({bufferSize:1,refCount:!1}));this.isImplicitAccessEnabled=function(){return!!Gk(h.isImplicitAccessEnabled$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=(0,B.combineLatest)([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(A(function(k){var q=l(k);k=q.next().value;q=q.next().value;return k&&q}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(mf(),zf(function(k){return k?uG(h.userAccess,"admin","components/"+k):(0,B.of)(!1)}),gf(function(k){h.errorHandler.errorHandler(null,
k);return(0,B.of)(!1)}),wf({bufferSize:1,refCount:!1}));this.accessLevel$=this.issueDetailsBrain.accessLevel$;this.accessLevel=function(){return Gk(h.accessLevel$)};this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.isWithinExternalComponent$=this.accessLevel$.pipe(A(function(k){return!(!k||"INTERNAL"===k)}));this.audience$=this.isWithinExternalComponent$.pipe(A(function(k){return k?"EXTERNAL_AUDIENCE":"INTERNAL_AUDIENCE"}));this.audience=function(){return Gk(h.audience$)};this.canChangeCommentRetention$=
this.hasAclToEdit$;this.canChangeCommentRetention=function(){return Gk(h.canChangeCommentRetention$)}},DI=function(a,b){return 0===(null==b?void 0:b.search(a.currentUserEmailPattern))},NZb=function(a,b){return En(b)&&"DELETED"===b.commentDeletionStatus?a.hasAclToAdmin()||vi(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&a.hasAclToComment()?!0:!1:!1},OZb=function(a,b){return En(b)&&"ACTIVE"===b.commentDeletionStatus?zi(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():
!1};EI.prototype.canEditComment$=function(a){var b=this;return(0,B.combineLatest)([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return void 0!==c&&"ENABLED"===c.commentEditState&&"DELETED"!==a.commentDeletionStatus&&"PURGED"!==a.commentDeletionStatus&&a.commentNumber?1===a.commentNumber?e:d&&zi(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
EI.\u0275fac=function(a){return new (a||EI)(n(CI),n(eI),n(Us),n(nG),n(XF),n(sG))};EI.\u0275prov=$c({token:EI,factory:EI.\u0275fac,providedIn:"root"});var FI=function(){this.transform=DBa};FI.\u0275fac=function(a){return new (a||FI)};FI.\u0275pipe=td({name:"toNewEmailPreference",type:FI,pure:!0});var GI=function(){this.transform=EBa};GI.\u0275fac=function(a){return new (a||GI)};GI.\u0275pipe=td({name:"enumToHuman",type:GI,pure:!0});var HI=function(){this.transform=FBa};HI.\u0275fac=function(a){return new (a||HI)};HI.\u0275pipe=td({name:"arrayToHuman",type:HI,pure:!0});var II=function(){};II.prototype.transform=function(a,b){return ih(GBa(a,b)).toString()};
II.\u0275fac=function(a){return new (a||II)};II.\u0275pipe=td({name:"boldPrefixMatches",type:II,pure:!0});var JI=function(){this.transform=HBa};JI.\u0275fac=function(a){return new (a||JI)};JI.\u0275pipe=td({name:"yesNo",type:JI,pure:!0});var KI=function(){this.transform=IBa};KI.\u0275fac=function(a){return new (a||KI)};KI.\u0275pipe=td({name:"teamPath",type:KI,pure:!0});var LI=function(){this.transform=JBa};LI.\u0275fac=function(a){return new (a||LI)};
LI.\u0275pipe=td({name:"humanFileSize",type:LI,pure:!0});var MI=function(){this.transform=LBa};MI.\u0275fac=function(a){return new (a||MI)};MI.\u0275pipe=td({name:"omitObfuscatedEmail",type:MI,pure:!0});var NI=function(){this.transform=Xn};NI.\u0275fac=function(a){return new (a||NI)};NI.\u0275pipe=td({name:"toString",type:NI,pure:!0});var OI=function(){this.transform=MBa};OI.\u0275fac=function(a){return new (a||OI)};OI.\u0275pipe=td({name:"csv",type:OI,pure:!0});
var PZb=new Map([["(",")"],[")","("],["{","}"],["}","{"],["[","]"],["]","["],["<",">"],[">","<"]]),PI=function(){};PI.prototype.transform=function(a){return null==a?void 0:a.split("").reverse().map(function(b){var c;return null!=(c=PZb.get(b))?c:b}).join("")};PI.\u0275fac=function(a){return new (a||PI)};PI.\u0275pipe=td({name:"reverse",type:PI,pure:!0});var QI=function(){};QI.prototype.transform=function(a,b,c){a=b.indexOf(a);if(0>a)return!0;c=a+c;return!(0<=c&&c<b.length)};
QI.\u0275fac=function(a){return new (a||QI)};QI.\u0275pipe=td({name:"isOutOfBounds",type:QI,pure:!0});var RI=function(){};RI.\u0275fac=function(a){return new (a||RI)};RI.\u0275mod=qd({type:RI});RI.\u0275inj=ad({});var SI=function(a,b,c,d){Y.call(this);var e=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.pageTitle=c;this.issuePermissionService=d;this.handlers$=this.paramsService.routeParams$.pipe(mf(ki),zf(function(f){return e.onRouteParamsChanged(f)}));this.init=function(){e.subscriptions.add(e.handlers$.subscribe(function(){}))};this.initOnce=vAa(this.init)};W(SI,Y);SI.\u0275dir=Y.\u0275dir;SI.prototype.onRouteParamsChanged=function(a){return a.issueId?QZb(this,a.issueId):(0,B.of)()};
var QZb=function(a,b){return(0,B.combineLatest)([KH(a.issueFetchResponseFridge,b),a.issuePermissionService.accessLevel$]).pipe(yf([]),A(function(c){c=l(c);var d=c.next().value;c=c.next().value;var e;if(d=null==(e=null==d?void 0:d.issue)?void 0:e.snapshot[0].title){e=d+" ["+b+"]";if(c){a:switch(c){case "EXTERNAL_PARTNER":c="Visible to Partners";break a;case "EXTERNAL_PUBLIC":c="Visible to Public";break a;default:c=""}c&&(e=e+" - "+c)}a.pageTitle.setTitle(e)}else a.pageTitle.setTitle("View issue")}))};
SI.\u0275fac=function(a){return new (a||SI)(n(AI),n(JH),n(lG),n(EI))};SI.\u0275prov=$c({token:SI,factory:SI.\u0275fac,providedIn:"root"});var RZb=function(a){this.internalArray_=m(a)};W(RZb,X);g=RZb.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getComment=function(){return Hi(this,2)};g.setComment=function(a){qj(this,2,a)};g.getFormattingMode=function(){return Vi(this,3,0)};g.setFormattingMode=function(a){return rj(this,3,a)};g.getContentJudgement=function(){return Fi(this,Sl,4)};g.setContentJudgement=function(a){return oj(this,Sl,4,a)};var TI=function(a){this.internalArray_=m(a,0,TI.messageId)};W(TI,X);g=TI.prototype;g.getType=function(){return Vi(this,1,0)};g.setType=function(a){return rj(this,1,a)};g.hasType=function(){return Ti(this,1)};g.setPageSize=function(a){return nj(this,2,a)};g.setPageToken=function(a){return qj(this,3,a)};TI.messageId="b.ListCommentReactionRespondersRequest";var qn=function(a){this.internalArray_=m(a,0,qn.messageId)};W(qn,X);qn.prototype.getCreatedTime=function(){return Fi(this,gj,2)};qn.prototype.setCreatedTime=function(a){return oj(this,gj,2,a)};qn.messageId="b.CommentReactionResponder";var UI=function(a){this.internalArray_=m(a,0,UI.messageId)};W(UI,X);UI.prototype.getNextPageToken=function(){return Hi(this,2)};UI.prototype.getTotalSize=function(){return hi(this,3)};UI.repeatedFields_=[1];UI.messageId="b.ListCommentReactionRespondersResponse";var VI=function(a){this.internalArray_=m(a,0,VI.messageId)};W(VI,X);VI.prototype.getIssueCommentsList=function(){return Ji(this,UE,1)};VI.repeatedFields_=[1];VI.messageId="b.ListIssueCommentHistoryResponse";var SZb=function(a){this.internalArray_=m(a)};W(SZb,X);g=SZb.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getCommentNumber=function(){return hi(this,2)};g.setCommentNumber=function(a){return nj(this,2,a)};g.getComment=function(){return Hi(this,3)};g.setComment=function(a){qj(this,3,a)};g.getFormattingMode=function(){return Vi(this,4,0)};g.setFormattingMode=function(a){return rj(this,4,a)};var TZb=function(a){this.internalArray_=m(a)};W(TZb,X);g=TZb.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getCommentNumber=function(){return hi(this,2)};g.setCommentNumber=function(a){return nj(this,2,a)};g.getPiiRetention=function(){return Vi(this,3,0)};g.setPiiRetention=function(a){return rj(this,3,a)};var WI=function(){};WI.\u0275fac=function(a){return new (a||WI)};WI.\u0275prov=$c({token:WI,factory:WI.\u0275fac,providedIn:"root"});var XI=function(a){this.executor=a};g=XI.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(Cva(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:UE}).pipe(A(hn))};
g.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);e=new RZb;e.setIssueId(a);e.setComment(b);e.setFormattingMode(qya(c));d&&e.setContentJudgement(Fva(d));return this.executor.post({url:"action/issues/"+a+"/comment",body:e,responseConstructor:null,options:{headers:f}})};
g.update=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);e=new SZb;e.setIssueId(a);e.setCommentNumber(b);e.setComment(c);e.setFormattingMode(qya(d));return this.executor.post({url:"action/issues/"+a+"/updateComment",body:e,options:{headers:f},responseConstructor:null})};g.delete=function(a,b,c,d){return this.executor.delete({url:"action/issues/"+a+"/comment/"+b,options:{params:{reason:c},headers:{"If-Match":d}},responseConstructor:null})};
g.undelete=function(a,b,c){var d={};void 0!==c&&(d.comment_version=String(c));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:d},responseConstructor:UE}).pipe(A(hn))};g.listHistory=function(a,b){return this.executor.get({url:"action/issues/"+a+"/comment/"+b+"/history",responseConstructor:VI}).pipe(A(tya))};
g.updateCommentReaction=function(a){var b=a.issueId,c=a.commentId,d=a.reactionType,e=a.hasReacted,f;a=new on;d=(new pn).setType(null!=(f=ITb[d])?f:0);f=mj(d,1,e);f=Wp(a,1,pn,f);return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:f,responseConstructor:on}).pipe(A(sya))};
g.listCommentReactionResponders=function(a){var b=a.issueId,c=a.commentId,d=a.reactionType,e=a.pageToken;a=void 0===a.pageSize?500:a.pageSize;var f;d=(new TI).setType(null!=(f=ITb[d])?f:0).setPageSize(a);e&&d.setPageToken(e);return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/listReactionResponders",body:d,responseConstructor:UI}).pipe(A(wya))};
g.updateRetention=function(a,b,c){c=(new TZb).setIssueId(a).setCommentNumber(b).setPiiRetention(Gwa[c]);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:UE}).pipe(A(hn))};XI.\u0275fac=function(a){return new (a||XI)(n(tD))};XI.\u0275prov=$c({token:XI,factory:XI.\u0275fac,providedIn:"root"});var YI=function(a){this.observableApi=a};W(YI,WI);g=YI.prototype;g.get=function(a,b,c){return(0,B.firstValueFrom)(this.observableApi.get(a,b,c))};
g.create=function(a,b,c,d,e){return(0,B.firstValueFrom)(this.observableApi.create(a,b,c,d,e))};g.update=function(a,b,c,d,e){return(0,B.firstValueFrom)(this.observableApi.update(a,b,c,d,e))};g.delete=function(a,b,c,d){return(0,B.firstValueFrom)(this.observableApi.delete(a,b,c,d))};g.undelete=function(a,b,c){return(0,B.firstValueFrom)(this.observableApi.undelete(a,b,c))};g.listHistory=function(a,b){return(0,B.firstValueFrom)(this.observableApi.listHistory(a,b))};g.updateCommentReaction=function(a){return(0,B.firstValueFrom)(this.observableApi.updateCommentReaction(a))};
g.listCommentReactionResponders=function(a){return(0,B.firstValueFrom)(this.observableApi.listCommentReactionResponders(a))};g.updateRetention=function(a,b,c){return(0,B.firstValueFrom)(this.observableApi.updateRetention(a,b,c))};YI.\u0275fac=function(a){return new (a||YI)(n(XI))};YI.\u0275prov=$c({token:YI,factory:YI.\u0275fac,providedIn:"root"});var ZI=function(a){var b=this;this.parentElement=a;this.lastTimestamp=this.state=this.y=this.x=0;this.animate=function(c){3!==b.state&&requestAnimationFrame(b.animate);if(!(30>c-b.lastTimestamp)){b.lastTimestamp=c;if(2===b.state){if(UZb(b),-50>b.x||b.x>document.documentElement.clientWidth+50||-50>b.y||b.y>document.documentElement.clientHeight+50)b.element.remove(),b.state=3}else{b.moveFlipCounter--;0>=b.moveFlipCounter&&(0===b.state?b.state=1:1===b.state&&(b.state=0),b.moveFlipCounter=50+100*Math.random(),
VZb(b));if(1===b.state)return;b.turnCounter--;0>=b.turnCounter&&(b.direction=360*Math.random(),b.turnCounter=40*Math.random());0>b.x&&90<b.direction&&270>b.direction&&(b.direction=(180-b.direction)%360);b.x>document.documentElement.clientWidth&&(90>b.direction||270<b.direction)&&(b.direction=(180-b.direction)%360);0>b.y&&180<b.direction&&(b.direction=360-b.direction);b.y>document.documentElement.clientHeight&&180>b.direction&&(b.direction=360-b.direction);UZb(b)}b.transform()}};this.speed=2+3*Math.random();
this.size=14+16*Math.random();this.turnCounter=40*Math.random();this.moveFlipCounter=50+100*Math.random();this.direction=360*Math.random();this.flip=1;this.element=this.createElement();VZb(this);WZb(this)};ZI.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
ZI.prototype.stop=function(){this.state=2;VZb(this);this.direction=180*Math.atan2(this.y-document.documentElement.clientHeight/2,this.x-document.documentElement.clientWidth/2)/Math.PI+90*(Math.random()-.5);this.speed=15+10*Math.random()};
var WZb=function(a){var b=Math.floor(4*Math.random());switch(b){case 0:a.x=document.documentElement.clientWidth*Math.random();a.y=-50;break;case 1:a.x=document.documentElement.clientWidth*Math.random();a.y=document.documentElement.clientHeight+50;break;case 2:a.x=document.documentElement.clientWidth+50;a.y=document.documentElement.clientHeight*Math.random();break;case 3:a.x=-50;a.y=document.documentElement.clientHeight*Math.random();break;default:console.warn("Illegal mode: "+b)}};
ZI.prototype.createElement=function(){var a=document.createElement("img");a.style.height=this.size+"px";a.style.width=this.size+"px";a.style.backgroundColor="transparent";a.style.zIndex="9999";a.style.position="fixed";a.style.top="0px";a.style.left="0px";return a};
var VZb=function(a){a.element.src=1===a.state?"https://www.gstatic.com/buganizer/img/v0/logo.svg":"https://www.gstatic.com/buganizer/img/v0/bug-move.svg"},UZb=function(a){a.flip*=-1;var b=a.direction*Math.PI/180;a.x+=Math.cos(b)*a.speed;a.y+=Math.sin(b)*a.speed};ZI.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};var XZb=function(a){this.element=a;this.bugs=[]};XZb.prototype.start=function(){for(var a=this,b=0;3>b;b++)YZb(this);this.intervalSubscription=(0,B.interval)(1E4).subscribe(function(){YZb(a);10<=a.bugs.length&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};XZb.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=l(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};
var YZb=function(a){var b=new ZI(a.element);b.start();a.bugs.push(b)};var $I=function(a,b,c,d){var e=this;this.ngZone=a;this.userPreferencesManager=b;this.snackBar=c;this.destroyed$=new B.ReplaySubject(1);this.active$=new B.BehaviorSubject(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.bugAnimation=new XZb(d.nativeElement);this.active$.pipe(Af(this.destroyed$),mf()).subscribe(function(f){f?ZZb(e):$Zb(e)})};$I.prototype.ngOnInit=function(){"visible"===document.visibilityState&&a_b(this)};$I.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var a_b=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)};$I.prototype.onUserEvent=function(){var a=Date.now();a<this.lastTimeoutResetTimestamp+1E4||(this.lastTimeoutResetTimestamp=a,this.active$.next(!0),clearTimeout(this.timeoutId),a_b(this))};$I.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var $Zb=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){var b=Object.assign({},a.userPreferencesManager.bugScreensaverSubject$.value,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:b}).subscribe()});a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},ZZb=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})};
$I.\u0275fac=function(a){return new (a||$I)(z(Df),z(iE),z(SF),z(ae))};
$I.\u0275cmp=od({type:$I,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&L("click",function(){return b.onUserEvent()},!1,ce)("keydown",function(){return b.onUserEvent()},!1,ce)("mousemove",function(){return b.onUserEvent()},!1,ce)("wheel",function(){return b.onUserEvent()},!1,ce)("touchstart",function(){return b.onUserEvent()},!1,ce)("focus",function(){return b.onUserEvent()},!1,ce)("visibilitychange",function(){return b.onVisibilityChange()},!1,hfa)},decls:0,vars:0,template:function(){},
encapsulation:2});var aJ=function(a,b){var c=b.isInternalSession();this.isEnabled$=a.bugScreensaverSubject$.pipe(A(function(d){return(d.enableBugScreensaver||!1)&&c}))};aJ.\u0275fac=function(a){return new (a||aJ)(z(iE),z(Us))};aJ.\u0275cmp=od({type:aJ,selectors:[["bug-screensaver-manager"]],decls:2,vars:3,consts:[[4,"ngIf"]],template:function(a,b){a&1&&(P(0,NBa,1,0,"bug-screensaver",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.isEnabled$))},dependencies:[Ev,$I,Kv],encapsulation:2});var b_b=["button"],bJ=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new Yu};bJ.prototype.onClick=function(a){this.onAction.emit(a)};bJ.prototype.focus=function(){this.nativeButton.focus()};bJ.\u0275fac=function(a){return new (a||bJ)};
bJ.\u0275cmp=od({type:bJ,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&zg(b_b,5);if(a&2){var c;yg(c=Bg())&&(b.nativeButton=c.first)}},inputs:{color:"color",format:"format",disabled:"disabled",size:"size",bAriaLabel:"bAriaLabel",bAriaExpanded:"bAriaExpanded",tooltip:"tooltip"},outputs:{onAction:"onAction"},ngContentSelectors:["*"],decls:8,vars:5,consts:[["buttonContent",""],[3,"ngSwitch"],["type","button","mat-stroked-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip",
"click",4,"ngSwitchCase"],["type","button","mat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click",4,"ngSwitchCase"],["type","button","mat-flat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click",4,"ngSwitchCase"],["type","button","mat-icon-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click",4,"ngSwitchCase"],["type","button","mat-stroked-button","","class","gmat-button",3,"color","disabled","ngClass",
"matTooltip","click",4,"ngSwitchDefault"],["type","button","mat-stroked-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click"],["button",""],[4,"ngTemplateOutlet"],["type","button","mat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click"],["type","button","mat-flat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click"],["type","button","mat-icon-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click"]],
template:function(a,b){a&1&&(eg(),P(0,OBa,1,0,"ng-template",null,0,Eg),I(2,1),P(3,QBa,3,7,"button",2),P(4,SBa,3,7,"button",3),P(5,UBa,3,7,"button",4),P(6,WBa,3,7,"button",5),P(7,YBa,3,7,"button",6),K());a&2&&(w(2),C("ngSwitch",b.format),w(1),C("ngSwitchCase","hairline"),w(1),C("ngSwitchCase","flat"),w(1),C("ngSwitchCase","fill"),w(1),C("ngSwitchCase","icon"))},dependencies:[Ez,FB,Cv,Jv,Fv,Gv,Hv],encapsulation:2,changeDetection:0});var cJ=function(){};cJ.\u0275fac=function(a){return new (a||cJ)};cJ.\u0275mod=qd({type:cJ});cJ.\u0275inj=ad({imports:[SB,FC,aD]});var dJ=function(){};dJ.\u0275fac=function(a){return new (a||dJ)};dJ.\u0275mod=qd({type:dJ});dJ.\u0275inj=ad({imports:[aD]});var eJ=function(){};eJ.\u0275fac=function(a){return new (a||eJ)};eJ.\u0275mod=qd({type:eJ});eJ.\u0275inj=ad({imports:[aD,RF,cJ,dJ]});var fJ=function(a){this.currentTracker=a;this.trackerName$=this.currentTracker.tracker$.pipe(A(function(b){var c;return null!=(c=null==b?void 0:b.name)?c:""}));this.trackerLogo$=this.currentTracker.tracker$.pipe(A(function(b){var c,d;return null!=(d=null==b?void 0:null==(c=b.branding)?void 0:c.logoUrl)?d:""}));this.trackerCoc$=this.currentTracker.tracker$.pipe(A(function(b){var c,d;return null!=(d=null==b?void 0:null==(c=b.branding)?void 0:c.cocUrl)?d:""}))};
fJ.\u0275fac=function(a){return new (a||fJ)(z(jG))};
fJ.\u0275cmp=od({type:fJ,selectors:[["b-footer"]],decls:2,vars:3,consts:[[4,"ngIf"],["alt","",1,"logo",3,"src"],[1,"title"],[1,"padded-s-sides"],["href","https://policies.google.com/privacy","target","_blank"],["href","https://policies.google.com/terms","target","_blank"],["id","code-of-conduct","target","_blank",3,"href"]],template:function(a,b){a&1&&(P(0,$Ba,17,9,"footer",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.currentTracker.inTracker$))},dependencies:[Ev,Kv],styles:["footer[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);-moz-box-sizing:border-box;box-sizing:border-box;width:100%;padding:8px 16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.logo[_ngcontent-%COMP%]{width:24px;height:24px;padding:3px;margin-right:12px}a[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}a[_ngcontent-%COMP%]:hover{text-decoration:underline}.title[_ngcontent-%COMP%]{margin-right:56px}"]});var gJ=function(){};gJ.\u0275fac=function(a){return new (a||gJ)};gJ.\u0275mod=qd({type:gJ});gJ.\u0275inj=ad({imports:[aD]});var hJ=function(){};hJ.\u0275fac=function(a){return new (a||hJ)};hJ.\u0275cmp=od({type:hJ,selectors:[["b-ng2-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&G(0,"router-outlet")},dependencies:[KD],encapsulation:2});var iJ=function(){};iJ.\u0275fac=function(a){return new (a||iJ)};iJ.\u0275cmp=od({type:iJ,selectors:[["b-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&G(0,"b-ng2-router-outlet")},dependencies:[hJ],encapsulation:2});var jJ=function(){};jJ.\u0275fac=function(a){return new (a||jJ)};jJ.\u0275mod=qd({type:jJ});jJ.\u0275inj=ad({imports:[aD,bE]});var kJ=function(){this.segments=[];this.clickMain=new Yu;this.clickSegment=new Yu};kJ.prototype.ngOnInit=function(){};Qh.Object.defineProperties(kJ.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return 0<this.segments.length}}});kJ.\u0275fac=function(a){return new (a||kJ)};
kJ.\u0275cmp=od({type:kJ,selectors:[["b-fab-segmented"]],inputs:{label:"label",icon:"icon",segments:"segments",href:"href"},outputs:{clickMain:"clickMain",clickSegment:"clickSegment"},decls:5,vars:6,consts:[[1,"shrink-wrap"],["mat-button","","role","button",1,"main","button-xl",3,"click"],[1,"icon-xl",3,"svgIcon"],[4,"ngIf"],["mat-button","","aria-label","More options",1,"more","button-xl","square-left",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],["createMenu","matMenu"],["mat-menu-item",
"",3,"href","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"href","click"]],template:function(a,b){a&1&&(D(0,"span",0)(1,"a",1),L("click",function(){return b.clickMain.emit(b.label)}),G(2,"mat-icon",2),Q(3),F(),P(4,bCa,6,2,"ng-container",3),F());a&2&&(w(1),Xf("square-right",b.showMoreButton),Nf("href",b.href||void 0,re),w(1),C("svgIcon",b.icon),w(1),S(" ",b.label," "),w(1),C("ngIf",b.showMoreButton))},dependencies:[Dv,Ev,qA,Ez,Fz,AB,yB,zB],styles:['[mat-button][_ngcontent-%COMP%]{vertical-align:middle;color:#202124;color:var(--text-default);font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500}.shrink-wrap[_ngcontent-%COMP%]{display:inline-block;border-radius:24px;white-space:nowrap;transition:box-shadow .2s ease-in-out;background-color:#fff;background-color:var(--fab-button-bg);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)}.shrink-wrap[_ngcontent-%COMP%]:hover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)}.mat-button[_ngcontent-%COMP%]{border-radius:24px}.main[_ngcontent-%COMP%]{padding-left:10px;padding-right:24px}.main.square-right[_ngcontent-%COMP%]{padding-right:8px}.more[_ngcontent-%COMP%]{padding-right:10px;padding-left:4px;min-width:0;color:#80868b;color:var(--gfx-muted)}.more[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:24px}.more[_ngcontent-%COMP%]:hover, .more[_ngcontent-%COMP%]:focus{color:#202124;color:var(--text-default)}.more[_ngcontent-%COMP%]{transition:border .2s ease-in-out;border-left:1px solid rgba(0,0,0,0)}.shrink-wrap[_ngcontent-%COMP%]:hover   .more[_ngcontent-%COMP%]{border-left:1px solid;border-left-color:#dadce0;border-left-color:var(--divider)}/*# sourceMappingURL=fab_segmented.css.map */']});var lJ=function(a,b,c,d){var e=this;this.paths=a;this.context=b;this.currentTracker=c;this.componentFridge=d;this.createIssuePath=this.paths.createIssue();this.component$=this.context.getComponentId().pipe(zf(function(f){return f?e.componentFridge.watch(f):(0,B.of)(void 0)}),A(function(f){return f&&!f.archived?f:void 0}));this.visibleOptions$=(0,B.combineLatest)([this.currentTracker.tracker$,this.component$,this.context.getIssueId(),this.context.getHotlistId()]).pipe(lf(0),A(function(f){var h=l(f);
f=h.next().value;var k=h.next().value,q=h.next().value;h=h.next().value;return c_b(e,null!=f?f:void 0,k,q,h)}));this.buttonLabel$=this.visibleOptions$.pipe(A(function(f){return f.length?"Create":"Create Issue"}));this.buttonIcon$=this.currentTracker.tracker$.pipe(A(function(f){var h;return"OPEN_SOURCE"===(null==f?void 0:null==(h=f.branding)?void 0:h.theme)?"create-open-source-36px":"create-color-36px"}))};lJ.prototype.ngOnInit=function(){};lJ.prototype.trackClick=function(a){Mk("create","click",a)};
var c_b=function(a,b,c,d,e){var f=new Map;b=b&&c&&!xn(b.trackerId)&&b.trackerId!==c.trackerId;c=(null==c?0:c.componentId)?String(c.componentId):void 0;if(null!==e){var h={};f.set("in_same_hotlist",a.paths.createIssue((h.hotlistIds=String(e),h)))}b||void 0===c||(e={},f.set("in_same_component",a.paths.createIssue((e.component=c,e))));b||null===d||(e={},f.set("similar_to_current_issue",a.paths.createIssue((e.template_issue=d,e))),e={},f.set("blocked_by_current_issue",a.paths.createIssue((e.blockedByIssueIds=
d,e.component=c,e))),e={},f.set("blocking_current_issue",a.paths.createIssue((e.blockingIssueIds=d,e.component=c,e))),e={},f.set("parent_of_current_issue",a.paths.createIssue((e.childrenIssueIds=d,e.component=c,e))),e={},f.set("child_of_current_issue",a.paths.createIssue((e.parentIssueId=d,e.component=c,e))));return[].concat(p(f.entries())).map(function(k){var q=l(k);k=q.next().value;q=q.next().value;return{name:EBa(k),path:q}})};lJ.\u0275fac=function(a){return new (a||lJ)(z(xE),z(BI),z(jG),z(OG))};
lJ.\u0275cmp=od({type:lJ,selectors:[["b-create-issue-button"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"label","icon","href","segments","clickMain","clickSegment"]],template:function(a,b){a&1&&(P(0,eCa,3,3,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.visibleOptions$))},dependencies:[Ev,kJ,Kv],encapsulation:2,changeDetection:0});var d_b=new Ad("GMAT_CHIPS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var mJ=function(a){this.options=a};mJ.\u0275fac=function(a){return new (a||mJ)(z(d_b))};
mJ.\u0275dir=sd({type:mJ,selectors:[["mat-chip"],["mat-basic-chip"],["mat-chip-row"],["mat-basic-chip-row"],["mat-chip-option"],["mat-basic-chip-option"]],hostVars:16,hostBindings:function(a,b){a&2&&Xf("gmat-mdc-chip",!b.options.disableGmatStyle)("gmat-input-chip","input"===b.appearance)("gmat-filter-chip","hairline-filter"===b.appearance||"protected-filter"===b.appearance)("gmat-suggestive-chip","hairline-suggestive"===b.appearance||"protected-suggestive"===b.appearance)("gmat-assistive-chip","hairline-assistive"===
b.appearance||"protected-assistive"===b.appearance)("gmat-hairline-chip","input"===b.appearance||"hairline-filter"===b.appearance||"hairline-suggestive"===b.appearance||"hairline-assistive"===b.appearance)("gmat-protected-chip","protected-filter"===b.appearance||"protected-suggestive"===b.appearance||"protected-assistive"===b.appearance)("gmat-selectable-chip","input"===b.appearance||"hairline-filter"===b.appearance||"protected-filter"===b.appearance)},inputs:{appearance:"appearance"}});var e_b=new Ad("mat-chips-default-options"),f_b=new Ad("MatChipAvatar"),g_b=new Ad("MatChipTrailingIcon"),h_b=new Ad("MatChipRemove"),i_b=new Ad("MatChip");var j_b=Vh(function(){},-1),nJ=function(a,b){var c=j_b.call(this)||this;c._elementRef=a;c._parentChip=b;c.isInteractive=!0;c._isPrimary=!0;c._disabled=!1;c._allowFocusWhenDisabled=!1;"BUTTON"===a.nativeElement.nodeName&&a.nativeElement.setAttribute("type","button");return c};W(nJ,j_b);g=nJ.prototype;g._getDisabledAttribute=function(){return this.disabled&&!this._allowFocusWhenDisabled?"":null};
g._getTabindex=function(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()};g.focus=function(){this._elementRef.nativeElement.focus()};g._handleClick=function(a){!this.disabled&&this.isInteractive&&this._isPrimary&&(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};
g._handleKeydown=function(a){13!==a.keyCode&&32!==a.keyCode||this.disabled||!this.isInteractive||!this._isPrimary||this._parentChip._isEditing||(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};Qh.Object.defineProperties(nJ.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this._parentChip.disabled},set:function(a){this._disabled=ah(a)}}});nJ.\u0275fac=function(a){return new (a||nJ)(z(ae),z(i_b))};
nJ.\u0275dir=sd({type:nJ,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(a,b){a&1&&L("click",function(c){return b._handleClick(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Nf("tabindex",b._getTabindex())("disabled",b._getDisabledAttribute())("aria-disabled",b.disabled),Xf("mdc-evolution-chip__action--primary",b._isPrimary)("mdc-evolution-chip__action--presentational",!b.isInteractive)("mdc-evolution-chip__action--trailing",
!b._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[Jf]});var oJ=function(){var a=nJ.apply(this,arguments)||this;a.isInteractive=!1;a._isPrimary=!1;return a};W(oJ,nJ);oJ.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(oJ)))(b||oJ)}}();oJ.\u0275dir=sd({type:oJ,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:["aria-hidden","true",1,"mat-mdc-chip-trailing-icon","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],features:[lg([{provide:g_b,useExisting:oJ}]),Jf]});var k_b=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],l_b=0,m_b=Vh(Rh(Sh(Th(function(a){this._elementRef=a})),"primary"),-1),pJ=function(a,b,c,d,e,f,h,k){b=m_b.call(this,b)||this;b._changeDetectorRef=a;b._ngZone=c;b._focusMonitor=d;b._globalRippleOptions=h;b._onFocus=new B.Subject;b._onBlur=new B.Subject;b.role=null;b._hasFocusInternal=!1;b.id="mat-mdc-chip-"+l_b++;b.ariaLabel=null;b.ariaDescription=null;b._ariaDescriptionId=
b.id+"-aria-description";b._removable=!0;b._highlighted=!1;b.removed=new Yu;b.destroyed=new Yu;b.basicChipAttrName="mat-basic-chip";b._rippleLoader=jd(gz);b._document=e;b._animationsDisabled="NoopAnimations"===f;if(null!=k){var q;b.tabIndex=null!=(q=parseInt(k))?q:b.defaultTabIndex}b._monitorFocus();null==b._rippleLoader||iNb(b._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:b._isRippleDisabled()});return b};W(pJ,m_b);g=pJ.prototype;g._hasFocus=function(){return this._hasFocusInternal};
g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._isBasicChip=a.hasAttribute(this.basicChipAttrName)||a.tagName.toLowerCase()===this.basicChipAttrName};g.ngAfterViewInit=function(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label");this._pendingFocus&&(this._pendingFocus=!1,this.focus())};g.ngAfterContentInit=function(){var a=this;this._actionChanges=(0,B.merge)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
g.ngDoCheck=function(){kNb(this._elementRef.nativeElement,this._isRippleDisabled())};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);var a;null==(a=this._actionChanges)||a.unsubscribe();this.destroyed.emit({chip:this});this.destroyed.complete()};g.remove=function(){this.removable&&this.removed.emit({chip:this})};
g._isRippleDisabled=function(){var a;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!(null==(a=this._globalRippleOptions)||!a.disabled)};g._hasTrailingIcon=function(){return!(!this.trailingIcon&&!this.removeIcon)};g._handleKeydown=function(a){if(8===a.keyCode||46===a.keyCode)a.preventDefault(),this.remove()};g.focus=function(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)};
g._getSourceAction=function(a){return this._getActions().find(function(b){b=b._elementRef.nativeElement;return b===a||b.contains(a)})};g._getActions=function(){var a=[];this.primaryAction&&a.push(this.primaryAction);this.removeIcon&&a.push(this.removeIcon);this.trailingIcon&&a.push(this.trailingIcon);return a};g._handlePrimaryActionInteraction=function(){};
g._monitorFocus=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=null!==b;b!==a._hasFocusInternal&&((a._hasFocusInternal=b)?a._onFocus.next({chip:a}):a._ngZone.onStable.pipe(nf()).subscribe(function(){return a._ngZone.run(function(){return a._onBlur.next({chip:a})})}))})};
Qh.Object.defineProperties(pJ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return void 0!==this._value?this._value:this._textElement.textContent.trim()},set:function(a){this._value=a}},removable:{configurable:!0,enumerable:!0,get:function(){return this._removable},set:function(a){this._removable=ah(a)}},highlighted:{configurable:!0,enumerable:!0,get:function(){return this._highlighted},set:function(a){this._highlighted=ah(a)}},ripple:{configurable:!0,enumerable:!0,get:function(){var a;
return null==(a=this._rippleLoader)?void 0:jNb(a,this._elementRef.nativeElement)},set:function(a){null==this._rippleLoader||lNb(this._elementRef.nativeElement,a)}}});pJ.\u0275fac=function(a){return new (a||pJ)(z(xv),z(ae),z(Df),z(Ow),z(Oh),z(iu,8),z(bz,8),Ud("tabindex"))};
pJ.\u0275cmp=od({type:pJ,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,f_b,5),Ag(c,g_b,5),Ag(c,h_b,5),Ag(c,f_b,5),Ag(c,g_b,5),Ag(c,h_b,5));if(a&2){var d;yg(d=Bg())&&(b.leadingIcon=d.first);yg(d=Bg())&&(b.trailingIcon=d.first);yg(d=Bg())&&(b.removeIcon=d.first);yg(d=Bg())&&(b._allLeadingIcons=d);yg(d=Bg())&&(b._allTrailingIcons=d);yg(d=Bg())&&(b._allRemoveIcons=d)}},viewQuery:function(a,b){a&1&&zg(nJ,5);if(a&2){var c;
yg(c=Bg())&&(b.primaryAction=c.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(a,b){a&1&&L("keydown",function(c){return b._handleKeydown(c)});a&2&&(cg("id",b.id),Nf("role",b.role)("tabindex",b.role?b.tabIndex:null)("aria-label",b.ariaLabel),Xf("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",b.leadingIcon)("mdc-evolution-chip--with-primary-icon",
b.leadingIcon)("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",b.highlighted)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-basic-chip",b._isBasicChip)("mat-mdc-standard-chip",!b._isBasicChip)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon())("_mat-animation-noopable",b._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label",
"ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[lg([{provide:i_b,useExisting:pJ}]),Jf],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction",
"",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(a,b){a&1&&(eg(k_b),G(0,"span",0),D(1,"span",1)(2,"span",
2),P(3,fCa,2,0,"span",3),D(4,"span",4),fg(5),G(6,"span",5),F()()(),P(7,gCa,2,0,"span",6));a&2&&(w(2),C("isInteractive",!1),w(1),C("ngIf",b.leadingIcon),w(4),C("ngIf",b._hasTrailingIcon()))},dependencies:[Ev,nJ],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var n_b=Vh(function(){}),qJ=function(a,b,c){var d=n_b.call(this,a)||this;d._elementRef=a;d._changeDetectorRef=b;d._dir=c;d._lastDestroyedFocusedChipIndex=null;d._destroyed=new B.Subject;d._defaultRole="presentation";d._disabled=!1;d._explicitRole=null;d._chipActions=new Cg;return d};W(qJ,n_b);g=qJ.prototype;g.ngAfterViewInit=function(){this._setUpFocusManagement();this._trackChipSetChanges();this._trackDestroyedFocusedChip()};
g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this._chipActions.destroy();this._destroyed.next();this._destroyed.complete()};g._hasFocusedChip=function(){return this._chips&&this._chips.some(function(a){return a._hasFocus()})};g._syncChipsState=function(){var a=this;this._chips&&this._chips.forEach(function(b){b.disabled=a._disabled;b._changeDetectorRef.markForCheck()})};g.focus=function(){};g._handleKeydown=function(a){if(this._originatesFromChip(a))this._keyManager.onKeydown(a)};
g._isValidIndex=function(a){return 0<=a&&a<this._chips.length};g._allowFocusEscape=function(){var a=this;if(-1!==this.tabIndex){var b=this.tabIndex;this.tabIndex=-1;setTimeout(function(){return a.tabIndex=b})}};g._getChipStream=function(a){var b=this;return this._chips.changes.pipe(yf(null),zf(function(){return B.merge.apply(null,p(b._chips.map(a)))}))};g._originatesFromChip=function(a){for(a=a.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-mdc-chip"))return!0;a=a.parentElement}return!1};
g._setUpFocusManagement=function(){var a=this;this._chips.changes.pipe(yf(this._chips)).subscribe(function(c){var d=[];c.forEach(function(e){return e._getActions().forEach(function(f){return d.push(f)})});a._chipActions.reset(d);xg(a._chipActions)});this._keyManager=hy(ly(ky(jy(new oy(this._chipActions)),this._dir?this._dir.value:"ltr")),function(c){return a._skipPredicate(c)});this.chipFocusChanges.pipe(Af(this._destroyed)).subscribe(function(c){(c=c.chip._getSourceAction(document.activeElement))&&
my(a._keyManager,c)});var b;null==(b=this._dir)||b.change.pipe(Af(this._destroyed)).subscribe(function(c){return ky(a._keyManager,c)})};g._skipPredicate=function(a){return!a.isInteractive||a.disabled};g._trackChipSetChanges=function(){var a=this;this._chips.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){return a._syncChipsState()});a._redirectDestroyedChipFocus()})};
g._trackDestroyedFocusedChip=function(){var a=this;this.chipDestroyedChanges.pipe(Af(this._destroyed)).subscribe(function(b){var c=a._chips.toArray().indexOf(b.chip);a._isValidIndex(c)&&b.chip._hasFocus()&&(a._lastDestroyedFocusedChipIndex=c)})};
g._redirectDestroyedChipFocus=function(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){var a=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1);a=this._chips.toArray()[a];a.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():a.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}};
Qh.Object.defineProperties(qJ.prototype,{chipFocusChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a._onFocus})}},chipDestroyedChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a.destroyed})}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=ah(a);this._syncChipsState()}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._chips||
0===this._chips.length}},role:{configurable:!0,enumerable:!0,get:function(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole},set:function(a){this._explicitRole=a}},focused:{configurable:!0,enumerable:!0,get:function(){return this._hasFocusedChip()}}});qJ.\u0275fac=function(a){return new (a||qJ)(z(ae),z(xv),z(py,8))};
qJ.\u0275cmp=od({type:qJ,selectors:[["mat-chip-set"]],contentQueries:function(a,b,c){a&1&&Ag(c,pJ,5);if(a&2){var d;yg(d=Bg())&&(b._chips=d)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(a,b){a&1&&L("keydown",function(c){return b._handleKeydown(c)});a&2&&Nf("role",b.role)},inputs:{disabled:"disabled",role:"role"},features:[Jf],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&
1&&(eg(),D(0,"div",0),fg(1),F())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"],
encapsulation:2,changeDetection:0});var o_b=function(a,b,c,d,e,f,h){a=qJ.call(this,a,b,c)||this;a._defaultErrorStateMatcher=d;a._parentForm=e;a._parentFormGroup=f;a.ngControl=h;a.stateChanges=new B.Subject;return a};W(o_b,qJ);o_b.\u0275cmp=qJ.\u0275cmp;o_b.\u0275fac=qJ.\u0275fac;Uh(o_b);var p_b=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],rJ=function(){var a=pJ.apply(this,arguments)||this;a._defaultOptions=jd(e_b,{optional:!0});a.chipListSelectable=!0;a._chipListMultiple=!1;var b,c;a._chipListHideSingleSelectionIndicator=null!=(c=null==(b=a._defaultOptions)?void 0:b.hideSingleSelectionIndicator)?c:!1;a._selectable=!0;a._selected=!1;a.basicChipAttrName="mat-basic-chip-option";a.selectionChange=
new Yu;return a};W(rJ,pJ);g=rJ.prototype;g.ngOnInit=function(){pJ.prototype.ngOnInit.call(this);this.role="presentation"};g.select=function(){this._setSelectedState(!0,!1,!0)};g.deselect=function(){this._setSelectedState(!1,!1,!0)};g._handlePrimaryActionInteraction=function(){this.disabled||(this.focus(),this.selectable&&this._setSelectedState(!this.selected,!0,!0))};g._hasLeadingGraphic=function(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple};
g._setSelectedState=function(a,b,c){a!==this.selected&&(this._selected=a,c&&this.selectionChange.emit({source:this,isUserInput:b,selected:this.selected}),this._changeDetectorRef.markForCheck())};
Qh.Object.defineProperties(rJ.prototype,{selectable:{configurable:!0,enumerable:!0,get:function(){return this._selectable&&this.chipListSelectable},set:function(a){this._selectable=ah(a);this._changeDetectorRef.markForCheck()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._setSelectedState(ah(a),!1,!0)}},ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.selectable?this.selected.toString():null}}});
rJ.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(rJ)))(b||rJ)}}();
rJ.\u0275cmp=od({type:rJ,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(a,b){a&2&&(cg("id",b.id),Nf("tabindex",null)("aria-label",null)("aria-description",null)("role",b.role),Xf("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--filter",!b._isBasicChip)("mdc-evolution-chip--selectable",!b._isBasicChip)("mat-mdc-chip-selected",b.selected)("mat-mdc-chip-multiple",
b._chipListMultiple)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-chip-with-avatar",b.leadingIcon)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--selected",b.selected)("mdc-evolution-chip--selecting",!b._animationsDisabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-primary-graphic",b._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",
b.highlighted)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selectable:"selectable",selected:"selected"},outputs:{selectionChange:"selectionChange"},features:[lg([{provide:pJ,useExisting:rJ},{provide:i_b,useExisting:rJ}]),Jf],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:10,vars:9,consts:[[1,"mat-mdc-chip-focus-overlay"],
[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"tabIndex","_allowFocusWhenDisabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],
[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(a,b){a&1&&(eg(p_b),G(0,"span",0),D(1,"span",1)(2,"button",2),P(3,hCa,5,0,"span",3),D(4,"span",4),fg(5),G(6,"span",5),F()()(),P(7,iCa,2,0,"span",6),D(8,"span",
7),Q(9),F());a&2&&(w(2),C("tabIndex",b.tabIndex)("_allowFocusWhenDisabled",!0),Nf("aria-selected",b.ariaSelected)("aria-label",b.ariaLabel)("aria-describedby",b._ariaDescriptionId),w(1),C("ngIf",b._hasLeadingGraphic()),w(4),C("ngIf",b._hasTrailingIcon()),w(1),C("id",b._ariaDescriptionId),w(1),jg(b.ariaDescription))},dependencies:[Ev,nJ],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var q_b=function(a,b){this.source=a;this.value=b},r_b={provide:Uv,useExisting:fd(function(){return sJ}),multi:!0},sJ=function(){var a=qJ.apply(this,arguments)||this;a._onTouched=function(){};a._onChange=function(){};a._defaultRole="listbox";a._defaultOptions=jd(e_b,{optional:!0});a._multiple=!1;a.ariaOrientation="horizontal";a._selectable=!0;a.compareWith=function(d,e){return d===e};a._required=!1;var b,c;a._hideSingleSelectionIndicator=null!=(c=null==(b=a._defaultOptions)?void 0:b.hideSingleSelectionIndicator)?
c:!1;a.change=new Yu;a._chips=void 0;return a};W(sJ,qJ);g=sJ.prototype;
g.ngAfterContentInit=function(){var a=this;void 0!==this._pendingInitialValue&&Promise.resolve().then(function(){a._setSelectionByValue(a._pendingInitialValue,!1);a._pendingInitialValue=void 0});this._chips.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){a._syncListboxProperties()});this.chipBlurChanges.pipe(Af(this._destroyed)).subscribe(function(){return a._blur()});this.chipSelectionChanges.pipe(Af(this._destroyed)).subscribe(function(b){a.multiple||a._chips.forEach(function(c){c!==
b.source&&c._setSelectedState(!1,!1,!1)});b.isUserInput&&a._propagateChanges()})};g.focus=function(){if(!this.disabled){var a=this._getFirstSelectedChip();a&&!a.disabled?a.focus():0<this._chips.length?this._keyManager._setActiveItemByIndex(0,1):this._elementRef.nativeElement.focus()}};g.writeValue=function(a){this._chips?this._setSelectionByValue(a,!1):null!=a&&(this._pendingInitialValue=a)};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};
g.setDisabledState=function(a){this.disabled=a};g._setSelectionByValue=function(a,b){var c=this;b=void 0===b?!0:b;this._clearSelection();Array.isArray(a)?a.forEach(function(d){return c._selectValue(d,b)}):this._selectValue(a,b)};g._blur=function(){var a=this;this.disabled||setTimeout(function(){a.focused||a._markAsTouched()})};g._keydown=function(a){9===a.keyCode&&qJ.prototype._allowFocusEscape.call(this)};g._markAsTouched=function(){this._onTouched();this._changeDetectorRef.markForCheck()};
g._propagateChanges=function(){var a=null;Array.isArray(this.selected)?a=this.selected.map(function(b){return b.value}):a=this.selected?this.selected.value:void 0;this._value=a;this.change.emit(new q_b(this,a));this._onChange(a);this._changeDetectorRef.markForCheck()};g._clearSelection=function(a){this._chips.forEach(function(b){b!==a&&b.deselect()})};
g._selectValue=function(a,b){var c=this,d=this._chips.find(function(e){return null!=e.value&&c.compareWith(e.value,a)});d&&(b?d._setSelectedState(!0,!0,!0):d.select());return d};g._syncListboxProperties=function(){var a=this;this._chips&&Promise.resolve().then(function(){a._chips.forEach(function(b){b._chipListMultiple=a.multiple;b.chipListSelectable=a._selectable;b._chipListHideSingleSelectionIndicator=a.hideSingleSelectionIndicator;b._changeDetectorRef.markForCheck()})})};
g._getFirstSelectedChip=function(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected};g._skipPredicate=function(a){return!a.isInteractive};
Qh.Object.defineProperties(sJ.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=ah(a);this._syncListboxProperties()}},selected:{configurable:!0,enumerable:!0,get:function(){var a=this._chips.toArray().filter(function(b){return b.selected});return this.multiple?a:a[0]}},selectable:{configurable:!0,enumerable:!0,get:function(){return this._selectable},set:function(a){this._selectable=ah(a);this._syncListboxProperties()}},required:{configurable:!0,
enumerable:!0,get:function(){return this._required},set:function(a){this._required=ah(a)}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=ah(a);this._syncListboxProperties()}},chipSelectionChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a.selectionChange})}},chipBlurChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a._onBlur})}},
value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this.writeValue(a);this._value=a}}});sJ.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(sJ)))(b||sJ)}}();
sJ.\u0275cmp=od({type:sJ,selectors:[["mat-chip-listbox"]],contentQueries:function(a,b,c){a&1&&Ag(c,rJ,5);if(a&2){var d;yg(d=Bg())&&(b._chips=d)}},hostAttrs:["ngSkipHydration","",1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(a,b){a&1&&L("focus",function(){return b.focus()})("blur",function(){return b._blur()})("keydown",function(c){return b._keydown(c)});a&2&&(cg("tabIndex",b.empty?-1:b.tabIndex),Nf("role",b.role)("aria-describedby",b._ariaDescribedby||null)("aria-required",
b.role?b.required:null)("aria-disabled",b.disabled.toString())("aria-multiselectable",b.multiple)("aria-orientation",b.ariaOrientation),Xf("mat-mdc-chip-list-disabled",b.disabled)("mat-mdc-chip-list-required",b.required))},inputs:{tabIndex:"tabIndex",multiple:"multiple",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",compareWith:"compareWith",required:"required",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",value:"value"},outputs:{change:"change"},features:[lg([r_b]),
Jf],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(eg(),D(0,"div",0),fg(1),F())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"],
encapsulation:2,changeDetection:0});var Yn=["Buganizer","Critique","Drive"],tJ=function(){this.sources=Yn;this.selectedSources=[];this.change=new Yu};tJ.\u0275fac=function(a){return new (a||tJ)};
tJ.\u0275cmp=od({type:tJ,selectors:[["source-filter-chips"]],inputs:{sources:"sources",selectedSources:"selectedSources"},outputs:{change:"change"},decls:2,vars:1,consts:[["multiple","","aria-label","Source selection",3,"change"],["appearance","hairline-filter",3,"selected",4,"ngFor","ngForOf"],["appearance","hairline-filter",3,"selected"]],template:function(a,b){a&1&&(D(0,"mat-chip-listbox",0),L("change",function(c){b.selectedSources=c.value;b.change.emit(c.value)}),P(1,jCa,2,2,"mat-chip-option",
1),F());a&2&&(w(1),C("ngForOf",b.sources))},dependencies:[Dv,mJ,sJ,rJ],encapsulation:2});var s_b=new Map([["ASSIGNED","Newly assigned"],["MENTIONED","Mentioned me"],["NEAR_SLO","Near SLO"],["NEEDS_ATTENTION","In attention set"],["NEEDS_REPORTER_INPUT","Needs reporter input"],["NEWLY_BLOCKING","Newly blocking"],["READY_TO_SUBMIT","Ready to submit"],["REPLIED_TO_MENTION","Replied to me"],["REQUIRES_APPROVAL","Added as approver"],["TAGGED_IN_COMMENT","Mentioned me"],["UNBLOCKED","Blockers closed"]]),t_b=new Map([["ASSIGNED","This issue was newly assigned to you recently"],["MENTIONED","You were mentioned on this issue recently"],
["NEAR_SLO","20% of SLO time is remaining for this issue"],["NEEDS_ATTENTION","This CL is in your \u201cNeeds attention\u201d list in Critique"],["NEEDS_REPORTER_INPUT","Issue was assigned back to reporter (you) recently"],["NEWLY_BLOCKING","This issue started blocking another issue recently"],["READY_TO_SUBMIT","This CL is ready to submit"],["REPLIED_TO_MENTION","Someone replied to your mention recently"],["REQUIRES_APPROVAL","You were added as an approver"],["TAGGED_IN_COMMENT","Someone mentioned me in a comment"],
["UNBLOCKED","The last blocking issue was closed recently"]]),u_b=new Map([["NEEDS_ATTENTION","Review CL"],["READY_TO_SUBMIT","Submit CL"],["TAGGED_IN_COMMENT","Reply comment"],["REQUIRES_APPROVAL","Review"],["NEAR_SLO","View issue"],["MENTIONED","Reply comment"],["REPLIED_TO_MENTION","Reply comment"],["NEWLY_BLOCKING","View blocker issue"],["UNBLOCKED","View issue"],["ASSIGNED","Start work"],["NEEDS_REPORTER_INPUT","Reply comment"]]);var ao=function(a){this.internalArray_=m(a)};W(ao,X);ao.prototype.getHotlistId=function(){return dj(this,1)};ao.prototype.setHotlistId=function(a){return um(this,1,a)};ao.prototype.getHotlist=function(){return Fi(this,rl,2)};ao.prototype.setHotlist=function(a){return oj(this,rl,2,a)};var bo=function(a){this.internalArray_=m(a)};W(bo,X);bo.prototype.getSavedSearchId=function(){return dj(this,1)};bo.prototype.setSavedSearchId=function(a){return um(this,1,a)};bo.prototype.getSavedSearch=function(){return Fi(this,co,2)};bo.prototype.setSavedSearch=function(a){return oj(this,co,2,a)};var $n=function(a){this.internalArray_=m(a)};W($n,X);$n.prototype.getHotlist=function(){return Fl(this,ao,1,Zn)};$n.prototype.setHotlist=function(a){return Ll(this,1,Zn,a)};$n.prototype.getSavedSearch=function(){return Fl(this,bo,2,Zn)};$n.prototype.setSavedSearch=function(a){return Ll(this,2,Zn,a)};var eo=function(a){this.internalArray_=m(a)};W(eo,X);g=eo.prototype;g.getBookmarkGroupId=function(){return dj(this,1)};g.setBookmarkGroupId=function(a){return um(this,1,a)};
g.getName=function(){return Hi(this,2)};g.setName=function(a){return wm(this,2,a)};g.getDescription=function(){return Hi(this,3)};g.setDescription=function(a){return wm(this,3,a)};g.getArchived=function(){return Ri(this,4)};g.setArchived=function(a){return ho(this,4,a)};g.addItems=function(a,b){return Wp(this,5,$n,a,b)};g.getOwnersList=function(){return Ji(this,ml,6)};g.setOwnersList=function(a){return om(this,6,a)};var Zn=[1,2,3];eo.repeatedFields_=[5,6];var uJ=function(a){this.internalArray_=m(a,0,uJ.messageId)};W(uJ,X);uJ.prototype.getIt=function(){return Fi(this,eo,10)};uJ.prototype.setIt=function(a){return oj(this,eo,10,a)};uJ.prototype.hasIt=function(){return Zi(this,eo,10)};uJ.messageId="b.BookmarkGroup";var vJ=function(a){this.internalArray_=m(a,0,vJ.messageId)};W(vJ,X);vJ.repeatedFields_=[2];vJ.messageId="b.BookmarkGroupListResponse";var wJ=function(a){this.executor=a};wJ.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:uJ}).then(vCa)};wJ.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:vJ}).then(wCa)};wJ.prototype.create=function(a){a=(new uJ).setIt((new eo).setName(a.name).setDescription(a.description));return this.executor.post({url:"action/bookmark_groups",body:a,responseConstructor:uJ}).then(vCa)};
wJ.prototype.update=function(a){var b=new uJ;var c=b.setIt,d,e,f=(new eo).setBookmarkGroupId(a.bookmarkGroupId).setName(a.name).setDescription(a.description).setArchived(a.archived),h=null!=(e=null==(d=a.item)?void 0:d.map(tCa))?e:[];d=om(f,5,h).setOwnersList(a.adminUsers.map(Jua));b=c.call(b,d);return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:uJ}).then(vCa)};wJ.\u0275fac=function(a){return new (a||wJ)(n(uD))};
wJ.\u0275prov=$c({token:wJ,factory:wJ.\u0275fac,providedIn:"root"});var xJ=function(a,b){this.router=a;this.location=b},Mhb=function(a){var b=a.location.url();ws(a.router,"/",{skipLocationChange:!0}).then(function(){return ws(a.router,b,{skipLocationChange:!0})})};xJ.\u0275fac=function(a){return new (a||xJ)(n(WD),n(wE))};xJ.\u0275prov=$c({token:xJ,factory:xJ.\u0275fac,providedIn:"root"});var ACa={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"};var yJ=function(a,b){this.dialogRef=a;this.data=b;this.confirmButtonTheme=b.isDestructive?"warn":"primary";var c;this.cancelButtonText=null!=(c=b.cancelButtonText)?c:"Cancel";var d;this.confirmButtonText=null!=(d=b.confirmButtonText)?d:"Confirm";var e;this.showCancelButton=null!=(e=b.showCancelButton)?e:!0};yJ.\u0275fac=function(a){return new (a||yJ)(z(Rz),z(Tz))};
yJ.\u0275cmp=od({type:yJ,selectors:[["b-confirmation-dialog"]],decls:7,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","","class","gmat-button medium",3,"click",4,"ngIf"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium",3,"color","click"],["mat-button","",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),G(2,"div",1),D(3,"div",2),P(4,DCa,2,1,"button",3),D(5,"button",4),L("click",
function(){return b.dialogRef.close(!0)}),Q(6),F()());a&2&&(w(1),jg(b.data.title),w(1),C("innerHTML",b.data.content,qe),w(2),C("ngIf",b.showCancelButton),w(1),C("color",b.confirmButtonTheme),w(1),S(" ",b.confirmButtonText," "))},dependencies:[Ev,Ez,Wz,Xz,Yz],encapsulation:2});var zJ=function(a){this.dialog=a},AJ=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
zJ.prototype.open=function(a){var b=a.onConfirm,c=a.onDismiss;Pz(this.dialog.open(yJ,{data:{title:a.title,content:a.content,isDestructive:a.isDestructive,cancelButtonText:a.cancelButtonText,confirmButtonText:a.confirmButtonText,showCancelButton:a.showCancelButton},maxWidth:"500px"})).subscribe(function(d){d?null==b||b():null==c||c()})};zJ.\u0275fac=function(a){return new (a||zJ)(n(Uz))};zJ.\u0275prov=$c({token:zJ,factory:zJ.\u0275fac,providedIn:"root"});var BJ=function(a,b,c,d,e,f,h,k,q,u){Y.call(this);var x=this;this.reloadService=a;this.activeSession=b;this.userApi=c;this.errorHandler=d;this.bLocation=e;this.paths=f;this.issuePagination=h;this.sidebarItemFactory=k;this.appEvents=q;this.analytics=u;this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];v_b(this);w_b(this);this.fetchUserHotlists();a=function(){v_b(x)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));
this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(a));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(a));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){w_b(x)}));a=function(){x.fetchUserHotlists()};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a))};W(BJ,Y);BJ.\u0275dir=Y.\u0275dir;
var v_b=function(a){a.userApi.getUserSidebar().then(function(b){a.sidebarData.hotlists=x_b(a,b.hotlists);a.sidebarData.bookmarkGroups=y_b(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=x_b(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=y_b(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})},w_b=function(a){a.userApi.getUserSavedSearches().then(function(b){b=z_b(a,b);a.sidebarData.userSearches=b;oaa(a.userSavedSearches);
Ea(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};BJ.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){A_b(a,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var x_b=function(a,b){return(b||[]).map(function(c){return B_b(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},y_b=function(a,b){return(b||[]).map(function(c){var d=a.sidebarItemFactory;return new C_b(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},z_b=function(a,b){return b.map(function(c){return{id:String(c.searchId),name:c.name,adminUsers:c.adminUsers,
description:c.description,starred:!1,resourceType:"SAVED_SEARCH"}}).map(function(c){return D_b(a.sidebarItemFactory,c)})},A_b=function(a,b){b=b.map(function(c){c={id:String(c.hotlistId),name:c.name,description:c.description,adminUsers:c.adminUsers,starred:c.adminUsers.every(function(d){return d.emailAddress!==a.activeSession.getUserEmail()}),resourceType:"HOTLIST"};return B_b(a.sidebarItemFactory,c)});oaa(a.userHotlists);Ea(a.userHotlists,b)};
BJ.prototype.onAnchorClick=function(a,b){var c,d=null==(c=b.target)?void 0:c.innerText;d=(void 0===d?"":d).replace(/\b(\d+)\b/g,"");this.analytics.trackEvent("nav","click",d.trim());b.metaKey||b.ctrlKey||b.shiftKey||0!==b.button||(LF(this.issuePagination),RWb(this.paths,a)&&Mhb(this.reloadService),this.bLocation.url(a),b.preventDefault(),b.stopPropagation())};BJ.\u0275fac=function(a){return new (a||BJ)(n(xJ),n(Us),n(nH),n(XF),n(wE),n(xE),n(JF),n(CJ),n(DF),n(zH))};
BJ.\u0275prov=$c({token:BJ,factory:BJ.\u0275fac,providedIn:"root"});var DJ=function(a,b,c,d,e,f,h,k){this.item=a;this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=h;this.userPreferencesManager=k;this.id=a.id;this.name=a.name;this.description=a.description;this.adminUsers=a.adminUsers;this.starred=a.starred;this.userEmail=b.getUserEmail()};
DJ.prototype.getDisplayName=function(){return this.item.name?this.item.name:"resourceType"in this.item?fi(this.item.resourceType.toLowerCase())+" "+this.item.id:this.item.id};DJ.prototype.isEditable=function(){return E_b(this)};DJ.prototype.isSelected=function(){var a=this.href;a="/"!==a.charAt(0)?"/"+a:a;return this.paths.bLocation.path()===a};DJ.prototype.isUnstarable=function(){return!E_b(this)&&this.starred};
var E_b=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},F_b=function(a,b){var c=jE(a.userPreferencesManager).homepagePreferences;return(null==c?void 0:c.resourceId)===a.id&&c.resourceType===b},G_b=function(a,b){WF(a.butterBar,"Updating homepage...",0);pWb(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(nf()).subscribe(function(){WF(a.butterBar,"Homepage updated")})},H_b=function(a,b,c,d,e,f,h,k,q,u,x,y){DJ.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=
f;this.errorHandler=u;this.confirmationDialogService=x;this.appEvents=y;this.href=k.viewHotlist(a.id);this.type="HOTLIST"};W(H_b,DJ);g=H_b.prototype;g.isPreferredHomepage=function(){return F_b(this,"HOTLIST")};g.setAsPreferredHomepage=function(){G_b(this,"HOTLIST")};
g.archive=function(){var a=this;WF(this.butterBar,'Archiving hotlist "'+this.name+'"...');this.hotlistApi.get(this.id).then(function(b){b.archived=!0;return a.hotlistApi.archiveHotlist(a.id,b)}).then(function(){a.appEvents.hotlistChanged.next({hotlistId:a.id});WF(a.butterBar,'Archived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;WF(this.butterBar,'Unarchiving hotlist "'+this.name+'"...');this.hotlistApi.get(this.id).then(function(b){b.archived=!1;return a.hotlistApi.archiveHotlist(a.id,b)}).then(function(){a.appEvents.hotlistChanged.next({hotlistId:a.id});WF(a.butterBar,'Unarchived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Uo("Unstarring a hotlist will remove it from your sidebar. You can restore the hotlist at any time from the hotlist's page."),onConfirm:function(){a.doUnstar()}})};
g.doUnstar=function(){var a=this;WF(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:this.id}).then(function(){WF(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var EJ=function(a,b,c,d,e,f,h,k){DJ.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};W(EJ,DJ);EJ.prototype.isUnstarable=function(){return!1};
EJ.prototype.unstar=function(){};EJ.prototype.isPreferredHomepage=function(){return F_b(this,"SAVED_SEARCH")};EJ.prototype.setAsPreferredHomepage=function(){G_b(this,"SAVED_SEARCH")};
var C_b=function(a,b,c,d,e,f,h,k,q,u,x,y){DJ.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=u;this.confirmationDialogService=x;this.appEvents=y;this.items=[];a=l(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(B_b(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(D_b(this.sidebarItemFactory,b))}this.items.sort(function(E,H){return E.name.localeCompare(H.name)})};W(C_b,DJ);g=C_b.prototype;
g.isPreferredHomepage=function(){return F_b(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){G_b(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;WF(this.butterBar,'Archiving bookmark group "'+this.name+'"...');this.bookmarkGroupsApi.get(this.id).then(function(b){b.archived=!0;return a.bookmarkGroupsApi.update(b)}).then(function(){a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.id});WF(a.butterBar,'Archived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;WF(this.butterBar,'Unarchiving bookmark group "'+this.name+'"...');this.bookmarkGroupsApi.get(this.id).then(function(b){b.archived=!1;return a.bookmarkGroupsApi.update(b)}).then(function(){a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.id});WF(a.butterBar,'Unarchived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Uo("Unstarring a bookmark group will remove it from your sidebar. You can restore it at any time from the bookmark group's page."),onConfirm:function(){a.doUnstar()}})};
g.doUnstar=function(){var a=this;WF(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){WF(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var CJ=function(a,b,c,d,e,f,h,k,q,u,x){this.activeSession=a;this.userApi=b;this.bookmarkGroupsApi=c;this.hotlistApi=d;this.errorHandler=e;this.paths=f;this.analytics=h;this.butterBar=k;this.userPreferencesManager=q;this.confirmationDialogService=u;this.appEvents=x},B_b=function(a,b){return new H_b(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},D_b=function(a,b){return new EJ(b,
a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};CJ.\u0275fac=function(a){return new (a||CJ)(n(Us),n(nH),n(wJ),n(mF),n(XF),n(xE),n(zH),n(VF),n(iE),n(zJ),n(DF))};CJ.\u0275prov=$c({token:CJ,factory:CJ.\u0275fac,providedIn:"root"});var FJ=function(a){this.prefs=a;this.expanded=!0;this.content=this.header=null};FJ.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!rWb(this.prefs,this.prefKey))};FJ.prototype.onClick=function(){var a=this,b,c;return Ne(function(d){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(0);c={};return d.yield((0,B.firstValueFrom)(qWb(a.prefs,(c[a.prefKey]=!b,c))),0)})};FJ.\u0275fac=function(a){return new (a||FJ)(z(iE))};
FJ.\u0275cmp=od({type:FJ,selectors:[["sidebar-zippy"]],inputs:{expanded:"expanded",header:"header",content:"content",prefKey:"prefKey"},decls:3,vars:7,consts:[["tabindex","0","role","tab",1,"bv2-nav-expandable-header",3,"click","keydown.enter","keydown.space"],[4,"ngTemplateOutlet"],[4,"ngIf"]],template:function(a,b){a&1&&(D(0,"div",0),L("click",function(){return b.onClick()})("keydown.enter",function(c){b.onClick();return c.stopPropagation()})("keydown.space",function(c){b.onClick();return c.preventDefault()}),
P(1,ECa,1,0,"ng-container",1),F(),P(2,GCa,2,1,"ng-container",2));a&2&&(Xf("opened",b.expanded)("closed",!b.expanded),Nf("aria-expanded",b.expanded),w(1),C("ngTemplateOutlet",b.header),w(1),C("ngIf",b.expanded))},dependencies:[Ev,Jv],encapsulation:2});var GJ=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[];this.hotlists=[]};g=GJ.prototype;g.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarArchived","open");this.location.url(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarArchived","dashboard");this.location.url(this.paths.dashboard(a))};g.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};
g.openEditBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};g.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};GJ.\u0275fac=function(a){return new (a||GJ)(z(wE),z(zH),z(xE),z(BJ))};
GJ.\u0275cmp=od({type:GJ,selectors:[["sidebar-archived"]],inputs:{bookmarkGroups:"bookmarkGroups",hotlists:"hotlists"},decls:1,vars:1,consts:[[4,"ngIf"],["prefKey","nav-archived",3,"header","content"],["zippyHeader",""],["zippyContent",""],[1,"archived-list"],[3,"title",4,"ngFor","ngForOf"],["class","bv2-nav-item bv2-user-hotlists-hotlist-item",3,"selected","id","title",4,"ngFor","ngForOf"],[3,"title"],[3,"header","content"],["bgZippyHeader",""],["bgZippyContent",""],[1,"bv2-nav-item","bv2-nav-bookmark-group"],
[1,"bv2-nav-item-text"],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions","class","bv2-nav-item-menubutton keep-focus-ring",3,"matMenuTriggerFor","click",4,"ngIf"],["groupMenu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor","click"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item",
"","class","bv2-user-hotlists-edit-menuitem",3,"click",4,"ngIf"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],["class","bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"href","click"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"href","click"],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions",
"class","bv2-nav-item-menubutton keep-focus-ring",3,"matMenuTriggerFor",4,"ngIf"],["hotlistMenu",""],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&P(0,WCa,7,2,"div",0);a&2&&C("ngIf",b.hotlists.length||b.bookmarkGroups.length)},dependencies:[Dv,Ev,qA,Ez,AB,yB,zB,xB,FJ],encapsulation:2,changeDetection:0});var HJ=function(){this.admins=[]};HJ.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=wi(this.bookmarkGroup.adminUsers)};HJ.\u0275fac=function(a){return new (a||HJ)};
HJ.\u0275cmp=od({type:HJ,selectors:[["b-bookmark-group-card"]],inputs:{bookmarkGroup:"bookmarkGroup"},decls:14,vars:6,consts:[["role","dialog","aria-label","Bookmark group hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bookmark-group-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),F()(),D(6,"ul")(7,"li"),Q(8),F(),D(9,"li"),Q(10),F()(),D(11,"div")(12,"p"),Q(13),F()()()()());a&2&&(w(4),C("href",b.url,
re),w(1),jg(b.bookmarkGroup.name),w(3),S("ID: ",b.bookmarkGroup.bookmarkGroupId,""),w(2),kg("",1===b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),w(3),jg(b.bookmarkGroup.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bookmark-group-card[_ngcontent-%COMP%]{max-width:450px}.bookmark-group-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.bookmark-group-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});var IJ=function(){this.admins=[]};IJ.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=wi(this.hotlist.adminUsers)};IJ.\u0275fac=function(a){return new (a||IJ)};
IJ.\u0275cmp=od({type:IJ,selectors:[["b-hotlist-card"]],inputs:{hotlist:"hotlist"},decls:14,vars:6,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hotlist-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),F()(),D(6,"ul")(7,"li"),Q(8),F(),D(9,"li"),Q(10),F()(),D(11,"div")(12,"p"),Q(13),F()()()()());a&2&&(w(4),C("href",b.url,re),w(1),jg(b.hotlist.name),w(3),S("ID: ",b.hotlist.hotlistId,""),w(2),kg("",1===
b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),w(3),jg(b.hotlist.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.hotlist-card[_ngcontent-%COMP%]{max-width:450px}.hotlist-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.hotlist-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});var JJ=function(a){this.buttonRef=a;this.toRefocus=!1};JJ.prototype.ngOnChanges=function(){var a=this;this.disabled?(document.activeElement!==this.buttonRef.nativeElement||this.toRefocus||(this.toRefocus=!0),this.buttonRef.nativeElement.disabled=!0):(this.buttonRef.nativeElement.disabled=!1,document.activeElement!==this.buttonRef.nativeElement&&this.toRefocus&&setTimeout(function(){a.buttonRef.nativeElement.focus();a.toRefocus=!1}))};JJ.\u0275fac=function(a){return new (a||JJ)(z(ae))};
JJ.\u0275dir=sd({type:JJ,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},features:[Fd]});var KJ=function(a,b){this.activeSession=a;this.cdr=b;this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new Yu;this.isAnonymous=this.activeSession.isAnonymous()};g=KJ.prototype;g.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.detectChanges())};g.onEnter=function(a){this.onClick(a)};g.isDisabled=function(){return this.isAnonymous||this.disabled};
g.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};g.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};KJ.\u0275fac=function(a){return new (a||KJ)(z(Us),z(yD))};
KJ.\u0275cmp=od({type:KJ,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},features:[lg([yD])],decls:4,vars:7,consts:[[1,"inline-block",3,"matTooltip"],["tooltip","matTooltip"],["mat-icon-button","","focusBack","","role","checkbox",1,"small",3,"disabled","keydown.enter","click","focus","blur"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){if(a&1){var c=
r();D(0,"div",0,1)(2,"button",2);L("keydown.enter",function(d){return b.onEnter(d)})("click",function(d){return b.onClick(d)})("focus",function(){t(c);var d=N(1);return v(d.show())})("blur",function(){t(c);var d=N(1);return v(d.hide())});G(3,"mat-icon",3);F()()}a&2&&(C("matTooltip",b.getLabel()),w(2),Xf("starred",b.starred),C("disabled",b.isDisabled()),Nf("aria-label",b.getAriaLabel())("aria-checked",b.starred),w(1),C("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[qA,Ez,FB,JJ],styles:["[_nghost-%COMP%]{opacity:.9;text-align:center}[_nghost-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   button.mat-icon-button[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}[_nghost-%COMP%]   button.mat-icon-button.starred[_ngcontent-%COMP%]{color:#e37400;color:var(--favorite-star)}[_nghost-%COMP%]   button.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px;margin-right:initial}"],
changeDetection:0});Rh(function(a){this._elementRef=a},"primary");var I_b=new Ad("mat-progress-spinner-default-options",{providedIn:"root",factory:XCa});var J_b=Rh(function(a){this._elementRef=a},"primary"),LJ=function(a,b,c,d,e,f,h,k,q){var u=J_b.call(this,a)||this;u._document=c;u._nonce=q;u._diameter=100;u._value=0;u._resizeSubscription=B.Subscription.EMPTY;u.mode="determinate";u._spinnerAnimationLabel=u._getSpinnerAnimationLabel();K_b.has(c.head)||K_b.set(c.head,new Set([100]));u._noopAnimations="NoopAnimations"===d&&!!e&&!e._forceAnimations;"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(u.mode="indeterminate");e&&(e.color&&(u.color=
u.defaultColor=e.color),e.diameter&&(u.diameter=e.diameter),e.strokeWidth&&(u.strokeWidth=e.strokeWidth));b.isBrowser&&b.SAFARI&&h&&f&&k&&(u._resizeSubscription=h.change(150).subscribe(function(){"indeterminate"===u.mode&&k.run(function(){return f.markForCheck()})}));return u};W(LJ,J_b);g=LJ.prototype;g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=ima(a)||this._document.head;this._attachStyleNode();a.classList.add("mat-progress-spinner-indeterminate-animation")};
g.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};g._getCircleRadius=function(){return(this.diameter-10)/2};g._getViewBox=function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 "+a+" "+a};g._getStrokeCircumference=function(){return 2*Math.PI*this._getCircleRadius()};g._getStrokeDashOffset=function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null};g._getCircleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
g._getCircleTransformOrigin=function(a){var b;a=50*(null!=(b=a.currentScale)?b:1);return a+"% "+a+"%"};g._attachStyleNode=function(){var a=this._styleRoot,b=this._diameter,c=K_b.get(a);if(!c||!c.has(b)){var d=this._document.createElement("style");this._nonce&&(d.nonce=this._nonce);d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel);d.textContent=this._getAnimationText();a.appendChild(d);c||(c=new Set,K_b.set(a,c));c.add(b)}};
g._getAnimationText=function(){var a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,
""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,this._spinnerAnimationLabel)};g._getSpinnerAnimationLabel=function(){return this.diameter.toString().replace(".","_")};
Qh.Object.defineProperties(LJ.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=dh(a);this._spinnerAnimationLabel=this._getSpinnerAnimationLabel();this._styleRoot&&this._attachStyleNode()}},strokeWidth:{configurable:!0,enumerable:!0,get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=dh(a)}},value:{configurable:!0,enumerable:!0,get:function(){return"determinate"===this.mode?this._value:0},
set:function(a){this._value=Math.max(0,Math.min(100,dh(a)))}}});var K_b=new WeakMap;LJ.\u0275fac=function(a){return new (a||LJ)(z(ae),z(Fw),z(Oh,8),z(iu,8),z(I_b),z(xv),z(Dy),z(Df),z(iHb,8))};
LJ.\u0275cmp=od({type:LJ,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:11,hostBindings:function(a,b){a&2&&(Nf("aria-valuemin","determinate"===b.mode?0:null)("aria-valuemax","determinate"===b.mode?100:null)("aria-valuenow","determinate"===b.mode?b.value:null)("mode",b.mode)("mat-id-collision",null),Wf("width",b.diameter,"px")("height",b.diameter,"px"),Xf("_mat-animation-noopable",b._noopAnimations))},
inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Jf],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,
"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,b){a&1&&(Qd(),D(0,"svg",0,1),P(2,YCa,1,11,"circle",2),P(3,ZCa,1,9,"circle",3),F());a&2&&(Wf("width",b.diameter,"px")("height",b.diameter,"px"),C("ngSwitch","indeterminate"===b.mode),Nf("viewBox",b._getViewBox()),w(2),C("ngSwitchCase",!0),w(1),C("ngSwitchCase",!1))},dependencies:[Fv,Gv],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],
encapsulation:2,changeDetection:0});var MJ=function(){};MJ.\u0275fac=function(a){return new (a||MJ)};
MJ.\u0275cmp=od({type:MJ,selectors:[["b-spinner"]],inputs:{large:"large",ariaLabel:"ariaLabel"},decls:2,vars:2,consts:[["class","large",3,"diameter",4,"ngIf"],["class","small",3,"diameter","strokeWidth",4,"ngIf"],[1,"large",3,"diameter"],[1,"small",3,"diameter","strokeWidth"]],template:function(a,b){a&1&&(P(0,$Ca,1,2,"mat-spinner",0),P(1,aDa,1,3,"mat-spinner",1));a&2&&(C("ngIf",b.large),w(1),C("ngIf",!b.large))},dependencies:[Ev,LJ],styles:[".muted[_nghost-%COMP%]     .mat-progress-spinner circle, .muted[_nghost-%COMP%]     .mat-spinner circle{stroke:rgba(0,0,0,.4)}[_nghost-%COMP%]     .mat-progress-spinner circle, [_nghost-%COMP%]     .mat-spinner circle{stroke:var(--text-primary)}.large[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;margin-left:-18px;margin-top:-18px}[_nghost-%COMP%]{animation-delay:150ms;animation-duration:200ms;animation-name:_ngcontent-%COMP%_fade-in;animation-timing-function:linear;animation-fill-mode:both;display:inline-block;vertical-align:middle}[_nghost-%COMP%]     mat-spinner.small{margin-top:-2px}@keyframes _ngcontent-%COMP%_fade-in{0%{opacity:0}100%{opacity:1}}/*# sourceMappingURL=spinner.css.map */"]});var bDa;var NJ=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Yu;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};NJ.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};NJ.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
NJ.prototype.getRoot=function(){var a;return null!=(a=cDa(this.elementRef.nativeElement))?a:document};NJ.\u0275fac=function(a){return new (a||NJ)(z(ae))};NJ.\u0275dir=sd({type:NJ,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var OJ=function(){};OJ.\u0275fac=function(a){return new (a||OJ)};OJ.\u0275mod=qd({type:OJ});OJ.\u0275inj=ad({});var L_b,M_b=Symbol("Kc"),N_b=Symbol("Lc"),PJ=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new Yu;this[L_b]=new B.ReplaySubject(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new B.BehaviorSubject(!1);this.closeHovercard$=new B.Subject};PJ.prototype.ngOnInit=function(){};var O_b=function(a){var b=a[N_b];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[M_b].pipe(lf(0))):(0,B.of)(void 0)};L_b=M_b;
PJ.\u0275fac=function(a){return new (a||PJ)(z(wg))};
PJ.\u0275cmp=od({type:PJ,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&zg(vg,7);if(a&2){var c;yg(c=Bg())&&(b.templateRef=c.first)}},inputs:{className:"className"},outputs:{onHide:"onHide"},exportAs:["onedevHovercard"],ngContentSelectors:["*"],decls:1,vars:0,consts:[["cdkTrapFocus","",3,"cdkTrapFocusAutoCapture","clickOutside","mouseenter","mouseleave"]],template:function(a){a&1&&(eg(),P(0,dDa,2,3,"ng-template"))},dependencies:[Lw,NJ],styles:[".onedev-hovercard{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 2px 6px 2px rgba(60,64,67,.15);border-radius:4px;overflow:hidden}"],
encapsulation:2});var QJ=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[N_b]=this};QJ.\u0275fac=function(a){return new (a||QJ)(z(vg),z(wg),z(xv),z(PJ))};QJ.\u0275dir=sd({type:QJ,selectors:[["","onedevHovercardLazyBody",""]]});var RJ=function(a){this.hovercard=a;this.destroyed$=new B.ReplaySubject(1)};RJ.prototype.ngOnDestroy=function(){this.destroyed$.next()};RJ.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(Af(this.destroyed$)).subscribe(this.hovercard[M_b])};
RJ.\u0275fac=function(a){return new (a||RJ)(z(PJ))};RJ.\u0275dir=sd({type:RJ,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:["onedevIsHovercardReady","isHovercardReady$"]}});var P_b={originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-10},Q_b={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},R_b=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},Q_b,{originX:"end",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:10,offsetY:10},{originX:"end",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:10,
offsetY:-10}];var SJ=function(){this.delay=600;this.position=R_b;this.triggerKey=[]},TJ=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new SJ;this.active=!1;this.hovercardShown$=new B.ReplaySubject(1);this.hide$=new B.Subject;this.hovercard$=new B.BehaviorSubject(null);this.isHovered$=new B.BehaviorSubject(!1);this.isKeyboardActivated$=new B.BehaviorSubject(!1);this.destroyed$=new B.ReplaySubject(1);this.onDocumentKeyDown=function(d){"Escape"===d.key&&(S_b(c),
d.stopPropagation(),d.preventDefault())};T_b(this);this.handleClose()},T_b=function(a){U_b(a).pipe(Af(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};TJ.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(zf(function(b){return(null==b?void 0:b.closeHovercard$)||B.NEVER}),Af(this.destroyed$)).subscribe(function(){S_b(a)})};TJ.prototype.dispose=function(){V_b(this);var a;null==(a=this.overlayRef)||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
TJ.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};TJ.prototype.toggle=function(a){this.isHovered$.next(a)};var S_b=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;null==(b=a.hovercard$.getValue())||b.isOnHover$.next(!1)};
TJ.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,O_b(this.hovercard$.getValue()).pipe(nf(),Af(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};TJ.prototype.hide=function(){V_b(this);this.hide$.next()};
var V_b=function(a){if(a.overlayRef&&a.overlayRef.hasAttached()){document.removeEventListener("keydown",a.onDocumentKeyDown);var b;null!=(b=a.hovercard$.getValue())&&b.onHide.emit();a.overlayRef.detach()}};TJ.prototype.getPositionStrategy=function(){return Ky(Ly(My(Oy(this.overlay.position(),this.origin)),8),this.config.position)};
var U_b=function(a){return(0,B.combineLatest)([W_b(a).pipe(yf(!1)),a.isKeyboardActivated$]).pipe(xf(1),A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}),zf(function(b){var c;return(null==(c=a.waitFor$)?void 0:c.pipe(sf(b)))||(0,B.of)(b)}))},W_b=function(a){return a.hovercard$.pipe(zf(function(b){return(0,B.combineLatest)([a.isHovered$,(null==b?void 0:b.isOnHover$)||(0,B.of)(!1)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),jf(a.config.delay),
Af(a.destroyed$))}))};var X_b=new Ad("onedevHovercardLoggingOn"),UJ=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new SJ;this.destroyed$=new B.ReplaySubject(1);this.triggerControl=new TJ(a,b);this.triggerControl.hovercardShown$.pipe(Cf(d||(0,B.of)(!1)),Af(this.destroyed$)).subscribe(function(h){h=l(h);h.next();h.next().value&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(rB)),IRb(f.clientStreamzService,"hovercardShown",!0))})};g=UJ.prototype;
g.ngOnChanges=function(a){if(a.hovercard){var b;a=null==(b=a.hovercard)?void 0:b.currentValue;this.triggerControl.hovercard$.next(a);if(a){b=this.triggerControl;var c=this.viewContainerRef;b.config=this.config;b.overlayRef=b.overlay.create({positionStrategy:b.getPositionStrategy(),scrollStrategy:b.overlay.scrollStrategies.reposition()});b.templatePortal=new Tw(a.templateRef,c);b.hovercard$.next(a)}}};g.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
g.isExpanded=function(){return this.triggerControl.isExpanded()};g.onKeyDown=function(a){if(this.config.triggerKey.includes(a.key)){var b=this.triggerControl;a.stopPropagation();a.preventDefault();b.isKeyboardActivated$.next(!0)}};g.toggle=function(a){this.triggerControl.toggle(a)};g.hide=function(){this.triggerControl.hide()};Qh.Object.defineProperties(UJ.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});
UJ.\u0275fac=function(a){return new (a||UJ)(z(Py),z(ae),z(wg),z(X_b,8),z(eu))};
UJ.\u0275dir=sd({type:UJ,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&L("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("keydown.alt.arrowRight",function(c){var d=b.triggerControl;c.stopPropagation();c.preventDefault();d.isKeyboardActivated$.next(!0)})("keydown",function(c){return b.onKeyDown(c)});a&2&&Nf("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:["onedevHovercardTrigger",
"hovercard"],enabled:["onedevHovercardActive","enabled"],config:["onedevHovercardConfig","config"]},features:[Fd]});Sh(function(){});var Y_b=new Ad("mat-autocomplete-default-options",{providedIn:"root",factory:eDa});var Z_b=new Ad("mat-autocomplete-scroll-strategy"),$_b={provide:Z_b,deps:[Py],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};var a0b=["panel"],b0b=0,c0b=function(a,b){this.source=a;this.option=b},d0b=Hoa(function(){}),VJ=function(a,b,c,d){var e=d0b.call(this)||this;e._changeDetectorRef=a;e._elementRef=b;e._defaults=c;e._activeOptionChanges=B.Subscription.EMPTY;e.showPanel=!1;e._isOpen=!1;e.displayWith=null;e.optionSelected=new Yu;e.opened=new Yu;e.closed=new Yu;e.optionActivated=new Yu;e._classList={};e.id="mat-autocomplete-"+b0b++;e.inertGroups=(null==d?void 0:d.SAFARI)||!1;e._autoActiveFirstOption=!!c.autoActiveFirstOption;
e._autoSelectActiveOption=!!c.autoSelectActiveOption;e._requireSelection=!!c.requireSelection;return e};W(VJ,d0b);g=VJ.prototype;g._setColor=function(a){this._color=a;this._setThemeClasses(this._classList)};g.ngAfterContentInit=function(){var a=this;this._keyManager=hy(iy(new ny(this.options)),this._skipPredicate);this._activeOptionChanges=this._keyManager.change.subscribe(function(b){a.isOpen&&a.optionActivated.emit({source:a,option:a.options.toArray()[b]||null})});this._setVisibility()};
g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this._activeOptionChanges.unsubscribe()};g._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};g._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};g._setVisibility=function(){this.showPanel=!!this.options.length;this._setVisibilityClasses(this._classList);this._changeDetectorRef.markForCheck()};g._emitSelectEvent=function(a){this.optionSelected.emit(new c0b(this,a))};
g._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};g._setVisibilityClasses=function(a){a[this._visibleClass]=this.showPanel;a[this._hiddenClass]=!this.showPanel};g._setThemeClasses=function(a){a["mat-primary"]="primary"===this._color;a["mat-warn"]="warn"===this._color;a["mat-accent"]="accent"===this._color};g._skipPredicate=function(a){return a.disabled};
Qh.Object.defineProperties(VJ.prototype,{isOpen:{configurable:!0,enumerable:!0,get:function(){return this._isOpen&&this.showPanel}},autoActiveFirstOption:{configurable:!0,enumerable:!0,get:function(){return this._autoActiveFirstOption},set:function(a){this._autoActiveFirstOption=ah(a)}},autoSelectActiveOption:{configurable:!0,enumerable:!0,get:function(){return this._autoSelectActiveOption},set:function(a){this._autoSelectActiveOption=ah(a)}},requireSelection:{configurable:!0,enumerable:!0,get:function(){return this._requireSelection},
set:function(a){this._requireSelection=ah(a)}},classList:{configurable:!0,enumerable:!0,set:function(a){a&&a.length?this._classList=nma(a).reduce(function(b,c){b[c]=!0;return b},{}):this._classList={};this._setVisibilityClasses(this._classList);this._setThemeClasses(this._classList);this._elementRef.nativeElement.className=""}}});VJ.\u0275fac=function(a){return new (a||VJ)(z(xv),z(ae),z(Y_b),z(Fw))};
VJ.\u0275dir=sd({type:VJ,viewQuery:function(a,b){a&1&&(zg(vg,7),zg(a0b,5));if(a&2){var c;yg(c=Bg())&&(b.template=c.first);yg(c=Bg())&&(b.panel=c.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",
opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Jf]});var WJ=function(a,b,c,d,e,f,h,k,q,u,x){var y=this;this._element=a;this._overlay=b;this._viewContainerRef=c;this._zone=d;this._changeDetectorRef=e;this._dir=h;this._formField=k;this._document=q;this._viewportRuler=u;this._defaults=x;this._manuallyFloatingLabel=this._autocompleteDisabled=this._componentDestroyed=!1;this._viewportSubscription=B.Subscription.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new B.Subject;this._windowBlurHandler=function(){y._canOpenOnNextFocus=y._document.activeElement!==
y._element.nativeElement||y.panelOpen};this._onChange=function(){};this._onTouched=function(){};this.position="auto";this.autocompleteAttribute="off";this._overlayAttached=!1;this.optionSelections=(0,B.defer)(function(){var E=y.autocomplete?y.autocomplete.options:null;return E?E.changes.pipe(yf(E),zf(function(){return B.merge.apply(null,p(E.map(function(H){return H.onSelectionChange})))})):y._zone.onStable.pipe(nf(),zf(function(){return y.optionSelections}))});this._handlePanelKeydown=function(E){if(27===
E.keyCode&&!eh(E)||38===E.keyCode&&eh(E,"altKey")){if(y._pendingAutoselectedOption){var H;y._updateNativeInputValue(null!=(H=y._valueBeforeAutoSelection)?H:"");y._pendingAutoselectedOption=null}y._closeKeyEventStream.next();y._resetActiveItem();E.stopPropagation();E.preventDefault()}};this._trackedModal=null;this._scrollStrategy=f};
WJ.prototype.ngAfterViewInit=function(){var a=this,b=this._getWindow();"undefined"!==typeof b&&this._zone.runOutsideAngular(function(){return b.addEventListener("blur",a._windowBlurHandler)})};WJ.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};
WJ.prototype.ngOnDestroy=function(){var a=this._getWindow();"undefined"!==typeof a&&a.removeEventListener("blur",this._windowBlurHandler);this._viewportSubscription.unsubscribe();this._componentDestroyed=!0;this._destroyPanel();this._closeKeyEventStream.complete();this._clearFromModal()};
var Z$a=function(a){a._resetLabel();a._overlayAttached&&(a.panelOpen&&a._zone.run(function(){a.autocomplete.closed.emit()}),a.autocomplete._isOpen=a._overlayAttached=!1,a._pendingAutoselectedOption=null,a._overlayRef&&a._overlayRef.hasAttached()&&(a._overlayRef.detach(),a._closingActionsSubscription.unsubscribe()),a._updatePanelState(),a._componentDestroyed||a._changeDetectorRef.detectChanges())};g=WJ.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return(0,B.merge)((0,B.fromEvent)(this._document,"click"),(0,B.fromEvent)(this._document,"auxclick"),(0,B.fromEvent)(this._document,"touchend")).pipe(cf(function(b){b=$g(b);var c=a._formField?a._formField._elementRef.nativeElement:null,d=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;return a._overlayAttached&&b!==a._element.nativeElement&&a._document.activeElement!==a._element.nativeElement&&(!c||!c.contains(b))&&(!d||!d.contains(b))&&!!a._overlayRef&&
!a._overlayRef.overlayElement.contains(b)}))};g.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this._element.nativeElement.disabled=a};
g._handleKeydown=function(a){var b=a.keyCode,c=eh(a);27!==b||c||a.preventDefault();if(this.activeOption&&13===b&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){var d=this.autocomplete._keyManager.activeItem,e=38===b||40===b;if(9===b||e&&!c&&this.panelOpen)this.autocomplete._keyManager.onKeydown(a);else e&&this._canOpen()&&(this._attachOverlay(),this._floatLabel());if(e||this.autocomplete._keyManager.activeItem!==d)this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||
0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value))}};
g._handleInput=function(a){var b=a.target,c=b.value;"number"===b.type&&(c=""==c?null:parseFloat(c));this._previousValue!==c&&(this._previousValue=c,this._pendingAutoselectedOption=null,this._onChange(c),c||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===a.target&&(this._attachOverlay(),this._floatLabel()))};
g._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};g._handleClick=function(){this._canOpen()&&!this.panelOpen&&(this._attachOverlay(),this._floatLabel())};
g._floatLabel=function(a){this._formField&&"auto"===this._formField.floatLabel&&((void 0===a?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};g._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)};
g._subscribeToClosingActions=function(){var a=this,b=this._zone.onStable.pipe(nf()),c=this.autocomplete.options.changes.pipe(Bf(function(){return DMb(a._positionStrategy)}),lf(0));return(0,B.merge)(b,c).pipe(zf(function(){a._zone.run(function(){var d=a.panelOpen;a._resetActiveItem();a._updatePanelState();a._changeDetectorRef.detectChanges();a.panelOpen&&a._overlayRef.updatePosition();d!==a.panelOpen&&(a.panelOpen?a._emitOpened():a.autocomplete.closed.emit())});return a.panelClosingActions}),nf()).subscribe(function(d){return a._setValueAndClose(d)})};
g._emitOpened=function(){this._valueOnOpen=this._element.nativeElement.value;this.autocomplete.opened.emit()};g._destroyPanel=function(){this._overlayRef&&(Z$a(this),this._overlayRef.dispose(),this._overlayRef=null)};g._assignOptionValue=function(a){a=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(a):a;this._updateNativeInputValue(null!=a?a:"")};
g._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
g._setValueAndClose=function(a){var b=this,c=this.autocomplete;(a=a?a.source:this._pendingAutoselectedOption)?(this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),c._emitSelectEvent(a),this._element.nativeElement.focus()):c.requireSelection&&this._element.nativeElement.value!==this._valueOnOpen&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),c._animationDone?c._animationDone.pipe(nf()).subscribe(function(){return b._onChange(null)}):
this._onChange(null));Z$a(this)};g._clearPreviousSelectedOption=function(a,b){var c,d;null==(c=this.autocomplete)||null==(d=c.options)||d.forEach(function(e){e!==a&&e.selected&&e.deselect(b)})};
g._attachOverlay=function(){var a=this,b=this._overlayRef;if(b)this._positionStrategy.setOrigin(this._getConnectedElement()),b.updateSize({width:this._getPanelWidth()});else{var c;this._portal=new Tw(this.autocomplete.template,this._viewContainerRef,{id:null==(c=this._formField)?void 0:c.getLabelId()});this._overlayRef=b=this._overlay.create(this._getOverlayConfig());this._viewportSubscription=this._viewportRuler.change().subscribe(function(){a.panelOpen&&b&&b.updateSize({width:a._getPanelWidth()})})}b&&
!b.hasAttached()&&(b.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());c=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0;var d;this.autocomplete._setColor(null==(d=this._formField)?void 0:d.color);this._updatePanelState();this._applyModalPanelOwnership();this.panelOpen&&c!==this.panelOpen&&this._emitOpened()};
g._updatePanelState=function(){this.autocomplete._setVisibility();if(this.panelOpen){var a=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=a.keydownEvents().subscribe(this._handlePanelKeydown));this._outsideClickSubscription||(this._outsideClickSubscription=a.outsidePointerEvents().subscribe())}else{null==(a=this._keydownSubscription)||a.unsubscribe();var b;null==(b=this._outsideClickSubscription)||b.unsubscribe();this._keydownSubscription=this._outsideClickSubscription=null}};
g._getOverlayConfig=function(){var a,b;return new Hy({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:null!=(b=this._dir)?b:void 0,panelClass:null==(a=this._defaults)?void 0:a.overlayPanelClass})};g._getOverlayPosition=function(){var a=GMb(My(Oy(this._overlay.position(),this._getConnectedElement()),!1),!1);this._setStrategyPositions(a);return this._positionStrategy=a};
g._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass;c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];b="above"===this.position?c:"below"===this.position?b:[].concat(p(b),p(c));Ky(a,b)};
g._getConnectedElement=function(){if(this.connectedTo)var a=this.connectedTo.elementRef;else this._formField?(a=this._formField,a=a._connectionContainerRef||a._elementRef):a=this._element;return a};g._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};g._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};
g._resetActiveItem=function(){var a=this.autocomplete;if(a.autoActiveFirstOption){for(var b=-1,c=0;c<a.options.length;c++)if(!a.options.get(c).disabled){b=c;break}a._keyManager.setActiveItem(b)}else a._keyManager.setActiveItem(-1)};g._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this._autocompleteDisabled};g._getWindow=function(){var a;return(null==(a=this._document)?void 0:a.defaultView)||window};
g._scrollToOption=function(a){var b=this.autocomplete,c=Ioa(a,b.options,b.optionGroups);0===a&&1===c?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(Joa(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
g._applyModalPanelOwnership=function(){var a=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.autocomplete.id;this._trackedModal&&Nh(this._trackedModal,"aria-owns",b);boa(a,"aria-owns",b);this._trackedModal=a}};g._clearFromModal=function(){this._trackedModal&&(Nh(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)};
Qh.Object.defineProperties(WJ.prototype,{autocompleteDisabled:{configurable:!0,enumerable:!0,get:function(){return this._autocompleteDisabled},set:function(a){this._autocompleteDisabled=ah(a)}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},panelClosingActions:{configurable:!0,enumerable:!0,get:function(){var a=this;return(0,B.merge)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(cf(function(){return a._overlayAttached})),
this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(cf(function(){return a._overlayAttached})):(0,B.of)()).pipe(A(function(b){return b instanceof WNb?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});WJ.\u0275fac=function(a){return new (a||WJ)(z(ae),z(Py),z(wg),z(Df),z(xv),z(Z_b),z(py,8),z(eA,9),z(Oh,8),z(Dy),z(Y_b,8))};
WJ.\u0275dir=sd({type:WJ,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Fd]});var e0b={provide:Uv,useExisting:fd(function(){return XJ}),multi:!0},XJ=function(){WJ.apply(this,arguments);this._aboveClass="mat-autocomplete-panel-above"};W(XJ,WJ);XJ.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(XJ)))(b||XJ)}}();
XJ.\u0275dir=sd({type:XJ,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&L("focusin",function(){return b._handleFocus()})("blur",function(){return b._onTouched()})("input",function(c){return b._handleInput(c)})("keydown",function(c){return b._handleKeydown(c)})("click",function(){return b._handleClick()});a&2&&Nf("autocomplete",b.autocompleteAttribute)("role",b.autocompleteDisabled?null:
"combobox")("aria-autocomplete",b.autocompleteDisabled?null:"list")("aria-activedescendant",b.panelOpen&&b.activeOption?b.activeOption.id:null)("aria-expanded",b.autocompleteDisabled?null:b.panelOpen.toString())("aria-owns",b.autocompleteDisabled||!b.panelOpen?null:null==b.autocomplete?null:b.autocomplete.id)("aria-haspopup",b.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[lg([e0b]),Jf]});var YJ=function(){var a=VJ.apply(this,arguments)||this;a._visibleClass="mat-autocomplete-visible";a._hiddenClass="mat-autocomplete-hidden";a._animationDone=null;return a};W(YJ,VJ);YJ.\u0275dir=VJ.\u0275dir;YJ.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(YJ)))(b||YJ)}}();
YJ.\u0275cmp=od({type:YJ,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(Ag(c,TMb,5),Ag(c,Hz,5));if(a&2){var d;yg(d=Bg())&&(b.optionGroups=d);yg(d=Bg())&&(b.options=d)}},hostAttrs:["ngSkipHydration","",1,"mat-autocomplete"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[lg([{provide:SMb,useExisting:YJ}]),Jf],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,
"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(a){a&1&&(eg(),P(0,fDa,3,4,"ng-template"))},dependencies:[Cv],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],
encapsulation:2,changeDetection:0});var ZJ=function(){};ZJ.\u0275fac=function(a){return new (a||ZJ)};ZJ.\u0275mod=qd({type:ZJ});ZJ.\u0275inj=ad({providers:[$_b],imports:[Sy,Iz,Ty,Sv,Ey,Iz,Ty]});var f0b=["searchBox"],$J=function(a,b,c,d,e,f,h,k,q){this.cdr=a;this.userApi=c;this.bookmarkGroupsApi=d;this.hotlistApi=e;this.paths=f;this.analytics=h;this.errorHandler=k;this.appEvents=q;this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new Yu;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.query="";this.matches=[];this.currentUserEmail=b.getUserEmail()};
$J.prototype.ngOnInit=function(){this.allowStarring&&g0b(this)};
var g0b=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();a.userApi.getUserSidebar().then(function(b){if(a.showGroups){var c,d=l(null!=(c=b.bookmarkGroups)?c:[]);for(c=d.next();!c.done;c=d.next()){c=c.value;c.starred&&a.favoriteBookmarkGroups.add(c.id);var e=void 0;c=l(null!=(e=c.sublinks)?e:[]);for(e=c.next();!e.done;e=c.next())e=e.value,e.starred&&a.favoriteHotlists.add(e.id)}}if(a.showHotlists){var f;b=l(null!=(f=b.hotlists)?f:[]);for(e=b.next();!e.done;e=b.next())f=e.value,
f.starred&&a.favoriteHotlists.add(f.id)}a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g=$J.prototype;g.reset=function(){this.query="";this.matches=[]};g.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};g.onQueryChange=function(){this.matches=[];this.query&&"string"!==typeof this.query&&(this.query="");this.search()};
g.search=function(){var a=this,b=this.nextRequestIndex++;if(this.query){var c=this.showGroups?this.bookmarkGroupsApi.query(this.query):Promise.resolve([]);var d=this.showHotlists?this.hotlistApi.queryHotlists(this.query):Promise.resolve([]);Promise.all([c,d]).then(function(e){var f=l(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var h=l(e),k=h.next();!k.done;k=h.next()){k=k.value;var q=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(q);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(q)}h=
l(f);for(k=h.next();!k.done;k=h.next())k=k.value,q=k.hotlistId,k.href=a.paths.viewHotlist(q),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(q);a.matches=[].concat(p(e),p(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};g.shouldShowStar=function(a){return this.allowStarring&&!wi(a.adminUsers).includes(this.currentUserEmail)};
g.toggleStar=function(a){var b=this;if(a.isGroup){var c=a.bookmarkGroupId;var d="BOOKMARK_GROUP"}else c=a.hotlistId,d="HOTLIST";a.isStarred=!a.isStarred;var e=function(){b.appEvents.hotlistChanged.next();b.appEvents.favoritesModified.next();g0b(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(this.analytics.trackEvent("hotlistSearch","starItem"),this.userApi.saveFavorite(c).then(e)):(this.analytics.trackEvent("hotlistSearch","unstarItem"),this.userApi.deleteFavorite(c).then(e))};
$J.\u0275fac=function(a){return new (a||$J)(z(yD,2),z(Us),z(nH),z(wJ),z(mF),z(xE),z(zH),z(XF),z(DF))};
$J.\u0275cmp=od({type:$J,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(zg(f0b,5),zg(XJ,5));if(a&2){var c;yg(c=Bg())&&(b.searchBoxEl=c.first);yg(c=Bg())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},features:[lg([yD])],decls:13,vars:6,consts:[[1,"bv2-hotlist-search"],["id","hotlist-search-input-box","type","text",
"placeholder","Enter query","role","combobox",3,"ngModel","matAutocomplete","ngModelChange","keydown.space"],["searchBox",""],[4,"ngIf"],[1,"bv2-hotlist-search-dropdown",3,"optionSelected"],["auto","matAutocomplete"],["class","bv2-hotlist-search-dropdown-item",3,"value",4,"ngFor","ngForOf"],[1,"bv2-hotlist-search-subtext"],[1,"bv2-hotlist-search-dropdown-item",3,"value"],[1,"flex-kids-x","align-items-center","gap-xxs"],[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],["itemHovercard",
"onedevHovercard"],[3,"hotlist",4,"ngIf"],[3,"bookmarkGroup",4,"ngIf"],[1,"bv2-hotlist-name",3,"onedevHovercardTrigger"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"hotlist"],[3,"bookmarkGroup"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"input",1,2),L("ngModelChange",function(d){return b.query=d})("ngModelChange",function(){return b.onQueryChange()})("keydown.space",function(d){var e;if(null==(e=b.autocomplete)?0:e.activeOption)b.toggleStar(b.autocomplete.activeOption.value),
d.preventDefault(),d.stopPropagation()}),F(),P(3,gDa,1,0,"b-spinner",3),D(4,"mat-autocomplete",4,5),L("optionSelected",function(d){b.itemSelect.emit(d.option.value)}),P(6,kDa,9,8,"mat-option",6),F(),D(7,"div",7),Q(8,' e.g., "foo bar admin:user@google.com" '),G(9,"br"),Q(10,' or "foo bar admin:group@google.com" '),G(11,"br"),Q(12," Only identities directly listed as Admins can be searched. "),F()());if(a&2){var c=N(5);w(1);C("ngModel",b.query)("matAutocomplete",c);Nf("autofocus",b.focusOnInit)("aria-label",
"Add query for searching "+(b.showGroups?"bookmark groups":"hotlists"));w(2);C("ngIf",b.isLoading());w(3);C("ngForOf",b.matches)}},dependencies:[Dv,Ev,HJ,IJ,PJ,UJ,MJ,KJ,Tg,hw,ow,YJ,XJ,Hz],encapsulation:2});var h0b=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],aK=function(){};aK.\u0275fac=function(a){return new (a||aK)};aK.\u0275dir=sd({type:aK,selectors:[["xap-dialog-layout-subtitle"]]});var bK=function(a,b,c){this.el=a;this.cdRef=b;this.ngZone=c;this.destroyed=new B.ReplaySubject;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
bK.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){i0b(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});j0b(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};bK.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var i0b=function(a){if(!window.ResizeObserver)return(0,B.of)(k0b(a.el.nativeElement));var b;return(0,B.fromEventPattern)(function(c){b=new ResizeObserver(function(){c(k0b(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(mf(),Af(a.destroyed))},j0b=function(a){return(0,B.fromEvent)(a.el.nativeElement,"scroll").pipe(lDa(),A(function(){return a.getScrollPosition(a.el.nativeElement)}),mf(),Af(a.destroyed))},k0b=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
bK.prototype.getScrollPosition=function(a){return 0===a.scrollTop?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};Qh.Object.defineProperties(bK.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});bK.\u0275fac=function(a){return new (a||bK)(z(ae),z(xv),z(Df))};
bK.\u0275dir=sd({type:bK,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&Xf("xap-dialog-layout-content-scrollable",b.scrollable)("xap-dialog-layout-bottom-scroll-stroke","bottom"!==b.scrollPosition)("xap-dialog-layout-top-scroll-stroke","top"!==b.scrollPosition)}});var cK=function(){};cK.\u0275fac=function(a){return new (a||cK)};
cK.\u0275cmp=od({type:cK,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&Ag(c,aK,4);if(a&2){var d;yg(d=Bg())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&Xf("xap-dialog-layout-bordered-header",b.subtitle)},ngContentSelectors:["xap-dialog-layout-title","xap-dialog-layout-subtitle","xap-dialog-layout-content","xap-dialog-layout-actions"],decls:5,vars:0,consts:[[1,"xap-dialog-header-container"]],template:function(a){a&1&&(eg(h0b),
D(0,"header",0),fg(1),fg(2,1),F(),fg(3,2),fg(4,3))},styles:[".xap-dialog-layout{display:block;padding:24px 24px 8px;overflow-x:hidden}xap-dialog-layout-title{display:block;padding:0}xap-dialog-layout-subtitle{display:block;padding:0 0 16px}xap-dialog-layout-content{display:block;padding:0 0 16px}xap-dialog-layout-actions .mat-button-base,xap-dialog-layout-actions .mat-mdc-button-base{margin:8px 16px 0 -8px;padding:0 8px}"],encapsulation:2});var l0b=sh({opacity:0}),m0b=sh({opacity:1}),n0b=qh("dialogContainer",[th("void, hidden",l0b),th("visible",m0b),uh("void => *, * => visible",rh("200ms cubic-bezier(0.0,0.0,0.2,1)",m0b)),uh("* => void, * => hidden",rh("200ms cubic-bezier(0.4,0.0,0.2,1)",l0b))]);var o0b=new Ad("XAP_IDCO"),dK=function(a){this._isDisposed=!1;this.options=a;this.animationState="hidden"};W(dK,Uw);dK.prototype.ngAfterViewInit=function(){};dK.prototype.attachComponentPortal=function(a){return this.portalOutlet.attachComponentPortal(a)};dK.prototype.attachTemplatePortal=function(a){return this.portalOutlet.attachTemplatePortal(a)};dK.\u0275fac=function(a){return new (a||dK)(z(o0b))};
dK.\u0275cmp=od({type:dK,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&zg(Xw,7);if(a&2){var c;yg(c=Bg())&&(b.portalOutlet=c.first)}},hostAttrs:["role","dialog",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:3,hostBindings:function(a,b){a&2&&(Nf("aria-label",b.options.dialogLabel)("tabindex",b.options.dialogTabIndex),dg("@dialogContainer",b.animationState))},features:[Jf],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&
1&&(D(0,"div"),P(1,mDa,1,0,"ng-template",0),F())},dependencies:[Xw],styles:[".xap-inline-dialog-container{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);border-radius:8px;overflow:auto}"],encapsulation:2,data:{animation:[n0b]},changeDetection:0});var p0b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:8},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-8},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-8},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:8}],q0b={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},eK=function(a,b,c,d,e,f,h,k){var q=this;this.ngZone=a;this.overlay=b;this.elementRef=c;this.viewContainerRef=d;this.document=e;this.focusTrapFactory=
f;this.ariaDescriber=h;this.injector=k;this.disabledInternal=!1;this.dialogLabel=null;this.dialogTabIndex=-1;this.overlayDimensions=q0b;this.triggerDescription="Press space for more information.";this.forceTrapFocus=this.disableAutoFocusInternal=!1;this.scrollStrategy="close";this.stackLocation=0;this.beforeOpened=new Yu;this.opened=new Yu;this.closed=new Yu;this.destroyed=new B.ReplaySubject;this.openStatusChange=new B.BehaviorSubject(!1);this.openings=this.openStatusChange.pipe(cf(function(u){return u&&
!q.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;r0b(this,c.nativeElement);this.attachKeyboardCloseEventListeners(c.nativeElement);s0b(this,c.nativeElement)};eK.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||this.ariaDescriber.describe(a,this.triggerDescription)};
eK.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var r0b=function(a,b){a.ngZone.runOutsideAngular(function(){(0,B.fromEvent)(b,"keydown").pipe(Af(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 13:a.openDialog();c.preventDefault();break;case 32:c.preventDefault()}});(0,B.fromEvent)(b,"keyup").pipe(Af(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 32:a.openDialog()}})})},s0b=function(a,b){a.ngZone.runOutsideAngular(function(){(0,B.fromEvent)(b,"focus").pipe(cf(function(){return 0<a.beforeOpened.observers.length}),Af(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
g=eK.prototype;
g.openDialog=function(){var a=this;if(!this.disabled){var b;if(null==(b=this.overlayRef)||!b.hasAttached()){var c=this.portal;null!=c&&(this.stackManager&&(this.stackLocation=this.stackManager.register()),this.ngZone.run(function(){a.dialogContainerRef=t0b(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);a.dialogContainerRef.instance.animationState="visible";a.opened.observers.length&&
setTimeout(function(){a.opened.emit()},200)}))}}};
g.closeDialog=function(){var a=this,b;null==(b=this.overlayRef)||!b.hasAttached()||this.stackManager&&!this.stackManager.tryUnregister(this.stackLocation)||(this.dialogContainerRef.instance.animationState="hidden",setTimeout(function(){a.ngZone.run(function(){a.overlayRef&&a.overlayRef.detach();a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0);a.restoreFocus();a.dialogContainerRef&&(a.dialogContainerRef.destroy(),a.dialogContainerRef=void 0);a.closed.emit()})},200))};
g.trapFocus=function(a){var b=this.document.activeElement,c=this.elementRef.nativeElement;if(this.forceTrapFocus||b&&b===c)this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),Iw(this.focusTrap),this.disableAutoFocus||this.focusInitialElement()};g.focusInitialElement=function(){this.focusTrap&&aKb(this.focusTrap)};
g.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&"function"===typeof a.focus){var b,c=null==(b=this.dialogContainerRef)?void 0:b.location.nativeElement;(b=this.document.activeElement)&&null!=c&&c.contains(b)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};g.createPositionStrategy=function(a){var b,c;return Ky(Oy(this.overlay.position(),null!=(b=this.attachedTo)?b:this.elementRef),a).setOrigin(null!=(c=this.attachedTo)?c:this.elementRef)};
var u0b=function(a){var b=a.overlay.scrollStrategies;switch(a.scrollStrategy){case "noop":return b.noop();case "block":return b.block();case "reposition":return b.reposition();default:return b.close()}},t0b=function(a){var b=Gf({parent:a.injector,providers:[{provide:o0b,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new Sw(dK,null,b);null==a.overlayRef&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(p0b)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);if(a.overlayPositions&&
0<a.overlayPositions.length){var c=a.overlayRef,d=a.createPositionStrategy(a.overlayPositions);d!==c._positionStrategy&&(c._positionStrategy&&c._positionStrategy.dispose(),c._positionStrategy=d,c.hasAttached()&&(d.attach(c),c.updatePosition()))}return a.overlayRef.attach(b)};
Qh.Object.defineProperties(eK.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof vg?new Tw(a,this.viewContainerRef):new Sw(a,this.viewContainerRef))}},disabled:{configurable:!0,enumerable:!0,set:function(a){(this.disabledInternal=a)&&this.closeDialog()},get:function(){return this.disabledInternal}},disableAutoFocus:{configurable:!0,enumerable:!0,set:function(a){this.disableAutoFocusInternal=ah(a)},get:function(){return this.disableAutoFocusInternal}},panelClass:{configurable:!0,
enumerable:!0,set:function(a){if(this.panelClassInternal!==a){if(this.panelClassInternal){var b;null==(b=this.overlayRef)||b.removePanelClass(this.panelClassInternal)}if(a){var c;null==(c=this.overlayRef)||c.addPanelClass(a)}this.panelClassInternal=a}}}});eK.\u0275fac=function(a){return new (a||eK)(z(Df),z(Py),z(ae),z(wg),z(Document),z(fy),z(by),z(eu))};
eK.\u0275dir=sd({type:eK,hostVars:1,hostBindings:function(a,b){a&2&&Nf("data-disabled",b.disabled)},inputs:{attachedTo:"attachedTo",dialogLabel:"dialogLabel",dialogTabIndex:"dialogTabIndex",overlaySize:"overlaySize",overlayPositions:"overlayPositions",overlayDimensions:"overlayDimensions",triggerDescription:"triggerDescription",disableAutoFocus:"disableAutoFocus",forceTrapFocus:"forceTrapFocus",panelClass:"panelClass",scrollStrategy:"scrollStrategy",stackManager:"stackManager"},outputs:{beforeOpened:"beforeOpened",
opened:"opened",closed:"closed"}});var fK=function(a,b,c,d,e,f,h,k){eK.call(this,a,b,c,d,e,f,h,k);this.attachMouseEventListeners(c.nativeElement)};W(fK,eK);g=fK.prototype;g.ngOnInit=function(){eK.prototype.ngOnInit.call(this);this.listenForOpenEvents()};g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(Af(this.destroyed)).subscribe(function(b){b?a.openDialog():a.closeDialog()});this.openings.pipe(cf(function(b){return b&&0<a.beforeOpened.observers.length}),Oia(function(){return a.openStatusChange.pipe(cf(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,B.fromEvent)(a,"mouseenter").pipe(Af(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(0,B.fromEvent)(a,"click").pipe(Af(b.destroyed)).subscribe(function(d){d.target.closest("[xapInlineDialogClose]")?b.closingDialog():b.openingDialog()});var c;null==(c=b.overlayRef)||c.backdropClick().pipe(Af(b.destroyed)).subscribe(function(){b.closingDialog()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,B.fromEvent)(a,"keyup").pipe(Af(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 27:b.closingDialog();break;case 32:d.closest("[xapInlineDialogClose]")&&b.closingDialog()}});(0,B.fromEvent)(a,"keydown").pipe(Af(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 13:d.closest("[xapInlineDialogClose]")&&b.closingDialog()}})})};
g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};g.closingDialog=function(){this.openStatusChange.next(!1)};g.createOverlayConfig=function(a){return new Hy(Object.assign({},this.overlayDimensions,{positionStrategy:eK.prototype.createPositionStrategy.call(this,a),scrollStrategy:u0b(this),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};
fK.\u0275fac=function(a){return new (a||fK)(z(Df),z(Py),z(ae),z(wg),z(Oh),z(fy),z(by),z(eu))};fK.\u0275dir=sd({type:fK,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:["xapInlineDialogClick","dialog"],disabled:["xapInlineDialogDisabled","disabled"]},exportAs:["xapInlineDialogClick"],features:[Jf]});var v0b=["*"],w0b=function(){return".xap-icon-trigger,.xap-text-trigger{pointer-events:auto}.xap-text-trigger{-webkit-text-decoration:underline dashed #80868b;-moz-text-decoration:underline dashed #80868b;text-decoration:underline dashed #80868b;text-underline-position:under;text-underline-offset:1px;text-underline-thickness:1px}"},gK=function(){this.disabled=!1};gK.\u0275fac=function(a){return new (a||gK)};
gK.\u0275cmp=od({type:gK,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:3,hostBindings:function(a,b){a&2&&(Nf("tabindex",b.disabled?-1:0),Xf("xap-text-trigger",!b.disabled))},inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:v0b,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},styles:[w0b()],encapsulation:2});var hK=function(){this.disabled=!1};hK.\u0275fac=function(a){return new (a||hK)};
hK.\u0275cmp=od({type:hK,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:v0b,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},styles:[w0b()],encapsulation:2});var iK=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new Yu};iK.\u0275fac=function(a){return new (a||iK)};
iK.\u0275cmp=od({type:iK,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&zg(fK,5);if(a&2){var c;yg(c=Bg())&&(b.dialog=c.first)}},inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",ariaLabel:["aria-label","ariaLabel"]},outputs:{itemSelect:"itemSelect"},decls:4,vars:2,consts:[["matTooltip","Search",3,"xapInlineDialogClick"],["svgIcon","search"],["popup",""],[3,"showGroups","showHotlists","allowStarring","focusOnInit","itemSelect"]],template:function(a,
b){a&1&&(D(0,"xap-icon-trigger",0),G(1,"mat-icon",1),F(),P(2,nDa,3,4,"ng-template",null,2,Eg));if(a&2){var c=N(3);C("xapInlineDialogClick",c);Nf("aria-label",b.ariaLabel)}},dependencies:[qA,cK,bK,FB,fK,hK,$J],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});var jK=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[]};jK.prototype.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","open");this.location.url(this.paths.viewBookmarkGroup(a))};jK.prototype.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","dashboard");this.location.url(this.paths.dashboard(a))};jK.prototype.editBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};
jK.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};jK.\u0275fac=function(a){return new (a||jK)(z(wE),z(zH),z(xE),z(BJ))};
jK.\u0275cmp=od({type:jK,selectors:[["sidebar-bookmark-groups"]],inputs:{bookmarkGroups:"bookmarkGroups"},decls:7,vars:2,consts:[[1,"bv2-nav-section"],["prefKey","nav-bkg",3,"header","content"],["zippyHeader",""],["zippyContent",""],["aria-label","Search for bookmark groups",3,"showHotlists","itemSelect","click"],["class","bookmark-group-list",4,"ngIf"],[1,"bookmark-group-list"],[3,"title",4,"ngFor","ngForOf"],[3,"title"],[3,"header","content","expanded"],["bgZippyHeader",""],["bgZippyContent",""],
[1,"bv2-nav-item","bv2-nav-bookmark-group"],[1,"bv2-nav-item-text"],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions","class","bv2-nav-item-menubutton keep-focus-ring",3,"matMenuTriggerFor","click",4,"ngIf"],["topMenu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor","click"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",
3,"click"],["mat-menu-item","","class","bv2-user-hotlists-edit-menuitem",3,"click",4,"ngIf"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],["class","bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"href","click"],["mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions","class","bv2-nav-item-menubutton",3,"matMenuTriggerFor",
4,"ngIf"],["innerMenu",""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"]],template:function(a){a&1&&(D(0,"div",0),G(1,"hr"),D(2,"sidebar-zippy",1),P(3,oDa,3,1,"ng-template",null,2,Eg),P(5,DDa,1,1,"ng-template",null,3,Eg),F()());if(a&2){var b=N(4),c=N(6);w(2);C("header",b)("content",c)}},dependencies:[Dv,Ev,qA,iK,Ez,AB,yB,zB,xB,FJ],encapsulation:2,changeDetection:0});var kK=function(a,b,c,d,e,f,h){Y.call(this);this.location=a;this.analytics=c;this.sidebar=d;this.paths=e;this.userEmail=b.getUserEmail();this.subscriptions.add(h.routeChangeSuccess.subscribe(function(){f.detectChanges()}))};W(kK,Y);kK.\u0275dir=Y.\u0275dir;kK.prototype.getUserEmail=function(){return this.userEmail};kK.prototype.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};kK.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};
kK.\u0275fac=function(a){return new (a||kK)(z(wE),z(Us),z(zH),z(BJ),z(xE),z(xv),z(gE))};
kK.\u0275cmp=od({type:kK,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},features:[Jf],decls:7,vars:2,consts:[[1,"bv2-nav-section"],["prefKey","nav-hotlists",3,"header","content"],["zippyHeader",""],["zippyContent",""],["aria-label","Search for hotlists",3,"showGroups","itemSelect","click"],["class","hotlist-list",4,"ngIf"],[1,"hotlist-list"],["class","bv2-nav-item bv2-user-hotlists-hotlist-item",3,"selected","id","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",
3,"id","title"],[3,"href","click"],[1,"bv2-nav-item-text"],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring","class","bv2-nav-item-menubutton",3,"matMenuTriggerFor",4,"ngIf"],["menu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item",
"","class","bv2-user-hotlists-edit-menuitem",3,"click",4,"ngIf"]],template:function(a){a&1&&(D(0,"div",0),G(1,"hr"),D(2,"sidebar-zippy",1),P(3,EDa,3,1,"ng-template",null,2,Eg),P(5,LDa,1,1,"ng-template",null,3,Eg),F()());if(a&2){var b=N(4),c=N(6);w(2);C("header",b)("content",c)}},dependencies:[Dv,Ev,qA,iK,Ez,AB,yB,zB,xB,FJ],encapsulation:2,changeDetection:0});var lK=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);var y=this;this.cdr=a;this.location=b;this.savedSearchApi=c;this.paths=d;this.butterBar=e;this.analytics=f;this.sidebar=h;this.errorHandler=k;this.confirmationDialogService=q;this.appEvents=u;this.searches=[];this.subscriptions.add(x.routeChangeSuccess.subscribe(function(){y.cdr.detectChanges()}))};W(lK,Y);lK.\u0275dir=Y.\u0275dir;lK.prototype.openEditSavedSearch=function(a){this.location.url(this.paths.editSavedSearch(a))};
var ODa=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Uo("Are you sure you want to delete this search?"),onConfirm:function(){x0b(a,b)}})},x0b=function(a,b){var c=b.id;WF(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});WF(a.butterBar,'Deleted saved search "'+b.name+'".');a.analytics.trackEvent("sidebarSavedSearches","deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,
d)})};lK.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};lK.\u0275fac=function(a){return new (a||lK)(z(yD,2),z(wE),z(jI),z(xE),z(VF),z(zH),z(BJ),z(XF),z(zJ),z(DF),z(gE))};
lK.\u0275cmp=od({type:lK,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},features:[lg([yD]),Jf],decls:7,vars:2,consts:[[1,"bv2-nav-section","bv2-nav-section-savedsearches"],["prefKey","nav-ss",3,"header","content"],["zippyHeader",""],["zippyContent",""],["class","saved-search-list",4,"ngIf"],[1,"saved-search-list"],["class","bv2-nav-item",3,"selected","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-item-link",3,"href","click"],[1,"bv2-nav-item-text"],["mat-icon-button",
"","disableRipple","true","aria-label","Saved search actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["menu",""],["matMenuContent",""],["mat-menu-item","",1,"bv2-user-saved-searches-edit-menuitem",3,"click"],["mat-menu-item","","class","bv2-user-saved-searches-edit-menuitem",3,"click",4,"ngIf"]],template:function(a){a&1&&(D(0,"div",0),G(1,"hr"),D(2,"sidebar-zippy",1),P(3,MDa,2,0,"ng-template",null,2,Eg),P(5,SDa,1,1,"ng-template",null,3,Eg),F()());if(a&
2){var b=N(4),c=N(6);w(2);C("header",b)("content",c)}},dependencies:[Dv,Ev,qA,Ez,AB,yB,zB,xB,FJ],encapsulation:2,changeDetection:0});var y0b=/^\s*hotlistid:(\d+)\s*$/i,z0b=/(?:\s|^)componentid:(\d+)\s*/i,A0b=/^\s*savedsearchid:(\d+)\s*$/i,mK=function(a,b,c,d){Y.call(this);var e=this;this.$log=a;this.currentTracker=b;this.contextSensitiveRegistry=c;this.analytics=d;this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new B.BehaviorSubject({query:"",cursorPosition:void 0,setViaInteraction:!1});this.currentTrackerIdList$=this.currentTracker.trackerId$.pipe(A(function(f){return f?[f]:[]}));this.selectedTrackerIds$=new B.Subject;
this.trackerScope$=(0,B.merge)(this.currentTrackerIdList$,this.selectedTrackerIds$);this.searchHandlerStack=[];this.searchTriggered$=new B.Subject;this.subscriptions.add(this.queryState$.pipe(Af(this.destroyed$)).subscribe(function(f){e.currentQuery=f.query;(f=e.currentQuery.match(z0b))?e.contextSensitiveRegistry.componentIdOverride$.next(Number(f[1])):e.contextSensitiveRegistry.componentIdOverride$.next(null);(f=e.currentQuery.match(y0b))?e.contextSensitiveRegistry.hotlistIdOverride$.next(Number(f[1])):
e.contextSensitiveRegistry.hotlistIdOverride$.next(null)}));this.subscriptions.add(this.trackerScope$.pipe(Af(this.destroyed$)).subscribe(function(f){e.currentTrackerScope=f}))};W(mK,Y);mK.\u0275dir=Y.\u0275dir;mK.prototype.clear=function(){nK(this,"")};var nK=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},oK=function(a){return"assignee:"+a+" status:open"},B0b=function(a,b){return a.currentQuery===oK("me")||a.currentQuery===oK(void 0===b?"":b)};
mK.prototype.getStarred=function(){return"star:true"};mK.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};mK.prototype.getVoted=function(){return"vote:true"};var pEa=function(a){return a.currentQuery===a.getVoted()},C0b=function(a){return"verifier:"+a+" status:open | status:fixed"},D0b=function(a){return(a=a.currentQuery.match(y0b))?Number(a[1]):0},E0b=function(a){return(a=a.currentQuery.match(A0b))?Number(a[1]):0};
mK.prototype.track=function(a,b,c){this.analytics.trackEvent("global-search",a,b,c)};var F0b=function(a,b){a.searchHandlerStack.push(b);return function(){za(a.searchHandlerStack,b)}};mK.\u0275fac=function(a){return new (a||mK)(n(dE),n(jG),n(BI),n(zH))};mK.\u0275prov=$c({token:mK,factory:mK.\u0275fac,providedIn:"root"});var G0b=LWb("edited-ids"),H0b=KWb("edited-ids"),I0b=LWb("viewed-ids"),J0b=KWb("viewed-ids"),pK=function(a){var b=this;this.appEvents=a;this.stop$=new B.Subject;this.edited=new Map;this.viewed=new Map;this.addViewed=function(c){XDa(b.viewed,c);I0b(Array.from(b.viewed.keys()).join(","))};this.addEdited=function(c){XDa(b.edited,c);G0b(Array.from(b.edited.keys()).join(","))}};pK.\u0275fac=function(a){return new (a||pK)(n(DF))};pK.\u0275prov=$c({token:pK,factory:pK.\u0275fac,providedIn:"root"});var K0b=Os("mc-prefs"),L0b=Ps("mc-prefs"),M0b=(new QI).transform,qK=function(a){var b=this;this.kansasPrefs=a;this.prefs$=new B.BehaviorSubject(N0b(this,Ss(this)));this.kansasPrefs.preferences$.subscribe(function(c){var d;c=null!=(d=null==c?void 0:c.missionControlPreferences)?d:{};d=N0b(b,c);b.prefs$.next(d)})},N0b=function(a,b){var c,d=null!=(c=L0b())?c:{},e,f;a=null!=(f=null==(e=a.prefs$)?void 0:e.value)?f:{};var h;return Object.assign({},d,a,{workAreas:null!=(h=b.workAreaUrls)?h:[]})};
qK.prototype.save=function(a){this.prefs$.next(a);K0b(a)};qK.prototype.toggleCollapsed=function(a){var b;this.prefs.collapsed=null!=(b=this.prefs.collapsed)?b:{};this.prefs.collapsed[a]=!this.prefs.collapsed[a];this.save(this.prefs)};qK.prototype.isCollapsed=function(a){var b;return!(null==(b=this.prefs.collapsed)||!b[a])};
var O0b=function(a,b){"string"===typeof b&&(b=[b]);if(null!=b&&0!==b.length){var c,d=null!=(c=Ss(a).workAreaUrls)?c:[];d=sra(b,d);GAb(a,{workAreaUrls:d})}},FAb=function(a,b,c){var d,e=(null!=(d=Ss(a).workAreaUrls)?d:[]).slice();M0b(b,e,c)||(d=e.indexOf(b),e[d]=e[d+c],e[d+c]=b,GAb(a,{workAreaUrls:e}))},Ss=function(a){var b;return null!=(b=jE(a.kansasPrefs).missionControlPreferences)?b:{}},GAb=function(a,b){var c=Ss(a);a.kansasPrefs.save({missionControlPreferences:Object.assign({},c,b)}).subscribe()};
Qh.Object.defineProperties(qK.prototype,{prefs:{configurable:!0,enumerable:!0,get:function(){return this.prefs$.value}}});qK.\u0275fac=function(a){return new (a||qK)(n(iE))};qK.\u0275prov=$c({token:qK,factory:qK.\u0275fac,providedIn:"root"});var P0b=["menuTrigger"],rK={label:"Last 7 days",numberOfDays:7},Q0b={label:"Last 30 days",numberOfDays:30},R0b=[{label:"Last 1 day",numberOfDays:1},rK,Q0b],sK=function(){this.timeBoundaries=R0b;this.selectedTimeBoundary=rK;this.change=new Yu};sK.prototype.openMenu=function(){this.menuTrigger.openMenu()};sK.\u0275fac=function(a){return new (a||sK)};
sK.\u0275cmp=od({type:sK,selectors:[["time-boundary-filter"]],viewQuery:function(a,b){a&1&&zg(P0b,5);if(a&2){var c;yg(c=Bg())&&(b.menuTrigger=c.first)}},inputs:{timeBoundaries:"timeBoundaries",selectedTimeBoundary:"selectedTimeBoundary"},outputs:{change:"change"},decls:8,vars:4,consts:[["aria-label","Time boundary selection",3,"selectable"],["appearance","hairline-filter","aria-label","Select time boundary","selected","","color","primary","role","button",1,"time-boundary-chip",3,"matMenuTriggerFor",
"keyup.enter","keyup.space"],["menuTrigger","matMenuTrigger"],["matChipTrailingIcon","","svgIcon","arrow-dropdown"],["xPosition","before"],["timeBoundaryMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"]],template:function(a,b){a&1&&(D(0,"mat-chip-listbox",0)(1,"mat-chip-option",1,2),L("keyup.enter",function(){return b.openMenu()})("keyup.space",function(){return b.openMenu()}),Q(3),G(4,"mat-icon",3),F()(),D(5,"mat-menu",4,5),P(7,
ZDa,2,2,"button",6),F());if(a&2){var c=N(6);C("selectable",!1);w(1);C("matMenuTriggerFor",c);w(2);S(" ",b.selectedTimeBoundary.label," ");w(4);C("ngForOf",b.timeBoundaries)}},dependencies:[Dv,qA,mJ,sJ,rJ,oJ,AB,yB,zB],encapsulation:2});var S0b=new Map([["NEAR_SLO",{color:"orange",text:"Near SLO",icon:"timelapse_24px",className:"near-slo"}],["MENTIONED",{color:"pink",text:"Mentioned me",icon:"alternate_email_24px",className:"mentioned-me"}],["UNBLOCKED",{color:"cyan",text:"Blockers closed",icon:"slo-status-no-data",className:"unblocked"}],["NEEDS_REPORTER_INPUT",{color:"purple",text:"Need reporter input",icon:"rate_review_24px",className:"needs-reporter-input"}],["NEWLY_BLOCKING",{color:"red",text:"Newly blocking",icon:"alert_24px",
className:"newly-blocking"}],["ASSIGNED",{color:"blue",text:"Newly assigned",icon:"assignment_ind_24px",className:"newly-assigned"}],["REPLIED_TO_MENTION",{color:"green",text:"Replied to mention",icon:"chat_24px",className:"replied-to-mention"}]]),MAb=new Map([["NEAR_SLO",{header:"Near SLO",body:"Issues that will go out of SLO in 2 days or less"}],["MENTIONED",{header:"Mentioned me",body:"Someone mentioned you in a comment in the past 2 weeks"}],["UNBLOCKED",{header:"Blockers closed",body:"All blockers are closed"}],
["NEEDS_REPORTER_INPUT",{header:"Needs reporter input",body:"Issue is assigned back to reporter (you) for more context"}],["REPLIED_TO_MENTION",{header:"Replied to mention",body:"Someone you mentioned replied to your comment"}],["NEWLY_BLOCKING",{header:"Newly blocking",body:"Issues that are blocking other issues"}],["ASSIGNED",{header:"Newly assigned",body:"Issues newly assigned to you"}]]);var T0b=0,U0b=Th(function(){}),tK=function(a,b,c,d,e){var f=U0b.call(this)||this;f._ngZone=a;f._elementRef=b;f._ariaDescriber=c;f._renderer=d;f._animationMode=e;f._color="primary";f._overlap=!0;f.position="above after";f.size="medium";f._id=T0b++;f._isInitialized=!1;f._interactivityChecker=jd(Gw);f._document=jd(Oh);return f};W(tK,U0b);g=tK.prototype;
g.ngOnInit=function(){this._clearExistingBadges();this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content));this._isInitialized=!0};g.ngOnDestroy=function(){if(this._renderer.destroyNode){this._renderer.destroyNode(this._badgeElement);var a;null==(a=this._inlineBadgeDescription)||a.remove()}cy(this._ariaDescriber,this._elementRef.nativeElement,this.description)};
g._isHostInteractive=function(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})};
g._createBadgeElement=function(){var a=this._renderer.createElement("span");a.setAttribute("id","mat-badge-content-"+this._id);a.setAttribute("aria-hidden","true");a.classList.add("mat-badge-content");"NoopAnimations"===this._animationMode&&a.classList.add("_mat-animation-noopable");this._elementRef.nativeElement.appendChild(a);"function"===typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a.classList.add("mat-badge-active")})}):
a.classList.add("mat-badge-active");return a};g._updateRenderedContent=function(a){a=(""+(null!=a?a:"")).trim();this._isInitialized&&a&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement());this._badgeElement&&(this._badgeElement.textContent=a);this._content=a};
g._updateDescription=function(a){cy(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&!this._isHostInteractive()||this._removeInlineDescription();this._description=a;this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,a):this._updateInlineDescription()};
g._updateInlineDescription=function(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden"));this._inlineBadgeDescription.textContent=this.description;var a;null==(a=this._badgeElement)||a.appendChild(this._inlineBadgeDescription)};g._removeInlineDescription=function(){var a;null==(a=this._inlineBadgeDescription)||a.remove();this._inlineBadgeDescription=void 0};
g._setColor=function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-badge-"+this._color);a&&b.add("mat-badge-"+a)};g._clearExistingBadges=function(){for(var a=l(Array.from(this._elementRef.nativeElement.querySelectorAll(":scope > .mat-badge-content"))),b=a.next();!b.done;b=a.next())b=b.value,b!==this._badgeElement&&b.remove()};
Qh.Object.defineProperties(tK.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},set:function(a){this._setColor(a);this._color=a}},overlap:{configurable:!0,enumerable:!0,get:function(){return this._overlap},set:function(a){this._overlap=ah(a)}},content:{configurable:!0,enumerable:!0,get:function(){return this._content},set:function(a){this._updateRenderedContent(a)}},description:{configurable:!0,enumerable:!0,get:function(){return this._description},set:function(a){this._updateDescription(a)}},
hidden:{configurable:!0,enumerable:!0,get:function(){return this._hidden},set:function(a){this._hidden=ah(a)}}});tK.\u0275fac=function(a){return new (a||tK)(z(Df),z(ae),z(by),z(ku),z(iu,8))};
tK.\u0275dir=sd({type:tK,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(a,b){a&2&&Xf("mat-badge-overlap",b.overlap)("mat-badge-above",-1===b.position.indexOf("below"))("mat-badge-below",-1!==b.position.indexOf("below"))("mat-badge-before",-1!==b.position.indexOf("before"))("mat-badge-after",-1===b.position.indexOf("before"))("mat-badge-small","small"===b.size)("mat-badge-medium","medium"===b.size)("mat-badge-large","large"===b.size)("mat-badge-hidden",b.hidden||
!b.content)("mat-badge-disabled",b.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[Jf]});var uK=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H){var J=this;this.cdr=a;this.activeSession=b;this.butterBar=c;this.appSearchState=d;this.paths=e;this.userPreferencesManager=f;this.sidebar=h;this.location=k;this.issueLru=q;this.appEvents=u;this.needsAttentionApi=x;this.currentTracker=y;this.taskFridge=E;this.missionControlPrefs=H;this.needsAttentionIssueCount$=new B.Subject;this.missionControlTaskCount$=new B.Subject;this.enableHomepageVariantA=$C(this.activeSession,"enableHomepageVariantA");this.enabledVotedNav=
$C(this.activeSession,"enableUpvotedInNav")&&this.activeSession.isInternalSession();this.votedPath=this.paths.listIssues({q:this.appSearchState.getVoted()});this.recentlyViewedPath=V0b(this)?"recent":void 0;this.showNeedsAttentionUI=$C(this.activeSession,"showNeedsAttentionUI")&&this.activeSession.isInternalSession()&&!this.currentTracker.inTracker;this.homepagePreferences$=this.userPreferencesManager.preferences$.pipe(A(function(U){return(U||YC).homepagePreferences}));this.hasPreferredHomepage$=
this.homepagePreferences$.pipe(A(function(U){return!(!U||!U.resourceType)}),mf());this.isHomepageNeedsAttention$=this.homepagePreferences$.pipe(A(function(U){return"NEEDS_ATTENTION"===U.resourceType}),mf());this.isHomepageMissionControl$=this.homepagePreferences$.pipe(A(function(U){return"MISSION_CONTROL"===U.resourceType}),mf());this.isHomepageAssignedToMe$=this.homepagePreferences$.pipe(A(function(U){return!J.enableHomepageVariantA&&!U.resourceType||"ASSIGNED_TO_ME"===U.resourceType}),mf());this.destroyed$=
new Yu;this.appName=b.getAppName();this.userEmail=b.getUserEmail();this.environmentType=b.getEnvironmentType();this.missionControlPath=e.home();this.needsAttentionPath=e.needsAttention();this.assignedPath=e.listIssues({q:oK(this.userEmail)});this.starredPath=e.listIssues({q:d.getStarred()});this.ccdPath=e.listIssues({q:"cc:"+this.userEmail});this.verifiedPath=e.listIssues({q:C0b(this.userEmail)});this.reportedPath=e.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=e.listComponents();
this.createHotlistPath=e.createHotlist();this.createBookmarkGroupPath=e.createBookmarkGroup();this.sidebarData=this.sidebar.sidebarData;this.needsAttentionIssueCount$=this.appEvents.needsAttentionIssueCount;this.missionControlTaskCount$=this.appEvents.missionControlTaskCount;var O,R=!!this.location.path().match(/^\/home\b/)&&!(null==(O=this.missionControlPrefs.prefs.collapsed)?0:O["needs-attention-wrapper"]);$C(b,"runQueryForSidebarIssueCount")&&setTimeout(function(){if(J.enableHomepageVariantA&&
!R){var U,Z;(0,B.combineLatest)([J.taskFridge.watchMany({}).pipe(A(qCa)),(0,B.defer)(function(){return J.needsAttentionApi.listIssues(void 0,void 0,$Da())}).pipe(A(rCa)),new B.BehaviorSubject(null!=(U=J.missionControlPrefs.prefs.naSources)?U:Yn),new B.BehaviorSubject(null!=(Z=J.missionControlPrefs.prefs.naTimeBoundary)?Z:Q0b)]).pipe(Af(J.destroyed$),A(function(na){var oa=l(na);na=oa.next().value;var wa=oa.next().value,Da=oa.next().value;oa=oa.next().value;return pCa(na,wa,Da,oa)}),A(function(na){return na.length})).subscribe(function(na){J.appEvents.missionControlTaskCount.next(na)})}else J.userPreferencesManager.needsAttentionPreferences$.pipe(Af(J.destroyed$)).subscribe(function(na){var oa=
jYb(J.currentTracker),wa;J.needsAttentionApi.listIssues(null,oa,null!=(wa=na.selectedSignals)?wa:[])})},1E3)};uK.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(Af(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};uK.prototype.ngOnDestroy=function(){this.destroyed$.next()};var fEa=function(a,b){WF(a.butterBar,"Updating homepage...",0);pWb(a.userPreferencesManager,{resourceType:b}).subscribe(function(){WF(a.butterBar,"Homepage updated")})};
uK.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};var V0b=function(a){var b=$C(a.activeSession,"enableRecentlyViewedInNav");a=0<Array.from(a.issueLru.viewed.keys()).length;return b&&a};uK.\u0275fac=function(a){return new (a||uK)(z(yD,2),z(Us),z(VF),z(mK),z(xE),z(iE),z(BJ),z($v),z(pK),z(DF),z(HF),z(jG),z(pI),z(qK))};
uK.\u0275cmp=od({type:uK,selectors:[["b-sidebar"]],features:[lg([yD])],decls:48,vars:30,consts:[[1,"bv2-nav-header"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],[4,"ngIf"],["class","bv2-nav-item","id","needs-attention-sidebar-link",3,"selected",4,"ngIf"],["id","assigned-to-me-sidebar-link",1,"bv2-nav-item"],[3,"href","click"],["svgIcon","issue-status-accepted",1,"canned-search-icon"],["menu",""],["matMenuContent",""],["svgIcon","star-filled",
1,"canned-search-icon"],["svgIcon","person-add-18px",1,"canned-search-icon"],["svgIcon","user-attributes",1,"canned-search-icon"],[3,"selected",4,"ngIf"],["svgIcon","issue-status-fixed",1,"canned-search-icon"],[3,"bookmarkGroups"],[3,"searches"],[3,"hotlists"],[3,"hotlists","bookmarkGroups"],[1,"bv2-nav-manage-link"],[3,"href"],["id","mission-control-sidebar-link",1,"bv2-nav-item"],["class","canned-search-icon","svgIcon","home","matBadgeColor","warn","matBadgeSize","small",3,"matBadge","matBadgeHidden",
"matBadgeDescription",4,"ngIf","ngIfElse"],["noBadge",""],["mat-icon-button","","disableRipple","true","aria-label","More settings","class","bv2-nav-item-menubutton",3,"matMenuTriggerFor",4,"ngIf"],["homepageMenu",""],["svgIcon","home","matBadgeColor","warn","matBadgeSize","small",1,"canned-search-icon",3,"matBadge","matBadgeHidden","matBadgeDescription"],["svgIcon","home",1,"canned-search-icon"],["mat-icon-button","","disableRipple","true","aria-label","More settings",1,"bv2-nav-item-menubutton",
3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["id","needs-attention-sidebar-link",1,"bv2-nav-item"],["class","canned-search-icon","svgIcon","crisis_alert_24px","matBadgeColor","warn","matBadgeSize","small",3,"matBadge","matBadgeHidden","matBadgeDescription",4,"ngIf","ngIfElse"],["needsAttentionMenu",""],["svgIcon","crisis_alert_24px","matBadgeColor","warn","matBadgeSize","small",1,"canned-search-icon",3,"matBadge","matBadgeHidden",
"matBadgeDescription"],["svgIcon","crisis_alert_24px",1,"canned-search-icon"],["mat-icon-button","","disableRipple","true","aria-label","Needs attention actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["mat-icon-button","","disableRipple","true","aria-label","Assigned issues actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","exposure_plus_1_24px",1,"canned-search-icon"],["svgIcon","time-24px",1,"canned-search-icon"]],template:function(a,b){a&1&&(D(0,"div",0),G(1,"b-create-issue-button"),
F(),D(2,"div",1)(3,"div",2)(4,"ul",3),P(5,hEa,13,10,"ng-container",4),P(6,mEa,12,10,"li",5),D(7,"li",6)(8,"a",7),L("click",function(c){return b.onAnchorClick(b.assignedPath,c)}),G(9,"mat-icon",8),Q(10," Assigned to me "),F(),P(11,nEa,3,1,"ng-container",4),T(12,"async"),D(13,"mat-menu",null,9),P(15,oEa,2,0,"ng-template",10),F()(),D(16,"li")(17,"a",7),L("click",function(c){return b.onAnchorClick(b.starredPath,c)}),G(18,"mat-icon",11),Q(19," Starred by me "),F()(),D(20,"li")(21,"a",7),L("click",function(c){return b.onAnchorClick(b.ccdPath,
c)}),G(22,"mat-icon",12),Q(23," CC'd to me "),F()(),D(24,"li")(25,"a",7),L("click",function(c){return b.onAnchorClick(b.reportedPath,c)}),G(26,"mat-icon",13),Q(27," Reported by me "),F()(),P(28,qEa,4,3,"li",14),D(29,"li")(30,"a",7),L("click",function(c){return b.onAnchorClick(b.verifiedPath,c)}),G(31,"mat-icon",15),Q(32," To be verified "),F()(),P(33,rEa,4,3,"li",14),F(),G(34,"sidebar-bookmark-groups",16)(35,"sidebar-saved-searches",17)(36,"sidebar-hotlists",18)(37,"sidebar-archived",19)(38,"hr"),
D(39,"div",20)(40,"a",21),Q(41," Create hotlist "),F()(),D(42,"div",20)(43,"a",21),Q(44," Create bookmark group "),F()(),D(45,"div",20)(46,"a",21),Q(47," Browse components "),F()()()());a&2&&(w(5),C("ngIf",b.enableHomepageVariantA&&!b.currentTracker.inTracker),w(1),C("ngIf",b.showNeedsAttentionUI&&!b.enableHomepageVariantA),w(1),Xf("selected",B0b(b.appSearchState,b.userEmail)),w(1),C("href",b.assignedPath,re),w(3),C("ngIf",!V(12,28,b.isHomepageAssignedToMe$)),w(5),Xf("selected",b.appSearchState.isStarred()),
w(1),C("href",b.starredPath,re),w(3),Xf("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),w(1),C("href",b.ccdPath,re),w(3),Xf("selected",b.appSearchState.currentQuery==="reporter:"+b.userEmail),w(1),C("href",b.reportedPath,re),w(3),C("ngIf",b.enabledVotedNav),w(1),Xf("selected",b.appSearchState.currentQuery===C0b(b.userEmail)),w(1),C("href",b.verifiedPath,re),w(3),C("ngIf",b.recentlyViewedPath),w(1),C("bookmarkGroups",b.sidebarData.bookmarkGroups),w(1),C("searches",b.sidebarData.userSearches),
w(1),C("hotlists",b.sidebarData.hotlists),w(1),C("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),w(3),C("href",b.createHotlistPath,re),w(3),C("href",b.createBookmarkGroupPath,re),w(3),C("href",b.componentsPath,re))},dependencies:[lJ,Ev,qA,Ez,AB,yB,zB,xB,tK,GJ,jK,kK,lK,Kv],encapsulation:2});var vK=function(){};vK.\u0275fac=function(a){return new (a||vK)};vK.\u0275mod=qd({type:vK});vK.\u0275inj=ad({imports:[aD]});var wK=function(){};wK.\u0275fac=function(a){return new (a||wK)};wK.\u0275mod=qd({type:wK});wK.\u0275inj=ad({imports:[aD]});var xK=function(){};xK.\u0275fac=function(a){return new (a||xK)};xK.\u0275mod=qd({type:xK});xK.\u0275inj=ad({});var yK=function(){};yK.\u0275fac=function(a){return new (a||yK)};yK.\u0275mod=qd({type:yK});yK.\u0275inj=ad({imports:[aD,hD,SB,FC,xK]});Rh(function(a){this._elementRef=a},"primary");new Ad("mat-progress-spinner-default-options",{providedIn:"root",factory:sEa});var zK=function(){};zK.\u0275fac=function(a){return new (a||zK)};zK.\u0275mod=qd({type:zK});zK.\u0275inj=ad({imports:[Ty,Sv,Ty]});var AK=function(){};AK.\u0275fac=function(a){return new (a||AK)};AK.\u0275mod=qd({type:AK});AK.\u0275inj=ad({imports:[aD,zK]});var BK=function(){this.onAction=new Yu;this.disabled=!1};BK.prototype.handleClick=function(){this.onAction.emit()};BK.\u0275fac=function(a){return new (a||BK)};
BK.\u0275cmp=od({type:BK,selectors:[["onedev-hovercard-action"]],inputs:{disabled:"disabled"},outputs:{onAction:"onAction"},ngContentSelectors:["*"],decls:2,vars:1,consts:[["mat-button","","color","primary",1,"onedev-hovercard-action",3,"disabled","click"]],template:function(a,b){a&1&&(eg(),D(0,"button",0),L("click",function(){return b.handleClick()}),fg(1),F());a&2&&C("disabled",b.disabled)},dependencies:[Ez],styles:[".onedev-hovercard-action[_ngcontent-%COMP%]{--onedev-card-action-background:var(--surface-default,#fff);--onedev-card-action-border:var(--hairline,#dadce0)}button.onedev-hovercard-action[_ngcontent-%COMP%]{background-color:var(--onedev-card-action-background);border-radius:0;border:none;border-top:1px solid var(--onedev-card-action-border);font-size:14px;height:40px;padding:0 20px;text-align:left;width:100%}"]});var CK=function(){};CK.\u0275fac=function(a){return new (a||CK)};CK.\u0275mod=qd({type:CK});CK.\u0275inj=ad({imports:[ay,OJ,Sv,SB,Sy]});var DK=function(){};DK.\u0275fac=function(a){return new (a||DK)};DK.\u0275mod=qd({type:DK});DK.\u0275inj=ad({imports:[Sv]});var EK=function(a,b,c,d,e,f,h,k){eK.call(this,a,b,c,d,e,f,h,k);this.hoverDelayMs=500;this.activity=new B.Subject;this.attachMouseEventListeners(c.nativeElement)};W(EK,eK);g=EK.prototype;g.ngOnInit=function(){eK.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Zha(function(){return b.activity.pipe(jf(a))}));c.pipe(Af(this.destroyed)).subscribe(function(d){d?b.openDialog():b.closeDialog()});this.openings.pipe(cf(function(d){return d&&0<b.beforeOpened.observers.length}),Oia(function(){return c.pipe(cf(function(d){return!d}))}),Af(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.stackManager&&this.stackManager.unregisterEvent().pipe(jf(this.hoverDelayMs),Af(this.destroyed)).subscribe(function(){a.matches(":hover")||b.viewContainerRef.element.nativeElement.matches(":hover")?b.openingDialog():b.closingDialog()});this.ngZone.runOutsideAngular(function(){(0,B.fromEvent)(a,"mouseenter").pipe(Af(b.destroyed)).subscribe(function(){b.openingDialog()});(0,B.fromEvent)(a,"click").pipe(Af(b.destroyed)).subscribe(function(c){c.target.closest("[xapInlineDialogClose]")?
b.closingDialog():(b.openingDialog(),b.openDialog())});(0,B.fromEvent)(a,"mouseleave").pipe(Af(b.destroyed)).subscribe(function(){b.closingDialog()});(0,B.fromEvent)(a,"mousemove").pipe(Af(b.destroyed)).subscribe(function(){b.activity.next()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,B.fromEvent)(a,"keydown").pipe(Af(b.destroyed)).subscribe(function(c){switch(c.keyCode){case 27:var d;(null==(d=b.overlayRef)?0:d.hasAttached())&&c.stopPropagation();b.closeDialog()}})})};g.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};g.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};
g.createOverlayConfig=function(a){return new Hy(Object.assign({},this.overlayDimensions,{positionStrategy:eK.prototype.createPositionStrategy.call(this,a),scrollStrategy:u0b(this),panelClass:this.panelClassInternal}))};EK.\u0275fac=function(a){return new (a||EK)(z(Df),z(Py),z(ae),z(wg),z(Oh),z(fy),z(by),z(eu))};
EK.\u0275dir=sd({type:EK,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:["xapInlineDialog","dialog"],disabled:["xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[Jf]});[].concat(p([EK,fK,hK,gK]),[dK]);var FK=function(){};FK.\u0275fac=function(a){return new (a||FK)};FK.\u0275mod=qd({type:FK});FK.\u0275inj=ad({imports:[ay,Sv,Sy,Yw]});var GK=function(){};GK.\u0275fac=function(a){return new (a||GK)};GK.\u0275mod=qd({type:GK});GK.\u0275inj=ad({imports:[aD,vK,wK,CK,AK,yK,DK,FC,Dw,FK,ZJ]});var W0b=[kJ],HK=function(){};HK.\u0275fac=function(a){return new (a||HK)};HK.\u0275mod=qd({type:HK});HK.\u0275inj=ad({imports:[aD,SB,BB,FC]});var IK=function(){};IK.\u0275fac=function(a){return new (a||IK)};IK.\u0275mod=qd({type:IK});IK.\u0275inj=ad({imports:[aD,HK]});var JK=function(){};JK.\u0275fac=function(a){return new (a||JK)};JK.\u0275mod=qd({type:JK});JK.\u0275inj=ad({imports:[ay,Ty,Ty]});var KK=function(){};KK.\u0275fac=function(a){return new (a||KK)};KK.\u0275mod=qd({type:KK});KK.\u0275inj=ad({imports:[IK,aD,GK,SB,BB,JK,TB]});var LK=function(){};LK.\u0275fac=function(a){return new (a||LK)};LK.\u0275prov=$c({token:LK,factory:LK.\u0275fac,providedIn:"root"});var MK=function(a){this.executor=a};W(MK,LK);MK.\u0275fac=function(a){return new (a||MK)(n(tD))};MK.\u0275prov=$c({token:MK,factory:MK.\u0275fac,providedIn:"root"});var X0b=new Ad("mat-checkbox-default-options",{providedIn:"root",factory:tEa});Vh(Rh(Sh(Th(function(a){this._elementRef=a}))));var Y0b=["input"],Z0b=["label"],$0b=0,a1b={color:"accent",clickAction:"check-indeterminate"},b1b=Vh(Rh(Sh(Th(function(a){this._elementRef=a})))),NK=function(a,b,c,d,e,f,h){b=b1b.call(this,b)||this;b._changeDetectorRef=c;b._ngZone=d;b._animationMode=f;b._options=h;b.ariaLabel="";b.ariaLabelledby=null;b.labelPosition="after";b.name=null;b.change=new Yu;b.indeterminateChange=new Yu;b._onTouched=function(){};b._currentAnimationClass="";b._currentCheckState=0;b._controlValueAccessorChangeFn=function(){};
b._checked=!1;b._disabled=!1;b._indeterminate=!1;b._options=b._options||a1b;b.color=b.defaultColor=b._options.color||a1b.color;b.tabIndex=parseInt(e)||0;b.id=b._uniqueId=a+ ++$0b;return b};W(NK,b1b);g=NK.prototype;g.ngAfterViewInit=function(){this._syncIndeterminate(this._indeterminate)};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};g.writeValue=function(a){this.checked=!!a};
g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};
g._transitionCheckState=function(a){var b=this._currentCheckState,c=this._elementRef.nativeElement;if(b!==a&&c&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,a),this._currentCheckState=a,0<this._currentAnimationClass.length)){c.classList.add(this._currentAnimationClass);var d=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){c.classList.remove(d)},
1E3)})}};g._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.checked);this.change.emit(this._createChangeEvent(this.checked));this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};g.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
g._handleInputClick=function(){var a=this,b,c=null==(b=this._options)?void 0:b.clickAction;this.disabled||"noop"===c?this.disabled||"noop"!==c||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==c&&Promise.resolve().then(function(){a._indeterminate=!1;a.indeterminateChange.emit(a._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())};
g._onInteractionEvent=function(a){a.stopPropagation()};g._onBlur=function(){var a=this;Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})};
g._getAnimationClassForCheckStateTransition=function(a,b){if("NoopAnimations"===this._animationMode)return"";switch(a){case 0:if(1===b)return this._animationClasses.uncheckedToChecked;if(3==b)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===b?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===b?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;
case 3:return 1===b?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""};g._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};
Qh.Object.defineProperties(NK.prototype,{inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=ah(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=ah(a);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(a){a=ah(a);a!==this.disabled&&(this._disabled=a,this._changeDetectorRef.markForCheck())}},indeterminate:{configurable:!0,enumerable:!0,get:function(){return this._indeterminate},set:function(a){var b=a!=this._indeterminate;this._indeterminate=ah(a);b&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate));this._syncIndeterminate(this._indeterminate)}}});NK.\u0275fac=function(){ee()};
NK.\u0275dir=sd({type:NK,viewQuery:function(a,b){a&1&&(zg(Y0b,5),zg(Z0b,5),zg(cz,5));if(a&2){var c;yg(c=Bg())&&(b._inputElement=c.first);yg(c=Bg())&&(b._labelElement=c.first);yg(c=Bg())&&(b.ripple=c.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},
outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[Jf]});var OK=function(){};OK.\u0275fac=function(a){return new (a||OK)};OK.\u0275mod=qd({type:OK});OK.\u0275inj=ad({});var c1b=function(a){return{enterDuration:a}},d1b=function(){},e1b={provide:Uv,useExisting:fd(function(){return PK}),multi:!0},PK=function(a,b,c,d,e,f,h){a=NK.call(this,"mat-checkbox-",a,b,d,e,f,h)||this;a._focusMonitor=c;a._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",
indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"};return a};W(PK,NK);PK.\u0275dir=NK.\u0275dir;g=PK.prototype;g._createChangeEvent=function(a){var b=new d1b;b.source=this;b.checked=a;return b};g._getAnimationTargetElement=function(){return this._elementRef.nativeElement};g.ngAfterViewInit=function(){var a=this;NK.prototype.ngAfterViewInit.call(this);this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b||a._onBlur()})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};
g._onInputClick=function(a){a.stopPropagation();NK.prototype._handleInputClick.call(this)};g.focus=function(a,b){a?Pw(this._focusMonitor,this._inputElement,a,b):this._inputElement.nativeElement.focus(b)};PK.\u0275fac=function(a){return new (a||PK)(z(ae),z(xv),z(Ow),z(Df),Ud("tabindex"),z(iu,8),z(X0b,8))};
PK.\u0275cmp=od({type:PK,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:15,hostBindings:function(a,b){a&2&&(cg("id",b.id),Nf("tabindex",null)("aria-label",null)("aria-labelledby",null)("mat-id-collision",null),Xf("mat-checkbox-indeterminate",b.indeterminate)("mat-checkbox-checked",b.checked)("mat-checkbox-disabled",b.disabled)("mat-checkbox-label-before","before"==b.labelPosition)("_mat-animation-noopable","NoopAnimations"===b._animationMode))},inputs:{disableRipple:"disableRipple",
color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[lg([e1b]),Jf],ngContentSelectors:["*"],decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],
[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(a,b){a&1&&(eg(),D(0,"label",0,1)(2,"span",2)(3,
"input",3,4),L("change",function(e){return b._onInteractionEvent(e)})("click",function(e){return b._onInputClick(e)}),F(),D(5,"span",5),G(6,"span",6),F(),G(7,"span",7),D(8,"span",8),Qd(),D(9,"svg",9),G(10,"path",10),F(),Kd.currentNamespace=null,G(11,"span",11),F()(),D(12,"span",12,13),L("cdkObserveContent",function(){return b._onLabelTextChange()}),D(14,"span",14),Q(15,"\u00a0"),F(),fg(16),F()());if(a&2){var c=N(1),d=N(13);Nf("for",b.inputId);w(2);Xf("mat-checkbox-inner-container-no-side-margin",
!d.textContent||!d.textContent.trim());w(1);C("id",b.inputId)("required",b.required)("checked",b.checked)("disabled",b.disabled)("tabIndex",b.tabIndex);Nf("value",b.value)("name",b.name)("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);w(2);C("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",og(18,c1b,"NoopAnimations"===b._animationMode?0:150))}},dependencies:[cz,
Xx],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var QK=function(a,b){Y.call(this);this.dialogRef=a;this.tosApi=b;this.ackChecked=!1};W(QK,Y);QK.\u0275dir=Y.\u0275dir;QK.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(Af(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};QK.\u0275fac=function(a){return new (a||QK)(z(Rz),z(LK))};
QK.\u0275cmp=od({type:QK,selectors:[["b-terms-of-service-dialog"]],features:[Jf],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"b-tos-content"],["gmat-checkbox","",3,"ngModel","ngModelChange"],["href","https://www.google.com/policies/terms/","target","_blank"],["href","/terms","target","_blank"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Google IssueTracker Terms of Service"),F(),D(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",
2),L("ngModelChange",function(c){return b.ackChecked=c}),F(),D(5,"span"),Q(6," I acknowledge and agree to the "),D(7,"a",3),Q(8,"Google Terms of Service"),F(),Q(9," and the "),D(10,"a",4),Q(11,"Google IssueTracker Conduct Policy"),F(),Q(12,". "),F()()(),D(13,"mat-dialog-actions")(14,"button",5),L("click",function(){return b.accept()}),Q(15," OK "),F()());a&2&&(w(4),C("ngModel",b.ackChecked),w(10),C("disabled",!b.ackChecked))},dependencies:[hw,ow,Ez,PK,Wz,Xz,Yz],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});var RK=function(a,b){Y.call(this);this.activeSession=a;this.matDialogService=b};W(RK,Y);RK.\u0275dir=Y.\u0275dir;RK.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&Pz(this.matDialogService.open(QK,{width:"400px",disableClose:!0})).pipe(Af(this.destroyed$))};RK.\u0275fac=function(a){return new (a||RK)(z(Us),z(Uz))};RK.\u0275cmp=od({type:RK,selectors:[["b-terms-of-service"]],features:[Jf],decls:0,vars:0,template:function(){},encapsulation:2});var SK=function(){};SK.\u0275fac=function(a){return new (a||SK)};SK.\u0275mod=qd({type:SK});SK.\u0275inj=ad({imports:[ez,Ty,Yx,OK,Ty,OK]});var TK=function(){};TK.\u0275fac=function(a){return new (a||TK)};TK.\u0275mod=qd({type:TK});TK.\u0275inj=ad({imports:[Dw,aD,SB,SK,Zz]});var UK=function(){};UK.\u0275fac=function(a){return new (a||UK)};UK.\u0275mod=qd({type:UK});UK.\u0275inj=ad({imports:[aD,TK]});var wEa=0;var f1b=Pta("blinkers-activated"),g1b=Kk("blinkers-activated"),h1b=xEa("debug-dom-mutation","var(--c400)"),i1b=xEa("debug-ng-zone","var(--red-400)"),j1b=xEa("debug-xhr","var(--green-500)",1200),k1b=function(a,b,c){b=void 0===b?"#ccc":b;c=void 0===c?400:c;wEa++;var d=156;d+=12*(wEa-1);return function(e,f){f=void 0===f?b:f;var h,k=null!=(h=document.getElementById(a))?h:uEa(a,d);k.style.transition="opacity "+c+"ms";k.style.backgroundColor=f;k.style.opacity=e?"1":"0"}}("active-user","var(--yellow-500)"),
l1b={clear:function(){},getItem:function(){return""},removeItem:function(){},setItem:function(){}},m1b=window.localStorage||l1b,VK=function(a,b){var c=this;this.activityMonitor=a;this.userActivity=b;this.destroyed$=new B.Subject;this.xhrLog=[];this.publicApi={isEnabled:this.isEnabled.bind(this),enable:this.enable.bind(this),disable:this.disable.bind(this)};this.onAnyClick=function(d){"debug-xhr"===d.target.id&&(d=!m1b.getItem("log-xhrs-to-console"),m1b.setItem("log-xhrs-to-console",d?"on":""),d?n1b(c):
clearInterval(c.loggingInterval))};this.printXhrLog=function(){var d=c.xhrLog.length;if(0<d){var e=Array(d).fill("\u2588").join("");console.log(window.location.pathname.padEnd(20)+" XHRs: "+e+" "+(0<d?"("+d+")":""))}c.xhrLog=[]};this.isEnabled()&&o1b(this)};VK.prototype.ngOnDestroy=function(){p1b(this)};VK.prototype.isEnabled=function(){return g1b()};VK.prototype.enable=function(){this.isEnabled()||(f1b(!0),o1b(this))};VK.prototype.disable=function(){f1b(!1);p1b(this)};
var o1b=function(a){a.activityMonitor.dom$.pipe(Af(a.destroyed$)).subscribe(function(){return void h1b()});jWb(a.activityMonitor);a.activityMonitor.cdr$.pipe(Af(a.destroyed$)).subscribe(function(){return void i1b()});a.activityMonitor.xhr$.pipe(Af(a.destroyed$)).subscribe(function(){j1b();var b=a.xhrLog,c=Date.now();b.push(c);c=void 0===c?Date.now():c;var d=void 0===d?5E3:d;for(var e=0;e<b.length&&!(c-b[e]<=d);e++);b.splice(0,e)});a.userActivity.active$.pipe(Af(a.destroyed$)).subscribe(function(b){return void k1b(b)});
document.addEventListener("click",a.onAnyClick);m1b.getItem("log-xhrs-to-console")&&n1b(a)},p1b=function(a){a.destroyed$.next();a.activityMonitor.domObserver.disconnect();document.removeEventListener("click",a.onAnyClick)},n1b=function(a){clearInterval(a.loggingInterval);a.loggingInterval=setInterval(a.printXhrLog,1E3)};VK.\u0275fac=function(a){return new (a||VK)(n(cE),n(eE))};VK.\u0275prov=$c({token:VK,factory:VK.\u0275fac,providedIn:"root"});var WK=function(a,b){this.teamDigestFridge=a;this.activeSession=b;this.destroyed$=new B.Subject;this.email=this.activeSession.getUserEmail();this.user=Di(this.activeSession.getUserEmail());this.isInternal=this.activeSession.isInternalSession();this.teams$=this.teamDigestFridge.watchMany({myTeams:!0}).pipe(A(function(c){return c.results}));this.teams$.pipe(A(function(c){return c.map(function(d){return d.teamId})}));this.allTeamIds$=this.teams$.pipe(A(function(c){return c.flatMap(function(d){return d.pathIds})}),
A(function(c){return[].concat(p(new Set(c))).filter(cl)}));Fk(this.allTeamIds$.pipe(Af(this.destroyed$)),[])};WK.prototype.ngOnDestroy=function(){this.destroyed$.next()};WK.\u0275fac=function(a){return new (a||WK)(n(yI),n(Us))};WK.\u0275prov=$c({token:WK,factory:WK.\u0275fac,providedIn:"root"});var XK=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O){var R=this;this.activeSession=a;this.appEvents=b;this.ngZone=c;this.window=d;this.buganizerBlinkers=e;this.currentUser=f;this.routeParamsService=h;this.issueFridge=k;this.eventsForIssueFridge=q;this.customFieldFridge=u;this.changelistFridge=x;this.aggregatedIssueMetadataFridge=y;this.taskFridge=E;this.userPreferencesManager=H;this.savedSearchFridge=J;this.recentEventsForIssuesFridge=O;this.getCurrentIssueId=function(){var U;return null==(U=R.routeParamsService.routeParams$.value)?
void 0:U.issueId};this.getCurrentIssue=function(){var U=R.getCurrentIssueId();if(null!=U)return R.issueFridge.memory.getData(U)};this.getCurrentIssueEvents=function(){var U=R.getCurrentIssueId();if(null!=U)return R.eventsForIssueFridge.memory.getData(U)}};
XK.prototype.install=function(){if(this.activeSession.isInternalSession()){var a=this;this.window.bedbug={ngZone:this.ngZone,appEvents:this.appEvents,requestKeeper:AUb,activeSession:this.activeSession,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:MWb("debug-logging"),toggleLeanFeMigrationDebugLogging:MWb("lean-fe-debug-logging"),toggleOptOutExperiments:MWb("opt-out-experiments"),currentUser:this.currentUser,userPreferencesManager:this.userPreferencesManager,fridges:{issueFridge:this.issueFridge,
eventsForIssueFridge:this.eventsForIssueFridge,customFieldFridge:this.customFieldFridge,changelistFridge:this.changelistFridge,aggregatedIssueMetadataFridge:this.aggregatedIssueMetadataFridge,taskFridge:this.taskFridge,savedSearchFridge:this.savedSearchFridge,recentEventsForIssuesFridge:this.recentEventsForIssuesFridge},get initialSession(){return Mj()},get initialPrefs(){return Mj().userPreferences},get currentPrefs(){return jE(a.userPreferencesManager)},get currentIssue(){return a.getCurrentIssue()},
get currentIssueEvents(){return a.getCurrentIssueEvents()},get flags(){return Mj().config.enabledFlags}}}};XK.\u0275fac=function(a){return new (a||XK)(n(Us),n(DF),n(Df),n(qF),n(VK),n(WK),n(AI),n(GH),n(cH),n(bH),n(JG),n(BG),n(pI),n(iE),n(kI),n(fI))};XK.\u0275prov=$c({token:XK,factory:XK.\u0275fac,providedIn:"root"});var YK=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new B.BehaviorSubject(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=null!=window.localStorage.getItem("onedev-darkmode");q1b(b,b.localDarkmode);b.clientStreamzService&&IRb(b.clientStreamzService,"loadDarkmode",b.clientDarkmodeSubject.getValue())};this.setLocalDarkmode=function(c){b.localDarkmode=c;b.localDarkmode?window.localStorage.setItem("onedev-darkmode",
b.localDarkmode.toString()):window.localStorage.removeItem("onedev-darkmode")}};YK.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(rB)};var q1b=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};YK.\u0275fac=function(a){return new (a||YK)(n(eu))};YK.\u0275prov=$c({token:YK,factory:YK.\u0275fac});var r1b=Xs(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback-dark-mode.md"]),s1b=Xs(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback.md"]),t1b=Xs(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),u1b=Xs(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),ZK=function(a,b,c){var d=this;this.dialogRef=a;this.darkmodeService=b;this.data=c;this.contentLoaded=
!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(A(function(e){switch(d.data.type){case "HOMEPAGE":return e?mh(r1b):mh(s1b);default:return e?mh(t1b):mh(u1b)}}))};ZK.\u0275fac=function(a){return new (a||ZK)(z(Rz),z(YK),z(Tz))};
ZK.\u0275cmp=od({type:ZK,selectors:[["b-feedback-dialog"]],decls:9,vars:4,consts:[["mat-dialog-content",""],[4,"ngIf"],["diameter","60",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"click"],["frameborder","0","allowtransparency","true",3,"src","load"],["diameter","60"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,yEa,2,3,"ng-container",1),T(2,"async"),P(3,zEa,1,
0,"mat-spinner",2),F(),D(4,"div",3)(5,"button",4),L("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),F(),D(7,"button",5),L("click",function(){return b.dialogRef.close(!0)}),Q(8," File a new issue "),F()());a&2&&(w(1),C("ngIf",V(2,2,b.docUrl$)),w(2),C("ngIf",!b.contentLoaded))},dependencies:[Ev,Xz,Yz,Ez,LJ,Kv],styles:["iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:0}.loading[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:space-between}.mat-dialog-content[_ngcontent-%COMP%]{display:flex;flex-grow:1;position:relative;justify-content:center;align-items:center}"],
changeDetection:0});var io=function(a){this.internalArray_=m(a)};W(io,X);g=io.prototype;g.getEnableSsEngine=function(){return Ri(this,2)};g.getEnableAwr=function(){return Ri(this,3)};g.getAlohaAutoGaRollout=function(){return Ri(this,5)};g.getEnableConfigurator=function(){return Ri(this,6)};g.getEnableMweb=function(){return Ri(this,7)};g.getEnableCtlConsentCheckbox=function(){return Ri(this,8)};g.getEnableIframe=function(){return Ri(this,9)};
var QEa=function(){var a=new io;a=ho(a,5,!0);a=ho(a,2,!0);a=ho(a,4,!1);a=ho(a,8,!0);return ho(a,9,!0)};g=io.prototype;g.getEnableScreenshotNudge=function(){return Ri(this,10)};g.getEnableWebStartupConfigEndpoint=function(){return Ri(this,11)};g.getEnableJunkNudge=function(){return Ri(this,12)};g.getEnableConfiguratorLocale=function(){return Ri(this,13)};g.getEnableTinyNoPointer=function(){return Ri(this,14)};g.getEnableSupportSessionLogging=function(){return Ri(this,15)};
g.getEnableFileUploadForScreenshot=function(){return Ri(this,16)};g.getEnableDirectDeflectionForSingleCategory=function(){return Ri(this,17)};g.getEnableImageSanitization=function(){return Ri(this,18)};g.getEnableAlohaBinarySplit=function(){return Ri(this,19)};g.getEnableDbFeedbackIntents=function(){return Ri(this,20)};g.getEnableMarkMandatoryFieldsWithRequired=function(){return Ri(this,21)};g.getEnableFeedbackCategoryCustomUi=function(){return Ri(this,22)};
g.getEnableRealtimeCtl=function(){return Ri(this,23)};var PEa=function(a){this.internalArray_=m(a)};W(PEa,X);var AEa=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var DEa="af;am;ar-EG;ar-JO;ar-MA;ar-SA;ar-XB;ar;az;be;bg;bn;bs;ca;cs;cy;da;de-AT;de-CH;de;el;en;en-GB;en-AU;en-CA;en-IE;en-IN;en-NZ;en-SG;en-XA;en-XC;en-ZA;es;es-419;es-AR;es-BO;es-CL;es-CO;es-CR;es-DO;es-EC;es-GT;es-HN;es-MX;es-NI;es-PA;es-PE;es-PR;es-PY;es-SV;es-US;es-UY;es-VE;et;eu;fa;fi;fil;fr-CA;fr-CH;fr;gl;gsw;gu;he;hi;hr;hu;hy;id;in;is;it;iw;ja;ka;kk;km;kn;ko;ky;ln;lo;lt;lv;mk;ml;mn;mo;mr;ms;my;nb;ne;nl;no;pa;pl;pt;pt-BR;pt-PT;ro;ru;si;sk;sl;sq;sr-Latn;sr;sv;sw;ta;te;th;tl;tr;uk ; ur ; uz ; vi ; zh;zh-CN;zh-HK;zh-TW;zu".split(";");var EEa=Xs(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),FEa=Xs(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var HEa,JEa;var v1b=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||da,e=d.document,f=a.nonce||CGb(d);f&&!a.nonce&&(a.nonce=f);if("help"==a.flow){var h=Jo("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=1200>=k.length)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d,
b);else{d=c+"/load.js?";for(var q in a)b=a[q],null==b||Fa(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=So(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);f=lh(d);ei(a,f);e.body.appendChild(a)}},w1b=function(a,b,c,d){var e,f;Ne(function(h){e=c||da;var k="DEV"===a.serverEnvironment,q=c||da;q=a.nonce||CGb(q);k={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,
disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:k,nonce:q,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,
submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(q=new Map(Object.entries(b)),k.extraData.productSpecificData=q);f=k;return h.yield(NEa(f,d,e),0)})},x1b=function(a,b,c){try{if("help"===a.flow){var d=a.helpCenterPath.replace(/^\//,
"");spa(c||window,ph("https://support.google.com/"+d))}else"submit"===a.flow?v1b(a,b,c):REa(a.productId,a.feedbackServerUri).then(function(e){e=Fi(e,io,1);var f=!BEb||(null==e?void 0:e.getEnableMweb()),h=!a.tinyNoPointer||(null==e?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&h?w1b(a,b,c,e):v1b(a,b,c)},function(e){e&&"DuplicateFormError"!==e.name&&v1b(a,b,c)})}catch(e){w1b(a,b,c,null)}};fEb("userfeedback.api.startFeedback",x1b);var y1b={width:"500px",maxHeight:"80vh",autoFocus:!1},$K=function(a,b,c){this.activeSession=a;this.matDialog=b;this.currentTracker=c};$K.prototype.startFeedback=function(){var a=this;this.activeSession.isInternalSession()?Pz(this.matDialog.open(ZK,Object.assign({},y1b,{height:"640px",data:{type:"DEFAULT"}}))).subscribe(function(b){b&&z1b(a)}):z1b(this)};
var A1b=function(a){a.activeSession.isInternalSession()?Pz(a.matDialog.open(ZK,Object.assign({},y1b,{height:"400px",data:{type:"HOMEPAGE"}}))).subscribe(function(b){b&&z1b(a)}):z1b(a)},z1b=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20230827.14_p0"};b.bucket=a.currentTracker.inTracker?"buganizer-trackers-feedback":"buganizer3-feedback";for(var c=[],d=c.concat,e=p([]),f=[],h=l(a.activeSession.session.config.enabledFlags),k=h.next();!k.done;k=
h.next()){var q=l(k.value);k=q.next().value;(q=q.next().value)&&f.push(k)}c=d.call(c,e,p(f)).join(", ");c={userType:a.activeSession.getUserTypeLabel(),flags:c};a.currentTracker.inTracker&&(c.trackerId=a.currentTracker.getTrackerId());x1b(b,c)};$K.\u0275fac=function(a){return new (a||$K)(n(Us),n(Uz),n(jG))};$K.\u0275prov=$c({token:$K,factory:$K.\u0275fac,providedIn:"root"});var aL=function(a){this.delegate_=a};aL.prototype.getDelegate=function(){return this.delegate_};var B1b=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};W(B1b,aL);B1b.prototype.getTarget=function(){if(this.target_)return this.target_;for(var a=[],b=this.getDelegate().xb;b instanceof gbar.I&&b!=this.currentTarget_.getDelegate();)a.push(b.ic()),b=b.zb();for(b=this.currentTarget_;0<a.length;)b=C1b(b,a.pop());return this.target_=b};B1b.prototype.getType=function(){return this.getDelegate().xa};var D1b=function(a){this.delegate_=a};W(D1b,aL);g=D1b.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||da,new B1b(f,e))},c)};g.listenOnce=function(){throw Error("Nc");};g.unlisten=function(){throw Error("Nc");};g.unlistenByKey=function(){throw Error("Nc");};g.dispatchEvent=function(){throw Error("Nc");};g.removeAllListeners=function(){throw Error("Nc");};g.getParentEventTarget=function(){throw Error("Nc");};
g.fireListeners=function(){throw Error("Nc");};g.getListener=function(){throw Error("Nc");};g.hasListener=function(){throw Error("Nc");};D1b.prototype[UOb]=!0;var bL=function(a){this.delegate_=a};W(bL,D1b);bL.prototype.getHeight=function(){return this.getDelegate().pa()};bL.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};bL.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};bL.prototype.getBackgroundColor=function(){return this.getDelegate().pn()};var E1b=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};W(E1b,aL);E1b.prototype.then=function(a,b,c){var d;a&&(d=F1b(this,a));this.getDelegate().aa(d,b,c)};var F1b=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};var cL=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};W(cL,aL);cL.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new E1b(this.getDelegate().bh()));return this.gapiPromise_};cL.getInstance=function(){if(cL.instance_&&cL.hasOwnProperty("instance_"))var a=cL.instance_;else a=new cL,cL.instance_=a;return a};var dL=function(a,b){Y.call(this);this.router=a;this.window=b};W(dL,Y);dL.\u0275dir=Y.\u0275dir;dL.prototype.start=function(){var a=this;return(new Promise(function(b,c){var d=cL.getInstance();d.barPromise_||(d.barPromise_=new E1b(d.getDelegate().bf(),bL));d.barPromise_.then(b,c)})).then(function(b){G1b(a,b)})};var G1b=function(a,b){a.router.events.pipe(cf(wta),Af(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};dL.\u0275fac=function(a){return new (a||dL)(n(WD),n(qF))};
dL.\u0275prov=$c({token:dL,factory:dL.\u0275fac,providedIn:"root"});var eL=function(a,b,c){Y.call(this);var d=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.eventsForIssueFridge=c;this.handlers$=this.paramsService.routeParams$.pipe(mf(ki),zf(function(e){return d.onRouteParamsChanged(e)}));this.init=function(){d.subscriptions.add(d.handlers$.subscribe(function(){}))};this.initOnce=vAa(this.init)};W(eL,Y);eL.\u0275dir=Y.\u0275dir;
eL.prototype.onRouteParamsChanged=function(a){var b=this,c,d;return Ne(function(e){if(1==e.nextAddress){c={trustUncertainMemory:!0};if(!a.issueId)return e.jumpTo(2);d=a.issueId;return e.yield(Promise.all([LH(b.issueFetchResponseFridge,d,c),b.eventsForIssueFridge.poke(d,c)]),3)}return e.return()})};eL.\u0275fac=function(a){return new (a||eL)(n(AI),n(JH),n(cH))};eL.\u0275prov=$c({token:eL,factory:eL.\u0275fac,providedIn:"root"});var fL=function(a){Y.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(Af(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};W(fL,Y);fL.\u0275dir=Y.\u0275dir;fL.prototype.start=function(){var a=this;document.addEventListener("scroll",function(b){b&&b.target&&(b=b.target.className,a.scrollTimingMap.has(b)?a.scrollTimingMap.get(b).push(Date.now()):a.scrollTimingMap.set(b,[Date.now()]))},!0)};fL.\u0275fac=function(a){return new (a||fL)(n(gE))};
fL.\u0275prov=$c({token:fL,factory:fL.\u0275fac,providedIn:"root"});var gL=function(){};gL.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};gL.\u0275fac=function(a){return new (a||gL)};
gL.\u0275cmp=od({type:gL,selectors:[["empty-toolbar"]],decls:3,vars:0,consts:[[1,"button-bar","flex-kids-x","align-items-center","border-bottom","padded-s"],["mat-icon-button","","color","primary","matTooltip","Go back","aria-label","Go back",1,"gmat-button",3,"click"],["svgIcon","arrow-backward"]],template:function(a,b){a&1&&(D(0,"section",0)(1,"button",1),L("click",function(){return b.onPressBack()}),G(2,"mat-icon",2),F()())},dependencies:[qA,Ez,FB],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var hL=function(){};hL.\u0275fac=function(a){return new (a||hL)};hL.\u0275cmp=od({type:hL,selectors:[["b-glue"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(eg(),D(0,"span",0),fg(1),F())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});var iL=function(a,b,c){Y.call(this);this.templateRef=a;this.viewContainer=b;this.cdr=c;this.viewContainer.createEmbeddedView(this.templateRef)};W(iL,Y);Qh.Object.defineProperties(iL.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(Af(this.destroyed$)).subscribe(function(){b.viewContainer.clear();b.viewContainer.createEmbeddedView(b.templateRef);b.cdr.detectChanges()})}}});iL.\u0275fac=function(a){return new (a||iL)(z(vg),z(wg),z(xv))};
iL.\u0275dir=sd({type:iL,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},features:[Jf]});var jL=function(a,b,c){var d=this;this.cdr=a;this.events=b;this.ngZone=c;this.lastOpenPosition=this.width=220;this.hideToggleBtnOnOpen=this.disableToggleBtn=!1;this.direction="ltr";this.widthChanged=new Yu;this.widthAtDragStart=this.width;this.startDragging=function(e){d.dragStart=e;d.widthAtDragStart=d.width};this.minSnapWidth=185;this.onMousemove=function(e){d.isDragging&&(d.setWidth(d.widthAtDragStart+(e.pageX-(d.dragStart||0))*(d.isLTR?1:-1)),d.cdr.detectChanges())};this.onMouseup=function(){d.dragStart=
void 0;d.cdr.detectChanges()};this.broadcastWidthChange=Tt(function(e){d.widthChanged.emit(e);d.events.sidebarWidthChanged.next(e)},400);this.trackKeyboardResizing=Tt(function(){Mk(xp.SIDEBAR,"resizeKeyboard")},2E3)};jL.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
jL.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var H1b=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=0>b?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};jL.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
jL.prototype.setWidth=function(a){var b=this.minSnapWidth;a=90>a?28:a<b?b:Math.min(a,700);a>=this.minSnapWidth&&(this.lastOpenPosition=a);this.width=a;this.broadcastWidthChange(a)};
Qh.Object.defineProperties(jL.prototype,{minWidth:{configurable:!0,enumerable:!0,get:function(){return this.minSnapWidth},set:function(a){a=Number(a);Number.isNaN(a)?this.minSnapWidth=185:this.minSnapWidth=a}},size:{configurable:!0,enumerable:!0,get:function(){return this.width},set:function(a){var b=Number(a);"open"===a?b=this.lastOpenPosition:Number.isNaN(b)&&(b=220);this.setWidth(b)}},isLTR:{configurable:!0,enumerable:!0,get:function(){return"ltr"===this.direction}},isClosed:{configurable:!0,enumerable:!0,
get:function(){return this.width<this.minSnapWidth}},toggleButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this.isClosed?"Open Navigation":"Close Navigation"}},isDragging:{configurable:!0,enumerable:!0,get:function(){return null!=this.dragStart}}});jL.\u0275fac=function(a){return new (a||jL)(z(yD,2),z(DF),z(Df))};
jL.\u0275cmp=od({type:jL,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&Yf(b.direction)},inputs:{minWidth:"minWidth",disableToggleBtn:"disableToggleBtn",hideToggleBtnOnOpen:"hideToggleBtnOnOpen",direction:"direction",size:"size"},outputs:{widthChanged:"widthChanged"},features:[lg([yD])],ngContentSelectors:["*"],decls:5,vars:12,consts:[["cdkScrollable","",1,"inner",3,"ngClass"],[1,"content"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation",
"horizontal",1,"resizeHandle",3,"mousedown","keyup.arrowleft","keyup.arrowright","keyup.space","keyup.enter","dblclick"],["mat-icon-button","","class","toggleButton xs","matTooltipPosition","right",3,"ngClass","isClosed","matTooltip","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"toggleButton","xs",3,"ngClass","matTooltip","click"],[3,"svgIcon"]],template:function(a,b){a&1&&(eg(),D(0,"div",0)(1,"div",1),fg(2),F(),D(3,"div",2),L("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",
function(){return H1b(b,-10)})("keyup.arrowright",function(){return H1b(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),F()(),P(4,SEa,2,6,"button",3));a&2&&(Wf("width",b.width+"px"),Xf("isDragging",b.isDragging)("isClosed",b.isClosed),C("ngClass",b.direction),w(1),Wf("width",b.lastOpenPosition+"px"),w(2),Nf("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"),w(1),C("ngIf",!b.disableToggleBtn&&!(b.hideToggleBtnOnOpen&&
!b.isClosed)))},dependencies:[Cv,Ev,qA,Ez,FB,Ay],styles:['[_nghost-%COMP%]{position:relative}.inner[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden;transition:width .2s cubic-bezier(0.165, 0.84, 0.44, 1);display:flex;flex-direction:column}.inner.ltr[_ngcontent-%COMP%]{border-right:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.rtl[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.isDragging[_ngcontent-%COMP%]{transition:none}.content[_ngcontent-%COMP%]{position:relative;flex:1;opacity:1;transition:opacity .1s ease-in-out;transition-delay:.1s}.isClosed[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:none;opacity:0;transition-delay:0s}.isDragging[_ngcontent-%COMP%]{user-select:none}.resizeHandle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:8px;cursor:col-resize}.ltr[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{right:0}.rtl[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{left:0}.toggleButton[_ngcontent-%COMP%]{position:absolute;bottom:0;top:0;margin:auto}.toggleButton.ltr[_ngcontent-%COMP%]{right:2px}.toggleButton.rtl[_ngcontent-%COMP%]{left:2px}.toggleButton.isClosed[_ngcontent-%COMP%]{z-index:2}.toggleButton.isClosed.ltr[_ngcontent-%COMP%]{right:6px}.toggleButton.isClosed.rtl[_ngcontent-%COMP%]{left:6px}.toggleButton[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.toggleButton.isClosed[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:rotateZ(180deg)}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus, .isDragging[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 1px 50%;background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});var I1b=new Ad("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),J1b=new Ad("isScrolledOnScreen",{factory:function(){return{fully:TEa,partially:UEa}}}),kL=function(a,b){this.intersectionObserverBuilder=a;this.isScrolledOnScreen=b};kL.prototype.getObservable=function(a,b){b=void 0===b?!1:b;return null!=window.IntersectionObserver?VEa(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):WEa(a,this.isScrolledOnScreen,b)};
var K1b=function(a,b){var c={durationOnScreenMs:5E3},d=void 0===c?{}:c;c=void 0===d.emitOnPartial?!1:d.emitOnPartial;var e=void 0===d.durationOnScreenMs?0:d.durationOnScreenMs;d={cumulativeTime:0,wasPreviouslyOnScreen:!1,lastTimestamp:Date.now()};return a.getObservable(b,c).pipe(yia(function(f,h){return{cumulativeTime:f.cumulativeTime+(f.wasPreviouslyOnScreen?Date.now()-f.lastTimestamp:0),wasPreviouslyOnScreen:h,lastTimestamp:Date.now()}},d),zf(function(f){if(0===e&&f.wasPreviouslyOnScreen)return(0,B.of)(void 0);
var h=e-f.cumulativeTime;return 0>h?(0,B.of)(void 0):f.wasPreviouslyOnScreen?(0,B.of)(void 0).pipe(lf(h)):B.NEVER}),A(function(){}),nf())};kL.\u0275fac=function(a){return new (a||kL)(n(I1b),n(J1b))};kL.\u0275prov=$c({token:kL,factory:kL.\u0275fac,providedIn:"root"});var lL=function(a){this.internalArray_=m(a,0,lL.messageId)};W(lL,X);lL.prototype.getUrl=function(){return Hi(this,1)};lL.prototype.setUrl=function(a){return qj(this,1,a)};lL.prototype.hasUrl=function(){return Ii(this,1)};lL.messageId="b.ImageRedirectRequest";var mL=function(a){this.internalArray_=m(a,0,mL.messageId)};W(mL,X);mL.prototype.getUrl=function(){return Hi(this,1)};mL.prototype.setUrl=function(a){return qj(this,1,a)};mL.prototype.hasUrl=function(){return Ii(this,1)};mL.messageId="b.ImageRedirectResponse";var nL=function(a){this.executor=a},L1b=function(a,b){var c=new lL;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:mL}).pipe(A(function(d){return d.getUrl()}))};nL.\u0275fac=function(a){return new (a||nL)(n(tD))};nL.\u0275prov=$c({token:nL,factory:nL.\u0275fac,providedIn:"root"});var XEa=RegExp("^https?:\\/\\/((?:screenshot.googleplex.com|screenshot.corp.google.com|screen.corp.google.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),$Ea=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)");var oL=function(a){var b=this;this.imageRedirector=a;this.src$=new B.BehaviorSubject("");this.showImage$=new B.BehaviorSubject(!1);this.error$=new B.BehaviorSubject(!1);this.srcTruncated$=this.src$.pipe(A(function(c){var d=c;d=void 0===d?"":d;var e=void 0===e?48:e;c=[].concat(p(d));c.length<=e?c=d:(d=Math.floor(e/2),e=d-(0!==e%2?1:2),d=c.slice(0,d-1).join(""),c=c.slice(-e).join(""),null!=String.prototype.trimEnd&&null!=String.prototype.trimStart&&(d=d.trimEnd(),c=c.trimStart()),c=d+"..."+c);return c}));
this.srcRedirected$=(0,B.combineLatest)([this.src$,this.showImage$]).pipe(cf(function(c){c=l(c);c.next();return c.next().value}),zf(function(c){var d=l(c).next().value;return(c=bFa(d))?(0,B.of)(c):L1b(b.imageRedirector,d).pipe(gf(function(){b.error$.next(!0);return d}))}))};oL.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
Qh.Object.defineProperties(oL.prototype,{showByDefault:{configurable:!0,enumerable:!0,set:function(a){this.showImage$.next(a)}},src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a);this.error$.next(!1)},get:function(){return this.src$.value}}});oL.\u0275fac=function(a){return new (a||oL)(z(nL))};
oL.\u0275cmp=od({type:oL,selectors:[["b-secure-image-widget"]],inputs:{showByDefault:"showByDefault",src:"src",alt:"alt"},decls:6,vars:4,consts:[[4,"ngIf","ngIfElse"],["widget",""],["error",""],[3,"src"],["tabindex","0",1,"normal-link",3,"href","title","click","keydown.enter"],["svgIcon","image",1,"icon-s"],["svgIcon","broken-image",1,"icon-l",3,"matTooltip"]],template:function(a,b){a&1&&(P(0,fFa,3,4,"ng-container",0),T(1,"async"),P(2,gFa,8,9,"ng-template",null,1,Eg),P(4,hFa,2,3,"ng-template",null,
2,Eg));if(a&2){var c=N(5);C("ngIf",!1===V(1,2,b.error$))("ngIfElse",c)}},dependencies:[Ev,qA,FB,hL,Kv],styles:["a[_ngcontent-%COMP%]{word-break:break-all;margin:0 2px}a[_ngcontent-%COMP%]:hover{text-decoration:underline}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;line-height:18px;margin-top:-3px;margin-right:1px}img[_ngcontent-%COMP%]{max-width:100%}/*# sourceMappingURL=secure_image.css.map */"],changeDetection:0});var pL=function(){};pL.prototype.onClick=function(a,b){M1b(b)&&a.preventDefault()};var M1b=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};pL.\u0275fac=function(a){return new (a||pL)};pL.\u0275dir=sd({type:pL,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&L("click",function(c){return b.onClick(c,c.target)})}});var N1b={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},qL=function(a,b){var c=this;this.activeSession=a;this.userPreferencesManager=b;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=N1b;this.src$=new B.BehaviorSubject("");this.isMarkdownImage$=new B.BehaviorSubject(!1);this.displayMode$=(0,B.combineLatest)([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return d&&
$C(c.activeSession,"enableImageSummary")&&c.activeSession.isInternalSession()?!f&&e?"COLLAPSE":f?"SHOW":"HIDE":"HIDE"}),yf("HIDE"))};Qh.Object.defineProperties(qL.prototype,{src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a)},get:function(){return this.src$.value}},isMarkdownImage:{configurable:!0,enumerable:!0,set:function(a){this.isMarkdownImage$.next(a)},get:function(){return this.isMarkdownImage$.value}}});qL.\u0275fac=function(a){return new (a||qL)(z(Us),z(iE))};
qL.\u0275cmp=od({type:qL,selectors:[["b-snipit-image"]],inputs:{src:"src",isMarkdownImage:"isMarkdownImage",alt:"alt"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"src","alt","showByDefault",4,"ngSwitchCase"],["target","_blank",3,"href","rel"],[1,"thumbnail",3,"src","alt","showByDefault"],[3,"src","alt","showByDefault"]],template:function(a,b){a&1&&(P(0,kFa,5,5,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.src$))},dependencies:[Ev,Fv,Gv,oL,Kv],styles:["[_nghost-%COMP%]   b-secure-image-widget.thumbnail[_ngcontent-%COMP%]{display:inline-block;margin-top:8px;margin-bottom:8px;max-width:70%}[_nghost-%COMP%]   b-secure-image-widget.thumbnail[_ngcontent-%COMP%]     img{border:2px solid;border-color:#e8eaed;border-color:var(--c200);border-radius:8px;min-width:18px;min-height:18px;max-width:100%;max-height:350px}/*# sourceMappingURL=snipit_image.css.map */"],
changeDetection:0});[].concat(p(W0b),[jL,hL]);var rL=function(){};rL.\u0275fac=function(a){return new (a||rL)};rL.\u0275mod=qd({type:rL});rL.\u0275inj=ad({imports:[aD,SB,FC,Ey,HK]});var tL=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da){Y.call(this);var Ga=this;this.bLocation=a;this.reloadService=b;this.timeout=c;this.activeSession=d;this.hotkeys=e;this.paths=f;this.userPrefs=h;this.issuePagination=k;this.userFeedback=y;this.ngZone=E;this.matDialogService=H;this.renderer=R;this.announcement=this.dismissedMessageId=null;this.matSidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();this.sidebarDragSaver=this.sidebarDragOffset=null;wa.install();Da.install();
KYb(x);this.subscriptions.add(u.onClickAppMenuIcon.subscribe(function(){Ga.matSidebarWidth=185>Ga.matSidebarWidth?"open":0}));h.homepagePreferences$.pipe(Af(this.destroyed$)).subscribe(function(Ra){J.homepagePreferences=Ra});this.densityClass="d-comfort";this.renderer.addClass(document.body,this.densityClass);this.userPrefs.themePreferences$.pipe(Af(this.destroyed$)).subscribe(function(Ra){Ra=qFa(Ra.density);Ra!==Ga.densityClass&&(Ga.renderer.addClass(document.body,Ra),Ga.renderer.removeClass(document.body,
Ga.densityClass),Ga.densityClass=Ra)});this.subscriptions.add(F0b(q,function(Ra){Ga.doSearch(Ra)}));var Ub=f.createIssue(),Vb=f.listIssues({q:oK(d.getUserEmail())}),$a=f.listIssues({q:"cc:"+d.getUserEmail()}),ja=f.listIssues({q:C0b(d.getUserEmail())}),ya=f.listIssues({q:"reporter:"+d.getUserEmail()}),Ha=f.listIssues({q:q.getStarred()}),ab=f.listIssues({q:q.getVoted()});this.subscriptions.add(rE(this.hotkeys,{title:"General",hotkeys:[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var Ra=
document.querySelector(".search-box-container .search-box");null==Ra||Ra.focus();null==Ra||Ra.select()}},{keys:[Vj("2"),Ara()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){Ga.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.url(Ub)}},{keys:[Wj("g","n")],displayAs:"g then n",description:'Go to "Needs attention"',onPress:function(){a.url(f.needsAttention())}},{keys:[Wj("g","a")],displayAs:"g then a",description:'Go to "Assigned to me"',
onPress:function(){a.url(Vb)}},{keys:[Wj("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.url($a)}},{keys:[Wj("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.url(ya)}},{keys:[Wj("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.url(Ha)}},{keys:[Wj("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',onPress:function(){a.url(ab)}},{keys:[Wj("g","v")],displayAs:"g then v",
description:'Go to "To be verified"',onPress:function(){a.url(ja)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:[],displayAs:"Alt+Right",description:"Opens hovercard (if available)",onPress:function(){}},{keys:["<",">"],displayAs:"< / >",description:"Collapse/expand sidebar",onPress:function(Ra){if(0===Ra&&20<Ga.sidebarDragPosition||1===Ra&&!(20<Ga.sidebarDragPosition))20<Ga.sidebarDragPosition?sL(Ga,20,1):sL(Ga,Ga.lastOpenPosition,
1);Ga.matSidebarWidth=0===Ra?0:"open"}},{keys:["?",zra("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){Ga.matDialogService.open(uE,{minWidth:512})}}]}));this.lastOpenPosition=this.sidebarDragPosition=220;this.announcement=this.activeSession.getAnnouncement();this.userPrefs.preferences$.pipe(nf(),Af(this.destroyed$)).subscribe(function(Ra){Ga.dismissedMessageId=Ra.bannerMessageId||"";Ra=(Ra.layoutPreferences||{}).leftSidebarWidth;Ga.matSidebarWidth=
Ra||220;if(void 0===Ra)Ga.sidebarDragPosition=220;else if(90>Ra)Ga.sidebarDragPosition=20;else{if(220<Ra){var Jc=O1b();Ra>Jc&&(Ra=Jc)}185>Ra&&(Ra=185);Ga.sidebarDragPosition=Ra}});(0,B.fromEvent)(document,"mouseup",{capture:!0}).pipe(Af(this.destroyed$)).subscribe(function(){Ga.sidebarDragOffset&&(Ga.sidebarDragOffset=null,sL(Ga,Ga.sidebarDragPosition,1))});(0,B.fromEvent)(J,"resize").pipe(Af(this.destroyed$)).subscribe(function(){if(220<Ga.sidebarDragPosition){var Ra=O1b();Ga.sidebarDragPosition>
Ra&&sL(Ga,Ra,3E3)}});this.ngZone.runOutsideAngular(function(){(0,B.fromEvent)(document,"mousemove").pipe(Af(Ga.destroyed$)).subscribe(function(Ra){if(Ga.sidebarDragOffset){Ra=Ra.pageX-Ga.sidebarDragOffset;if(90>Ra)Ra=20;else if(185>Ra)Ra=185;else{var Jc=O1b();Ra>Jc&&(Ra=Jc)}sL(Ga,Ra,0)}})});U.start();Ik()&&(null!=NWb&&NWb.disconnect(),NWb=new Lk.PerformanceObserver(Uta),NWb.observe({entryTypes:["measure"]}));setTimeout(Zta,6E4);Z.start();na.initOnce();oa.initOnce();J.emergencyBugjugglerWorkaround=
{session:d,issueComments:O}};W(tL,Y);tL.\u0275dir=Y.\u0275dir;tL.prototype.startDragging=function(a){this.sidebarDragOffset=a.pageX-this.sidebarDragPosition;a.preventDefault()};tL.prototype.isDragging=function(){return null!==this.sidebarDragOffset};
var O1b=function(){var a=window.innerWidth;return 1075<=a?a-855:220},oFa=function(a,b){a.userPrefs.layoutPreferences$.pipe(zf(function(c){return a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})})).pipe(nf(),Af(a.destroyed$)).subscribe()},sL=function(a,b,c){if(b!==a.sidebarDragPosition||c)185<=b&&(a.lastOpenPosition=b),a.sidebarDragPosition=b,c&&(a.sidebarDragSaver&&a.timeout.cancel(a.sidebarDragSaver),a.sidebarDragSaver=a.timeout.schedule(function(){oFa(a,20===a.sidebarDragPosition?
0:a.sidebarDragPosition);a.sidebarDragSaver=null},c).catch(function(){}))};tL.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=RWb(this.paths,a);LF(this.issuePagination);b&&Mhb(this.reloadService);this.bLocation.url(a)};var lFa=function(a){null!==a.announcement&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(nf(),Af(a.destroyed$)).subscribe())};tL.prototype.startFeedback=function(){this.userFeedback.startFeedback()};
tL.\u0275fac=function(a){return new (a||tL)(z(wE),z(xJ),z(rD),z(Us),z(qE),z(xE),z(iE),z(JF),z(mK),z(DF),z(yH),z($K),z(Df),z(Uz),z(qF),z(WI),z(ku),z(dL),z(fL),z(SI),z(eL),z(XK),z(eE))};
tL.\u0275cmp=od({type:tL,selectors:[["app-root"]],features:[Jf],decls:10,vars:2,consts:[["class","bv2-announce-bar",4,"ngIf"],[1,"bv2-content","flex-kids-x","border-top"],["id","main-app-nav",3,"size","disableToggleBtn","widthChanged",4,"ngIf"],["id","skiplink-navigation-target","role","main","tabindex","0",1,"flex","pos-rel"],[1,"bv2-announce-bar"],"aria-live polite role status aria-atomic true".split(" "),[3,"innerHtml"],["class","announce-dismiss","role","button","tabindex","0",3,"keydown.enter",
"keydown.space","click",4,"ngIf"],["role","button","tabindex","0",1,"announce-dismiss",3,"keydown.enter","keydown.space","click"],["id","main-app-nav",3,"size","disableToggleBtn","widthChanged"]],template:function(a,b){a&1&&(G(0,"b-hiring-banner")(1,"b-terms-of-service"),P(2,nFa,4,2,"div",0),G(3,"b-sso-expired-callout-outlet"),D(4,"div",1),P(5,pFa,2,2,"b-resizable-sidebar",2),D(6,"div",3),G(7,"b-router-outlet"),F()(),G(8,"b-footer")(9,"bug-screensaver-manager"));if(a&2){w(2);var c;a=b.announcement;
a=void 0===a?b.announcement:a;if(null!=(c=a)&&c.message){var d;c=0<(null==(d=a.tags)?void 0:d.length)||!$C(b.activeSession,"canSeeAnnouncementBanner")?!1:a.dismissible?null==b.dismissedMessageId?!1:a.messageId!==b.dismissedMessageId:!0}else c=!1;C("ngIf",c);w(3);C("ngIf",!b.isAnonymous)}},dependencies:function(){return[Ev,iJ,jL,uK,RK,zD,aJ,fJ,pD]},encapsulation:2});var uL=function(){};uL.\u0275fac=function(a){return new (a||uL)};uL.\u0275mod=qd({type:uL});
uL.\u0275inj=ad({imports:[aD,jJ,rL,KK,UK,AD,eJ,gJ,dJ,SB,vE]});var vL=function(a){this.internalArray_=m(a,0,vL.messageId)};W(vL,X);vL.prototype.getUrl=function(){return Hi(this,1)};vL.prototype.setUrl=function(a){return qj(this,1,a)};vL.prototype.hasUrl=function(){return Ii(this,1)};vL.messageId="b.AttachmentUrlResponse";var wL=function(a){this.executor=a};wL.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject("Invalid resource ID.");var e={};d&&(e["X-Restricted-Content-Limit"]=String(Cva(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:vL}).then(function(f){return f.getUrl()})};wL.\u0275fac=function(a){return new (a||wL)(n(uD))};wL.\u0275prov=$c({token:wL,factory:wL.\u0275fac,providedIn:"root"});var xL=function(a,b,c){this.templateRef=b;this.viewContainer=c;this.isInternal=!1;this.isInternal=a.isInternalSession()};xL.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};xL.\u0275fac=function(a){return new (a||xL)(z(Us),z(vg),z(wg))};xL.\u0275dir=sd({type:xL,selectors:[["","internalOnly",""]]});var yL=function(a){this.session=a;this.baseDocumentationUrl=a.getDocumentationBaseUrl()},wo=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},P1b=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control#hotlists":a.baseDocumentationUrl+"/concepts/access-control#hotlists"};
yL.prototype.getIssueAccessLimit=function(){return this.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control.md?cl=head#issue_access_limits":this.baseDocumentationUrl+"/concepts/issues#issue_access_limits"};
var Q1b=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":wo(a)},R1b=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/public-access":"http://go/buganizer-public-access"},S1b=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"#terms_of_service":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/public-access#spam"},Tfb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},
T1b=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-dos-donts#moving-issues-to-a-new-component"},Ks=function(){return"http://go/buganizer-retention"};yL.prototype.getRestrictedAccessHelpLink=function(){return this.session.isExternalSession()?"https://developers.google.com/issue-tracker/concepts/restricted-content":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/restricted-access"};
var Hxb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};yL.prototype.getDisablingFieldsHelpLink=function(){return Hxb()+"#hiding-inherited-fields"};var U1b=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};yL.\u0275fac=function(a){return new (a||yL)(n(Us))};yL.\u0275prov=$c({token:yL,factory:yL.\u0275fac,providedIn:"root"});var zL=function(a){this.window=a};zL.prototype.openInNewTab=function(a){a=ph(a);spa(this.window,a,"_blank")};var kp=function(a,b){b=ph(b);spa(a.window,b)},AL=function(a,b){a=a.window.location;b=ph(b);b=Lma(b);void 0!==b&&(a.href=b)};zL.\u0275fac=function(a){return new (a||zL)(n(qF))};zL.\u0275prov=$c({token:zL,factory:zL.\u0275fac,providedIn:"root"});var BL=function(a,b,c,d,e,f,h,k){this.dialogRef=b;this.userAccess=c;this.attachmentsUrl=d;this.butterBar=e;this.domSafe=f;this.documentationLinks=h;this.changeDetectorRef=k;this.isLoading=!0;this.download=this.hasViewAccess=!1;this.attachment=a.attachment;this.issueId=a.issueId;this.download=a.download};BL.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
BL.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;sFa(this)?(this.hasViewAccess=!1,uG(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b}).finally(function(){a.isLoading=!1})):(this.hasViewAccess=!0,this.isLoading=!1)};BL.prototype.getPiiSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var sFa=function(a){return(a=a.getPiiSeverity())?"NONE_DETECTED"!==a:!1},V1b=function(a){var b=a.download&&Npa(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getPiiSeverity()).then(function(c){b?AL(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){a.butterBar.showWarning("Failed to load attachment. Please refresh and try again.");a.close()})};BL.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
BL.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};BL.\u0275fac=function(a){return new (a||BL)(z(Tz),z(Rz),z(sG),z(wL),z(VF),z(zL),z(yL),z(yD,2))};
BL.\u0275cmp=od({type:BL,selectors:[["b-attachment-download-dialog"]],features:[lg([yD])],decls:20,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"gmat-body-2"],[1,"gmat-body-1"],[1,"download-attachment-icon"],["svgIcon","file-present","size","icon-l"],[1,"download-attachment-filename"],[4,"internalOnly"],["class","gmat-body-2",4,"ngIf"],["class","centered-spinner","diameter","60",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button",
"",1,"gmat-button","dialog-primary-action",3,"disabled","click"],["target","_blank","aria-label","Learn more about restricted access in Buganizer.",3,"href"],[1,"no-access-warning"],["diameter","60",1,"centered-spinner"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Access Attachment"),F(),D(2,"div",1)(3,"div",2),Q(4," Are you sure you would like to access the following attachment? "),F(),G(5,"br"),D(6,"div",3)(7,"div",4),G(8,"mat-icon",5),F(),D(9,"div",6),Q(10),F()(),G(11,"br"),P(12,tFa,2,1,"ng-container",
7),P(13,uFa,3,0,"div",8),F(),P(14,vFa,1,0,"mat-spinner",9),D(15,"div",10)(16,"button",11),L("click",function(){return b.close()}),Q(17," Cancel "),F(),D(18,"button",12),L("click",function(){return V1b(b)}),Q(19," Continue "),F()());a&2&&(w(10),S(" ",b.attachment.filename," "),w(3),C("ngIf",!b.isLoading&&!b.hasViewAccess),w(1),C("ngIf",b.isLoading),w(4),C("disabled",!b.hasViewAccess))},dependencies:[Ev,qA,Wz,Xz,Yz,Ez,LJ,xL],styles:[".centered-spinner[_ngcontent-%COMP%]{margin:0 auto}.download-attachment-icon[_ngcontent-%COMP%]{float:left;margin-right:5px}.download-attachment-filename[_ngcontent-%COMP%]{font-weight:bold}.no-access-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}"]});var CL=function(){};CL.\u0275fac=function(a){return new (a||CL)};CL.\u0275mod=qd({type:CL});CL.\u0275inj=ad({imports:[aD]});var W1b=Object.assign({},new fOb,{backdropClass:"gmat-dialog-backdrop",panelClass:"gmat-dialog-panel",hasBackdrop:!0}),DL=function(){};DL.\u0275fac=function(a){return new (a||DL)};DL.\u0275mod=qd({type:DL});DL.\u0275inj=ad({providers:[{provide:gOb,useValue:W1b}],imports:[Zz,Zz]});var EL=function(){};EL.\u0275fac=function(a){return new (a||EL)};EL.\u0275mod=qd({type:EL});EL.\u0275inj=ad({imports:[aD,DL,SB,Zz,zK,cJ,gD,CL]});var FL=function(a){this.internalArray_=m(a,0,FL.messageId)};W(FL,X);FL.repeatedFields_=[1];FL.messageId="b.TimeZoneDataList";var GL=function(a,b){var c=this;this.executor=a;this.activeSession=b;this.memoized=new AZb(function(d){a:{var e=l(c.activeSession.session.preload.timezones);for(var f=e.next();!f.done;f=e.next())if(f=f.value,d===f.timeZoneId_){e=f;break a}e=void 0}return e?(0,B.of)(e):c.executor.get({url:"action/timezone/"+encodeURIComponent(d),responseConstructor:Jj}).pipe(A(xpa))},10)};GL.prototype.get=function(a){return this.memoized.get(a)};
var X1b=function(a){return a.executor.get({url:"action/timezone",responseConstructor:FL}).pipe(A(function(b){return null==b?void 0:Ji(b,Jj,1).map(function(c){c=xpa(c);var d=INb(c.getOffset(new Date));return{id:c.timeZoneId_,displayName:"("+d+") - "+c.timeZoneId_,gmt:d}})}))};GL.\u0275fac=function(a){return new (a||GL)(n(tD),n(Us))};GL.\u0275prov=$c({token:GL,factory:GL.\u0275fac,providedIn:"root"});var HL=function(a,b,c,d){Y.call(this);var e=this;this.errorHandler=d;this.cachedFormatters=new Map;this.formatPrefChange$=new B.Subject;this.userTimeZone=null;this.timeZones={};this.userPrefs=YC.dateTimePreferences;Promise.all(c.supportedTimeZones.map(function(f){if(""===f.id)return Promise.resolve({name:"",timeZone:null});var h=b.get(f.id).pipe(Af(e.destroyed$));return(0,B.firstValueFrom)(h).then(function(k){return{name:f.name,timeZone:k}})})).then(function(f){f=l(f);for(var h=f.next();!h.done;h=
f.next())h=h.value,e.timeZones[h.name]=h.timeZone;a.preferences$.pipe(Af(e.destroyed$)).subscribe(function(k){k.dateTimePreferences&&(k=k.dateTimePreferences,e.userPrefs=k,e.userTimeZone=e.timeZones[k.timeZone],e.formatPrefChange$.next())})}).catch(function(f){e.errorHandler.errorHandler(null,f)})};W(HL,Y);HL.\u0275dir=Y.\u0275dir;HL.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new Az(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var Y1b=function(a,b){return a.formatPrefChange$.subscribe(b)};HL.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone,a)};HL.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone,a)};HL.\u0275fac=function(a){return new (a||HL)(n(iE),n(GL),n(cD),n(XF))};HL.\u0275prov=$c({token:HL,factory:HL.\u0275fac,providedIn:"root"});var Z1b={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},
1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},IL=Z1b;IL=Z1b;var $1b={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var a2b={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"#E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},JL=a2b;JL=a2b;var KL=function(){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=JL.MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;this.pattern_=
"";this.applyStandardPattern_(1)};
KL.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=b2b(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,u=!0;b[0]<q&&u;b[0]++)switch(a.charAt(b[0])){case "#":0<f?h++:e++;0<=k&&0>d&&k++;break;case "0":if(0<h)throw Error("Xc`"+a);f++;0<=k&&0>d&&k++;break;case ",":0<k&&this.groupingArray_.push(k);k=0;break;case ".":if(0<=d)throw Error("Yc`"+a);d=e+f+h;break;case "E":if(this.useExponentialNotation_)throw Error("Zc`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<q&&"+"==a.charAt(b[0]+1)&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<q&&"0"==a.charAt(b[0]+1);)b[0]++,this.minExponentDigits_++;if(1>e+f||1>this.minExponentDigits_)throw Error("$c`"+a);u=!1;break;default:b[0]--,u=!1}0==f&&0<e&&0<=d&&(f=d,0==f&&f++,h=e-f,e=f-1,f=1);if(0>d&&0<h||0<=d&&(d<e||d>e+f)||0==k)throw Error("ad`"+a);h=e+f+h;this.maximumFractionDigits_=0<=d?h-d:0;0<=d&&(this.minimumFractionDigits_=e+f-d,0>this.minimumFractionDigits_&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(0<=d?d:h)-e;this.useExponentialNotation_&&(this.maximumIntegerDigits_=e+this.minimumIntegerDigits_,0==this.maximumFractionDigits_&&0==this.minimumIntegerDigits_&&(this.minimumIntegerDigits_=1));this.groupingArray_.push(Math.max(0,k));this.decimalSeparatorAlwaysShown_=0==d||d==h;c=b[0]-c;this.positiveSuffix_=b2b(this,a,b);b[0]<a.length&&";"==a.charAt(b[0])?(b[0]++,1!=this.multiplier_&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=b2b(this,a,b),b[0]+=c,
this.negativeSuffix_=b2b(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
KL.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(JL.DECIMAL_PATTERN);break;case 2:this.applyPattern_(JL.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(JL.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=JL.CURRENCY_PATTERN;var c=["0"],d=$1b[JL.DEF_CURRENCY_CODE];if(d){d=d[0]&7;if(0<d){c.push(".");for(var e=0;e<d;e++)c.push("0")}b=b.replace(/0.00/g,c.join(""))}a.call(this,b);break;case 5:c2b(this,1);break;case 6:c2b(this,2);break;default:throw Error("Rc");
}};var c2b=function(a,b){a.compactStyle_=b;a.applyPattern_(JL.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(0<a.minimumFractionDigits_)throw Error("Pc");a.significantDigits_=2};
KL.prototype.parse=function(a,b){b=b||[0];if(0!==this.compactStyle_)throw Error("Sc");a=a.replace(/ |\u202f/g,"\u00a0");var c=a.indexOf(this.positivePrefix_,b[0])==b[0],d=a.indexOf(this.negativePrefix_,b[0])==b[0];c&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?b[0]+=this.positivePrefix_.length:d&&(b[0]+=this.negativePrefix_.length);if(a.indexOf(JL.INFINITY,b[0])==b[0]){b[0]+=JL.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,u=1,x=JL.DECIMAL_SEP,y=JL.GROUP_SEP,E=JL.EXP_SYMBOL;if(0!=this.compactStyle_)throw Error("Tc");y=y.replace(/\u202f/g,"\u00a0");for(var H="";b[0]<e.length;b[0]++){var J=e.charAt(b[0]),O=d2b(J);if(0<=O&&9>=O)H+=O,k=!0;else if(J==x.charAt(0)){if(f||h)break;H+=".";f=!0}else if(J==y.charAt(0)&&("\u00a0"!=y.charAt(0)||b[0]+1<e.length&&0<=d2b(e.charAt(b[0]+1)))){if(f||h)break}else if(J==E.charAt(0)){if(h)break;H+="E";h=!0;q=b[0]}else if("+"==J||"-"==J){if(k&&q!=b[0]-1)break;H+=
J}else if(1==this.multiplier_&&J==JL.PERCENT.charAt(0)){if(1!=u)break;u=100;if(k){b[0]++;break}}else if(1==this.multiplier_&&J==JL.PERMILL.charAt(0)){if(1!=u)break;u=1E3;if(k){b[0]++;break}}else break}1!=this.multiplier_&&(u=this.multiplier_);e=parseFloat(H)/u}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?-e:e};
KL.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("Uc");if(isNaN(a))return JL.NAN;var b=[];var c=a;if(0==this.compactStyle_)c=LL;else{c=Math.abs(c);var d=e2b(this,1>=c?0:f2b(c)).divisorBase;c=e2b(this,d+f2b(g2b(this,ML(c,-d)).intValue))}a=ML(a,-c.divisorBase);(d=0>a||0==a&&0>1/a)?c.negative_prefix?b.push(c.negative_prefix):(b.push(c.prefix),b.push(this.negativePrefix_)):(b.push(c.prefix),b.push(this.positivePrefix_));if(isFinite(a))if(a*=d?-1:1,
a*=this.multiplier_,this.useExponentialNotation_){var e=a;if(0==e)h2b(this,e,this.minimumIntegerDigits_,b),i2b(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=ML(e,-f);var h=this.minimumIntegerDigits_;1<this.maximumIntegerDigits_&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,0>h&&(h=this.maximumIntegerDigits_+h),e=ML(e,h),f-=h,h=1):1>this.minimumIntegerDigits_?(f++,e=ML(e,-1)):(f-=this.minimumIntegerDigits_-1,e=ML(e,this.minimumIntegerDigits_-
1));h2b(this,e,h,b);i2b(this,f,b)}}else h2b(this,a,this.minimumIntegerDigits_,b);else b.push(JL.INFINITY);d?c.negative_suffix?b.push(c.negative_suffix):(isFinite(a)&&b.push(c.suffix),b.push(this.negativeSuffix_)):(isFinite(a)&&b.push(c.suffix),b.push(this.positiveSuffix_));return b.join("")};
var g2b=function(a,b){var c=ML(b,a.maximumFractionDigits_);0<a.significantDigits_&&(c=j2b(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);isFinite(c)?(b=Math.floor(ML(c,-a.maximumFractionDigits_)),a=Math.floor(c-ML(b,a.maximumFractionDigits_))):a=0;return{intValue:b,fracValue:a}},h2b=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("Uc");d||(d=[]);b=g2b(a,b);var e=b.intValue,f=b.fracValue,h=0<a.minimumFractionDigits_||0<f||!1;b=a.minimumFractionDigits_;
h&&(b=a.minimumFractionDigits_);for(var k="",q=e;1E20<q;)k="0"+k,q=Math.round(ML(q,-1));k=q+k;var u=JL.DECIMAL_SEP;q=JL.ZERO_DIGIT.charCodeAt(0);var x=k.length,y=0;if(0<e||0<c){for(e=x;e<c;e++)d.push(String.fromCharCode(q));if(2<=a.groupingArray_.length)for(c=1;c<a.groupingArray_.length;c++)y+=a.groupingArray_[c];c=x-y;if(0<c){e=a.groupingArray_;y=x=0;for(var E,H=JL.GROUP_SEP,J=k.length,O=0;O<J;O++)if(d.push(String.fromCharCode(q+Number(k.charAt(O)))),1<J-O)if(E=e[y],O<c){var R=c-O;(1===E||0<E&&1===
R%E)&&d.push(H)}else y<e.length&&(O===c?y+=1:E===O-c-x+1&&(d.push(H),x+=E,y+=1))}else{c=k;k=a.groupingArray_;e=JL.GROUP_SEP;E=c.length;H=[];for(x=k.length-1;0<=x&&0<E;x--){y=k[x];for(J=0;J<y&&0<=E-J-1;J++)H.push(String.fromCharCode(q+Number(c.charAt(E-J-1))));E-=y;0<E&&H.push(e)}d.push.apply(d,H.reverse())}}else h||d.push(String.fromCharCode(q));(a.decimalSeparatorAlwaysShown_||h)&&d.push(u);f=String(f);h=f.split("e+");2==h.length&&(f=String(j2b(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",
""),f+=IGb("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+IGb("0",a.maximumFractionDigits_-f.length)+f);for(a=f.length;"0"==f.charAt(a-1)&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCharCode(q+Number(f.charAt(b))))},i2b=function(a,b,c){c.push(JL.EXP_SYMBOL);0>b?(b=-b,c.push(JL.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(JL.PLUS_SIGN);b=""+b;for(var d=JL.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);c.push(b)},d2b=function(a){a=a.charCodeAt(0);
if(48<=a&&58>a)return a-48;var b=JL.ZERO_DIGIT.charCodeAt(0);return b<=a&&a<b+10?a-b:-1},b2b=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var h=b.charAt(c[0]);if("'"==h)c[0]+1<f&&"'"==b.charAt(c[0]+1)?(c[0]++,d+="'"):e=!e;else if(e)d+=h;else switch(h){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&"\u00a4"==b.charAt(c[0]+1)?(c[0]++,d+=JL.DEF_CURRENCY_CODE):(h=JL.DEF_CURRENCY_CODE,d+=h in $1b?$1b[h][1]:h);break;case "%":if(!a.negativePercentSignExpected_&&
1!=a.multiplier_)throw Error("Vc");if(a.negativePercentSignExpected_&&100!=a.multiplier_)throw Error("Wc");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=JL.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&1!=a.multiplier_)throw Error("Vc");if(a.negativePercentSignExpected_&&1E3!=a.multiplier_)throw Error("Wc");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=JL.PERMILL;break;default:d+=h}}return d},LL={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},
e2b=function(a,b){a=1==a.compactStyle_?IL.COMPACT_DECIMAL_SHORT_PATTERN:IL.COMPACT_DECIMAL_LONG_PATTERN;null==a&&(a=IL.COMPACT_DECIMAL_SHORT_PATTERN);if(3>b)return LL;b=Math.min(14,b);var c=a[ML(1,b)];for(--b;!c&&3<=b;)c=a[ML(1,b)],b--;if(!c)return LL;c=c.other;var d=a="",e=c.indexOf(";");0<=e&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],d=d[3]);return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],
suffix:c[3]}:LL:LL},f2b=function(a){if(!isFinite(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b},ML=function(a,b){if(!a||!isFinite(a)||0==b)return a;a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+b))},k2b=function(a,b){return a&&isFinite(a)?ML(Math.round(ML(a,b)),-b):a},j2b=function(a,b,c){if(!a)return a;b=b-f2b(a)-1;return b<-c?k2b(a,-c):k2b(a,b)};var l2b=function(a){return 1==a%10&&11!=a%100?"one":2==a%10&&12!=a%100?"two":3==a%10&&13!=a%100?"few":"other"},m2b=l2b;m2b=l2b;var n2b=function(a,b){var c=a|0;if(void 0===b){b=Math;var d=b.min,e=a+"",f=e.indexOf(".");b=d.call(b,-1===f?0:e.length-f-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return 1==c&&0==a.v?"one":"other"},o2b=n2b;o2b=n2b;var NL=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=JL;var b=IL;if(p2b!==a||q2b!==b)p2b=a,q2b=b,r2b=new KL;this.numberFormatter_=r2b},p2b=null,q2b=null,r2b=null,s2b=RegExp("'([{}#].*?)'","g"),t2b=RegExp("''","g");NL.prototype.format=function(a){return this.format_(a,!1)};
NL.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=u2b(this,this.pattern_);this.parsedPattern_=v2b(this,c);this.pattern_=null}if(!this.parsedPattern_||0==this.parsedPattern_.length)return"";this.literals_=Ba(this.initialLiterals_);c=[];w2b(this,this.parsedPattern_,a,b,c);for(a=c.join("");0<this.literals_.length;)a=a.replace(this.buildPlaceholder_(this.literals_),this.literals_.pop());return a};
var w2b=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var h=b[f].value,k=a,q=e,u=c[h];void 0===u?q.push("Undefined parameter - "+h):(k.literals_.push(u),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;u=d;var x=e,y=h.argumentIndex;void 0===q[y]?x.push("Undefined parameter - "+y):(y=h[q[y]],void 0===y&&(y=h.other),w2b(k,y,q,u,x));break;case 0:h=b[f].value;x2b(a,h,c,o2b,d,e);break;case 1:h=b[f].value,x2b(a,h,c,m2b,
d,e)}},x2b=function(a,b,c,d,e,f){var h=b.argumentIndex,k=b.argumentOffset,q=+c[h];isNaN(q)?f.push("Undefined or invalid parameter - "+h):(k=q-k,h=b[c[h]],void 0===h&&(d=d(Math.abs(k)),h=b[d],void 0===h&&(h=b.other)),b=[],w2b(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},u2b=function(a,b){var c=a.initialLiterals_,d=dt(a.buildPlaceholder_,a);b=b.replace(t2b,function(){c.push("'");return d(c)});return b=b.replace(s2b,function(e,f){c.push(f);return d(c)})},
y2b=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var h=f.index;"}"==f[0]?(c.pop(),0==c.length&&(f={type:1},f.value=a.substring(b,h),d.push(f),b=h+1)):(0==c.length&&(b=a.substring(b,h),""!=b&&d.push({type:0,value:b}),b=h+1),c.push("{"))}b=a.substring(b);""!=b&&d.push({type:0,value:b});return d},z2b=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,A2b=/^\s*(\w+)\s*,\s*selectordinal\s*,/,B2b=/^\s*(\w+)\s*,\s*select\s*,/,v2b=function(a,b){var c=[];b=y2b(b);for(var d=0;d<
b.length;d++){var e={};if(0==b[d].type)e.type=4,e.value=b[d].value;else if(1==b[d].type){var f=b[d].value;switch(z2b.test(f)?0:A2b.test(f)?1:B2b.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=C2b(a,b[d].value);break;case 0:e.type=0;e.value=D2b(a,b[d].value);break;case 1:e.type=1;e.value=E2b(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},C2b=function(a,b){var c="";b=b.replace(B2b,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=y2b(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h;1==b[e].type&&(h=v2b(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},D2b=function(a,b){var c="",d=0;b=b.replace(z2b,function(q,u,x){c=u;x&&(d=parseInt(x,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=y2b(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k;1==b[f].type&&(k=v2b(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},E2b=function(a,b){var c="";b=b.replace(A2b,function(k,q){c=q;return""});var d={};d.argumentIndex=
c;d.argumentOffset=0;b=y2b(b);for(var e=0;e<b.length;){var f=b[e].value;e++;if(1==b[e].type)var h=v2b(a,b[e].value);d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};NL.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var G2b=function(a){a=Math.abs(a);if(6E4>a)return"0 minutes";var b=Math.floor(a/864E5);a%=864E5;var c=Math.floor(a/36E5),d=Math.floor(a%36E5/6E4),e=NNb(b),f=NNb(c),h=NNb(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=F2b("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=F2b("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=F2b("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+a+c+k+d},F2b=function(a,b,c){return(new NL(a)).format({COUNT:b,TEXT:c})};var OL=function(a,b){var c=this;this.userPreferencesManager=a;this.timeZonesApi=b;this.cachedFormatters=new JE(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(A(function(d){return d.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(A(function(d){return d.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(zf(function(d){return d.timeZone?c.timeZonesApi.get(d.timeZone):(0,B.of)(void 0)}))};
OL.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new Az(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};OL.prototype.formatUserCalendar=function(a){var b=this;return(0,B.combineLatest)([this.userCalendarFormat$,this.userTimeZone$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
OL.prototype.formatUserTime=function(a){var b=this;return(0,B.combineLatest)([this.userTimeFormat$,this.userTimeZone$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var H2b=function(a,b){return(0,B.combineLatest)([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},I2b=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(A(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):(0,B.of)(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},qeb=function(a,b){var c=void 0;c=void 0===c?0:c;b=void 0===b?!1:b;var d=new pi;c&&d.setTime(c);c=new pi;
c.setTime(a);if(c.getTime()<d.getTime())return"Expired";a=12*(c.getFullYear()-d.getFullYear())+(c.getMonth()-d.getMonth());var e=c.getDate()-d.getDate();0>e&&(a--,d=d.clone(),d.add(new zz("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new zz(Math.floor(a/12),a%12,e);if(1<=d.years)return c=1<d.years?"s":"",0===d.months&&0===d.days?b?d.years+" year"+c:d.years+"Y":b?d.years+" year"+c+" +":d.years+"Y+";if(1<=d.months)return c=1<d.months?"s":"",0===d.days?b?d.months+" month"+c:d.months+"M":b?
d.months+" month"+c+" +":d.months+"M+";c=1<d.days?"s":"";return b?d.days+" day"+c:d.days+"D"};OL.\u0275fac=function(a){return new (a||OL)(n(iE),n(GL))};OL.\u0275prov=$c({token:OL,factory:OL.\u0275fac,providedIn:"root"});var J2b=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]];var K2b,L2b,M2b=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],N2b=Symbol("bd"),O2b=Symbol("bd"),PL=function(a){var b=this;this.dateFormatter=a;this.paddingLeftPx=5;this.timestampMs$=new B.ReplaySubject(1);this.timestampIso$=this.timestampMs$.pipe(A(function(c){return c?(new Date(c)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(A(function(c){if(void 0!==c)return new Date(c)}));this[K2b]=this.timestampDate$.pipe(zf(function(c){if(void 0===c)return(0,B.of)("");
switch(b.mode){case "date":return b.dateFormatter.formatUserCalendar(c);case "time":return b.dateFormatter.formatUserTime(c);case "datetime":return H2b(b.dateFormatter,c);case "relativepast":a:if(c=Math.floor((new Date).getTime()/1E3-c.getTime()/1E3),300>c)c="just now";else{for(var d=l(J2b),e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;f=Math.floor(c/f);if(1===f){c=f+" "+e+" ago";break a}if(1<f){c=f+" "+e+"s ago";break a}}c=void 0}return(0,B.of)(c);default:return $h(b.mode)}}));
this[L2b]=this.timestampDate$.pipe(zf(function(c){return void 0===c?(0,B.of)(""):(0,B.combineLatest)(M2b.map(function(d){return I2b(b.dateFormatter,c,d.id).pipe(A(function(e){return{formatted:e,tzName:d.name}}))})).pipe(P2b)}));this.vars$=(0,B.combineLatest)([this[N2b],this[O2b]]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return{formatted:c,title:d}}))};PL.prototype.ngOnInit=function(){};
Qh.Object.defineProperties(PL.prototype,{timestamp:{configurable:!0,enumerable:!0,set:function(a){var b=this.timestampMs$,c=b.next;a=null!=a?"number"===typeof a?a:"string"===typeof a?Date.parse(a):1E3*a.seconds:void 0;a=null==a||isNaN(a)?void 0:a;c.call(b,a)}},date:{configurable:!0,enumerable:!0,set:function(a){a&&this.timestampMs$.next(a.valueOf())}}});K2b=N2b;L2b=O2b;PL.\u0275fac=function(a){return new (a||PL)(z(OL))};
PL.\u0275cmp=od({type:PL,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode",paddingLeftPx:"paddingLeftPx"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"title"]],template:function(a,b){a&1&&(P(0,wFa,4,8,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.vars$))},dependencies:[Ev,Kv],encapsulation:2,changeDetection:0});
var P2b=(0,B.pipe)(A(function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.get(c.formatted);d?d.tzNames.push(c.tzName):(d={formatted:c.formatted,tzNames:[c.tzName]},b.set(c.formatted,d))}return Array.from(b.values()).map(function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));var Q2b=function(a,b,c,d){Jw.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new B.Subject;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};Iw(this)};W(Q2b,Jw);var QL=function(a,b,c){this.checker=a;this.ngZone=b;this.document=c};QL.prototype.create=function(a){return new Q2b(a,this.checker,this.ngZone,this.document)};QL.\u0275fac=function(a){return new (a||QL)(n(Gw),n(Df),n(Oh))};
QL.\u0275prov=$c({token:QL,factory:QL.\u0275fac,providedIn:"root"});var R2b=["content"],RL=function(a){Y.call(this);this.focusEscapeNotifierFactory=a;this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.dateChange=new Yu;this.cancelClicked=new Yu;this.saveClicked=new Yu;this.dateSelectionChange=new Yu;this.focusEscaped=new Yu};W(RL,Y);RL.\u0275dir=Y.\u0275dir;
RL.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){xFa(a,a.date);a.calendar._getCurrentViewComponent()._focusActiveCell(!1)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(Af(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(0===b){var c;null==(c=a.focusEscapeNotifier)||$Jb(c)}else{var d;null==(d=a.focusEscapeNotifier)||Hw(d)}else a.focusEscaped.emit(b)})};
var xFa=function(a,b){if(b=b instanceof Bn?b:xza(b))a.calendar.activeDate=b};RL.\u0275fac=function(a){return new (a||RL)(z(QL))};
RL.\u0275cmp=od({type:RL,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(zg(xz,7),zg(R2b,7));if(a&2){var c;yg(c=Bg())&&(b.calendar=c.first);yg(c=Bg())&&(b.content=c.first)}},inputs:{required:"required",date:"date",trapFocus:"trapFocus",todayButtonEnabled:"todayButtonEnabled",noneButtonEnabled:"noneButtonEnabled",renderPanel:"renderPanel"},outputs:{dateChange:"dateChange",cancelClicked:"cancelClicked",saveClicked:"saveClicked",dateSelectionChange:"dateSelectionChange",focusEscaped:"focusEscaped"},
features:[Jf],ngContentSelectors:["*"],decls:14,vars:9,consts:[["content",""],[1,"b-optional-calendar-button-row"],[3,"selected","startAt","selectedChange"],[1,"actions"],["class","b-optional-calendar-button-row",4,"ngIf"],[1,"b-calendar-button-row"],["mat-button","",1,"cancel",3,"click"],["mat-button","",1,"save",3,"click"],["class","today","mat-button","",3,"click",4,"ngIf"],["class","none","mat-button","",3,"click",4,"ngIf"],["mat-button","",1,"today",3,"click"],["mat-button","",1,"none",3,"click"]],
template:function(a,b){a&1&&(eg(),D(0,"div",null,0)(2,"div",1),fg(3),F(),D(4,"mat-calendar",2),L("selectedChange",function(c){b.date=c;b.dateSelectionChange.emit(c)}),T(5,"toDateTime"),T(6,"toDateTime"),F(),D(7,"div",3),P(8,AFa,4,2,"div",4),D(9,"div",5)(10,"button",6),L("click",function(){return b.cancelClicked.emit()}),Q(11,"Cancel"),F(),D(12,"button",7),L("click",function(){b.dateChange.emit(b.date);return b.saveClicked.emit()}),Q(13,"Save"),F()()()());a&2&&(Xf("container",b.renderPanel),w(4),C("selected",
V(5,5,b.date))("startAt",V(6,7,b.date)),w(4),C("ngIf",b.todayButtonEnabled||b.noneButtonEnabled))},dependencies:function(){return[Ev,Ez,xz,dD,SL]},styles:[".b-optional-calendar-button-row[_ngcontent-%COMP%]{margin:0 1rem}.actions[_ngcontent-%COMP%]{text-align:end}.actions[_ngcontent-%COMP%]   div.b-optional-calendar-button-row[_ngcontent-%COMP%]{width:fit-content;margin:auto;align-content:center}.container[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:4px;border-radius:8px;background-color:#fff;background-color:var(--surface-default)}mat-calendar[_ngcontent-%COMP%]{width:288px;height:342px}/*# sourceMappingURL=date_time_picker_content.css.map */"]});
var SL=function(){};SL.prototype.transform=function(a){var b;return null!=(b=xza(a))?b:void 0};SL.\u0275fac=function(a){return new (a||SL)};SL.\u0275pipe=td({name:"toDateTime",type:SL,pure:!0});var S2b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],TL=function(a,b,c){Y.call(this);var d=this;this.overlay=a;this.element=b;this.hostEl=c;this.openOnEnter=this.openOnClick=!0;this.required=this.focusTrapHost=!1;this.selectedChange=new Yu;this.dateSelectionChange=new Yu;this.onClose=
new Yu;this.opened=!1;this.destroyed$.subscribe(function(){var e;null==(e=d.overlayRef)||e.dispose()})};W(TL,Y);g=TL.prototype;g.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};g.close=function(a){a=void 0===a?!1:a;if(this.opened){var b;null==(b=this.overlayRef)||b.dispose();this.overlayRef=void 0;this.opened=!1;a||this.hostEl.nativeElement.focus();this.onClose.emit()}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-date-time-picker-backdrop",panelClass:"b-date-time-picker-popup"});a.overlayElement.setAttribute("role","dialog");return a};g.attach=function(){var a=this,b=new Sw(RL),c;this.pickerContent=null==(c=this.overlayRef)?void 0:c.attach(b).instance;var d;null==(d=this.overlayRef)||d.updatePosition();setTimeout(function(){T2b(a)})};
g.getPositionStrategy=function(){return Ky(Ly(My(Oy(this.overlay.position(),this.element)),8),S2b)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
var T2b=function(a){if(a.pickerContent&&a.overlayRef){var b=(0,B.merge)(a.overlayRef._detachments,a.destroyed$);a.pickerContent.date=a.selected;a.pickerContent.required=a.required;a.pickerContent.trapFocus=!a.focusTrapHost;a.focusTrapHost&&a.pickerContent.focusEscaped.pipe(Af(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});a.pickerContent.dateChange.pipe(Af(b)).subscribe(function(c){a.selectedChange.emit(c)});a.pickerContent.dateSelectionChange.pipe(Af(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});
(0,B.merge)(a.pickerContent.saveClicked,a.pickerContent.cancelClicked,a.overlayRef.backdropClick(),a.overlayRef.keydownEvents().pipe(cf(function(c){return"Escape"===c.code}))).pipe(Af(b)).subscribe(function(){a.close()})}};TL.\u0275fac=function(a){return new (a||TL)(z(Py),z(ae),z(ae))};
TL.\u0275dir=sd({type:TL,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&L("click",function(c){b.openOnClick&&b.open();c.preventDefault();c.stopPropagation()})("keydown.enter",function(c){b.openOnEnter&&b.open();c.preventDefault();c.stopPropagation()})("keydown.tab",function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(Hw(b.pickerContent.focusEscapeNotifier),c.preventDefault())})("keydown.shift.tab",
function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&($Jb(b.pickerContent.focusEscapeNotifier),c.preventDefault())});a&2&&Nf("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter",focusTrapHost:["bDateTimePickerToggleFocusTrapHost","focusTrapHost"],required:["bDateTimePickerToggleRequired","required"],selected:["bDateTimePickerToggleSelected","selected"]},outputs:{selectedChange:"bDateTimePickerToggleSelectedChange",dateSelectionChange:"bDateTimePickerToggleDateSelectionChange",
onClose:"bDateTimePickerToggleOnClose"},exportAs:["bDateTimePickerToggle"],features:[Jf]});var U2b=["pickerToggle"],UL=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new Yu};UL.\u0275fac=function(a){return new (a||UL)};
UL.\u0275cmp=od({type:UL,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&zg(U2b,7);if(a&2){var c;yg(c=Bg())&&(b.pickerToggle=c.first)}},inputs:{customFormId:"customFormId",customAriaLabelledBy:"customAriaLabelledBy",value:"value",required:"required"},outputs:{valueChange:"valueChange"},exportAs:["bDateTimeInput"],decls:4,vars:7,consts:[["mat-stroked-button","","type","button","bDateTimePickerToggle","",1,"gmat-button",3,"id","bDateTimePickerToggleRequired","bDateTimePickerToggleSelected",
"bDateTimePickerToggleFocusTrapHost","bDateTimePickerToggleSelectedChange"],["pickerToggle","bDateTimePickerToggle"],["mode","date",3,"date",4,"ngIf"],[4,"ngIf"],["mode","date",3,"date"]],template:function(a,b){a&1&&(D(0,"button",0,1),L("bDateTimePickerToggleSelectedChange",function(c){b.value=c;b.valueChange.emit(c)}),P(2,BFa,1,1,"b-formatted-date-time",2),P(3,CFa,2,0,"ng-container",3),F());a&2&&(C("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),Nf("aria-labelledby",b.customAriaLabelledBy),w(2),C("ngIf",b.value),w(1),C("ngIf",!b.value))},dependencies:[TL,PL,Ez,Ev],styles:["/*# sourceMappingURL=date_time_input.css.map */"]});new Ad("ListOption");new Ad("ListOption");new Ad("MAT_LIST_CONFIG");new Ad("SelectionList");new Ad("MatList");new Ad("MatNavList");Th(Sh(function(){}));Sh(function(){});var VL=function(){};VL.\u0275fac=function(a){return new (a||VL)};VL.\u0275dir=sd({type:VL,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var WL=function(){};WL.\u0275fac=function(a){return new (a||WL)};WL.\u0275dir=sd({type:WL,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var V2b=["text"],W2b=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],X2b=Sh(function(){}),Y2b=Sh(function(){}),Z2b={provide:Uv,useExisting:fd(function(){return XL}),multi:!0},$2b=function(a,b){this.source=a;this.options=b},YL=function(a,b,c){var d=Y2b.call(this)||this;d._element=a;d._changeDetector=b;d.selectionList=c;d._selected=!1;d._disabled=!1;d._hasFocus=!1;d.selectedChange=new Yu;d.checkboxPosition="after";d._inputsInitialized=!1;return d};
W(YL,Y2b);g=YL.prototype;g.ngOnInit=function(){var a=this,b=this.selectionList;b._value&&b._value.some(function(d){return b.compareWith(a._value,d)})&&this._setSelected(!0);var c=this._selected;Promise.resolve().then(function(){if(a._selected||c)a.selected=!0,a._changeDetector.markForCheck()});this._inputsInitialized=!0};g.ngAfterContentInit=function(){ooa(this._lines,this._element)};
g.ngOnDestroy=function(){var a=this;this.selected&&Promise.resolve().then(function(){a.selected=!1});var b=this._hasFocus,c=this.selectionList._removeOptionFromList(this);b&&c&&c.focus()};g.toggle=function(){this.selected=!this.selected};g.focus=function(){this._element.nativeElement.focus()};g.getLabel=function(){return this._text?this._text.nativeElement.textContent||"":""};g._isRippleDisabled=function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple};
g._handleClick=function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent([this]))};g._handleFocus=function(){this.selectionList._setFocusedOption(this);this._hasFocus=!0};g._handleBlur=function(){this.selectionList._onTouched();this._hasFocus=!1};g._getHostElement=function(){return this._element.nativeElement};
g._setSelected=function(a){if(a===this._selected)return!1;(this._selected=a)?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this);this.selectedChange.emit(a);this._changeDetector.markForCheck();return!0};g._markForCheck=function(){this._changeDetector.markForCheck()};
Qh.Object.defineProperties(YL.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this.selectionList.color},set:function(a){this._color=a}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this.selected&&!this.selectionList.compareWith(a,this.value)&&this._inputsInitialized&&(this.selected=!1);this._value=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},
set:function(a){a=ah(a);a!==this._disabled&&(this._disabled=a,this._changeDetector.markForCheck())}},selected:{configurable:!0,enumerable:!0,get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(a){a=ah(a);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}}});YL.\u0275fac=function(a){return new (a||YL)(z(ae),z(xv),z(fd(function(){return XL})))};
YL.\u0275cmp=od({type:YL,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(Ag(c,VL,5),Ag(c,WL,5),Ag(c,$y,5));if(a&2){var d;yg(d=Bg())&&(b._avatar=d.first);yg(d=Bg())&&(b._icon=d.first);yg(d=Bg())&&(b._lines=d)}},viewQuery:function(a,b){a&1&&zg(V2b,5);if(a&2){var c;yg(c=Bg())&&(b._text=c.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:16,hostBindings:function(a,b){a&1&&L("focus",function(){return b._handleFocus()})("blur",function(){return b._handleBlur()})("click",
function(){return b._handleClick()});a&2&&(Nf("aria-selected",b.selected)("aria-disabled",b.disabled)("tabindex",-1)("mat-id-collision",null),Xf("mat-list-item-disabled",b.disabled)("mat-list-item-with-avatar",b._avatar||b._icon)("mat-primary","primary"===b.color)("mat-accent","primary"!==b.color&&"warn"!==b.color)("mat-warn","warn"===b.color)("mat-list-single-selected-option",b.selected&&!b.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",
value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[Jf],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(a,b){a&1&&(eg(W2b),D(0,"div",
0),G(1,"div",1),P(2,DFa,1,2,"mat-pseudo-checkbox",2),D(3,"div",3,4),fg(5),F(),fg(6,1),F());a&2&&(Xf("mat-list-item-content-reverse","after"==b.checkboxPosition),w(1),C("matRippleTrigger",b._getHostElement())("matRippleDisabled",b._isRippleDisabled()),w(1),C("ngIf",b.selectionList.multiple))},dependencies:[cz,dz,Ev],encapsulation:2,changeDetection:0});
var XL=function(a,b,c){var d=X2b.call(this)||this;d._element=a;d._changeDetector=b;d._focusMonitor=c;d._multiple=!0;d._contentInitialized=!1;d.selectionChange=new Yu;d.color="accent";d.compareWith=function(e,f){return e===f};d._disabled=!1;d.selectedOptions=new By(d._multiple);d._tabIndex=-1;d._onChange=function(){};d._destroyed=new B.Subject;d._onTouched=function(){};return d};W(XL,X2b);g=XL.prototype;
g.ngAfterContentInit=function(){var a=this;this._contentInitialized=!0;this._keyManager=oMb(hy(ly(pMb(iy(new oy(this.options)))),function(){return!1}));this._value&&this._setOptionsFromValues(this._value);this._keyManager.tabOut.subscribe(function(){return a._allowFocusEscape()});this.options.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){a._updateTabIndex()});this.selectedOptions.changed.pipe(Af(this._destroyed)).subscribe(function(b){if(b.added)for(var c=l(b.added),d=c.next();!d.done;d=
c.next())d.value.selected=!0;if(b.removed)for(b=l(b.removed),d=b.next();!d.done;d=b.next())d.value.selected=!1});this._focusMonitor.monitor(this._element).pipe(Af(this._destroyed)).subscribe(function(b){if("keyboard"===b||"program"===b){for(var c=b=0;c<a.options.length;c++){var d=void 0;if(null==(d=a.options.get(c))?0:d.selected){b=c;break}}a._keyManager.setActiveItem(b)}})};g.ngOnChanges=function(a){var b=a.disableRipple;a=a.color;(b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};
g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this._focusMonitor.stopMonitoring(this._element);this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0};g.focus=function(a){this._element.nativeElement.focus(a)};g.selectAll=function(){this._setAllOptionsSelected(!0)};g.deselectAll=function(){return this._setAllOptionsSelected(!1)};g._setFocusedOption=function(a){my(this._keyManager,a)};
g._removeOptionFromList=function(a){a=this._getOptionIndex(a);-1<a&&this._keyManager.activeItemIndex===a&&(0<a?my(this._keyManager,a-1):0===a&&1<this.options.length&&my(this._keyManager,Math.min(a+1,this.options.length-1)));return this._keyManager.activeItem};
g._keydown=function(a){var b=a.keyCode,c=this._keyManager,d=c.activeItemIndex,e=eh(a);switch(b){case 32:case 13:e||0<c._pressedLetters.length||(this._toggleFocusedOption(),a.preventDefault());break;default:if(65!==b||!this.multiple||!eh(a,"ctrlKey")||0<c._pressedLetters.length)c.onKeydown(a);else e=this.options.some(function(f){return!f.disabled&&!f.selected}),this._setAllOptionsSelected(e,!0,!0),a.preventDefault()}this.multiple&&(38===b||40===b)&&a.shiftKey&&c.activeItemIndex!==d&&this._toggleFocusedOption()};
g._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};g._emitChangeEvent=function(a){this.selectionChange.emit(new $2b(this,a))};g.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};g.setDisabledState=function(a){this.disabled=a};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};
g._setOptionsFromValues=function(a){var b=this;this.options.forEach(function(c){return c._setSelected(!1)});a.forEach(function(c){var d=b.options.find(function(e){return e.selected?!1:b.compareWith(e.value,c)});d&&d._setSelected(!0)})};g._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};
g._toggleFocusedOption=function(){var a=this._keyManager.activeItemIndex;null!=a&&this._isValidIndex(a)&&(!(a=this.options.toArray()[a])||a.disabled||!this._multiple&&a.selected||(a.toggle(),this._emitChangeEvent([a])))};g._setAllOptionsSelected=function(a,b,c){var d=[];this.options.forEach(function(e){b&&e.disabled||!e._setSelected(a)||d.push(e)});d.length&&(this._reportValueChange(),c&&this._emitChangeEvent(d));return d};g._isValidIndex=function(a){return 0<=a&&a<this.options.length};
g._getOptionIndex=function(a){return this.options.toArray().indexOf(a)};g._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};g._allowFocusEscape=function(){var a=this;this._tabIndex=-1;setTimeout(function(){a._tabIndex=0;a._changeDetector.markForCheck()})};g._updateTabIndex=function(){this._tabIndex=0===this.options.length?-1:0};
Qh.Object.defineProperties(XL.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=ah(a);this._markOptionsForCheck()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=ah(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new By(this._multiple,this.selectedOptions.selected))}}});XL.\u0275fac=function(a){return new (a||XL)(z(ae),z(xv),z(Ow))};
XL.\u0275cmp=od({type:XL,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&Ag(c,YL,5);if(a&2){var d;yg(d=Bg())&&(b.options=d)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:4,hostBindings:function(a,b){a&1&&L("keydown",function(c){return b._keydown(c)});a&2&&Nf("aria-multiselectable",b.multiple)("aria-disabled",b.disabled.toString())("tabindex",b._tabIndex)("mat-id-collision",null)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",
disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[lg([Z2b]),Jf,Fd],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],
encapsulation:2,changeDetection:0});var ZL=function(){};ZL.\u0275fac=function(a){return new (a||ZL)};ZL.\u0275mod=qd({type:ZL});ZL.\u0275inj=ad({imports:[az,ez,Ty,fz,Sv,az,Ty,fz,iD]});var a3b=["filterInput"],$L=function(a){Y.call(this);this.dateFormatter=a;this.enumChoices=[];this.onSave=new Yu;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};W($L,Y);$L.\u0275dir=Y.\u0275dir;g=$L.prototype;g.ngOnInit=function(){this.initValues()};g.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};g.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(zf(function(){return(0,B.timer)(0)}),Af(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){this.trigger.openMenu()};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;null==(a=this.filterElement)||a.nativeElement.focus()};var b3b=function(a){return a.filterValue&&"REPEATED_DATE"!==a.type?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
$L.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),c3b(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};$L.prototype.valueChanged=function(){var a=this;return Array.from(this.valueMap.keys()).some(function(b){var c=a.valueMap.get(b);b=a.originalValueMap.get(b);return c||void 0!==b?c!==b:!1})};
$L.prototype.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=l(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);c3b(this)};
var c3b=function(a){a.sortedValues=Array.from(a.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:!1===c?-1:0)-(b?1:!1===b?-1:0)})},FFa=function(a){return!!a.filterValue&&"REPEATED_ENUM"!==a.type&&"REPEATED_DATE"!==a.type};$L.prototype.getDisplayString=function(a){return"REPEATED_DATE"===this.type?this.dateFormatter.formatUserCalendar(ri(a)):a};$L.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
$L.\u0275fac=function(a){return new (a||$L)(z(HL))};
$L.\u0275cmp=od({type:$L,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(zg(zB,5),zg(a3b,5));if(a&2){var c;yg(c=Bg())&&(b.trigger=c.first);yg(c=Bg())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},features:[Jf,Fd],decls:13,vars:7,consts:[["mat-button","","type","button",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["customFieldMenu",
"matMenu"],["class","multi-edit-menuitem","role","option",3,"title",4,"ngFor","ngForOf"],[1,"filter"],["mat-input","","step","any",3,"type","ngModel","placeholder","keydown","click","ngModelChange",4,"ngIf"],[4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["role","option",1,"multi-edit-menuitem",3,"title"],[3,"checked","indeterminate","change","click"],["mat-input","","step","any",3,"type","ngModel","placeholder","keydown","click","ngModelChange"],["filterInput",""],["mat-menu-item","",3,"click"],
[3,"value","valueChange"],["mat-menu-item","","aria-label","Add a date value","tabindex","0","aria-haspopup","true",3,"click"]],template:function(a,b){a&1&&(D(0,"button",0)(1,"span"),Q(2),F(),G(3,"b-icon",1),F(),D(4,"mat-menu",null,2),P(6,EFa,3,4,"div",3),G(7,"mat-divider"),D(8,"div",4),P(9,GFa,2,3,"input",5),F(),P(10,HFa,1,0,"mat-divider",6),P(11,IFa,2,0,"div",7),P(12,JFa,4,1,"div",6),F());if(a&2){var c=N(5);C("matMenuTriggerFor",c);w(2);jg(b.getLabel());w(4);C("ngForOf",b3b(b));w(3);C("ngIf","REPEATED_DATE"!==
b.type);w(1);C("ngIf",FFa(b));w(1);C("ngIf",FFa(b));w(1);C("ngIf","REPEATED_DATE"===b.type)}},dependencies:[Dv,Ev,AB,yB,zB,dD,bD,Ez,PK,Tg,hw,ow,UL],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});var aM=function(){this.relayOnly=!1;this.keydown$=new B.Subject};aM.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};Qh.Object.defineProperties(aM.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});aM.\u0275fac=function(a){return new (a||aM)};
aM.\u0275dir=sd({type:aM,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&L("keydown",function(c){return b.onKeydown(c)});a&2&&Nf("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"}});var d3b=0,bM=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+d3b;this.closePanel$=new B.ReplaySubject(1);d3b++};bM.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;("Escape"===b||a.altKey&&"ArrowUp"===b)&&this.closePanel$.next()};bM.\u0275fac=function(a){return new (a||bM)(z(aM,8))};
bM.\u0275cmp=od({type:bM,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&zg(vg,7);if(a&2){var c;yg(c=Bg())&&(b.templateRef=c.first)}},inputs:{className:"className"},exportAs:["onedevPopupPanel"],ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"onedev-popup-panel","gmat-elevation-z2",3,"keydown"]],template:function(a){a&1&&(eg(),P(0,KFa,2,3,"ng-template"))},styles:[".onedev-popup-panel{background-color:var(--surface-default,#fff);border-radius:4px;overflow:auto}.onedev-popup-panel:focus{outline:0}"],
encapsulation:2});var cM=function(a,b,c,d,e){this.overlay=a;this.element=b;this.viewContainerRef=c;this.focusTrapFactory=d;this.cdr=e;this.disabled=!1;this.closeOnBackdropClick=!0;this.opened=new Yu;this.closed=new Yu;this.isOpen=!1;this.destroyed$=new B.ReplaySubject(1);this.closingActionsSubscription=B.Subscription.EMPTY};cM.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
cM.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new Tw(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=e3b(this).pipe(Af(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
cM.prototype.close=function(){if(this.isOpen){this.isOpen=!1;var a;if(null==(a=this.overlayRef)?0:a.hasAttached())this.overlayRef.detach(),this.overlayRef.dispose();this.focusTrap&&this.focusTrap.destroy();this.closingActionsSubscription.unsubscribe();this.element.nativeElement.focus();this.closed.emit();this.cdr.markForCheck()}};
cM.prototype.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();return this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"onedev-popup-panel-backdrop"})};var e3b=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?(0,B.merge)(b,c,d):(0,B.merge)(c,d)};
cM.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
cM.prototype.getPositionStrategy=function(){return Ky(Ly(My(Oy(this.overlay.position(),this.element)),8),[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])};cM.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
Qh.Object.defineProperties(cM.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});cM.\u0275fac=function(a){return new (a||cM)(z(Py),z(ae),z(wg),z(fy),z(xv))};
cM.\u0275dir=sd({type:cM,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&Nf("aria-disabled",b.disabled)("aria-expanded",b.isOpen||null)("aria-controls",b.isOpen?b.popupPanel.id:null)},inputs:{onedevPopupPanelTriggerFor:"onedevPopupPanelTriggerFor",disabled:["onedevPopupPanelTriggerDisabled","disabled"],closeOnBackdropClick:["onedevPopupPanelTriggerCloseOnBackdropClick","closeOnBackdropClick"]},outputs:{opened:"onedevPopupPanelTriggerOpened",
closed:"onedevPopupPanelTriggerClosed"},exportAs:["onedevPopupPanelTrigger"],standalone:!0});var dM=function(){};dM.\u0275fac=function(a){return new (a||dM)};dM.\u0275mod=qd({type:dM});dM.\u0275inj=ad({imports:[Sv,Sy,Yw,SB,FC,ay,OJ]});var f3b=0,eM=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+f3b;f3b+=1};eM.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};eM.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};eM.\u0275fac=function(a){return new (a||eM)(z(xv))};
eM.\u0275dir=sd({type:eM,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(cg("id",b.id),Xf("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"]});var fM=function(){};fM.\u0275fac=function(a){return new (a||fM)};fM.\u0275mod=qd({type:fM});fM.\u0275inj=ad({});var MFa=function(){return{$implicit:void 0}},PFa=function(a){return{$implicit:a}},gM=function(a){this.includeEmptyOption=this.disabled=!1;this.valueChange=new Yu;this.selected=new Yu;this.destroyed$=new B.ReplaySubject(1);a&&this.handleKeydown(a.keydown$)};g=gM.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=jy(iy(new ny(this.viewOptions)))};g.ngOnChanges=function(a){a.value&&g3b(this)};
g.isSelected=function(a){return this.value===a};g.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};var g3b=function(a){if(a.keyManager)if(a.includeEmptyOption&&a.isSelected(void 0))a.keyManager.setActiveItem(0);else{var b=a.options.findIndex(function(c){return a.isSelected(c)});-1!==b&&(a.keyManager.setActiveItem(a.includeEmptyOption?b+1:b),h3b(a))}};gM.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
gM.prototype.handleKeydown=function(a){var b=this;a.pipe(Af(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;"ArrowUp"===d||"ArrowDown"===d?(c.preventDefault(),b.keyManager.onKeydown(c),h3b(b)):"Home"===d||"End"===d?(c.preventDefault(),"Home"===d?b.keyManager._setActiveItemByIndex(0,1):rMb(b.keyManager),h3b(b)):"Enter"!==d&&"Space"!==d||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};
var h3b=function(a){var b,c;if(a=null==(b=a.keyManager)?void 0:null==(c=b.activeItem)?void 0:c.id){var d;null==(d=document.getElementById(a))||d.scrollIntoView({block:"nearest"})}};gM.\u0275fac=function(a){return new (a||gM)(z(aM,8))};
gM.\u0275cmp=od({type:gM,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&zg(eM,5);if(a&2){var c;yg(c=Bg())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&L("focus",function(){return g3b(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,Nf("aria-activedescendant",a)("aria-disabled",b.disabled)("aria-label",b.label))},inputs:{value:"value",options:"options",
optionTemplate:"optionTemplate",disabled:"disabled",includeEmptyOption:"includeEmptyOption",label:"label"},outputs:{valueChange:"valueChange",selected:"selected"},features:[Fd],decls:4,vars:2,consts:[["role","option","onedevListOption","",3,"option","click",4,"ngIf"],[4,"ngFor","ngForOf"],["optionDisplay",""],["role","option","onedevListOption","",3,"option","click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["customOptionDisplay",""],["emptyOption",""],["aria-label",
"empty"]],template:function(a,b){a&1&&(P(0,NFa,2,5,"div",0),P(1,SFa,2,1,"ng-container",1),P(2,YFa,3,2,"ng-template",null,2,Eg));a&2&&(C("ngIf",b.includeEmptyOption),w(1),C("ngForOf",b.options))},dependencies:[Dv,Ev,Jv,eM],styles:["[role=option][_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;color:var(--text-default)}[role=option][_ngcontent-%COMP%]:hover{cursor:pointer}[role=option].active[_ngcontent-%COMP%], [role=option][_ngcontent-%COMP%]:active{background-color:var(--option-active-bg,#e8f0fe)}[role=option][aria-selected=true][_ngcontent-%COMP%]{background-color:var(--option-selected-bg,#d2e3fc)}"],
changeDetection:0});var hM=function(){};var i3b=["trigger"],$Fa=function(a){return{$implicit:a}},j3b=0,iM=function(a){this.includeEmptyOption=this.disabled=!1;this.label="";this.valueChange=new Yu;this.displayArrowIcon=!0;this.focused=this.required=this.openPopupOnInit=!1;this.contentId="onedev-single-select-"+j3b;this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0;j3b++};W(iM,hM);g=iM.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};g.writeValue=function(a){this.val=a};g.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};g.isActive=function(){return this.popupTrigger.isOpen||this.focused};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.registerOnChange=function(a){this.onChange=a};
g.registerOnTouched=function(a){this.onTouched=a};var k3b=function(a){var b="";a.label&&(b+=a.label+", ");a.required&&(b+="required, ");return b};iM.prototype.setDisabledState=function(a){this.disabled=a};Qh.Object.defineProperties(iM.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});iM.\u0275fac=function(a){return new (a||iM)(Ud("required"))};
iM.\u0275cmp=od({type:iM,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&zg(i3b,7);if(a&2){var c;yg(c=Bg())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",openPopupOnInit:"openPopupOnInit"},outputs:{valueChange:"valueChange"},features:[lg([{provide:Uv,useExisting:fd(function(){return iM}),
multi:!0},{provide:hM,useExisting:fd(function(){return iM}),multi:!0}]),Jf],decls:13,vars:17,consts:[["onedevPopupPanelTrigger","",3,"onedevPopupPanelTriggerDisabled","disabled","onedevPopupPanelTriggerFor","focus","blur","click","closed"],["trigger","onedevPopupPanelTrigger"],[1,"cdk-visually-hidden"],[4,"ngIf","ngIfElse"],["optionTemplateOrTextLabel",""],["textLabel",""],["class","arrow-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],["onedevKeyEventReceiver","",3,"relayOnly"],
["panel","onedevPopupPanel"],["tabindex","0",1,"single-select-panel",3,"value","includeEmptyOption","options","optionTemplate","label","valueChange","selected"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["emptyValue",""],["aria-label","empty"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"arrow-icon"],["d","M7 10l5 5 5-5H7z"]],template:function(a,b){if(a&1){var c=r();D(0,"button",0,1);L("focus",function(){return b.focused=!0})("blur",function(){return b.focused=!1})("click",
function(){t(c);var f=N(1);return v(f.open())})("closed",function(){b.onTouched()});D(2,"span",2);Q(3);F();P(4,aGa,2,4,"ng-container",3);P(5,dGa,1,2,"ng-template",null,4,Eg);P(7,gGa,3,2,"ng-template",null,5,Eg);P(9,hGa,2,0,"svg",6);F();D(10,"onedev-popup-panel",7,8)(12,"onedev-selectable-list",9);L("valueChange",function(f){return b.onSelectionChange(f)})("selected",function(){t(c);var f=N(1);return v(f.close())});F()()}if(a&2){var d=N(6),e=N(11);Xf("active",b.isActive());C("onedevPopupPanelTriggerDisabled",
b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",e);Nf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());w(3);jg(k3b(b));w(1);C("ngIf",b.valueTemplate)("ngIfElse",d);w(5);C("ngIf",b.displayArrowIcon);w(1);C("relayOnly",!0);w(2);C("value",b.value)("includeEmptyOption",b.includeEmptyOption)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)}},dependencies:[Ev,Jv,aM,gM,bM,cM],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;font-size:13px;padding:4px 4px 4px 6px;text-align:start}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.arrow-icon[_ngcontent-%COMP%]{margin-left:auto;width:18px;height:18px;color:var(--icon,#5f6368);fill:currentColor}.single-select-panel[_ngcontent-%COMP%]{display:block;min-width:85px;max-height:300px}.single-select-panel[_ngcontent-%COMP%]:focus{outline:0}"]});var oGa=function(){return[]},jM=function(a,b){this.data=a;this.dialogRef=b;this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=[];this.bulkEditOps=[];this.issues=a};g=jM.prototype;
g.ngOnInit=function(){for(var a=new Map,b=null,c=l(this.issues),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.customFieldMap;e=e.customFieldValueMap;if(!b){b=new Map;for(var f=l(Object.keys(d)),h=f.next();!h.done;h=f.next())h=h.value,b.set(qi(h),e[h]||void 0)}f=l(b);for(h=f.next();!h.done;h=f.next()){var k=l(h.value);h=k.next().value;k=k.next().value;var q=d[h],u=e[h],x=void 0,y=null==(x=q)?void 0:x.type;if(q)if("REPEATED_DATE"===y||"REPEATED_ENUM"===y||"REPEATED_NUMERIC"===y||"REPEATED_TEXT"===
y){k=this.repeatedCustomFieldsMap.get(h)||new Map;q=0===k.size;u=l3b(u);x=Array.from(k.keys()).concat(u);x=l(x);for(y=x.next();!y.done;y=x.next())y=y.value,u.includes(y)?k.has(y)||k.set(y,q||null):k.set(y,null);this.repeatedCustomFieldsMap.set(h,k)}else(!u&&void 0!==k||u&&!ki(u,k))&&b.set(h,null);else b.delete(h)}d=l(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=l(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),li(f))}this.customFields=Array.from(b.keys()).map(function(E){return a.get(E)}).filter(function(E){return E});
this.customFields=this.customFields.map(function(E){var H=b.get(E.customFieldId);E.hasMultipleValues=null===H;H?E=Object.assign(H,E):E.hasMultipleValues||"ENUM"!==E.type||(E.enumValue="");return E});c=l(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,li(d))};
g.clearCustomFieldValue=function(a){a.hasMultipleValues=!1;switch(a.type){case "TEXT":a.textValue="";break;case "DATE":a.dateValue=null;break;case "ENUM":a.enumValue="";break;case "NUMERIC":a.numericValue=null}};g.getCustomFieldName=function(a){return a.name};g.isCustomFieldRequired=function(a){return a.required};g.getCustomFieldAllowedValues=function(a){return a.allowedValue};g.getCustomFieldType=function(a){return a.type};
var ko=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},l3b=function(a){if(!a)return[];var b=a.repeatedTextValue||a.repeatedDateValue||a.repeatedEnumValue||a.repeatedNumericValue;return b?b.values.map(function(c){return a.repeatedDateValue?c.month+"/"+c.day+"/"+c.year:c.toString()}):[]},mGa=function(a){return a?ul(a):null},qGa=function(a,b,c){for(var d=l(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(x){return x.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(x){return x.actions.length});if(c.valueChanged){d=l(a.issues);var f=d.next();for(e={};!f.done;e={issueValues$jscomp$1:e.issueValues$jscomp$1,action$jscomp$47:e.action$jscomp$47},f=d.next()){f=f.value;var h=tca(f.customFieldValueMap,function(x){return x.customFieldId===b});e.issueValues$jscomp$1=l3b(h);c.valueMap.forEach(function(x){return function(y,E){y&&!x.issueValues$jscomp$1.includes(E)?x.issueValues$jscomp$1.push(E):!1===y&&(x.issueValues$jscomp$1=
x.issueValues$jscomp$1.filter(function(H){return H!==E}))}}(e));h=a.originalCustomFields.get(b).type;var k=[],q=[];"REPEATED_DATE"==h?k=e.issueValues$jscomp$1.map(function(x){return vl(ri(x))}):"REPEATED_NUMERIC"==h&&(q=e.issueValues$jscomp$1.map(function(x){return Number(x)}));var u=new xl({customFieldId:b});switch(h){case "REPEATED_TEXT":u.repeatedTextValue={values:e.issueValues$jscomp$1};break;case "REPEATED_DATE":u.repeatedDateValue={values:k};break;case "REPEATED_ENUM":u.repeatedEnumValue={values:e.issueValues$jscomp$1};
break;case "REPEATED_NUMERIC":u.repeatedNumericValue={values:q}}e.action$jscomp$47={fieldName:"customField",customFieldValue:u,actionType:u.isEmpty()?"REMOVE":"ADD"};h=a.bulkEditOps.findIndex(function(x){return function(y){return y.actions.some(function(E){return ki(x.action$jscomp$47,E)})}}(e));-1!==h?a.bulkEditOps[h].issueIds.push(f.issueId):a.bulkEditOps.push({actions:[e.action$jscomp$47],issueIds:[f.issueId]})}}},m3b=function(a){var b=a.customFields.filter(function(k){return!k.type.includes("REPEATED")&&
!ki(k,a.originalCustomFields.get(k.customFieldId))}),c=[];b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=new xl({customFieldId:e.customFieldId});switch(e.type){case "TEXT":d.textValue=e.textValue;break;case "DATE":d.dateValue=e.dateValue||void 0;break;case "ENUM":d.enumValue=e.enumValue;break;case "NUMERIC":var f=void 0;d.numericValue=null!=(f=e.numericValue)?f:void 0}if(e=d.isEmpty())d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var h=
a.issues.map(function(k){return k.issueId});b=a.bulkEditOps.findIndex(function(k){a:if(k=k.issueIds,Ca(h)&&Ca(k)&&h.length==k.length){for(var q=h.length,u=0;u<q;u++)if(h[u]!==k[u]){k=!1;break a}k=!0}else k=!1;return k});-1!==b?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:h})}};jM.\u0275fac=function(a){return new (a||jM)(z(Tz),z(Rz))};
jM.\u0275cmp=od({type:jM,selectors:[["b-bulk-custom-field-dialog"]],decls:10,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],["class","bv2-create-adv-field",4,"ngFor","ngForOf"],["mat-button","","mat-dialog-close","","type","button",3,"class"],["mat-flat-button","","type","button","color","primary",1,"gmat-button","medium","dialog-primary-action","save",3,"click"],[1,"bv2-create-adv-field"],[1,"bv2-top-field-label"],["matTooltipPosition","right",3,"matTooltip"],[3,"ngIf","ngIfElse"],["multipleValues",
""],[3,"ngSwitch"],["name","customInput","placeholder","no value","type","text",3,"ngModel","ngModelChange",4,"ngSwitchCase"],["step","any","name","customInput","type","number",3,"ngModel","ngModelChange",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"value","options","valueChange",4,"ngSwitchCase"],[3,"type","originalValueMap","enumChoices","onSave",4,"ngSwitchDefault"],["name","customInput","placeholder","no value","type","text",3,"ngModel","ngModelChange"],["step","any","name","customInput","type","number",
3,"ngModel","ngModelChange"],[3,"value","required","customAriaLabelledBy","customFormId","valueChange"],[3,"value","options","valueChange"],[3,"type","originalValueMap","enumChoices","onSave"],["title","Clear values",3,"click"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Update custom fields"),F(),D(2,"mat-dialog-content"),P(3,iGa,2,0,"div",1),P(4,uGa,8,6,"div",2),F(),D(5,"mat-dialog-actions")(6,"button",3),L("class",function(){return b.dialogRef.close()}),Q(7,"Cancel"),F(),D(8,"button",4),L("click",
function(){m3b(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),Q(9," Save "),F()());a&2&&(w(3),C("ngIf",0===b.customFields.length),w(1),C("ngForOf",b.customFields))},dependencies:[Dv,Ev,Fv,Gv,Hv,Vz,Wz,Xz,Yz,iM,$L,Tg,qw,hw,ow,UL,Ez,FB],encapsulation:2});var kM=function(){};kM.\u0275fac=function(a){return new (a||kM)};kM.\u0275mod=qd({type:kM});kM.\u0275inj=ad({imports:[aD]});var n3b=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,o3b=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,p3b=function(a){this.patternParts_=[];this.dateTimeSymbols_=yz;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)};
p3b.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(n3b.test(e))for(0<c.length&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=""),this.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});d<a.length-1&&" "==a.charAt(d+1);)d++;else if(b)"'"==e?d+1<a.length&&"'"==a.charAt(d+1)?(c+="'",d++):b=!1:c+=e;else if(0<="GyMdkHmsSEDabBhKzZvQL".indexOf(e)){0<c.length&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),
c="");for(var f=a.charAt(d),h=d+1;h<a.length&&a.charAt(h)==f;)h++;f=h-d;0>=f?h=!1:(h="MydhHmsSDkK".indexOf(e),h=0<h||0==h&&3>f);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:h});d+=f-1}else"'"==e?d+1<a.length&&"'"==a.charAt(d+1)?(c+="'",d++):b=!0:c+=e}0<c.length&&this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1});a=!1;for(b=0;b<this.patternParts_.length;b++)this.patternParts_[b].numeric?!a&&b+1<this.patternParts_.length&&this.patternParts_[b+1].numeric&&(a=!0,this.patternParts_[b].abutStart=
!0):a=!1};p3b.prototype.applyStandardPattern_=function(a){11<a&&(a=10);if(4>a)var b=this.dateTimeSymbols_.DATEFORMATS[a];else 8>a?b=this.dateTimeSymbols_.TIMEFORMATS[a-4]:(b=this.dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.dateTimeSymbols_.TIMEFORMATS[a-8]));this.applyPattern_(b)};
p3b.prototype.parse=function(a,b,c){var d=!1,e=!1;c&&(d=c.predictive||!1,e=c.validate||!1);if(d)for(c=0;c<this.patternParts_.length;c++){var f=this.patternParts_[c];if(0<f.count&&(0>"abBhHkKm".indexOf(f.text.charAt(0))||2<f.count||f.abutStart))throw Error("cd`"+f.text.charAt(0));}f=new q3b;c=[0];f.dayPeriodIndex=-1;for(var h=0;h<this.patternParts_.length&&!(d&&c[0]>=a.length);h++){if(0==this.patternParts_[h].count){a:{var k=a;var q=this.patternParts_[h],u=d;if(null!=q.text.match(n3b)){if(q=c[0],r3b(k,
c),c[0]>q){k=!0;break a}}else{if(k.indexOf(q.text,c[0])==c[0]){c[0]+=q.text.length;k=!0;break a}if(u&&0==q.text.indexOf(k.substring(c[0]))){c[0]+=k.length-c[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[h].abutStart){a:{q=a;u=h;var x=c[0],y=0;for(k=u;k<this.patternParts_.length;k++){var E=this.patternParts_[k],H=E.count;if(0===H)break;if(k==u&&(H-=y,y++,0==H)){k=0;break a}var J=k>u&&E.numeric,O=c[0];if(!s3b(this,q,c,E,H,f,!1)||J&&c[0]-O<H)k=u-1,c[0]=x}k-=u}if(0>=k)return 0;h+=
k-1}else if(!s3b(this,a,c,this.patternParts_[h],0,f,d))return 0}a:{a=e;if(null==b)throw Error("dd");void 0!=f.era&&void 0!=f.year&&0==f.era&&0<f.year&&(f.year=-(f.year-1));void 0!=f.year&&b.setFullYear(f.year);d=b.getDate();b.setDate(1);void 0!=f.month&&b.setMonth(f.month);void 0!=f.day?b.setDate(f.day):(e=DNb(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));"function"===typeof b.setHours&&(void 0==f.hours&&(f.hours=b.getHours()),12>f.hours&&(void 0!=f.ampm&&0<f.ampm?f.hours+=12:void 0!==f.dayPeriodName&&
("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(f.dayPeriodName)||["night1","night2"].includes(f.dayPeriodName)&&6<=f.hours)&&(f.hours+=12)),b.setHours(f.hours));"function"===typeof b.setMinutes&&void 0!=f.minutes&&b.setMinutes(f.minutes);"function"===typeof b.setSeconds&&void 0!=f.seconds&&b.setSeconds(f.seconds);"function"===typeof b.setMilliseconds&&void 0!=f.milliseconds&&b.setMilliseconds(f.milliseconds);if(a&&(f.year&&f.year!=b.getFullYear()||f.month&&f.month!=b.getMonth()||
f.day&&f.day!=b.getDate()||f.hours&&24<=f.hours||f.minutes&&60<=f.minutes||f.seconds&&60<=f.seconds||f.milliseconds&&1E3<=f.milliseconds))b=!1;else{void 0!=f.tzOffset&&b.setTime(b.getTime()+6E4*(f.tzOffset-b.getTimezoneOffset()));f.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),b.getTime()<a.getTime()&&b.setFullYear(a.getFullYear()+100));if(void 0!=f.dayOfWeek)if(void 0==f.day)f=(7+f.dayOfWeek-b.getDay())%7,3<f&&(f-=7),a=b.getMonth(),b.setDate(b.getDate()+f),b.getMonth()!=a&&b.setDate(b.getDate()+
(0<f?-7:7));else if(f.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0};
var s3b=function(a,b,c,d,e,f,h){r3b(b,c);if(d.numeric&&0<e&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return lM(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return t3b(a,b,c,e,d,f);case "E":return lM(b,c,[a.dateTimeSymbols_.WEEKDAYS,a.dateTimeSymbols_.SHORTWEEKDAYS],function(k){return f.dayOfWeek=k});case "B":case "b":return e=[],a=[[].concat(a.dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),b=lM(b,c,a,function(k){return f.dayPeriodIndex=
k},h),f.dayPeriodName=e[f.dayPeriodIndex],h?b:!0;case "a":return b=lM(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},h),h?b:!0;case "y":return u3b(a,b,c,d,e,f);case "Q":return lM(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=3*k;f.day=1});case "d":return mM(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return v3b(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=mM(a,b,c,d,e,function(k){f.hours="h"===d.text.charAt(0)&&12===k?0:k},h),h?b:!0;
case "m":return b=mM(a,b,c,d,e,function(k){f.minutes=k},h),h?b:!0;case "s":return mM(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return w3b(a,b,c,f);default:return!1}},u3b=function(a,b,c,d,e,f){var h=c[0];e=nM(a,b,c,e);null===e&&(e=nM(a,b,c,0,!0));if(null===e)return!1;0<=e&&2==c[0]-h&&2==d.count?(a=e,b=(new Date).getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=100*Math.floor(b/100)+(a<c?100:0),f.year=a):f.year=e;return!0},t3b=function(a,b,c,d,e,f){return e.numeric&&mM(a,b,c,
e,d,function(h){f.month=h-1})?!0:lM(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},v3b=function(a,b,c,d,e){var f=c[0];a=nM(a,b,c,d);if(null===a)return!1;c=c[0]-f;e.milliseconds=3>c?a*Math.pow(10,3-c):Math.round(a/Math.pow(10,c-3));return!0},w3b=function(a,b,c,d){b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);if(c[0]>=b.length)return d.tzOffset=0,!0;var e=c[0],f=nM(a,b,c,0,!0);if(null===f)return!1;
if(c[0]<b.length&&":"==b.charAt(c[0])){var h=60*f;c[0]++;f=nM(a,b,c,0);if(null===f)return!1;h+=f}else h=f,h=24>h&&3>=c[0]-e?60*h:h%100+h/100*60;d.tzOffset=-h;return!0},mM=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=nM(a,b,c,e);if(null===a)return!1;if(h&&c[0]-k<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-k))}f(a);return!0},lM=function(a,b,c,d,e){e=e||!1;for(var f,h=0;h<c.length;h++){f=b;for(var k=c[h],q=e,u=0,x=null,y=a.substring(f[0]).toLowerCase(),E=0;E<k.length;E++){var H=k[E].toLowerCase();
if(q&&0==H.indexOf(y)){u=y.length;x=E;break}k[E].length>u&&0==y.indexOf(H)&&(u=k[E].length,x=E)}null!==x&&(f[0]+=u);f=x;if(null!==f)return d(f),!0}return!1},r3b=function(a,b){(a=a.substring(b[0]).match(o3b))&&(b[0]+=a[0].length)},nM=function(a,b,c,d,e){b=0<d?b.substring(0,c[0]+d):b;e=e||!1;if(a.dateTimeSymbols_.ZERODIGIT){d=[];for(var f=c[0];f<b.length;f++){var h=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=h&&9>=h?String.fromCharCode(h+48):b.charAt(f))}b=d.join("")}else b=b.substring(c[0]);
a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},q3b=function(){};q3b.prototype.ambiguousYear=!1;var xNb=Array(31).fill(0).map(function(a,b){return""+(b+1)}),oM=function(){var a=Uy.apply(this,arguments)||this;a.locale=yz;return a};W(oM,Uy);oM.prototype.setLocale=function(){throw Error("ed");};oM.prototype.getYear=function(a){return a.getYear()};oM.prototype.getMonth=function(a){return a.getMonth()};oM.prototype.getDate=function(a){return a.getDate()};var wNb=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
oM.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};oM.prototype.clone=function(a){return a.clone()};var tz=function(a,b,c){return new Bn(a,b,c)};oM.prototype.parse=function(a,b){if(""===a)return null;b=new p3b(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new Bn(new Date(a));b.parse(a,c);return c};oM.prototype.format=function(a,b){if(!this.isValid(a))throw Error("fd");return(new Az(b)).format(a)};
var rz=function(a,b){a=a.clone();a.add(new zz(b));return a},sz=function(a,b){a=a.clone();a.add(new zz(0,b));return a},qz=function(a,b){a=a.clone();a.add(new zz(0,0,b));return a},Vy=function(a){return a instanceof Bn};oM.prototype.isValid=function(a){return!isNaN(a.getTime())};oM.prototype.invalid=function(){return new Bn(NaN)};oM.prototype.sameDate=function(a,b){return a&&b?(new pi(a)).equals(b):!1};oM.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(oM)))(b||oM)}}();
oM.\u0275prov=$c({token:oM,factory:oM.\u0275fac});var x3b={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",YEAR_MONTH_SHORT:"MM/y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d",MONTH_DAY_TIME_ZONE_SHORT:"MMM d, h:mm\u202fa zzzz"},pM=x3b;pM=x3b;var qM=yz.DATEFORMATS[3];qM=qM.replace(/yyyy/,"yy").replace(/yy/,"yyyy");"M/d/yyyy"===qM&&(qM="MM/dd/yyyy");var y3b={parse:{dateInput:qM},display:{dateInput:qM,monthYearLabel:pM.YEAR_MONTH_ABBR,dateA11yLabel:pM.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:pM.YEAR_MONTH_FULL}};var rM=function(){};rM.\u0275fac=function(a){return new (a||rM)};rM.\u0275mod=qd({type:rM});rM.\u0275inj=ad({providers:[{provide:Uy,useClass:oM},{provide:Yy,useValue:y3b}],imports:[aD,SB,EC,iD,ay]});var sM=function(){};sM.\u0275fac=function(a){return new (a||sM)};sM.\u0275mod=qd({type:sM});sM.\u0275inj=ad({imports:[rM,kM,SB,aD]});var tM=function(){};tM.\u0275fac=function(a){return new (a||tM)};tM.\u0275mod=qd({type:tM});tM.\u0275inj=ad({imports:[aD,BB,iD,ZL,hD,SB,oA,SK,Dw,sM]});var uM=function(){};uM.\u0275fac=function(a){return new (a||uM)};uM.\u0275mod=qd({type:uM});uM.\u0275inj=ad({imports:[Sv]});var vM=function(){};vM.\u0275fac=function(a){return new (a||vM)};vM.\u0275mod=qd({type:vM});vM.\u0275inj=ad({imports:[Sv,SB,fM]});var wM=function(){};wM.\u0275fac=function(a){return new (a||wM)};wM.\u0275mod=qd({type:wM});wM.\u0275inj=ad({imports:[Sv,GB,SB,Dw,uM,vM,dM]});var xM=function(){};xM.\u0275fac=function(a){return new (a||xM)};xM.\u0275mod=qd({type:xM});xM.\u0275inj=ad({imports:[aD,Zz,wM,tM,Dw,sM,SB,FC]});var yM=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Yu;this.clickHandler=function(c){var d=c.target instanceof Element?c.target:c.target instanceof Node?c.target.parentElement:null;d&&(d.closest(".cdk-overlay-container")||b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}};yM.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
yM.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};yM.\u0275fac=function(a){return new (a||yM)(z(ae))};yM.\u0275dir=sd({type:yM,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var zM=function(){};zM.\u0275fac=function(a){return new (a||zM)};zM.\u0275mod=qd({type:zM});zM.\u0275inj=ad({});var AM=function(a){this.codefont$=a.codeFont$};AM.\u0275fac=function(a){return new (a||AM)(n(iE))};AM.\u0275prov=$c({token:AM,factory:AM.\u0275fac,providedIn:"root"});var z3b=function(a){return["chip","gmat-caption",a]},BM=function(){this.variant="grey";this.isTall=!1};BM.\u0275fac=function(a){return new (a||BM)};
BM.\u0275cmp=od({type:BM,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&Xf("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(eg(),D(0,"div",0)(1,"div",1),fg(2),F()());a&2&&C("ngClass",og(1,z3b,b.variant))},dependencies:[Cv],styles:["[_nghost-%COMP%]{--chip-grey-bg:var(--grey-100,#f1f3f4);--chip-blue-bg:var(--blue-50,#e8f0fe);--chip-red-bg:var(--red-50,#fce8e6);--chip-yellow-bg:var(--yellow-50,#fef7e0);--chip-green-bg:var(--green-50,#e6f4ea);--chip-orange-bg:var(--orange-50,#feefe3);--chip-pink-bg:var(--pink-50,#fde7f3);--chip-purple-bg:var(--purple-50,#f3e8fd);--chip-cyan-bg:var(--cyan-50,#e4f7fb);--chip-grey-icon:var(--grey-700,#5f6368);--chip-blue-icon:var(--blue-700,#1967d2);--chip-red-icon:var(--red-700,#c5221f);--chip-yellow-icon:#9b5400;--chip-green-icon:var(--green-800,#137333);--chip-orange-icon:#9b5400;--chip-pink-icon:var(--pink-800,#b80672);--chip-purple-icon:var(--purple-700,#8430ce);--chip-cyan-icon:var(--cyan-900,#007b83);--chip-text:var(--text-default,#202124)}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]{border-radius:12px;height:24px;font-weight:500}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{height:16px;margin-right:4px}body.dark-mode[_nghost-%COMP%], body.dark-mode   [_nghost-%COMP%]{--chip-grey-bg:#505357;--chip-blue-bg:#314972;--chip-red-bg:#6c322f;--chip-yellow-bg:#725d1e;--chip-green-bg:#2c553a;--chip-orange-bg:#714625;--chip-pink-bg:#702f55;--chip-purple-bg:#523272;--chip-cyan-bg:#275e6b;--chip-grey-icon:var(--grey-200,#e8eaed);--chip-blue-icon:var(--blue-200,#aecbfa);--chip-red-icon:var(--red-200,#f6aea9);--chip-yellow-icon:var(--yellow-200,#fde293);--chip-green-icon:var(--green-200,#a8dab5);--chip-orange-icon:var(--orange-200,#fdc69c);--chip-pink-icon:var(--pink-200,#fba9d6);--chip-purple-icon:var(--purple-200,#d7aefb);--chip-cyan-icon:var(--cyan-200,#a1e4f2);--chip-text:var(--white,#fff)}.chip[_ngcontent-%COMP%]{background-color:var(--chip-grey-bg);border-radius:10px;color:var(--chip-text);display:inline-block;height:20px;padding:0 6px}.chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;line-height:12px;margin-bottom:4px;margin-top:4px}.chip.yellow[_ngcontent-%COMP%]{background-color:var(--chip-yellow-bg)}.chip.green[_ngcontent-%COMP%]{background-color:var(--chip-green-bg)}.chip.blue[_ngcontent-%COMP%]{background-color:var(--chip-blue-bg)}.chip.orange[_ngcontent-%COMP%]{background-color:var(--chip-orange-bg)}.chip.pink[_ngcontent-%COMP%]{background-color:var(--chip-pink-bg)}.chip.cyan[_ngcontent-%COMP%]{background-color:var(--chip-cyan-bg)}.chip.red[_ngcontent-%COMP%]{background-color:var(--chip-red-bg)}.chip.purple[_ngcontent-%COMP%]{background-color:var(--chip-purple-bg)}.chip.none[_ngcontent-%COMP%]{background-color:transparent;color:inherit}"],
changeDetection:0});var CM=function(a){this.chip=a};CM.\u0275fac=function(a){return new (a||CM)(z(BM))};CM.\u0275dir=sd({type:CM,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&Wf("color","var(--chip-"+b.chip.variant+"-icon")("font-size",b.chip.isTall?"16px":"12px")("height",b.chip.isTall?"16px":"12px")("margin","0 4px 0 0")("width",b.chip.isTall?"16px":"12px")}});var DM=function(){};DM.\u0275fac=function(a){return new (a||DM)};DM.\u0275cmp=od({type:DM,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&Nf("aria-hidden",!0)},attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&Q(0,"\u00a0\u00b7\u00a0")},encapsulation:2});var A3b=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],B3b=function(a){return{"with-avatar":a}},EM=function(){};EM.prototype.ngOnInit=function(){};EM.\u0275fac=function(a){return new (a||EM)};
EM.\u0275cmp=od({type:EM,selectors:[["onedev-person-hovercard-body"]],inputs:{person:"person",outOfOfficeDescription:"outOfOfficeDescription"},ngContentSelectors:["[onedev-additional-content]","onedev-hovercard-action"],decls:14,vars:10,consts:[["role","dialog","aria-label","Person hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"contact-info",3,"ngClass"],["aria-hidden","true","class","avatar",3,"src","alt",4,"ngIf"],[1,"name","gmat-headline-4"],["class","email gmat-body-3",
4,"ngIf"],["class","chips gmat-caption",4,"ngIf"],[1,"content","gmat-body-3"],[4,"ngIf"],["aria-hidden","true",1,"avatar",3,"src","alt"],[1,"email","gmat-body-3"],[1,"chips","gmat-caption"],["variant","yellow"],["onedevChipIcon","","svgIcon","event_busy_24px"],["svgIcon","work_outline_24px"],[1,"detail"],[1,"dot-separated-list"],["onedevDot","",4,"ngIf"],["onedevDot",""],["svgIcon","location_pin_24px"],["svgIcon","link_24px"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(a,
b){a&1&&(eg(A3b),D(0,"div",0)(1,"div",1)(2,"div",2),P(3,vGa,1,2,"img",3),D(4,"div",4),Q(5),F(),P(6,wGa,2,1,"div",5),F(),P(7,xGa,4,1,"div",6),D(8,"div",7),P(9,BGa,7,3,"ng-container",8),P(10,CGa,4,1,"ng-container",8),P(11,FGa,21,6,"ng-container",8),fg(12),F()(),fg(13,1),F());a&2&&(w(2),C("ngClass",og(8,B3b,b.person.imageUrl)),w(1),C("ngIf",b.person.imageUrl),w(2),S(" ",b.person.name||b.person.email," "),w(1),C("ngIf",b.person.name),w(1),C("ngIf",b.outOfOfficeDescription),w(2),C("ngIf",b.person.title||
b.person.department),w(1),C("ngIf",b.person.location),w(1),C("ngIf",b.person.ldap))},dependencies:[BM,CM,Cv,Ev,DM,qA],styles:[".onedev-hovercard-content{--onedev-card-background:var(--surface-default,#fff);--onedev-card-title-text:var(--text-default,#202124);--onedev-card-icon:var(--icon,#5f6368);--onedev-card-secondary-text:var(--text-secondary,#5f6368);--onedev-card-link-color:var(--primary-default,#1a73e8)}.onedev-hovercard-content{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content .onedev-hovercard-body{padding:20px}.onedev-hovercard-content .onedev-hovercard-body a{color:var(--onedev-card-link-color)}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar{display:grid;grid-template-columns:48px auto;-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar .avatar{grid-row:1/span 2}.onedev-hovercard-content .onedev-hovercard-body .contact-info .name{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content .onedev-hovercard-body .contact-info .email{grid-row:2;grid-column:2}.onedev-hovercard-content .onedev-hovercard-body .title{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content .onedev-hovercard-body .chips{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body mat-icon{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content .onedev-hovercard-body .content{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:0;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body .content .detail{margin-top:2px}.onedev-hovercard-content .onedev-hovercard-body .content:empty{margin-top:0}.onedev-hovercard-content .onedev-hovercard-body .subcontent:not(:last-child){margin-bottom:8px}.onedev-hovercard-content .onedev-hovercard-body .label{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list li{display:inline}.avatar{border-radius:50%;object-fit:cover;height:48px;width:48px}"],
encapsulation:2,changeDetection:0});var C3b=function(){};var mo=function(){this.Serializable$values={}},lo=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},FM=function(a,b){return null!=a.Serializable$values[b]};var D3b=function(){};var E3b=function(a,b){this.requestService=a;this.hookFactory=void 0===b?null:b};W(E3b,D3b);
var F3b=function(a,b,c){var d=GGa(a.hookFactory,b);return null==d?c:B.EMPTY.pipe(Bf({complete:function(){d.onBeforeSend()}}),dia(c.pipe(Bf(function(e){d.onSuccess(e)},function(e){d.onError(e)}))))},G3b=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof mo?NGa(b.body,KGa,LGa,MGa):b.body;return F3b(a,b,e.call(d,{path:b.path,httpMethod:b.httpMethod,methodId:b.methodId,body:f,queryParams:b.queryParams,streamingType:b.streamingType&&b.streamingType},c))};var H3b=function(){};H3b.prototype.send=function(a,b){HGa(a);return this.makeRequest(a).pipe(A(function(c){return b?RGa(b,c):c}))};var I3b=new Ad("API_VERSION"),J3b=new Ad("REQUEST_SERVICE"),GM=function(){};GM.\u0275fac=function(a){return new (a||GM)};GM.\u0275mod=qd({type:GM});GM.\u0275inj=ad({});
var K3b={$Xgafv:"$.xgafv",access_token:"access_token",affinityType:"affinityType",alt:"alt",authDelegationContextContactsEncryptedOwnerId:"authDelegationContext.contacts.encryptedOwnerId",authDelegationContextDelegationType:"authDelegationContext.delegationType",authDelegationContextObfuscatedOwnerId:"authDelegationContext.obfuscatedOwnerId",authDelegationContextUnicornObfuscatedOwnerId:"authDelegationContext.unicorn.obfuscatedOwnerId",blockDirection:"blockDirection",callback:"callback",client:"client",
clientId:"client.id",clientVersionClientAgent:"clientVersion.clientAgent",clientVersionClientType:"clientVersion.clientType",clientVersionClientVersion:"clientVersion.clientVersion",clientVersionGmsCoreContextAppManagementContext:"clientVersion.gmsCoreContext.appManagementContext",clientVersionGmsCoreContextIsFirstParty:"clientVersion.gmsCoreContext.isFirstParty",clientVersionGmsCoreContextPackageName:"clientVersion.gmsCoreContext.packageName",clientVersionGmsCoreContextPackageSignature:"clientVersion.gmsCoreContext.packageSignature",
consentOptionsStrategy:"consentOptions.strategy",consistencyOptionsConsistentReadOverrideType:"consistencyOptions.consistentReadOverrideType",consistencyOptionsLevel:"consistencyOptions.level",consistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",consistencyOptionsLevelOptionsExactTimestamp:"consistencyOptions.levelOptions.exactTimestamp",consistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",
contactId:"contactId",contactListType:"contactListType",contactLookupOptionsEmailLookupType:"contactLookupOptions.emailLookupType",container:"container",containerId:"containerId",containerIds:"containerIds",contextAllowedRequesterState:"context.allowedRequesterState",contextAuthDelegationContextContactsEncryptedOwnerId:"context.authDelegationContext.contacts.encryptedOwnerId",contextAuthDelegationContextDelegationType:"context.authDelegationContext.delegationType",contextAuthDelegationContextObfuscatedOwnerId:"context.authDelegationContext.obfuscatedOwnerId",
contextAuthDelegationContextUnicornObfuscatedOwnerId:"context.authDelegationContext.unicorn.obfuscatedOwnerId",contextClientType:"context.clientType",contextClientVersionClientAgent:"context.clientVersion.clientAgent",contextClientVersionClientType:"context.clientVersion.clientType",contextClientVersionClientVersion:"context.clientVersion.clientVersion",contextClientVersionGmsCoreContextAppManagementContext:"context.clientVersion.gmsCoreContext.appManagementContext",contextClientVersionGmsCoreContextIsFirstParty:"context.clientVersion.gmsCoreContext.isFirstParty",
contextClientVersionGmsCoreContextPackageName:"context.clientVersion.gmsCoreContext.packageName",contextClientVersionGmsCoreContextPackageSignature:"context.clientVersion.gmsCoreContext.packageSignature",contextConsistencyContextBase64EncodedZookie:"context.consistencyContext.base64EncodedZookie",contextConsistencyContextDirectoryVersionToken:"context.consistencyContext.directoryVersionToken",contextConsistencyContextFbsRequireAllImportantWritesUpToTime:"context.consistencyContext.fbsRequireAllImportantWritesUpToTime",
contextConsistencyContextFbsVersionInfo:"context.consistencyContext.fbsVersionInfo",contextConsistencyOptionsConsistentReadOverrideType:"context.consistencyOptions.consistentReadOverrideType",contextConsistencyOptionsLevel:"context.consistencyOptions.level",contextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",contextConsistencyOptionsLevelOptionsExactTimestamp:"context.consistencyOptions.levelOptions.exactTimestamp",
contextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",contextMigrationOptionsUseClusterBased:"context.migrationOptions.useClusterBased",contextMigrationOptionsUseLegacyRequestMaskBehavior:"context.migrationOptions.useLegacyRequestMaskBehavior",contextMigrationOptionsUseNewRequestMaskBehavior:"context.migrationOptions.useNewRequestMaskBehavior",contextRequestGroupLoggingId:"context.requestGroupLoggingId",
contextRightOfPublicityContext:"context.rightOfPublicityContext",coreIdParamsCheckIdentityAcl:"coreIdParams.checkIdentityAcl",coreIdParamsEnablePrivateAccountEmails:"coreIdParams.enablePrivateAccountEmails",coreIdParamsEnablePrivateNames:"coreIdParams.enablePrivateNames",coreIdParamsIdentityAclOptionsContextConfigName:"coreIdParams.identityAclOptions.context.configName",coreIdParamsIdentityAclOptionsContextObjectId:"coreIdParams.identityAclOptions.context.objectId",coreIdParamsIdentityAclOptionsContextObjectPart:"coreIdParams.identityAclOptions.context.objectPart",
coreIdParamsIdentityAclOptionsMode:"coreIdParams.identityAclOptions.mode",coreIdParamsIgnoreAclConditionIgnoreAclConditionType:"coreIdParams.ignoreAclCondition.ignoreAclConditionType",coreIdParamsUseRealtimeNotificationExpandedAcls:"coreIdParams.useRealtimeNotificationExpandedAcls",coreNameCoreProfileFirstName:"coreName.coreProfileFirstName",coreNameCoreProfileLastName:"coreName.coreProfileLastName",customLookupType:"customLookupType",dataFormatsAffinityFormatsScoreFormat:"dataFormats.affinityFormats.scoreFormat",
dataFormatsProfilePhotoOptionsCorpHeaderPreference:"dataFormats.profilePhotoOptions.corpHeaderPreference",dataFormatsProfilePhotoOptionsPrivateUrlFormat:"dataFormats.profilePhotoOptions.privateUrlFormat",dataJoinParamsProfileJoinType:"dataJoinParams.profileJoinType",dedupeOption:"dedupeOption",delayFullSync:"delayFullSync",delegatedGroupIdDelegatedGroupId:"delegatedGroupId.delegatedGroupId",deleteContacts:"deleteContacts",deleteTrashedContacts:"deleteTrashedContacts",deletionContextMutationContextAndroidDeviceInfoId:"deletionContext.mutationContext.androidDeviceInfo.id",
deletionContextMutationContextHostAppInfoHostAppName:"deletionContext.mutationContext.hostAppInfo.hostAppName",deletionContextMutationContextSource:"deletionContext.mutationContext.source",deletionContextMutationContextThirdPartyInfoClientName:"deletionContext.mutationContext.thirdPartyInfo.clientName",deletionContextMutationContextThirdPartyInfoProjectNumber:"deletionContext.mutationContext.thirdPartyInfo.projectNumber",deletionContextMutationContextTimestamp:"deletionContext.mutationContext.timestamp",
deviceId:"deviceId",deviceIdentifierClientInstanceId:"deviceIdentifier.clientInstanceId",deviceIdentityDeviceId:"deviceIdentity.deviceId",extensionSetExtendedRequestDataPeopleBackendExtensionApplication:"extensionSet.extendedRequestData.peopleBackendExtension.application",extensionSetExtensionNames:"extensionSet.extensionNames",fieldFilterField:"fieldFilter.field",fieldMask:"fieldMask",fieldValueFilterAdminAssistants:"fieldValueFilter.adminAssistants",fieldValueFilterDottedLineManagers:"fieldValueFilter.dottedLineManagers",
fieldValueFilterExecAssistants:"fieldValueFilter.execAssistants",fieldValueFilterIndirectManagers:"fieldValueFilter.indirectManagers",fieldValueFilterIndirectManagersWithMaxNumHops:"fieldValueFilter.indirectManagersWithMaxNumHops",fieldValueFilterManagers:"fieldValueFilter.managers",fieldValueFilterProfileExternalIdCustomTag:"fieldValueFilter.profileExternalId.customTag",fieldValueFilterProfileExternalIdStandardTag:"fieldValueFilter.profileExternalId.standardTag",fieldValueFilterProfileExternalIdValue:"fieldValueFilter.profileExternalId.value",
fields:"fields",getPeopleRequestContextAllowedRequesterState:"getPeopleRequest.context.allowedRequesterState",getPeopleRequestContextAuthDelegationContextContactsEncryptedOwnerId:"getPeopleRequest.context.authDelegationContext.contacts.encryptedOwnerId",getPeopleRequestContextAuthDelegationContextDelegationType:"getPeopleRequest.context.authDelegationContext.delegationType",getPeopleRequestContextAuthDelegationContextObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.obfuscatedOwnerId",
getPeopleRequestContextAuthDelegationContextUnicornObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.unicorn.obfuscatedOwnerId",getPeopleRequestContextClientType:"getPeopleRequest.context.clientType",getPeopleRequestContextClientVersionClientAgent:"getPeopleRequest.context.clientVersion.clientAgent",getPeopleRequestContextClientVersionClientType:"getPeopleRequest.context.clientVersion.clientType",getPeopleRequestContextClientVersionClientVersion:"getPeopleRequest.context.clientVersion.clientVersion",
getPeopleRequestContextClientVersionGmsCoreContextAppManagementContext:"getPeopleRequest.context.clientVersion.gmsCoreContext.appManagementContext",getPeopleRequestContextClientVersionGmsCoreContextIsFirstParty:"getPeopleRequest.context.clientVersion.gmsCoreContext.isFirstParty",getPeopleRequestContextClientVersionGmsCoreContextPackageName:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageName",getPeopleRequestContextClientVersionGmsCoreContextPackageSignature:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageSignature",
getPeopleRequestContextConsistencyContextDirectoryVersionToken:"getPeopleRequest.context.consistencyContext.directoryVersionToken",getPeopleRequestContextConsistencyOptionsConsistentReadOverrideType:"getPeopleRequest.context.consistencyOptions.consistentReadOverrideType",getPeopleRequestContextConsistencyOptionsLevel:"getPeopleRequest.context.consistencyOptions.level",getPeopleRequestContextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"getPeopleRequest.context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",
getPeopleRequestContextConsistencyOptionsLevelOptionsExactTimestamp:"getPeopleRequest.context.consistencyOptions.levelOptions.exactTimestamp",getPeopleRequestContextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"getPeopleRequest.context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",getPeopleRequestContextMigrationOptionsUseClusterBased:"getPeopleRequest.context.migrationOptions.useClusterBased",getPeopleRequestContextMigrationOptionsUseLegacyRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useLegacyRequestMaskBehavior",
getPeopleRequestContextMigrationOptionsUseNewRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useNewRequestMaskBehavior",getPeopleRequestContextRequestGroupLoggingId:"getPeopleRequest.context.requestGroupLoggingId",getPeopleRequestContextRightOfPublicityContext:"getPeopleRequest.context.rightOfPublicityContext",getPeopleRequestCoreIdParamsCheckIdentityAcl:"getPeopleRequest.coreIdParams.checkIdentityAcl",getPeopleRequestCoreIdParamsEnablePrivateAccountEmails:"getPeopleRequest.coreIdParams.enablePrivateAccountEmails",
getPeopleRequestCoreIdParamsEnablePrivateNames:"getPeopleRequest.coreIdParams.enablePrivateNames",getPeopleRequestCoreIdParamsIdentityAclOptionsContextConfigName:"getPeopleRequest.coreIdParams.identityAclOptions.context.configName",getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectId:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectId",getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectPart:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectPart",getPeopleRequestCoreIdParamsIdentityAclOptionsMode:"getPeopleRequest.coreIdParams.identityAclOptions.mode",
getPeopleRequestCoreIdParamsIgnoreAclConditionIgnoreAclConditionType:"getPeopleRequest.coreIdParams.ignoreAclCondition.ignoreAclConditionType",getPeopleRequestCoreIdParamsUseRealtimeNotificationExpandedAcls:"getPeopleRequest.coreIdParams.useRealtimeNotificationExpandedAcls",getPeopleRequestDataFormatsAffinityFormatsScoreFormat:"getPeopleRequest.dataFormats.affinityFormats.scoreFormat",getPeopleRequestDataFormatsProfilePhotoOptionsCorpHeaderPreference:"getPeopleRequest.dataFormats.profilePhotoOptions.corpHeaderPreference",
getPeopleRequestDataFormatsProfilePhotoOptionsPrivateUrlFormat:"getPeopleRequest.dataFormats.profilePhotoOptions.privateUrlFormat",getPeopleRequestDedupeOption:"getPeopleRequest.dedupeOption",getPeopleRequestExtensionSetExtendedRequestDataPeopleBackendExtensionApplication:"getPeopleRequest.extensionSet.extendedRequestData.peopleBackendExtension.application",getPeopleRequestExtensionSetExtensionNames:"getPeopleRequest.extensionSet.extensionNames",getPeopleRequestIncludeFieldAcl:"getPeopleRequest.includeFieldAcl",
getPeopleRequestIncludedProfileStates:"getPeopleRequest.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsCertificateParamsRequestCertificates:"getPeopleRequest.mergedPersonSourceOptions.certificateParams.requestCertificates",getPeopleRequestMergedPersonSourceOptionsConnectedSitesOptionsConnectedSiteType:"getPeopleRequest.mergedPersonSourceOptions.connectedSitesOptions.connectedSiteType",getPeopleRequestMergedPersonSourceOptionsDataJoinParamsProfileJoinType:"getPeopleRequest.mergedPersonSourceOptions.dataJoinParams.profileJoinType",
getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterFilterType:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.filterType",getPeopleRequestMergedPersonSourceOptionsIncludeAccountLocale:"getPeopleRequest.mergedPersonSourceOptions.includeAccountLocale",getPeopleRequestMergedPersonSourceOptionsIncludeAffinity:"getPeopleRequest.mergedPersonSourceOptions.includeAffinity",
getPeopleRequestMergedPersonSourceOptionsIncludedContactDeletionStates:"getPeopleRequest.mergedPersonSourceOptions.includedContactDeletionStates",getPeopleRequestMergedPersonSourceOptionsIncludedProfileStates:"getPeopleRequest.mergedPersonSourceOptions.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsPersonModelParamsPersonModel:"getPeopleRequest.mergedPersonSourceOptions.personModelParams.personModel",getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPhotoTypes",
getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPlaces:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPlaces",getPeopleRequestPersonId:"getPeopleRequest.personId",getPeopleRequestRequestConfigContextConfigKey:"getPeopleRequest.requestConfigContext.configKey",getPeopleRequestRequestConfigContextVersion:"getPeopleRequest.requestConfigContext.version",getPeopleRequestRequestMaskCustomRequestMask:"getPeopleRequest.requestMask.customRequestMask",getPeopleRequestRequestMaskImageUrlType:"getPeopleRequest.requestMask.imageUrlType",
getPeopleRequestRequestMaskIncludeContainer:"getPeopleRequest.requestMask.includeContainer",getPeopleRequestRequestMaskIncludeField:"getPeopleRequest.requestMask.includeField",getPeopleRequestRequestMaskIncludePeopleInCommon:"getPeopleRequest.requestMask.includePeopleInCommon",getPeopleRequestRequestMaskPersonAttribute:"getPeopleRequest.requestMask.personAttribute",getPeopleRequestRequestMaskPhotoOptionsPrivateUrlFormat:"getPeopleRequest.requestMask.photoOptions.privateUrlFormat",graphRestricts:"graphRestricts",
groupExtensionSetExtensionNames:"groupExtensionSet.extensionNames",groupId:"groupId",id:"id",includeAllAvailableSources:"includeAllAvailableSources",includeAllReachablePeople:"includeAllReachablePeople",includeBlocks:"includeBlocks",includeContent:"includeContent",includeFieldAcl:"includeFieldAcl",includeLinkedPeople:"includeLinkedPeople",includeOthers:"includeOthers",includedProfileStates:"includedProfileStates",key:"key",listFilterParamsContainer:"listFilterParams.container",listFilterParamsExcludeUnreachablePeople:"listFilterParams.excludeUnreachablePeople",
matchType:"matchType",maxContacts:"maxContacts",mergedPersonSourceOptionsCertificateParamsRequestCertificates:"mergedPersonSourceOptions.certificateParams.requestCertificates",mergedPersonSourceOptionsConnectedSitesOptionsConnectedSiteType:"mergedPersonSourceOptions.connectedSitesOptions.connectedSiteType",mergedPersonSourceOptionsDataJoinParamsProfileJoinType:"mergedPersonSourceOptions.dataJoinParams.profileJoinType",mergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",
mergedPersonSourceOptionsDeviceContactFilterFilterType:"mergedPersonSourceOptions.deviceContactFilter.filterType",mergedPersonSourceOptionsIncludeAccountLocale:"mergedPersonSourceOptions.includeAccountLocale",mergedPersonSourceOptionsIncludeAffinity:"mergedPersonSourceOptions.includeAffinity",mergedPersonSourceOptionsIncludedContactDeletionStates:"mergedPersonSourceOptions.includedContactDeletionStates",mergedPersonSourceOptionsIncludedProfileStates:"mergedPersonSourceOptions.includedProfileStates",
mergedPersonSourceOptionsPersonModelParamsPersonModel:"mergedPersonSourceOptions.personModelParams.personModel",mergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"mergedPersonSourceOptions.placeParams.requestPhotoTypes",mergedPersonSourceOptionsPlaceParamsRequestPlaces:"mergedPersonSourceOptions.placeParams.requestPlaces",oauth_token:"oauth_token",objectTypesRestricts:"objectTypesRestricts",options:"options",orderBy:"orderBy",pageSize:"pageSize",pageToken:"pageToken",pagingOptionsPageSize:"pagingOptions.pageSize",
pagingOptionsPageToken:"pagingOptions.pageToken",peopleType:"peopleType",personAttribute:"personAttribute",personExpansion:"personExpansion",personId:"personId",phoneLookupQuotaOptionsQuotaBypassTokenOptions:"phoneLookupQuotaOptions.quotaBypassTokenOptions",phoneLookupQuotaOptionsQuotaBypassTokens:"phoneLookupQuotaOptions.quotaBypassTokens",phoneLookupQuotaOptionsQuotaLimitBehavior:"phoneLookupQuotaOptions.quotaLimitBehavior",photoOptionsMaxHeight:"photoOptions.maxHeight",photoOptionsMaxWidth:"photoOptions.maxWidth",
placeParamsRequestPlaces:"placeParams.requestPlaces",postPhotoMutateReadOption:"postPhotoMutateReadOption",prefixQuery:"prefixQuery",prettyPrint:"prettyPrint",profileId:"profileId",profileLookupOptionsEmailLookupOption:"profileLookupOptions.emailLookupOption",profileLookupOptionsExcludeGaiaAccountTypes:"profileLookupOptions.excludeGaiaAccountTypes",profileLookupOptionsUseTrustedClientPhoneLookupQuota:"profileLookupOptions.useTrustedClientPhoneLookupQuota",query:"query",quotaFilterType:"quotaFilterType",
quotaUser:"quotaUser",requestConfigContextConfigKey:"requestConfigContext.configKey",requestConfigContextVersion:"requestConfigContext.version",requestMask:"requestMask",requestMaskCustomRequestMask:"requestMask.customRequestMask",requestMaskImageUrlType:"requestMask.imageUrlType",requestMaskIncludeContainer:"requestMask.includeContainer",requestMaskIncludeField:"requestMask.includeField",requestMaskIncludePeopleInCommon:"requestMask.includePeopleInCommon",requestMaskPersonAttribute:"requestMask.personAttribute",
requestMaskPhotoOptionsPrivateUrlFormat:"requestMask.photoOptions.privateUrlFormat",requestOptionsRequireConsistency:"requestOptions.requireConsistency",requestOptionsTreatRestrictsAsFilter:"requestOptions.treatRestrictsAsFilter",requireCompleteResults:"requireCompleteResults",returnedFieldAcl:"returnedFieldAcl",searchSettingsMinTotalItemsAccuracy:"searchSettings.minTotalItemsAccuracy",searchSettingsNumToScore:"searchSettings.numToScore",searchSettingsScoringType:"searchSettings.scoringType",skipPostMutateGet:"skipPostMutateGet",
sortOptionsSortField:"sortOptions.sortField",sortOptionsSortOrder:"sortOptions.sortOrder",source:"source",sources:"sources",squery:"squery",stFieldSpecExpressionsExpressionNames:"stFieldSpecExpressions.expressionNames",stFieldSpecExpressionsExpressions:"stFieldSpecExpressions.expressions",startIndex:"startIndex",stquery:"stquery",syncParametersFullSyncOption:"syncParameters.fullSyncOption",syncParametersSyncToken:"syncParameters.syncToken",syncToken:"syncToken",type:"type",uploadType:"uploadType",
upload_protocol:"upload_protocol",useBytes:"useBytes"},HM=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new E3b(b,c)};HM.prototype.list=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;return G3b(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:IGa(a,K3b,b)})};HM.\u0275fac=function(a){return new (a||HM)(n(I3b,8),n(J3b),n(C3b,8))};HM.\u0275prov=$c({token:HM,factory:HM.\u0275fac});
var IM=function(){};IM.\u0275fac=function(a){return new (a||IM)};IM.\u0275prov=$c({token:IM,factory:function(a){return HM.\u0275fac(a)},providedIn:GM});var JM=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new E3b(b,c)};JM.\u0275fac=function(a){return new (a||JM)(n(I3b,8),n(J3b),n(C3b,8))};JM.\u0275prov=$c({token:JM,factory:JM.\u0275fac});var KM=function(){};KM.\u0275fac=function(a){return new (a||KM)};
KM.\u0275prov=$c({token:KM,factory:function(a){return JM.\u0275fac(a)},providedIn:GM});var VGa=/.*@google.com/,L3b=new Ad("onedevPeopleServiceConfig"),M3b={},LM=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new B.Subject;this.config=M3b;c&&c.pipe(Bf(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),Af(this.destroy$)).subscribe({next:function(e){d.config=e}})},O3b=function(a,b){return N3b(a,[b]).pipe(A(function(c){return c[0]}))},N3b=function(a,b){return a.lookupApiClient.list({id:b,type:"EMAIL",matchType:"EXACT",requestMaskIncludeField:"person.email,person.name,person.photo,person.organization",
requestMaskIncludeContainer:["PROFILE","DOMAIN_PROFILE","CONTACT","DOMAIN_CONTACT","GOOGLE_GROUP"],sources:["PROFILE_SOURCE"],access_token:a.config.accessToken}).pipe(A(function(c){return ZGa(b,c)}))};LM.prototype.ngOnDestroy=function(){this.destroy$.next()};LM.\u0275fac=function(a){return new (a||LM)(n(IM),n(KM),n(L3b,8))};LM.\u0275prov=$c({token:LM,factory:LM.\u0275fac});var P3b=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.dayOfWeek=null==a.dayOfWeek?null:a.dayOfWeek;this.Serializable$values.periodStartMinutes=null==a.periodStartMinutes?null:a.periodStartMinutes;this.Serializable$values.periodEndMinutes=null==a.periodEndMinutes?null:a.periodEndMinutes};W(P3b,mo);P3b.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
Qh.Object.defineProperties(P3b.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return FM(this,"dayOfWeek")?lo(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return FM(this,"periodEndMinutes")?lo(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return FM(this,"periodStartMinutes")?lo(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var Q3b=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.userIds=null==a.userIds?null:a.userIds;this.Serializable$values.debugOptions=null==a.debugOptions?null:a.debugOptions};W(Q3b,mo);Q3b.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:MM},keys:["debugOptions","userIds"],objects:{debugOptions:NM}}};
Qh.Object.defineProperties(Q3b.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return FM(this,"debugOptions")?lo(this,"debugOptions"):this.debugOptions=new NM},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return FM(this,"userIds")?lo(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var R3b=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.results=null==a.results?null:a.results};W(R3b,mo);R3b.prototype.getPartialClassMetadata=function(){return{arrays:{results:S3b},keys:["results"]}};
Qh.Object.defineProperties(R3b.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return null!==lo(this,"results")}},results:{configurable:!0,enumerable:!0,get:function(){return FM(this,"results")?lo(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var OM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary;this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable;this.Serializable$values.committedUntil=null==a.committedUntil?null:a.committedUntil};W(OM,mo);
OM.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","nextAvailable","occupiedUntil"]}};
Qh.Object.defineProperties(OM.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"committedUntil")?lo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return FM(this,"eventSummary")?lo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return FM(this,"nextAvailable")?lo(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"occupiedUntil")?lo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var PM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location;this.Serializable$values.geoCoordinates=null==a.geoCoordinates?null:a.geoCoordinates;this.Serializable$values.label=null==a.label?null:a.label};W(PM,mo);PM.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:QM}}};
Qh.Object.defineProperties(PM.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return FM(this,"geoCoordinates")?lo(this,"geoCoordinates"):this.geoCoordinates=new QM},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return FM(this,"label")?lo(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return FM(this,"location")?lo(this,"location"):""},
set:function(a){this.Serializable$values.location=a}}});var RM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.committedUntil=null==a.committedUntil?null:a.committedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};W(RM,mo);RM.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","nextAvailable","occupiedUntil"]}};
Qh.Object.defineProperties(RM.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"committedUntil")?lo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return FM(this,"nextAvailable")?lo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"occupiedUntil")?lo(this,
"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var T3b=function(){this.Serializable$values={}};W(T3b,mo);T3b.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var SM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary;this.Serializable$values.inMeetingsUntil=null==a.inMeetingsUntil?null:a.inMeetingsUntil;this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.committedUntil=null==a.committedUntil?null:a.committedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};W(SM,mo);
SM.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
Qh.Object.defineProperties(SM.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"committedUntil")?lo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return FM(this,"eventSummary")?lo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"inMeetingsUntil")?lo(this,
"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return FM(this,"nextAvailable")?lo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"occupiedUntil")?lo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var U3b=function(){this.Serializable$values={}};W(U3b,mo);
U3b.prototype.getPartialClassMetadata=function(){return{keys:[]}};var QM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.latitude=null==a.latitude?null:a.latitude;this.Serializable$values.longitude=null==a.longitude?null:a.longitude};W(QM,mo);QM.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
Qh.Object.defineProperties(QM.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return FM(this,"latitude")?lo(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return FM(this,"longitude")?lo(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var TM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=null==a.timeZone?null:a.timeZone};
W(TM,mo);TM.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};Qh.Object.defineProperties(TM.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return FM(this,"timeZone")?lo(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var UM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.experimentalBuildingId=null==a.experimentalBuildingId?null:a.experimentalBuildingId;this.Serializable$values.experimentalDeskId=null==a.experimentalDeskId?null:a.experimentalDeskId;this.Serializable$values.experimentalFloorId=null==a.experimentalFloorId?null:a.experimentalFloorId;this.Serializable$values.label=null==a.label?null:a.label};W(UM,mo);
UM.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId","label"]}};
Qh.Object.defineProperties(UM.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return FM(this,"experimentalBuildingId")?lo(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return FM(this,"experimentalDeskId")?lo(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return FM(this,"experimentalFloorId")?lo(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}},label:{configurable:!0,enumerable:!0,get:function(){return FM(this,"label")?lo(this,"label"):""},set:function(a){this.Serializable$values.label=a}}});
var VM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime;this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary;this.Serializable$values.committedUntil=null==a.committedUntil?null:a.committedUntil};W(VM,mo);VM.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","eventSummary"]}};
Qh.Object.defineProperties(VM.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"comeBackTime")?lo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return FM(this,"committedUntil")?lo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return FM(this,"eventSummary")?lo(this,"eventSummary"):
""},set:function(a){this.Serializable$values.eventSummary=a}}});var WM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime};W(WM,mo);WM.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
Qh.Object.defineProperties(WM.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"comeBackTime")?lo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var XM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.code=null==a.code?null:a.code;this.Serializable$values.message=null==a.message?null:a.message;this.Serializable$values.details=null==a.details?null:a.details};W(XM,mo);
XM.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
Qh.Object.defineProperties(XM.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return FM(this,"code")?lo(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return FM(this,"details")?lo(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return FM(this,"message")?lo(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var YM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.startTime=null==a.startTime?null:a.startTime;this.Serializable$values.endTime=null==a.endTime?null:a.endTime};W(YM,mo);YM.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
Qh.Object.defineProperties(YM.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"endTime")?lo(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"startTime")?lo(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var ZM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.overrideCurrentTime=null==a.overrideCurrentTime?null:a.overrideCurrentTime;this.Serializable$values.computationDuration=null==a.computationDuration?null:a.computationDuration};W(ZM,mo);ZM.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
Qh.Object.defineProperties(ZM.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return FM(this,"computationDuration")?lo(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"overrideCurrentTime")?lo(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var $M=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.nextCommitmentTime=null==a.nextCommitmentTime?null:a.nextCommitmentTime;this.Serializable$values.nextCommitmentStatus=null==a.nextCommitmentStatus?null:a.nextCommitmentStatus};W($M,mo);$M.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:aN}}};
Qh.Object.defineProperties($M.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return FM(this,"nextCommitmentStatus")?lo(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new aN},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"nextCommitmentTime")?lo(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var bN=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange};W(bN,mo);bN.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:YM}}};Qh.Object.defineProperties(bN.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return FM(this,"timeRange")?lo(this,"timeRange"):this.timeRange=new YM},set:function(a){this.Serializable$values.timeRange=a}}});
var cN=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availabilities=null==a.availabilities?null:a.availabilities;this.Serializable$values.workingHours=null==a.workingHours?null:a.workingHours;this.Serializable$values.nextPollTime=null==a.nextPollTime?null:a.nextPollTime};W(cN,mo);cN.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:V3b},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:dN}}};
Qh.Object.defineProperties(cN.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return FM(this,"availabilities")?lo(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"nextPollTime")?lo(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return FM(this,"workingHours")?
lo(this,"workingHours"):this.workingHours=new dN},set:function(a){this.Serializable$values.workingHours=a}}});var NM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.forceEnableUserStatusCache=null==a.forceEnableUserStatusCache?null:a.forceEnableUserStatusCache;this.Serializable$values.timeSettings=null==a.timeSettings?null:a.timeSettings};W(NM,mo);NM.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:ZM}}};
Qh.Object.defineProperties(NM.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return FM(this,"forceEnableUserStatusCache")?lo(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return FM(this,"timeSettings")?lo(this,"timeSettings"):this.timeSettings=new ZM},set:function(a){this.Serializable$values.timeSettings=a}}});
var S3b=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.userId=null==a.userId?null:a.userId;this.Serializable$values.status=null==a.status?null:a.status;this.Serializable$values.userAvailabilities=null==a.userAvailabilities?null:a.userAvailabilities};W(S3b,mo);S3b.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:XM,userAvailabilities:cN,userId:MM}}};
Qh.Object.defineProperties(S3b.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==lo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return FM(this,"status")?lo(this,"status"):this.status=new XM},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return null!==lo(this,"userAvailabilities")}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return FM(this,"userAvailabilities")?
lo(this,"userAvailabilities"):this.userAvailabilities=new cN},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return null!==lo(this,"userId")}},userId:{configurable:!0,enumerable:!0,get:function(){return FM(this,"userId")?lo(this,"userId"):this.userId=new MM},set:function(a){this.Serializable$values.userId=a}}});
var V3b=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange;this.Serializable$values.status=null==a.status?null:a.status;this.Serializable$values.contexts=null==a.contexts?null:a.contexts};W(V3b,mo);V3b.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:eN,status:aN,timeRange:YM}}};
Qh.Object.defineProperties(V3b.prototype,{contexts:{configurable:!0,enumerable:!0,get:function(){return FM(this,"contexts")?lo(this,"contexts"):this.contexts=new eN},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==lo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return FM(this,"status")?lo(this,"status"):this.status=new aN},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,
enumerable:!0,get:function(){return FM(this,"timeRange")?lo(this,"timeRange"):this.timeRange=new YM},set:function(a){this.Serializable$values.timeRange=a}}});
var eN=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.workingElsewhere=null==a.workingElsewhere?null:a.workingElsewhere;this.Serializable$values.upcomingOoo=null==a.upcomingOoo?null:a.upcomingOoo;this.Serializable$values.localTime=null==a.localTime?null:a.localTime;this.Serializable$values.upcomingCommitmentContext=null==a.upcomingCommitmentContext?null:a.upcomingCommitmentContext};W(eN,mo);
eN.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:TM,upcomingCommitmentContext:$M,upcomingOoo:bN,workingElsewhere:fN}}};
Qh.Object.defineProperties(eN.prototype,{localTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"localTime")?lo(this,"localTime"):this.localTime=new TM},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return FM(this,"upcomingCommitmentContext")?lo(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=new $M},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,
enumerable:!0,get:function(){return FM(this,"upcomingOoo")?lo(this,"upcomingOoo"):this.upcomingOoo=new bN},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return FM(this,"workingElsewhere")?lo(this,"workingElsewhere"):this.workingElsewhere=new fN},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var MM=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.obfuscatedGaiaId=null==a.obfuscatedGaiaId?null:a.obfuscatedGaiaId;this.Serializable$values.email=null==a.email?null:a.email};W(MM,mo);MM.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
Qh.Object.defineProperties(MM.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return FM(this,"email")?lo(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return FM(this,"obfuscatedGaiaId")?lo(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var gN=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.homeLocation=null==a.homeLocation?null:a.homeLocation;this.Serializable$values.customLocation=null==a.customLocation?null:a.customLocation;this.Serializable$values.officeLocation=null==a.officeLocation?null:a.officeLocation};W(gN,mo);gN.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:PM,homeLocation:T3b,officeLocation:UM}}};
Qh.Object.defineProperties(gN.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return FM(this,"customLocation")?lo(this,"customLocation"):this.customLocation=new PM},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return FM(this,"homeLocation")?lo(this,"homeLocation"):this.homeLocation=new T3b},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return FM(this,
"officeLocation")?lo(this,"officeLocation"):this.officeLocation=new UM},set:function(a){this.Serializable$values.officeLocation=a}}});
var aN=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.inactive=null==a.inactive?null:a.inactive;this.Serializable$values.doNotDisturb=null==a.doNotDisturb?null:a.doNotDisturb;this.Serializable$values.outsideWorkingHours=null==a.outsideWorkingHours?null:a.outsideWorkingHours;this.Serializable$values.outOfOffice=null==a.outOfOffice?null:a.outOfOffice;this.Serializable$values.inMeeting=null==a.inMeeting?null:a.inMeeting;this.Serializable$values.calendarBusy=null==
a.calendarBusy?null:a.calendarBusy};W(aN,mo);aN.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:OM,doNotDisturb:RM,inMeeting:SM,inactive:U3b,outOfOffice:VM,outsideWorkingHours:WM}}};
Qh.Object.defineProperties(aN.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return FM(this,"calendarBusy")?lo(this,"calendarBusy"):this.calendarBusy=new OM},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return FM(this,"doNotDisturb")?lo(this,"doNotDisturb"):this.doNotDisturb=new RM},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return FM(this,
"inMeeting")?lo(this,"inMeeting"):this.inMeeting=new SM},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return FM(this,"inactive")?lo(this,"inactive"):this.inactive=new U3b},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return null!==lo(this,"outOfOffice")}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return FM(this,"outOfOffice")?lo(this,"outOfOffice"):
this.outOfOffice=new VM},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return FM(this,"outsideWorkingHours")?lo(this,"outsideWorkingHours"):this.outsideWorkingHours=new WM},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var fN=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location};W(fN,mo);
fN.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:gN}}};Qh.Object.defineProperties(fN.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return FM(this,"location")?lo(this,"location"):this.location=new gN},set:function(a){this.Serializable$values.location=a}}});var dN=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=null==a.availableTime?null:a.availableTime};W(dN,mo);
dN.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:P3b},keys:["availableTime"]}};Qh.Object.defineProperties(dN.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return FM(this,"availableTime")?lo(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var W3b=new Ad("API_VERSION"),X3b=new Ad("REQUEST_SERVICE"),hN=function(){};hN.\u0275fac=function(a){return new (a||hN)};hN.\u0275mod=qd({type:hN});
hN.\u0275inj=ad({});var Y3b={$Xgafv:"$.xgafv",access_token:"access_token",alt:"alt",callback:"callback",fields:"fields",key:"key",oauth_token:"oauth_token",prettyPrint:"prettyPrint",quotaUser:"quotaUser",uploadType:"uploadType",upload_protocol:"upload_protocol"},iN=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v1alpha":a;this.$apiClient=new E3b(b,c)};iN.\u0275fac=function(a){return new (a||iN)(n(W3b,8),n(X3b),n(C3b,8))};iN.\u0275prov=$c({token:iN,factory:iN.\u0275fac});var jN=function(){};
jN.\u0275fac=function(a){return new (a||jN)};jN.\u0275prov=$c({token:jN,factory:function(a){return iN.\u0275fac(a)},providedIn:hN});var kN=function(a){var b=this;this.apiStub=a;this.result=new B.Subject;this.destroyed=new B.ReplaySubject(1);this.trigger=new B.Subject;this.batchedTrigger=this.trigger.pipe(aia(this.trigger.pipe(ff(200))));this.responseHandler=function(c){if(c.hasResults){c=l(c.results);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d="";e.hasUserId&&e.userId.email&&(d=e.userId.email);if(d)if(e.hasUserAvailabilities){e=e.userAvailabilities.availabilities[0];if(e.hasStatus&&e.status.hasOutOfOffice){e=e.status.outOfOffice;
if(e.comeBackTime){var f=e=new Date(e.comeBackTime),h=new Date;e=h.getFullYear()===f.getFullYear()&&h.getMonth()===f.getMonth()&&h.getDate()===f.getDate()?"at "+e.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(e.getFullYear()!==(new Date).getFullYear()?e.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):e.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));e=" - back "+e}else e="";e="Out of Office"+e}else e="";b.result.next({emailAddress:d,
availability:e})}else b.result.next({emailAddress:d,availability:""})}}};this.batchedTrigger.pipe(Af(this.destroyed)).subscribe(function(c){c=[].concat(p(new Set(c)));var d=c.slice(0,100);Z3b(b,d);c=l(c.slice(100));for(d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},Z3b=function(a,b){var c,d;Ne(function(e){for(var f=new Q3b,h=[],k=l(b),q=k.next();!q.done;q=k.next()){q=q.value;var u=new MM;u.email=q;h.push(u)}f.userIds=h;c=f;f=a.apiStub;var x=void 0===x?{}:x;var y=void 0===y?{}:y;d=G3b(f.$apiClient,
{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:IGa(x,Y3b,y),responseCtor:R3b});d.pipe(Af(a.destroyed)).subscribe(a.responseHandler);Se(e)})},$3b=function(a,b){if(!b)return(0,B.of)("");a.trigger.next(b);return a.result.pipe(cf(function(c){return c.emailAddress===b})).pipe(A(function(c){return c.availability}))};kN.prototype.ngOnDestroy=function(){this.destroyed.next()};
kN.\u0275fac=function(a){return new (a||kN)(n(jN))};kN.\u0275prov=$c({token:kN,factory:kN.\u0275fac});var a4b=function(a){this.internalArray_=m(a)};W(a4b,X);g=a4b.prototype;g.getSize=function(){return tt(this,1)};g.setSize=function(a){return nj(this,1,a)};g.getWidth=function(){return tt(this,12)};g.setWidth=function(a){return nj(this,12,a)};g.getHeight=function(){return tt(this,13)};g.setHeight=function(a){return nj(this,13,a)};g.setStretch=function(a){return mj(this,33,a)};g.setCrop=function(a){return mj(this,2,a)};g.setCircleCrop=function(a){return mj(this,51,a)};
g.setImageCrop=function(a){return mj(this,32,a)};g.setSmartCrop=function(a){return mj(this,19,a)};g.setSmartCropNoClip=function(a){return mj(this,52,a)};g.setSmartCropUseFace=function(a){return mj(this,67,a)};g.setDetectFaces=function(a){mj(this,80,a)};g.setCenterCrop=function(a){return mj(this,20,a)};g.setPad=function(a){return mj(this,60,a)};g.setDownload=function(a){mj(this,3,a)};g.setHtml=function(a){mj(this,4,a)};g.getObjectId=function(){return ut(this,7)};
g.setObjectId=function(a){rj(this,7,null==a?a:xb(a))};g.setLooseFaceCrop=function(a){return mj(this,65,a)};g.setFaceCropVersion=function(a){nj(this,94,a)};g.setFrameId=function(a){rj(this,29,null==a?a:xb(a))};g.setTileX=function(a){nj(this,9,a)};g.setTileY=function(a){nj(this,10,a)};g.setTileZoom=function(a){nj(this,11,a)};g.setTileGeneration=function(a){mj(this,14,a)};g.setForceTileGeneration=function(a){mj(this,34,a)};g.setTilePyramidAsProto=function(a){mj(this,72,a)};
g.setExpirationTime=function(a){nj(this,15,a)};g.setImageFilter=function(a){return qj(this,16,a)};g.setKillAnimation=function(a){return mj(this,17,a)};g.setUnfiltered=function(a){mj(this,18,a)};g.setUnfilteredWithTransforms=function(a){mj(this,45,a)};g.setIncludeMetadata=function(a){mj(this,22,a)};g.setIncludePublicMetadata=function(a){mj(this,54,a)};g.setStripGoogleData=function(a){mj(this,82,a)};g.setPreserveGoogleData=function(a){mj(this,83,a)};g.setStripMetadata=function(a){mj(this,93,a)};
g.setStripGeoinfo=function(a){mj(this,95,a)};g.setEsPortraitApprovedOnly=function(a){return mj(this,21,a)};g.setBypassTakedown=function(a){mj(this,23,a)};g.getToken=function(){return Ej(this,24)};g.setToken=function(a){return qj(this,24,a)};g.setVersionedToken=function(a){qj(this,36,a)};g.setSkipRefererCheck=function(a){mj(this,6,a)};g.setRotate=function(a){return nj(this,26,a)};g.setHorizontalFlip=function(a){mj(this,30,a)};g.setVerticalFlip=function(a){mj(this,31,a)};
g.getOverlay=function(){return Er(this,27)};g.setOverlay=function(a){return mj(this,27,a)};g.setQueryString=function(a){qj(this,28,a)};g.setRequestJpeg=function(a){return mj(this,57,a)};g.setRequestPng=function(a){return mj(this,58,a)};g.setRequestGif=function(a){mj(this,59,a)};g.setRequestAvif=function(a){mj(this,103,a)};g.setRequestWebp=function(a){return mj(this,35,a)};g.setRequestWebpUnlessMaybeTransparent=function(a){mj(this,41,a)};g.setRequestAnimatedWebp=function(a){mj(this,64,a)};
g.setNoWebp=function(a){mj(this,48,a)};g.setRequestH264=function(a){return mj(this,49,a)};g.setLossy=function(a){mj(this,97,a)};g.setNoOverlay=function(a){return mj(this,37,a)};g.setBorderSize=function(a){nj(this,38,a)};g.setBorderRadius=function(a){nj(this,86,a)};g.setBorderColor=function(a){nj(this,39,a)};g.getBackgroundColor=function(){return tt(this,87)};g.setBackgroundColor=function(a){nj(this,87,a)};g.setPadColor=function(a){nj(this,88,a)};g.setSubstitutionColor=function(a){nj(this,89,a)};
g.setNoSilhouette=function(a){mj(this,40,a)};g.setFocusBlur=function(a){nj(this,42,a)};g.setFocalPlane=function(a){nj(this,43,a)};g.setQualityLevel=function(a){return nj(this,44,a)};g.setQualityBucket=function(a){return nj(this,62,a)};g.setNoUpscale=function(a){mj(this,46,a)};g.setPreserveAspectRatio=function(a){mj(this,61,a)};g.setForceTransformation=function(a){mj(this,50,a)};g.setNoDefaultImage=function(a){mj(this,53,a)};g.setNoCorrectExifOrientation=function(a){mj(this,55,a)};
g.setSelectFrameNumber=function(a){nj(this,56,a)};g.setVideoFormat=function(a){nj(this,63,a)};g.setVideoMultiFormat=function(a){qj(this,81,a)};g.setVideoManifest=function(a){mj(this,98,a)};g.setDownloadVideo=function(a){mj(this,90,a)};g.setVideoBegin=function(a){xj(this,68,a)};g.setVideoLength=function(a){xj(this,69,a)};g.setMatchVersion=function(a){mj(this,66,a)};g.setImageDigest=function(a){mj(this,70,a)};g.setInternalClient=function(a){nj(this,71,a)};g.setMonogram=function(a){mj(this,73,a)};
g.setForceMonogram=function(a){return mj(this,84,a)};g.setMonogramDogfood=function(a){mj(this,91,a)};g.setIgnoreLowResProfilePhoto=function(a){mj(this,96,a)};g.setAutoloop=function(a){mj(this,74,a)};g.getImageVersion=function(){return Wm(this,75)};g.setImageVersion=function(a){xj(this,75,a)};g.setPitchDegrees=function(a){rj(this,76,nb(a))};g.setYawDegrees=function(a){rj(this,77,nb(a))};g.setRollDegrees=function(a){rj(this,78,nb(a))};g.setFovDegrees=function(a){rj(this,79,nb(a))};
g.setBadge=function(a){nj(this,85,a)};g.setColorProfile=function(a){nj(this,92,a)};g.setDeepCrop=function(a){qj(this,99,a)};g.setRequestVideoFast=function(a){mj(this,100,a)};g.setVideoFormatFilters=function(a){qj(this,102,a)};g.setDummyCacheKeyModifier=function(a){mj(this,104,a)};g.setGainMap=function(a){mj(this,105,a)};g.setNoGainMap=function(a){mj(this,106,a)};var lN=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};lN.prototype.set=function(a,b){b4b(this,a,b,!1)};lN.prototype.add=function(a,b){b4b(this,a,b,!0)};var b4b=function(a,b,c,d){for(var e=0;e<b.length;e++){var f=b.charAt(e);a.childNodes_[f]||(a.childNodes_[f]=new lN);a=a.childNodes_[f]}if(d&&void 0!==a.value_)throw Error("jd`"+b);a.value_=c};lN.prototype.setAll=function(a){var b=HSb(a);a=hC(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var c4b=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};lN.prototype.get=function(a){return(a=c4b(this,a))?a.value_:void 0};lN.prototype.getValues=function(){var a=[];d4b(this,a);return a};var d4b=function(a,b){void 0!==a.value_&&b.push(a.value_);for(var c in a.childNodes_)d4b(a.childNodes_[c],b)};
lN.prototype.getKeys=function(a){var b=[];if(a){for(var c=this,d=0;d<a.length;d++){var e=a.charAt(d);if(!c.childNodes_[e])return[];c=c.childNodes_[e]}e4b(c,a,b)}else e4b(this,"",b);return b};var e4b=function(a,b,c){void 0!==a.value_&&c.push(b);for(var d in a.childNodes_)e4b(a.childNodes_[d],b+d,c)};g=lN.prototype;g.containsKey=function(a){return void 0!==this.get(a)};
g.containsValue=function(a){if(this.value_===a)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(a))return!0;return!1};g.clear=function(){this.childNodes_={};this.value_=void 0};g.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("kd`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.value_;for(delete b.value_;0<c.length;)if(e=c.pop(),b=e[0],e=e[1],b.childNodes_[e].isEmpty())delete b.childNodes_[e];else break;return a};
g.clone=function(){return new lN(this)};g.getCount=function(){return GSb(this.getValues())};g.isEmpty=function(){return void 0===this.value_&&xc(this.childNodes_)};var h4b=function(){if(!f4b){var a=f4b=new lN,b;for(b in g4b)a.add(b,g4b[b])}},f4b,mN=function(a,b){this.types=a;this.setters=b},g4b={a:new mN([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new mN([3],[function(a,b){a.setAutoloop(b)}]),b:new mN([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new mN([0],[function(a,b){a.setBadge(b)}]),bc:new mN([0],[function(a,b){a.setBackgroundColor(b)}]),br:new mN([0],[function(a,
b){a.setBorderRadius(b)}]),c:new mN([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new mN([3],[function(a,b){a.setCircleCrop(b)}]),ci:new mN([3],[function(a,b){a.setImageCrop(b)}]),ckm:new mN([3],[function(a,b){a.setDummyCacheKeyModifier(b)}]),cp:new mN([0],[function(a,b){a.setColorProfile(b)}]),cv:new mN([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new mN([3],[function(a,b){a.setDownload(b)}]),dc:new mN([5],[function(a,b){a.setDeepCrop(b)}]),df:new mN([3],[function(a,
b){a.setDetectFaces(b)}]),dv:new mN([3],[function(a,b){a.setDownloadVideo(b)}]),e:new mN([0],[function(a,b){a.setExpirationTime(b)}]),f:new mN([4],[function(a,b){a.setImageFilter(b)}]),fg:new mN([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new mN([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new mN([3],[function(a,b){a.setForceMonogram(b)}]),fo:new mN([2],[function(a,b){a.setFovDegrees(b)}]),ft:new mN([3],[function(a,b){a.setForceTransformation(b)}]),fv:new mN([3],[function(a,b){a.setVerticalFlip(b)}]),
g:new mN([3],[function(a,b){a.setTileGeneration(b)}]),gd:new mN([3],[function(a,b){a.setPreserveGoogleData(b)}]),gm:new mN([3],[function(a,b){a.setGainMap(b)}]),h:new mN([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new mN([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new mN([0],[function(a,b){a.setInternalClient(b)}]),id:new mN([3],[function(a,b){a.setImageDigest(b)}]),il:new mN([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new mN([3],[function(a,b){a.setIncludePublicMetadata(b)}]),
iv:new mN([0],[function(a,b){a.setImageVersion(b)}]),j:new mN([1],[function(a,b){a.setFrameId(b)}]),k:new mN([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new mN([0],[function(a,b){a.setQualityLevel(b)}]),lf:new mN([3],[function(a,b){a.setLooseFaceCrop(b)}]),lo:new mN([3],[function(a,b){a.setLossy(b)}]),m:new mN([0],[function(a,b){a.setVideoFormat(b)}]),md:new mN([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new mN([4],[function(a,b){a.setVideoMultiFormat(b)}]),
mo:new mN([3],[function(a,b){a.setMonogram(b)}]),mv:new mN([3],[function(a,b){a.setMatchVersion(b)}]),n:new mN([3],[function(a,b){a.setCenterCrop(b)}]),nc:new mN([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new mN([3],[function(a,b){a.setNoDefaultImage(b)}]),ng:new mN([3],[function(a,b){a.setStripGeoinfo(b)}]),ngm:new mN([3],[function(a,b){a.setNoGainMap(b)}]),no:new mN([3],[function(a,b){a.setNoOverlay(b)}]),ns:new mN([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new mN([4],[function(a,
b){a.setVersionedToken(b)}]),nu:new mN([3],[function(a,b){a.setNoUpscale(b)}]),nw:new mN([3],[function(a,b){a.setNoWebp(b)}]),o:new mN([1,3],[function(a,b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),p:new mN([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new mN([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new mN([0],[function(a,b){a.setPadColor(b)}]),pd:new mN([3],[function(a,b){a.setPad(b)}]),pf:new mN([3],[function(a,b){a.setSmartCropUseFace(b)}]),
pg:new mN([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new mN([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new mN([3],[function(a,b){a.setSmartCropNoClip(b)}]),q:new mN([4],[function(a,b){a.setQueryString(b)}]),r:new mN([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),ra:new mN([3],[function(a,b){a.setRequestAvif(b)}]),rf:new mN([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new mN([3],[function(a,b){a.setRequestGif(b)}]),rh:new mN([3],[function(a,b){a.setRequestH264(b)}]),
rj:new mN([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new mN([2],[function(a,b){a.setRollDegrees(b)}]),rp:new mN([3],[function(a,b){a.setRequestPng(b)}]),rw:new mN([3],[function(a,b){a.setRequestWebp(b)}]),rwa:new mN([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new mN([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new mN([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sc:new mN([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new mN([3],[function(a,
b){a.setStripGoogleData(b)}]),sm:new mN([3],[function(a,b){a.setStripMetadata(b)}]),t:new mN([4],[function(a,b){a.setToken(b)}]),u:new mN([3],[function(a,b){a.setUnfiltered(b)}]),ut:new mN([3],[function(a,b){a.setUnfilteredWithTransforms(b)}]),v:new mN([0],[function(a,b){a.setQualityBucket(b)}]),vb:new mN([0],[function(a,b){a.setVideoBegin(b)}]),vf:new mN([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new mN([0],[function(a,b){a.setVideoLength(b)}]),vm:new mN([3],[function(a,b){a.setVideoManifest(b)}]),
w:new mN([0],[function(a,b){a.setWidth(b)}]),x:new mN([0],[function(a,b){a.setTileX(b)}]),y:new mN([0],[function(a,b){a.setTileY(b)}]),ya:new mN([2],[function(a,b){a.setYawDegrees(b)}]),z:new mN([0],[function(a,b){a.setTileZoom(b)}])};
h4b.prototype.parse=function(a){var b=new a4b,c=new a4b;if(""==a)a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(0==f.length)d=!1;else{var h=f,k=!1;var q=h;var u=h.charAt(0);u!=u.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var x=f4b;for(u=1;u<=q.length;++u){var y=x,E=q.substring(0,u);if(0==E.length?y.isEmpty():!c4b(y,E))break}q=1==u?null:(q=x.get(q.substring(0,u-1)))?{option:h.substring(0,u-1),value:h.substring(u-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];u=!1;for(x=0;x<q.attributes.types.length;x++){y=q.attributes.types[x];var H=q.value;E=e;if(q.signed&&1==y)for(var J=H.length;12>J&&E<a.length-1;)H+="-"+a[E+1],J=H.length,++E;else if(2==y)for(;E<a.length-1&&a[E+1].match(/^[\d\.]/);)H+="-"+a[E+1],++E;J=q.attributes.setters[x];H=i4b(this,y)(q.option,H,b,c,J);if(null===H){u=!0;e=E;break}else h.push(y),k.push(H)}if(!u)for(q=0;q<k.length;q++)x=h[q],H=k[q],j4b(this,x)(f,H);d=d&&u}else d=!1}}a=d}return new k4b(b,c,a)};
var nN=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};g=h4b.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(""==b)return 0;b=qi(b);if(isNaN(b))return 1;nN(a,b,c,d,e,Number);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(""==b)return 0;b=fl(b);if(isNaN(b))return 1;nN(a,b,c,d,e,Number);return null};g.logFloatParseError_=function(){};
g.parseAndSetBoolOption_=function(a,b,c,d,e){if(""!=b)return 2;nN(a,!0,c,d,e,Boolean);return null};g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(""==b)return 0;nN(a,b,c,d,e,function(f){return f?"1":""});return null};g.logStringParseError_=function(){};g.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(""==b)return 0;nN(a,b,c,d,e,function(f){return f?1:0});return null};
var i4b=function(a,b){switch(b){case 0:return dt(a.parseAndSetIntOption_,a);case 2:return dt(a.parseAndSetFloatOption_,a);case 3:return dt(a.parseAndSetBoolOption_,a);case 4:return dt(a.parseAndSetStringOption_,a);case 1:return dt(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},j4b=function(a,b){switch(b){case 0:return dt(a.logIntParseError_,a);case 2:return dt(a.logFloatParseError_,a);case 3:return dt(a.logBoolParseError_,a);case 4:case 1:return dt(a.logStringParseError_,a);default:return function(){}}},
k4b=function(a,b,c){this.valueProto_=a;this.signatureFlagProto_=b;this.valid_=c};k4b.prototype.isValid=function(){return this.valid_};var l4b=function(a,b){null!=a&&this.append.apply(this,arguments)};g=l4b.prototype;g.buffer_="";g.set=function(a){this.buffer_=""+a};g.append=function(a,b,c){this.buffer_+=String(a);if(null!=b)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};g.clear=function(){this.buffer_=""};g.getLength=function(){return this.buffer_.length};g.toString=function(){return this.buffer_};var oN=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;m4b(this,a)};oN.prototype.getParsedOptions=function(){return this.parsedOptions_};var n4b=function(a){null==a.parser_&&(a.parser_=new h4b);return a.parser_},m4b=function(a,b){a.parsedOptions_=b?"string"===typeof b?n4b(a).parse(b):b:n4b(a).parse("")},pN=function(a,b){return a==b?!1:!0};g=oN.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,21)&&b.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,56),tt(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};g.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,74)&&b.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,23,!1)&&b.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,38),tt(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,85),tt(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getBackgroundColor(),b.signatureFlagProto_.getBackgroundColor())&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,86),tt(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};g.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,2,!1)&&b.setCrop(a);return this};
g.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,39),tt(b.signatureFlagProto_,39))&&c.setBorderColor(a)};g.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,51)&&b.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,32)&&b.setImageCrop(a);return this};g.setDummyCacheKeyModifier=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,104)&&b.setDummyCacheKeyModifier(a)};
g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,92),tt(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,94),tt(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};g.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,3,!1)&&b.setDownload(a)};g.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ej(b,99)&&b.setDeepCrop(a)};
g.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,80)&&b.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,90)&&b.setDownloadVideo(a)};g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,15),tt(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};g.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ej(b,16)&&b.setImageFilter(a);return this};
g.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,34,!1)&&b.setForceTileGeneration(a)};g.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,30)&&b.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,84)&&b.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,$p(c,79),$p(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,50)&&b.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,31)&&b.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,14,!1)&&b.setTileGeneration(a)};g.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,83)&&b.setPreserveGoogleData(a)};
g.setGainMap=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,105)&&b.setGainMap(a)};g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,4,!1)&&b.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};g.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,22)&&b.setIncludeMetadata(a)};
g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,71),tt(b.signatureFlagProto_,71))&&c.setInternalClient(a)};g.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,70)&&b.setImageDigest(a)};g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,96)&&b.setIgnoreLowResProfilePhoto(a)};g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,54)&&b.setIncludePublicMetadata(a)};
g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;pN(a,ut(c,29),ut(b.signatureFlagProto_,29))&&c.setFrameId(a)};g.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,17)&&b.setKillAnimation(a);return this};
g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,42),tt(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,44),tt(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};g.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,65)&&b.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,97)&&b.setLossy(a)};
g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,63),tt(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};g.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,91)&&b.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ej(b,81)&&b.setVideoMultiFormat(a)};g.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,73)&&b.setMonogram(a)};
g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,66)&&b.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,20,!1)&&b.setCenterCrop(a);return this};g.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,55)&&b.setNoCorrectExifOrientation(a)};g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,53)&&b.setNoDefaultImage(a)};
g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,95)&&b.setStripGeoinfo(a)};g.setNoGainMap=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,106)&&b.setNoGainMap(a)};g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,37,!1)&&b.setNoOverlay(a);return this};g.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,40)&&b.setNoSilhouette(a)};
g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ej(b,36)&&b.setVersionedToken(a)};g.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,46)&&b.setNoUpscale(a)};g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,48,!1)&&b.setNoWebp(a)};g.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getObjectId(),b.signatureFlagProto_.getObjectId())&&c.setObjectId(a)};
g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};g.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,19,!1)&&b.setSmartCrop(a);return this};g.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,43),tt(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};
g.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,61)&&b.setPreserveAspectRatio(a)};g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,88),tt(b.signatureFlagProto_,88))&&c.setPadColor(a)};g.setPad=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,60)&&b.setPad(a);return this};g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,67,!1)&&b.setSmartCropUseFace(a);return this};
g.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,72,!1)&&b.setTilePyramidAsProto(a)};g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,$p(c,76),$p(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,52,!1)&&b.setSmartCropNoClip(a);return this};g.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ej(b,28)&&b.setQueryString(a)};
g.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,6,!1)&&b.setSkipRefererCheck(a)};g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,26),tt(b.signatureFlagProto_,26))&&c.setRotate(a);return this};g.setRequestAvif=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,103,!1)&&b.setRequestAvif(a)};g.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,100)&&b.setRequestVideoFast(a)};
g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,59)&&b.setRequestGif(a)};g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,49,!1)&&b.setRequestH264(a);return this};g.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,57)&&b.setRequestJpeg(a);return this};g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,$p(c,78),$p(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};
g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,58)&&b.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,35,!1)&&b.setRequestWebp(a);return this};g.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,64,!1)&&b.setRequestAnimatedWebp(a)};g.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ri(b,41,!1)&&b.setRequestWebpUnlessMaybeTransparent(a)};
g.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,33)&&b.setStretch(a);return this};g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,89),tt(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};
g.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,82)&&b.setStripGoogleData(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,93)&&b.setStripMetadata(a)};g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};g.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,18)&&b.setUnfiltered(a)};
g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,45)&&b.setUnfilteredWithTransforms(a)};g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,62),tt(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,Wm(c,68),Wm(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};
g.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Ej(b,102)&&b.setVideoFormatFilters(a)};g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,Wm(c,69),Wm(b.signatureFlagProto_,69))&&c.setVideoLength(a)};g.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_.valueProto_;a!=Er(b,98)&&b.setVideoManifest(a)};
g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,9),tt(b.signatureFlagProto_,9))&&c.setTileX(a)};g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,10),tt(b.signatureFlagProto_,10))&&c.setTileY(a)};
g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,$p(c,77),$p(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;pN(a,tt(c,11),tt(b.signatureFlagProto_,11))&&c.setTileZoom(a)};g.setOptions=function(a){m4b(this,a)};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;qN(this,"s",b.getSize(),a.getSize());qN(this,"w",b.getWidth(),a.getWidth());rN(this,"c",Ri(b,2,!1),Ri(a,2,!1));rN(this,"d",Ri(b,3,!1),Ri(a,3,!1));qN(this,"h",b.getHeight(),a.getHeight());rN(this,"s",Er(b,33),Er(a,33));rN(this,"h",Ri(b,4,!1),Ri(a,4,!1));rN(this,"p",Ri(b,19,!1),Ri(a,19,!1));rN(this,"pp",Ri(b,52,!1),Ri(a,52,!1));rN(this,"pf",Ri(b,67,!1),Ri(a,67,!1));rN(this,"n",Ri(b,20,!1),
Ri(a,20,!1));qN(this,"r",tt(b,26),tt(a,26));rN(this,"r",Ri(b,6,!1),Ri(a,6,!1));rN(this,"o",b.getOverlay(),a.getOverlay());var c=b.getObjectId();sN(this,"o",c,a.getObjectId());c=ut(b,29);sN(this,"j",c,ut(a,29));qN(this,"x",tt(b,9),tt(a,9));qN(this,"y",tt(b,10),tt(a,10));qN(this,"z",tt(b,11),tt(a,11));rN(this,"g",Ri(b,14,!1),Ri(a,14,!1));qN(this,"e",tt(b,15),tt(a,15));sN(this,"f",Ej(b,16),Ej(a,16));rN(this,"k",Er(b,17),Er(a,17));rN(this,"u",Er(b,18),!0);rN(this,"ut",Er(b,45),!0);rN(this,"i",Er(b,22),
!0);rN(this,"a",Er(b,21),Er(a,21));rN(this,"b",Ri(b,23,!1),Ri(a,23,!1));qN(this,"b",tt(b,38),tt(a,38));qN(this,"c",tt(b,39),tt(a,39),16,8);sN(this,"q",Ej(b,28),Ej(a,28));rN(this,"fh",Er(b,30),Er(a,30));rN(this,"fv",Er(b,31),Er(a,31));rN(this,"fg",Ri(b,34,!1),Ri(a,34,!1));rN(this,"ci",Er(b,32),Er(a,32));sN(this,"t",b.getToken(),a.getToken());sN(this,"nt0",Ej(b,36),Ej(a,36));rN(this,"rw",Ri(b,35,!1),Ri(a,35,!1));rN(this,"rwu",Ri(b,41,!1),Ri(a,41,!1));rN(this,"rwa",Ri(b,64,!1),Ri(a,64,!1));rN(this,"nw",
Ri(b,48,!1),Ri(a,48,!1));rN(this,"rh",Ri(b,49,!1),Ri(a,49,!1));rN(this,"no",Ri(b,37,!1),Ri(a,37,!1));rN(this,"ns",Er(b,40),Er(a,40));qN(this,"k",tt(b,42),tt(a,42));qN(this,"p",tt(b,43),tt(a,43));qN(this,"l",tt(b,44),tt(a,44));qN(this,"v",tt(b,62),tt(a,62));rN(this,"nu",Er(b,46),Er(a,46));rN(this,"ft",Er(b,50),Er(a,50));rN(this,"cc",Er(b,51),Er(a,51));rN(this,"nd",Er(b,53),Er(a,53));rN(this,"ip",Er(b,54),Er(a,54));rN(this,"nc",Er(b,55),Er(a,55));qN(this,"a",tt(b,56),tt(a,56));rN(this,"rj",Er(b,57),
Er(a,57));rN(this,"rp",Er(b,58),Er(a,58));rN(this,"rg",Er(b,59),Er(a,59));rN(this,"pd",Er(b,60),Er(a,60));rN(this,"pa",Er(b,61),Er(a,61));qN(this,"m",tt(b,63),tt(a,63));qN(this,"vb",Wm(b,68),Wm(a,68));qN(this,"vl",Wm(b,69),Wm(a,69));rN(this,"lf",Er(b,65),Er(a,65));rN(this,"mv",Er(b,66),Er(a,66));rN(this,"id",Er(b,70),Er(a,70));qN(this,"ic",tt(b,71),!0);rN(this,"pg",Ri(b,72,!1),Ri(a,72,!1));rN(this,"mo",Er(b,73),Er(a,73));rN(this,"al",Er(b,74),Er(a,74));qN(this,"iv",b.getImageVersion(),a.getImageVersion());
qN(this,"pi",$p(b,76),$p(a,76));qN(this,"ya",$p(b,77),$p(a,77));qN(this,"ro",$p(b,78),$p(a,78));qN(this,"fo",$p(b,79),$p(a,79));rN(this,"df",Er(b,80),Er(a,80));sN(this,"mm",Ej(b,81),Ej(a,81));rN(this,"sg",Er(b,82),Er(a,82));rN(this,"gd",Er(b,83),Er(a,83));rN(this,"fm",Er(b,84),Er(a,84));qN(this,"ba",tt(b,85),tt(a,85));qN(this,"br",tt(b,86),tt(a,86));qN(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);qN(this,"pc",tt(b,88),tt(a,88),16,8);qN(this,"sc",tt(b,89),tt(a,89),16,8);rN(this,"dv",
Er(b,90),Er(a,90));rN(this,"md",Er(b,91),Er(a,91));qN(this,"cp",tt(b,92),tt(a,92));rN(this,"sm",Er(b,93),Er(a,93));qN(this,"cv",tt(b,94),tt(a,94));rN(this,"ng",Er(b,95),Er(a,95));rN(this,"il",Er(b,96),Er(a,96));rN(this,"lo",Er(b,97),Er(a,97));rN(this,"vm",Er(b,98),Er(a,98));sN(this,"dc",Ej(b,99),Ej(a,99));rN(this,"rf",Er(b,100),Er(a,100));sN(this,"vf",Ej(b,102),Ej(a,102));rN(this,"ra",Ri(b,103,!1),Ri(a,103,!1));rN(this,"ckm",Er(b,104),Er(a,104));rN(this,"gm",Er(b,105),Er(a,105));rN(this,"ngm",Er(b,
106),Er(a,106));return this.components_.join("-")};var qN=function(a,b,c,d,e,f){if(null!=c){var h=void 0==e||10!=e&&16!=e?10:e;c=c.toString(h);e=new l4b;e.append(16==h?"0x":"");h=e.append;void 0==f?f="":(f-=c.length,f=0>=f?"":IGb("0",f));h.call(e,f);e.append(c);o4b(a,b,e.toString(),!!d)}},rN=function(a,b,c,d){c&&o4b(a,b,"",!!d)},sN=function(a,b,c,d){c&&o4b(a,b,c,!!d)},o4b=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};var tN=function(a){oN.call(this,a)};ft(tN,oN);g=tN.prototype;g.setCrop=function(a){a&&uN(this);return tN.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return tN.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&uN(this);return tN.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return tN.superClass_.setQualityLevel.call(this,a)};
g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return tN.superClass_.setImageFilter.call(this,a)};g.setImageCrop=function(a){a&&uN(this);return tN.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&uN(this);return tN.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){Fa(a)&&(a=Math.max(a.width,a.height));a=null==a||0>a?void 0:a;null!=a&&(this.setWidth(),this.setHeight());return tN.superClass_.setSize.call(this,a)};
g.setSmartCrop=function(a){a&&uN(this);return tN.superClass_.setSmartCrop.call(this,a)};g.setSmartCropNoClip=function(a){a&&uN(this);return tN.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&uN(this);return tN.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&uN(this);return tN.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&uN(this);return tN.superClass_.setPad.call(this,a)};
g.setWidth=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return tN.superClass_.setWidth.call(this,a)};var uN=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};
tN.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Er(a,18)||Er(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),uN(this)));return tN.superClass_.build.call(this)};var p4b=/^[^\/]*\/\//,vN=function(a,b){b=void 0===b?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(p4b))&&a[0]?(this.originalPrefix_=a[0],a=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):a="http://"+this.original_;this.uri_=tC(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},q4b=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},wN=function(a){if(void 0==a.components_){var b=a.uri_.getPath().substring(1);
a.pathPrefix_=null;if(a.isFreeformUrl_){a.components_=[];if(1<(b.match(/=/g)||[]).length)return a.valid_=!1,a.components_;var c=b.indexOf("=");-1!=c?(a.components_.push(b.substr(0,c)),a.components_.push(b.substr(c+1))):a.components_.push(b);return a.components_}a.components_=b.split("/");b=a.components_.length;2<b&&"u"==a.components_[0]&&(q4b(a,a.components_[0]+"/"+a.components_[1]),a.components_.shift(),a.components_.shift(),b-=2);if(0==b||4==b||7<b)return a.valid_=!1,a.components_;if(2==b)q4b(a,
a.components_[0]);else if("image"==a.components_[0])q4b(a,a.components_[0]);else if(7==b||3==b)return a.valid_=!1,a.components_;if(3>=b){a.obfuscated_=!0;3==b&&(q4b(a,a.components_[1]),a.components_.shift(),--b);--b;c=a.components_[b];var d=c.indexOf("=");-1!=d&&(a.components_[b]=c.substr(0,d),a.components_.push(c.substr(d+1)))}}return a.components_};vN.prototype.isValid=function(){wN(this);return this.valid_};var r4b=function(a){wN(a);return a.obfuscated_},s4b=function(a){wN(a);return a.isFreeformUrl_};
vN.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};vN.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var xN=function(a){wN(a);void 0==a.pathPrefix_&&(a.pathPrefix_=null);return a.pathPrefix_};vN.prototype.hasOptions=function(){switch(wN(this).length){case 7:return!0;case 6:return null==xN(this);case 5:return!1;case 3:return!0;case 2:return null==xN(this);case 1:return!1;default:return!1}};
var yN=function(a,b){if(s4b(a))a:{switch(b){case 7:b=0;break;case 4:if(!a.hasOptions()){a=null;break a}b=1;break;default:a=null;break a}a=wN(a)[b]}else if(r4b(a))a:{var c=null!=xN(a)?1:0;switch(b){case 6:b=c;break;case 4:if(!a.hasOptions()){a=null;break a}b=1+c;break;default:a=null;break a}a=wN(a)[b]}else a:{c=null!=xN(a)?1:0;switch(b){case 0:b=c;break;case 1:b=1+c;break;case 2:b=2+c;break;case 3:b=3+c;break;case 4:if(!a.hasOptions()){a=null;break a}b=4+c;break;case 5:b=a.hasOptions()?1:0;b=4+c+b;
break;default:a=null;break a}a=wN(a)[b]}return a};g=vN.prototype;g.getObfuscatedGaiaId=function(){void 0==this.obfuscatedGaiaId_&&(this.obfuscatedGaiaId_=yN(this,0));return this.obfuscatedGaiaId_};g.getPhotoId=function(){void 0==this.photoId_&&(this.photoId_=yN(this,1));return this.photoId_};g.getImageVersion=function(){void 0==this.imageVersion_&&(this.imageVersion_=yN(this,2));return this.imageVersion_};g.getOptions=function(){void 0==this.options_&&(this.options_=yN(this,4));return this.options_};
g.getFilename=function(){void 0==this.filename_&&(this.filename_=yN(this,5));return this.filename_};var t4b=function(){};t4b.prototype.parse=function(a,b){return new u4b(a,void 0===b?!1:b)};var u4b=function(a,b){vN.call(this,a,void 0===b?!1:b)};W(u4b,vN);u4b.prototype.getParsedOptions=function(){if(void 0==this.parsedOptions_){var a=this.getOptions();a||(a="");this.parsedOptions_=(new h4b).parse(a)}return this.parsedOptions_};var zN=function(a,b){b=void 0===b?!1:b;this.parsedImageUrl_=null;a instanceof u4b||(void 0==v4b&&(v4b=new t4b),a=v4b.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();oN.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},v4b;ft(zN,tN);zN.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
zN.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=zN.superClass_.build.call(this),b=[];null!=xN(this.parsedImageUrl_)&&b.push(xN(this.parsedImageUrl_));var c=s4b(this.parsedImageUrl_);if(r4b(this.parsedImageUrl_)){var d=this.parsedImageUrl_;void 0==d.obfuscatedData_&&(d.obfuscatedData_=yN(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;void 0===e.freeformUrlPath_&&(e.freeformUrlPath_=yN(e,7));d.call(b,
e.freeformUrlPath_);a&&b.push(a)}else b.push(this.parsedImageUrl_.getObfuscatedGaiaId()),b.push(this.parsedImageUrl_.getPhotoId()),b.push(this.parsedImageUrl_.getImageVersion()),d=b.push,e=this.parsedImageUrl_,void 0==e.signature_&&(e.signature_=yN(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=c?b.join("="):b.join("/");a=tC(this.protocolPrefix_+this.domain_+"/"+a+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));
return a};var w4b=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],AN=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new B.ReplaySubject(1);this.person$=this.providedEmail$.pipe(zf(function(d){return O3b(c.peopleService,d)}),A(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;var k=new zN(h);k.setSize(48);h=k.build()||h}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),wf(1));this.outOfOfficeDescription$=
new B.ReplaySubject;this.init=new B.ReplaySubject(1);this.destroyed$=new B.ReplaySubject(1)};AN.prototype.ngOnInit=function(){var a=this;this.person$.pipe(nf(),Af(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&x4b(this)};var x4b=function(a){a.waldoService&&a.person$.pipe(zf(function(b){return b?$3b(a.waldoService,b.email):(0,B.of)("")}),Af(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
Qh.Object.defineProperties(AN.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});AN.\u0275fac=function(a){return new (a||AN)(z(LM),z(kN,8))};
AN.\u0275cmp=od({type:AN,selectors:[["onedev-person-hovercard"]],inputs:{email:"email",enableWaldo:"enableWaldo"},outputs:{init:"init"},ngContentSelectors:["onedev-hovercard-action","[onedev-additional-content]"],decls:2,vars:3,consts:[[3,"person","outOfOfficeDescription",4,"ngIf"],[3,"person","outOfOfficeDescription"]],template:function(a,b){a&1&&(eg(w4b),P(0,$Ga,4,4,"onedev-person-hovercard-body",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.person$))},dependencies:[Ev,EM,Kv],encapsulation:2,changeDetection:0});var y4b=[[["onedev-hovercard-action"],["",8,"actions"]]],BN=function(){};BN.prototype.ngOnInit=function(){};BN.\u0275fac=function(a){return new (a||BN)};
BN.\u0275cmp=od({type:BN,selectors:[["b-person-card"]],inputs:{email:"email"},ngContentSelectors:["onedev-hovercard-action, .actions"],decls:1,vars:0,consts:[[3,"email","enableWaldo","onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"email","enableWaldo","onedevIsHovercardReady"],["cardBody",""]],template:function(a){a&1&&(eg(y4b),P(0,aHa,3,3,"onedev-person-hovercard",0))},dependencies:[AN,QJ,RJ],styles:["onedev-hovercard-action[_ngcontent-%COMP%]   .label-enabled[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}onedev-hovercard-action[_ngcontent-%COMP%]   .label-disabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.2)}[_nghost-%COMP%]     .onedev-hovercard-content .onedev-hovercard-body a:focus{outline-width:1px}"],
changeDetection:0});var CN=function(){this.isNonObfuscatedEmail=yn};CN.\u0275fac=function(a){return new (a||CN)};
CN.\u0275cmp=od({type:CN,selectors:[["b-person-hovercard"]],inputs:{email:"email"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],["card",""],[3,"email"]],template:function(a,b){a&1&&(eg(),P(0,cHa,6,4,"ng-container",0),P(1,dHa,1,0,"ng-template",null,1,Eg));if(a&2){var c=N(2);C("ngIf",!!b.email&&b.isNonObfuscatedEmail(b.email))("ngIfElse",
c)}},dependencies:[Ev,Jv,PJ,UJ,BN],encapsulation:2,changeDetection:0});var DN=function(){};DN.prototype.transform=function(a){if(yn(a))return a};DN.\u0275fac=function(a){return new (a||DN)};DN.\u0275pipe=td({name:"omitObfuscatedEmail",type:DN,pure:!0});var EN=function(a){this.internalArray_=m(a)};W(EN,X);EN.prototype.getDisplayName=function(){return Hi(this,1)};EN.prototype.setDisplayName=function(a){return qj(this,1,a)};EN.prototype.getPhotoUrl=function(){return Hi(this,2)};var FN=function(a){this.internalArray_=m(a,0,FN.messageId)};W(FN,X);FN.messageId="b.UserProfileBatchResponse";var GN=function(a,b){var c=this;this.userProfilesBatchApiConfig=a;this.batchApiAdapter=b;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new AZb(function(d){return c.batchAdaptedGet(d)},100)};GN.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};GN.\u0275fac=function(a){return new (a||GN)(n(HN),n(BE))};GN.\u0275prov=$c({token:GN,factory:GN.\u0275fac,providedIn:"root"});var HN=function(a){this.executor=a};
HN.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(p(a)).join(",")}},responseConstructor:FN}).pipe(gf(function(){return(0,B.of)(new FN)}))};HN.prototype.split=function(a,b){return(a=$b(b,1,EN,Eb).get(a))?{photoUrl:a.getPhotoUrl(),highResolutionPhotoUrl:Hi(a,3),displayName:a.getDisplayName()}:void 0};HN.\u0275fac=function(a){return new (a||HN)(n(tD))};HN.\u0275prov=$c({token:HN,factory:HN.\u0275fac,providedIn:"root"});var IN=function(a){var b=this;this.waldoAvailabilityService=a;this.user="";this.userSubject=new B.ReplaySubject(1);this.availability=this.userSubject.pipe(zf(function(c){return $3b(b.waldoAvailabilityService,c)}))};IN.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};IN.\u0275fac=function(a){return new (a||IN)(z(kN))};
IN.\u0275cmp=od({type:IN,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},features:[Fd],decls:2,vars:3,consts:[["class","chip__container",4,"ngIf"],[1,"chip__container"],["preserveAspectRatio","xMidYMid meet","width","100%","height","100%","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 24 24","aria-hidden","true",1,"chip__icon"],["d","M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"],
["aria-hidden","true",1,"chip__text"]],template:function(a,b){a&1&&(P(0,eHa,6,3,"div",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.availability))},dependencies:[Ev,Kv],styles:["[_nghost-%COMP%]{display:inline-block;height:18px;vertical-align:middle}[_nghost-%COMP%]:empty{display:none}[coinonly][_nghost-%COMP%]   .chip__container[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__container[_ngcontent-%COMP%]{background:#f1f3f4;padding:0 1px}[coinonly][_nghost-%COMP%]   .chip__icon[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__icon[_ngcontent-%COMP%]{fill:#5f6368}[coinonly][_nghost-%COMP%]   .chip__text[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__text[_ngcontent-%COMP%]{display:none}.chip__container[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background:#fef7e0;border:1px solid transparent;border-radius:20px;-moz-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:18px;padding:0 6px;white-space:nowrap;width:100%}.chip__icon[_ngcontent-%COMP%]{fill:#b06000;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:14px;width:14px}.chip__text[_ngcontent-%COMP%]{color:#202124;font-family:Google Sans Display,Roboto,Arial,sans-serif;font-size:12px;letter-spacing:.025em;line-height:16px;margin:0 0 0 6px;overflow:hidden;text-overflow:ellipsis}"],
changeDetection:0});var JN=function(a){this.refreshMonitor=a;this.user="";this.coinonly=null};JN.\u0275fac=function(a){return new (a||JN)(z(EH))};JN.\u0275cmp=od({type:JN,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&P(0,fHa,1,2,"ng-template",0);a&2&&C("refreshable",b.refreshMonitor.getObservable())},dependencies:[IN,iL],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});var z4b=function(){this.issueId="";this.customFieldMap={};this.currentUserEmail="";this.createdTimeMicros=this.authorUser=this.user=this.originalModelData=null;this.componentId=0;this.severity=this.priority=this.type=this.version=null;this.title="";this.verifierUser=this.verifier=this.assigneeUser=this.assignee=this.reporterUser=this.reporter=null;this.cc=[];this.ccUsers=[];this.collaborators=[];this.collaboratorsUsers=[];this.hotlistId=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=
this.postmortems=this.changelist=this.blockingIssueId=this.blockedByIssueId=this.duplicateOfIssueId=this.attachmentId=null;this.customField=[];this.duplicateIssueId=this.significanceOverride=this.deletionReason=this.isDeleted=null;this.isArchived=this.inProd=!1;this.effortEstimate=this.sloSnoozeType=this.sloEndTime=this.sloStartTime=null;this.status="NEW"};
z4b.prototype.setData=function(a,b,c){this.issueId=b;a=li(a);a.status=a.status||"NEW";a.blockingIssueId=a.blockingIssueId||[];a.componentId=a.componentId||0;a.changelist=a.changelist||[];a.postmortems=a.postmortems||[];a.blockedByIssueId=a.blockedByIssueId||[];a.foundInVersion=a.foundInVersion||[];a.hotlistId=a.hotlistId||[];a.targetedToVersion=a.targetedToVersion||[];a.verifiedInVersion=a.verifiedInVersion||[];a.customField=a.customField||[];a.deletionReason=a.deletionReason||null;a.duplicateOfIssueId=
a.duplicateOfIssueId||null;a.isDeleted=a.isDeleted||!1;this.originalModelData=li(a);this.assignee=vi(a.assigneeUser);this.assigneeUser=a.assigneeUser;this.authorUser=a.authorUser;this.attachmentId=a.attachmentId;this.blockedByIssueId=a.blockedByIssueId;this.blockingIssueId=a.blockingIssueId;this.cc=xi(a.ccUsers)||[];this.ccUsers=a.ccUsers||[];this.collaborators=xi(a.collaboratorsUsers)||[];this.collaboratorsUsers=a.collaboratorsUsers||[];this.changelist=a.changelist;this.componentId=a.componentId||
0;this.createdTimeMicros=a.createdTimeMicros;this.deletionReason=a.deletionReason;this.duplicateIssueId=a.duplicateIssueId;this.duplicateOfIssueId=a.duplicateOfIssueId;this.foundInVersion=a.foundInVersion;this.hotlistId=a.hotlistId;this.inProd=a.inProd;this.isArchived=a.isArchived;this.isDeleted=a.isDeleted;this.postmortems=a.postmortems;this.priority=a.priority;this.reporter=vi(a.reporterUser);this.reporterUser=a.reporterUser;this.severity=a.severity;this.significanceOverride=a.significanceOverride;
this.status=a.status||"NEW";this.targetedToVersion=a.targetedToVersion;this.title=a.title;this.type=a.type;this.user=vi(a.authorUser);this.verifiedInVersion=a.verifiedInVersion;this.verifier=vi(a.verifierUser);this.verifierUser=a.verifierUser;this.version=a.version;this.sloStartTime=a.sloStartTime;this.sloEndTime=a.sloEndTime;this.sloSnoozeType=a.sloSnoozeType;var d,e;this.effortEstimate=null!=(e=null==(d=a.effort)?void 0:d.estimate)?e:null;this.customField=[];a&&(this.customField=(a.customField||
[]).filter(function(f){return f}).map(function(f){return new A4b(f)}));c=l(c);e=c.next();for(d={};!e.done;d={fieldResource:d.fieldResource},e=c.next())d.fieldResource=e.value,e=d.fieldResource.allowedValue?d.fieldResource.allowedValue.map(function(f){return{value:f,displayText:f}}):null,(a=this.customField.find(function(f){return function(h){return h.customFieldId===f.fieldResource.customFieldId}}(d)))?(a.type=d.fieldResource.type,a.customFieldName=d.fieldResource.name,a.choices=e,this.customFieldMap[String(d.fieldResource.customFieldId)]=
a):(a=new A4b({customFieldId:d.fieldResource.customFieldId}),a.type=d.fieldResource.type,a.customFieldName=d.fieldResource.name,a.choices=e,this.customFieldMap[String(d.fieldResource.customFieldId)]=a)};
var C4b=function(a){for(var b=[],c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=B4b(a,d.customFieldId);e=e?e.getValue():null;var f=d.getValue();if(!ki(e,f)){if(e=d.isEmpty())d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalModelData){KN(vi(a.originalModelData.assigneeUser),a.assignee,"assignee",b);KN(a.originalModelData.componentId,a.componentId,"componentId",b);KN(a.originalModelData.createdTimeMicros,
a.createdTimeMicros,"createdTimeMicros",b);KN(a.originalModelData.deletionReason,a.deletionReason,"deletionReason",b);KN(a.originalModelData.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);KN(a.originalModelData.inProd,a.inProd,"inProd",b);KN(a.originalModelData.isArchived,a.isArchived,"isArchived",b);KN(a.originalModelData.isDeleted,a.isDeleted,"isDeleted",b);KN(a.originalModelData.priority,a.priority,"priority",b);KN(vi(a.originalModelData.reporterUser),a.reporter,"reporter",b);
KN(a.originalModelData.severity,a.severity,"severity",b);KN(a.originalModelData.significanceOverride,a.significanceOverride,"significanceOverride",b);KN(a.originalModelData.status,a.status,"status",b);KN(a.originalModelData.title,a.title,"title",b);KN(a.originalModelData.type,a.type,"type",b);KN(vi(a.originalModelData.authorUser),a.user,"user",b);KN(vi(a.originalModelData.verifierUser),a.verifier,"verifier",b);KN(a.originalModelData.version,a.version,"version",b);var h,k,q,u;KN(null!=(q=null==(h=
a.originalModelData.sloStartTime)?void 0:h.seconds)?q:null,null!=(u=null==(k=a.sloStartTime)?void 0:k.seconds)?u:null,"sloStartTime",b);var x,y,E,H;KN(null!=(E=null==(x=a.originalModelData.sloEndTime)?void 0:x.seconds)?E:null,null!=(H=null==(y=a.sloEndTime)?void 0:y.seconds)?H:null,"sloEndTime",b);KN(a.originalModelData.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var J,O;KN(null!=(O=null==(J=a.originalModelData.effort)?void 0:J.estimate)?O:null,a.effortEstimate,"effortEstimate",b);LN(a.originalModelData.attachmentId,
a.attachmentId,"attachmentId",b);LN(xi(a.originalModelData.ccUsers),a.cc,"ccs",b);LN(xi(a.originalModelData.collaboratorsUsers),a.collaborators,"collaborators",b);LN(a.originalModelData.changelist,a.changelist,"changelists",b);LN(a.originalModelData.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);LN(a.originalModelData.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);LN(a.originalModelData.foundInVersion,a.foundInVersion,"foundInVersion",b);LN(a.originalModelData.targetedToVersion,
a.targetedToVersion,"targetedToVersion",b);LN(a.originalModelData.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);LN(a.originalModelData.hotlistId,a.hotlistId,"hotlists",b)}return b.length?{issueId:a.issueId,actions:b}:null},KN=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:null!=b?String(b):void 0})},LN=function(a,b,c,d){var e=Ppa(b||[],new Set(a));a=Ppa(a||[],new Set(b));e.length&&d.push({fieldName:c,value:e.join(","),actionType:"ADD"});a.length&&d.push({fieldName:c,value:a.join(","),
actionType:"REMOVE"})};g=z4b.prototype;
g.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b||"";break;case "DATE":this.customFieldMap[a].dateValue=b||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue={values:b};break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=
{values:b};break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue={values:b};break;default:$h(c,"Unexpected custom field type: "+c)}}};g.setIsDeleted=function(a){this.isDeleted=a};g.setIsArchived=function(a){this.isArchived=a};g.setDeletionReason=function(a){this.deletionReason=a};g.setReporter=function(a){this.reporter=a};g.setType=function(a){this.type=a};g.setPriority=function(a){this.priority=a};
g.setSeverity=function(a){this.severity=a};g.setAssignee=function(a){this.assignee=a;a=Wk[this.status];!this.assignee&&this.originalModelData&&vi(this.originalModelData.assigneeUser)&&"REQUIRED"===(null==a?void 0:a.assigneeRequirement)?this.status="NEW":this.assignee&&"FIXED"!==this.status&&"VERIFIED"!==this.status&&(this.status="ASSIGNED")};
g.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalModelData&&vi(this.originalModelData.verifierUser)&&"VERIFIED"===this.originalModelData.status&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=Wk[this.status];"FORBIDDEN"===(null==a?void 0:a.assigneeRequirement)&&this.assigneeUser?this.assignee="":"REQUIRED"!==(null==a?void 0:a.assigneeRequirement)||this.assigneeUser||(this.assignee=this.currentUserEmail);"VERIFIED"!==this.status||this.verifier||(this.verifier=this.currentUserEmail)};g.setInProd=function(a){this.inProd=a};g.setCollaborators=function(a){this.collaborators=a};g.setFoundInVersion=function(a){this.foundInVersion=a};
g.setTargetedToVersion=function(a){this.targetedToVersion=a};g.setVerifiedInVersion=function(a){this.verifiedInVersion=a};g.setSloStartTime=function(a){this.sloStartTime=a};g.setSloEndTime=function(a){this.sloEndTime=a};g.setSloSnoozeType=function(a){this.sloSnoozeType=a};
var B4b=function(a,b){return a.originalModelData?(a=(a.originalModelData.customField||[]).find(function(c){return c.customFieldId===b}))?new xl(a):null:null},A4b=function(a){xl.call(this,a);this.choices=this.customFieldName=this.type=null};W(A4b,xl);A4b.prototype.isRepeated=function(){return null==this.type?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var D4b=new Map([["assignee",function(a,b){a.assigneeUser=Di(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Di).filter(cl)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Di(b.reporter)}],["verifier",function(a,b){a.verifierUser=Di(b.verifier)}],["componentId",function(a,b){a.componentId=b.componentId}],["createdTimeMicros",function(a,b){a.createdTimeMicros=b.createdTimeMicros}],["deletionReason",
function(a,b){a.deletionReason=b.deletionReason}],["duplicateOfIssueId",function(a,b){a.duplicateOfIssueId=b.duplicateOfIssueId}],["inProd",function(a,b){a.inProd=b.inProd}],["isArchived",function(a,b){a.isArchived=b.isArchived}],["isDeleted",function(a,b){a.isDeleted=b.isDeleted}],["priority",function(a,b){a.priority=b.priority}],["severity",function(a,b){a.severity=b.severity}],["significanceOverride",function(a,b){a.significanceOverride=b.significanceOverride}],["status",function(a,b){a.status=
b.status}],["title",function(a,b){a.title=b.title}],["type",function(a,b){a.type=b.type}],["user",function(a,b){a.authorUser=b.authorUser}],["version",function(a,b){a.version=b.version}],["attachmentId",function(a,b){a.attachmentId=b.attachmentId}],["blockedByIssueId",function(a,b){a.blockedByIssueId=b.blockedByIssueId}],["blockingIssueId",function(a,b){a.blockingIssueId=b.blockingIssueId}],["foundInVersion",function(a,b){a.foundInVersion=b.foundInVersion}],["targetedToVersion",function(a,b){a.targetedToVersion=
b.targetedToVersion}],["verifiedInVersion",function(a,b){a.verifiedInVersion=b.verifiedInVersion}]]);var MN=function(a){this.$window=a};MN.prototype.setDraft=function(a,b){this.$window.sessionStorage.setItem(no(a),b)};MN.\u0275fac=function(a){return new (a||MN)(n(qF))};MN.\u0275prov=$c({token:MN,factory:MN.\u0275fac,providedIn:"root"});var NN=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.confirmationDialogService=c},E4b=function(a,b){return new Promise(function(c){ON(a,b,function(){c(!0)},function(){c(!1)})})},ON=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=hh("");if("VULNERABILITY"===b)e="Set the issue type to \u201cVulnerability\u201d?",b={},f=jh([hh('A security "Vulnerability" is a weakness in software and hardware components that, when exploited, results in a negative impact to confidentiality, integrity, or availability. \n\nThis issue type is subject to stricter SLOs than other types. Please refer to the security guidelines for more information on on proper usage.\n\n',
{preserveNewlines:!0}),kh("a",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more")]);else if("PRIVACY_ISSUE"===b){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var h={};f=jh([hh('The "Privacy Issue" type tracks situations in which Google systems risk falling out of alignment with internal privacy  standards and requirements, and is subject to stricter SLOs than other types. ',{preserveNewlines:!0}),kh("a",(b.href="http://goto.google.com/pib-slo",b.target=
"_blank",b),"Learn more"),hh(".\n\nDO NOT use this type to file ",{preserveNewlines:!0}),kh("a",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),hh(". Incidents should be filed at ",{preserveNewlines:!0}),kh("a",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),hh(".\n\nDO NOT use this type unless you are on one of the following teams or have been specifically requested by one of these teams to file a Privacy Issue bug: Privacy Incident Management, Privacy Investigations, Privacy Remediation.",
{preserveNewlines:!0})])}a.confirmationDialogService.open({title:e,content:f,onConfirm:null!=c?c:function(){},onDismiss:null!=d?d:function(){}})}};NN.\u0275fac=function(a){return new (a||NN)(n(Us),n(yL),n(zJ))};NN.\u0275prov=$c({token:NN,factory:NN.\u0275fac,providedIn:"root"});var PN=function(a){this.dateFormatter=a};
PN.prototype.format=function(a){var b=this;if(a){if(a.textValue)return a.textValue;if(a.dateValue)return(a=a.dateValue)&&a.day&&a.month&&a.year?this.dateFormatter.formatUserCalendar(ul(a)):"";if(a.enumValue)return a.enumValue;if(a.numericValue||0===a.numericValue)return String(a.numericValue);if(a.repeatedTextValue)return a.repeatedTextValue.values.join(", ");if(a.repeatedDateValue)return a.repeatedDateValue.values.map(function(c){return b.dateFormatter.formatUserCalendar(ul(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};PN.\u0275fac=function(a){return new (a||PN)(n(HL))};PN.\u0275prov=$c({token:PN,factory:PN.\u0275fac,providedIn:"root"});var QN=function(a,b){this.customFieldFormatter=a;this.hotlistFridge=b;this.FIELD_TEXT_MAP={assignee:"Assignee",type:"Issue Type",componentId:"Component ID",duplicateOfIssueId:"Canonical Issue ID",inProd:"In Prod",priority:"Priority",severity:"Severity",status:"Status",title:"Title",verifier:"Verifier",effortEstimate:"Estimated Effort",sloStartTime:"SLO Start Time",sloEndTime:"SLO End Time",blockingIssueId:"Blocked Issues",ccs:"CCs",changelists:"Changelists",blockedByIssueId:"Blocking Issues",foundInVersion:"Found In",
hotlists:"Hotlists",targetedToVersion:"Targeted To",verifiedInVersion:"Verified In"};this.ENUM_FIELDS=["type","status"]},H4b=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e;b.bulkEditOps&&(e=hHa(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=gHa(b.bulkEditOps));b=F4b(f).map(function(h){return G4b(a,h,c,d)});b=b.filter(Boolean);if(!b.length)return"Issue(s) updated.";b=b.join(", ");return b=e?1==e.length?b+" on 1 issue.":b+(" on "+e.length+" issues."):b+"."},F4b=function(a){var b=
[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,"status"===d.fieldName?c.push(d):b.push(d);return b.concat(c)},G4b=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=new xl(b.customFieldValue),e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):e="effortEstimate"===b.fieldName&&d?d:a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName;"hotlists"===
b.fieldName?f=b.value.split(",").map(function(h){var k,q;return(k=null==(q=Gk(a.hotlistFridge.watch(String(h),{trustUncertainMemory:!0})))?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?fi(f.replace(/_/g," ").toLowerCase()):"");return"ADD"===b.actionType&&"hotlists"===b.fieldName?(f=f.replace(/,/g,", "),"Added issue to Hotlist ["+f+"]"):"REMOVE"===b.actionType&&"hotlists"===b.fieldName?(f=f.replace(/,/g,", "),"Removed issue from Hotlist ["+f+"]"):"ADD"===b.actionType&&
"parentId"===b.fieldName?"Added child issue(s) to parent ["+f+"]":"REMOVE"===b.actionType&&"parentId"===b.fieldName?"Unlinked child issue(s) from parent ["+f+"]":b.actionType||"status"!==b.fieldName?b.actionType||"comment"!==b.fieldName?b.actionType||"attachments"!==b.fieldName?b.actionType||"sloStartTime"!==b.fieldName?b.actionType||"sloEndTime"!==b.fieldName?"ADD"!==b.actionType||b.customFieldValue?"REMOVE"!==b.actionType||b.customFieldValue?"isArchived"===b.fieldName?"true"===b.value?"Archived successfully":
"Unarchived successfully":e+' set to "'+f+'"':(f=f.replace(/,/g,", "),'"'+f+'" removed from '+e):(f=f.replace(/,/g,", "),'"'+f+'" added to '+e):b.value?"SLO End Time Set":"SLO End Time Unset":b.value?"SLO Start Time Set":"SLO Start Time Unset":"":"Comment added":'Status set to "'+Wk[b.value].displayValue+'"'};QN.\u0275fac=function(a){return new (a||QN)(n(PN),n(rH))};QN.\u0275prov=$c({token:QN,factory:QN.\u0275fac,providedIn:"root"});var RN=function(a){this.internalArray_=m(a,0,RN.messageId)};W(RN,X);RN.prototype.getAttachmentsList=function(){return Ji(this,fF,1)};RN.prototype.setAttachmentsList=function(a){om(this,1,a)};RN.repeatedFields_=[1];RN.messageId="b.CreateAttachmentsResponse";var SN=function(a){this.internalArray_=m(a,0,SN.messageId)};W(SN,X);SN.prototype.getErrorMessage=function(){return Hi(this,2)};SN.prototype.setErrorMessage=function(a){qj(this,2,a)};SN.messageId="b.EncryptedMediaResponse";var I4b=function(){},TN=function(a){this.executor=a};W(TN,I4b);var J4b=function(a,b){var c=new qXb;c.setFilename(b.filename);c.setMimeType(b.mimeType);null!=b.encryptedBlobId&&qj(c,3,b.encryptedBlobId);qj(c,4,b.docId);null!=b.size&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:SN}).then(Lxa)};TN.\u0275fac=function(a){return new (a||TN)(n(uD))};TN.\u0275prov=$c({token:TN,factory:TN.\u0275fac,providedIn:"root"});var UN=function(){};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275prov=$c({token:UN,factory:UN.\u0275fac,providedIn:"root"});var VN=function(a){this.executor=a};W(VN,UN);VN.prototype.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/attachments/"+b.attachmentId+"/delete",options:{headers:{"If-Match":b.etag},params:{reason:c}},responseConstructor:null})};
VN.prototype.undelete=function(a,b){return this.executor.post({url:"action/issues/"+a+"/attachments/"+b.attachmentId+"/undelete",body:null,options:{headers:{"If-Match":b.etag}},responseConstructor:fF}).then(Oxa)};VN.\u0275fac=function(a){return new (a||VN)(n(uD))};VN.\u0275prov=$c({token:VN,factory:VN.\u0275fac,providedIn:"root"});var WN=function(a,b,c){this.dialogRef=a;this.data=c;this.readMoreLink=b.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings";this.userEmails=c.userEmails};WN.prototype.close=function(a){this.dialogRef.close(a)};WN.\u0275fac=function(a){return new (a||WN)(z(Rz),z(yL),z(Tz))};
WN.\u0275cmp=od({type:WN,selectors:[["confirm-no-access-dialog"]],decls:18,vars:2,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],[1,"help-label"],["target","_blank",3,"href"],["mat-button","","color","primary",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"h1",1),Q(2,"User may not have access"),F(),D(3,"section",2)(4,"p"),Q(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),
F(),D(6,"ul"),P(7,iHa,2,1,"li",3),F(),D(8,"section"),Q(9,"Continue anyway?"),F()(),D(10,"footer",4)(11,"div",5)(12,"a",6),Q(13,"Learn more"),F()(),D(14,"button",7),L("click",function(){return b.close(!0)}),Q(15,"Continue"),F(),D(16,"button",8),L("click",function(){return b.close(!1)}),Q(17,"Cancel"),F()()());a&2&&(w(7),C("ngForOf",b.userEmails),w(5),C("href",b.readMoreLink,re))},dependencies:[Dv,Ez,Wz,Xz,Yz],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});var XN=function(a,b,c,d,e){this.matDialogService=a;this.analytics=b;this.butterBar=c;this.logger=d;this.accessPolicy=e},YN=function(a,b){var c=b.componentId,d=b.userEmails,e=b.relation,f=b.analyticsEventLabel,h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:if(d.every(function(x){return 0===x.length}))return u.return(!0);Oe(u,2);return u.yield(K4b(a,c,d,e),4);case 4:h=u.yieldResult;if(0===h.length)return u.return(!0);a.analytics.trackEvent(xp.ADD_USER_WITHOUT_ACCESS,"warn",f);return u.yield(a.confirm(h,
e),5);case 5:k=u.yieldResult;if(!k)return WF(a.butterBar,"Save cancelled.",4E3),a.analytics.trackEvent(xp.ADD_USER_WITHOUT_ACCESS,"cancel",f),u.return(!1);a.analytics.trackEvent(xp.ADD_USER_WITHOUT_ACCESS,"proceed",f);return u.return(!0);case 2:return q=Re(u),a.logger.error(q),u.return(!1)}})},K4b=function(a,b,c,d){var e;return Ne(function(f){if(1==f.nextAddress)return f.yield(a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(p(e.noAccessEmails||[]),
p(e.unknownEmails||[])))})};XN.prototype.confirm=function(a,b){var c=this,d,e,f;return Ne(function(h){if(1==h.nextAddress)return d={userEmails:a,relation:b},e=c.matDialogService.open(WN,{width:"400px",data:d}),h.yield((0,B.firstValueFrom)(Pz(e)),2);f=h.yieldResult;return h.return(!!f)})};XN.\u0275fac=function(a){return new (a||XN)(n(Uz),n(zH),n(VF),n(dE),n(nG))};XN.\u0275prov=$c({token:XN,factory:XN.\u0275fac,providedIn:"root"});var ZN=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};ZN.prototype.cancel=function(){this.state=4};var L4b={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};var $N=function(a,b){this.initialComment=a=void 0===a?"":a;this.fromTemplate=void 0===b?!1:b;this.uploads=[];this.formattingMode="PLAIN";this.value=a};$N.prototype.reset=function(){this.value="";M4b(this)};var M4b=function(a){for(var b=l(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},N4b=function(a){return a.fromTemplate&&a.initialComment===a.value};
$N.prototype.getAttachments=function(){for(var a=[],b=l(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,2===c.state&&c.blobRef&&a.push(li(c.blobRef));return a};$N.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var O4b=function(a){return!a.isEmpty()&&!Ogb(a)};$N.prototype.isEmpty=function(){return!this.value&&!P4b(this)};
var Ogb=function(a){return a.uploads.some(function(b){return 1===b.state||3===b.state})},P4b=function(a){return a.uploads.some(function(b){return 2===b.state})};var aO=new Ad("routeParams",{factory:function(){return jd(AI).params}});var bO=function(a,b,c,d){this.routeParams=a;this.issueComments=b;this.draftStore=c;this.errorHandler=d};bO.prototype.get=function(a){var b=this;if(this.routeParams.comment)return(0,B.of)(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=qi(this.routeParams.template_comment)||1;return(0,B.defer)(function(){return Q4b(b,c,d,b.routeParams.do_attribution)})}return a?(0,B.of)(this.draftStore.$window.sessionStorage.getItem(no(a))||""):(0,B.of)("")};
var Q4b=function(a,b,c,d){var e,f,h,k,q;return Ne(function(u){if(1==u.nextAddress)return Oe(u,2),u.yield(a.issueComments.get(b,c),4);if(2!=u.nextAddress)return e=u.yieldResult,f=e.unlinkifiedComment,h=(new Date(Number(e.lastModified)/1E3)).toLocaleDateString(),d?(k="> From issue "+b+" on "+h+":",u.return(k+"\n\n"+f)):u.return(f);q=Re(u);ZF(a.errorHandler,q);return u.return("")})};bO.\u0275fac=function(a){return new (a||bO)(n(aO),n(WI),n(MN),n(XF))};
bO.\u0275prov=$c({token:bO,factory:bO.\u0275fac,providedIn:"root"});var R4b=function(a,b,c,d,e){var f=this;this.issueId=a;this.defaultCommentSource=b;this.issueFetchResponseFridge=c;this.activeSession=d;this.userPreferencesManager=e;this.issueFr$=KH(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFr$.pipe(A(function(h){return null==h?void 0:h.issue}));this.componentId$=this.issue$.pipe(A(function(h){return null==h?void 0:h.snapshot[0].componentId}),mf());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(yf(""),mf(),Cf(this.userPreferencesManager.lastPublishModeProto$),
A(function(h){var k=l(h);h=k.next().value;k=k.next().value;h=new $N(h);h.formattingMode=k;return h}),wf({bufferSize:1,refCount:!0}));this.comment=function(){return Gk(f.comment$)};this.createRestrictedResourcesComponentWhitelist=this.activeSession.getCreateRestrictedSubresourcesComponentWhitelist();this.componentJudgementForNewContent$=this.componentId$.pipe(A(function(h){if(h&&f.createRestrictedResourcesComponentWhitelist.includes(h))return{severity:"PII",judgementReason:"None Specified"}}),wf({bufferSize:1,
refCount:!0}));this.userDefinedJudgementForNewContent$=new B.BehaviorSubject(void 0);this.judgementForNewContent$=(0,B.combineLatest)([this.componentJudgementForNewContent$.pipe(yf(void 0)),this.userDefinedJudgementForNewContent$]).pipe(A(function(h){var k=l(h);h=k.next().value;k=k.next().value;return null!=k?k:h}),wf({bufferSize:1,refCount:!1}));this.judgementForNewContent=function(){return Gk(f.judgementForNewContent$)}},S4b=function(a){var b=a.comment(),c,d="NONE_DETECTED"===(null==(c=a.judgementForNewContent())?
void 0:c.severity)?void 0:a.judgementForNewContent();a=b.value;c=b.formattingMode;var e=[];b=l(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,2===f.state&&f.blobRef&&(f=li({attachment:f.blobRef}),d&&(f.contentJudgement={severity:d.severity,judgementReason:d.judgementReason}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},T4b=function(a){var b=S4b(a),c=b.attachmentsWithJudgements;a={issueId:a.issueId,actions:[]};b.commentText&&a.actions.push({fieldName:"comment"});
c.length&&a.actions.push({fieldName:"attachments"});return a},cO=function(a,b,c,d){this.defaultCommentSource=a;this.issueFetchResponseFridge=b;this.activeSession=c;this.userPreferencesManager=d};cO.prototype.create=function(a){return new R4b(a,this.defaultCommentSource,this.issueFetchResponseFridge,this.activeSession,this.userPreferencesManager)};cO.\u0275fac=function(a){return new (a||cO)(n(bO),n(JH),n(Us),n(iE))};cO.\u0275prov=$c({token:cO,factory:cO.\u0275fac,providedIn:"root"});var dO=function(){};dO.prototype.isSloStartTimeApplied=function(a){return!!a&&a.seconds>Date.now()/1E3};
var eO=function(a){return!!a&&!!a.targetTime&&0!==a.targetTime.seconds},U4b=function(a){return eO(a.assignmentBounds)||eO(a.responseBounds)||eO(a.closureBounds)},V4b=function(a,b){switch(b){case "ASSIGNMENT":return eO(a.assignmentBounds);case "RESPONSE":return eO(a.responseBounds);case "CLOSURE":return eO(a.closureBounds);default:return U4b(a)}},W4b=function(a){if(!a)return null;var b=[],c=[];a.assignmentBounds&&jHa(b,c,a.assignmentBounds,"ASSIGNMENT");a.responseBounds&&jHa(b,c,a.responseBounds,"RESPONSE");
a.closureBounds&&jHa(b,c,a.closureBounds,"CLOSURE");return 0<b.length?(b.sort(kHa),b[0]):0<c.length?(c.sort(kHa),{sloBounds:c[0].sloBounds,sloMetric:""}):null};dO.\u0275fac=function(a){return new (a||dO)};dO.\u0275prov=$c({token:dO,factory:dO.\u0275fac,providedIn:"root"});var X4b=function(a,b,c,d,e){var f=this;this.issueId=a;this.issueFetchResponseFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.enableNonWtdmFieldPerTypeVisibility=$C(this.activeSession,"enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issueFetchResponse$=KH(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFetchResponse$.pipe(A(function(h){return null==
h?void 0:h.issue}));this.issueSnapshot$=this.issue$.pipe(A(function(h){return null==h?void 0:h.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(A(function(h){var k;return null==h?void 0:null==(k=h.aggregatedData)?void 0:k.sloStatus}),A(function(h){return!!h&&U4b(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(A(function(h){return null!=(null==h?void 0:h.type)&&iUb.has(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(A(function(h){return!h&&!f.enableNonWtdmFieldPerTypeVisibility}));
this.isSloStatusPrimary$=(0,B.combineLatest)([this.hasSloDefined$,this.isWtdmType$]).pipe(A(function(h){var k=l(h);h=k.next().value;k=k.next().value;return h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(A(function(h){return!h}));this.isChangelistPrimary$=(0,B.combineLatest)([this.isWtdmType$,this.issueSnapshot$]).pipe(A(function(h){var k=l(h);h=k.next().value;k=k.next().value;return!h||"STORY"===(null==k?void 0:k.type)||"TASK"===(null==k?void 0:k.type)}));this.customFields$=this.issueFetchResponse$.pipe(A(function(h){var k;
return null!=(k=null==h?void 0:h.issue.customFields)?k:[]}));this.visibleFields$=this.issue$.pipe(A(function(h){var k;return null!=(k=null==h?void 0:h.visibleFields)?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(A(function(h){return h.map(function(k){return k.customFieldId}).filter(cl)}),A(function(h){return new Set(h)}),wf({refCount:!0,bufferSize:1}));this.visibleCustomFields$=(0,B.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(A(function(h){h=l(h);var k=h.next().value;
return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),wf({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=(0,B.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(A(function(h){h=l(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),wf({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=(0,B.combineLatest)([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(A(function(h){var k=
l(h);h=k.next().value;var q=k.next().value,u=k.next().value,x=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||u?0:1)+(!f.showChangelists||x?0:2)+k.length}),wf({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(A(function(h){return 0<h}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(A(function(h){return 1===h?"Show 1 additional field":"Show "+h+" additional fields"}))},fO=function(a,b,c,d){this.issueFetchResponseFridge=a;this.constants=
b;this.activeSession=c;this.sloStatusHelpersService=d};fO.prototype.create=function(a){return new X4b(a,this.issueFetchResponseFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};fO.\u0275fac=function(a){return new (a||fO)(n(JH),n(cD),n(Us),n(dO))};fO.\u0275prov=$c({token:fO,factory:fO.\u0275fac,providedIn:"root"});var NYb=xp.EDIT_ISSUE,gO=function(a,b){Y.call(this);this.analytics=a;this.clearcut=b;this.issueToTrackingState=new Map;this.getState=oo(this.issueToTrackingState,mHa);this.trackFirstAction=this.analytics.preapply()("first-action");this.trackEdit=this.analytics.preapply()("edit");this.trackNavigation=this.analytics.preapply()("navigate");this.trackDestroy=this.analytics.preapply()("destroyed")};W(gO,Y);gO.\u0275dir=Y.\u0275dir;
var hO=function(a,b,c){var d=a.getState(b);c&&(d.editCount++,a.trackEdit(c.label,c.value));d.firstActionSeen||(b=a.getState(b),c=Date.now()-b.startTime,a.trackFirstAction("time-to-action",c),Y4b(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)},Ds=function(a,b,c){a.getState(b).variations.add(c)},Y4b=function(a,b,c,d){uH(a.clearcut,b,c);d=l(d);for(var e=d.next();!e.done;e=d.next())uH(a.clearcut,b,c+"-"+e.value)};gO.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};
gO.\u0275fac=function(a){return new (a||gO)(n(zH),n(tH))};gO.\u0275prov=$c({token:gO,factory:gO.\u0275fac,providedIn:"root"});var Z4b={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},$4b={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},a5b={type:"START",displayText:"Start work",description:"Change issue status to '"+Uk.ACCEPTED+"'"},b5b={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+Uk.FIXED+"'"},c5b={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+Uk.VERIFIED+"'"},d5b={type:"REOPEN",
displayText:"Re-open",description:"Change issue status back to '"+Uk.ASSIGNED+"'"};var f5b=function(a,b,c,d){var e=this;this.issueId=a;this.activeSession=b;this.issueFridge=c;this.componentTemplatesFridge=d;this.defaultAssigneeQuickActionEnabled=this.activeSession.isInternalSession();this.issue$=this.issueFridge.watch(this.issueId).pipe(wf({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(A(function(f){return null==f?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(A(function(f){return(null==f?void 0:f.assigneeUser)&&zi(f.assigneeUser)}),A(Yk));
this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(A(function(f){return null==f?void 0:f.componentId}),mf(),zf(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):(0,B.of)(void 0)}),A(function(f){return f&&zi(f.snapshot.assigneeUser)}),wf({bufferSize:1,refCount:!0}));this.defaultAssigneeForComponent=function(){return Gk(e.defaultAssigneeForComponent$)};this.issueAssigneeQuickAction$=(0,B.combineLatest)([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(A(function(f){var h=
l(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&h&&f!==h?$4b:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(A(function(f){return f&&e5b(e,f)}))},e5b=function(a,b){var c=a.activeSession.getUserEmail();a=zi(b.assigneeUser)===c;c=zi(b.verifierUser)===c;b=b.status;if(c&&"FIXED"===b)return c5b;if(a)switch(b){case "ASSIGNED":return a5b;case "ACCEPTED":return b5b;default:return d5b}switch(b){case "NEW":return Z4b;case "ASSIGNED":return Z4b;case "ACCEPTED":return Z4b;
default:return d5b}},iO=function(a,b,c){this.activeSession=a;this.issueFridge=b;this.componentTemplatesFridge=c};iO.prototype.create=function(a){return new f5b(a,this.activeSession,this.issueFridge,this.componentTemplatesFridge)};iO.\u0275fac=function(a){return new (a||iO)(n(Us),n(GH),n(XG))};iO.\u0275prov=$c({token:iO,factory:iO.\u0275fac,providedIn:"root"});var jO=function(a){a=void 0===a?[]:a;this.internalValue$=new B.BehaviorSubject(new Set);this.value$=vu(this.internalValue$).pipe(A(function(b){return new Set(b)}),mf(ki),wf({refCount:!0,bufferSize:1}));this.reset(a)};g=jO.prototype;g.reset=function(a){this.value.clear();a=l(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};
g.add=function(){for(var a=l(xd.apply(0,arguments)),b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value);return this};g.clear=function(){this.value.clear();this.internalValue$.next(this.value)};g.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};g.has=function(a){return this.value.has(a)};var vp=function(a,b){return a.internalValue$.pipe(A(function(c){return c.has(b)}),mf())};jO.prototype[Symbol.iterator]=function(){return this.value.values()};
jO.prototype.toString=function(){return"[ReactiveSet](["+[].concat(p(this.value.values())).join(", ")+"])"};jO.prototype.indexOf=function(a){return[].concat(p(this.value.values())).indexOf(a)};
Qh.Object.defineProperties(jO.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}},size$:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.pipe(A(function(a){return a.size}),mf())}}});var g5b=function(){this.propertiesBeingSaved=new jO};g5b.prototype.get=function(a){return this.propertiesBeingSaved.has(Xn(a))};var kO=function(a,b){a.propertiesBeingSaved.add(Xn(b))},lO=function(a,b){a.propertiesBeingSaved.delete(Xn(b))};g5b.prototype.properties=function(){return[].concat(p(this.propertiesBeingSaved))};var mO=function(){};mO.prototype.transform=function(a){return qo(a)};mO.\u0275fac=function(a){return new (a||mO)};mO.\u0275pipe=td({name:"appendDomain",type:mO,pure:!0});var nO=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,$a){var ja=this;this.issueFetchResponseFridge=a;this.activeSession=b;this.butterBar=c;this.issueInteractionsTracking=d;this.issueApi=e;this.componentFridge=f;this.permissionsFridge=h;this.eventsForIssueFridge=k;this.statusMessages=q;this.errorHandler=u;this.confirmationDialogService=x;this.principalTypes=y;this.issuePermissionService=E;this.accessPolicy=H;this.issueTypeDialog=J;this.logger=O;this.issueFridge=R;this.confirmNoAccessService=
U;this.issueService=Z;this.attachmentsMember=na;this.userPreferencesManager=oa;this.issueComments=wa;this.draftStore=Da;this.attachmentApi=Ga;this.issueFieldsFactory=Ub;this.issueQuickActionsFactory=Vb;this.issueCommentDraftFactory=$a;this.isSavingMap=new Map;this.savingState=oo(this.isSavingMap,function(){return new g5b});this.issueFieldsMap=new Map;this.issueFields=oo(this.issueFieldsMap,function(ya){return ja.issueFieldsFactory.create(ya)});this.issueQuickActionsMap=new Map;this.issueQuickActions=
oo(this.issueQuickActionsMap,function(ya){return ja.issueQuickActionsFactory.create(ya)});this.editableIssueMap=new Map;this.editableIssue$=oo(this.editableIssueMap,function(ya){return h5b(ja,ya)});this.editableIssue=function(ya){return ja.editableIssue$(ya).value};this.subscriptions=new Map;this.getSubscription=oo(this.subscriptions,function(){return new B.Subscription});this.issueCommentDraftMap=new Map;this.issueCommentDraft=oo(this.issueCommentDraftMap,function(ya){return ja.issueCommentDraftFactory.create(ya)});
this.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY={saveCommentDraft:this.saveCommentDraft.bind(this)}};nO.prototype.clear=function(a){this.isSavingMap.delete(a);this.issueFieldsMap.delete(a);this.issueQuickActionsMap.delete(a);this.editableIssueMap.delete(a);this.issueCommentDraftMap.delete(a);this.getSubscription(a).unsubscribe()};
nO.prototype.updateComponent=function(a,b,c){var d=this,e,f,h,k,q;return Ne(function(u){if(1==u.nextAddress)return e=d.editableIssue(a),e.componentId=b,(f=oO(d,e))&&f.actions&&f.actions.length?u.yield(d.getRetentionState(a),2):u.return();h=u.yieldResult;pO(d,f);k={issueId:a,componentId:b};q=c?d.issueApi.moveIssueExternal(a,k):d.issueApi.moveIssue(a,k);return u.return(qO(d,q,f,{originalRetentionState:h}))})};
var kYa=function(a,b,c){var d;return Ne(function(e){if(!c)return a.butterBar.showWarning("Reporter can't be empty."),e.return();a.editableIssue(b).setReporter(c);return e.return(null!=(d=a.updateIssue(b))?d:Promise.resolve())})},GZa=function(a,b,c){var d,e,f,h;return Ne(function(k){if(1==k.nextAddress){d=upa(c);if(!d)return a.logger.warn("unknown issue type: "+c),k.return();e=a.editableIssue(b);return"VULNERABILITY"!==d&&"PRIVACY_ISSUE"!==d?k.jumpTo(2):k.yield(E4b(a.issueTypeDialog,d),3)}if(2!=k.nextAddress&&
(f=k.yieldResult,!f))return k.return();e.setType(d);return k.return(null!=(h=a.updateIssue(b))?h:Promise.resolve())})},HZa=function(a,b,c){var d,e,f;return Ne(function(h){d=tpa(c);if(!d)return a.logger.warn("unknown priority: "+c),h.return();e=a.editableIssue(b);e.setPriority(d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},j5b=function(a,b,c){var d,e,f;return Ne(function(h){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=oO(a,d);return e?(f=e.actions.find(function(k){return"duplicateOfIssueId"===
k.fieldName&&!Oi(k.value||"")}))&&f.value?h.return(i5b(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})},k5b=function(a,b,c){var d,e;return Ne(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},l5b=function(a,b,c){var d,e,f;return Ne(function(h){if(!c)return h.return();d=a.editableIssue(b);e=a.issueQuickActions(b);switch(c.type){case "TAKE":"NEW"===
d.status&&(d.status="ASSIGNED");d.assignee=e.activeSession.getUserEmail();break;case "DEFAULT_ASSIGNEE":var k=e.defaultAssigneeForComponent();k&&("NEW"===d.status&&(d.status="ASSIGNED"),d.assignee=k);break;case "START":d.status="ACCEPTED";break;case "FIX":d.status="FIXED";break;case "VERIFY":d.status="VERIFIED";break;case "REOPEN":d.status=d.assignee?"ASSIGNED":"NEW";break;default:$h(c.type)}return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},rYa=function(a,b,c){var d,e;return Ne(function(f){d=
a.editableIssue(b);var h;d.effortEstimate=null!=(h=null==c?void 0:c.estimate)?h:null;return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},rZa=function(a,b,c){var d,e,f;return Ne(function(h){d=a.editableIssue(b);e=Rpa(c,!1);d.setFoundInVersion(e);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},vZa=function(a,b,c){var d,e,f;return Ne(function(h){d=a.editableIssue(b);e=Rpa(c,!1);d.setVerifiedInVersion(e);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},
tZa=function(a,b,c){var d,e,f;return Ne(function(h){d=a.editableIssue(b);e=Rpa(c,!1);d.setTargetedToVersion(e);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},xZa=function(a,b,c){var d,e;return Ne(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},mZa=function(a,b,c){var d,e,f;return Ne(function(h){d=vpa(c);if(!d)return a.logger.warn("unknown severity: "+c),h.return();e=a.editableIssue(b);e.setSeverity(d);return h.return(null!=
(f=a.updateIssue(b))?f:Promise.resolve())})};nO.prototype.updateSloStartTime=function(a,b){var c=this,d,e;return Ne(function(f){d=c.editableIssue(a);d.setSloStartTime(b);return f.return(null!=(e=c.updateIssue(a))?e:Promise.resolve())})};nO.prototype.updateSloEndTime=function(a,b){var c=this,d,e;return Ne(function(f){d=c.editableIssue(a);d.setSloEndTime(b);return f.return(null!=(e=c.updateIssue(a))?e:Promise.resolve())})};
var pZa=function(a,b,c){var d,e,f;return Ne(function(h){d=a.editableIssue(b);d.changelist=null!=(e=c)?e:[];return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},EZa=function(a,b,c,d){var e,f;return Ne(function(h){e=a.editableIssue(b);e.setCustomField(c,d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},HYa=function(a,b,c){var d,e,f,h;return Ne(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?k.yield(m5b(a,
b,"verifier",[c]),5):k.yield(YN(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"verifier"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setVerifier(c),k.return(null!=(h=a.updateIssue(b))?h:Promise.resolve())}})},AYa=function(a,b,c){var d,e,f,h;return Ne(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?
k.yield(m5b(a,b,"assignee",[c]),5):k.yield(YN(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"assignee"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setAssignee(c),k.return(null!=(h=a.updateIssue(b))?h:Promise.resolve())}})},n5b=function(a,b,c){var d,e,f,h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return u.yield(m5b(a,
b,"CC",c),5);e=tra(d.cc,c);f=e.added;return u.yield(YN(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:h=u.yieldResult;if(!h)return u.return();u.jumpTo(3);break;case 5:if(k=u.yieldResult,!k)return u.return();case 3:return d.cc=c,u.return(null!=(q=a.updateIssue(b))?q:Promise.resolve())}})},o5b=function(a,b,c){var d,e,f,h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return u.yield(m5b(a,
b,"collaborators",c),5);e=tra(d.collaborators,c);f=e.added;return u.yield(YN(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:h=u.yieldResult;if(!h)return u.return();u.jumpTo(3);break;case 5:if(k=u.yieldResult,!k)return u.return();case 3:return d.setCollaborators(c),u.return(null!=(q=a.updateIssue(b))?q:Promise.resolve())}})};
nO.prototype.unarchive=function(a){var b=this,c,d;return Ne(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return(null!=(d=b.updateIssue(a))?d:Promise.resolve())})};
nO.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return Ne(function(h){switch(h.nextAddress){case 1:return d={issueId:a,retention:b},e=c.savingState(a),kO(e,"retention"),Oe(h,2,3),h.yield(c.issueApi.updateIssueRetention(a,d),5);case 5:return h.yield(c.issueFridge.poke(a),6);case 6:WF(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Pe(h);lO(e,"retention");Qe(h,0);break;case 2:f=Re(h),ZF(c.errorHandler,f),h.jumpTo(3)}})};
var p5b=function(a,b){var c,d,e;return Ne(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=oO(a,c);if(!d||!d.actions)return f.jumpTo(0);pO(a,d);e=a.issueService.delete(b,"ABUSE");return f.yield(qO(a,e,d),0)})},fob=function(a,b){var c,d,e;return Ne(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=oO(a,c);if(!d||!d.actions)return f.jumpTo(0);pO(a,d);e=a.issueService.undelete(b);return f.yield(qO(a,e,d),0)})};
nO.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return Ne(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),q.yield((0,B.firstValueFrom)(c.issueFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=q.yieldResult;h=null==(f=e)?void 0:f.userData;if(null==h||d.get("subscribe"))return q.return();Oe(q,3,4);kO(d,"subscribe");return q.yield(c.issueFridge.setNotificationSubscription(a,b),4);case 4:Pe(q);lO(d,"subscribe");Qe(q,0);break;case 3:k=Re(q),ZF(c.errorHandler,
k),q.jumpTo(4)}})};
var q5b=function(a,b,c){var d,e;Ne(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();Oe(f,2,3);WF(a.butterBar,"Restoring attachment...");kO(d,"undeleteAttachment");return f.yield(a.attachmentsMember.undelete(b.toString(),c),5);case 5:WF(a.butterBar,"Attachment restored."),LH(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b);case 3:Pe(f);lO(d,"undeleteAttachment");Qe(f,0);break;case 2:e=Re(f),ZF(a.errorHandler,e),
f.jumpTo(3)}})},r5b=function(a,b,c,d){var e,f;return Ne(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();Oe(h,2,3);WF(a.butterBar,"Deleting attachment...");kO(e,"deleteAttachment");return h.yield(a.attachmentsMember.delete(b,c,d),5);case 5:WF(a.butterBar,"Attachment deleted."),LH(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b);case 3:Pe(h);lO(e,"deleteAttachment");Qe(h,0);break;case 2:f=Re(h),ZF(a.errorHandler,
f),h.jumpTo(3)}})};
nO.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=S4b(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var h=T4b(d);pO(this,h);return qO(this,function(){return Ne(function(k){switch(k.nextAddress){case 1:return k.yield(s5b(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}return k.yield(c.issueComments.create(String(a),f.commentText,f.formattingMode,f.judgementForNewContent,b),4);case 4:e.reset(),c.draftStore.$window.sessionStorage.removeItem(no(a));
case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var q=k.yield;var u=c.attachmentApi;var x=f.attachmentsWithJudgements,y=new dF;y.setIssueId(String(a));void 0!==x&&(x=x.map(Nxa),om(y,3,x));u=u.executor.post({url:"action/issues/"+a+"/attachments",body:y,responseConstructor:RN}).then(Pxa);return q.call(k,u,6);case 6:e.reset();case 5:return d.userDefinedJudgementForNewContent$.next(void 0),k.return(LH(c.issueFetchResponseFridge,a))}})}(),h)};
var s5b=function(a,b){var c,d;return Ne(function(e){if(!jE(a.userPreferencesManager).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();c=a.editableIssue(b);var f=[].concat(p(c.cc),[a.activeSession.getUserEmail()]);c.cc=f;d={issueId:b,actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return e.yield(a.issueApi.updateIssue(b,d),0)})},h5b=function(a,b){var c=KH(a.issueFetchResponseFridge,b).pipe(A(function(e){var f=
new z4b;if(e){var h=t5b(a,b,li(sa(e.issue.snapshot)));f.currentUserEmail=a.activeSession.getUserEmail();f.setData(h,b,e.issue.customFields)}return f})),d=new B.BehaviorSubject(new z4b);a.getSubscription(b).add(c.subscribe(d));return d};
nO.prototype.updateIssue=function(a){var b=this.editableIssue(a),c=oO(this,b);if(!c)return null;for(var d=!1,e=[],f=[],h=a,k=l(c.actions),q=k.next();!q.done;q=k.next()){q=q.value;var u=q.value||"";if("REMOVE"!==q.actionType)switch(q.fieldName){case "ccs":e=u.split(",").filter(Boolean);break;case "verifier":case "assignee":case "collaborators":f=u.split(",").filter(Boolean);break;case "duplicateOfIssueId":Oi(u)||(e=b.cc,h=String(u),d=!0)}}return i5b(this,a,{actionIssueId:h,implicitAppenders:e,implicitEditors:f,
isDeduping:d,isRemovingSelfFromCc:1===c.actions.length&&"ccs"===c.actions[0].fieldName&&"REMOVE"===c.actions[0].actionType&&this.activeSession.getUserEmail()===c.actions[0].value,requestData:c})};
var i5b=function(a,b,c){var d=c.actionIssueId,e=c.implicitAppenders,f=c.implicitEditors,h=c.isDeduping,k=c.isRemovingSelfFromCc,q=c.requestData,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da;return Ne(function(Ga){switch(Ga.nextAddress){case 1:return Ga.yield(Promise.all([u5b(a,e,"appender",d),u5b(a,f,"writer",d)]),2);case 2:u=Ga.yieldResult;x=l(u);y=x.next().value;E=x.next().value;H=y;J=E;O=H.noAccessEmails||[];R=J.noAccessEmails||[];U=[].concat(p(O),p(R));if(0===U.length)return Ga.return(v5b(a,q,h,k));Oe(Ga,3);
return Ga.yield(Promise.all(U.map(function(Ub){return w5b(a,Ub)})),5);case 5:return Z=Ga.yieldResult,na=Zza({userPrincipals:Z,newEditors:R,newImplicitUsers:U,isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),oa=na.title,wa=na.content,Ga.yield(AJ(a.confirmationDialogService,{title:oa,content:hh(wa),confirmButtonText:"Allow"}),6);case 6:if(Da=Ga.yieldResult)return Ga.return(v5b(a,q,h,k));a.permissionsFridge.poke("issues/"+b);LH(a.issueFetchResponseFridge,b);$s(Ga,0);
break;case 3:Re(Ga),a.butterBar.showWarning("Could not determine email type."),Se(Ga)}})},v5b=function(a,b,c,d){pO(a,b);var e=b.issueId;c?(c=a.editableIssue(String(e)),e=a.issueApi.relateIssue(e,{issueId:e,targetIds:[c.duplicateOfIssueId],actionType:"ADD",relation:"DUPLICATE"})):e=d?a.issueApi.unCcUser(b.issueId):a.issueApi.updateIssue(e,b);return qO(a,e,b)},u5b=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?null:f;if(e&&!f)throw Error("ld");var h=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e={noAccessEmails:[]};
return 0!==b.length&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(qo),c,h,d):Promise.resolve(e)},t5b=function(a,b,c){var d=a.isSavingMap.get(b);a=(a=a.editableIssueMap.get(b))&&Gk(a);if(!a||!d)return c;d=d.properties();d=l(d);var e=d.next();for(b={};!e.done;b={customFieldId$jscomp$18:b.customFieldId$jscomp$18},e=d.next())if(e=e.value,e.match(/^\d+$/)){b.customFieldId$jscomp$18=qi(e);var f=(c.customField||[]).find(function(h){return function(k){return k.customFieldId===
h.customFieldId$jscomp$18}}(b));e=a.customFieldMap[e];f&&e&&(f.textValue=e.textValue,f.dateValue=e.dateValue,f.enumValue=e.enumValue,f.numericValue=e.numericValue)}else f=void 0,null==(f=D4b.get(e))||f(c,a);return c},oO=function(a,b){var c=C4b(b);if(!c)return null;var d=a.isSavingMap.get(String(b.issueId));c.actions=c.actions.filter(function(e){return!(null==d?0:d.get(nHa(e)))});return c.actions.length?c:null},pO=function(a,b){var c=String(b.issueId);WF(a.butterBar,"Saving...",0);var d=b.actions.map(function(e){return e.fieldName}).join(",");
hO(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=l(b.actions);for(c=b.next();!c.done;c=b.next())kO(a,nHa(c.value))},qO=function(a,b,c,d){var e,f;return Ne(function(h){switch(h.nextAddress){case 1:return Oe(h,2),h.yield(b,4);case 4:return e=h.yieldResult,IH(a.issueFridge,[c.issueId],{eagerUpdate:!1}).then(function(){var k=String(c.issueId);LH(a.issueFetchResponseFridge,k);a.eventsForIssueFridge.poke(k)}),h.yield(x5b(a,c,e,d),5);case 5:$s(h,0);break;case 2:f=Re(h),y5b(a,c,f),Se(h)}})},
x5b=function(a,b,c,d){var e=(void 0===d?{}:d).originalRetentionState,f,h,k,q;return Ne(function(u){f=a.savingState(String(b.issueId));h=l(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,lO(f,nHa(q));return c?u.yield(z5b(a,b,e),0):u.jumpTo(0)})},y5b=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=l(b.actions);for(var f=b.next();!f.done;f=b.next())lO(e,nHa(f.value));a.permissionsFridge.poke("issues/"+d);LH(a.issueFetchResponseFridge,d);sn(c)&&403===c.status&&tn(c)?YF(a.errorHandler,
tn(c)):ZF(a.errorHandler,c)},z5b=function(a,b,c){var d,e,f,h,k,q,u,x,y,E,H;return Ne(function(J){switch(J.nextAddress){case 1:return J.yield(a.getEffortSpec(String(b.issueId)),2);case 2:d=J.yieldResult;e=a.editableIssue(String(b.issueId));k=H4b(a.statusMessages,b,e.customFieldMap,null!=(h=null==(f=d)?void 0:f.name)?h:"");if(!c){J.jumpTo(3);break}return J.yield(Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=J.yieldResult;u=l(q);x=u.next().value;
y=u.next().value;E=x;H=y;if("INDEFINITE"!==H&&c&&E){var O=c.retentionPeriod?An(Math.floor(1E3*c.retentionPeriod.seconds/864E5)):"indefinite";var R=E.retentionPeriod?An(Math.floor(1E3*E.retentionPeriod.seconds/864E5)):"indefinite";O=O===R?"":" Issue retention period changed from "+O+" to "+R+"."}else O="";k+=O;case 3:WF(a.butterBar,k),Se(J)}})},m5b=function(a,b,c,d){return Ne(function(e){if(1==e.nextAddress){var f=a.editableIssue(b);var h=a.activeSession.getUserEmail();f=new Map([["CC",f.cc],["collaborators",
f.collaborators],["assignee",f.assignee?[f.assignee]:[]],["verifier",f.verifier?[f.verifier]:[]]]);(new Set([].concat(p(f.values())).flat())).has(h)?(f.set(c,d),h=!(new Set([].concat(p(f.values())).flat())).has(h)):h=!1;e=h?e.yield(A5b(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},A5b=function(a,b,c,d){var e;return Ne(function(f){if(1==f.nextAddress)return f.yield(u5b(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&
0!==e.noAccessEmails.length?f.return(AJ(a.confirmationDialogService,{title:"Removing yourself from "+d+" may revoke your access to the issue",content:hh("This issue is in a component with Expanded Access enabled, and you do not have access to view this issue by default. Removing yourself from "+d+" may also remove your ability to view the issue. Are you sure you would like to do this?")})):f.return(!0)})};
nO.prototype.getRetentionState=function(a){return(0,B.firstValueFrom)(KH(this.issueFetchResponseFridge,a).pipe(A(wBa)))};nO.prototype.getRetention=function(a){return(0,B.firstValueFrom)(KH(this.issueFetchResponseFridge,a).pipe(A(tBa)))};nO.prototype.getEffortSpec=function(a){return(0,B.firstValueFrom)(KH(this.issueFetchResponseFridge,a).pipe(A(aBa),zf(this.componentFridge.watch),A(zBa)))};
var w5b=function(a,b){return Ne(function(c){return a.activeSession.isExternalSession()?c.return({principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}):c.return(wD(a.principalTypes,b,!0))})};nO.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=l(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};
nO.\u0275fac=function(a){return new (a||nO)(n(JH),n(Us),n(VF),n(gO),n(AF),n(OG),n(eI),n(cH),n(QN),n(XF),n(zJ),n(vD),n(EI),n(nG),n(NN),n(dE),n(GH),n(XN),n(DH),n(UN),n(iE),n(WI),n(MN),n(I4b),n(fO),n(iO),n(cO))};nO.\u0275prov=$c({token:nO,factory:nO.\u0275fac,providedIn:"root"});var rO=function(a,b,c){Y.call(this);this.issueDetailsBrain=a;this.issuePermissionService=b;this.editIssueService=c;this.assigneeInProgress$=new B.ReplaySubject(1);this.ccInProgress$=new B.ReplaySubject(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(d){var e;return vi(null==(e=Eza(d))?void 0:e.assigneeUser)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(d){var e;return wi(null==(e=Eza(d))?void 0:e.ccUsers)||[]}));this.assignee$=
this.assigneeUpdate$.pipe(wf({refCount:!0,bufferSize:1}));this.cc$=this.ccUpdate$.pipe(wf({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};W(rO,Y);rO.\u0275dir=Y.\u0275dir;
var B5b=function(a,b){var c,d,e;return Ne(function(f){switch(f.nextAddress){case 1:c=Gk(a.id$);if(!c)return f.return();a.assigneeInProgress$.next(!0);d="remove_user"===b.action?"":b.email;Oe(f,2,3);return f.yield(AYa(a.editIssueService,c,d),5);case 5:return f.yield((0,B.firstValueFrom)(a.assigneeUpdate$.pipe(cf(function(h){h=b.email===h;return"set_user"===b.action?h:!h}),ef(6E4))),3);case 3:Pe(f);a.assigneeInProgress$.next(!1);Qe(f,0);break;case 2:throw e=Re(f),e;}})},C5b=function(a,b){var c,d,e,
f,h;return Ne(function(k){switch(k.nextAddress){case 1:c=Gk(a.id$);if(!c)return k.return();d=a.editIssueService.editableIssue(c);e=d.cc.includes(b.email);f=void 0;"set_user"!==b.action||e?"remove_user"===b.action&&e&&(f=n5b(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=n5b(a.editIssueService,c,[].concat(p(d.cc),[b.email]));if(!f)return k.return();Oe(k,2,3);a.ccInProgress$.next(!0);return k.yield(f,5);case 5:return k.yield((0,B.firstValueFrom)(a.ccUpdate$.pipe(cf(function(q){q=
q.includes(b.email);return"set_user"===b.action?q:!q}),ef(6E4))),3);case 3:Pe(k);a.ccInProgress$.next(!1);Qe(k,0);break;case 2:throw h=Re(k),h;}})};rO.\u0275fac=function(a){return new (a||rO)(n(CI),n(EI),n(nO))};rO.\u0275prov=$c({token:rO,factory:rO.\u0275fac});var sO=function(a,b,c){Y.call(this);this.domSafe=a;this.cdr=b;this.actionService=c;this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};W(sO,Y);sO.\u0275dir=Y.\u0275dir;
sO.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;null==(b=this.actionService)||b.assignee$.pipe(Af(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;null==(c=this.actionService)||c.cc$.pipe(Af(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var oHa=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";Mk(xp.PERSON_CARD,"assigneeAction",b);B5b(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},pHa=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";Mk(xp.PERSON_CARD,"ccAction",b);C5b(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};sO.\u0275fac=function(a){return new (a||sO)(z(zL),z(yD,2),z(rO,8))};
sO.\u0275cmp=od({type:sO,selectors:[["b-issue-person-card"]],inputs:{email:"email"},features:[lg([yD]),Jf],decls:6,vars:4,consts:[[3,"email"],["class","actions",4,"ngIf"],[3,"click"],[1,"actions"],[3,"disabled","onAction"]],template:function(a,b){a&1&&(D(0,"b-person-card",0),P(1,qHa,9,8,"ng-container",1),T(2,"async"),D(3,"onedev-hovercard-action",2),L("click",function(c){Mk(xp.PERSON_CARD,"showAssignedIssuesAction");var d=Sk({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
AL(b.domSafe,d)}),D(4,"span"),Q(5,"Show assigned issues"),F()()());a&2&&(C("email",b.email),w(1),C("ngIf",b.actionService&&V(2,2,b.actionService.editAccess$)))},dependencies:[Ev,BK,BN,Kv],encapsulation:2,changeDetection:0});var tO=function(a,b){var c=this;this.session=a;this.userProfiles=b;this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new B.ReplaySubject(1);this.showEmail$=new B.BehaviorSubject(!1);this.isNonObfuscatedEmail=yn;this.userProfile$=this.email$.pipe(zf(function(d){return c.userProfiles.get(d)})).pipe(yf(void 0));this.content$=(0,B.combineLatest)([this.email$,this.userProfile$,this.showEmail$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;
e=e.next().value;return(f=null==f?void 0:f.displayName)?e?d+" ("+f+")":f:d}));this.vars$=(0,B.combineLatest)([this.email$,this.content$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return{email:d,content:e}}));this.enableWaldoAvailability=$C(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};Qh.Object.defineProperties(tO.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){this.email$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});
tO.\u0275fac=function(a){return new (a||tO)(z(Us),z(GN))};
tO.\u0275cmp=od({type:tO,selectors:[["b-user-display-name"]],inputs:{availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled",email:"email",showEmail:"showEmail"},decls:2,vars:3,consts:[[4,"ngIf"],["displayName",""],[4,"ngIf","ngIfElse"],["coinonly","",3,"user"],["role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"]],template:function(a,b){a&1&&(P(0,vHa,4,2,"ng-container",
0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.vars$))},dependencies:[Ev,Jv,JN,sO,PJ,UJ,Kv],encapsulation:2,changeDetection:0});var uO=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};uO.prototype.getDisplayString=function(){return vi(this.model)};var D5b=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?Vpa(yi(b)):Vpa(b))&&!!a.getEmailAddress()};uO.prototype.getEmailAddress=function(){return zi(this.model)||""};uO.\u0275fac=function(a){return new (a||uO)};
uO.\u0275cmp=od({type:uO,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},decls:3,vars:2,consts:[[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled",4,"ngIf"],[4,"ngIf"],[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(I(0),P(1,wHa,1,4,"b-user-display-name",0),P(2,xHa,2,1,"span",
1),K());a&2&&(w(1),C("ngIf",D5b(b)),w(1),C("ngIf",!D5b(b)))},dependencies:[Ev,tO],styles:[".b-user-display-span[_ngcontent-%COMP%]{margin-right:2px;margin-top:-1px;font-family:Roboto,Arial,sans-serif;font-size:.8125rem}"],changeDetection:0});var AHa={"alertmanager-buganizer-handler@prod.google.com":"https://g3doc.corp.google.com/production/borg/alertmanager/g3doc/templates/AlertManager-darkred.png","bugjuggler-beta@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler-beta@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head",
"koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/release/g3doc/images/koalassistant.png?cl=head","modem-explorer-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","piper-bugupdater@google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","piper-bugupdater@prod.google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","pixel-modem-tools-issue-classifier-be@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg",
"pixel-modem-tools-ltp-be@prod.google.com":"https://static.corp.google.com/modem-tools/ltp/logo.svg","spur-workflows@prod.google.com":"https://g3doc.corp.google.com/security/spur/g3doc/spur_logo.jpg?cl=head"};var vO=function(a,b){var c=this;this.userProfiles=a;this.activeSession=b;this.email$=new B.ReplaySubject(1);this.isNonObfuscatedEmail=yn;this.userProfile$=this.email$.pipe(zf(function(d){return d?c.userProfiles.get(d).pipe(yf(void 0)):(0,B.of)(void 0)}));this.vars$=(0,B.combineLatest)([this.email$,this.userProfile$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;if(!e)return{email:d,showImage:!1,src:void 0,srcset:void 0};var f=!e.photoUrl,h=f?void 0:e.photoUrl,k;f?k=void 0:k=e.highResolutionPhotoUrl?
e.highResolutionPhotoUrl+" 2x":e.photoUrl+" 1x";return{email:d,showImage:!f,src:h,srcset:k}}))},EHa=function(a,b){return!b||a.activeSession.isExternalSession()?!1:void 0!==AHa[b]};
Qh.Object.defineProperties(vO.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){yn(a)?this.email$.next(a):this.email$.next(void 0)}},tiny:{configurable:!0,enumerable:!0,get:function(){return"tiny"===this.size}},small:{configurable:!0,enumerable:!0,get:function(){return"small"===this.size}},medium:{configurable:!0,enumerable:!0,get:function(){return"medium"===this.size}}});vO.\u0275fac=function(a){return new (a||vO)(z(GN),z(Us))};
vO.\u0275cmp=od({type:vO,selectors:[["b-user-image"]],hostVars:6,hostBindings:function(a,b){a&2&&Xf("tiny",b.tiny)("small",b.small)("medium",b.medium)},inputs:{email:"email",size:"size"},decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["imageDisplay",""],["role","img","aria-label","user avatar",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],["class","user-avatar material",3,"anonymous",4,"ngIf"],["alt","",1,"user-avatar","material","robo-avatar",3,"src"],[1,"user-avatar",
"material"],["alt","",3,"src","srcset",4,"ngIf"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(P(0,GHa,4,2,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.vars$))},dependencies:[Ev,Jv,sO,PJ,UJ,Kv],styles:['.material.user-avatar.anonymous[_ngcontent-%COMP%]{border:1px solid;border-color:#bdc1c6;border-color:var(--c400);border-radius:50%;background-image:url("https://www.gstatic.com/buganizer/img/v0/logo_avatar_anonymous.svg");background-repeat:no-repeat;background-position:center;background-size:cover}img[_ngcontent-%COMP%]{border-radius:50%;vertical-align:middle}.material.user-avatar.robo-avatar[_ngcontent-%COMP%]{border-radius:0;object-fit:contain}[_nghost-%COMP%]{display:inline-flex;vertical-align:middle}.tiny[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:12px;max-height:12px}.tiny[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:12px;height:12px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.small[_nghost-%COMP%]   img[_ngcontent-%COMP%]{max-width:18px;max-height:18px}.small[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:18px;height:18px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.medium[_nghost-%COMP%]   img[_ngcontent-%COMP%]{max-width:24px;max-height:24px}.medium[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:24px;height:24px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}'],
changeDetection:0});var wO=function(a,b,c,d,e,f,h){var k=this;this.cdr=a;this.codefont=b;this.location=e;this.paths=f;this.userFeedback=h;this.commentVersion=-1;this.history=[];this.diffView=this.isLoading=!0;this.issueId=c.issueId;this.commentNumber=c.commentNumber;this.commentVersion=c.commentVersion;c.commentHistory.then(function(q){k.history=q}).catch(function(q){d.errorHandler(null,q)}).finally(function(){k.isLoading=!1;k.cdr.detectChanges()})};wO.prototype.trackByIndex=function(a){return a};
wO.prototype.startFeedback=function(){this.userFeedback.startFeedback()};wO.\u0275fac=function(a){return new (a||wO)(z(yD,2),z(AM),z(Tz),z(XF),z($v),z(xE),z($K))};
wO.\u0275cmp=od({type:wO,selectors:[["comment-history-dialog"]],features:[lg([yD])],decls:14,vars:4,consts:[["mat-dialog-title",""],[1,"diff-checkbox"],[3,"checked","change"],[1,"dialog-feedback",3,"click"],[1,"float-clear"],["class","bv2-view-loading",4,"ngIf"],["class","comment-history-list",4,"ngIf"],["mat-button","","mat-dialog-close",""],[1,"bv2-view-loading"],[1,"comment-history-list"],["class","comment-version",3,"comment-version-open",4,"ngFor","ngForOf","ngForTrackBy"],[1,"comment-version"],
[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"comment-version-header",3,"click"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",3,"timestamp"],["class","muted float-right float-clear",4,"ngIf"],[4,"ngIf"],[1,"muted","float-right","float-clear"],["class","type-xs",3,"innerHtml",4,"ngIf"],["class","type-xs",4,"ngIf"],[1,"type-xs",3,"innerHtml"],[1,"type-xs"],[1,"comment-version-email"],[3,"email"],[3,"id","click"],["class","comment-version-preview",4,"ngIf"],["class",
"comment-version-preview deleted",4,"ngIf"],["class","comment-version-restricted",4,"ngIf"],[1,"comment-version-preview"],[1,"comment-version-preview","deleted"],[1,"comment-version-restricted"],["class","comment-version-content deleted",4,"ngIf"],["class","comment-version-content",3,"codefont","innerHtml",4,"ngIf"],[1,"comment-version-content","deleted"],[1,"comment-version-content",3,"innerHtml"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1),F(),D(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",
2),L("change",function(c){return b.diffView=c.checked}),Q(5," Show Diff "),F()(),D(6,"a",3),L("click",function(){return b.startFeedback()}),Q(7,"Feedback"),F(),G(8,"br",4),P(9,HHa,2,0,"div",5),P(10,WHa,2,2,"ul",6),F(),D(11,"mat-dialog-actions")(12,"button",7),Q(13,"Close"),F()());a&2&&(w(1),S("History for Comment #",b.commentNumber,""),w(3),C("checked",b.diffView),w(5),C("ngIf",b.isLoading),w(1),C("ngIf",!b.isLoading))},dependencies:[Dv,Ev,PL,PK,Ez,Vz,Wz,Xz,Yz,CN,MJ,vO,uO,Kv,mO,DN],styles:[".comment-history-list[_ngcontent-%COMP%]{overflow:auto;padding:0}.comment-version[_ngcontent-%COMP%]{position:relative;background-color:#f1f3f4;background-color:var(--c100);border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);padding:8px 5px}.comment-version-open[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);color:#202124;color:var(--text)}.comment-version[_ngcontent-%COMP%] > .bv2-event-user-image-cell[_ngcontent-%COMP%]{padding-top:8px;padding-left:5px}.comment-version-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-preview[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-restricted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version-header[_ngcontent-%COMP%]{cursor:pointer;margin-left:40px}.comment-version-content[_ngcontent-%COMP%]{cursor:auto;margin:20px 0 10px 40px;white-space:pre-wrap}.comment-version[_ngcontent-%COMP%]   .deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version[_ngcontent-%COMP%] + .comment-version[_ngcontent-%COMP%]{border-top:0}.comment-version[_ngcontent-%COMP%]   .bv2-event-user-image-cell[_ngcontent-%COMP%]{margin:0}.dialog-feedback[_ngcontent-%COMP%]{float:right}.diff-checkbox[_ngcontent-%COMP%]{float:right;margin-right:10px;margin-left:10px}b-formatted-date-time[_ngcontent-%COMP%]{float:right}[_nghost-%COMP%]     .diff-added{background-color:#ceead6;background-color:var(--good-bg)}[_nghost-%COMP%]     .diff-removed{background-color:#fce8e6;background-color:var(--bad-bg);text-decoration:line-through}/*# sourceMappingURL=comment_history_dialog.css.map */"],
changeDetection:0});var xO=function(){};xO.\u0275fac=function(a){return new (a||xO)};xO.\u0275mod=qd({type:xO});xO.\u0275inj=ad({imports:[Sv]});var yO=function(){};yO.\u0275fac=function(a){return new (a||yO)};yO.\u0275mod=qd({type:yO});yO.\u0275inj=ad({});var zO=function(){};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275mod=qd({type:zO});zO.\u0275inj=ad({imports:[xO,Sv,yO,GB]});var AO=function(){};AO.\u0275fac=function(a){return new (a||AO)};AO.\u0275mod=qd({type:AO});AO.\u0275inj=ad({providers:[LM],imports:[GM]});/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var BO=function(a,b){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=b||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};ft(BO,XHa);
BO.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof BO&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,0>=b.branches_&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||(a=new CO(this),DO(this),EO(this,!1,a))}};BO.prototype.continue_=function(a,b){this.blocked_=!1;EO(this,a,b)};
var EO=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;E5b(a)},DO=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new F5b(a);a.silentlyCanceled_=!1}};BO.prototype.callback=function(a){DO(this);EO(this,!0,a)};BO.prototype.addCallback=function(a,b){return G5b(this,a,null,b)};var G5b=function(a,b,c,d){a.sequence_.push([b,c,d]);a.fired_&&E5b(a);return a};
BO.prototype.then=function(a,b,c){var d,e,f=new WA(function(h,k){e=h;d=k});G5b(this,e,function(h){h instanceof CO?f.cancel():d(h);return H5b},this);return f.then(a,b,c)};BO.prototype.$goog_Thenable=!0;BO.prototype.isError=function(a){return a instanceof Error};
var I5b=function(a){return xEb(a.sequence_,function(b){return"function"===typeof b[1]})},H5b={},E5b=function(a){if(a.unhandledErrorId_&&a.fired_&&I5b(a)){var b=a.unhandledErrorId_,c=J5b[b];c&&(da.clearTimeout(c.id_),delete J5b[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),f=e[0],h=e[1];e=e[2];if(f=a.hadError_?h:f)try{var k=f.call(e||a.defaultScope_,b);k===H5b&&(k=void 0);void 0!==
k&&(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(KPb(b)||"function"===typeof da.Promise&&b instanceof da.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,I5b(a)||(c=!0)}}a.result_=b;d&&(k=dt(a.continue_,a,!0),d=dt(a.continue_,a,!1),b instanceof BO?(G5b(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new K5b(b),J5b[b.id_]=b,a.unhandledErrorId_=b.id_)},F5b=function(){aa.call(this)};ft(F5b,aa);F5b.prototype.message="Deferred has already fired";F5b.prototype.name="AlreadyCalledError";
var CO=function(){aa.call(this)};ft(CO,aa);CO.prototype.message="Deferred was canceled";CO.prototype.name="CanceledError";var K5b=function(a){this.id_=da.setTimeout(dt(this.throwError,this),0);this.error_=a};K5b.prototype.throwError=function(){delete J5b[this.id_];throw this.error_;};var J5b={};var bIa=function(a,b){var c=b||{};b=c.document||document;var d=di(a).toString(),e=(new JA(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new BO(L5b,f),k=null,q=null!=c.timeout?c.timeout:5E3;0<q&&(k=window.setTimeout(function(){M5b(e,!0);var u=new N5b(1,"Timeout reached for loading script "+d);DO(h);EO(h,!1,u)},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(M5b(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=
function(){M5b(e,!0,k);var u=new N5b(0,"Error while loading script "+d);DO(h);EO(h,!1,u)};f=c.attributes||{};Bc(f,{type:"text/javascript",charset:"UTF-8"});mPb(e,f);DGb(e,a);O5b(b).appendChild(e);return h},O5b=function(a){var b=MA("HEAD",a);return b&&0!==b.length?b[0]:a.documentElement},L5b=function(){if(this&&this.script_){var a=this.script_;a&&"SCRIPT"==a.tagName&&M5b(a,!0,this.timeout_)}},M5b=function(a,b,c){null!=c&&da.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=
function(){};b&&window.setTimeout(function(){RA(a)},0)},N5b=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);aa.call(this,c);this.code=a};ft(N5b,aa);var cIa=Xs(["https://apis.google.com/js/api.js"]),YHa=null,eIa=new WeakMap;var FO=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?{}:d;var e=this;this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c;this.gapiAuthParams=d;this.gapi=(0,B.defer)(function(){return $Ha().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return gIa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};W(FO,H3b);
FO.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(Xe(function(c){var d=(0,B.of)(void 0);void 0!==b.gapiAuthParams.minAuthTokenTimeRemaining&&(d=(0,B.from)(fIa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(Xe(function(){b.setGapiConfig(c);return b.parseResponse(c.client.request({path:b.gapiUrl+a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers}))}))}))};
FO.prototype.parseResponse=function(a){return new B.Observable(function(b){a.then(function(c){!1===c.result&&null!=c.body?b.next({data:c.body}):b.next(c.result);b.complete()},function(c){b.error(c.result)})})};FO.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&dIa(a,b,this.gapiConfigUpdates[b])};var P5b=function(a,b,c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;FO.call(this,a,c,d,e);this.waldoApiKey=b};W(P5b,FO);P5b.prototype.makeRequest=function(a){var b=FO.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};var EDb=function(a){this.proxiedService=a};W(EDb,H3b);EDb.prototype.makeRequest=function(a){var b=this;return(0,B.defer)(function(){return b.proxiedService.makeRequest(a)})};var Q5b=new Ad("environment"),R5b={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},GO=function(){};GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275mod=qd({type:GO});GO.\u0275inj=ad({imports:[Sv,hN]});var HO=function(){};HO.\u0275fac=function(a){return new (a||HO)};HO.\u0275mod=qd({type:HO});HO.\u0275inj=ad({imports:[Sv,AO,zO,GO]});var IO=function(){};IO.\u0275fac=function(a){return new (a||IO)};IO.\u0275mod=qd({type:IO});IO.\u0275inj=ad({imports:[aD,HO,CK]});var JO=function(){};JO.\u0275fac=function(a){return new (a||JO)};JO.\u0275mod=qd({type:JO});JO.\u0275inj=ad({imports:[GO,aD,rL]});var KO=function(){};KO.\u0275fac=function(a){return new (a||KO)};KO.\u0275mod=qd({type:KO});KO.\u0275inj=ad({imports:[aD,CK,IO]});var LO=function(a){this.session=a;this.isNonObfuscatedEmail=yn;this.email="";this.withProfile=!0;this.enableWaldoAvailability=$C(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};LO.\u0275fac=function(a){return new (a||LO)(z(Us))};
LO.\u0275cmp=od({type:LO,selectors:[["b-user-email"]],inputs:{email:"email",withProfile:"withProfile"},decls:6,vars:4,consts:[[1,"bv2-email-with-profile-container"],["class","bv2-email-with-profile-avatar",3,"email",4,"ngIf"],[4,"ngIf","ngIfElse"],["emailDisplay",""],["class","bv2-email-with-profile-waldo",4,"ngIf"],[1,"bv2-email-with-profile-avatar",3,"email"],["role","button",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"bv2-email-with-profile-waldo"],["coinonly",
"",3,"user"]],template:function(a,b){a&1&&(D(0,"span",0),P(1,hIa,1,1,"b-user-image",1),P(2,jIa,6,3,"ng-container",2),P(3,kIa,2,1,"ng-template",null,3,Eg),P(5,lIa,2,1,"span",4),F());if(a&2){var c=N(4);w(1);C("ngIf",b.withProfile);w(1);C("ngIf",b.isNonObfuscatedEmail(b.email))("ngIfElse",c);w(3);C("ngIf",b.enableWaldoAvailability)}},dependencies:[Ev,Jv,JN,sO,PJ,UJ,vO],styles:["[_nghost-%COMP%]     span.bv2-email-with-profile-avatar, [_nghost-%COMP%]     .bv2-email-with-profile-avatar .user-avatar{background-size:103%;display:inline-block;height:1.5em;margin-right:2px;margin-top:-1px;width:1.5em;vertical-align:middle}[_nghost-%COMP%]     span.bv2-email-with-profile-avatar img, [_nghost-%COMP%]     .bv2-email-with-profile-avatar .user-avatar img{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);height:1.5em;width:1.5em}"],
changeDetection:0});var MO=function(a,b,c){Y.call(this);var d=this;this.teamsService=a;this.session=b;this.principalTypes=c;this.teamId="";this.enableGroupIcon=this.enableSmallChip=!1;this.providedTeamId$=new B.ReplaySubject(1);this.providedUser$=new B.ReplaySubject(1);this.providedEmail$=new B.ReplaySubject(1);this.isNonObfuscatedEmail=yn;this.isGroup=!1;this.fetchedTeam$=this.providedTeamId$.pipe(zf(function(e){return vI(d.teamsService,e)}));this.detailedUserType$=this.providedUser$.pipe(A(function(e){e=e?e&&e.getUserGaiaStatus?
e.getAliasesList():e.aliases||[]:[];return e.includes("googlers_unrestricted")?"UNRESTRICTED_GOOGLER":e.includes("google_domain")?"TVC":e.includes("issue_creation_only_accounts")?"ISSUE_CREATION_ONLY":e.includes("external_partners")?"EXTERNAL":e.includes("public_non_google")?"PUBLIC":"NO_DETAILED_TYPE"}),yf("NO_DETAILED_TYPE"));this.isTeamMember$=(0,B.combineLatest)([this.providedTeamId$,this.providedEmail$]).pipe(zf(function(e){var f=l(e);e=f.next().value;f=f.next().value;return HZb(d.teamsService,
e,f)}),yf(!1),gf(function(){return(0,B.of)(!1)}));this.teamUser$=this.fetchedTeam$.pipe(A(function(e){return"Member of "+e.name}));this.groupMembershipType$=(0,B.combineLatest)([this.detailedUserType$,this.isTeamMember$]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;return"PUBLIC"===e?"PUBLIC_USER":"EXTERNAL"===e?"PARTNER_USER":f?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableQuickAddCollaborators=$C(this.session,"enableQuickAddCollaborators");this.enableWaldoAvailability=
$C(this.session,"enableWaldoAvailability")&&this.session.isInternalSession();this.userTypeClass$=this.groupMembershipType$.pipe(A(function(e){return d.enableSmallChip?"user-chip-small":e&&"INTERNAL_NON_TEAM_MEMBER"!==e?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(A(function(e){if(e&&"INTERNAL_NON_TEAM_MEMBER"!==e){if("INTERNAL_TEAM_MEMBER"===e)return"team-member-chip";if("PARTNER_USER"===e)return"partner-chip";if("PUBLIC_USER"===e)return"public-chip"}else return"internal-non-team-member-chip";
return""}));this.shouldShowIcon$=this.groupMembershipType$.pipe(A(function(e){return e&&"INTERNAL_NON_TEAM_MEMBER"!==e}));this.iconName$=this.groupMembershipType$.pipe(A(function(e){if(e&&"INTERNAL_NON_TEAM_MEMBER"!==e){if("INTERNAL_TEAM_MEMBER"===e)return"people-outline";if("PARTNER_USER"===e)return"enterprise";if("PUBLIC_USER"===e)return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe(Cf(this.teamUser$),A(function(e){var f=l(e);e=f.next().value;f=f.next().value;if(e&&"INTERNAL_NON_TEAM_MEMBER"!==
e){if("INTERNAL_TEAM_MEMBER"===e)return f;if("PARTNER_USER"===e)return"Partner user";if("PUBLIC_USER"===e)return"Public user"}return""}))};W(MO,Y);MO.\u0275dir=Y.\u0275dir;MO.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.providedEmail$.subscribe(function(){a.enableGroupIcon&&a.enableQuickAddCollaborators&&wD(a.principalTypes,a.email,!1).then(function(b){a.isGroup="GROUP"===b.principalType})}))};
MO.prototype.ngOnChanges=function(a){a.teamId&&this.teamId&&this.providedTeamId$.next(this.teamId);a.user&&this.user&&this.providedUser$.next(this.user);a.email&&this.email&&this.providedEmail$.next(this.email)};MO.\u0275fac=function(a){return new (a||MO)(z(uI),z(Us),z(vD))};
MO.\u0275cmp=od({type:MO,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip",enableGroupIcon:"enableGroupIcon"},features:[Jf,Fd],decls:11,vars:13,consts:[[3,"ngClass"],[4,"ngIf"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled",4,"ngIf","ngIfElse"],["smallChipContents",""],[3,"svgIcon","matTooltip",4,"ngIf"],["name","group_24px","size","small",4,"ngIf","ngIfElse"],["userImage",""],["name","group_24px","size","small"],
["size","tiny",3,"email"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled"],[4,"ngIf","ngIfElse"],["emailDisplay",""],["tabindex","0","role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"user-chip-name"],[3,"svgIcon","matTooltip"],["coinonly","",3,"user"]],template:function(a,b){a&1&&(D(0,"span",0),T(1,"async"),D(2,"span",0),T(3,"async"),P(4,oIa,4,2,"ng-container",1),P(5,pIa,1,3,"b-user-display-name",2),P(6,tIa,3,2,"ng-template",
null,3,Eg),P(8,uIa,3,6,"mat-icon",4),T(9,"async"),F()(),P(10,vIa,2,1,"ng-container",1));if(a&2){var c=N(7),d,e;C("ngClass",null!==(d=V(1,7,b.userTypeClass$))&&void 0!==d?d:"");w(2);C("ngClass",null!==(e=V(3,9,b.userChipType$))&&void 0!==e?e:"");w(2);C("ngIf",b.enableSmallChip);w(1);C("ngIf",!b.enableSmallChip)("ngIfElse",c);w(3);C("ngIf",V(9,11,b.shouldShowIcon$));w(2);C("ngIf",b.enableWaldoAvailability&&!b.enableSmallChip)}},dependencies:[Cv,Ev,Jv,qA,JN,bD,FB,sO,PJ,UJ,vO,tO,Kv],styles:[".user-chip-without-icon[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip-without-icon[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px}.user-chip-without-icon[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;display:flex;height:1.75em;line-height:1.75em;padding:0 8px}.user-chip[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:16px;margin-left:3%;padding:0 14px 0 0;position:relative;width:16px}.user-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px;padding:0 0 0 8px}.team-member-chip[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--team-member-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.team-member-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1967d2;color:var(--team-member-gfx)}.partner-chip[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.partner-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.partner-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .partner-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.public-chip[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.public-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.public-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .public-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.user-chip-small[_ngcontent-%COMP%]{display:flex;height:1.25em;line-height:1.25em}.user-chip-small[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:11px;padding:0 0 1px 2px;width:11px}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px;min-width:0}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--user-bg-focus)}.user-chip-small[_ngcontent-%COMP%]   .team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .partner-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .public-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:normal;height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;letter-spacing:.3px;line-height:16px;padding:0 0 0 2px}[_nghost-%COMP%]{min-width:0}[_nghost-%COMP%]     b-icon{width:12px}[_nghost-%COMP%]     b-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon mat-icon svg{width:12px;height:16px}"],
changeDetection:0});var NO=function(){};NO.\u0275fac=function(a){return new (a||NO)};NO.\u0275mod=qd({type:NO});NO.\u0275inj=ad({imports:[aD,JO,hD,FC,IO,KO,CK]});var OO=function(){};OO.prototype.transform=function(a,b){switch(a){case "EXTERNAL_PARTNER":return b?"Partners":"Visible to Partners";case "EXTERNAL_PUBLIC":return b?"Public":"Visible to Public";default:return""}};OO.\u0275fac=function(a){return new (a||OO)};OO.\u0275pipe=td({name:"toAccessLevelLabel",type:OO,pure:!0});var S5b={TYPE_UNSPECIFIED:"Unknown",TEXT:"Text",DATE:"Date",ENUM:"Enum",NUMERIC:"Numeric",REPEATED_TEXT:"Repeated Text",REPEATED_DATE:"Repeated Date",REPEATED_ENUM:"Repeated Enum",REPEATED_NUMERIC:"Repeated Numeric"},PO=function(){};PO.prototype.transform=function(a){return S5b[a]};PO.\u0275fac=function(a){return new (a||PO)};PO.\u0275pipe=td({name:"toCustomFieldTypeDisplayValue",type:PO,pure:!0});var QO=function(){};QO.prototype.transform=function(a,b){var c;a=null==(c=a.split("@"))?void 0:c[0];b&&a.length>b&&(b=(b-3)/2,a=a.substring(0,b)+"..."+a.substring(a.length-b));return a+"@"};QO.\u0275fac=function(a){return new (a||QO)};QO.\u0275pipe=td({name:"shortenEmail",type:QO,pure:!0});var RO=function(){};RO.\u0275fac=function(a){return new (a||RO)};RO.\u0275mod=qd({type:RO});RO.\u0275inj=ad({imports:[aD]});var SO=function(){};SO.\u0275fac=function(a){return new (a||SO)};SO.\u0275mod=qd({type:SO});SO.\u0275inj=ad({imports:[aD,kM,SK,SB,Zz,IO,RO,AK,NO]});var wIa=function(){},ro=function(a,b,c,d,e){"undefined"==typeof e&&(e=(new Date).getTime()+1E3);if(null==b||null==c)throw Error("nd");if(b==c)return b?[[0,b]]:[];"undefined"==typeof d&&(d=!0);var f=T5b(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=U5b(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=V5b(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);W5b(a,b);return b},V5b=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,h=b.length>c.length?c:b,k=f.indexOf(h);if(-1!=k)return a=[[1,f.substring(0,k)],[0,h],[1,f.substring(k+h.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(1==h.length)return[[-1,b],[1,c]];if(f=X5b(b,c))return c=f[1],h=f[3],b=f[4],f=ro(a,f[0],f[2],d,e),a=ro(a,c,h,d,e),f.concat([[0,b]],a);if(d&&100<b.length&&100<c.length){b=Y5b(b,c);c=b.lineArray;b=ro(a,b.chars1,b.chars2,!1,e);for(d=0;d<b.length;d++){f=b[d][1];h=[];for(k=0;k<f.length;k++)h[k]=c[f.charCodeAt(k)];b[d][1]=h.join("")}xIa(a,
b);b.push([0,""]);f=d=c=0;for(k=h="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;h+=b[c][1];break;case 0:if(1<=d&&1<=f){b.splice(c-d-f,d+f);c=c-d-f;d=ro(a,h,k,!1,e);for(f=d.length-1;0<=f;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=h=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;h=Math.ceil((d+f)/2);k=2*h;for(var q=Array(k),u=Array(k),x=0;x<k;x++)q[x]=-1,u[x]=-1;q[h+1]=0;u[h+1]=0;x=d-f;for(var y=0!=x%2,E=0,H=0,J=0,O=0,R=0;R<h&&!((new Date).getTime()>e);R++){for(var U=-R+
E;U<=R-H;U+=2){var Z=h+U;var na=U==-R||U!=R&&q[Z-1]<q[Z+1]?q[Z+1]:q[Z-1]+1;for(var oa=na-U;na<d&&oa<f&&b.charAt(na)==c.charAt(oa);)na++,oa++;q[Z]=na;if(na>d)H+=2;else if(oa>f)E+=2;else if(y&&(Z=h+x-U,0<=Z&&Z<k&&-1!=u[Z])){var wa=d-u[Z];if(na>=wa){a=Z5b(a,b,c,na,oa,e);break a}}}for(U=-R+J;U<=R-O;U+=2){Z=h+U;wa=U==-R||U!=R&&u[Z-1]<u[Z+1]?u[Z+1]:u[Z-1]+1;for(na=wa-U;wa<d&&na<f&&b.charAt(d-wa-1)==c.charAt(f-na-1);)wa++,na++;u[Z]=wa;if(wa>d)O+=2;else if(na>f)J+=2;else if(!y&&(Z=h+x-U,0<=Z&&Z<k&&-1!=q[Z]&&
(na=q[Z],oa=h+na-Z,wa=d-wa,na>=wa))){a=Z5b(a,b,c,na,oa,e);break a}}}a=[[-1,b],[1,c]]}return a},Z5b=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=ro(a,b.substring(0,d),c.substring(0,e),!1,f);a=ro(a,h,k,!1,f);return b.concat(a)},Y5b=function(a,b){function c(h){for(var k="",q=0,u=-1,x=d.length;u<h.length-1;){u=h.indexOf("\n",q);-1==u&&(u=h.length-1);var y=h.substring(q,u+1);(e.hasOwnProperty?e.hasOwnProperty(y):void 0!==e[y])?k+=String.fromCharCode(e[y]):(x==f&&(y=h.substring(q),u=h.length),
k+=String.fromCharCode(x),e[y]=x,d[x++]=y);q=u+1}return k}var d=[],e={};d[0]="";var f=4E4;a=c(a);f=65535;b=c(b);return{chars1:a,chars2:b,lineArray:d}},T5b=function(a,b){if(!a||!b||a.charAt(0)!=b.charAt(0))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e},U5b=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(a.length-
e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e},$5b=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c>d?a=a.substring(c-d):c<d&&(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=b.indexOf(a.substring(c-e));if(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}},X5b=function(a,b){function c(k,q,u){for(var x=k.substring(u,u+Math.floor(k.length/4)),y=-1,E="",H,J,O,R;-1!=(y=q.indexOf(x,y+1));){var U=
T5b(k.substring(u),q.substring(y)),Z=U5b(k.substring(0,u),q.substring(0,y));E.length<Z+U&&(E=q.substring(y-Z,y)+q.substring(y,y+U),H=k.substring(0,u-Z),J=k.substring(u+U),O=q.substring(0,y-Z),R=q.substring(y+U))}return 2*E.length>=k.length?[H,J,O,R,E]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var h;if(f||d)d?h=f?f[4].length>d[4].length?f:d:d:h=f;else return null;a.length>
b.length?(a=h[0],b=h[1],f=h[2],d=h[3]):(f=h[0],d=h[1],a=h[2],b=h[3]);return[a,b,f,d,h[4]]},xIa=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,u=0,x=0;h<b.length;)0==b[h][0]?(d[e++]=h,k=u,q=x,x=u=0,f=b[h][1]):(1==b[h][0]?u+=b[h][1].length:x+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(u,x)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,h=0<e?d[e-1]:-1,x=u=q=k=0,f=null,c=!0)),h++;c&&W5b(a,b);a6b(b);for(h=1;h<b.length;){if(-1==b[h-1][0]&&1==b[h][0]){a=b[h-1][1];c=b[h][1];
d=$5b(a,c);e=$5b(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(h,0,[0,c.substring(0,d)]),b[h-1][1]=a.substring(0,a.length-d),b[h+1][1]=c.substring(d),h++}else if(e>=a.length/2||e>=c.length/2)b.splice(h,0,[0,a.substring(0,e)]),b[h-1][0]=1,b[h-1][1]=c.substring(0,c.length-e),b[h+1][0]=-1,b[h+1][1]=a.substring(e),h++;h++}h++}},a6b=function(a){function b(y,E){if(!y||!E)return 6;var H=y.charAt(y.length-1),J=E.charAt(0),O=H.match(b6b),R=J.match(b6b),U=O&&H.match(c6b),Z=R&&J.match(c6b);H=U&&H.match(d6b);
J=Z&&J.match(d6b);y=H&&y.match(e6b);E=J&&E.match(f6b);return y||E?5:H||J?4:O&&!U&&Z?3:U||Z?2:O||R?1:0}for(var c=1;c<a.length-1;){if(0==a[c-1][0]&&0==a[c+1][0]){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],h=U5b(d,e);if(h){var k=e.substring(e.length-h);d=d.substring(0,d.length-h);e=k+e.substring(0,e.length-h);f=k+f}h=d;k=e;for(var q=f,u=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var x=b(d,e)+b(e,f);x>=u&&(u=x,h=d,k=e,q=f)}a[c-1][1]!=h&&(h?a[c-1][1]=
h:(a.splice(c-1,1),c--),a[c][1]=k,q?a[c+1][1]=q:(a.splice(c+1,1),c--))}c++}},b6b=/[^a-zA-Z0-9]/,c6b=/\s/,d6b=/[\r\n]/,e6b=/\n\r?\n$/,f6b=/^\r?\n\r?\n/,W5b=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",h="",k;c<b.length;)switch(b[c][0]){case 1:e++;h+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:1<d+e?(0!==d&&0!==e&&(k=T5b(h,f),0!==k&&(0<c-d-e&&0==b[c-d-e-1][0]?b[c-d-e-1][1]+=h.substring(0,k):(b.splice(0,0,[0,h.substring(0,k)]),c++),h=h.substring(k),f=f.substring(k)),k=U5b(h,f),
0!==k&&(b[c][1]=h.substring(h.length-k)+b[c][1],h=h.substring(0,h.length-k),f=f.substring(0,f.length-k))),0===d?b.splice(c-e,d+e,[1,h]):0===e?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,h]),c=c-d-e+(d?1:0)+(e?1:0)+1):0!==c&&0==b[c-1][0]?(b[c-1][1]+=b[c][1],b.splice(c,1)):c++,d=e=0,h=f=""}""===b[b.length-1][1]&&b.pop();d=!1;for(c=1;c<b.length-1;)0==b[c-1][0]&&0==b[c+1][0]&&(b[c][1].substring(b[c][1].length-b[c-1][1].length)==b[c-1][1]?(b[c][1]=b[c-1][1]+b[c][1].substring(0,b[c][1].length-
b[c-1][1].length),b[c+1][1]=b[c-1][1]+b[c+1][1],b.splice(c-1,1),d=!0):b[c][1].substring(0,b[c+1][1].length)==b[c+1][1]&&(b[c-1][1]+=b[c+1][1],b[c][1]=b[c][1].substring(b[c+1][1].length)+b[c+1][1],b.splice(c+1,1),d=!0)),c++;d&&W5b(a,b)};var TO=function(a,b,c){this.analytics=a;this.issueComments=b;this.dialogManager=c};TO.prototype.show=function(a,b,c){var d=this,e;return Ne(function(f){if(d.dialog&&2!==d.dialog.getState())return f.return();d.analytics.trackEvent("commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:g6b(d,a,b,c)};d.dialog=d.dialogManager.open(wO,{data:e,width:"50vw"});return f.return((0,B.firstValueFrom)(Pz(d.dialog)))})};
var g6b=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=0<e.length?e[0].unlinkifiedComment:"",h=0<e.length?e[0].formattingMode:"",k=!1,q=[];e=l(e);for(var u=e.next();!u.done;u=e.next()){u=u.value;var x=zIa(u);x||k?(f=UO(u.unlinkifiedComment),h=UO(u.formattingMode)):(f=yIa(f,u.unlinkifiedComment),k=u.formattingMode,h=h===k?UO(k):to(UO(h,"diff-removed"),UO(k,"diff-added")));k=void 0===u.unlinkifiedComment?"":u.unlinkifiedComment;var y=u.version,E=u.commentContentVerdict;
q.push({unlinkifiedComment:k,lastEditorUser:u.lastEditorUser,version:y,formattingMode:u.formattingMode,formattingModeDiff:h,lastModified:Number(u.lastModified)/1E3,open:25>y,preview:48>=k.length?k:k.substring(0,45)+"...",diff:f,restricted:E&&E.piiVerdict&&"NONE_DETECTED"!==E.piiVerdict.severity||!1,deleted:zIa(u)});f=u.unlinkifiedComment;h=u.formattingMode;k=x}-1<d?q[d].open=!0:q[0].open=!0;return q})},UO=function(a,b){return so("SPAN",b?{"class":b}:null,a)};
TO.\u0275fac=function(a){return new (a||TO)(n(zH),n(WI),n(Uz))};TO.\u0275prov=$c({token:TO,factory:TO.\u0275fac,providedIn:"root"});var h6b=new Map([["name","Name"],["description","Description"],["parentComponentId","Parent component ID"],["slo","SLO"],["team","Team"],["commentEditState","Editable comments"],["isArchived","Archived"],["defaultTemplateId","Default template ID"],["retentionSettings","Retention Settings"]]),i6b=new Map([["ENABLED","Enabled"],["DISABLED","Disabled"]]),CIa=new Map([["BUGANIZER_DEFAULT","Default (10 years)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Indefinite"]]),DIa=new Map([["BUGANIZER_DEFAULT",
"Default (60 days)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Match Issue Retention"]]),VO=function(a,b){this.$log=a;this.sessionIsInternal=b.isInternalSession()};VO.\u0275fac=function(a){return new (a||VO)(n(dE),n(Us))};VO.\u0275prov=$c({token:VO,factory:VO.\u0275fac,providedIn:"root"});var FIa=new Map([["SLO_SOURCE_UNSPECIFIED","--"],["USER","User"],["BUGSCOPE","Bugscope"]]);var j6b=sh({opacity:"0"}),k6b=cf(function(a){return a}),l6b=(0,B.pipe)(mf(),k6b,sf()),m6b=new Ad("xap-bubble UX style"),WO=function(a){var b=this;this.activity=new B.Subject;this.openedSubject=new B.BehaviorSubject(!1);this.destroy=new B.ReplaySubject;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new Yu;this.onOpened=new Yu;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Zha(function(){return b.activity.pipe(jf(b.hoverDelayMs))}));
a=Af(this.destroy);this.opened.pipe(l6b,a).subscribe(this.onOpened);this.openedSubject.pipe(k6b,Oia(function(){return b.opened.pipe(cf(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};WO.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};WO.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};WO.\u0275fac=function(a){return new (a||WO)(z(m6b,8))};
WO.\u0275cmp=od({type:WO,selectors:[["xap-bubble"]],inputs:{panelTemplate:"panelTemplate",overlayPositions:"overlayPositions",overlayPanelClass:"overlayPanelClass",hoverDelayMs:"hoverDelayMs"},outputs:{beforeOpened:"beforeOpened",beforeShow:"beforeShow",onOpened:"opened"},ngContentSelectors:["*"],decls:5,vars:7,consts:[["cdkOverlayOrigin","",1,"xap-bubble-trigger",3,"ngClass","mouseenter","mouseleave","mousemove"],["trigger","cdkOverlayOrigin"],["cdkConnectedOverlay","","cdkConnectedOverlayPush",
"true",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],[1,"xap-bubble-panel",3,"ngClass","mouseenter","mouseleave","mousemove"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(eg(),D(0,"span",0,1),L("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("mousemove",function(){b.activity.next()}),fg(2),F(),P(3,JIa,2,3,"ng-template",2),T(4,"async"));if(a&2){var c=N(1);C("ngClass",b.bubbleStyle);
w(3);C("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",V(4,5,b.opened))}},dependencies:[Cv,Jv,Ry,Qy,Kv],styles:[".xap-bubble-trigger{cursor:default;pointer-events:auto}.xap-bubble-trigger.xap-bubble-reach{-webkit-text-decoration:underline dashed #80868b;-moz-text-decoration:underline dashed #80868b;text-decoration:underline dashed #80868b;text-underline-position:under}.xap-bubble-panel{overflow:auto;padding:16px;will-change:opacity}.xap-bubble-panel.xap-bubble-md1{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);max-height:400px;max-width:400px}.xap-bubble-panel.xap-bubble-reach{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);border-radius:8px;max-height:420px;max-width:420px;min-height:40px;min-width:220px}"],
encapsulation:2,data:{animation:[qh("fade",[uh(":enter",[j6b,rh("225ms")]),uh(":leave",[rh("195ms",j6b)])])]}});var XO=function(a,b){this.activeSession=a;this.documentationLinks=b;this.labelOnlyMode=this.compactMode=!1;this.bubbleText=this.chipClass=""};
XO.prototype.ngOnChanges=function(){if(this.accessLevel)switch(this.accessLevel){case "EXTERNAL_PARTNER":this.chipClass="partner";this.bubbleText=' Components and issues designated as "Visible to Partners" can be shared with specific external partners listed in the component\'s access control settings.';break;case "EXTERNAL_PUBLIC":this.chipClass="public";this.bubbleText='Components and issues designated as "Visible to Public" can be \n              shared with any external user.';break;default:this.bubbleText=
this.chipClass=""}};XO.\u0275fac=function(a){return new (a||XO)(z(Us),z(yL))};
XO.\u0275cmp=od({type:XO,selectors:[["b-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},features:[Fd],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["withBubble",""],[1,"chippy","rounded",3,"ngClass"],[3,"panelTemplate"],[1,"chippy","rounded","nowrap",3,"ngClass"],["popup",""],[1,"bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&P(0,NIa,4,2,"ng-container",0);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?
"EXTERNAL_PARTNER"===b.accessLevel||"EXTERNAL_PUBLIC"===b.accessLevel:$Tb(b.activeSession)?"EXTERNAL_PUBLIC"===b.accessLevel:!1;C("ngIf",a)}},dependencies:[Cv,Ev,WO,OO],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px}.chippy.partner[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-outline)}.chippy.public[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-outline)}.chippy.xs[_ngcontent-%COMP%]{box-shadow:none;margin-right:4px}.bubble[_ngcontent-%COMP%]{width:300px}"],
changeDetection:0});var YO=function(a,b){Y.call(this);this.componentFridge=a;this.activeSession=b;this.providedComponentId$=new B.ReplaySubject(1);this.component$=this.providedComponentId$.pipe(zf(this.componentFridge.watch),wf({refCount:!0,bufferSize:1}));this.init=new B.ReplaySubject(1);this.isAnonymous=this.activeSession.isAnonymous()};W(YO,Y);YO.\u0275dir=Y.\u0275dir;
YO.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=Sk({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=Rk("issues/new",{params:void 0})+"?component="+this.componentId;this.viewComponentUrl=cua(this.componentId,"basic");this.component$.pipe(nf(),Af(this.destroyed$)).subscribe(function(){a.init.next()})};YO.\u0275fac=function(a){return new (a||YO)(z(OG),z(Us))};
YO.\u0275cmp=od({type:YO,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},features:[Jf],decls:4,vars:3,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],[3,"accessLevel","labelOnlyMode"],["tabindex","0",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),P(2,PIa,16,8,"ng-container",2),T(3,"async"),F()());a&2&&(w(2),C("ngIf",V(3,1,b.component$)))},
dependencies:[Ev,XO,Kv],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});var ZO=function(){this.changes=new B.Subject;this.itemsPerPageLabel="Items per page:";this.nextPageLabel="Next page";this.previousPageLabel="Previous page";this.firstPageLabel="First page";this.lastPageLabel="Last page";this.getRangeLabel=function(a,b,c){if(0==c||0==b)return"0 of "+c;c=Math.max(c,0);a*=b;return a+1+" \u2013 "+(a<c?Math.min(a+b,c):a+b)+" of "+c}};ZO.\u0275fac=function(a){return new (a||ZO)};ZO.\u0275prov=$c({token:ZO,factory:ZO.\u0275fac,providedIn:"root"});new au;new bu;var n6b=new Ad("mat-select-scroll-strategy"),o6b=new Ad("MAT_SELECT_CONFIG"),p6b=new Ad("MatSelectTrigger");Sh(Vh(Th(Uh(function(a,b,c,d,e){this._elementRef=a;this._defaultErrorStateMatcher=b;this._parentForm=c;this._parentFormGroup=d;this.ngControl=e;this.stateChanges=new B.Subject}))));new Ad("MAT_PAGINATOR_DEFAULT_OPTIONS");Th(moa(function(){}));var q6b=qh("transformPanelWrap",[uh("* => void",wh("@transformPanel",[vh()]))]),r6b=qh("transformPanel",[th("void",sh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),th("showing",sh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),th("showing-multiple",sh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),uh("void => *",rh("120ms cubic-bezier(0, 0, 0.2, 1)")),uh("* => void",rh("100ms 25ms linear",sh({opacity:0})))]);var s6b=["trigger"],t6b=["panel"],u6b=Number.MAX_SAFE_INTEGER,v6b={provide:n6b,deps:[Py],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},w6b=Hoa(function(a,b){b=void 0===b?0:b;var c=function(){var d=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;d._tabIndex=b;d.defaultTabIndex=b;return d};W(c,a);Qh.Object.defineProperties(c.prototype,{tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:this._tabIndex},set:function(d){this._tabIndex=
null!=d?dh(d):this.defaultTabIndex}}});return c}(function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c._disabled=!1;return c};W(b,a);Qh.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=ah(c)}}});return b}(function(a){var b=function(){var c=a.apply(this,[].concat(p(xd.apply(0,arguments))))||this;c.errorState=!1;return c};W(b,a);b.prototype.updateErrorState=function(){var c=
(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);c!==this.errorState&&(this.errorState=c,this.stateChanges.next())};return b}(function(a,b,c,d,e){this._elementRef=a;this._defaultErrorStateMatcher=b;this._parentForm=c;this._parentFormGroup=d;this.ngControl=e;this.stateChanges=new B.Subject})))),$O=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H){var J=w6b.call(this,e,d,h,k,u)||this;J._viewportRuler=a;J._changeDetectorRef=
b;J._ngZone=c;J._dir=f;J._parentFormField=q;J._liveAnnouncer=E;J._defaultOptions=H;J._panelOpen=!1;J._compareWith=function(Z,na){return Z===na};J._uid="mat-select-"+u6b--;J._triggerAriaLabelledBy=null;J._destroy=new B.Subject;J._onChange=function(){};J._onTouched=function(){};J._valueId="mat-select-value-"+u6b--;J._panelDoneAnimatingStream=new B.Subject;var O;J._overlayPanelClass=(null==(O=J._defaultOptions)?void 0:O.overlayPanelClass)||"";J._focused=!1;J.controlType="mat-select";J._multiple=!1;var R,
U;J._disableOptionCentering=null!=(U=null==(R=J._defaultOptions)?void 0:R.disableOptionCentering)?U:!1;J.ariaLabel="";J.optionSelectionChanges=(0,B.defer)(function(){var Z=J.options;return Z?Z.changes.pipe(yf(Z),zf(function(){return B.merge.apply(null,p(Z.map(function(na){return na.onSelectionChange})))})):J._ngZone.onStable.pipe(nf(),zf(function(){return J.optionSelectionChanges}))});J.openedChange=new Yu;J._openedStream=J.openedChange.pipe(cf(function(Z){return Z}),A(function(){}));J._closedStream=
J.openedChange.pipe(cf(function(Z){return!Z}),A(function(){}));J.selectionChange=new Yu;J.valueChange=new Yu;J._trackedModal=null;J.ngControl&&(J.ngControl.valueAccessor=J);null!=(null==H?void 0:H.typeaheadDebounceInterval)&&(J._typeaheadDebounceInterval=H.typeaheadDebounceInterval);J._scrollStrategyFactory=y;J._scrollStrategy=J._scrollStrategyFactory();J.tabIndex=parseInt(x)||0;J.id=J.id;return J};W($O,w6b);g=$O.prototype;
g.ngOnInit=function(){var a=this;this._selectionModel=new By(this.multiple);this.stateChanges.next();this._panelDoneAnimatingStream.pipe(mf(),Af(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})};
g.ngAfterContentInit=function(){var a=this;this._initKeyManager();this._selectionModel.changed.pipe(Af(this._destroy)).subscribe(function(b){b.added.forEach(function(c){return c.select()});b.removed.forEach(function(c){return c.deselect()})});this.options.changes.pipe(yf(null),Af(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
g.ngDoCheck=function(){var a=this._getTriggerAriaLabelledby(),b=this.ngControl;if(a!==this._triggerAriaLabelledBy){var c=this._elementRef.nativeElement;(this._triggerAriaLabelledBy=a)?c.setAttribute("aria-labelledby",a):c.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(void 0!==this._previousControl&&null!==b.disabled&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())};
g.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&pMb(this._keyManager,this._typeaheadDebounceInterval)};g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this._destroy.next();this._destroy.complete();this.stateChanges.complete();this._clearFromModal()};g.toggle=function(){this.panelOpen?this.close():this.open()};
g.open=function(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,ky(this._keyManager,null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())};g._applyModalPanelOwnership=function(){var a=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.id+"-panel";this._trackedModal&&Nh(this._trackedModal,"aria-owns",b);boa(a,"aria-owns",b);this._trackedModal=a}};
g._clearFromModal=function(){this._trackedModal&&(Nh(this._trackedModal,"aria-owns",this.id+"-panel"),this._trackedModal=null)};g.close=function(){this._panelOpen&&(this._panelOpen=!1,ky(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())};g.writeValue=function(a){this._assignValue(a)};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};
g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};g._isRtl=function(){return this._dir?"rtl"===this._dir.value:!1};g._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};
g._handleClosedKeydown=function(a){var b=a.keyCode,c=40===b||38===b||37===b||39===b,d=this._keyManager;!(0<d._pressedLetters.length||13!==b&&32!==b||eh(a))||(this.multiple||a.altKey)&&c?(a.preventDefault(),this.open()):this.multiple||(b=this.selected,d.onKeydown(a),(a=this.selected)&&b!==a&&this._liveAnnouncer.announce(a.viewValue,1E4))};
g._handleOpenKeydown=function(a){var b=this._keyManager,c=a.keyCode,d=40===c||38===c,e=0<b._pressedLetters.length;if(d&&a.altKey)a.preventDefault(),this.close();else if(e||13!==c&&32!==c||!b.activeItem||eh(a))if(!e&&this._multiple&&65===c&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(h){return!h.disabled&&!h.selected});this.options.forEach(function(h){h.disabled||(f?h.select():h.deselect())})}else c=b.activeItemIndex,b.onKeydown(a),this._multiple&&d&&a.shiftKey&&b.activeItem&&b.activeItemIndex!==
c&&b.activeItem._selectViaInteraction();else a.preventDefault(),b.activeItem._selectViaInteraction()};g._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};g._onBlur=function(){this._focused=!1;var a;null!=(a=this._keyManager)&&(a._pressedLetters=[]);this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};
g._onAttached=function(){var a=this;this._overlayDir.positionChange.pipe(nf()).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()})};g._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};g._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
g._setSelectionByValue=function(a){var b=this;this.options.forEach(function(c){return c.setInactiveStyles()});this._selectionModel.clear();this.multiple&&a?(Array.isArray(a),a.forEach(function(c){return b._selectOptionByValue(c)}),this._sortValues()):(a=this._selectOptionByValue(a))?my(this._keyManager,a):this.panelOpen||my(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
g._selectOptionByValue=function(a){var b=this,c=this.options.find(function(d){if(b._selectionModel.isSelected(d))return!1;try{return null!=d.value&&b._compareWith(d.value,a)}catch(e){return!1}});c&&this._selectionModel.select(c);return c};g._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};g._skipPredicate=function(a){return a.disabled};
g._initKeyManager=function(){var a=this;this._keyManager=hy(oMb(qMb(ly(ky(jy(pMb(new ny(this.options),this._typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")))),this._skipPredicate);this._keyManager.tabOut.subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):a._panelOpen||a.multiple||
!a._keyManager.activeItem||a._keyManager.activeItem._selectViaInteraction()})};g._resetOptions=function(){var a=this,b=(0,B.merge)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Af(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});B.merge.apply(null,p(this.options.map(function(c){return c._stateChanges}))).pipe(Af(b)).subscribe(function(){a._changeDetectorRef.detectChanges();a.stateChanges.next()})};
g._onSelect=function(a,b){var c=this._selectionModel.isSelected(a);null!=a.value||this._multiple?(c!==a.selected&&(a.selected?this._selectionModel.select(a):this._selectionModel.deselect(a)),b&&this._keyManager.setActiveItem(a),this.multiple&&(this._sortValues(),b&&this.focus())):(a.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(a.value));c!==this._selectionModel.isSelected(a)&&this._propagateChanges();this.stateChanges.next()};
g._sortValues=function(){var a=this;if(this.multiple){var b=this.options.toArray();this._selectionModel.sort(function(c,d){return a.sortComparator?a.sortComparator(c,d,b):b.indexOf(c)-b.indexOf(d)});this.stateChanges.next()}};g._propagateChanges=function(a){var b=null;this.multiple?b=this.selected.map(function(c){return c.value}):b=this.selected?this.selected.value:a;this._value=b;this.valueChange.emit(b);this._onChange(b);this.selectionChange.emit(this._getChangeEvent(b));this._changeDetectorRef.markForCheck()};
g._highlightCorrectOption=function(){if(this._keyManager)if(this.empty){for(var a=-1,b=0;b<this.options.length;b++)if(!this.options.get(b).disabled){a=b;break}this._keyManager.setActiveItem(a)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])};g._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&0<(null==(a=this.options)?void 0:a.length)};g.focus=function(a){this._elementRef.nativeElement.focus(a)};
g._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=null==(a=this._parentFormField)?void 0:a.getLabelId();return this.ariaLabelledby?(b?b+" ":"")+this.ariaLabelledby:b};g._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
g._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=null==(a=this._parentFormField)?void 0:a.getLabelId();a=(b?b+" ":"")+this._valueId;this.ariaLabelledby&&(a+=" "+this.ariaLabelledby);return a};g._panelDoneAnimating=function(a){this.openedChange.emit(a)};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};
g.onContainerClick=function(){this.focus();this.open()};
Qh.Object.defineProperties($O.prototype,{focused:{configurable:!0,enumerable:!0,get:function(){return this._focused||this._panelOpen}},placeholder:{configurable:!0,enumerable:!0,get:function(){return this._placeholder},set:function(a){this._placeholder=a;this.stateChanges.next()}},required:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return null!=(d=null!=(c=this._required)?c:null==(a=this.ngControl)?void 0:null==(b=a.control)?void 0:GJb(b))?d:!1},set:function(a){this._required=ah(a);
this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=ah(a)}},disableOptionCentering:{configurable:!0,enumerable:!0,get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=ah(a)}},compareWith:{configurable:!0,enumerable:!0,get:function(){return this._compareWith},set:function(a){this._compareWith=a;this._selectionModel&&this._initializeSelection()}},value:{configurable:!0,enumerable:!0,
get:function(){return this._value},set:function(a){this._assignValue(a)&&this._onChange(a)}},typeaheadDebounceInterval:{configurable:!0,enumerable:!0,get:function(){return this._typeaheadDebounceInterval},set:function(a){this._typeaheadDebounceInterval=dh(a)}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=a||this._uid;this.stateChanges.next()}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen}},selected:{configurable:!0,enumerable:!0,
get:function(){var a,b;return this.multiple?(null==(a=this._selectionModel)?void 0:a.selected)||[]:null==(b=this._selectionModel)?void 0:b.selected[0]}},triggerValue:{configurable:!0,enumerable:!0,get:function(){if(this.empty)return"";if(this._multiple){var a=this._selectionModel.selected.map(function(b){return b.viewValue});this._isRtl()&&a.reverse();return a.join(", ")}return this._selectionModel.selected[0].viewValue}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._selectionModel||
this._selectionModel.isEmpty()}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}});$O.\u0275fac=function(a){return new (a||$O)(z(Dy),z(xv),z(Df),z(Zy),z(ae),z(py,8),z(mw,8),z(vw,8),z(eA,8),z(ew,10),Ud("tabindex"),z(n6b),z(Zx),z(o6b,8))};
$O.\u0275dir=sd({type:$O,viewQuery:function(a,b){a&1&&(zg(s6b,5),zg(t6b,5),zg(Ry,5));if(a&2){var c;yg(c=Bg())&&(b.trigger=c.first);yg(c=Bg())&&(b.panel=c.first);yg(c=Bg())&&(b._overlayDir=c.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby",
"ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Jf,Fd]});var x6b=[[["mat-select-trigger"]],"*"],y6b=function(a,b){this.source=a;this.value=b},aP=function(){};aP.\u0275fac=function(a){return new (a||aP)};aP.\u0275dir=sd({type:aP,selectors:[["mat-select-trigger"]],features:[lg([{provide:p6b,useExisting:aP}])]});
var bP=function(){var a=$O.apply(this,arguments)||this;a._scrollTop=0;a._triggerFontSize=0;a._transformOrigin="top";a._offsetY=0;a._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}];return a};W(bP,$O);bP.\u0275dir=$O.\u0275dir;g=bP.prototype;g._calculateOverlayScroll=function(a,b,c){var d=this._getItemHeight();return Math.min(Math.max(0,d*a-b+d/2),c)};
g.ngOnInit=function(){var a=this;$O.prototype.ngOnInit.call(this);this._viewportRuler.change().pipe(Af(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})};
g.open=function(){var a=this;$O.prototype._canOpen.call(this)&&($O.prototype.open.call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(nf()).subscribe(function(){a._triggerFontSize&&a._overlayDir.overlayRef&&a._overlayDir.overlayRef.overlayElement&&(a._overlayDir.overlayRef.overlayElement.style.fontSize=a._triggerFontSize+
"px")}))};g._scrollOptionIntoView=function(a){var b=Ioa(a,this.options,this.optionGroups),c=this._getItemHeight();this.panel.nativeElement.scrollTop=0===a&&1===b?0:Joa((a+b)*c,c,this.panel.nativeElement.scrollTop,256)};g._positioningSettled=function(){this._calculateOverlayOffsetX();this.panel.nativeElement.scrollTop=this._scrollTop};
g._panelDoneAnimating=function(a){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck());$O.prototype._panelDoneAnimating.call(this,a)};g._getChangeEvent=function(a){return new y6b(this,a)};g._getOverlayMinWidth=function(){var a;return null==(a=this._triggerRect)?void 0:a.width};
g._calculateOverlayOffsetX=function(){var a=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),b=this._viewportRuler.getViewportSize(),c=this._isRtl(),d=this.multiple?56:32;var e=this.multiple?40:this.disableOptionCentering?16:(e=this._selectionModel.selected[0]||this.options.first)&&e.group?32:16;c||(e*=-1);var f=-(a.left+e-(c?d:0));a=a.right+e-b.width+(c?0:d);0<f?e+=f+8:0<a&&(e-=a+8);this._overlayDir.offsetX=Math.round(e);this._overlayDir.overlayRef.updatePosition()};
g._calculateOverlayOffsetY=function(a,b,c){var d=this._getItemHeight(),e=(d-this._triggerRect.height)/2,f=Math.floor(256/d);return this.disableOptionCentering?0:Math.round(-1*(0===this._scrollTop?a*d:this._scrollTop===c?(a-(this._getItemCount()-f))*d+(d-(this._getItemCount()*d-256)%d):b-d/2)-e)};
g._checkOverlayWithinViewport=function(a){var b=this._getItemHeight(),c=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8;c=c.height-this._triggerRect.bottom-8;var e=Math.abs(this._offsetY);b=Math.min(this._getItemCount()*b,256)-e-this._triggerRect.height;b>c?this._adjustPanelUp(b,c):e>d?this._adjustPanelDown(e,d,a):this._transformOrigin=this._getOriginBasedOnOption()};
g._adjustPanelUp=function(a,b){a=Math.round(a-b);this._scrollTop-=a;this._offsetY-=a;this._transformOrigin=this._getOriginBasedOnOption();0>=this._scrollTop&&(this._offsetY=this._scrollTop=0,this._transformOrigin="50% bottom 0px")};g._adjustPanelDown=function(a,b,c){a=Math.round(a-b);this._scrollTop+=a;this._offsetY+=a;this._transformOrigin=this._getOriginBasedOnOption();this._scrollTop>=c&&(this._scrollTop=c,this._offsetY=0,this._transformOrigin="50% top 0px")};
g._calculateOverlayPosition=function(){var a=this._getItemHeight(),b=this._getItemCount(),c=Math.min(b*a,256);a=b*a-c;b=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0);b+=Ioa(b,this.options,this.optionGroups);c/=2;this._scrollTop=this._calculateOverlayScroll(b,c,a);this._offsetY=this._calculateOverlayOffsetY(b,c,a);this._checkOverlayWithinViewport(a)};
g._getOriginBasedOnOption=function(){var a=this._getItemHeight();return"50% "+(Math.abs(this._offsetY)-(a-this._triggerRect.height)/2+a/2)+"px 0px"};g._getItemHeight=function(){return 3*this._triggerFontSize};g._getItemCount=function(){return this.options.length+this.optionGroups.length};bP.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(bP)))(b||bP)}}();
bP.\u0275cmp=od({type:bP,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(Ag(c,p6b,5),Ag(c,Hz,5),Ag(c,TMb,5));if(a&2){var d;yg(d=Bg())&&(b.customTrigger=d.first);yg(d=Bg())&&(b.options=d);yg(d=Bg())&&(b.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true","ngSkipHydration","",1,"mat-select"],hostVars:20,hostBindings:function(a,b){a&1&&L("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});
a&2&&(Nf("id",b.id)("tabindex",b.tabIndex)("aria-controls",b.panelOpen?b.id+"-panel":null)("aria-expanded",b.panelOpen)("aria-label",b.ariaLabel||null)("aria-required",b.required.toString())("aria-disabled",b.disabled.toString())("aria-invalid",b.errorState)("aria-activedescendant",b._getAriaActiveDescendant())("mat-id-collision",null),Xf("mat-select-disabled",b.disabled)("mat-select-invalid",b.errorState)("mat-select-required",b.required)("mat-select-empty",b.empty)("mat-select-multiple",b.multiple))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[lg([{provide:dA,useExisting:bP},{provide:SMb,useExisting:bP}]),Jf],ngContentSelectors:["mat-select-trigger","*"],decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",
4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder",
"mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(a,b){a&1&&(eg(x6b),D(0,"div",0,1),L("click",function(){return b.toggle()}),D(3,"div",2),P(4,QIa,2,1,"span",3),P(5,TIa,3,2,"span",4),F(),D(6,"div",5),G(7,"div",6),F()(),P(8,UIa,4,14,"ng-template",7),L("backdropClick",function(){return b.close()})("attach",
function(){return b._onAttached()})("detach",function(){return b.close()}));if(a&2){var c=N(1);Nf("aria-owns",b.panelOpen?b.id+"-panel":null);w(3);C("ngSwitch",b.empty);Nf("id",b._valueId);w(1);C("ngSwitchCase",!0);w(1);C("ngSwitchCase",!1);w(3);C("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.panelOpen)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayMinWidth",
b._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",b._offsetY)}},dependencies:[Cv,Fv,Gv,Hv,Ry,Qy],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],
encapsulation:2,data:{animation:[q6b,r6b]},changeDetection:0});var cP=function(){};cP.\u0275fac=function(a){return new (a||cP)};cP.\u0275mod=qd({type:cP});cP.\u0275inj=ad({providers:[v6b],imports:[Sv,Sy,Iz,Ty,Ey,kA,Iz,Ty]});var dP=function(){this.changes=new B.Subject;this.itemsPerPageLabel="Items per page:";this.nextPageLabel="Next page";this.previousPageLabel="Previous page";this.firstPageLabel="First page";this.lastPageLabel="Last page";this.getRangeLabel=function(a,b,c){if(0==c||0==b)return"0 of "+c;c=Math.max(c,0);a*=b;return a+1+" \u2013 "+(a<c?Math.min(a+b,c):a+b)+" of "+c}};dP.\u0275fac=function(a){return new (a||dP)};dP.\u0275prov=$c({token:dP,factory:dP.\u0275fac,providedIn:"root"});
var z6b={provide:dP,deps:[[new au,new bu,dP]],useFactory:function(a){return a||new dP}};var A6b=Th(moa(function(){})),eP=function(a,b,c){var d=A6b.call(this)||this;d._intl=a;d._changeDetectorRef=b;d._pageIndex=0;d._length=0;d._pageSizeOptions=[];d._hidePageSize=!1;d._showFirstLastButtons=!1;d.selectConfig={};d.page=new Yu;d._intlChanges=a.changes.subscribe(function(){return d._changeDetectorRef.markForCheck()});if(c){var e=c.pageSize,f=c.pageSizeOptions,h=c.hidePageSize;c=c.showFirstLastButtons;null!=e&&(d._pageSize=e);null!=f&&(d._pageSizeOptions=f);null!=h&&(d._hidePageSize=h);null!=
c&&(d._showFirstLastButtons=c)}return d};W(eP,A6b);g=eP.prototype;g.ngOnInit=function(){this._initialized=!0;this._updateDisplayedPageSizeOptions();this._markInitialized()};g.ngOnDestroy=function(){this._intlChanges.unsubscribe()};g.nextPage=function(){if(this.hasNextPage()){var a=this.pageIndex;this.pageIndex+=1;this._emitPageEvent(a)}};g.hasPreviousPage=function(){return 1<=this.pageIndex&&0!=this.pageSize};
g.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&0!=this.pageSize};g._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};g._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};g._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
g._updateDisplayedPageSizeOptions=function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,b){return a-b}),this._changeDetectorRef.markForCheck())};
g._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};
Qh.Object.defineProperties(eP.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(dh(a),0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=dh(a);this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(dh(a),0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return dh(b)});this._updateDisplayedPageSizeOptions()}},hidePageSize:{configurable:!0,enumerable:!0,get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=ah(a)}},showFirstLastButtons:{configurable:!0,enumerable:!0,get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=ah(a)}}});
eP.\u0275fac=function(){ee()};eP.\u0275dir=sd({type:eP,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[Jf]});var B6b=new Ad("MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS"),fP=function(a,b,c){a=eP.call(this,a,b,c)||this;c&&null!=c.formFieldAppearance&&(a._formFieldAppearance=c.formFieldAppearance);return a};W(fP,eP);fP.\u0275dir=eP.\u0275dir;fP.\u0275fac=function(a){return new (a||fP)(z(ZO),z(xv),z(B6b,8))};
fP.\u0275cmp=od({type:fP,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Jf],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",
3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition",
"disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value",
"disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition",
"disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),P(2,YIa,5,3,"div",2),D(3,"div",3)(4,"div",4),Q(5),F(),P(6,ZIa,3,5,"button",5),D(7,"button",6),L("click",function(){if(b.hasPreviousPage()){var c=b.pageIndex;--b.pageIndex;b._emitPageEvent(c)}}),Qd(),D(8,"svg",7),G(9,"path",8),F()(),Kd.currentNamespace=null,D(10,"button",9),L("click",function(){return b.nextPage()}),Qd(),D(11,"svg",7),G(12,"path",10),F()(),P(13,
$Ia,3,5,"button",11),F()()());a&2&&(w(2),C("ngIf",!b.hidePageSize),w(3),S(" ",b._intl.getRangeLabel(b.pageIndex,b.pageSize,b.length)," "),w(1),C("ngIf",b.showFirstLastButtons),w(1),C("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("matTooltipPosition","above")("disabled",b._previousButtonsDisabled()),Nf("aria-label",b._intl.previousPageLabel),w(3),C("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("matTooltipPosition","above")("disabled",
b._nextButtonsDisabled()),Nf("aria-label",b._intl.nextPageLabel),w(3),C("ngIf",b.showFirstLastButtons))},dependencies:[Dv,Ev,Ez,jA,bP,Hz,FB],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],
encapsulation:2,changeDetection:0});var gP=function(a){this.paths=a;this.children=[];this.onVisit=new Yu;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};gP.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};gP.\u0275fac=function(a){return new (a||gP)(z(xE))};
gP.\u0275cmp=od({type:gP,selectors:[["b-component-children-list"]],inputs:{children:"children"},outputs:{onVisit:"onVisit"},decls:3,vars:2,consts:[[3,"length","pageSize","pageSizeOptions","page",4,"ngIf"],[1,"component-children"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageSizeOptions","page"],[1,"keep-underline","keep-focus-ring",3,"onedevHovercardTrigger","href","click"],["card","onedevHovercard"],[3,"componentId"]],template:function(a,b){a&1&&(P(0,aJa,1,3,"mat-paginator",0),D(1,"ul",1),P(2,
bJa,6,4,"li",2),F());a&2&&(C("ngIf",b.children.length>b.pageSize),w(2),C("ngForOf",b.childrenOnPage))},dependencies:[Dv,Ev,PJ,UJ,YO,fP],encapsulation:2});var hP=function(){};hP.\u0275fac=function(a){return new (a||hP)};hP.\u0275mod=qd({type:hP});hP.\u0275inj=ad({imports:[Sv,Sy]});var iP=function(){};iP.\u0275fac=function(a){return new (a||iP)};iP.\u0275mod=qd({type:iP});iP.\u0275inj=ad({imports:[aD,RO,hP]});var jP=function(){};jP.\u0275fac=function(a){return new (a||jP)};jP.\u0275mod=qd({type:jP});jP.\u0275inj=ad({imports:[aD,iP]});var kP=function(){};kP.\u0275fac=function(a){return new (a||kP)};kP.\u0275mod=qd({type:kP});kP.\u0275inj=ad({providers:[z6b],imports:[Sv,SB,cP,FC,Ty]});var lP=function(){};lP.\u0275fac=function(a){return new (a||lP)};lP.\u0275mod=qd({type:lP});lP.\u0275inj=ad({imports:[aD,CK,jP,kP]});var mP=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new Yu;this.onClickCopyIssueShortLinks=new Yu;this.onClickCopyAsIssueSearch=new Yu};mP.\u0275fac=function(a){return new (a||mP)};
mP.\u0275cmp=od({type:mP,selectors:[["b-copy-issue-id-button"]],inputs:{shouldShowCopyIssueShortLinks:"shouldShowCopyIssueShortLinks",shortLinkPrefix:"shortLinkPrefix"},outputs:{onClickCopyIssueIds:"onClickCopyIssueIds",onClickCopyIssueShortLinks:"onClickCopyIssueShortLinks",onClickCopyAsIssueSearch:"onClickCopyAsIssueSearch"},decls:10,vars:2,consts:[["mat-button","","aria-label","Copy selected issue IDs",1,"gmat-button","medium","icon-only",3,"click"],["name","copy","size","small"],["mat-button",
"","aria-label","More copy issue ID options",1,"gmat-button","medium","compact",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["splitMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&(D(0,"b-button-group")(1,"button",0),L("click",function(){return b.onClickCopyIssueIds.emit()}),G(2,"b-icon",1),F(),D(3,"button",2),G(4,"b-icon",3),F(),D(5,"mat-menu",null,4),P(7,cJa,2,1,"button",5),D(8,"button",6),L("click",function(){return b.onClickCopyAsIssueSearch.emit()}),
Q(9," Copy as issue search "),F()()());if(a&2){var c=N(6);w(3);C("matMenuTriggerFor",c);w(4);C("ngIf",b.shouldShowCopyIssueShortLinks)}},dependencies:[Ev,AB,yB,zB,Ez,HC,bD],encapsulation:2,changeDetection:0});var C6b=function(a,b){this._document=b;var c=this._textarea=this._document.createElement("textarea"),d=c.style;d.position="fixed";d.top=d.opacity="0";d.left="-999em";c.setAttribute("aria-hidden","true");c.value=a;c.readOnly=!0;(this._document.fullscreenElement||this._document.body).appendChild(c)};C6b.prototype.copy=function(){var a=this._textarea,b=!1;try{if(a){var c=this._document.activeElement;a.select();a.setSelectionRange(0,a.value.length);b=this._document.execCommand("copy");c&&c.focus()}}catch(d){}return b};
C6b.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};var nP=function(a){this._document=a};nP.prototype.copy=function(a){a=new C6b(a,this._document);var b=a.copy();a.destroy();return b};nP.\u0275fac=function(a){return new (a||nP)(n(Oh))};nP.\u0275prov=$c({token:nP,factory:nP.\u0275fac,providedIn:"root"});new Ad("CDK_COPY_TO_CLIPBOARD_CONFIG");new Ad("xap-clipboard-snackbar-options");var oP=function(){};oP.\u0275fac=function(a){return new (a||oP)};oP.\u0275mod=qd({type:oP});oP.\u0275inj=ad({imports:[Sv,SB,GB,RF]});var pP=function(){};pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275mod=qd({type:pP});pP.\u0275inj=ad({imports:[aD,BB,SB,gD,hD,oP]});var qP=function(a,b,c,d,e){this.clipboard=a;this.analytics=c;this.butterBar=d;this.window=e;this.shortLinkPrefix=rRa(b)?"b/":"b-qa/"},sTa=function(a,b){a.clipboard.copy(b.join(", "));WF(a.butterBar,"Issue IDs copied.",2E3);a.analytics.trackEvent(xp.LIST_ISSUES,"copyIssueId","IDs")},tTa=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));WF(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);a.analytics.trackEvent(xp.LIST_ISSUES,"copyIssueId","b/ links")},
uTa=function(a,b){b=Sk({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+"/"+b);WF(a.butterBar,"Issue search link copied.",2E3);a.analytics.trackEvent(xp.LIST_ISSUES,"copyIssueId","Issue search link")};qP.\u0275fac=function(a){return new (a||qP)(n(nP),n(Us),n(zH),n(VF),n(qF))};qP.\u0275prov=$c({token:qP,factory:qP.\u0275fac,providedIn:"root"});var rP=function(a){this.el=a;this.minWidth=100;this.maxWidth=500;this.shadowInput=document.createElement("span");this.shadowInput.style.position="absolute";this.shadowInput.style.top="0px";this.shadowInput.style.left="0px";this.shadowInput.style.visibility="hidden";this.shadowInput.style.width="10px";this.shadowInput.style.whiteSpace="pre";this.shadowInput.style.overflow="hidden";this.shadowInput.style.padding="0";document.body.appendChild(this.shadowInput)};rP.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
rP.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};rP.prototype.resize=function(a){for(;this.shadowInput.firstChild;)this.shadowInput.removeChild(this.shadowInput.firstChild);this.shadowInput.appendChild(document.createTextNode(a));this.el.nativeElement.style.width=Math.min(Math.max(this.shadowInput.scrollWidth,this.minWidth),this.maxWidth)+"px"};rP.\u0275fac=function(a){return new (a||rP)(z(ae))};
rP.\u0275dir=sd({type:rP,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&L("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"}});var sP=function(){};sP.\u0275fac=function(a){return new (a||sP)};sP.\u0275mod=qd({type:sP});sP.\u0275inj=ad({});var tP=function(){YD.apply(this,arguments)};W(tP,YD);Qh.Object.defineProperties(tP.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});tP.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(tP)))(b||tP)}}();tP.\u0275dir=sd({type:tP,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},features:[Jf]});var uP=function(){};
uP.\u0275fac=function(a){return new (a||uP)};uP.\u0275mod=qd({type:uP});uP.\u0275inj=ad({imports:[aD,bE]});var vP=function(a){this.currentTracker=a;this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};Qh.Object.defineProperties(vP.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){a=is(this.currentTracker,a);this.componentPath="settings"===this.componentPathsLinkTo?xo(a,hua):xo(a)}}});vP.\u0275fac=function(a){return new (a||vP)(z(jG))};
vP.\u0275cmp=od({type:vP,selectors:[["b-component-breadcrumb"]],inputs:{componentPathsLinkTo:"componentPathsLinkTo",componentPathInfo:"componentPathInfo",isArchived:"isArchived",label:"label",openTab:"openTab"},decls:6,vars:3,consts:[["role","navigation","aria-labelledby","breadcrumb-label",1,"breadcrumb"],["id","breadcrumb-label"],[1,"breadcrumb-items"],["class","breadcrumb-item",4,"ngFor","ngForOf"],["class","breadcrumb-archived-indicator",4,"ngIf"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,
"onedevHovercardTrigger","routerLinkObj"],["card","onedevHovercard"],[3,"componentId"],[1,"breadcrumb-archived-indicator"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"p",1),Q(2),F(),D(3,"span",2),P(4,dJa,6,4,"span",3),P(5,eJa,2,0,"span",4),F()());a&2&&(w(2),S("",b.label,":"),w(2),C("ngForOf",b.componentPath),w(1),C("ngIf",b.isArchived))},dependencies:[Dv,Ev,PJ,UJ,YO,tP],encapsulation:2});var wP=function(){};wP.\u0275fac=function(a){return new (a||wP)};wP.\u0275mod=qd({type:wP});wP.\u0275inj=ad({imports:[aD,CK,jP,uP]});var yP=function(){this.warningChunks=[]};yP.prototype.ngOnInit=function(){var a=this.warningText,b=jJa(a,"EXTERNAL_PUBLIC")||jJa(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};yP.prototype.isText=function(a){return void 0!==a.text};yP.\u0275fac=function(a){return new (a||yP)};
yP.\u0275cmp=od({type:yP,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"accessLevel"]],template:function(a,b){a&1&&(D(0,"div"),P(1,hJa,3,2,"span",0),F());a&2&&(w(1),C("ngForOf",b.warningChunks))},dependencies:[Dv,Ev,XO],encapsulation:2});var iJa=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]);var zP=function(a,b,c){this.data=a;this.documentationLinks=b;this.dialogRef=c;this.acknowledged=!0;this.warning=this.header="";this.isAllowed=this.isExternalMove=!1;this.callbacks={allow:function(){},cancel:function(){}};this.learnMore=T1b(b);this.header=a.response.warningHeader;this.warning=a.response.warning;if(this.isExternalMove=a.response.isExternalMove)this.acknowledged=!1;this.isAllowed=a.response.isAllowed;this.callbacks=a.callbacks};
zP.prototype.allow=function(){var a;null==(a=this.dialogRef)||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow()};zP.prototype.cancel=function(){var a;null==(a=this.dialogRef)||a.close();this.callbacks.cancel()};zP.\u0275fac=function(a){return new (a||zP)(z(Tz),z(yL),z(Rz))};
zP.\u0275cmp=od({type:zP,selectors:[["b-component-move-warning"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"component-move-warning-text"],[3,"warningText"],["target","_blank"],[4,"ngIf"],["mat-button","","mat-dialog-close","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","cdkFocusInitial","","class","gmat-button",3,"disabled","click",4,"ngIf"],["gmat-checkbox","",3,"ngModel","ngModelChange"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button",
3,"disabled","click"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"div",1)(3,"div",2),G(4,"b-component-move-warning-content",3),F(),G(5,"br"),D(6,"a",4),Q(7,"Learn more"),F(),P(8,kJa,5,1,"div",5),F(),D(9,"mat-dialog-actions")(10,"button",6),L("click",function(){return b.cancel()}),Q(11," Cancel "),F(),P(12,lJa,2,1,"button",7),F());a&2&&(w(1),jg(b.header),w(3),C("warningText",b.warning),w(2),Nf("href",b.learnMore,re),w(2),C("ngIf",b.isExternalMove&&b.isAllowed),w(4),C("ngIf",b.isAllowed))},
dependencies:[Ev,hw,ow,Ez,PK,Vz,Wz,Xz,Yz,yP],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});var AP=function(){};AP.\u0275fac=function(a){return new (a||AP)};AP.\u0275mod=qd({type:AP});AP.\u0275inj=ad({imports:[aD,Dw,SB,SK,Zz,iP]});var BP=function(a,b,c){this.componentActions=a;this.errorHandler=b;this.cdr=c};BP.prototype.showChildren=function(a){var b=this;a.showChildren=!0;a.children?this.cdr.detectChanges():this.componentActions.getChildren(a.componentId,this.includeArchived).then(function(c){a.children=c;0===c.length&&(a.noChildren=!0);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var CP=function(a,b){a.selectedId&&D6b(a,a.selectedId);a.selectedId=b;if(a=E6b(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},DP=function(a){if(!a.selectedId||1>a.selectedId)return null;var b;return null!=(b=a.components.find(function(c){return c.componentId==a.selectedId}))?b:null},F6b=function(a){return!a.selectedId||1>a.selectedId?-1:a.components.findIndex(function(b){return b.componentId==a.selectedId})},D6b=function(a,b){b&&(a=E6b(a.selectedId))&&a.setAttribute("aria-selected",
"false")},E6b=function(a){return a?document.getElementById("component-"+a):null},G6b=function(a){for(a=a.target;;){if(!a)return!1;if("A"===a.tagName)return!0;a=a.parentNode}};var H6b={QA:124156,NIGHTLY:190923,PROD:190923};new Promise(function(){});var EP=function(a,b,c,d,e,f){Y.call(this);var h=this;this.componentApi=b;this.appEvents=e;this.activeSession=f;this.components=a.get("components-second-level-cache")||a.create("components-second-level-cache",{capacity:25});this.subscriptions.add(this.appEvents.componentModified.subscribe(function(k){h.components.removeAll();d.invalidate(k)}));this.componentGetter=c.adapt(function(k){var q=Ba(k);Ja(q);return h.componentApi.query({id:q}).then(function(u){var x={};u=l(u);for(var y=u.next();!y.done;y=
u.next())(y=y.value)&&(x[y.componentId]=y);return k.map(function(E){return x[E]||null})})})};W(EP,Y);EP.\u0275dir=Y.\u0275dir;g=EP.prototype;g.get=function(a){var b=this.components.get(String(a));if(null!=b)return b;b=this.componentGetter.get(a).then(function(c){return null!=c?c:Promise.reject({data:{message:"Could not load details for component "+a}})});return this.components.put(String(a),b)};
g.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
g.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.getChildren=function(a,b,c){return this.componentApi.getChildren(a,void 0===b?!1:b,c)};g.getDescendants=function(a){return this.componentApi.getDescendants(a)};
g.getUncached=function(a,b){b=void 0===b?!1:b;this.components.remove(String(a));var c={};b&&(c.checkEditAccess=!0);return this.componentApi.fetchComponent(a,c)};g.search=function(a,b){var c={query:a};if(void 0===b?0:b)c.includearchived=!0;return I6b(this,a,this.componentApi.query(c))};
var I6b=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=H6b[a.activeSession.getEnvironmentType()];if(d)return yo({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=l(e.rest);for(var h=e.next();!h.done;h=e.next())h=h.value,h.componentId!==d&&f.push(h);return f})}return c};
EP.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(String(f))});Ja(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var h={};f=l(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(h[k.componentId]=k);return h});c=l(c);for(var d=c.next(),e={};!d.done;e={id$jscomp$298:e.id$jscomp$298},d=c.next())e.id$jscomp$298=d.value,this.components.put(String(e.id$jscomp$298),a.then(function(f){return function(h){return h[f.id$jscomp$298]?h[f.id$jscomp$298]:
Promise.reject({data:{message:"Could not load details for component "+f.id$jscomp$298}})}}(e)))}};EP.\u0275fac=function(a){return new (a||EP)(n(KE),n(tYb),n(sD),n(OG),n(DF),n(Us))};EP.\u0275prov=$c({token:EP,factory:EP.\u0275fac,providedIn:"root"});var J6b=Xs(["https://www.gstatic.com/buganizer/gfx/","/",""]),FP=Xs(["https://www.gstatic.com/buganizer/img/v2/",""]),K6b=mh(J6b,"2023-07-13-7aec9c31","all-icons.svg"),L6b=mh(FP,"empty_blocker_light.png"),M6b=mh(FP,"empty_blocker_dark.png"),N6b=mh(FP,"empty_child_light.png"),O6b=mh(FP,"empty_child_dark.png"),P6b=mh(FP,"robot_sleeping.png"),Q6b=mh(FP,"tea_light.png"),R6b=mh(FP,"tea_dark.png"),S6b=mh(FP,"space_empty_state.png");var GP=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.currentTracker=c;this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
GP.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=kG(this.currentTracker,"",this.tracker);this.name=this.getName();this.extendedName=this.isGlobalBuganizer?this.name:"the "+this.name+" Tracker";if(this.isGlobalBuganizer)a="https://www.gstatic.com/buganizer/img/v3/logo_light.svg";else{var b,c;if(null==(b=this.tracker)?0:null==(c=b.branding)?0:c.logoUrl){var d,e,f;a=null!=(f=null==(d=this.tracker)?void 0:null==(e=d.branding)?void 0:e.logoUrl)?f:""}else a="https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}this.logoLight=
a;if(this.isGlobalBuganizer)d="https://www.gstatic.com/buganizer/img/v3/logo_dark.svg";else{var h;d=null!=(h=this.logoLight)?h:""}this.logoDark=d}};GP.prototype.getName=function(){if(this.isGlobalBuganizer)return this.activeSession.getAppName();var a,b;return null!=(b=null==(a=this.tracker)?void 0:a.name)?b:""};GP.\u0275fac=function(a){return new (a||GP)(z(Us),z(yL),z(jG))};
GP.\u0275cmp=od({type:GP,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},features:[Fd],decls:1,vars:1,consts:[[4,"ngIf"],[1,"chippy","rounded",3,"onedevHovercardTrigger","onedevHovercardActive"],["alt","",1,"logo","light-only",3,"src"],["alt","",1,"logo","dark-only",3,"src"],[1,"name"],["card","onedevHovercard"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],[1,"flex-kids-y",
"padded-s-top","actions"],["mat-button","","target","_blank",1,"gmat-button","primary",3,"href"],["mat-button","","class","gmat-button primary","target","_blank",3,"href",4,"ngIf"]],template:function(a,b){a&1&&P(0,oJa,17,12,"ng-container",0);a&2&&C("ngIf",b.tracker||b.isGlobalBuganizer)},dependencies:[Ev,PJ,UJ,Fz],styles:[".dark-mode   [_nghost-%COMP%]    , .light-mode   [_nghost-%COMP%]    , :root   [_nghost-%COMP%]    {--tracker-chip-bg:#d5e2fa}.dark-mode   [_nghost-%COMP%]    {--tracker-chip-bg:#283143}.chippy[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);margin-right:8px;background:var(--tracker-chip-bg);display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding-right:10px;vertical-align:middle;border:0;box-shadow:none}.chippy[_ngcontent-%COMP%]:focus{outline:1px solid var(--primary)}.chippy.xs[_ngcontent-%COMP%]{margin-right:4px}.chippy.xs[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:14px;height:14px}.logo[_ngcontent-%COMP%]{margin-right:4px;width:16px;height:16px}.onedev-hovercard-body[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.onedev-hovercard-body[_ngcontent-%COMP%]   .hovertext[_ngcontent-%COMP%]{margin-bottom:1em}.onedev-hovercard-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.onedev-hovercard-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"],
changeDetection:0});var HP=function(a,b){var c=this;this.currentTracker=a;this.trackerFridge=b;this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new B.BehaviorSubject("");this.tracker$=this.trackerId$.pipe(Xe(function(d){return xn(d)?(0,B.of)(void 0):c.trackerFridge.watch(d)}));this.isCurrentTracker$=(0,B.combineLatest)([this.currentTracker.trackerId$,this.trackerId$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return xn(d)?xn(e):d===e}))};
HP.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId||"")};Qh.Object.defineProperties(HP.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return xn(this.trackerId)}}});HP.\u0275fac=function(a){return new (a||HP)(z(jG),z(iG))};
HP.\u0275cmp=od({type:HP,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},features:[Fd],decls:2,vars:3,consts:[[3,"tracker","compactMode","showHovercard","isGlobalBuganizer",4,"ngIf"],[3,"tracker","compactMode","showHovercard","isGlobalBuganizer"]],template:function(a,b){a&1&&(P(0,pJa,2,6,"b-tracker-chip",0),T(1,"async"));a&2&&C("ngIf",!1===V(1,1,b.isCurrentTracker$))},dependencies:[Ev,GP,Kv],encapsulation:2,changeDetection:0});var sJa=function(a){return{q:a}},IP=function(a,b,c,d){BP.call(this,a,c,d);this.paths=b;this.includeArchived=!1;this.childClosed=new Yu;this.selectedId=null};W(IP,BP);IP.prototype.ngOnInit=function(){};IP.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};IP.prototype.ngOnChanges=function(a){a.components&&T6b(this)};IP.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;CP(this,a);this.rootController.selectionChanged(this,a)};
var T6b=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){a.selectNext()})};g=IP.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=F6b(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(D6b(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(CP(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else CP(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=F6b(this);0==a?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(CP(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=DP(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
g.showChildrenForSelectedId=function(){var a=DP(this);a&&this.showChildren(a)};g.setSelected=function(a,b){G6b(b)||(CP(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=DP(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};IP.\u0275fac=function(a){return new (a||IP)(z(EP),z(xE),z(XF),z(yD,2))};
IP.\u0275cmp=od({type:IP,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},features:[lg([yD]),Jf,Fd],decls:2,vars:1,consts:[[1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click",4,"ngFor","ngForOf"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click"],[1,"component-row"],[1,"selected-indicator"],
[1,"component-tree-toggle"],["matTooltip","Show child components",3,"click",4,"ngIf"],["matTooltip","Hide child components",3,"click",4,"ngIf"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["class","gmat-button","mat-raised-button","",3,"href",4,"ngIf"],["class","child-component-list","role","group","aria-expanded","true",4,"ngIf"],["matTooltip","Show child components",3,"click"],
["svgIcon","arrow-dropdown",2,"transform","rotate(-90deg)"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],[3,"href"],["mat-raised-button","",1,"gmat-button",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["class","component-no-children",4,"ngIf"],["class","bv2-view-loading",4,"ngIf"],[3,"components","parentComponent","rootController","includeArchived","childClosed",4,"ngIf"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components",
"parentComponent","rootController","includeArchived","childClosed"]],template:function(a,b){a&1&&(D(0,"ol",0),P(1,AJa,19,12,"li",1),F());a&2&&(w(1),C("ngForOf",b.components))},dependencies:[Dv,Ev,qA,FB,Fz,MJ,XO,HP,IP],encapsulation:2});var DJa=function(a){return{q:a}},JP=function(a,b,c,d,e,f){BP.call(this,a,d,f);this.paths=b;this.selectedId=null;this.includeArchived=!1;this.init=new Yu;this.subscriptions=new B.Subscription;this.destroyed$=new B.ReplaySubject(1);this.scrollArea=e.nativeElement.parentElement;this.registerKeys(c)};W(JP,BP);g=JP.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;(0,B.timer)(0).pipe(Af(this.destroyed$)).subscribe(function(){U6b(a)&&!a.selectedId&&CP(a,a.components[0].componentId)});this.init.emit(this)};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};g.ngOnChanges=function(a){a.components&&V6b(this)};g.onSubtreeChildClosed=function(a){var b=this;CP(this,a);this.focusedController=void 0;(0,B.timer)(0).pipe(Af(this.destroyed$)).subscribe(function(){KP(b)})};
g.fireSelectionEvent=function(a){var b=E6b(a);b&&b.click();KP(this,a)};var V6b=function(a){(0,B.timer)(0).pipe(Af(a.destroyed$)).subscribe(function(){U6b(a)&&!a.selectedId&&CP(a,a.components[0].componentId)})};g=JP.prototype;g.selectionChanged=function(a,b){b&&KP(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&D6b(b,b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){G6b(b)||(CP(this,a),this.selectionChanged(null),KP(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(a){var b=this;this.subscriptions.add(rE(a,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next component",onPress:function(){b.selectNext()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous component",onPress:function(){b.selectPrevious()}},{keys:["RIGHT"],displayAs:"Right",description:"View the components children",onPress:function(){b.showChildrenForSelectedId()}},{keys:["LEFT"],displayAs:"Left",description:"Close the components children",
onPress:function(){b.closeSubtree()}},{keys:["SPACE","ENTER"],displayAs:"Space / Enter",description:"Toggle component children display",onPress:function(){b.toggleChildrenForSelectedId()}}]}))};g.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=DP(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=DP(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(DP(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=F6b(this);U6b(this)&&1<=a&&(CP(this,this.components[a-1].componentId),KP(this))}};
g.selectNext=function(){if(U6b(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=F6b(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(D6b(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(CP(this,this.components[a+1].componentId),KP(this))}else CP(this,this.components[0].componentId),KP(this)};
var KP=function(a,b){var c=W6b(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=E6b(b||a.selectedId)){b=W6b(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},W6b=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},U6b=function(a){return!!(a.components&&0<a.components.length)};JP.\u0275fac=function(a){return new (a||JP)(z(EP),z(xE),z(qE),z(XF),z(ae),z(yD,2))};
JP.\u0275cmp=od({type:JP,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},features:[lg([yD]),Jf,Fd],decls:2,vars:1,consts:[["role","tree",1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click",4,"ngFor","ngForOf"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click"],[1,"component-row"],[1,"selected-indicator"],[1,"component-tree-toggle"],["matTooltip","Show child components",
3,"click",4,"ngIf"],["matTooltip","Hide child components",3,"click",4,"ngIf"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["class","gmat-button","mat-raised-button","",3,"href",4,"ngIf"],["class","child-component-list","role","group","aria-expanded","true",4,"ngIf"],["matTooltip","Show child components",3,"click"],["svgIcon","arrow-dropdown",2,"transform","rotate(-90deg)"],["matTooltip",
"Hide child components",3,"click"],["svgIcon","arrow-dropdown"],[3,"href"],["mat-raised-button","",1,"gmat-button",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["class","component-no-children",4,"ngIf"],["class","bv2-view-loading",4,"ngIf"],[3,"components","parentComponent","rootController","includeArchived","childClosed",4,"ngIf"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived","childClosed"]],template:function(a,
b){a&1&&(D(0,"ol",0),P(1,LJa,19,12,"li",1),F());a&2&&(w(1),C("ngForOf",b.components))},dependencies:[Dv,Ev,qA,FB,Fz,MJ,XO,HP,IP],encapsulation:2});var LP=function(){};LP.\u0275fac=function(a){return new (a||LP)};LP.\u0275mod=qd({type:LP});LP.\u0275inj=ad({imports:[aD,CK,SB]});var MP=function(){};MP.\u0275fac=function(a){return new (a||MP)};MP.\u0275mod=qd({type:MP});MP.\u0275inj=ad({imports:[aD,FC,SB,AK,iP,LP]});new Ad("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,hideIcon:!1}}});Vh(Rh(Sh(Th(function(a){this._elementRef=a}))));var X6b=new Ad("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}});var Y6b=0,Z6b=Vh(Rh(Sh(Th(function(a){this._elementRef=a})))),NP=function(a,b,c,d,e,f,h){a=Z6b.call(this,a)||this;a._focusMonitor=b;a._changeDetectorRef=c;a.defaults=e;a._onChange=function(){};a._onTouched=function(){};a._required=!1;a._checked=!1;a.name=null;a.labelPosition="after";a.ariaLabel=null;a.ariaLabelledby=null;a._hideIcon=!1;a.change=new Yu;a.toggleChange=new Yu;a.tabIndex=parseInt(d)||0;a.color=a.defaultColor=e.color||"accent";a._noopAnimations="NoopAnimations"===f;a.id=a._uniqueId=h+
++Y6b;var k;a._hideIcon=null!=(k=e.hideIcon)?k:!1;return a};W(NP,Z6b);g=NP.prototype;g.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){"keyboard"===b||"program"===b?(a._focused=!0,a._changeDetectorRef.markForCheck()):b||Promise.resolve().then(function(){a._focused=!1;a._onTouched();a._changeDetectorRef.markForCheck()})})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};
g.writeValue=function(a){this.checked=!!a};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};g.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};g._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(this._createChangeEvent(this.checked))};
Qh.Object.defineProperties(NP.prototype,{required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=ah(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=ah(a);this._changeDetectorRef.markForCheck()}},hideIcon:{configurable:!0,enumerable:!0,get:function(){return this._hideIcon},set:function(a){this._hideIcon=ah(a)}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+
"-input"}}});NP.\u0275fac=function(){ee()};NP.\u0275dir=sd({type:NP,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[Jf]});var OP=function(){};OP.\u0275fac=function(a){return new (a||OP)};OP.\u0275mod=qd({type:OP});OP.\u0275inj=ad({});var $6b=["input"],a7b=function(a){return{enterDuration:a}},b7b={provide:Uv,useExisting:fd(function(){return PP}),multi:!0},c7b=function(a,b){this.source=a;this.checked=b},PP=function(a,b,c,d,e,f){return NP.call(this,a,b,c,d,e,f,"mat-slide-toggle-")||this};W(PP,NP);PP.\u0275dir=NP.\u0275dir;g=PP.prototype;g._createChangeEvent=function(a){return new c7b(this,a)};
g._onChangeEvent=function(a){a.stopPropagation();this.toggleChange.emit();this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())};g._onInputClick=function(a){a.stopPropagation()};g.focus=function(a,b){b?Pw(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
PP.\u0275fac=function(a){return new (a||PP)(z(ae),z(Ow),z(xv),Ud("tabindex"),z(X6b),z(iu,8))};
PP.\u0275cmp=od({type:PP,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&zg($6b,5);if(a&2){var c;yg(c=Bg())&&(b._inputElement=c.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:14,hostBindings:function(a,b){a&2&&(cg("id",b.id),Nf("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null)("mat-id-collision",null),Xf("mat-checked",b.checked)("mat-disabled",b.disabled)("mat-slide-toggle-label-before","before"==b.labelPosition)("_mat-animation-noopable",b._noopAnimations))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[lg([b7b]),Jf],ngContentSelectors:["*"],decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple",
"",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(a,b){a&1&&(eg(),D(0,"label",0,1)(2,"span",2)(3,"input",3,4),L("change",function(e){return b._onChangeEvent(e)})("click",function(e){return b._onInputClick(e)}),F(),D(5,"span",
5),G(6,"span",6),D(7,"span",7),G(8,"span",8),F()()(),D(9,"span",9,10),L("cdkObserveContent",function(){return b._onLabelTextChange()}),D(11,"span",11),Q(12,"\u00a0"),F(),fg(13),F()());if(a&2){var c=N(1),d=N(10);Nf("for",b.inputId);w(2);Xf("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim());w(1);C("id",b.inputId)("required",b.required)("tabIndex",b.tabIndex)("checked",b.checked)("disabled",b.disabled);Nf("name",b.name)("aria-checked",b.checked)("aria-label",b.ariaLabel)("aria-labelledby",
b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);w(4);C("matRippleTrigger",c)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",og(18,a7b,b._noopAnimations?0:150))}},dependencies:[cz,Xx],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}\n'],
encapsulation:2,changeDetection:0});var QP=function(){};QP.\u0275fac=function(a){return new (a||QP)};QP.\u0275mod=qd({type:QP});QP.\u0275inj=ad({imports:[OP,ez,Ty,Yx,OP,Ty]});var d7b=0,RP=function(){this.id="b-slide-toggle-"+ ++d7b;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new Yu};RP.\u0275fac=function(a){return new (a||RP)};
RP.\u0275cmp=od({type:RP,selectors:[["b-slide-toggle"]],hostAttrs:[1,"vertical-centered"],inputs:{id:"id",label:"label",ariaLabel:["aria-label","ariaLabel"],labelPosition:"labelPosition",model:"model",tooltip:"tooltip",disabled:"disabled"},outputs:{modelChange:"modelChange"},decls:2,vars:7,consts:[[3,"id","disabled","checked","aria-label","matTooltip","labelPosition","change"]],template:function(a,b){a&1&&(D(0,"mat-slide-toggle",0),L("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
Q(1),F());if(a&2){var c;C("id",b.id)("disabled",b.disabled)("checked",b.model)("aria-label",b.ariaLabel||b.label)("matTooltip",null!==(c=b.tooltip)&&void 0!==c?c:"")("labelPosition",b.label?b.labelPosition:"after");w(1);jg(b.label)}},dependencies:[PP,FB],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var SP=function(){};SP.\u0275fac=function(a){return new (a||SP)};SP.\u0275mod=qd({type:SP});SP.\u0275inj=ad({imports:[QP,FC]});var e7b=new RegExp("ALIAS:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");var TP=function(a){this.activeSession=a;this.createIframe=dGb(function(){var b=document.createElement("iframe");b.id="first_party_auth_helper";b.setAttribute("aria-hidden","true");b.setAttribute("style","width:1px;height:1px;position:absolute;top:-100px;display:none;");document.body.appendChild(b);return b})},f7b=function(a){var b,c;Ne(function(d){if(1==d.nextAddress){if(a.activeSession.isAnonymous()||!a.activeSession.getPassiveLoginIframeUrl())return d.return();Oe(d,2);b=a.createIframe();return d.yield(new Promise(function(e,
f){var h=function(){try{var q,u,x;if(null==(q=b.contentWindow)?0:null==(u=q.location)?0:null==(x=u.href)?0:x.includes("/action/yes"))b.removeEventListener("load",h),clearTimeout(k),e()}catch(y){}},k=setTimeout(function(){b.removeEventListener("load",h);f(Error("sd"))},5E3);b.addEventListener("load",h);rpa(b,a.activeSession.getPassiveLoginIframeUrl())}),4)}if(2!=d.nextAddress)return $s(d,0);c=Re(d);console.log("first party auth passive login "+c);Se(d)})};TP.\u0275fac=function(a){return new (a||TP)(n(Us))};
TP.\u0275prov=$c({token:TP,factory:TP.\u0275fac,providedIn:"root"});var UP=function(a){this.internalArray_=m(a)};W(UP,X);UP.prototype.getSocialApplication=function(){return Vi(this,3,0)};UP.prototype.getSocialApplicationOrUndefined=function(){return Xr(this,3)};UP.prototype.getAffinityType=function(){return Hi(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};UP.prototype.setAffinityType=function(a){return qj(this,12,a)};var VP=function(a){this.internalArray_=m(a)};W(VP,X);VP.prototype.getExperimentIdsList=function(){return ji(this,4)};VP.prototype.setExperimentIdsList=function(a){return ac(this,4,a,tb)};VP.prototype.getExperimentIds=function(){return vt(this,4)};VP.prototype.setExperimentIds=function(a){dc(this,4,a,tb(void 0),ji)};VP.repeatedFields_=[4];var g7b=function(a){this.internalArray_=m(a)};W(g7b,X);g=g7b.prototype;g.getClientInfo=function(){return Fi(this,UP,1)};g.getMutableClientInfo=function(){return zFb(this,UP,1)};g.setClientInfo=function(a){oj(this,UP,1,a)};g.getExperiments=function(){return Fi(this,VP,2)};g.setExperiments=function(a){oj(this,VP,2,a)};g.hasExperiments=function(){return Zi(this,VP,2)};var h7b=sc(g7b);var i7b;var j7b=function(a){this.internalArray_=m(a)};W(j7b,X);g=j7b.prototype;g.getDelegatorId=function(){return Hi(this,2)};g.getEnvType=function(){return Vi(this,5,0)};g.getEnvType_legacyNullable=function(){return Mr(this,5)};g.setEnvType=function(a){rj(this,5,a)};g.getCacheSize=function(){return hi(this,7)};g.setCacheSize=function(a){nj(this,7,a)};g.hasCacheSize=function(){return Si(this,7)};var PJa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,NJa=/([#].*?&|[#])authuser=([^&#]*)\b/,OJa=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;var WP=function(){this.config_=Mb(i7b||(i7b=h7b('[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",740,"MINIMAL_DOMAIN","BUGANIZER",null,null,null,null,true,true],[]]')));this.userInfo_=new j7b;this.onAuthError_=this.gapiClientThenable_=null};WP.prototype.getClientInfo=function(){return this.config_.getClientInfo()};WP.prototype.getExperiments=function(){return this.config_.getExperiments()};WP.prototype.getUserInfo=function(){return this.userInfo_};
var k7b=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=UJa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_};WP.prototype.getAuthErrorHandler=function(){return this.onAuthError_};WP.prototype.setAuthErrorHandler=function(a){this.onAuthError_=a};var l7b=function(){};var XP=[];XP.push=function(){throw Error("td");};var YP={cancel:function(){},isPending:function(){return!1}};var ZP=function(a){this.response_=a||function(){};this.timer_=Mp(this.onTimer_,0,this);this.addressBookId_=""};g=ZP.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){Np(this.timer_);this.timer_=null};g.isPending=function(){return!!this.timer_};g.onTimer_=function(){this.timer_=null;this.response_()};g.setQuery=function(a){this.query_=a};g.getQuery=function(){return this.query_};var m7b=new Map([["personal",2],["domain",4],["pcab",3]]);var Lo=function(a){this.internalArray_=m(a)};W(Lo,X);g=Lo.prototype;g.getEventType=function(){return Vi(this,1,0)};g.setEventType=function(a){return rj(this,1,a)};g.getApiType=function(){return Vi(this,2,0)};g.setApiType=function(a){return rj(this,2,a)};g.getCacheStatus=function(){return Vi(this,3,0)};g.setCacheStatus=function(a){return rj(this,3,a)};g.getAddressBook=function(){return Vi(this,4,0)};g.setAddressBook=function(a){return rj(this,4,a)};g.getRpcType=function(){return Vi(this,5,0)};
g.setRpcType=function(a){return rj(this,5,a)};g.getLookupType=function(){return Vi(this,6,0)};g.setLookupType=function(a){return rj(this,6,a)};g.getToken=function(){return Hi(this,7,"")};g.setToken=function(a){return qj(this,7,a)};var $P=function(a){this.internalArray_=m(a)};W($P,X);$P.prototype.setDevice=function(a){return rj(this,1,a)};$P.prototype.getApplication=function(){return Vi(this,2,0)};$P.prototype.setApplication=function(a){return rj(this,2,a)};$P.prototype.getApplicationOrUndefined=function(){return Xr(this,2)};var aQ=function(a){this.internalArray_=m(a)};W(aQ,X);g=aQ.prototype;g.setEventSource=function(a){rj(this,2,a)};g.getEventSourceOrUndefined=function(){return Xr(this,2)};g.getSocialClient=function(){return Fi(this,$P,3)};g.setSocialClient=function(a){return oj(this,$P,3,a)};g.setVersionName=function(a){return qj(this,5,a)};g.getBaselineCl=function(){return Wm(this,7)};g.setBaselineCl=function(a){return xj(this,7,a)};g.hasBaselineCl=function(){return cj(this,7)};
g.getBaselineClOrUndefined=function(){return zt(this,7)};g.setClientAgent=function(a){return rj(this,9,a)};g.getClientAgentOrUndefined=function(){return Xr(this,9)};g.getPeoplekitEntryPoint=function(){return Mr(this,11)};g.setPeoplekitEntryPoint=function(a){return rj(this,11,a)};g.getPeoplekitEntryPointOrUndefined=function(){return Xr(this,11)};g.setEnvironment=function(a){return rj(this,13,a)};g.getEnvironmentOrUndefined=function(){return Xr(this,13)};aQ.repeatedFields_=[6];var n7b=function(a){this.internalArray_=m(a)};W(n7b,X);g=n7b.prototype;g.getApiType=function(){return Vi(this,1,0)};g.setApiType=function(a){return rj(this,1,a)};g.getItemCount=function(){return hi(this,2)};g.setItemCount=function(a){return nj(this,2,a)};g.hasItemCount=function(){return Si(this,2)};var o7b=function(a){this.internalArray_=m(a)};W(o7b,X);g=o7b.prototype;g.getApiType=function(){return Vi(this,1,0)};g.setApiType=function(a){return rj(this,1,a)};g.getItemCount=function(){return hi(this,2)};g.setItemCount=function(a){return nj(this,2,a)};g.hasItemCount=function(){return Si(this,2)};g.getStatus=function(){return Vi(this,4,2)};g.setStatus=function(a){return rj(this,4,a)};g.hasStatus=function(){return Ti(this,4)};g.setTotalUsec=function(a){return xj(this,5,a)};
g.setBlockedUsec=function(a){return xj(this,6,a)};g.setNetworkUsec=function(a){xj(this,7,a)};g.getCacheStatus=function(){return Vi(this,8,0)};g.setCacheStatus=function(a){return rj(this,8,a)};g.getAddressBook=function(){return Vi(this,9,0)};g.setAddressBook=function(a){return rj(this,9,a)};var bQ=function(a){this.internalArray_=m(a)};W(bQ,X);bQ.prototype.getStatus=function(){return Vi(this,1,2)};bQ.prototype.setStatus=function(a){return rj(this,1,a)};bQ.prototype.hasStatus=function(){return Ti(this,1)};bQ.prototype.setTotalUsec=function(a){return xj(this,2,a)};var cQ=function(a){this.internalArray_=m(a)};W(cQ,X);cQ.prototype.getRpcType=function(){return Vi(this,1,0)};cQ.prototype.setRpcType=function(a){return rj(this,1,a)};cQ.prototype.getLookupType=function(){return Vi(this,2,0)};cQ.prototype.setLookupType=function(a){return rj(this,2,a)};var p7b=function(a){this.internalArray_=m(a)};W(p7b,X);g=p7b.prototype;g.getRpcType=function(){return Vi(this,1,0)};g.setRpcType=function(a){return rj(this,1,a)};g.getLookupType=function(){return Vi(this,2,0)};g.setLookupType=function(a){return rj(this,2,a)};g.getStatus=function(){return Vi(this,3,2)};g.setStatus=function(a){return rj(this,3,a)};g.hasStatus=function(){return Ti(this,3)};g.setTotalUsec=function(a){return xj(this,4,a)};g.setBlockedUsec=function(a){return xj(this,5,a)};
g.setNetworkUsec=function(a){xj(this,6,a)};var dQ=function(a){this.internalArray_=m(a)};W(dQ,X);g=dQ.prototype;g.getEnvType=function(){return Vi(this,1,0)};g.getEnvType_legacyNullable=function(){return Mr(this,1)};g.setEnvType=function(a){rj(this,1,a)};g.getCacheSize=function(){return hi(this,2)};g.setCacheSize=function(a){nj(this,2,a)};g.hasCacheSize=function(){return Si(this,2)};var eQ=function(a){this.internalArray_=m(a)};W(eQ,X);g=eQ.prototype;g.getClientInterface=function(){return Fi(this,aQ,1)};g.setClientInterface=function(a){return oj(this,aQ,1,a)};g.getSource=function(){return Vi(this,2,0)};g.setSource=function(a){return rj(this,2,a)};g.hasSource=function(){return Ti(this,2)};g.getSourceOrUndefined=function(){return Xr(this,2)};g.getEventType=function(){return Vi(this,3,0)};g.getEventType_legacyNullable=function(){return Mr(this,3)};
g.setEventType=function(a){return rj(this,3,a)};g.setRpcRequest=function(a){return Ll(this,5,fQ,a)};g.setRpcResponse=function(a){return Ll(this,6,fQ,a)};g.setApiCall=function(a){return Ll(this,7,fQ,a)};g.setApiResult=function(a){return Ll(this,8,fQ,a)};g.getUserInfo=function(){return Fi(this,dQ,9)};g.setUserInfo=function(a){return oj(this,dQ,9,a)};g.hasUserInfo=function(){return Zi(this,dQ,9)};var fQ=[4,5,6,7,8];var q7b=new Map([[200,0],[400,3],[401,16],[403,7],[404,5],[409,10],[416,11],[429,8],[499,1],[-1,1],[504,4],[501,12],[503,14]]),r7b=new Map([[0,0],[1,11],[2,1],[3,3],[4,10],[5,8],[6,7],[7,2],[16,2],[8,6],[9,7],[10,11],[11,9],[12,5],[13,9],[14,4],[15,6]]),s7b=new Map([[0,0],[11,1],[1,2],[3,3],[10,4],[8,5],[2,16],[6,8],[7,9],[5,12],[9,13],[4,14]]),t7b=function(a){return r7b.has(a)?r7b.get(a):1},u7b=function(a){return s7b.has(a)?s7b.get(a):2};var v7b=function(a){this.request_=a;this.errorCode_=0},w7b=function(a,b){b=new v7b(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=v7b.prototype;g.hasChanges=function(){return this.mutateResponse_&&this.mutateResponse_.getOperation()?this.mutateResponse_.getOperation().hasChanges():!1};g.getError=function(){return this.errorCode_};g.getErrorCode=function(){return this.errorCode_};g.getQuery=function(){return this.request_.getQuery()};g.getConfiguration=function(){return this.queryResponse_.getConfiguration()};
g.getUserData=function(){return this.queryResponse_?this.queryResponse_.getUserData():null};var gQ=function(a){this.map_=new GE;this.size=0;a&&this.addAll(a)},x7b=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+Ia(a):b.charAt(0)+a};g=gQ.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(x7b(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=hC(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.setSizeInternal_(this.map_.size)};g.removeAll=function(a){a=hC(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.setSizeInternal_(this.map_.size)};
g.delete=function(a){a=this.map_.remove(x7b(a));this.setSizeInternal_(this.map_.size);return a};g.remove=function(a){return this.delete(a)};g.clear=function(){this.map_.clear();this.setSizeInternal_(0)};g.isEmpty=function(){return 0===this.map_.size};g.has=function(a){return this.map_.containsKey(x7b(a))};g.contains=function(a){return this.map_.containsKey(x7b(a))};g.intersection=function(a){var b=new gQ;a=hC(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};
g.getValues=function(){return this.map_.getValues()};g.values=function(){return this.map_.values()};g.clone=function(){return new gQ(this)};g.equals=function(a){return this.getCount()==GSb(a)&&y7b(this,a)};
var y7b=function(a,b){var c=GSb(b);if(a.getCount()>c)return!1;!(b instanceof gQ)&&5<c&&(b=new gQ(b));return JSb(a,function(d){var e=b;if(e.contains&&"function"==typeof e.contains)d=e.contains(d);else if(e.containsValue&&"function"==typeof e.containsValue)d=e.containsValue(d);else if(Ca(e)||"string"===typeof e)d=va(e,d);else a:{for(var f in e)if(e[f]==d){d=!0;break a}d=!1}return d})};gQ.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};gQ.prototype[Symbol.iterator]=function(){return this.values()};
gQ.prototype.setSizeInternal_=function(a){this.size=a};var hQ=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new gQ(c);this.extraFields_=[]};hQ.prototype.toString=function(){var a=this.name_?"g"+this.name_:this.fields_.join(",");this.name_&&this.extraFields_.length&&(a+=","+this.extraFields_.join(","));return a};var z7b=function(a){a.fieldSet_||(a.fieldSet_=new gQ(a.fields_));return a.fieldSet_};
hQ.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new gQ);if(this.doesntContain_.has(a))return!1;var b=z7b(this),c=z7b(a);if(JSb(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var A7b=new hQ(["6","12"],"1"),B7b=new hQ("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[A7b]);new hQ("6 12 16 17 18 1a".split(" "),"3",[A7b]);
new hQ("2 4 2a 5 6 9 b 1c d e f 11 12 29 13 14 15 1d 22 16 17 19 28 1e 1b".split(" "),"2",[A7b,B7b]);new hQ([]);var C7b={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};var D7b=function(a,b,c){yA.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};W(D7b,yA);g=D7b.prototype;g.getGroup=function(){return this.group};g.setGroup=function(a){this.group=a};g.isSuccess=function(){return this.getState().isSuccess()};g.setSuccess=function(a){this.getState().setSuccess(a)};g.getMaxNumRetries=function(){this.getState().getMaxNumRetries()};g.setMaxNumRetries=function(a){this.getState().setMaxNumRetries(a)};g.reset=function(){this.getState().reset()};
g.getNumTriesLeft=function(){return this.getState().getNumTriesLeft()};g.setRunState=function(a){this.getState().setRunState(a)};g.setRunTime=function(a){this.getState().setRunTime(a)};g.setRunTimerId=function(a){this.getState().setRunTimerId(a)};g.incNumSuccesses=function(){this.getState().incNumSuccesses()};g.incNumFailures=function(){this.getState().incNumFailures()};g.incNumExecutions=function(){this.getState().incNumExecutions()};g.decNumTriesLeft=function(){this.getState().decNumTriesLeft()};
g.isPending=function(){return this.getState().isPending()};g.cancel=function(){this.scheduler.cancel(this.getState())};g.getState=function(){return this.scheduler.getState(this.group)};g.run=function(){this.incNumExecutions();this.runFunction_(this)};g.isDone=function(a){return this.scheduler.isDone(this,a)};var E7b=function(a){yA.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};W(E7b,yA);g=E7b.prototype;g.reset=function(){this.numTriesLeft=this.maxNumRetries_;this.success=!1;this.runState=1;this.runTimerId=this.runTime=-1};g.isSuccess=function(){return this.success};g.setSuccess=function(a){this.success=a};g.getMaxNumRetries=function(){return this.maxNumRetries_};g.setRunState=function(a){this.runState=a};g.setRunTime=function(a){this.runTime=a};
g.setRunTimerId=function(a){this.runTimerId=a};g.setMaxNumRetries=function(a){this.maxNumRetries_=a};g.getNumTriesLeft=function(){return this.numTriesLeft};g.decNumTriesLeft=function(){--this.numTriesLeft};g.incNumSuccesses=function(){};g.incNumFailures=function(){};g.incNumExecutions=function(){};g.isPending=function(){return!(4==this.runState||5==this.runState)};g.disposeInternal=function(){yA.prototype.disposeInternal.call(this);this.scheduler=null};var F7b=function(){yA.call(this);this.states={};this.currentGroup=1};W(F7b,yA);F7b.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new E7b(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();G7b(a,b,e);break;case 6:G7b(a,b,e);break;case 4:d&&(f.reset(),G7b(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),G7b(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var G7b=function(a,b,c){0==b?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(Mp(a.run,b,a)))};g=F7b.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){yA.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);Zh(b)}this.states={}};g.cancel=function(a){2==a.runState&&Np(a.runTimerId)};
g.isDone=function(a,b){b?a.incNumSuccesses():a.incNumFailures();a.setSuccess(b);a.decNumTriesLeft();if(!b&&0<a.getNumTriesLeft())return a.setRunState(6),this.schedule(a,Math.max(100,Math.round(45E3*Math.random()))),!1;a.setRunState(b?4:5);return!0};var H7b={SOMETHING_CHANGED:"a",ERROR:"b"},iQ=function(a,b){AA.call(this,a&&a[0].getError()?"b":"a");this.responses_=a;this.source_=b||"d"};W(iQ,AA);iQ.prototype.getChanges=function(){if(!this.changes_){if(!this.responses_)return null;var a=[];ta(this.responses_,function(b){b=b.getOperation().getChanges();a&&b?a=a.concat(b):a=null});this.changes_=a}return this.changes_};iQ.prototype.getSource=function(){return this.source_};var I7b=function(a,b){this.fn_=a;this.handler_=b};I7b.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};I7b.prototype.abort=function(){this.handler_=this.fn_=null};ROb(function(a){I7b.prototype.execute=a(I7b.prototype.execute)});var J7b=[];var jQ=function(a,b){var c=c||[];this.serviceId_=a;this.moduleId_=b||null;this.dependencies_=[];K7b(this,c)};jQ.prototype.toString=function(){return this.serviceId_};jQ.prototype.getModuleId=function(){return this.moduleId_};var K7b=function(a,b){var c=!1;c=void 0===c?!1:c;a.dependencies_=a.dependencies_.concat(b);if(c){if(!a.moduleId_)throw Error("ud`"+a.serviceId_);b.map(function(d){return d.getModuleId()}).forEach(function(d){J7b.push(function(e){e.addExtraEdge(a.moduleId_,d)})})}};new jQ("ZtVrH");new jQ("rJmJrc","rJmJrc");new jQ("fJuxOc");new jQ("NGntwf");new jQ("ofuapc");new jQ("BWETze");new jQ("ZmXAm");new jQ("n73qwf","n73qwf");new jQ("Bgf0ib");new jQ("MpJwZc","MpJwZc");new jQ("UUJqVe","UUJqVe");new jQ("GHAeAc","GHAeAc");new jQ("Wt6vjf","Wt6vjf");new jQ("byfTOb","byfTOb");new jQ("LEikZe","LEikZe");new jQ("lsjVmc","lsjVmc");new jQ("pVbxBc");new jQ("klpyYe");new jQ("OPbIxb");new jQ("pg9hFd");new jQ("IaqD3e");new jQ("Xpw1of");new jQ("v5BQle");new jQ("tdUkaf");new jQ("WSziFf");new jQ("UBSgGf");new jQ("zZa4xc");new jQ("o1bZcd");new jQ("WwG67d");new jQ("z72MOc");new jQ("JccZRe");new jQ("amY3Td");new jQ("ABma3e");new jQ("gSshPb");new jQ("yu4DA");new jQ("vk3Wc");new jQ("IykvEf");new jQ("J5K1Ad");new jQ("IW8Usd");new jQ("jbDgG");new jQ("b8xKu");new jQ("d0RAGb");new jQ("AzG0ke");new jQ("J4QWB");new jQ("TuDsZ");new jQ("hdXIif");new jQ("mITR5c");new jQ("DFElXb");new jQ("FENZqe");new jQ("tLnxq");var kQ=function(){yA.call(this);this.eventTarget_=new Po;this.updateCacheEventTarget_=new Po;this.mutationIdMap_=new JE};W(kQ,yA);kQ.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};kQ.prototype.getEventTarget=function(){return this.eventTarget_};
kQ.prototype.disposeInternal=function(){yA.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};var Ur=function(a){this.internalArray_=m(a)};W(Ur,X);var Tr=function(a,b){return qj(a,1,b)};g=Ur.prototype;g.getLogSource=function(){return Vi(this,2,-1)};g.setLogSource=function(a){return rj(this,2,a)};g.getApplication=function(){return Vi(this,3,0)};g.setApplication=function(a){return rj(this,3,a)};g.getApplicationOrUndefined=function(){return Xr(this,3)};g.getVersion=function(){return Hi(this,4)};g.getVersion_legacyNullable=function(){return Ej(this,4)};
g.setVersion=function(a){return qj(this,4,a)};g.getVersionOrUndefined=function(){return At(this,4)};g.getBaselineCl=function(){return hi(this,5)};g.setBaselineCl=function(a){return nj(this,5,a)};g.hasBaselineCl=function(){return Si(this,5)};g.getBaselineClOrUndefined=function(){return yt(this,5)};g.getEnableClearcut=function(){return Ri(this,6)};g.setEnableClearcut=function(a){return mj(this,6,a)};var s$a=function(a,b){return ac(a,7,b,tb)};g=Ur.prototype;
g.getExperimentId=function(){return vt(this,7)};g.setClientAgent=function(a){return rj(this,8,a)};g.getClientAgentOrUndefined=function(){return Xr(this,8)};g.setEventSource=function(a){rj(this,9,a)};g.getEventSourceOrUndefined=function(){return Xr(this,9)};g.getClearcutUrl=function(){return Hi(this,10)};g.setClearcutUrl=function(a){qj(this,10,a)};g.setEnvironment=function(a){return rj(this,11,a)};g.getEnvironmentOrUndefined=function(){return Xr(this,11)};
g.getPeoplekitEntryPoint=function(){return Vi(this,12,0)};g.setPeoplekitEntryPoint=function(a){return rj(this,12,a)};g.getPeoplekitEntryPointOrUndefined=function(){return Xr(this,12)};Ur.repeatedFields_=[7];var L7b=window&&window.performance&&window.performance.now&&window.performance.timing&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return Date.now()};var M7b=function(a){this.start_=a;this.end_=NaN};M7b.prototype.duration=function(){return this.end_-this.start_};M7b.prototype.stop=function(a){this.end_=a;return this.duration()};var lQ=function(a){var b=void 0===b?L7b:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};lQ.prototype.source=function(){return this.source_};var N7b=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
lQ.prototype.duration=function(a){a=N7b(this,void 0===a?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var mQ=function(a,b){return YJa(a.duration(void 0===b?"":b))};lQ.prototype.toString=function(a,b){b=void 0===b?1:b;return this.duration(void 0===a?"":a).toFixed(b)};lQ.prototype.start=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=N7b(this,a);this.durations_.set(a,new M7b(b));return this};
lQ.prototype.stop=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=N7b(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};lQ.prototype.clear=function(){this.durations_.clear();return this};var O7b=function(a){this.internalArray_=m(a)};W(O7b,X);var P7b=function(a){this.internalArray_=m(a)};W(P7b,X);g=P7b.prototype;g.getQueryId=function(){return Wm(this,1)};g.setQueryId=function(a){xj(this,1,a)};g.setSelectionId=function(a){xj(this,2,a)};g.getInstanceId=function(){return Ej(this,4)};g.setInstanceId=function(a){return qj(this,4,a)};g.clearInstanceId=function(){st(this,4)};g.hasInstanceId=function(){return Ii(this,4)};g.getInstanceIdOrUndefined=function(){return At(this,4)};g.getAffinityVersion=function(){return tt(this,5)};
g.setAffinityVersion=function(a){nj(this,5,a)};g.getAffinityVersionOrUndefined=function(){return yt(this,5)};var Q7b=function(a){this.internalArray_=m(a)};W(Q7b,X);g=Q7b.prototype;g.getQueryLength=function(){return tt(this,1)};g.setQueryLength=function(a){return nj(this,1,a)};g.hasQueryLength=function(){return Si(this,1)};g.getQuery=function(){return Ej(this,2)};g.setQuery=function(a){return qj(this,2,a)};g.clearQuery=function(){st(this,2)};g.hasQuery=function(){return Ii(this,2)};var R7b=function(a){this.internalArray_=m(a)};W(R7b,X);R7b.prototype.setLatencyUsec=function(a){nj(this,1,a)};var nQ=function(a){this.internalArray_=m(a)};W(nQ,X);g=nQ.prototype;g.getColumn=function(){return tt(this,2)};g.setColumn=function(a){return nj(this,2,a)};g.getType=function(){return Mr(this,3)};g.setType=function(a){return rj(this,3,a)};g.hasType=function(){return Ti(this,3)};var oQ=function(a){this.internalArray_=m(a)};W(oQ,X);oQ.prototype.getExistingSelectionsCount=function(){return tt(this,1)};oQ.prototype.setExistingSelectionsCount=function(a){nj(this,1,a)};oQ.prototype.getPosition=function(){return Fi(this,nQ,2)};oQ.prototype.setPosition=function(a){return oj(this,nQ,2,a)};var pQ=function(a){this.internalArray_=m(a)};W(pQ,X);g=pQ.prototype;g.getType=function(){return Mr(this,5)};g.setType=function(a){return rj(this,5,a)};g.hasType=function(){return Ti(this,5)};g.getEmail=function(){return Ej(this,1)};g.getEmail_legacyNullable=function(){return Ej(this,1)};g.setEmail=function(a){return qj(this,1,a)};g.hasEmail=function(){return Ii(this,1)};g.getPhone=function(){return Ej(this,2)};g.getPhone_legacyNullable=function(){return Ej(this,2)};
g.setPhone=function(a){return qj(this,2,a)};g.hasPhone=function(){return Ii(this,2)};g.getObfuscatedGaiaId=function(){return Ej(this,3)};g.getObfuscatedGaiaId_legacyNullable=function(){return Ej(this,3)};g.setObfuscatedGaiaId=function(a){qj(this,3,a)};g.getContactId=function(){return Wm(this,4)};g.setContactId=function(a){xj(this,4,a)};g.getGroupId=function(){return Ej(this,6)};g.setGroupId=function(a){qj(this,6,a)};g.hasGroupId=function(){return Ii(this,6)};var qQ=function(a){this.internalArray_=m(a)};W(qQ,X);qQ.prototype.getName=function(){return Ej(this,1)};qQ.prototype.setName=function(a){return qj(this,1,a)};qQ.prototype.hasName=function(){return Ii(this,1)};qQ.prototype.getNameOrUndefined=function(){return At(this,1)};var rQ=function(a){this.internalArray_=m(a)};W(rQ,X);g=rQ.prototype;g.getPosition=function(){return Fi(this,nQ,1)};g.setPosition=function(a){return oj(this,nQ,1,a)};g.getProvenance=function(){return CFb(this,3)};g.setProvenance=function(a){return dc(this,3,a,void 0,kj)};g.getIsPlaceholder=function(){return Er(this,7)};g.setIsPlaceholder=function(a){mj(this,7,a)};g.getIsSelf=function(){return Er(this,11)};g.getQueryId=function(){return Wm(this,15)};g.setQueryId=function(a){xj(this,15,a)};
g.setSelectionId=function(a){xj(this,16,a)};rQ.repeatedFields_=[4,3];var sQ=function(a){this.internalArray_=m(a)};W(sQ,X);sQ.prototype.getLoggingId=function(){return Ej(this,1)};sQ.prototype.setLoggingId=function(a){qj(this,1,a)};sQ.prototype.getMetadata=function(){return Fi(this,rQ,3)};sQ.prototype.setMetadata=function(a){oj(this,rQ,3,a)};var tQ=function(a){this.internalArray_=m(a)};W(tQ,X);tQ.prototype.getAffinityVersion=function(){return tt(this,2)};tQ.prototype.setAffinityVersion=function(a){nj(this,2,a)};tQ.prototype.getAffinityVersionOrUndefined=function(){return yt(this,2)};var S7b=function(a){this.internalArray_=m(a)};W(S7b,X);g=S7b.prototype;g.getEventType=function(){return Mr(this,1)};g.getEventType_legacyNullable=function(){return Mr(this,1)};g.setEventType=function(a){return rj(this,1,a)};g.getMetadata=function(){return Fi(this,tQ,4)};g.setMetadata=function(a){oj(this,tQ,4,a)};g.getClientInterface=function(){return Fi(this,aQ,5)};g.setClientInterface=function(a){return oj(this,aQ,5,a)};S7b.repeatedFields_=[2];var T7b=new Map([[1,4],[2,2],[3,1],[4,7]]),U7b=function(a,b){b=void 0===b?0:b;this.clientConfig_=a;this.transportType_=b;switch(b){case 1:b="ppl.store.peopleapi";var c=Ri(a.getExperiments(),1,!0);break;case 2:b="ppl.store.ppl.store.ozcontactstore";c=Ri(a.getExperiments(),2,!0);break;default:b="ppl.store",c=!1}var d=T7b.get(a.getUserInfo().getEnvType_legacyNullable())||0;this.logContext_=cc(s$a(Tr(new Ur,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplicationOrUndefined()).setEnvironment(d).setVersion("1013").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c),
a.getExperiments().getExperimentIdsList()),7,tb(20090307))};g=U7b.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=V7b(this);switch(b.getEventType()){case 2:case 3:return(new eQ).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new cQ).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new eQ).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new n7b).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=V7b(this);switch(d.getEventType()){case 1:d=(new eQ).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new bQ).setStatus(c);if(0==c||4==c)c=e.setTotalUsec(mQ(b,"total")),b=mQ(b,"blocked"),b=xj(c,3,b),rj(b,5,a);return Ll(d,4,fQ,e);case 2:case 3:return a=(new eQ).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new p7b).setRpcType(d.getRpcType()).setLookupType(d.getLookupType()).setStatus(c),
0!=c&&4!=c||d.setTotalUsec(mQ(b,"total")).setBlockedUsec(mQ(b,"blocked")).setNetworkUsec(mQ(b,"network")),e.call(a,d);case 4:case 5:a=(new eQ).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new o7b;f.setApiType(d.getApiType()).setCacheStatus(d.getCacheStatus()).setAddressBook(d.getAddressBook()).setStatus(c);0!==c&&4!==c||f.setTotalUsec(mQ(b,"total"));return e.call(a,f);default:return null}};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};
var V7b=function(a){a=a.clientConfig_.getUserInfo();var b=new dQ;b=mj(b,4,!!a.getDelegatorId());a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(Vi(a,6,0)||0);return b};var aKa=function(a){this.internalArray_=m(a)};W(aKa,X);aKa.repeatedFields_=[1,2,3,4];var uQ=function(a,b){this.name_=b||"";this.address=a||""},W7b=/"/g,X7b=/\\"/g,Y7b=/\\/g,Z7b=/\\\\/g,$7b=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),a8b=new RegExp("["+qca({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");uQ.prototype.getName=function(){return this.name_};uQ.prototype.getAddress=function(){return this.address};uQ.prototype.setName=function(a){this.name_=a};uQ.prototype.toString=function(){return b8b(this,'()<>@:\\".[],;')};
var b8b=function(a,b){var c=a.getName();c=c.replace(W7b,"");a:{for(var d=c,e=0;e<b.length;e++)if(ka(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(Y7b,"\\\\")+'"');return""==c?a.address:""==a.address?c:c+" <"+a.address+">"};uQ.prototype.isValid=function(){return $7b.test(this.address)};
var e8b=function(a){var b=c8b;a=a.replace(a8b,"");for(var c="",d="",e=0;e<a.length;){var f=a;var h=e,k=f.charAt(h),q='"<(['.indexOf(k);if(-1==q||d8b(f,h))f=k;else{q='">)]'.charAt(q);for(var u=f.indexOf(q,h+1);0<=u&&d8b(f,u);)u=f.indexOf(q,u+1);f=0<=u?f.substring(h,u+1):k}"<"==f.charAt(0)&&-1!=f.indexOf(">")?(d=f.indexOf(">"),d=f.substring(1,d)):""==d&&(c+=f);e+=f.length}""==d&&-1!=c.indexOf("@")&&(d=c,c="");c=GGb(c);c=HGb(c,"'");c=HGb(c,'"');c=c.replace(X7b,'"');c=c.replace(Z7b,"\\");d=GGb(d);return new b(d,
c)},d8b=function(a,b){if('"'!=a.charAt(b))return!1;var c=0;for(--b;0<=b&&"\\"==a.charAt(b);b--)c++;return 0!=c%2};var c8b=function(a,b){uQ.call(this,a,b)};ft(c8b,uQ);var f8b=RegExp("^((?!\\s)[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~\u0080-\uffffFF-])+@((?!\\s)[a-zA-Z0-9\u0080-\u3001\u3003-\uff0d\uff0f-\uff60\uff62-\uffffFF-]+[\\.\\uFF0E\\u3002\\uFF61])+(?!\\s)[a-zA-Z0-9\u0080-\u3001\u3003-\uff0d\uff0f-\uff60\uff62-\uffffFF-]{2,63}$");c8b.prototype.isValid=function(){return g8b(this.address)};var g8b=function(a){return null==a?!1:f8b.test(a)};c8b.prototype.toString=function(){return b8b(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};var h8b=/[^a-z0-9]+/ig,i8b=[9,11,10,12,13,14,15,16,19],j8b=[9,19,11],k8b=[1,6],l8b=[2,7],m8b=[3,8],n8b=[1,2,6,7,8,9,11,10,12,13,14,15,16,18,19],Y8a=[3,4,5,17,20],Ar=function(a,b,c){this.type_=a;this.normalizedValue_=Mo(b);this.originalValue_=Mo(void 0===c?b:c)};Ar.prototype.getType=function(){return this.type_};Ar.prototype.getValue=function(){return this.normalizedValue_};Ar.prototype.getOriginalValue=function(){return this.originalValue_};
var dr=function(a){return i8b.includes(a.getType())},er=function(a){return j8b.includes(a.getType())},ur=function(a,b){switch(a){case 1:return xr(b);case 6:return new Ar(6,Mo(b).toLowerCase(),b);case 2:return h9a(b);case 7:return i9a(b);case 3:return V8a(b);case 8:return new Ar(8,Mo(b).toLowerCase(),b);case 5:return new Ar(5,Mo(b).toLowerCase(),b);case 4:return W8a(b);case 9:return o8b(b);case 12:return new Ar(12,Mo(b),b);case 13:return new Ar(13,Mo(b),b);case 14:return new Ar(14,Mo(b),b);case 15:return new Ar(15,
Mo(b),b);case 16:return new Ar(16,Mo(b),b);case 10:return new Ar(10,Mo(b),b);case 11:return new Ar(11,Mo(b),b);case 18:return X8a(b);case 19:return new Ar(19,Mo(b),b);case 20:return new Ar(20,Mo(b),b);case 17:return p8b;default:return new Ar(0,b)}},xr=function(a){return new Ar(1,Mo(a).toLowerCase(),a)},h9a=function(a){var b=Mo(a).toLowerCase().replace(h8b,"");return new Ar(2,b,a)},V8a=function(a){var b=Mo(a).toLowerCase();return"me"===b?p8b:new Ar(3,b,a)},W8a=function(a){return new Ar(4,Mo(a).toLowerCase(),
a)},i9a=function(a){var b=Mo(a).toLowerCase().replace(h8b,"");return new Ar(7,b,a)},o8b=function(a){return new Ar(9,Mo(a).toLowerCase(),a)},X8a=function(a){return new Ar(18,Mo(a),a)},q8b=function(a){var b=a.indexOf(":");return ur(0<b?parseInt(a.substring(0,b),10):0,a.substring(b+1))};Ar.prototype.toString=function(){return this.type_+":"+this.normalizedValue_};Ar.prototype.serialize=function(){return this.type_+":"+this.originalValue_};
Ar.prototype.equals=function(a){return a?this===a?!0:this.type_===a.type_&&this.normalizedValue_===a.normalizedValue_:!1};var r8b=function(a){switch(a.getType()){case 1:case 6:return g8b(a.originalValue_);case 2:case 7:return a=a.originalValue_.replace(h8b,""),3<=a.length&&"0"<=a[0]&&"9">=a[0];case 3:case 8:return!!Mo(a.originalValue_);default:return!0}},Cr=ur(0,""),p8b=new Ar(17,"me");var s8b=function(a,b){this.apiEnv_=a;this.experimentsConfig_=b};var t8b=function(a){this.profileId_=a};t8b.prototype.getProfileId=function(){return this.profileId_};var vQ=Object.freeze({userProfileId:"",apiEnv:4,userEmail:""});var u8b=function(){return ha&&ia?!ia.mobile&&(la("iPad")||la("Android")||la("Silk")):la("iPad")||la("Android")&&!la("Mobile")||la("Silk")};var $Ja=new WeakMap,ZJa=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};var v8b=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=qa()||la("iPod")?4:la("iPad")?5:kaa()?u8b()?3:2:(ha&&ia?ia.mobile:!u8b()&&(la("iPod")||la("iPhone")||la("Android")||la("IEMobile")))||u8b()?0:1},x8b=function(a){var b=a.getLogContext(),c=null;b.getEnableClearcut()&&(c=w8b(b.getLogSource(),QJa(),ji(b,7),b.getClearcutUrl()));return new v8b(c,a)},wQ=function(a){var b=a.logContextFactory_.getLogContext(),c=new $P;c.setApplication(b.getApplicationOrUndefined());c.setDevice(a.device_);
a=new aQ;a.setSocialClient(c);a.setVersionName(b.getVersionOrUndefined());a.setClientAgent(b.getClientAgentOrUndefined());a.setEventSource(b.getEventSourceOrUndefined());a.setEnvironment(b.getEnvironmentOrUndefined());a.setPeoplekitEntryPoint(b.getPeoplekitEntryPointOrUndefined());b.hasBaselineCl()&&(b=Math.round(b.getBaselineCl()),isFinite(b)&&a.setBaselineCl(b));return a},xQ=function(a,b){var c=new iB;WQb(c,b.serialize());a.clearcut_&&oB(a.clearcut_,c)},w8b=No(bKa);var y8b=function(a,b){this.clearcut_=a;this.logEventFactory_=b};y8b.prototype.logError=function(a){var b=wQ(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&xQ(this.clearcut_,a)};var z8b=new Map([[200,0],[400,3],[401,16],[403,7],[404,5],[409,10],[416,11],[429,8],[499,1],[-1,1],[504,4],[501,12],[503,14]]);var A8b=function(){this.logContext_=Tr(new Ur,"ppl.store")};g=A8b.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){return null};g.createStatusMetric=function(){return null};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};var B8b=function(a){this.clearcut_=a},pr=function(a){a=new y8b(x8b(a),a);return new B8b(a)};g=B8b.prototype;g.start=function(a,b){a.start(b);return this};g.stop=function(a,b){a.stop(b);return this};
g.count=function(a,b){var c=this.clearcut_;b=void 0===b?1:b;var d=wQ(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&xQ(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=wQ(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&xQ(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=wQ(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&xQ(b.clearcut_,a);return this};g.error=function(a){this.clearcut_.logError(a);return this};
g.logError=function(){};g.logInfo=function(){return this};var yQ=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new F7b;this.eventHandler_=new xq(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new kQ;(a=b)||(a=pr(new A8b));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};ft(yQ,yA);g=yQ.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,qca(H7b),dt(this.forwardEvent_,this))};g.forwardEvent_=function(a){this.contactNotificationService_.dispatchEvent(a)};g.getEventTarget=function(){return this.contactNotificationService_.getEventTarget()};g.invalidate=function(){this.contactNotificationService_.dispatchEvent(new iQ(null,"c"))};
g.loadContactRows=function(a,b){var c=this,d=(new Lo).setEventType(4).setApiType(2),e=new lQ(d);this.metrics.count(e);this.metrics.start(e,"total");return C8b(this,a,function(f){return f.loadContactRows},function(f,h,k,q,u){D8b(function(x,y,E,H){var J=y===YP||y instanceof ZP?2:1;e.source().setCacheStatus(J);e.source().setAddressBook(E?m7b.get(E)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,u7b(u||0));b&&b(x,y,E,H,u)},f,h,k,q)})};
var C8b=function(a,b,c,d){var e=new E8b(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];0<b.delayMillis||1<b.maxTries?f=F8b(a,h,c(h),b,d):f=c(h).call(h,b,d);f&&e.add(f)}else for(var k=0;k<a.addressBooks.length;k++)h=a.addressBooks[k],0<b.delayMillis||1<b.maxTries?f=F8b(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
yQ.prototype.execute=function(a){var b=this,c=(new Lo).setEventType(4).setApiType(1),d=new lQ(c);this.metrics.count(d);this.metrics.start(d,"total");G8b(this,a);a.addSuccessOrFailureCallback(function(e){var f=e?u7b(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?m7b.get(e)||1:1:0);b.metrics.stop(d,"total");b.metrics.status(d,f)});return this.cache_&&(c=a.executeFromCache(this.cache_,function(e){return H8b(b,e,d)}))?
c:H8b(this,a,d)};
var G8b=function(a,b){ta(a.queryFilters_,function(){});b.isMutate()&&(b=b.getOperation())&&(b=b.getQueryAfterMutate())&&G8b(a,b)},H8b=function(a,b,c){if(b.isMutate()){var d=b.getOperation();d&&(d=d.getMutationId())&&a.contactNotificationService_.mutationIdMap_.set(d,Date.now())}if(d=b.getAddressBookId())if(d=a.addressBookMap_[d])return d.execute(b);c=new E8b(void 0,a.metrics,c);c.setQuery(b);for(var e=0;e<a.addressBooks.length;e++)d=a.addressBooks[e],d.execute&&c.add(d.execute(b));return c},F8b=function(a,
b,c,d,e){b=dt(a.runScheduledQuery_,a,b,c,d,e);b=new D7b(a.scheduler_,b,d.name);a.scheduler_.schedule(b,d.delayMillis,d.maxTries,d.force);return new I8b(b)};yQ.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,u){e.isDone(!u)&&d&&d(f,h,k,q,u)})};
var D8b=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),J8b(b)),a(b||[],c,d,e))},J8b=function(a){if(0<a.length)for(var b=a[0].getPriority(),c=1;c<a.length;c++){var d=a[c],e=d.getPriority();e<b&&(d.flags|=1,b=e)}};
yQ.prototype.disposeInternal=function(){yQ.superClass_.disposeInternal.call(this);Zh(this.scheduler_);this.scheduler_=null;ta(this.ownedAddressBooks_,Zh);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;Zh(this.eventHandler_);this.eventHandler_=null;ta(this.queryFilters_,function(a){a!=this.contactNotificationService_&&Zh(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(Zh(this.contactNotificationService_),this.contactNotificationService_=null)};
var K8b=function(a){var b=new U7b(a,0);Tr(b.getLogContext(),"ppl.store");b.getLogContext().setEnableClearcut(Ri(a.getExperiments(),3,!0));return pr(b)},E8b=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=E8b.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.add=function(a){this.requests_.push(a)};g.isEmpty=function(){return 0==this.requests_.length};
g.cancel=function(){this.isPending()&&this.metrics_&&this.state_&&this.metrics_.status(this.state_,1);for(var a=0;a<this.requests_.length;a++)this.requests_[a].cancel()};g.isPending=function(){for(var a=0;a<this.requests_.length;a++)if(this.requests_[a].isPending())return!0;return!1};g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};var I8b=function(a){this.op=a;this.request=null};I8b.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};
I8b.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};var L8b=function(a,b){this.text=a;this.specialRowHandler=b};ft(L8b,l7b);g=L8b.prototype;g.getName=function(){return null};g.getEmail=function(){return null};g.getPhoneNumber=function(){return null};g.getType=function(){return"sr"};g.getPriority=function(){return 0};g.getLoggingId=function(){return"sr"};var M8b=function(a,b){yQ.call(this,a,b)};W(M8b,yQ);M8b.prototype.addAddressBook=function(a,b){1==this.addressBooks.length&&(this.combiner_=new N8b(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));yQ.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};M8b.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):yQ.prototype.loadContactRows.call(this,a,b)};
var N8b=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};N8b.prototype.addAddressBook=function(a){this.addrBooks_.push(new O8b(this,this.addrBooks_.length,a))};N8b.prototype.loadContactRows=function(a,b){a=new P8b(a,this.metrics_,b);Q8b(this,a);return a};
var Q8b=function(a,b,c,d){a.rowSets_=[];for(var e=0;e<a.addrBooks_.length&&!(e==c?a.rowSets_[e]=d:a.addrBooks_[e].loadContactRows(b),0==e&&a.rowSets_[e]&&a.rowSets_[e].length>=b.query.maxMatches);e++);c=b.query;d=a.rowSets_;var f=[];e=!1;for(var h,k=0;k<d.length&&f.length<c.maxMatches;k++)if(d[k]){h=f.length;e=!0;var q=d[k],u=c.maxMatches,x=f.length;if(0==x)f=q.length>u?q.slice(0,u):q;else for(var y=0;y<q.length;y++){for(var E=null,H=0;H<x&&!(E=R8b(f[H],q[y]));H++);if(E)E===q[y]&&(f[H]=E);else if(f.length==
x?f=f.concat(q[y]):f.push(q[y]),f.length==u)break}0<h&&f.length>h&&(f[h].flags|=1)}e?(J8b(f),c=f):c=null;c&&b.handler&&a.addrBooks_[0]&&a.addrBooks_[0].madeCallback_&&b.handler(c,b,null,b.query);a.rowSets_=null},R8b=function(a,b){if(a.specialRowHandler||b.specialRowHandler)return null;if(a.text==b.text)return a;if(a.getEmail()==b.getEmail()&&a.getType()==b.getType()){if(!b.getName())return a;if(!a.getName())return b}return null},S8b=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:Q8b(a,b,c,d)};
N8b.prototype.handleSpecialRow=function(){};var O8b=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
O8b.prototype.loadContactRows=function(a){var b=this,c=a.storedResults_[this.id_];if(!c){this.isSynchronous_=!0;this.madeCallback_=!1;var d=Date.now(),e=this.addrBook_.loadContactRows(a.query,function(f,h,k,q,u){b.matchListener_(a,d,f,u)});a.addRequest(this.id_,e);this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&300<this.lastAsyncLatency_&&(c=[T8b(this)])}c&&S8b(this.combiner_,a,this.id_,c)};
var T8b=function(a){var b=a.addrBook_.title_;return new L8b(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
O8b.prototype.matchListener_=function(a,b,c,d){d=void 0===d?0:d;this.madeCallback_=!0;this.isSynchronous_||(this.lastAsyncLatency_=Date.now()-b);a.query.filter&&c&&(c=a.query.filter(c,a.query.token));b=this.id_;var e=this.addrBook_.getId();a.storedResults_[b]=c;a.storedErrorCodes_[b]=d;a.addressBooksToReport_[b]=e;S8b(this.combiner_,a,this.id_,c)};O8b.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var P8b=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new lQ((new Lo).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(u,x){var y=d.activeRequests_[x];y=y===YP||y instanceof ZP?2:1;e.source().setCacheStatus(y);e.source().setAddressBook(u?m7b.get(u)||1:1);b.stop(e,"total");b.status(e,u7b(d.storedErrorCodes_[x]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};P8b.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};P8b.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};P8b.prototype.addRequest=function(a,b){this.activeRequests_[a]=b};var U8b={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"},tr=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);if(192>e||382<e)e=null;else{var f=U8b[e];f?e=f:(f="AAAAAA*CEEEEIIIIDNOOOOOx0UUUUYpBaaaaaa*ceeeeiiiionooooo^ouuuuypyAaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIi**JjKkkLlLlLLLlllNnNnNnnNnOoOoOo**RrRrRrSsSsSsSsTtTtttUuUuUuUuUuUuWwYyYZzZzZz"[e-192],e="^"==f?null:f)}e&&(c!=d&&b.push(a.substr(c,d-c)),c=d+1,b.push(e))}return 0<b.length?(b.push(a.substr(c)),b.join("")):
a};var zQ=function(a,b,c,d,e,f){Po.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||V8b;this.cache_=new JE(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};ft(zQ,Po);zQ.prototype.disposeInternal=function(){zQ.superClass_.disposeInternal.call(this);this.cache_=null};zQ.prototype.clear=function(){this.cache_.clear()};
var V8b=function(a){var b=Wn(tr(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=null!=tr(String(c[1])).match(d))||(d=c[0],d=null!=c[2].match(new RegExp("^"+b,"i"))&&"cl"!=String(d));return d}},W8b=function(a,b){var c="^"+a.token.toLowerCase();b&&(a.includeContacts||(c="nc"+c),a.includeGroups||(c="ng"+c),a.includePhoneContacts||(c="np"+c),a.isContactAutoComplete||(c="na"+c));a.includeProfileAddresses&&(c="pa"+c);return c},X8b=function(a,b,c){a.cache_.set(W8b(b,a.cacheByType_),c);
if(a.cacheSize_&&(b=a.cache_.getCount(),b>a.cacheSize_)){c=Date.now()-a.cacheMinExpiryAge_;do{if(a.cache_.head_.prev.value.created>=c)break;a.cache_.pop()}while(--b>a.cacheSize_)}},Y8b=function(a,b,c){c=c?a.cache_.get(b):jXb(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},Z8b=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=Y8b(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},$8b=function(a,b){if(b.isContactAutoComplete)return null;var c=W8b(b,a.cacheByType_),
d=Z8b(a,c,b.token);return d?d:a.cacheByType_&&!si(c,"^")?(c=W8b(b,!1),Z8b(a,c,b.token)):null};zQ.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};zQ.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:jXb(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var AQ=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};AQ.prototype.getMatches=function(a){a&&this.count++;return this.matches_};AQ.prototype.isComplete=function(a){return!this.partialResult_||0<=a&&a<=this.matches_.length};ft(Ro,Po);g=Ro.prototype;g.configure=function(a,b){this.title_=b;this.initialized_||(this.initialized_=!0)};g.getId=function(){return this.id_};
g.loadContactRows=function(a,b){if(this.initialized_){var c=this.cache_;if(Oi(a.token)&&!c.allowEmptyQueries_)var d=XP;else{d=a.maxMatches;var e=Y8b(c,W8b(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=$8b(c,a))&&0==d.getMatches().length?(X8b(c,a,new AQ(a.token,XP)),d=XP):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=vEb(d,c.rowMatchingFunction_(a),c),X8b(c,a,new AQ(a.token,d))):d=null}d&&0<=a.maxMatches&&d.length>a.maxMatches&&(d=d.slice(0,a.maxMatches));
return(c=d)?(b&&b(c,YP,this.getId(),a),YP):this.transport_.loadContactRows(a,this.getId(),dt(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(XP,YP,this.getId(),a,4);return YP};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||X8b(this.cache_,e,new AQ(e.token,b,-1!=e.maxMatches&&b.length>=e.maxMatches));a&&(b&&0<=e.maxMatches&&b.length>e.maxMatches&&(b=b.slice(0,e.maxMatches)),a(b,c,d,e,f))};g.onContactsChange_=function(){this.cache_.clear()};
g.disposeInternal=function(){Ro.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;a9b(this.transport_,this.id_);this.transport_=null};var c9b=function(a,b,c){zQ.call(this,100,18E5,432E5,!0,0,c||b9b);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};W(c9b,zQ);var b9b=function(a){return function(b){var c=b.getType(),d;if(d=d9b(a,c)){d=new RegExp("(^|\\W+)"+Wn(tr(a.token)),"i");var e=tr(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+Wn(tr(d)),"i")).test(b):!1)&&"cl"!=c)}return d}},d9b=function(a,b){switch(b){case "ct":return a.includeContacts;case "cl":case "li":return a.includeGroups;case "pt":return a.includePhoneContacts}return!1};var BQ=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new c9b(!0,!1,e9b);Ro.call(this,a,b,"domain")};ft(BQ,Ro);BQ.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=Ac(a),a.includeGroups=!1);return BQ.superClass_.loadContactRows.call(this,a,b)};
var e9b=function(a){for(var b=GGb(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=Wn(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(d9b(a,k.getType())){for(var q=0;q<c.length;q++)if(!k.getName().match(c[q])&&!k.getEmail().match(d[q]))return!1;return!0}return!1}};BQ.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};var f9b=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},h9b=function(a){if(!a)return g9b;var b=dKa(Jo("metadata.identityInfo.sourceIds",a)),c=Jo("metadata.contactId",a);c&&c[0]?b.CONTACT=c[0]:b.CONTACT&&(c=parseInt(b.CONTACT,16),isFinite(c)&&(b.CONTACT=String(c)));return new f9b(a.personId||"",b)},g9b=new f9b("",{});var i9b=function(a,b){this.isLocal_=a;this.edgeIndex_=b};i9b.prototype.toString=function(){return""};var CQ=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};CQ.prototype.toString=function(){return""};var k9b=function(a){return j9b(a).some(function(b){return!b.isLocal_})};CQ.prototype.getSource=function(a){return j9b(this)[a]};CQ.prototype.hasSource=function(){return void 0<j9b(this).length};var j9b=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};CQ.prototype.getCause=function(a){return l9b(this)[a]};
var l9b=function(a){return a.edgeCollection_?m9b(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};CQ.prototype.getContainerType=function(){return this.metadata_.containerType};var n9b=new CQ({},null);var o9b=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=o9b.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new CQ(this.email_.metadata,this.edgeCollection_):n9b);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.email_};g.getValue=function(){return this.email_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.email_.metadata;return!(!a||!a.primary)};g.getDisplayName=function(){return""};var p9b=new o9b({},null);var q9b=function(a,b){this.emails_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new o9b(c.value,b))};g=q9b.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||p9b};g.getFieldLength=function(){return this.emails_.length};var r9b=new q9b([],null);var s9b=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=s9b.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new CQ(this.name_.metadata,this.edgeCollection_));return this.metadata_};g.hasMetaData=function(){return!!this.getMetaData()};g.getValue=function(){return this.name_.displayName||this.name_.formattedName||this.name_.formattedValue||this.name_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getFamilyName=function(){return this.name_.familyName||""};g.hasFamilyName=function(){return!!this.getFamilyName()};g.getGivenName=function(){return this.name_.givenName||""};g.hasGivenName=function(){return!!this.getGivenName()};var t9b=new s9b({},null);var u9b=function(a){this.field_=a};g=u9b.prototype;g.toString=function(){return""};g.getField=function(){return this.field_};g.getMetaData=function(){return this.field_.getMetaData()};g.hasMetaData=function(){return this.field_.hasMetaData()};g.getValue=function(){return this.field_.getValue()};g.hasValue=function(){return this.field_.hasValue()};g.getFamilyName=function(){return this.field_.getFamilyName()};g.hasFamilyName=function(){return this.field_.hasFamilyName()};g.getGivenName=function(){return this.field_.getGivenName()};
g.hasGivenName=function(){return this.field_.hasGivenName()};var v9b=new u9b(t9b);var w9b=["CONTACT","PROFILE","DOMAIN_PROFILE"],x9b=function(a,b){this.names_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new s9b(c.value,b))};g=x9b.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||t9b};g.getFieldLength=function(){return this.names_.length};var y9b=new x9b([],null);var z9b=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=z9b.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new CQ(this.phone_.metadata,this.edgeCollection_):n9b);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.phone_};g.getValue=function(){return this.phone_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.phone_.metadata;return!(!a||!a.primary)};var A9b=new z9b({},null);var B9b=function(a,b){this.phones_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new z9b(c.value,b))};g=B9b.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||A9b};g.getFieldLength=function(){return this.phones_.length};var C9b=new B9b([],null);var D9b=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=D9b.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new CQ(this.photo_.metadata,this.edgeCollection_):n9b);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.photo_};g.getUrl=function(){return this.photo_.url||""};g.hasUrl=function(){return!!this.getUrl()};var E9b=new D9b({},null);var F9b=function(a,b){this.photos_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.isMonogram||c.isDefault||this.photos_.push(new D9b(c,b))};g=F9b.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||E9b};g.getFieldLength=function(){return this.photos_.length};var G9b=new F9b([],null);var DQ=function(a,b,c,d,e){this.person_=a;this.googleGroup_=b;this.contactLabel_=c;this.edgeCollection_=d;this.email_=this.name_=this.nameRepeated_=this.text_=null;this.emailIndex_=void 0===e?0:e;this.photo_=this.phone_=null};
DQ.prototype.toString=function(){if(null==this.text_){if(this.contactLabel_){var a=this.contactLabel_.extendedData&&this.contactLabel_.extendedData.contactPreferences?this.contactLabel_.extendedData.contactPreferences.length:0;a=1==a?"(1 contact)":"("+a+" contacts)";a=this.getName().getValue()+" "+a}else a=this.person_||this.googleGroup_?eKa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};DQ.prototype.hasName=function(){return!!this.getName()};
DQ.prototype.getName=function(){if(!this.name_){a:{var a=jKa(this);if(a.names_.length){for(var b=l(w9b),c=b.next();!c.done;c=b.next()){c=c.value;for(var d=l(a.names_),e=d.next();!e.done;e=d.next())if(e=e.value,e.getMetaData().getContainerType()===c){a=new u9b(e);break a}}a=new u9b(a.names_[0])}else a=v9b}this.name_=a}return this.name_};
var jKa=function(a){if(!a.nameRepeated_){var b;a.person_?b=a.person_.name:a.googleGroup_?b=a.googleGroup_.names:a.contactLabel_&&(b=[a.contactLabel_.name]);a.nameRepeated_=b?new x9b(b,a.edgeCollection_):y9b}return a.nameRepeated_};g=DQ.prototype;g.hasEmail=function(){return!!this.getEmail().getField(0).getValue()};
g.getEmail=function(){if(!this.email_){var a=null;this.person_?a=this.person_.email:this.googleGroup_?a=this.googleGroup_.emails:this.contactLabel_&&(a=[{value:fKa(this.contactLabel_)}]);this.email_=a?new q9b(a,this.edgeCollection_):r9b}return this.email_};g.hasPhone=function(){return!!this.getPhone().getField(0).getValue()};g.getPhone=function(){if(!this.phone_){var a;this.person_?a=this.person_.phone:this.googleGroup_&&(a=this.googleGroup_.phones);this.phone_=a?new B9b(a,this.edgeCollection_):C9b}return this.phone_};
g.hasPhoto=function(){return!!this.getPhoto().getField(0).getUrl()};g.getPhoto=function(){if(!this.photo_){var a;this.person_&&(a=this.person_.photo);this.photo_=a?new F9b(a,this.edgeCollection_):G9b}return this.photo_};g.getAddress=function(){return null};g.getStatus=function(){return null};g.hasStatus=function(){return!!this.getStatus()};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};g.getDisplayName=function(){return null};g.getRelation=function(){return null};
g.getEvent=function(){return null};var eKa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},H9b=new DQ(null,null,null,null);var EQ=function(){this.keyToIndex_=new Map},I9b=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return null!=d})};EQ.prototype.get=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(this.getKey_(a,b)):null};EQ.prototype.set=function(a,b,c){"DOMAIN_PROFILE"===b&&(b="PROFILE");this.keyToIndex_.set(this.getKey_(a,b),c)};
EQ.prototype.contains=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.keyToIndex_.has(this.getKey_(a,b))};EQ.prototype.getKey_=function(a,b){return a+"="+b};var hKa=function(a){this.evergreenProfile_=a?new DQ(a,null,null,null):H9b};hKa.prototype.toString=function(){return""};var J9b=new hKa(null);var K9b=new i9b(!0,null),FQ=function(a){this.edgeIndexResolver_=new EQ;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=iKa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};FQ.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||J9b};var m9b=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return null!=c}):[]};FQ.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};
FQ.prototype.getSources=function(a,b){if(!a||!b)return[];if("CONTACT"===b)return[K9b];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,I9b(this.edgeIndexResolver_,a,[b]).map(function(d){return new i9b(!1,d)}));return this.sourcesCache_.get(c)};var L9b=new FQ(null);var GQ=function(a,b,c){a=void 0===a?null:a;b=void 0===b?0:b;c=void 0===c?!1:c;this.person_=a&&a.person||null;this.googleGroup_=a&&a.googleGroup||null;this.contactLabel_=a&&a.contactGroup||null;this.edgeCollection_=new FQ(this.person_);this.emailIndex_=b;this.profile_=new DQ(this.person_,this.googleGroup_,this.contactLabel_,this.edgeCollection_,this.emailIndex_);this.photoUrl_=this.phone_=this.name_=this.allIds_=null;this.text=c?this.getName()||"":this.profile_.toString()};W(GQ,l7b);g=GQ.prototype;
g.toString=function(){return"cl"===this.getType()?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=h9b(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=dKa(a.sourceIds);a=new f9b(a.personId||"",b)}else a=g9b;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=Jo("id.id",a)||"",a=new f9b("",b)):a=g9b:a=g9b;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){null===this.name_&&(this.name_=kKa(this.profile_,function(a){return!!a&&!k9b(a)}),null===this.name_&&(this.name_=M9b(this,kKa)));return this.name_};g.getEmail=function(){return this.profile_.getEmail().getField(this.emailIndex_).getValue()};g.getPhoneNumber=function(){null===this.phone_&&(this.phone_=lKa(this.profile_,function(a){return!!a&&!k9b(a)}),null===this.phone_&&(this.phone_=M9b(this,lKa)));return this.phone_};
g.getType=function(){var a=this.profile_;return a.contactLabel_?"cl":a.googleGroup_?"li":!a.hasEmail()&&a.hasPhone()?"pt":"ct"};g.getPriority=function(){return 0};g.getPhotoUrl=function(){null===this.photoUrl_&&(this.photoUrl_=mKa(this.profile_,function(a){return!!a&&!k9b(a)}),null===this.photoUrl_&&(this.photoUrl_=M9b(this,mKa)));return this.photoUrl_};g.getLoggingId=function(){return this.getAllIds_().loggingId};
var M9b=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<l9b(c).length;d++){var e=c.getCause(d);e=a.edgeCollection_.get(e).evergreenProfile_;e=b(e);if(null!==e)return e}for(d=0;d<j9b(c).length;d++)if(e=c.getSource(d),null!==e.edgeIndex_&&(e=a.edgeCollection_.get(e.edgeIndex_||0).evergreenProfile_,e=b(e),null!==e))return e;return""},N9b=function(a,b,c){c=void 0===c?!1:c;if(void 0===b?0:b)return a.map(function(q){return new GQ(q,void 0,!0)});b=new Set;var d=
[];a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=Jo("person.email",e)||Jo("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(Jo("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new GQ(e,h))}else d.push(new GQ(e))}return d};var O9b=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O){J=void 0===J?new VP:J;O=void 0===O?!1:O;this.metrics=a;this.peopleRoot=b;this.gapiApiKey=c;this.clientId=d;this.clientName=e;this.clientVersion=f||"contact_store_336195648";this.affinityType=h;this.delegatorId=k;this.timeoutMs=q;this.onAuthError=u?u:function(){};this.autocompletePageSize=x;this.rankedTargetsPageSize=y;this.peopleContainerMask=E.split(/[\s,]+/).filter(function(R){return!!R});this.peopleFieldMask=H;this.experiments=J;this.includeOnlyNames=
O};O9b.prototype.setTimeout=function(a){var b=this.timeoutMs;0<a&&(this.timeoutMs=a);return b};var HQ=function(a,b){b=Error.call(this,void 0===b?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};W(HQ,Error);var IQ=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new lQ(b);this.handler_=c;this.promise_=this.query_=null;this.state_=0;this.addressBookId_="";this.metrics_.start(this.metric_,"total");this.metrics_.start(this.metric_,"blocked")};g=IQ.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.isPending=function(){return 1==this.state_};g.getQuery=function(){return this.query_};
g.setQuery=function(a){this.query_=a};g.cancel=function(){switch(this.state_){case 1:this.promise_.cancel();break;case 0:this.state_=2,this.promise_=OPb(new YA),P9b(this,null,11)}};
g.send=function(a){var b=this;if(0!==this.state_)return this.promise_;this.metrics_.count(this.metric_);this.metrics_.stop(this.metric_,"blocked");this.metrics_.start(this.metric_,"network");this.state_=1;var c=this.buildRequest();if(c&&c.path){var d=this.config.gapiApiKey||"";d&&!RJa()&&(c.params=c.params||{},c.params.key=d);c.headers=SJa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=YPb(RPb([a,gQb(this.timeoutMs_,"TIMEOUT")]),
function(){b.state_=2;b.metrics_.stop(b.metric_,"network")}).then(function(e){return b.onResponse_(e)},function(e){return b.onError_(e)})};g.onResponse_=function(a){if("TIMEOUT"===a)this.onError_(a);else{var b=a&&a.result;if(!b||"error"in b)this.onError_(a);else{try{var c=this.processResponse(b)}catch(d){this.onError_(d);return}try{P9b(this,c,0)}finally{this.metrics_.stop(this.metric_,"total"),this.metrics_.status(this.metric_,0)}}}};
g.onError_=function(a){var b=!1,c=2,d=1;try{if("TIMEOUT"===a)c=4,d=10;else if(a instanceof YA)c=1,d=11;else if(a instanceof HQ)c=a.code,d=t7b(c);else if(a&&"object"===typeof a){var e=Jo("result.error.code",a)||a.status,f=e;f=Number(f);c=q7b.has(f)?q7b.get(f):200<=f&&300>f?0:400<=f&&500>f?9:500<=f&&600>f?13:2;d=t7b(c);b=401==e||403==e;2===c&&this.metrics_.logError("Bad status code (HTTP="+e+")",a)}else c=2,d=1}finally{this.metrics_.status(this.metric_,c),P9b(this,null,d,b)}};
var P9b=function(a,b,c,d){if(void 0===d?0:d)try{a.onAuthError_()}catch(e){throw a.metrics_.logError("AuthError handler: "+e,e),e;}try{a.handler_(b||[],c)}catch(e){throw a.metrics_.logError("Client handler: "+e,e),e;}};var Q9b=function(a,b,c){var d=(new Lo).setEventType(2).setRpcType(1).setToken(b);IQ.call(this,a,d,c);this.clientId_=a.clientId;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.token_=b;this.pageSize_=a.autocompletePageSize};W(Q9b,IQ);
Q9b.prototype.buildRequest=function(){var a={query:this.token_,client:this.clientId_,"clientVersion.clientAgent":"CONTACT_STORE","clientVersion.clientType":this.clientName_,"clientVersion.clientVersion":this.clientVersion_,pageSize:this.pageSize_};this.delegatorId_&&(a["authDelegationContext.delegationType"]="GMAIL",a["authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/autocomplete",params:a}};
Q9b.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new HQ(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new HQ(8,"RequestThrottled");if(b.containsPartialResults)throw new HQ(8,"ContainsPartialResults");}return N9b(a.results||[],this.config.includeOnlyNames)};var R9b=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new DQ(this.person_,null,null,this.edgeCollection_):H9b};g=R9b.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=h9b(this.person_));return this.allIds_};g.getId=function(){return this.getAllIds_().contactId||this.getAllIds_().profileId||this.getAllIds_().syntheticId};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};
g.getAffinity=function(){return null};g.hasAffinity=function(){return!!this.getAffinity()};g.getDeleted=function(){return!1};var S9b=new R9b(null,L9b);var T9b=function(a){a=void 0===a?null:a;this.edgeCollection_=new FQ(a);this.contact_=a?new R9b(a,this.edgeCollection_):S9b};g=T9b.prototype;g.toString=function(){return""};g.getId=function(){return this.contact_.getId()};g.getAttribute=function(a){return this.contact_.getAttribute(a)};g.hasAttribute=function(a){return this.contact_.hasAttribute(a)};g.getAffinity=function(){return this.contact_.getAffinity()};g.hasAffinity=function(){return this.contact_.hasAffinity()};g.getDeleted=function(){return this.contact_.getDeleted()};var U9b=function(a,b,c){IQ.call(this,a,(new Lo).setEventType(2).setRpcType(3).setLookupType(4),c);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.personIds_=b.filter(function(d){return!!d});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};W(U9b,IQ);
U9b.prototype.buildRequest=function(){if(!this.personIds_.length)return{};var a={personId:this.personIds_,context:{clientVersion:{clientAgent:"CONTACT_STORE",clientType:this.clientName_,clientVersion:this.clientVersion_}},mergedPersonSourceOptions:{includedProfileStates:"CORE_ID",personModelParams:{personModel:"CONTACT_CENTRIC"}},requestMask:{imageUrlType:"FIFE_URL",includeContainer:this.peopleContainerMask_,includeField:this.peopleFieldMask_}};this.delegatorId_&&(a.context.authDelegationContext=
{delegationType:"GMAIL",obfuscatedOwnerId:this.delegatorId_});return{method:"POST",path:"v2/people:batchGet",body:a}};U9b.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return"SUCCESS"==b.status}).map(function(b){return new T9b(b.person)})};var JQ=function(a,b,c,d){IQ.call(this,a,XJa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=V9b(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};W(JQ,IQ);
JQ.prototype.buildRequest=function(){if(!this.knownIds_.length||!this.lookupType_)return{};var a={"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,id:this.knownIds_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC","profileLookupOptions.emailLookupOption":"INCLUDE_EMAIL_LOOKUP_KEY","requestMask.includeContainer":this.peopleContainerMask_,
"requestMask.includeField":this.peopleFieldMask_,"requestMask.imageUrlType":"FIFE_URL",type:this.lookupType_};this.delegatorId_&&(a["context.authDelegationContext.delegationType"]="GMAIL",a["context.authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/lookup",params:a}};
JQ.prototype.processResponse=function(a){var b=a.matches,c=a.people,d=[];b&&c&&b.forEach(function(e){e=l(e.personId);for(var f=e.next();!f.done;f=e.next())(f=c[f.value])&&d.push(new T9b(f))});return d};var V9b=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};var W9b=function(a,b){IQ.call(this,a,(new Lo).setEventType(2).setRpcType(9),b);this.affinityType_=a.affinityType;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.pageSize_=a.rankedTargetsPageSize;this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask;this.peopleExtensionNames_=[];Ri(a.experiments,6,!0)&&this.peopleExtensionNames_.push("FILTER_TO_PRIMARY")};W(W9b,IQ);
W9b.prototype.buildRequest=function(){var a={"affinity.type":this.affinityType_,"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,"pagingOptions.pageSize":this.pageSize_,"requestMask.includeContainer":this.peopleContainerMask_,"requestMask.includeField":this.peopleFieldMask_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC"};
this.peopleExtensionNames_.length&&(a["extensionSet.extensionNames"]=this.peopleExtensionNames_);return{method:"GET",path:"v2/people/rankedTargets",params:a}};W9b.prototype.processResponse=function(a){return N9b(a.rankedTarget||[],this.config.includeOnlyNames,!0)};g=nKa.prototype;g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};g.getError=function(){return this.error_};g.setError=function(a){this.error_=a};g.getConfiguration=function(){return this.config_};g.setConfiguration=function(a){this.config_=a};g.getUserData=function(){return this.userData_};g.setUserData=function(a){this.userData_=a};var X9b=new Map([[1,4],[2,2],[3,1],[4,7]]),KQ=function(a,b){yA.call(this);var c=this;this.config_=a;this.queuedRequests_=new Map;this.gapiClient_=null;this.gapiFailed_=!1;this.metrics_=a.metrics;this.gapiMetric_=new lQ((new Lo).setEventType(1));this.metrics_.start(this.gapiMetric_,"total");this.metrics_.start(this.gapiMetric_,"blocked");b.then(function(d){c.metrics_.stop(c.gapiMetric_,"blocked");d?Y9b(c,d):Z9b(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);Z9b(c,5)})};
W(KQ,yA);var Y9b=function(a,b){b&&b.request?(WJa(),a.metrics_.stop(a.gapiMetric_,"total"),a.metrics_.status(a.gapiMetric_,0),a.gapiClient_=b,a.queuedRequests_.forEach(function(c,d){return c.forEach(function(e){return $9b(a,d,e)})})):Z9b(a,9)};KQ.prototype.disposeInternal=function(){for(var a=l(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())a9b(this,b.value)};
var Z9b=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},a9b=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(a$b(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},b$b=function(a,b,c){a.gapiFailed_?c.cancel():(cKa(a,b).push(c),$9b(a,b,c))},$9b=function(a,b,c){a.gapiClient_&&YPb(c.send(a.gapiClient_),function(){var d=b;d=d||"";if(a.queuedRequests_.has(d)){d=a.queuedRequests_.get(d);var e=d.indexOf(c);0<=e&&d.splice(e,1)}})},cKa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},a$b=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};KQ.prototype.loadContactRows=function(a,b,c){var d=a&&a.token||"",e=function(h,k){return c(h,f,b,a,k)},f=d?new Q9b(this.config_,d,e):new W9b(this.config_,e);b$b(this,b,f);return f};
KQ.prototype.execute=function(a){if(a.isMutate())return this.metrics_.status(new lQ((new Lo).setEventType(2).setRpcType(4)),12),c$b(a);var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(x,y){y?(x=w7b(y,h),a.response_=x):(y=new nKa(b),y.contacts_=x,x=new v7b(h),x.queryResponse_=y,x.errorCode_=y.getError(),a.response_=x)},e=this.config_.setTimeout(d$b(a));try{var f=b.emailAddresses||[];if(f.length)var h=new JQ(this.config_,1,f,d);else{var k=b.contactIds||[];if(k.length)h=
new JQ(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new U9b(this.config_,q,d);else{var u=b.syntheticIds||[];if(u.length)h=new JQ(this.config_,5,u,d);else return this.metrics_.status(new lQ((new Lo).setEventType(2)),12),c$b(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);b$b(this,c,h);return h};var c$b=function(a){var b=new ZP(function(){var c=w7b(5,b);a.response_=c});b.setQuery(a);return b};var LQ=function(a,b,c,d){Ro.call(this,a,b,c,d)};W(LQ,Ro);LQ.prototype.execute=function(a){a.isMutate()&&a.addSuccessCallback(dt(this.handleExecuteResponse_,this,a));a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};LQ.prototype.handleExecuteResponse_=function(a,b){if(b.hasChanges()){var c=b.mutateResponse_;if(a.getNotifyOnChange()||c&&c.getError())a=new iQ([b.mutateResponse_],"c"),this.dispatchEvent(a)}};var e$b=function(a,b,c){b=b||new c9b(!0,!0);Ro.call(this,a,b,"personal",c)};W(e$b,LQ);e$b.prototype.configure=function(a,b){LQ.prototype.configure.call(this,a,b)};var f$b=function(){throw Error("vd");};var MQ={},g$b={},h$b={},i$b={},j$b={},NQ=function(){throw Error("xd");};NQ.prototype.contentDir=null;NQ.prototype.getContent=function(){return this.content};NQ.prototype.toString=function(){return this.content};NQ.prototype.toSafeHtml=function(){if(this.contentKind!==MQ)throw Error("yd");return gh(this.toString())};var k$b=function(){NQ.call(this)};ft(k$b,NQ);k$b.prototype.contentKind=MQ;var l$b=function(){NQ.call(this)};ft(l$b,NQ);l$b.prototype.contentKind=g$b;l$b.prototype.contentDir=1;var OQ=function(a,b){return null!=a&&a.contentKind===b};var m$b=function(a){if(null!=a)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},Mq=function(a){return OQ(a,MQ)?a:a instanceof fh?Iq(ih(a).toString()):a instanceof fh?Iq(ih(a).toString()):Iq(String(String(a)).replace(n$b,o$b),m$b(a))},Iq=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));void 0!==d&&(c.contentDir=d);return c}}(k$b),PQ=function(a){if(null==a)throw Error("zd");return a},QQ=function(a){function b(c){this.content=
c}b.prototype=a.prototype;return function(c,d){c=String(c);if(!c)return"";c=new b(c);void 0!==d&&(c.contentDir=d);return c}}(k$b),p$b=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return(c=String(c))?new b(c):""}}(l$b),Nq=function(a){return OQ(a,MQ)?a:Iq(q$b(a,r$b),m$b(a))},s$b=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),q$b=function(a,b){if(!b)return String(a).replace(t$b,"").replace(u$b,"&lt;");a=String(a).replace(/\[/g,
"&#91;");var c=[],d=[];a=a.replace(t$b,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",u="";if("/"!=f.charAt(1)){q="<";for(var x;x=v$b.exec(f);)if(x[1]&&"dir"==x[1].toLowerCase()){if(f=x[2]){if("'"==f.charAt(0)||'"'==f.charAt(0))f=f.substr(1,f.length-2);f=f.toLowerCase();if("ltr"==f||"rtl"==f||"auto"==f)u=' dir="'+f+'"'}break}v$b.lastIndex=0}c[k]=q+h+">";d[k]=u;return"["+k+"]"}return""});a=String(a).replace(w$b,o$b);var e=x$b(c);a=a.replace(/\[(\d+)\]/g,function(f,
h){return d[h]&&c[h]?c[h].substr(0,c[h].length-1)+d[h]+">":c[h]});return a+e},RQ=function(a){return a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>")},x$b=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c];"/"==e.charAt(1)?(e=b.lastIndexOf(e),0>e?a[c]="":(a[c]=b.slice(e).reverse().join(""),b.length=e)):"<li>"==e&&0>b.lastIndexOf("</ol>")&&0>b.lastIndexOf("</ul>")?a[c]="":s$b.test(e)||b.push("</"+e.substring(1))}return b.reverse().join("")},Lq=function(a){return OQ(a,MQ)?String(q$b(a.getContent())).replace(w$b,
o$b):String(a).replace(n$b,o$b)},TQ=function(a){OQ(a,g$b)||OQ(a,h$b)?a=SQ(a):a instanceof Dc?a=SQ(Ec(a)):a instanceof Dc?a=SQ(Ec(a)):a instanceof Vt?a=SQ(di(a).toString()):a instanceof Vt?a=SQ(di(a).toString()):(a=String(a),a=y$b.test(a)?a.replace(z$b,A$b):"about:invalid#zSoyz");return a},C$b=function(a){OQ(a,g$b)||OQ(a,h$b)?a=SQ(a):a instanceof Dc?a=SQ(Ec(a)):a instanceof Dc?a=SQ(Ec(a)):a instanceof Vt?a=SQ(di(a).toString()):a instanceof Vt?a=SQ(di(a).toString()):(a=String(a),a=B$b.test(a)?a.replace(z$b,
A$b):"about:invalid#zSoyz");return a},UQ=function(a){OQ(a,j$b)?a=RQ(a.getContent()):null==a?a="":a instanceof Wt?a=RQ(rGb(a)):a instanceof Wt?a=RQ(rGb(a)):a instanceof Xt?a=RQ(tGb(a)):a instanceof Xt?a=RQ(tGb(a)):(a=String(a),a=D$b.test(a)?a:"zSoyz");return a},E$b={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\v":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;",
"\u2029":"&#8233;"},o$b=function(a){return E$b[a]},F$b={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F",
" ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F",
"\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},A$b=function(a){return F$b[a]},n$b=/[\x00\x22\x26\x27\x3c\x3e]/g,w$b=/[\x00\x22\x27\x3c\x3e]/g,z$b=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,D$b=/^(?!-*(?:expression|(?:moz-)?binding))(?:(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|(?:calc|cubic-bezier|drop-shadow|hsl|hsla|hue-rotate|invert|linear-gradient|max|min|rgb|rgba|rotate|rotateZ|translate|translate3d|translateX|translateY)\((?:[-\u0020\t,+.!#%_0-9a-zA-Z]|(?:calc|cubic-bezier|drop-shadow|hsl|hsla|hue-rotate|invert|linear-gradient|max|min|rgb|rgba|rotate|rotateZ|translate|translate3d|translateX|translateY)\([-\u0020\t,+.!#%_0-9a-zA-Z]+\))+\)|[-+]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:e-?[0-9]+)?(?:[a-z]{1,4}|%)?|!important)(?:\s*[,\u0020]\s*|$))*$/i,
y$b=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,B$b=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,G$b=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,SQ=function(a){return String(a).replace(z$b,A$b)},t$b=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,u$b=/</g,r$b={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},
v$b=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var oKa={};var VQ=function(a,b,c){Po.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;Qo(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.token_=null;this.rows_=[];this.hiliteId_=-1;this.firstRowId_=0;this.dismissTimer_=this.target_=null;this.inputToAnchorMap_={}};ft(VQ,Po);g=VQ.prototype;g.maxMatches_=10;g.getMatcher=function(){return this.matcher_};g.setMatcher=function(a){this.matcher_=a};g.getToken=function(){return this.token_};
g.handleEvent=function(a){var b=this.matcher_;if(a.target==this.renderer_)switch(a.type){case "hilite":this.hiliteId(a.row);break;case "select":var c=!1;if("number"===typeof a.row){a=a.row;var d=this.rows_[WQ(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":H$b(this);break;case "dismiss":I$b(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,dt(this.matchListener_,this)),H$b(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var J$b=function(a){for(var b=a.firstRowId_+a.rows_.length-1,c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>=a.firstRowId_&&c<b)c++;else if(-1==c)c=a.firstRowId_;else break;if(a.hiliteId(c))break}};
VQ.prototype.hiliteId=function(a){var b=WQ(this,a),c=this.rows_[b];return c&&this.matcher_.isRowDisabled&&this.matcher_.isRowDisabled(c)?!1:(this.hiliteId_=a,this.renderer_.hiliteId(a),-1!=b)};
VQ.prototype.selectHilited=function(){var a=WQ(this,this.hiliteId_);if(-1!=a){var b=this.rows_[a],c=this.selectionHandler_;if(c.activeElement_){var d=b.toString();if(c.multi_){var e=K$b(c,c.getValue(),c.getCursorPosition()),f=L$b(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);0==e||Oi(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;(it||rq)&&d.blur();d.value=f.join("");for(var h=0,k=0;k<=e;k++)h+=f[k].length;
d.focus();e=h;f=c.activeElement_;M$b(f)&&(f.selectionStart=e);f=c.activeElement_;M$b(f)&&(f.selectionEnd=e)}}else c.setValue(d);c.rowJustSelected_=!0}this.dismiss();this.dispatchEvent({type:"update",row:b,index:a});return!0}this.dismiss();this.dispatchEvent({type:"update",row:null,index:null});return!1};
VQ.prototype.dismiss=function(){this.hiliteId_=-1;this.token_=null;this.firstRowId_+=this.rows_.length;this.rows_=[];window.clearTimeout(this.dismissTimer_);this.dismissTimer_=null;this.renderer_.dismiss();this.dispatchEvent("suggestionsupdate");this.dispatchEvent("dismiss")};var I$b=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout(dt(a.dismiss,a),100))};
VQ.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var H$b=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout(dt(a.immediatelyCancelDelayedDismiss_,a),10)};VQ.prototype.disposeInternal=function(){VQ.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
VQ.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
VQ.prototype.renderRows=function(a,b){var c="object"==ob(b)&&b;b=(c?c.getPreserveHilited():b)?WQ(this,this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var d=[],e=0;e<a.length;++e)d.push({id:this.firstRowId_+e,data:a[e]});a=null;this.target_&&(a=this.inputToAnchorMap_[Ia(this.target_)]||this.target_);this.renderer_.anchorElement_=a;this.renderer_.renderRows(d,this.token_,this.target_);a=!0;c&&void 0!==c.getAutoHilite()&&(a=c.getAutoHilite());this.hiliteId_=-1;(a||0<=b)&&0!=d.length&&
this.token_&&(0<=b?this.hiliteId(this.firstRowId_+b):J$b(this));this.dispatchEvent("suggestionsupdate")};var WQ=function(a,b){b-=a.firstRowId_;return 0>b||b>=a.rows_.length?-1:b};VQ.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};VQ.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){yc(this.inputToAnchorMap_,Ia(c))},this)};VQ.prototype.update=function(a){this.selectionHandler_.update(a)};var N$b=function(a,b){var c=0,d=0;M$b(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},M$b=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};var Q$b=function(a,b,c,d,e,f){if(tq&&e)return O$b(a);if(e&&!d)return!1;if(!it){"number"===typeof b&&(b=P$b(b));var h=17==b||18==b||tq&&91==b;if((!c||tq)&&h||tq&&16==b&&(d||f))return!1}if((jt||ht)&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(rq&&d&&b==a)return!1;switch(a){case 13:return it?f||e?!1:!(c&&d):!0;case 27:return!(jt||ht||it)}return it&&(d||e||f)?!1:O$b(a)},O$b=function(a){if(48<=a&&57>=a||96<=a&&106>=
a||65<=a&&90>=a||(jt||ht)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:return it;default:return!1}},P$b=function(a){if(it)a=R$b(a);else if(tq&&jt)switch(a){case 93:a=91}return a},R$b=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};var S$b=function(a,b,c,d){BA.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};ft(S$b,BA);var XQ=function(a,b){Po.call(this);a&&this.attach(a,b)};ft(XQ,Po);g=XQ.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var T$b={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},U$b={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},V$b=tq&&it;g=XQ.prototype;
g.handleKeyDown_=function(a){(jt||ht)&&(17==this.lastKey_&&!a.ctrlKey||18==this.lastKey_&&!a.altKey||tq&&91==this.lastKey_&&!a.metaKey)&&this.resetState();-1==this.lastKey_&&(a.ctrlKey&&17!=a.keyCode?this.lastKey_=17:a.altKey&&18!=a.keyCode?this.lastKey_=18:a.metaKey&&91!=a.keyCode&&(this.lastKey_=91));Q$b(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=P$b(a.keyCode),V$b&&(this.altKey_=a.altKey)):this.handleEvent(a)};
g.resetState=function(){this.keyCode_=this.lastKey_=-1};g.handleKeyup_=function(a){this.resetState();this.altKey_=a.altKey};
g.handleEvent=function(a){var b=a.event_,c=b.altKey;if(rq&&"keypress"==a.type){var d=this.keyCode_;var e=13!=d&&27!=d?b.keyCode:0}else(jt||ht)&&"keypress"==a.type?(d=this.keyCode_,e=0<=b.charCode&&63232>b.charCode&&O$b(d)?b.charCode:0):("keypress"==a.type?(V$b&&(c=this.altKey_),b.keyCode==b.charCode?32>b.keyCode?(d=b.keyCode,e=0):(d=this.keyCode_,e=b.charCode):(d=b.keyCode||this.keyCode_,e=b.charCode||0)):(d=b.keyCode||this.keyCode_,e=b.charCode||0),tq&&63==e&&224==d&&(d=191));var f=d=P$b(d);d?63232<=
d&&d in T$b?f=T$b[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in U$b&&(f=U$b[b.keyIdentifier]);if(!it||"keypress"!=a.type||Q$b(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new S$b(f,e,a,b),b.altKey=c,this.dispatchEvent(b)};g.getElement=function(){return this.element_};
g.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=Qo(this.element_,"keypress",this,b);this.keyDownKey_=Qo(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=Qo(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(HA(this.keyPressKey_),HA(this.keyDownKey_),HA(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){XQ.superClass_.disposeInternal.call(this);this.detach()};var YQ=function(a,b,c,d){yA.call(this);d=d||150;this.multi_=null!=c?c:!0;this.separators_=a||",;";this.defaultSeparator_=this.separators_.charAt(0);a=this.multi_?"[\\s"+this.separators_+"]+":"[\\s]+";this.trimmer_=new RegExp("^"+a+"|"+a+"$","g");this.separatorCheck_=new RegExp("\\s*["+this.separators_+"]$");this.literals_=b||"";this.preventDefaultOnTab_=this.multi_;this.timer_=0<d?new ZA(d):null;this.eh_=new xq(this);this.activateHandler_=new xq(this);this.keyHandler_=new XQ;this.lastKeyCode_=-1};
ft(YQ,yA);g=YQ.prototype;g.activeElement_=null;g.lastValue_="";g.waitingForIme_=!1;g.rowJustSelected_=!1;g.getValue=function(){return this.activeElement_.value};g.setValue=function(a){this.activeElement_.value=a};g.getCursorPosition=function(){return N$b(this.activeElement_,!0)[0]};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];SA(c)&&(nE(c,"combobox"),oE(c,"autocomplete","list"));this.eh_.listen(c,"focus",this.handleFocus);this.eh_.listen(c,"blur",this.handleBlur);if(!this.activeElement_&&(this.activateHandler_.listen(c,"keydown",this.onKeyDownOnInactiveElement_),SA(c))){var d=KA(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&W$b(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];SA(c)&&(c.removeAttribute("role"),c.removeAttribute("aria-autocomplete"));c==this.activeElement_&&this.handleBlur();this.eh_.unlisten(c,"focus",this.handleFocus);this.eh_.unlisten(c,"blur",this.handleBlur);this.activeElement_||this.activateHandler_.unlisten(c,"keydown",this.onKeyDownOnInactiveElement_)}};
g.disposeInternal=function(){YQ.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();Zh(this.timer_)};
var Y$b=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){J$b(a.ac_);b.preventDefault();return}if(!a.multi_){a.update(!0);b.preventDefault();return}break;case 38:if(a.ac_.isOpen()){a:{a=a.ac_;for(var c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>a.firstRowId_)c--;else break;if(a.hiliteId(c))break a}}b.preventDefault();return}break;case 9:if(!a.ac_.isOpen()||b.shiftKey)a.ac_.dismiss();else if(a.update(),a.ac_.selectHilited()&&a.preventDefaultOnTab_){b.preventDefault();return}break;case 13:if(a.ac_.isOpen()){if(a.update(),
a.ac_.selectHilited()){b.preventDefault();b.stopPropagation();return}}else a.ac_.dismiss();break;case 27:if(a.ac_.isOpen()){a.ac_.dismiss();b.preventDefault();b.stopPropagation();return}break;case 229:if(!a.waitingForIme_){a.waitingForIme_||(a.eh_.listen(a.activeElement_,"keyup",a.onKeyUp_),a.eh_.listen(a.activeElement_,"keypress",a.onKeyPress_),a.waitingForIme_=!0);return}}X$b(a,b)},X$b=function(a,b){var c=a.multi_&&b.charCode&&-1!=a.separators_.indexOf(String.fromCharCode(b.charCode));c&&a.update();
c&&a.ac_.selectHilited()&&b.preventDefault()};YQ.prototype.handleKeyUp=function(){return!1};YQ.prototype.handleFocus=function(a){W$b(this,a.target||null)};
var W$b=function(a,b){a.activateHandler_.removeAll();a.ac_&&H$b(a.ac_);b!=a.activeElement_&&(a.activeElement_=b,a.timer_&&(a.timer_.start(),a.eh_.listen(a.timer_,"tick",a.onTick_)),a.lastValue_=a.getValue(),a.keyHandler_.attach(a.activeElement_),a.eh_.listen(a.keyHandler_,"key",a.onKey_),a.eh_.listen(a.activeElement_,"mousedown",a.onMouseDown_),rq&&a.eh_.listen(a.activeElement_,"keypress",a.onIeKeyPress_))};g=YQ.prototype;
g.handleBlur=function(){this.activeElement_&&(this.eh_.unlisten(this.keyHandler_,"key",this.onKey_),this.keyHandler_.detach(),this.eh_.unlisten(this.activeElement_,"keyup",this.handleKeyUp),this.eh_.unlisten(this.activeElement_,"mousedown",this.onMouseDown_),rq&&this.eh_.unlisten(this.activeElement_,"keypress",this.onIeKeyPress_),this.waitingForIme_&&Z$b(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&I$b(this.ac_))};
g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&Y$b(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&229!=this.lastKeyCode_&&Z$b(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&Z$b(this)};g.onMouseDown_=function(){};
var Z$b=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};YQ.prototype.onIeKeyPress_=function(a){X$b(this,a)};
YQ.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=L$b(this,b)[K$b(this,b,a)];a=this.trimmer_?String(a).replace(this.trimmer_,""):a;this.ac_&&(this.ac_.setTarget(this.activeElement_),this.ac_.setToken(a,this.getValue()))}this.lastValue_=this.getValue()}this.rowJustSelected_=!1};
var K$b=function(a,b,c){a=L$b(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;d<a.length&&e<=c;d++)e+=a[d].length,b=d;return b},L$b=function(a,b){if(!a.multi_)return[b];b=String(b).split("");for(var c=[],d=[],e=0,f=!1;e<b.length;e++)a.literals_&&-1!=a.literals_.indexOf(b[e])?(f||(c.push(d.join("")),d.length=0),d.push(b[e]),f=!f):f||-1==a.separators_.indexOf(b[e])?d.push(b[e]):(d.push(b[e]),c.push(d.join("")),d.length=0);c.push(d.join(""));return c};var $$b=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},aac=function(a){return a.classList?a.classList:$$b(a).match(/\S+/g)||[]},bac=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},cac=function(a,b){return a.classList?a.classList.contains(b):va(aac(a),b)},dac=function(a,b){if(a.classList)a.classList.add(b);else if(!cac(a,b)){var c=$$b(a);bac(a,c+(0<c.length?" "+b:b))}},ZQ=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){dac(a,e)});else{var c={};Array.prototype.forEach.call(aac(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=0<b.length?" "+d:d;bac(a,b)}},eac=function(a,b){a.classList?a.classList.remove(b):cac(a,b)&&bac(a,Array.prototype.filter.call(aac(a),function(c){return c!=b}).join(" "))},fac=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){eac(a,c)}):bac(a,Array.prototype.filter.call(aac(a),function(c){return!va(b,c)}).join(" "))};var gac=function(a,b){if(b&&a in b)return a;var c=jt?"Webkit":it?"Moz":rq?"ms":null;return c?(c=c.toLowerCase(),a=c+fi(a),void 0===b||a in b?a:null):null};var $Q=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};g=$Q.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new $Q(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof $Q?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.expand=function(a,b,c,d){Fa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.translate=function(a,b){a instanceof Bq?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,"number"===typeof b&&(this.top+=b,this.bottom+=b));return this};g.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var aR=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};aR.prototype.clone=function(){return new aR(this.left,this.top,this.width,this.height)};var d6a=function(a){return new aR(a.left,a.top,a.right-a.left,a.bottom-a.top)};
aR.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};var hac=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new aR(c,e,d-c,a-e)}return null};
g=aR.prototype;g.contains=function(a){return a instanceof Bq?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};g.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};g.getSize=function(){return new IA(this.width,this.height)};
g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.translate=function(a,b){a instanceof Bq?(this.left+=a.x,this.top+=a.y):(this.left+=a,"number"===typeof b&&(this.top+=b));return this};g.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var bR=function(a,b){var c=KA(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},ip=function(a,b){return bR(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Eq=function(a,b,c){if(b instanceof Bq){var d=b.x;b=b.y}else d=b,b=c;a.style.left=cR(d,!1);a.style.top=cR(b,!1)},iac=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},M5a=function(a){if(rq&&!(8<=
Number(kt)))return a.offsetParent;var b=KA(a),c=ip(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=ip(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},Aq=function(a){for(var b=new $Q(0,Infinity,Infinity,0),c=So(a),d=c.document_.body,e=c.document_.documentElement,f=OA(c.document_);a=
M5a(a);)if(!(rq&&0==a.clientWidth||jt&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=ip(a,"overflow")){var h=dR(a),k=new Bq(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=
b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},N5a=function(a,b){b=b||OA(document);var c=b||OA(document);var d=dR(a),e=dR(c);if(!rq||9<=Number(kt)){h=bR(c,"borderLeftWidth");var f=bR(c,"borderRightWidth");k=bR(c,"borderTopWidth");q=bR(c,"borderBottomWidth");f=new $Q(parseFloat(k),parseFloat(f),parseFloat(q),parseFloat(h))}else{var h=jac(c,"borderLeft");f=jac(c,"borderRight");var k=jac(c,"borderTop"),q=jac(c,"borderBottom");f=new $Q(k,f,q,h)}c==OA(document)?(h=d.x-c.scrollLeft,d=d.y-c.scrollTop,
!rq||10<=Number(kt)||(h+=f.left,d+=f.top)):(h=d.x-e.x-f.left,d=d.y-e.y-f.top);a=kac(a);e=c.clientHeight-a.height;f=c.scrollLeft;k=c.scrollTop;f+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-e,0));c=new Bq(f,k);b.scrollLeft=c.x;b.scrollTop=c.y},dR=function(a){var b=KA(a),c=new Bq(0,0);var d=b?KA(b):document;d=!rq||9<=Number(kt)||nPb(So(d).document_)?d.documentElement:d.body;if(a==d)return c;a=iac(a);b=PA(So(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},e6a=function(a,
b,c){if(b.document_!=c.document_){var d=b.document_.body;c=c.getWindow();var e=new Bq(0,0),f=QA(KA(d));if(zEb(f,"parent")){var h=d;do{if(f==c)var k=dR(h);else k=iac(h),k=new Bq(k.left,k.top);e.x+=k.x;e.y+=k.y}while(f&&f!=c&&f!=f.parent&&(h=f.frameElement)&&(f=f.parent))}d=Cq(e,dR(d));!rq||9<=Number(kt)||nPb(b.document_)||(d=Cq(d,PA(b.document_)));a.left+=d.x;a.top+=d.y}},lac=function(a,b,c){if(b instanceof IA)c=b.height,b=b.width;else if(void 0==c)throw Error("Cd");a.style.width=cR(b,!0);a.style.height=
cR(c,!0)},cR=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Dq=function(a){var b=kac;if("none"!=ip(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a},kac=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=jt&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=iac(a),new IA(a.right-a.left,a.bottom-a.top)):new IA(b,c)},zq=
function(a){var b=dR(a);a=Dq(a);return new aR(b.x,b.y,a.width,a.height)},mac=function(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},eR=function(a,b){a.style.display=b?"":"none"},fR=function(a){return"rtl"==ip(a,"direction")},nac=it?"MozUserSelect":jt||ht?"WebkitUserSelect":null,oac=function(a){var b=a.getElementsByTagName("*");if(nac){var c="none";a.style&&(a.style[nac]=c);if(b){a=0;for(var d;d=b[a];a++)d.style&&
(d.style[nac]=c)}}else if(rq&&(c="on",a.setAttribute("unselectable",c),b))for(a=0;d=b[a];a++)d.setAttribute("unselectable",c)},j6a=function(a,b){a=a.style;it?a.MozBoxSizing="border-box":jt?a.WebkitBoxSizing="border-box":a.boxSizing="border-box";a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"},pac=function(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;b=a.style.pixelLeft;a.style.left=
c;a.runtimeStyle.left=d;return+b},qac=function(a,b){return(b=a.currentStyle?a.currentStyle[b]:null)?pac(a,b):0},rac=function(a){if(rq){var b=qac(a,"marginLeft"),c=qac(a,"marginRight"),d=qac(a,"marginTop");a=qac(a,"marginBottom");return new $Q(d,c,a,b)}b=bR(a,"marginLeft");c=bR(a,"marginRight");d=bR(a,"marginTop");a=bR(a,"marginBottom");return new $Q(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))},sac={thin:2,medium:4,thick:6},jac=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+
"Style"]:null))return 0;b=a.currentStyle?a.currentStyle[b+"Width"]:null;return b in sac?sac[b]:pac(a,b)};var tac=function(){if(CEb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(fa()))?a[1]:"0"}return tq?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(fa()))?a[0].replace(/_/g,"."):"10"):FEb?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(fa()))?a[1]:""):GEb||HEb||IEb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(fa()))?a[1].replace(/_/g,"."):""):""}();var gR=function(a){return(a=a.exec(fa()))?a[1]:""},uac=function(){if(SEb)return gR(/Firefox\/([0-9.]+)/);if(rq||ht||AEb)return PEb;if(WEb){if(ra()||laa()){var a=gR(/CriOS\/([0-9.]+)/);if(a)return a}return gR(/Chrome\/([0-9.]+)/)}if(XEb&&!ra())return gR(/Version\/([0-9.]+)/);if(TEb||UEb){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(fa()))return a[1]+"."+a[2]}else if(VEb)return(a=gR(/Android\s+([0-9.]+)/))?a:gR(/Version\/([0-9.]+)/);return""}();var c6a=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=ip(a,"position")){var c=dR(a);if(!b){b=fR(a);var d;if(d=b){d=XEb&&0<=rEb(uac,10);var e;if(e=JEb)e=0<=rEb(tac,10);var f=WEb&&0<=rEb(uac,85);d=it||d||e||f}b=d?-a.scrollLeft:b&&!Pj&&"visible"!=ip(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=Cq(c,new Bq(b,a.scrollTop))}}}return c||new Bq},g6a=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var h=0;if(d||0!=c)c&4?a.x-=b.width+(d?
d.right:0):c&2?a.x-=b.width/2:d&&(a.x+=d.left),c&1?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){h=a;c=b;d=0;65==(f&65)&&(h.x<e.left||h.x>=e.right)&&(f&=-2);132==(f&132)&&(h.y<e.top||h.y>=e.bottom)&&(f&=-5);h.x<e.left&&f&1&&(h.x=e.left,d|=1);if(f&16){var k=h.x;h.x<e.left&&(h.x=e.left,d|=4);h.x+c.width>e.right&&(c.width=Math.min(e.right-h.x,k+c.width-e.left),c.width=Math.max(c.width,0),d|=4)}h.x+c.width>e.right&&f&1&&(h.x=Math.max(e.right-c.width,e.left),d|=1);f&2&&(d|=(h.x<e.left?16:0)|
(h.x+c.width>e.right?32:0));h.y<e.top&&f&4&&(h.y=e.top,d|=2);f&32&&(k=h.y,h.y<e.top&&(h.y=e.top,d|=8),h.y+c.height>e.bottom&&(c.height=Math.min(e.bottom-h.y,k+c.height-e.top),c.height=Math.max(c.height,0),d|=8));h.y+c.height>e.bottom&&f&4&&(h.y=Math.max(e.bottom-c.height,e.top),d|=2);f&8&&(d|=(h.y<e.top?64:0)|(h.y+c.height>e.bottom?128:0));e=d}else e=256;h=e}e=new aR(0,0,0,0);e.left=a.x;e.top=a.y;e.width=b.width;e.height=b.height;return{rect:e,status:h}},f6a=function(a,b){return(b&8&&fR(a)?b^4:b)&
-9};var uq=function(){};uq.instance_=void 0;uq.getInstance=function(){return uq.instance_?uq.instance_:uq.instance_=new uq};uq.prototype.nextId_=0;uq.prototype.idPrefix_="";uq.prototype.setIdPrefix=function(a){this.idPrefix_=a};var qq=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};var hR=function(a,b,c,d){Po.call(this);this.parent_=a||document.body;this.dom_=So(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.highlightedClassName="ac-highlighted";this.customRenderer_=b||null;this.useStandardHighlighting_=null!=d?d:!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c};ft(hR,Po);hR.prototype.getElement=function(){return this.element_};
hR.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=Date.now();this.target_=c;this.rowDivs_=[];vac(this)};hR.prototype.dismiss=function(){this.visible_&&(this.visible_=!1,wac(this,!1),eR(this.element_,!1))};hR.prototype.show=function(){this.visible_||(this.visible_=!0,wac(this,!0),eR(this.element_,!0))};
var wac=function(a,b){a.target_&&(oE(a.target_,"haspopup",b),oE(a.element_,"expanded",b),oE(a.target_,"expanded",b),b?oE(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),pE(a.target_,null)))};hR.prototype.isVisible=function(){return this.visible_};
var xac=function(a,b){var c=0<=b&&b<a.rows_.length?a.rows_[b]:void 0,d=0<=b&&b<a.rowDivs_.length?a.rowDivs_[b]:void 0;a.dispatchEvent({type:"rowhilite",rowNode:d,row:c?c.data:null})&&(0<=a.hilitedRow_&&fac(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(ZQ(d,["ac-active","active"]),a.target_&&pE(a.target_,d),N5a(d,a.element_)))};hR.prototype.hiliteId=function(a){if(-1==a)xac(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){xac(this,b);break}};
var yac=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;ZQ(b,ui(a.className).split(" "));nE(b,"listbox");b.id=qq(uq.getInstance());a.dom_.appendChild(a.parent_,b);Qo(b,"click",a.handleClick_,!1,a);Qo(b,"mousedown",a.handleMouseDown_,!1,a);Qo(b,"mouseover",a.handleMouseOver_,!1,a)}},vac=function(a){yac(a);a.widthProvider_&&(a.element_.style.minWidth=a.widthProvider_.clientWidth-0+"px");a.maxWidthProvider_&&(a.element_.style.maxWidth=a.maxWidthProvider_.clientWidth-
0+"px");a.rowDivs_.length=0;a.dom_.removeChildren(a.element_);a.customRenderer_&&a.customRenderer_.render?a.customRenderer_.render(a,a.element_,a.rows_,a.token_):a.rows_.forEach(function(b){var c=this.token_,d=this.dom_.createDom("DIV",{className:"ac-row",id:qq(uq.getInstance())});nE(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):TA(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,zac(this,d,c));dac(d,
"ac-row");this.rowDivs_.push(d);b=d;this.dom_.appendChild(this.element_,b)},a);0==a.rows_.length?a.dismiss():(a.show(),a.reposition(),oac(a.element_))};
hR.prototype.reposition=function(){if(this.target_&&this.reposition_){var a=this.anchorElement_||this.target_;var b=this.rightAlign_?5:1;var c=this.element_,d=b^1,e=c6a(c),f=zq(a),h=Aq(a);h&&f.intersection(d6a(h));e6a(f,So(a),So(c));a=f6a(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new Bq(b,f.top+(a&1?f.height:0));a=Cq(a,e);if(f=Aq(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=f6a(c,d);d=Dq(c);b=d.clone();e=g6a(e,b,a,null,f,65);e.status&496||(f=e.rect,Eq(c,new Bq(f.left,
f.top)),b=e.rect.getSize(),i6a(d,b)||j6a(c,b))}};hR.prototype.getTarget=function(){return this.target_||null};hR.prototype.disposeInternal=function(){this.element_&&(GA(this.element_,"click",this.handleClick_,!1,this),GA(this.element_,"mousedown",this.handleMouseDown_,!1,this),GA(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);Zh(this.animation_);this.parent_=null;hR.superClass_.disposeInternal.call(this)};
var zac=function(a,b,c){if(a.highlightAllTokens_||!a.wasHighlightedAtLeastOnce_)if(3==b.nodeType){var d=null;Array.isArray(c)&&1<c.length&&!a.highlightAllTokens_&&(d=c.slice(1));c=Aac(a,c);if(0!=c.length){var e=b.nodeValue,f=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=f.exec(e),q=0;k;)q++,c.push(e.substring(h,k.index)),c.push(e.substring(k.index,f.lastIndex)),h=f.lastIndex,k=f.exec(e);c.push(e.substring(h));if(1<c.length){d=a.highlightAllTokens_?q:1;for(e=0;e<d;e++)f=2*e,b.nodeValue=c[f],h=
a.dom_.createElement("B"),h.className=a.highlightedClassName,a.dom_.appendChild(h,a.dom_.createTextNode(c[f+1])),h=b.parentNode.insertBefore(h,b.nextSibling),b.parentNode.insertBefore(a.dom_.createTextNode(""),h.nextSibling),b=h.nextSibling;c=c.slice(2*d);b.nodeValue=c.join("");a.wasHighlightedAtLeastOnce_=!0}else d&&zac(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,zac(a,b,c),b=d},Aac=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!Oi(Ni(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(Wn).join("|"):(c=GGb(b),c=Wn(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=0<b.length?Wn(b[0]):"":/^\W/.test(b)||(c=Wn(b));return c},Bac=function(a,b){for(;b&&b!=a.element_&&!cac(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};hR.prototype.handleClick_=function(a){var b=Bac(this,a.target);0<=b&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};hR.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
hR.prototype.handleMouseOver_=function(a){a=Bac(this,a.target);0<=a&&!(300>Date.now()-this.startRenderingRows_)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};var iR=function(a,b,c,d,e,f,h,k,q,u){f=f||new YQ(",;",'"');h=new hR(h||null,q||this,u);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;VQ.call(this,this,h,f);this.inputHandler_=this.selectionHandler_;this.inputHandler_.ac_=this;this.contactStore_=a;this.addressBookId_=c;this.filter_=d||null;this.maxMatches_=e||15;this.ownsContactStore_=!!k};ft(iR,VQ);
var Dac=function(a,b,c,d,e,f,h){b=new iR(null,b,void 0,f,c,d,e,void 0,void 0,h);tC(a);dt(Cac,null,b,!0);throw Error("wd");},Eac=function(a,b,c,d,e,f,h){b=new iR(null,b,void 0,f,c,d,e,void 0,void 0,h);c=Cac;e=a.getClientInfo();d=(f=Ri(e,10)||Ri(a.getExperiments(),5,!0))?new M8b(void 0,K8b(a)):new yQ(void 0,K8b(a));h=pr(new U7b(a,1));var k=a.getUserInfo().getEnvType()||1;var q=X9b.get(k)||4;q=TJa("people-pa",void 0===q?0:q);k=4===k?Hi(a.getClientInfo(),2)||"":Hi(a.getClientInfo(),1)||"";var u=Hi(a.getClientInfo(),
4),x=Hi(a.getClientInfo(),5),y=Hi(a.getClientInfo(),6)||"",E=a.getClientInfo().getAffinityType()||"",H=Ej(a.getUserInfo(),2),J=a.getAuthErrorHandler(),O=hi(a.getClientInfo(),8,3E4),R=Ri(a.getClientInfo(),17,!1);h=new O9b(h,q,k,u,x,y,E,H,O,J,hi(a.getClientInfo(),13,15),hi(a.getClientInfo(),14,500),Hi(a.getClientInfo(),15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),Hi(a.getClientInfo(),16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),a.getExperiments(),
R);a=new KQ(h,k7b(a));h=new e$b(a);h.configure(null,"Personal Contacts");d.addAddressBook(h,!0);f&&(a=new BQ(a,null,!!Ri(e,11)),a.configure(null,"Domain Contacts"),d.addAddressBook(a,!0));c(b,!0,d);return b},Cac=function(a,b,c){b&&c.loadContactRows(C7b,function(){});Fac(a,c)};iR.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&Zh(this.contactStore_);iR.superClass_.disposeInternal.call(this)};
var Fac=function(a,b){a.contactStore_=b;a.ownsContactStore_=!0;a.savedQuery_&&a.savedHandler_&&(a.currentRequest_=a.contactStore_.loadContactRows(a.savedQuery_,a.savedHandler_),a.savedQuery_=null,a.savedHandler_=null)};g=iR.prototype;g.savedQuery_=null;g.savedHandler_=null;g.inputHandler_=null;g.includeGroups_=!0;g.isRowDisabled=function(a){return!!a.rowDisabled};
g.requestMatchingRows=function(a,b,c){a={token:a,maxMatches:b,includeContacts:!0,includeGroups:this.includeGroups_,matchType:1,matchFieldList:A7b,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};b=dt(this.handleAutoCompleteContacts_,this,c);if(a.token&&""!=a.token)this.contactStore_?(this.currentRequest_&&(this.currentRequest_.cancel(),this.currentRequest_=null),this.currentRequest_=this.contactStore_.loadContactRows(a,
b)):(this.savedQuery_=a,this.savedHandler_=b);else{c=new ZP;var d=[];this.filter_&&(d=this.filter_(d,a.token));a=et(b,d,c,null,a);c.response_=a}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){iR.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){iR.superClass_.dismiss.call(this)};
g.renderRow=function(a,b,c){b=b={displayName:a.data.text,newSection:!!(a.data.flags&1)};a=b.displayName;b=b.newSection;(a=Iq('<div class="'+Lq("goog-contacts-ui-autocomplete-name-nochat")+(b?" "+Lq("goog-contacts-ui-autocomplete-new-section"):"")+'">'+Mq(a)+"</div>"))&&a.renderElement&&c?a.renderElement(c):(a=pKa(a),qKa(c,a))};g.selectHilited=function(){var a=WQ(this,this.hiliteId_);return-1!=a&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):iR.superClass_.selectHilited.call(this)};
g.fireSelectionEvent=function(a){this.dispatchEvent(new Gac(a))};var Gac=function(a){AA.call(this,"g");this.row=a};ft(Gac,AA);fEb("createAutoComplete",function(a,b,c,d,e,f,h,k,q,u){d&&(b=b+d+"/");b=f$b(tC(b));f&&b.loadContactRows(C7b,function(){});c=new iR(b,c,void 0,q,e,k,u,!0);c.attachInputs(LA(document,a));return c});var jR=function(){this.eventHandler_=new xq(this);jR.prototype.addInput=jR.prototype.addInput;jR.prototype.removeInput=jR.prototype.removeInput;jR.prototype.setTarget=jR.prototype.setTarget},Hac=function(a,b){var c=new jR;c.create(a,b);return c};g=jR.prototype;
g.create=function(a,b){a=LA(document,a);this.acWidget_=b.contactStoreConfig?Eac(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign):Dac(b.serverBase,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign);"groups"in b&&(this.acWidget_.includeGroups_=b.groups);var c=b.onComplete;"function"===typeof c&&this.eventHandler_.listen(this.acWidget_,"update",function(d){d.row&&c.call(da,d.target.getTarget())});
this.addInput(a)};g.dispose=function(){epa(this.acWidget_,this.eventHandler_)};g.setTarget=function(a){this.acWidget_.setTarget(a)};g.addInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.attachInputs(a[b]);else this.acWidget_.inputHandler_.attachInputs(a)};g.removeInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.detachInputs(a[b]);else this.acWidget_.inputHandler_.detachInputs(a)};g.acWidget_=null;
da._EmailAc_create=Hac;var Iac=function(a,b){return new Wo("/",a,void 0,void 0,void 0,void 0,b)};Wo.prototype.setLocale=function(){};var Jac=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};Jac.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
Wo.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("Ed");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)Kac(this,this.acWrappers_[b]);this.focusedElement_&&(a=Ia(this.focusedElement_),(a=this.inputToAcWrapper_[a])&&a.setTarget(this.focusedElement_));for(var c in this.acWrappers_)for(a=[].concat(p(this.acWrappers_[c].pendingInputs.values())),b=1;b<a.length;b++)GA(a[b],"focus",this.onTargetFocus_,!1,this)};
var Kac=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=dt(a.onCompleteCallback_,a);c.ua=a.useApiary_;c.acd=a.apiaryClientDeferred_;c.onAuthError=a.onAuthError_;c.tg=a.testGaia_;c.contactStoreConfig=a.contactStoreConfig_;for(var d in a.commonAcParams_)c[d]=a.commonAcParams_[d];a=[].concat(p(b.pendingInputs.values()));b.emailac=Hac(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=Wo.prototype;
g.attachAutocomplete=function(a,b,c){a=LA(document,a);var d=b||{};b=Ia(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new Jac(d),this.acWrappers_[c]=e);d=e;c=a;d.emailac?d.emailac.addInput(c):d.pendingInputs.add(c);this.inputToAcWrapper_[b]=e;e.emailac||(this.emailAcInitialized_?Kac(this,e):Qo(a,"focus",this.onTargetFocus_,!1,this))};g.onTargetFocus_=function(a){this.focusedElement_=a.target;this.emailAcInitialized_||this.initAutocomplete()};
g.onCompleteCallback_=function(a){var b=this.onAcCompleteListeners_[Ia(a)];b&&b(a)};g.detachAutocomplete=function(a){a=LA(document,a);GA(a,"focus",this.onTargetFocus_,!1,this);var b=Ia(a);delete this.onAcCompleteListeners_[b];var c=this.inputToAcWrapper_[b];c&&(c.emailac?c.emailac.removeInput(a):c.pendingInputs.delete(a),delete this.inputToAcWrapper_[b])};g.attachAutocompleteTo=function(a,b){this.initAutocomplete(b);this.attachAutocomplete(a,b)};fEb("goog.NewContactTools",Wo);
fEb("goog.NewContactTools.create",Iac);Wo.prototype.setLocale=Wo.prototype.setLocale;Wo.prototype.attachAutocompleteTo=Wo.prototype.attachAutocompleteTo;Wo.prototype.initAutocomplete=Wo.prototype.initAutocomplete;Wo.prototype.attachAutocomplete=Wo.prototype.attachAutocomplete;Wo.prototype.detachAutocomplete=Wo.prototype.detachAutocomplete;var uKa=function(a){this.rows_=a||[]};uKa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(""!=a)for(var f=new RegExp("(^|\\W+)"+Wn(a),"i"),h=0;h<d.length&&e.length<b;h++){var k=d[h];String(k).match(f)&&e.push(k)}0==e.length&&(e=Lac(a,b,d));c(a,e)};
var tKa=function(a,b,c){return Lac(b,c,a.rows_)},Lac=function(a,b,c){for(var d=[],e=0;e<c.length;e++){var f=c[e],h=a.toLowerCase(),k=String(f).toLowerCase(),q=0;if(-1!=k.indexOf(h))q=parseInt((k.indexOf(h)/4).toString(),10);else for(var u=h.split(""),x=-1,y=10,E=0,H;H=u[E];E++)H=k.indexOf(H),H>x?(x=H-x-1,x>y-5&&(x=y-5),q+=x,x=H):(q+=y,y+=5);q<6*h.length&&d.push({str:f,score:q,index:e})}d.sort(function(J,O){var R=J.score-O.score;return 0!=R?R:J.index-O.index});a=[];for(E=0;E<b&&E<d.length;E++)a.push(d[E].str);
return a};var kR=function(a,b,c,d,e){var f=this;this.activeSession=c;this.firstPartyAuthHelper=e;this.contactTools=null;this.subscription=new B.Subscription;this.acReadyDeferred=Rj();if(a.gapi){var h=a.gapi;h.load("client",function(){h.config.update("googleapis.config/auth/useFirstPartyAuth",!0);h.config.update("googleapis.config/auth/useFirstPartyAuthV2",!0);var k="QA"===f.activeSession.getEnvironmentType();k&&h.config.update("googleapis.config/root-1p","https://content-googleapis-test.sandbox.google.com");
var q="0",u=/\/u\/(\d+)\//.exec(b.absUrl());u&&(q=u[1]);h.config.update("googleapis.config/sessionIndex",q);f.acReadyDeferred.resolve(void 0);f.contactTools=d.create(k,function(){f7b(f.firstPartyAuthHelper)});f.contactTools.initAutocomplete()})}};kR.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
kR.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return vKa(h,k,c)},f=new B.Subscription;this.acReadyDeferred.promise.then(function(){d.contactTools&&(d.contactTools.attachAutocomplete(a,{ac2:!0,groups:!0,extendedInterface:!1,filter:e,cacheBusting:[c]},b),f.add(function(){var h;null==(h=d.contactTools)||h.detachAutocomplete(a)}))});return f};kR.\u0275fac=function(a){return new (a||kR)(n(qF),n(wE),n(Us),n(lR),n(TP))};kR.\u0275prov=$c({token:kR,factory:kR.\u0275fac,providedIn:"root"});
var lR=function(){};lR.prototype.create=function(a,b){var c=new WP,d=c.getUserInfo();rj(d,6,a?5:1);a=c.getExperiments();a=mj(a,5,!0);a=mj(a,1,!0);a=mj(a,3,!0);mj(a,2,!0);c.setAuthErrorHandler(b);return Iac("xapi",c)};lR.\u0275fac=function(a){return new (a||lR)};lR.\u0275prov=$c({token:lR,factory:lR.\u0275fac,providedIn:"root"});var mR=function(a,b,c){Y.call(this);this.element=a;this.focusContacts=b;this.activeSession=c;this.autocompleteActive=new Yu;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement};W(mR,Y);
mR.prototype.ngOnInit=function(){var a=this;this.$element.setAttribute("autocomplete","contact-autocomplete-username");this.$element.setAttribute("spellcheck","off");this.$element.setAttribute("aria-autocomplete","list");this.$element.setAttribute("role","combobox");this.$element.setAttribute("name","ac-workaround-"+Zt());if(!this.activeSession.isAnonymous()){if("SINGLE"===this.fieldType)var b=function(){a.$element.value=Mac(Nac(a.$element.value));a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));
a.$element.dispatchEvent(new Event("input"))};else if("MULTI"===this.fieldType)b=function(){for(var d="",e=[],f=a.$element,h=l(f.value.split(",")),k=h.next();!k.done;k=h.next())d+=k.value.trim(),d.match(/^[a-z0-9@\-\._\+]+$/i)?(e.push(Mac(d)),d=""):e7b.test(d)?(e.push(d),d=""):d.match(/(".+" )?<.+>/)&&(d=Mac(Nac(d)),e.push(d),d="");f.value=e.join(", ")+", ";a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));a.$element.dispatchEvent(new Event("input"))};else throw Error("Fd`"+
this.fieldType);var c=this.additionalContactsCallback();c=Oac(c);this.subscriptions.add(this.focusContacts.attach(this.$element,b,c))}};
var Pac=function(a){(0,B.timer)(150).pipe(Af(a.destroyed$)).subscribe(function(){var b=document.querySelector(".ac-renderer"),c;b=!!b&&"none"!==(null==(c=window.getComputedStyle(b))?void 0:c.display);a.autocompleteActive.emit(b)})},Oac=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})},Nac=function(a){var b=Math.max(0,a.lastIndexOf("<"));return a.substr(b).trim().replace(/[<>]/g,"")},Mac=function(a){a=
a.trim();","===sa(a)&&(a=a.slice(0,-1));a=qo(a);var b=a.split("@");return 2===b.length?b[0]+"@"+b[1].toLowerCase():a};mR.\u0275fac=function(a){return new (a||mR)(z(ae),z(kR),z(Us))};
mR.\u0275dir=sd({type:mR,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&L("keydown",function(){return Pac(b)},!1,ce)("mousedown",function(){return Pac(b)})},inputs:{fieldType:["bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},features:[Jf]});var nR=function(){};nR.\u0275fac=function(a){return new (a||nR)};nR.\u0275mod=qd({type:nR});nR.\u0275inj=ad({imports:[aD]});var Qac=["spanElement"],oR=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};oR.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};oR.prototype.ngDoCheck=function(){this.spanElement&&!this.disabled&&this.spanElement.nativeElement.offsetWidth>this.maxWidth&&(this.displayString=this.displayString.substring(0,this.maxWidth/this.spanElement.nativeElement.offsetWidth*this.displayString.length-3)+"...")};
oR.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};oR.\u0275fac=function(a){return new (a||oR)};
oR.\u0275cmp=od({type:oR,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&zg(Qac,5);if(a&2){var c;yg(c=Bg())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},features:[Fd],decls:2,vars:2,consts:[[3,"matTooltip","innerHtml"],["spanElement",""]],template:function(a,b){a&1&&G(0,"span",0,1);a&2&&C("matTooltip",b.getTooltip())("innerHtml",b.displayString,qe)},dependencies:[FB],encapsulation:2});var pR=function(){};pR.\u0275fac=function(a){return new (a||pR)};pR.\u0275mod=qd({type:pR});pR.\u0275inj=ad({imports:[aD,FC]});var Rac=["popupField"],Sac=["fieldContent"],Tac=["popupOverlay"],Uac=["overlayContent"],AKa=function(a){return{q:a}},XKa=function(a,b){return{"bv2-disabled":a,"bv2-readonly":b}},Vac=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],qR=function(a,b,c,d,e,f,h,k){Y.call(this);this.cdr=a;this.element=b;this.overlay=c;this.viewContainerRef=d;this.dateFormatter=e;this.activeSession=f;this.constants=h;this.appEvents=k;this.googDateValue=null;this.autocompleteActive=!1;this.readonlyTooltip=
this.displayValue=null;this.textBuffer="";this.isActive=this.multiline=this.enableWaldoAvailability=!1;this.title=this.name="";this.displayValueOverride=this.value=null;this.isUser=!1;this.teamId="";this.clearable=!1;this.choices=[];this.customFieldId=0;this.showEnumTitle=!1;this.valueChange=new Yu;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.truncate=!1;this.enableTeamAnnotations=f.isInternalSession();this.enableCustomFieldSearchImprovements=$C(f,"enableCustomFieldSearchImprovements")};
W(qR,Y);qR.\u0275dir=Y.\u0275dir;g=qR.prototype;g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=$C(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,Wac(a),a.cdr.detectChanges())}));this.subscriptions.add(Y1b(this.dateFormatter,function(){Xac(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){Wac(a)})};
g.ngOnDestroy=function(){Y.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&Xac(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return Ky(Ly(My(Oy(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),Vac)};
var Wac=function(a){var b;(null==(b=a.overlayRef)?0:b.hasAttached())&&a.overlayRef.detach()},iLa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();oLa(a);break;case 27:b.stopPropagation(),Xo(a,b,!1,!0)}},gLa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),oLa(a);break;case 27:b.stopPropagation(),Xo(a,b,!1,!0)}},TKa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();Xo(a,
b,!0,!1);break;case 27:b.stopPropagation(),Xo(a,b,!1,!0)}},Xo=function(a,b,c,d){if((null==b?0:b.target)&&"nodeName"in b.target&&"A"===b.target.nodeName||"ENUM"===a.type&&0===a.choices.length)null==b||b.stopPropagation();else{if(!c||a.disabled||a.readonly){if(a.isActive=!1,Wac(a),d){var e;null==(e=a.popupField)||e.nativeElement.focus()}}else if(a.appEvents.openEditField.next(a),a.isActive=!0,a.textBuffer=null!=a.value?String(a.value):"","DATE"==a.type&&(c=a.value,a.googDateValue=c?ul(c):null),"ENUM"===
a.type&&a.enumMenuTrigger.openMenu(),"ENUM"!==a.type){Yac(a);var f=a.element.nativeElement;(0,B.fromEvent)(document,"click").pipe(cf(function(h){return!f.contains(h.target)}),nf(),Af(a.overlayRef._detachments),Af(a.destroyed$)).subscribe(function(){Xo(a,null,!1,!1)})}null==b||b.stopPropagation();a.cdr.detectChanges()}};qR.prototype.schedule=function(a){var b=B.asyncScheduler.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};
qR.prototype.getDisplayValue=function(a){return null===this.displayValue?a:this.displayValue};
var Xac=function(a){var b=a.value;switch(a.type){case "ENUM":if("Type"===a.title&&b&&iUb.has(b)){a.displayValue=wpa(b);break}var c=a.choices.find(function(d){return d.value==b});c?(a.displayValue=c.displayText,a.readonlyTooltip=c.altText||""):(a.displayValue=null,a.readonlyTooltip=null);break;case "BOOL":a.displayValue=b?"Yes":"No";a.readonlyTooltip=null;break;case "DATE":b?a.displayValue=a.dateFormatter.formatUserCalendar(ul(b)):a.displayValue=null;a.readonlyTooltip=null;break;default:a.displayValueOverride?
a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};qR.prototype.setFieldValue=function(a){this.disabled||this.readonly||("DATE"===this.type&&a&&(a=vl(a)),"NUMERIC"===this.type&&""===a&&(a=null),ki(this.value,a)?"ENUM"===this.type&&Xo(this,null,!1,!0):(Xo(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var oLa=function(a){if(void 0===a.type)throw Error("Gd");a.isUser&&(a.textBuffer=a.textBuffer.replace(/^[\s,]+|[\s,]+$/g,""));"NUMERIC"===a.type&&(a.textBuffer=a.textBuffer.trim());switch(a.type){case "TEXT":a.setFieldValue(a.textBuffer);break;case "NUMERIC":a.textBuffer=a.textBuffer.trim();""===a.textBuffer?a.setFieldValue(null):a.setFieldValue(Number(a.textBuffer));break;case "ENUM":case "BOOL":case "DATE":throw Error("Hd");default:$h(a.type,"FieldType")}};
qR.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);Xo(this,null,!1,!0)};var Yac=function(a){Wac(a);var b=a.overlayRef.attach(new Tw(a.popupOverlay,a.viewContainerRef)).rootNodes[0];a.schedule(function(){if("TEXT"===a.type||"NUMERIC"===a.type){var c=b.querySelector("textarea, input");c.focus();c.select()}else"DATE"===a.type&&b.querySelector(".goog-date-picker").focus()})};
qR.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};qR.prototype.isBoolean=function(){return"BOOL"===this.type};qR.prototype.getPriority=function(a){return"string"===typeof a?a.toLowerCase():""};qR.\u0275fac=function(a){return new (a||qR)(z(yD,2),z(ae),z(Py),z(wg),z(HL),z(Us),z(cD),z(DF))};
qR.\u0275cmp=od({type:qR,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(zg(zB,5),zg(Rac,5),zg(Sac,5),zg(Tac,5),zg(Uac,5));if(a&2){var c;yg(c=Bg())&&(b.enumMenuTrigger=c.first);yg(c=Bg())&&(b.popupField=c.first);yg(c=Bg())&&(b.fieldContent=c.first);yg(c=Bg())&&(b.popupOverlay=c.first);yg(c=Bg())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",user:"user",displayValueOverride:"displayValueOverride",isUser:"isUser",teamId:"teamId",
clearable:"clearable",choices:"choices",customFieldId:"customFieldId",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},features:[lg([yD]),Jf,Fd],decls:11,vars:5,consts:[[1,"bv2-issue-metadata-field"],["class","keep-focus-ring","role","button","tabindex","0",3,"class","bv2-disabled","bv2-readonly","matTooltip","click","keydown","keydown.escape",4,"ngIf"],[3,"class","ngClass",
"matTooltip",4,"ngIf"],[4,"ngIf"],[1,"bv2-issue-metadata-footer"],[1,"keep-focus-ring"],["enumMenu","matMenu"],["matMenuContent",""],["popupOverlay",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"matTooltip","click","keydown","keydown.escape"],["popupField","","tooltip","matTooltip"],[3,"class",4,"ngIf"],["class","bv2-editable-value",4,"ngIf"],["field",""],["class","bv2-editable-value",3,"matMenuTriggerFor","menuClosed",4,"ngIf","ngIfElse"],["customFieldTemplate",""],[1,"bv2-editable-value",
3,"matMenuTriggerFor","menuClosed"],[4,"ngTemplateOutlet"],[1,"overflow-ellipsis"],["class","subtle-link","routerLink","/issues",3,"queryParams",4,"ngIf","ngIfElse"],["emptyValue",""],["mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"matMenuTriggerFor","menuClosed"],["routerLink","/issues",1,"subtle-link",3,"queryParams"],[1,"bv2-editable-value"],[1,"bv2-editable-value",3,"keydown","click"],
["fieldContent",""],["class","issue-metadata-field-edit-icon",4,"ngIf"],["class","issue-metadata-field-dropdown-icon",4,"ngIf"],[1,"flex-kids-x","flex-cross-axis-centered"],[3,"user","email","teamId","enableSmallChip",4,"ngIf"],["class","bv2-editfield-avatar",3,"email",4,"ngIf"],["class","bv2-metadata-field-value",4,"ngIf"],[3,"user","email","teamId","enableSmallChip"],[1,"bv2-editfield-avatar",3,"email"],[1,"bv2-metadata-field-value"],[3,"email"],["class","bv2-metadata-field-value",3,"maxWidth",
"modelValue","disabled",4,"ngIf"],["class","bv2-metadata-field-value",3,"ngClass","maxWidth","modelValue","disabled",4,"ngIf"],["class","bv2-metadata-field-value",3,"class","maxWidth","modelValue","disabled",4,"ngIf"],["class","bv2-edit-button",4,"ngIf"],[1,"bv2-metadata-field-value",3,"maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"ngClass","maxWidth","modelValue","disabled"],[1,"bv2-edit-button"],[1,"issue-metadata-field-edit-icon"],["svgIcon","edit-outline"],[1,"issue-metadata-field-dropdown-icon"],
["svgIcon","arrow-dropdown"],[3,"ngClass","matTooltip"],[3,"class","click",4,"ngIf"],[1,"keep-focus-ring",3,"disabled","aria-label","model","modelChange"],[3,"click"],[3,"user",4,"ngIf"],[3,"user"],["mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked","disabled","click",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","matTooltip","click",4,"ngFor","ngForOf"],["mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",
3,"disabled","click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","matTooltip","click"],["role","dialog",3,"ngSwitch"],["overlayContent",""],[4,"ngSwitchCase"],[3,"click",4,"ngSwitchCase"],["class","bv2-text-field-edit",3,"click",4,"ngSwitchDefault"],[3,"required","date","dateSelectionChange","saveClicked","cancelClicked"],[1,"bv2-text-field-edit",3,"click"],[1,"bv2-text-edit-dialog-buttons"],["mat-flat-button","","color","primary",
1,"gmat-button","medium","field-popup-button",3,"disabled","matTooltip","click"],["svgIcon","done"],["mat-stroked-button","","color","primary",1,"gmat-button","medium","field-popup-button",3,"matTooltip","click"],["svgIcon","close"],["spellcheck","false",3,"ngModel","ngModelChange","keydown",4,"ngIf"],["step","any","spellcheck","false",3,"ngModel","ngModelChange","keydown",4,"ngIf"],["spellcheck","false",3,"ngModel","ngModelChange","keydown"],["step","any","spellcheck","false",3,"ngModel","ngModelChange",
"keydown"],["spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive",4,"ngIf"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive",4,"ngIf"],["spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive"]],template:function(a,b){a&
1&&(D(0,"div")(1,"div",0),P(2,VKa,8,14,"div",1),P(3,YKa,3,13,"div",2),P(4,$Ka,2,1,"ng-container",3),G(5,"div",4),F(),D(6,"mat-menu",5,6),P(8,cLa,2,2,"ng-template",7),F(),P(9,qLa,6,7,"ng-template",null,8,Eg),F());a&2&&(w(1),Xf("active",b.isActive&&!b.readonly&&!b.disabled),w(1),C("ngIf","BOOL"!==b.type),w(1),C("ngIf",b.isBoolean(b.value)),w(1),C("ngIf",b.isUser))},dependencies:[JN,Cv,Dv,Ev,Jv,Fv,Gv,Hv,qA,mR,RL,Tg,hw,ow,Ez,AB,yB,zB,xB,FB,RP,CN,oR,vO,MO,YD,Lv],styles:[".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var Zac={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},rR=function(){};rR.\u0275fac=function(a){return new (a||rR)};rR.\u0275mod=qd({type:rR});rR.\u0275inj=ad({imports:[JO,cJ,aD,nR,rM,Dw,SB,BB,FC,SP,IO,RI,pR,NO,bE]});var sR=function(a){Y.call(this);var b=this;this.changelistApi=a;this.providedChangelistId$=new B.ReplaySubject(1);this.changelist$=this.providedChangelistId$.pipe(zf(function(c){return b.changelistApi.getChangelistDetails(c)}),wf({refCount:!0,bufferSize:1}));this.init=new B.ReplaySubject(1)};W(sR,Y);sR.\u0275dir=Y.\u0275dir;sR.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(nf(),Af(this.destroyed$)).subscribe(function(){a.init.next()})};
sR.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};sR.\u0275fac=function(a){return new (a||sR)(z(HG))};
sR.\u0275cmp=od({type:sR,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},features:[Jf,Fd],decls:4,vars:3,consts:[["role","dialog","aria-label","Changelist hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],[1,"card"],[3,"href"],["class","author",4,"ngIf"],[1,"description"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[1,"author"],[3,"email","hovercardEnabled"],["mode","datetime",1,"float-right",3,"timestamp"]],template:function(a,
b){a&1&&(D(0,"div",0)(1,"div",1),P(2,vLa,16,6,"ng-container",2),T(3,"async"),F()());a&2&&(w(2),C("ngIf",V(3,1,b.changelist$)))},dependencies:[Dv,Ev,tO,PL,Kv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.card[_ngcontent-%COMP%]{max-width:700px}.description[_ngcontent-%COMP%]{margin:12px 0 0;max-height:200px;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis}"]});var tR=function(){this.config=Object.assign({},new SJ,{delay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};tR.prototype.ngOnInit=function(){};tR.\u0275fac=function(a){return new (a||tR)};
tR.\u0275cmp=od({type:tR,selectors:[["b-changelist-link"]],inputs:{changelistId:"changelistId"},decls:5,vars:5,consts:[["target","_blank",1,"bv2-metadata-link",3,"href","onedevHovercardTrigger","onedevHovercardConfig"],["card","onedevHovercard"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"],["cardBody",""]],template:function(a,b){a&1&&(D(0,"a",0),Q(1),F(),D(2,"onedev-hovercard",null,1),P(4,wLa,2,2,"b-changelist-card",2),F());if(a&
2){var c=N(3);C("href","http://critique.corp.google.com/"+b.changelistId,re)("onedevHovercardTrigger",c)("onedevHovercardConfig",b.config);Nf("aria-label","Changelist"+b.changelistId);w(1);S(" ",b.changelistId,"\n")}},dependencies:[PJ,QJ,UJ,RJ,sR],encapsulation:2});var uR=function(){};uR.\u0275fac=function(a){return new (a||uR)};uR.\u0275mod=qd({type:uR});uR.\u0275inj=ad({imports:[aD,NO,CK,kM]});var $ac=0,vR=function(a,b){Y.call(this);var c=this;this.teamsService=b;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new Yu;this.linkBlurred=new Yu;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new B.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+$ac;this.fetchedTeam$=this.providedTeamId$.pipe(mf(),cf(function(d){return"0"!==d}),zf(function(d){return vI(c.teamsService,d)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),
yf(!1));this.fetchedTeam$.pipe(Af(this.destroyed$)).subscribe(function(d){c.teamName=d.name;c.teamDescription=d.description;c.teamLogoUrl="https://moma-teams-photos.corp.google.com/logo/"+d.teamId});$ac++};W(vR,Y);vR.\u0275dir=Y.\u0275dir;g=vR.prototype;g.ngOnInit=function(){};g.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};g.trackClick=function(a){Mk(xp.TEAM_CARD,"click",a,1)};g.manageComponentLink=function(){return cua(this.componentId,"basic")};
g.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};vR.\u0275fac=function(a){return new (a||vR)(z(Us),z(uI))};
vR.\u0275cmp=od({type:vR,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},features:[Jf,Fd],decls:21,vars:7,consts:[["role","dialog","aria-label","Team hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"flex-kids-x"],["alt","Team logo"],[1,"flex-kids-y","margin-s-left","margin-s-bottom"],
[1,"type-m"],["svgIcon","supervisor_account_24px",1,"icon-xxs"],[1,"type-s","id-text"],[1,"card-description"],[1,"flex-kids-y","padded-s-top","hovercard-action-container"],["aria-label","View team settings",3,"routerLink","click"],["mat-button","",1,"gmat-button","primary","hovercard-action"],["target","_blank","aria-label","View component settings",3,"href","click"],["svgIcon","pop-out",1,"icon-xxs"],["aria-label","View team association on component",3,"href","click",4,"ngIf"],["aria-label","View team association on component",
3,"href","click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2),G(3,"img",3),D(4,"div",4)(5,"div",5),G(6,"mat-icon",6),Q(7),F(),D(8,"div",7),Q(9),F()()(),D(10,"p",8),Q(11),F(),D(12,"div",9)(13,"a",10),L("click",function(){return b.trackClick("viewTeamSettingsPage")}),D(14,"button",11),Q(15,"View team settings"),F()(),D(16,"a",12),L("click",function(){return b.trackClick("viewTeamInMoma")}),D(17,"button",11),Q(18,"View team in Moma "),G(19,"mat-icon",13),F()(),P(20,xLa,3,1,"a",14),
F()()());a&2&&(w(3),Nf("src",b.teamLogoUrl,re),w(4),S(" Team: ",b.teamName," "),w(2),S("Team ID: ",b.teamId,""),w(2),jg(b.teamDescription),w(2),gg("routerLink","/teams/",b.teamId,"/edit"),w(3),gg("href","https://moma.corp.google.com/team/",b.teamId,"",re),w(4),C("ngIf",b.componentId))},dependencies:[Ev,qA,YD,Ez],styles:[".card-description[_ngcontent-%COMP%]{line-height:1.3em;margin-bottom:.5em;margin-top:.25em;max-height:13em;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}mat-icon[_ngcontent-%COMP%]{vertical-align:middle}img[_ngcontent-%COMP%]{flex-shrink:0;object-fit:contain;width:24px;height:24px;box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:5px;border-radius:4px}.id-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.hovercard-action-container[_ngcontent-%COMP%]{align-items:flex-start}.hovercard-action-container[_ngcontent-%COMP%]   .hovercard-action[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"]});var wR=function(){};wR.\u0275fac=function(a){return new (a||wR)};wR.\u0275mod=qd({type:wR});wR.\u0275inj=ad({imports:[aD,bE,SB]});var abc=0,xR=function(a){Y.call(this);var b=this;this.teamsService=a;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new B.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+abc;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(mf(),cf(function(c){return"0"!==c}),zf(function(c){return vI(b.teamsService,c)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),yf(!1));this.fetchedTeam$.pipe(Af(this.destroyed$)).subscribe(function(c){b.teamName=
c.name});abc++};W(xR,Y);xR.\u0275dir=Y.\u0275dir;xR.prototype.ngOnInit=function(){};xR.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};xR.prototype.trackClick=function(a){Mk(xp.TEAM_CARD,"click",a,1)};xR.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};xR.\u0275fac=function(a){return new (a||xR)(z(uI))};
xR.\u0275cmp=od({type:xR,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},features:[Jf,Fd],decls:8,vars:6,consts:[[4,"ngIf","ngIfElse"],["card","onedevHovercard"],[3,"componentId","teamId"],["loading",""],["target","_blank","class","card-anchor keep-focus-ring",3,"href","onedevHovercardTrigger","click",4,"ngIf"],[3,"onedevHovercardTrigger",4,"ngIf"],["target",
"_blank",1,"card-anchor","keep-focus-ring",3,"href","onedevHovercardTrigger","click"],["svgIcon","pop-out",1,"icon-xs"],[3,"onedevHovercardTrigger"],["class","animated-loading-bar",4,"ngIf"],[4,"ngIf"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(P(0,ALa,3,2,"ng-container",0),T(1,"async"),D(2,"onedev-hovercard",null,1),I(4),G(5,"b-team-card",2),K(),F(),P(6,DLa,2,2,"ng-template",null,3,Eg));if(a&2){var c=N(7);C("ngIf","0"!=b.teamId&&V(1,4,b.isTeamFetched$))("ngIfElse",c);w(5);C("componentId",
null==b.componentId?null:b.componentId.toString())("teamId",b.teamId.toString())}},dependencies:[Ev,qA,PJ,UJ,vR,Kv]});var yR=function(){};yR.\u0275fac=function(a){return new (a||yR)};yR.\u0275mod=qd({type:yR});yR.\u0275inj=ad({imports:[aD,CK,wR]});var bbc=0,zR=function(a){this.elementRef=a;this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.headerId="b-collapsible-panel-header-"+bbc;this.id="b-collapsible-panel-"+bbc;bbc++};zR.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
Qh.Object.defineProperties(zR.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titleWhenCollapsed=this.titleWhenExpanded=a},get:function(){return this.isExpanded?this.titleWhenExpanded:this.titleWhenCollapsed}},expandedState:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?"expanded":"collapsed"}}});zR.\u0275fac=function(a){return new (a||zR)(z(ae))};
zR.\u0275cmp=od({type:zR,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",iconName:"iconName",hasCompactTitleBar:"hasCompactTitleBar",title:"title"},ngContentSelectors:["*"],decls:8,vars:12,consts:[[1,"collapsible-panel"],["aria-label","collapsible panel",1,"title-bar","unstyled-button",3,"click","mouseup"],["size","small","class","icon",3,"name",4,"ngIf"],["class","title",4,"ngIf"],
["class","horizontal-line",4,"ngIf"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"],["size","small",1,"icon",3,"name"],[1,"title"],[1,"horizontal-line"]],template:function(a,b){a&1&&(eg(),D(0,"div",0)(1,"button",1),L("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),P(2,ELa,1,1,"b-icon",2),P(3,FLa,2,1,"span",3),P(4,GLa,2,0,"div",4),G(5,"mat-icon",5),F(),D(6,"div",6),fg(7),F()());a&2&&(w(1),Xf("compact",
b.hasCompactTitleBar),Nf("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),w(1),C("ngIf",b.iconName),w(1),C("ngIf",!b.hasCompactTitleBar||!b.isExpanded),w(1),C("ngIf",b.hasCompactTitleBar),w(1),C("@expandCollapseIcon",b.expandedState),w(1),C("@expandCollapseContent",b.expandedState),Nf("id",b.id)("aria-labelledby",b.headerId))},dependencies:[Ev,qA,bD],styles:['.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;padding:4px 4px 4px 7px;margin:6px 0px 6px 12px;width:calc(100% - 18px);border-radius:4px;transition:200ms background-color}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]:focus{background-color:#e8f0fe;background-color:var(--primary-c50)}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:1}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);padding:0;margin:0;font-size:.75rem;letter-spacing:.025em;width:100%}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:0;margin-left:3px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   b-icon[_ngcontent-%COMP%]{min-width:20px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .horizontal-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--text-disabled);flex-grow:1;height:.8vh;margin-left:8px;margin-right:10px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .icon-s[_ngcontent-%COMP%]{margin-right:-3px}.collapsible-panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{overflow:hidden}'],
data:{animation:[qh("expandCollapseContent",[th("expanded",sh({height:"*",visibility:"visible"})),th("collapsed",sh({height:"0",visibility:"hidden"})),uh("expanded <=> collapsed",[rh("200ms")])]),qh("expandCollapseIcon",[th("expanded",sh({transform:"rotate(-180deg)"})),th("collapsed",sh({transform:"*"})),uh("expanded <=> collapsed",[rh("200ms")])])]}});var AR=function(){};AR.\u0275fac=function(a){return new (a||AR)};AR.\u0275mod=qd({type:AR});AR.\u0275inj=ad({imports:[aD,hD]});var cbc=new Ad("CDK_DRAG_PARENT");var dbc=new Ad("CdkDragHandle"),BR=function(a,b){this.element=a;this._stateChanges=new B.Subject;this._disabled=!1;this._parentDrag=b};BR.prototype.ngOnDestroy=function(){this._stateChanges.complete()};Qh.Object.defineProperties(BR.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=ah(a);this._stateChanges.next(this)}}});BR.\u0275fac=function(a){return new (a||BR)(z(ae),z(cbc,12))};
BR.\u0275dir=sd({type:BR,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[lg([{provide:dbc,useExisting:BR}])]});var ebc=new Ad("CdkDragPlaceholder");var fbc=new Ad("CdkDragPreview");var gbc=new Ad("CDK_DRAG_CONFIG");var hbc=Xg({passive:!1,capture:!0}),CR=function(a,b){var c=this;this._ngZone=a;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=[];this._globalListeners=new Map;this._draggingPredicate=function(d){return d.isDragging()};this.pointerMove=new B.Subject;this.pointerUp=new B.Subject;this.scroll=new B.Subject;this._preventDefaultWhileDragging=function(d){0<c._activeDragInstances.length&&d.preventDefault()};this._persistentTouchmoveListener=function(d){0<c._activeDragInstances.length&&
(c._activeDragInstances.some(c._draggingPredicate)&&d.preventDefault(),c.pointerMove.next(d))};this._document=b},ibc=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},jbc=function(a,b){a._dragInstances.add(b);1===a._dragInstances.size&&a._ngZone.runOutsideAngular(function(){a._document.addEventListener("touchmove",a._persistentTouchmoveListener,hbc)})},lbc=function(a,b){a._dragInstances.delete(b);kbc(a,b);0===a._dragInstances.size&&a._document.removeEventListener("touchmove",a._persistentTouchmoveListener,
hbc)};
CR.prototype.startDragging=function(a,b){var c=this;-1<this._activeDragInstances.indexOf(a)||(this._activeDragInstances.push(a),1===this._activeDragInstances.length&&(a=b.type.startsWith("touch"),this._globalListeners.set(a?"touchend":"mouseup",{handler:function(d){return c.pointerUp.next(d)},options:!0}).set("scroll",{handler:function(d){return c.scroll.next(d)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:hbc}),a||this._globalListeners.set("mousemove",{handler:function(d){return c.pointerMove.next(d)},
options:hbc}),this._ngZone.runOutsideAngular(function(){c._globalListeners.forEach(function(d,e){c._document.addEventListener(e,d.handler,d.options)})})))};var kbc=function(a,b){b=a._activeDragInstances.indexOf(b);-1<b&&(a._activeDragInstances.splice(b,1),0===a._activeDragInstances.length&&a._clearGlobalListeners())};CR.prototype.isDragging=function(a){return-1<this._activeDragInstances.indexOf(a)};
CR.prototype.scrolled=function(a){var b=this,c=[this.scroll];a&&a!==this._document&&c.push(new B.Observable(function(d){return b._ngZone.runOutsideAngular(function(){var e=function(f){b._activeDragInstances.length&&d.next(f)};a.addEventListener("scroll",e,!0);return function(){a.removeEventListener("scroll",e,!0)}})}));return B.merge.apply(null,p(c))};
CR.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return lbc(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};CR.prototype._clearGlobalListeners=function(){var a=this;this._globalListeners.forEach(function(b,c){a._document.removeEventListener(c,b.handler,b.options)});this._globalListeners.clear()};CR.\u0275fac=function(a){return new (a||CR)(n(Df),n(Oh))};
CR.\u0275prov=$c({token:CR,factory:CR.\u0275fac,providedIn:"root"});var OLa=0;var DR=function(a){this._document=a;this.positions=new Map};DR.prototype.clear=function(){this.positions.clear()};DR.prototype.cache=function(a){var b=this;this.clear();this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()});a.forEach(function(c){b.positions.set(c,{scrollPosition:{top:c.scrollTop,left:c.scrollLeft},clientRect:HLa(c)})})};
var mbc=function(a,b){var c=$g(b);b=a.positions.get(c);if(!b)return null;b=b.scrollPosition;if(c===a._document){var d=a.getViewportScrollPosition();var e=d.top;d=d.left}else e=c.scrollTop,d=c.scrollLeft;var f=b.top-e,h=b.left-d;a.positions.forEach(function(k,q){k.clientRect&&c!==q&&c.contains(q)&&Yo(k.clientRect,f,h)});b.top=e;b.left=d;return{top:f,left:h}};DR.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};var nbc=Xg({passive:!0}),obc=Xg({passive:!1}),QLa=new Set(["position"]),ER=function(a,b,c,d,e,f){var h=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=!1;this._moveEvents=new B.Subject;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=B.Subscription.EMPTY;this._boundaryElement=null;this._nativeInteractionsEnabled=
!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.dragStartDelay=0;this._disabled=!1;this.beforeStarted=new B.Subject;this.started=new B.Subject;this.released=new B.Subject;this.ended=new B.Subject;this.entered=new B.Subject;this.exited=new B.Subject;this.dropped=new B.Subject;this.moved=this._moveEvents;this._pointerDown=function(k){h.beforeStarted.next();if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||h._initializeDragSequence(q,
k)}else h.disabled||h._initializeDragSequence(h._rootElement,k)};this._pointerMove=function(k){var q=h._getPointerPositionOnPage(k);if(h._hasStartedDragging){k.preventDefault();var u=h._getConstrainedPointerPosition(q);h._hasMoved=!0;h._lastKnownPointerPosition=q;h._updatePointerDirectionDelta(u);if(h._dropContainer)h._updateActiveDropContainer(u,q);else{q=h.constrainPosition?h._initialClientRect:h._pickupPositionOnPage;var x=h._activeTransform;x.x=u.x-q.x+h._passiveTransform.x;x.y=u.y-q.y+h._passiveTransform.y;
h._applyRootElementTransform(x.x,x.y)}h._moveEvents.observers.length&&h._ngZone.run(function(){h._moveEvents.next({source:h,pointerPosition:u,event:k,distance:h._getDragDistance(u),delta:h._pointerDirectionDelta})})}else Math.abs(q.x-h._pickupPositionOnPage.x)+Math.abs(q.y-h._pickupPositionOnPage.y)>=h._config.dragStartThreshold&&((q=Date.now()>=h._dragStartTime+h._getDragStartDelay(k),x=h._dropContainer,q)?x&&(x.isDragging()||0<x._activeSiblings.size)||(k.preventDefault(),h._hasStartedDragging=!0,
h._ngZone.run(function(){return h._startDragSequence(k)})):h._endDragSequence(k))};this._pointerUp=function(k){h._endDragSequence(k)};this._nativeDragStart=function(k){if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||k.preventDefault()}else h.disabled||k.preventDefault()};pbc(qbc(this,a),b.parentDragRef||null);this._parentPositions=new DR(c);jbc(f,this)};ER.prototype.getPlaceholderElement=function(){return this._placeholder};
ER.prototype.getRootElement=function(){return this._rootElement};
var rbc=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},sbc=function(a,b){a._handles=b.map(function(d){return ch(d)});a._handles.forEach(function(d){return Zo(d,a.disabled)});a._toggleNativeDragInteractions();var c=new Set;a._disabledHandles.forEach(function(d){-1<a._handles.indexOf(d)&&c.add(d)});a._disabledHandles=c},qbc=function(a,b){var c=ch(b);c!==a._rootElement&&(a._rootElement&&a._removeRootElementListeners(a._rootElement),a._ngZone.runOutsideAngular(function(){c.addEventListener("mousedown",
a._pointerDown,obc);c.addEventListener("touchstart",a._pointerDown,nbc);c.addEventListener("dragstart",a._nativeDragStart,obc)}),a._initialTransform=void 0,a._rootElement=c);"undefined"!==typeof SVGElement&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},tbc=function(a,b){a._boundaryElement=b?ch(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},pbc=function(a,b){a._parentDragRef=b};g=ER.prototype;
g.dispose=function(){this._removeRootElementListeners(this._rootElement);if(this.isDragging()){var a;null==(a=this._rootElement)||a.remove()}var b;null==(b=this._anchor)||b.remove();this._destroyPreview();this._destroyPlaceholder();lbc(this._dragDropRegistry,this);this._removeSubscriptions();this.beforeStarted.complete();this.started.complete();this.released.complete();this.ended.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this._moveEvents.complete();this._handles=
[];this._disabledHandles.clear();this._dropContainer=void 0;this._resizeSubscription.unsubscribe();this._parentPositions.clear();this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null};g.isDragging=function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)};
g.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};g.withDirection=function(a){this._direction=a;return this};g._withDropContainer=function(a){this._dropContainer=a};g.setFreeDragPosition=function(a){this._activeTransform={x:0,y:0};this._passiveTransform.x=a.x;this._passiveTransform.y=a.y;this._dropContainer||this._applyRootElementTransform(a.x,a.y)};
g._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};g._removeSubscriptions=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe()};g._destroyPreview=function(){var a;null==(a=this._preview)||a.remove();var b;null==(b=this._previewRef)||b.destroy();this._preview=this._previewRef=null};
g._destroyPlaceholder=function(){var a;null==(a=this._placeholder)||a.remove();var b;null==(b=this._placeholderRef)||b.destroy();this._placeholder=this._placeholderRef=null};
g._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),kbc(this._dragDropRegistry,this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){b._cleanupDragArtifacts(a);b._cleanupCachedDimensions();
kbc(b._dragDropRegistry,b)});else{this._passiveTransform.x=this._activeTransform.x;var c=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y;this._ngZone.run(function(){b.ended.next({source:b,distance:b._getDragDistance(c),dropPoint:c,event:a})});this._cleanupCachedDimensions();kbc(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){$o(a)&&(this._lastTouchEventTime=Date.now());this._toggleNativeDragInteractions();var b=this._dropContainer;if(b){var c=this._rootElement,d=c.parentNode,e=this._placeholder=this._createPlaceholderElement(),f=this._anchor=this._anchor||this._document.createComment(""),h=this._getShadowRoot();d.insertBefore(f,c);this._initialTransform=c.style.transform||"";this._preview=this._createPreviewElement();RLa(c,!1);this._document.body.appendChild(d.replaceChild(e,c));this._getPreviewInsertionPoint(d,
h).appendChild(this._preview);this.started.next({source:this,event:a});b.start();this._initialContainer=b;this._initialIndex=b.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(b?b._scrollableElements:[])};
g._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=$o(b),f=!e&&0!==b.button,h=this._rootElement,k=$g(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?pma(b):oma(b);k&&k.draggable&&"mousedown"===b.type&&b.preventDefault();d||f||q||e||(this._handles.length&&(d=h.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=
!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(u){return c._updateOnScroll(u)}),this._boundaryElement&&(this._boundaryRect=HLa(this._boundaryElement)),this._pickupPositionInElement=
(d=this._previewTemplate)&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,b),a=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(b),this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:a.x,y:a.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,b))};
g._cleanupDragArtifacts=function(a){var b=this;RLa(this._rootElement,!0);this._anchor.parentNode.replaceChild(this._rootElement,this._anchor);this._destroyPreview();this._destroyPlaceholder();this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0;this._ngZone.run(function(){var c=b._dropContainer,d=c.getItemIndex(b),e=b._getPointerPositionOnPage(a),f=b._getDragDistance(e),h=c._isOverContainer(e.x,e.y);b.ended.next({source:b,distance:f,dropPoint:e,event:a});b.dropped.next({item:b,
currentIndex:d,previousIndex:b._initialIndex,container:c,previousContainer:b._initialContainer,isPointerOverContainer:h,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,h,f,e,a);b._dropContainer=b._initialContainer})};
g._updateActiveDropContainer=function(a,b){var c=this,d=a.x,e=a.y;a=b.x;b=b.y;var f=this._initialContainer._getSiblingContainerFromPosition(this,d,e);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(d,e)&&(f=this._initialContainer);f&&f!==this._dropContainer&&this._ngZone.run(function(){c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);c._dropContainer=f;c._dropContainer.enter(c,d,e,f===c._initialContainer&&f.sortingDisabled?c._initialIndex:
void 0);c.entered.next({item:c,container:f,currentIndex:f.getItemIndex(c)})});this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,b),this._dropContainer._sortItem(this,d,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(d,e):this._applyPreviewTransform(d-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))};
g._createPreviewElement=function(){var a=this._previewTemplate,b=this.previewClass,c=a?a.template:null;if(c&&a){var d=a.matchSize?this._initialClientRect:null;c=a.viewContainer.createEmbeddedView(c,a.context);c.detectChanges();var e=XLa(c,this._document);this._previewRef=c;a.matchSize?YLa(e,d):e.style.transform=WLa(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=NLa(this._rootElement),YLa(e,this._initialClientRect),this._initialTransform&&(e.style.transform=this._initialTransform);
PLa(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":""+(this._config.zIndex||1E3)},QLa);Zo(e,!1);e.classList.add("cdk-drag-preview");e.setAttribute("dir",this._direction);b&&(Array.isArray(b)?b.forEach(function(f){return e.classList.add(f)}):e.classList.add(b));return e};
g._animatePreviewToPlaceholder=function(){var a=this;if(!this._hasMoved)return Promise.resolve();var b=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating");this._applyPreviewTransform(b.left,b.top);var c=VLa(this._preview);return 0===c?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(h){if(!h||$g(h)===a._preview&&"transform"===h.propertyName){var k;null==(k=a._preview)||k.removeEventListener("transitionend",
e);d();clearTimeout(f)}},f=setTimeout(e,1.5*c);a._preview.addEventListener("transitionend",e)})})};g._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=XLa(this._placeholderRef,this._document)):a=NLa(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
g._getPointerPositionInElement=function(a,b,c){b=(b=b===this._rootElement?null:b)?b.getBoundingClientRect():a;c=$o(c)?c.targetTouches[0]:c;var d=this._getViewportScrollPosition();return{x:b.left-a.left+(c.pageX-b.left-d.left),y:b.top-a.top+(c.pageY-b.top-d.top)}};
g._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=$o(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a;a=c.pageX-b.left;b=c.pageY-b.top;if(this._ownerSVGElement&&(c=this._ownerSVGElement.getScreenCTM())){var d=this._ownerSVGElement.createSVGPoint();d.x=a;d.y=b;return d.matrixTransform(c.inverse())}return{x:a,y:b}};
g._getConstrainedPointerPosition=function(a){var b=this._dropContainer?this._dropContainer.lockAxis:null,c=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;a=c.x;c=c.y;if("x"===this.lockAxis||"x"===b)c=this._pickupPositionOnPage.y;else if("y"===this.lockAxis||"y"===b)a=this._pickupPositionOnPage.x;if(this._boundaryRect){var d=this._pickupPositionInElement;b=d.x;var e=d.y;d=this._boundaryRect;var f=this._getPreviewRect(),h=d.top+e;e=d.bottom-
(f.height-e);a=Math.max(d.left+b,Math.min(d.right-(f.width-b),a));c=Math.max(h,Math.min(e,c))}return{x:a,y:c}};g._updatePointerDirectionDelta=function(a){var b=a.x;a=a.y;var c=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,e=Math.abs(a-d.y);Math.abs(b-d.x)>this._config.pointerDirectionChangeThreshold&&(c.x=b>d.x?1:-1,d.x=b);e>this._config.pointerDirectionChangeThreshold&&(c.y=a>d.y?1:-1,d.y=a);return c};
g._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=0<this._handles.length||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Zo(this._rootElement,a))}};g._removeRootElementListeners=function(a){a.removeEventListener("mousedown",this._pointerDown,obc);a.removeEventListener("touchstart",this._pointerDown,nbc);a.removeEventListener("dragstart",this._nativeDragStart,obc)};
g._applyRootElementTransform=function(a,b){a=WLa(a,b);b=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=b.transform&&"none"!=b.transform?b.transform:"");b.transform=SLa(a,this._initialTransform)};g._applyPreviewTransform=function(a,b){var c,d=(null==(c=this._previewTemplate)?0:c.template)?void 0:this._initialTransform;this._preview.style.transform=SLa(WLa(a,b),d)};g._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};
g._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
g._containInsideBoundaryOnResize=function(){var a=this._passiveTransform,b=a.x;a=a.y;if(!(0===b&&0===a||this.isDragging())&&this._boundaryElement){var c=this._rootElement.getBoundingClientRect(),d=this._boundaryElement.getBoundingClientRect();if(!(0===d.width&&0===d.height||0===c.width&&0===c.height)){var e=d.left-c.left,f=c.right-d.right,h=d.top-c.top,k=c.bottom-d.bottom;d.width>c.width?(0<e&&(b+=e),0<f&&(b-=f)):b=0;d.height>c.height?(0<h&&(a+=h),0<k&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||this.setFreeDragPosition({y:a,x:b})}}};g._getDragStartDelay=function(a){var b=this.dragStartDelay;return"number"===typeof b?b:$o(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=mbc(this._parentPositions,a);b&&(a=$g(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&Yo(this._boundaryRect,b.top,b.left),this._pickupPositionOnPage.x+=b.left,this._pickupPositionOnPage.y+=b.top,this._dropContainer||(this._activeTransform.x-=b.left,this._activeTransform.y-=b.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y)))};
g._getViewportScrollPosition=function(){var a;return(null==(a=this._parentPositions.positions.get(this._document))?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};g._getShadowRoot=function(){void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=ima(this._rootElement));return this._cachedShadowRoot};
g._getPreviewInsertionPoint=function(a,b){var c=this._previewContainer||"global";return"parent"===c?a:"global"===c?(a=this._document,b||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body):ch(c)};g._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect);return this._previewRect};
g._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};Qh.Object.defineProperties(ER.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){var b=ah(a);b!==this._disabled&&(this._disabled=b,this._toggleNativeDragInteractions(),this._handles.forEach(function(c){return Zo(c,b)}))}}});var FR=function(a,b){this._element=a;this._dragDropRegistry=b;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};FR.prototype.start=function(a){this.withItems(a)};
FR.prototype.sort=function(a,b,c,d){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(-1===f&&0<e.length)return null;var h="horizontal"===this.orientation,k=e.findIndex(function(J){return J.drag===a}),q=e[f],u=q.clientRect,x=k>f?1:-1,y=this._getItemOffsetPx(e[k].clientRect,u,x),E=this._getSiblingOffsetPx(k,e,x),H=e.slice();ap(e,k,f);e.forEach(function(J,O){if(H[O]!==J){var R=J.drag===a;O=R?y:E;R=R?a.getPlaceholderElement():J.drag.getRootElement();J.offset+=O;h?(R.style.transform=
SLa("translate3d("+Math.round(J.offset)+"px, 0, 0)",J.initialTransform),Yo(J.clientRect,0,O)):(R.style.transform=SLa("translate3d(0, "+Math.round(J.offset)+"px, 0)",J.initialTransform),Yo(J.clientRect,O,0))}});this._previousSwap.overlaps=ILa(u,b,c);this._previousSwap.drag=q.drag;this._previousSwap.delta=h?d.x:d.y;return{previousIndex:k,currentIndex:f}};
FR.prototype.enter=function(a,b,c,d){d=null==d||0>d?this._getItemIndexFromPointerPosition(a,b,c):d;var e=this._activeDraggables,f=e.indexOf(a),h=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(null==d||-1===d||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);-1<f&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(h,b),e.splice(d,0,a)):(ch(this._element).appendChild(h),e.push(a));h.style.transform="";this._cacheItemPositions()};
FR.prototype.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};var ubc=function(a,b){a._sortPredicate=b};
FR.prototype.reset=function(){var a=this;this._activeDraggables.forEach(function(b){var c=b.getRootElement();if(c){var d,e=null==(d=a._itemPositions.find(function(f){return f.drag===b}))?void 0:d.initialTransform;c.style.transform=e||""}});this._itemPositions=[];this._activeDraggables=[];this._previousSwap.drag=null;this._previousSwap.delta=0;this._previousSwap.overlaps=!1};
FR.prototype.getItemIndex=function(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(b){return b.drag===a})};var vbc=function(a,b,c){a._itemPositions.forEach(function(d){Yo(d.clientRect,b,c)});a._itemPositions.forEach(function(d){d=d.drag;a._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};g=FR.prototype;
g._cacheItemPositions=function(){var a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(b){var c=rbc(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:HLa(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};g._getItemOffsetPx=function(a,b,c){var d="horizontal"===this.orientation,e=d?b.left-a.left:b.top-a.top;-1===c&&(e+=d?b.width-a.width:b.height-a.height);return e};
g._getSiblingOffsetPx=function(a,b,c){var d="horizontal"===this.orientation,e=b[a].clientRect;a=b[a+-1*c];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=-1===c?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
g._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d="horizontal"===this.orientation;if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
g._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f="horizontal"===this.orientation,h=this._itemPositions.findIndex(function(k){var q=k.drag;k=k.clientRect;if(q===a)return!1;if(d){var u=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&u===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return-1!==h&&this._sortPredicate(h,a)?h:-1};var xbc=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.autoScrollDisabled=this.sortingDisabled=this.disabled=!1;this.autoScrollStep=2;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new B.Subject;this.entered=new B.Subject;this.exited=new B.Subject;this.dropped=new B.Subject;this.sorted=new B.Subject;this.receivingStarted=new B.Subject;this.receivingStopped=new B.Subject;this._isDragging=!1;this._draggables=
[];this._siblings=[];this._activeSiblings=new Set;this._viewportScrollSubscription=B.Subscription.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new B.Subject;this._cachedShadowRoot=null;this._startScrollInterval=function(){f._stopScrolling();(0,B.interval)(0,B.animationFrameScheduler).pipe(Af(f._stopScrollTimers)).subscribe(function(){var h=f._scrollNode,k=f.autoScrollStep;1===f._verticalScrollDirection?h.scrollBy(0,-k):2===f._verticalScrollDirection&&
h.scrollBy(0,k);1===f._horizontalScrollDirection?h.scrollBy(-k,0):2===f._horizontalScrollDirection&&h.scrollBy(k,0)})};this.element=ch(a);this._document=c;wbc(this,[this.element]);ibc(b,this);this._parentPositions=new DR(c);this._sortStrategy=new FR(this.element,b);ubc(this._sortStrategy,function(h,k){return f.sortPredicate(h,k,f)})};g=xbc.prototype;
g.dispose=function(){this._stopScrolling();this._stopScrollTimers.complete();this._viewportScrollSubscription.unsubscribe();this.beforeStarted.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this.sorted.complete();this.receivingStarted.complete();this.receivingStopped.complete();this._activeSiblings.clear();this._scrollNode=null;this._parentPositions.clear();this._dragDropRegistry._dropInstances.delete(this)};g.isDragging=function(){return this._isDragging};
g.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};g.enter=function(a,b,c,d){this._draggingStarted();null==d&&this.sortingDisabled&&(d=this._draggables.indexOf(a));this._sortStrategy.enter(a,b,c,d);this._cacheParentPositions();this._notifyReceivingSiblings();this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})};g.exit=function(a){this._reset();this.exited.next({item:a,container:this})};
g.drop=function(a,b,c,d,e,f,h,k){k=void 0===k?{}:k;this._reset();this.dropped.next({item:a,currentIndex:b,previousIndex:c,container:this,previousContainer:d,isPointerOverContainer:e,distance:f,dropPoint:h,event:k})};g.withItems=function(a){var b=this,c=this._draggables;this._draggables=a;a.forEach(function(d){return d._withDropContainer(b)});this.isDragging()&&(c.filter(function(d){return d.isDragging()}).every(function(d){return-1===a.indexOf(d)})?this._reset():this._sortStrategy.withItems(this._draggables))};
g.withDirection=function(a){this._sortStrategy.direction=a;return this};g.connectedTo=function(a){this._siblings=a.slice();return this};var ybc=function(a,b){a._sortStrategy.orientation=b},wbc=function(a,b){var c=ch(a.element);a._scrollableElements=-1===b.indexOf(c)?[c].concat(p(b)):b.slice()};g=xbc.prototype;g.getItemIndex=function(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)};
g._sortItem=function(a,b,c,d){!this.sortingDisabled&&this._clientRect&&JLa(this._clientRect,b,c)&&(b=this._sortStrategy.sort(a,b,c,d))&&this.sorted.next({previousIndex:b.previousIndex,currentIndex:b.currentIndex,container:this,item:a})};
g._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(q,u){if(u!==c._document&&q.clientRect&&!k&&JLa(q.clientRect,a,b)){var x=q.clientRect;q=ZLa(x,b);x=$La(x,a);var y=0,E=0;if(q){var H=u.scrollTop;1===q?0<H&&(y=1):u.scrollHeight-H>u.clientHeight&&(y=2)}x&&(q=u.scrollLeft,1===x?0<q&&(E=1):u.scrollWidth-q>u.clientWidth&&(E=2));q=l([y,E]);d=q.next().value;e=q.next().value;if(d||e)k=u}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),
h=f.width;f=f.height;h={width:h,height:f,top:0,right:h,bottom:f,left:0};d=ZLa(h,b);e=$La(h,a);var k=window}!k||d===this._verticalScrollDirection&&e===this._horizontalScrollDirection&&k===this._scrollNode||(this._verticalScrollDirection=d,this._horizontalScrollDirection=e,this._scrollNode=k,(d||e)&&k?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}};g._stopScrolling=function(){this._stopScrollTimers.next()};
g._draggingStarted=function(){var a=ch(this.element).style;this.beforeStarted.next();this._isDragging=!0;this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"";a.scrollSnapType=a.msScrollSnapType="none";this._sortStrategy.start(this._draggables);this._cacheParentPositions();this._viewportScrollSubscription.unsubscribe();this._listenToScrollEvents()};g._cacheParentPositions=function(){var a=ch(this.element);this._parentPositions.cache(this._scrollableElements);this._clientRect=this._parentPositions.positions.get(a).clientRect};
g._reset=function(){var a=this;this._isDragging=!1;var b=ch(this.element).style;b.scrollSnapType=b.msScrollSnapType=this._initialScrollSnap;this._siblings.forEach(function(c){return c._stopReceiving(a)});this._sortStrategy.reset();this._stopScrolling();this._viewportScrollSubscription.unsubscribe();this._parentPositions.clear()};g._isOverContainer=function(a,b){return null!=this._clientRect&&ILa(this._clientRect,a,b)};
g._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};g._canReceive=function(a,b,c){if(!this._clientRect||!ILa(this._clientRect,b,c)||!this.enterPredicate(a,this))return!1;a=this._getShadowRoot().elementFromPoint(b,c);if(!a)return!1;b=ch(this.element);return a===b||b.contains(a)};
g._startReceiving=function(a,b){var c=this,d=this._activeSiblings;!d.has(a)&&b.every(function(e){return c.enterPredicate(e,c)||-1<c._draggables.indexOf(e)})&&(d.add(a),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:a,receiver:this,items:b}))};g._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe();this.receivingStopped.next({initiator:a,receiver:this})};
g._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){a.isDragging()?(b=mbc(a._parentPositions,b))&&vbc(a._sortStrategy,b.top,b.left):0<a._activeSiblings.size&&a._cacheParentPositions()})};g._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=ima(ch(this.element))||this._document);return this._cachedShadowRoot};
g._notifyReceivingSiblings=function(){var a=this,b=this._sortStrategy._activeDraggables.filter(function(c){return c.isDragging()});this._siblings.forEach(function(c){return c._startReceiving(a,b)})};var zbc={dragStartThreshold:5,pointerDirectionChangeThreshold:5},GR=function(a,b,c,d){this._document=a;this._ngZone=b;this._viewportRuler=c;this._dragDropRegistry=d};GR.prototype.createDrag=function(a,b){b=void 0===b?zbc:b;return new ER(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)};GR.\u0275fac=function(a){return new (a||GR)(n(Oh),n(Df),n(Dy),n(CR))};GR.\u0275prov=$c({token:GR,factory:GR.\u0275fac,providedIn:"root"});var Abc=new Ad("CdkDropList"),HR=function(a,b,c,d,e,f,h,k,q,u,x){var y=this;this.element=a;this.dropContainer=b;this._ngZone=d;this._viewContainerRef=e;this._dir=h;this._changeDetectorRef=q;this._selfHandle=u;this._parentDrag=x;this._destroyed=new B.Subject;this.started=new Yu;this.released=new Yu;this.ended=new Yu;this.entered=new Yu;this.exited=new Yu;this.dropped=new Yu;this.moved=new B.Observable(function(E){var H=y._dragRef.moved.pipe(A(function(J){return{source:y,pointerPosition:J.pointerPosition,
event:J.event,delta:J.delta,distance:J.distance}})).subscribe(E);return function(){H.unsubscribe()}});this._dragRef=k.createDrag(a,{dragStartThreshold:f&&null!=f.dragStartThreshold?f.dragStartThreshold:5,pointerDirectionChangeThreshold:f&&null!=f.pointerDirectionChangeThreshold?f.pointerDirectionChangeThreshold:5,zIndex:null==f?void 0:f.zIndex});this._dragRef.data=this;Bbc.push(this);f&&this._assignDefaults(f);b&&(this._dragRef._withDropContainer(b._dropListRef),b.addItem(this));this._syncInputs(this._dragRef);
this._handleEvents(this._dragRef)};g=HR.prototype;g.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};g.getRootElement=function(){return this._dragRef.getRootElement()};g.reset=function(){this._dragRef.reset()};g.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};
g.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(nf(),Af(a._destroyed)).subscribe(function(){a._updateRootElement();a._setupHandlesListener();a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)})})};g.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)};
g.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);var b=Bbc.indexOf(this);-1<b&&Bbc.splice(b,1);this._ngZone.runOutsideAngular(function(){a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};g._updateRootElement=function(){var a=this.element.nativeElement,b=a;if(this.rootElementSelector){var c;b=void 0!==a.closest?a.closest(this.rootElementSelector):null==(c=a.parentElement)?void 0:c.closest(this.rootElementSelector)}qbc(this._dragRef,b||a)};
g._getBoundaryElement=function(){var a=this.boundaryElement;return a?"string"===typeof a?this.element.nativeElement.closest(a):ch(a):null};
g._syncInputs=function(a){var b=this;a.beforeStarted.subscribe(function(){if(!a.isDragging()){var c=b._dir,d=b.dragStartDelay,e=b._placeholderTemplate?{template:b._placeholderTemplate.templateRef,context:b._placeholderTemplate.data,viewContainer:b._viewContainerRef}:null,f=b._previewTemplate?{template:b._previewTemplate.templateRef,context:b._previewTemplate.data,matchSize:b._previewTemplate.matchSize,viewContainer:b._viewContainerRef}:null;a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.dragStartDelay=
"object"===typeof d&&d?d:dh(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=tbc(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(nf()).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){if(c.classList.contains("cdk-drag")){var d=void 0;pbc(a,(null==(d=Bbc.find(function(e){return e.element.nativeElement===
c}))?void 0:d._dragRef)||null);break}c=c.parentElement}})};
g._handleEvents=function(a){var b=this;a.started.subscribe(function(c){b.started.emit({source:b,event:c.event});b._changeDetectorRef.markForCheck()});a.released.subscribe(function(c){b.released.emit({source:b,event:c.event})});a.ended.subscribe(function(c){b.ended.emit({source:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:c.container.data,item:b,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:c.container.data,
item:b})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,isPointerOverContainer:c.isPointerOverContainer,item:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event})})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,h=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=null==h?!1:h;this.dragStartDelay=c||0;b&&(this.lockAxis=b);d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
g._setupHandlesListener=function(){var a=this;this._handles.changes.pipe(yf(this._handles),Bf(function(b){b=b.filter(function(c){return c._parentDrag===a}).map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);sbc(a._dragRef,b)}),zf(function(b){return B.merge.apply(null,p(b.map(function(c){return c._stateChanges.pipe(yf(c))})))}),Af(this._destroyed)).subscribe(function(b){var c=a._dragRef,d=b.element.nativeElement;b.disabled?!c._disabledHandles.has(d)&&-1<c._handles.indexOf(d)&&
(c._disabledHandles.add(d),Zo(d,!0)):c._disabledHandles.has(d)&&(c._disabledHandles.delete(d),Zo(d,c.disabled))})};Qh.Object.defineProperties(HR.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(a){this._disabled=ah(a);this._dragRef.disabled=this._disabled}}});var Bbc=[];HR.\u0275fac=function(a){return new (a||HR)(z(ae),z(Abc,12),z(Oh),z(Df),z(wg),z(gbc,8),z(py,8),z(GR),z(xv),z(dbc,10),z(cbc,12))};
HR.\u0275dir=sd({type:HR,selectors:[["","cdkDrag",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,fbc,5),Ag(c,ebc,5),Ag(c,dbc,5));if(a&2){var d;yg(d=Bg())&&(b._previewTemplate=d.first);yg(d=Bg())&&(b._placeholderTemplate=d.first);yg(d=Bg())&&(b._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&Xf("cdk-drag-disabled",b.disabled)("cdk-drag-dragging",b._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement",
"rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",
entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[lg([{provide:cbc,useExisting:HR}]),Fd]});var Cbc=new Ad("CdkDropListGroup");var Dbc=0,IR=function(a,b,c,d,e,f,h){var k=this;this.element=a;this._changeDetectorRef=c;this._scrollDispatcher=d;this._dir=e;this._group=f;this._destroyed=new B.Subject;this.connectedTo=[];this.id="cdk-drop-list-"+Dbc++;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new Yu;this.entered=new Yu;this.exited=new Yu;this.sorted=new Yu;this._unsortedItems=new Set;this._dropListRef=new xbc(a,b._dragDropRegistry,b._document,b._ngZone,b._viewportRuler);this._dropListRef.data=
this;h&&this._assignDefaults(h);this._dropListRef.enterPredicate=function(q,u){return k.enterPredicate(q.data,u.data)};this._dropListRef.sortPredicate=function(q,u,x){return k.sortPredicate(q,u.data,x.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);Ebc.push(this);f&&f._items.add(this)};IR.prototype.addItem=function(a){this._unsortedItems.add(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};
IR.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};var Fbc=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return rbc(b._dragRef).compareDocumentPosition(rbc(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=IR.prototype;
g.ngOnDestroy=function(){var a=Ebc.indexOf(this);-1<a&&Ebc.splice(a,1);this._group&&this._group._items.delete(this);this._unsortedItems.clear();this._dropListRef.dispose();this._destroyed.next();this._destroyed.complete()};
g._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(yf(this._dir.value),Af(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=mma(b.connectedTo).map(function(e){return"string"===typeof e?Ebc.find(function(f){return f.id===e}):e});b._group&&b._group._items.forEach(function(e){-1===c.indexOf(e)&&c.push(e)});if(!b._scrollableParentsResolved){var d=xMb(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
wbc(b._dropListRef,d);b._scrollableParentsResolved=!0}a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=ah(b.sortingDisabled);a.autoScrollDisabled=ah(b.autoScrollDisabled);a.autoScrollStep=dh(b.autoScrollStep,2);ybc(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
g._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef();b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:b,item:c.item.data,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:b,item:c.item.data});b._changeDetectorRef.markForCheck()});a.sorted.subscribe(function(c){b.sorted.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,container:b,item:c.item.data})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,
currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,item:c.item.data,isPointerOverContainer:c.isPointerOverContainer,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});(0,B.merge)(a.receivingStarted,a.receivingStopped).subscribe(function(){return b._changeDetectorRef.markForCheck()})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.draggingDisabled,d=a.sortingDisabled,e=a.listAutoScrollDisabled;a=a.listOrientation;this.disabled=null==c?!1:c;this.sortingDisabled=null==d?!1:d;this.autoScrollDisabled=null==e?!1:e;this.orientation=a||"vertical";b&&(this.lockAxis=b)};g._syncItemsWithRef=function(){this._dropListRef.withItems(Fbc(this).map(function(a){return a._dragRef}))};
Qh.Object.defineProperties(IR.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=ah(a)}}});var Ebc=[];IR.\u0275fac=function(a){return new (a||IR)(z(ae),z(GR),z(xv),z(zy),z(py,8),z(Cbc,12),z(gbc,8))};
IR.\u0275dir=sd({type:IR,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(Nf("id",b.id),Xf("cdk-drop-list-disabled",b.disabled)("cdk-drop-list-dragging",b._dropListRef.isDragging())("cdk-drop-list-receiving",0<b._dropListRef._activeSiblings.size))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis",
"lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},
exportAs:["cdkDropList"],standalone:!0,features:[lg([{provide:Cbc,useValue:void 0},{provide:Abc,useExisting:IR}])]});var JR=function(){};JR.\u0275fac=function(a){return new (a||JR)};JR.\u0275mod=qd({type:JR});JR.\u0275inj=ad({providers:[GR],imports:[Ey]});var Gbc=["addLink"],Hbc=["showFewer"],Ibc=["showMore"],Jbc=["removeButton"],Kbc=["userChip"],bMa=function(a,b){return{item:a,$index:b}},uMa=function(a){return{q:a}},Lbc=[[["",8,"title-action"]],[["",8,"value-action"]]],Mbc=[Object.assign({},cp("start","bottom"),dp("start","top"),{offsetY:8}),Object.assign({},cp("center","bottom"),dp("center","top"),{offsetY:8}),Object.assign({},cp("end","bottom"),dp("end","top"),{offsetY:8}),Object.assign({},cp("start","top"),dp("start","bottom"),{offsetY:-8}),Object.assign({},
cp("end","top"),dp("end","bottom"),{offsetY:-8})],KR=function(a,b,c,d){Y.call(this);this.cdr=a;this.dateFormatter=b;this.analytics=c;this.OVERLAY_POSITION_LIST=Mbc;this.defaultLineCount=Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.userMap=new Map;this.enumChoices=null;this.sortedEnumChoices=[];this.enumPendingValues=new Set;this.isUser=this.isActive=!1;this.valuesChange=new Yu;this.showingAll=this.listFieldDisabled=!1;this.tooltip=
this.title="";this.truncate=!1;this.additionAllowed=!0;this.isExpanded=this.isCollapsible=!1;this.collapsiblePanelTitle=this.iconName="";this.customFieldId=0;this.inputValidator=null;this.toggleAccessLimits=new Yu;this.teamId=this.invalidMessage="";this.isString=mi;this.enableTeamAnnotations=d.isInternalSession();this.environmentType=d.getEnvironmentType()};W(KR,Y);KR.\u0275dir=Y.\u0275dir;
KR.prototype.ngOnChanges=function(a){var b;if(null==(b=a.users)?0:b.currentValue)for(a=l(a.users.currentValue),b=a.next();!b.done;b=a.next()){b=b.value;var c=zi(b);c&&this.userMap.set(c,li(b))}};KR.prototype.ngOnInit=function(){hMa(this)};KR.prototype.ngAfterViewInit=function(){var a=this,b;null==(b=this.userChips)||b.changes.subscribe(function(){a.cdr.detectChanges()})};
var hMa=function(a){a.sortedEnumChoices=[].concat(p(a.enumChoices||[])).sort(function(b){b=b.value;var c,d=(null==(c=a.values)?0:c.includes(b))?1:0,e;return((null==(e=a.values)?0:e.includes(b))?1:0)-d})},iMa=function(a){var b=a.values||[],c=[].concat(p(a.enumPendingValues)),d=c.filter(function(f){return!b.includes(f)}),e=b.filter(function(f){return!c.includes(f)});if(d.length||e.length)a.values=c,a.valuesChange.emit({values:a.values,added:d,removed:e})};
KR.prototype.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
KR.prototype.removeItem=function(a){var b=this;if(!this.listFieldDisabled){var c=this.values.splice(a,1);this.valuesChange.emit({values:this.values,removed:c})}this.schedule(function(){var d;if(null==(d=b.values)?0:d.length){d=Math.min(a,b.values.length-1);var e,f,h;null==(e=b.removeButtons)||null==(f=e.get(d))||null==(h=f.nativeElement)||h.focus()}else{var k,q;null==(k=b.addLinkEl)||null==(q=k.nativeElement)||q.focus()}})};
KR.prototype.addItems=function(a){var b=[];this.values=this.values||[];if(a)if("REPEATED_DATE"===this.type){var c=vl(a);this.preventDuplicates&&this.values.find(function(f){return ki(f,c)})||b.push(c)}else if("REPEATED_NUMERIC"===this.type&&Kpa(this.values)&&Kpa(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(ni(this.values)&&ni(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=l(a.split(/[,; ]/));
for(var d=a.next();!d.done;d=a.next()){var e=d=d.value;"CHANGELISTS"===this.type&&(e=UMa(d));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&"REPEATED_DATE"!==this.type||QMa(this,!0);0!==b.length&&(this.values=[].concat(p(this.values),p(b)),this.valuesChange.emit({values:this.values,added:b}))};KR.prototype.onDrop=function(a){ap(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
var QMa=function(a,b){var c,d=l(null!=(c=a.menuTriggers)?c:[]);for(c=d.next();!c.done;c=d.next())c.value.closeMenu();var e;d=l(null!=(e=a.popupTriggers)?e:[]);for(c=d.next();!c.done;c=d.next())e=c.value,e.disabled||(e.disabled=!0,e.disabled=!1);b&&a.addLinkEl&&a.addLinkEl.nativeElement.focus()},bp=function(a,b,c){null==c||c.stopPropagation();null==c||c.preventDefault();a.showingAll=b;a.cdr.detectChanges();a.schedule(function(){var d,e,f;null==(d=null!=(f=a.showFewer)?f:a.showMore)||null==(e=d.nativeElement)||
e.focus()})};KR.prototype.getDisplayValues=function(){var a=this;return this.values&&"REPEATED_DATE"===this.type?this.values.map(function(b){return a.dateFormatter.formatUserCalendar(ul(b))}):this.values&&"TEAM"===this.type?this.values:this.values&&"WORKSPACES"===this.type?this.values:this.values&&"REPEATED_ENUM"===this.type?this.values:this.displayValuesOverride||(this.values||[]).map(function(b){return mi(b)?b:Jpa(b)?""+b:a.dateFormatter.formatUserCalendar(ul(b))})};
var PMa=function(a,b,c){var d,e,f;return Ne(function(h){if(1==h.nextAddress)return a.inputValidator?h.yield(a.inputValidator(b.value.input),3):h.jumpTo(2);2!=h.nextAddress&&(a.invalidMessage=h.yieldResult,a.cdr.detectChanges());if(!b.valid||a.invalidMessage)return h.return();d=b.value.input;null==(e=b)||e.reset();null==(f=c.querySelector("input"))||f.focus();a.addItems(d);Se(h)})};g=KR.prototype;g.trackClick=function(a){this.analytics.trackEvent(xp.LINK_FIELD,"click",a)};g.getUser=function(a){return this.userMap.get(a)};
g.schedule=function(a){this.subscriptions.add(B.asyncScheduler.schedule(a))};g.trackByIndex=function(a){return a};g.asNumber=function(a){return Number(a)};g.getAriaLabel=function(){if(!this.values||0===this.values.length)return this.title+" is empty";var a=this.title+" has "+this.values.length+" ";switch(this.type){case "USERCHIP":a+="user";break;case "REPEATED_DATE":a+="date";break;default:a+="item"}1<this.values.length&&(a+="s");return a};
KR.\u0275fac=function(a){return new (a||KR)(z(yD,2),z(HL),z(zH),z(Us))};
KR.\u0275cmp=od({type:KR,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(zg(Gbc,5),zg(Hbc,5),zg(Ibc,5),zg(Jbc,5),zg(Kbc,5),zg(zB,5),zg(fK,5));if(a&2){var c;yg(c=Bg())&&(b.addLinkEl=c.first);yg(c=Bg())&&(b.showFewer=c.first);yg(c=Bg())&&(b.showMore=c.first);yg(c=Bg())&&(b.removeButtons=c);yg(c=Bg())&&(b.userChips=c);yg(c=Bg())&&(b.menuTriggers=c);yg(c=Bg())&&(b.popupTriggers=c)}},inputs:{defaultLineCount:"defaultLineCount",readonly:"readonly",preventDuplicates:"preventDuplicates",isDefaultOrAllowedValues:"isDefaultOrAllowedValues",
values:"values",users:"users",displayValuesOverride:"displayValuesOverride",enumChoices:"enumChoices",isUser:"isUser",listFieldDisabled:"listFieldDisabled",showingAll:"showingAll",title:"title",type:"type",tooltip:"tooltip",truncate:"truncate",additionAllowed:"additionAllowed",isCollapsible:"isCollapsible",isExpanded:"isExpanded",iconName:"iconName",collapsiblePanelTitle:"collapsiblePanelTitle",customFieldId:"customFieldId",inputValidator:"inputValidator",teamId:"teamId"},outputs:{valuesChange:"valuesChange",
toggleAccessLimits:"toggleAccessLimits"},features:[lg([yD]),Jf,Fd],ngContentSelectors:[".title-action",".value-action"],decls:23,vars:18,consts:[[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],["tabindex","0",1,"bv2-issue-metadata-field-inner",3,"matTooltip","matTooltipPosition"],[1,"bv2-editable-title"],[4,"ngIf"],["cdkDropList","",1,"list-field-content",3,"cdkDropListDisabled","cdkDropListDropped"],[3,"isExpanded","iconName","hasCompactTitleBar","title",4,"ngIf"],[1,"bv2-field-user-action-footer"],
["addLink",""],[3,"ngSwitch",4,"ngIf"],["itemRenderer",""],["metadataTools",""],["enumPopup","matMenu"],["matMenuContent",""],["textPopup",""],["datePopup",""],[3,"isExpanded","iconName","hasCompactTitleBar","title"],["cdkDrag","",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],["cdkDrag",""],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[3,"ngSwitch"],["mat-button","","aria-haspopup","true","class","mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Select items in the list",
"tabindex","0",3,"matMenuTriggerFor","menuOpened","menuClosed",4,"ngSwitchCase"],["mat-button","","class","mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Add a new item to the list","tabindex","0",3,"xapInlineDialogClick","overlayPositions",4,"ngSwitchCase"],["mat-button","","panelClass","bv2-add-item-bubble","class","mat-primary bv2-metadata-tool bv2-metadata-link tiny","tabindex","0",3,"xapInlineDialogClick","overlayPositions","matTooltip","beforeOpened",4,"ngSwitchDefault"],
["mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"matMenuTriggerFor","menuOpened","menuClosed"],["mat-button","","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link",
"tiny",3,"xapInlineDialogClick","overlayPositions","matTooltip","beforeOpened"],["class","flex-kids-x flex-cross-axis-centered flex-wrappable",4,"ngIf"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-issue-metadata-list-item"],[4,"ngIf","ngIfElse"],["checkIfWorkspaces",""],["checkIfTeam",""],["checkIfPostMortems",""],["checkIfRepeatedEnum",""],["default",""],["tabindex","0","aria-label","Open issue access dialog.","class","issue-metadata-field-edit-icon","size","small","name",
"edit_24px",3,"click",4,"ngIf","ngIfElse"],["removeIcon",""],[1,"float-clear"],[3,"changelistId"],["target","_blank",1,"bv2-metadata-link",3,"href"],[3,"teamId","componentId"],["target","_blank",1,"bv2-metadata-link",3,"href","click"],["class","overflow-ellipsis",3,"matTooltip",4,"ngIf","ngIfElse"],[1,"overflow-ellipsis",3,"matTooltip"],["routerLink","/issues",1,"subtle-link",3,"queryParams","click"],["class","list-field-user-container",4,"ngIf"],[3,"maxWidth","modelValue","disabled"],[1,"list-field-user-container"],
[3,"user","email","teamId","enableSmallChip","enableGroupIcon",4,"ngIf"],[3,"email",4,"ngIf"],[3,"user","email","teamId","enableSmallChip","enableGroupIcon"],["userChip",""],[3,"email"],["tabindex","0","aria-label","Open issue access dialog.","size","small","name","edit_24px",1,"issue-metadata-field-edit-icon",3,"click"],["class","bv2-remove-icon bv2-remove-item keep-focus-ring",3,"disabled","matTooltip","click",4,"ngIf"],[1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"disabled","matTooltip",
"click"],["removeButton",""],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["showFewer",""],[1,"bv2-metadata-tool"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["showMore",""],["mat-menu-item","","type","button",
"role","menuitemcheckbox",3,"disabled","b-menu-item-checked","click",4,"ngFor","ngForOf","ngForTrackBy"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"disabled","click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],[3,"ngSubmit"],["textPopupForm","ngForm","formEl",""],["type","text","name","input","ngModel","","required","","aria-expanded","true","autofocus","",3,"bContactAutocomplete",4,"ngIf"],["name","input","ngModel","","required","","step","any","aria-expanded",
"true","autofocus","",3,"type",4,"ngIf"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"gmat-button","medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"gmat-button","medium","field-popup-button",3,"click"],["svgIcon","close"],["type","text","name","input","ngModel","","required","","aria-expanded","true","autofocus","",3,"bContactAutocomplete"],["name","input","ngModel","","required","","step","any","aria-expanded",
"true","autofocus","",3,"type"],[3,"required","renderPanel","dateChange","cancelClicked"]],template:function(a,b){a&1&&(eg(Lbc),D(0,"div",0)(1,"div",1)(2,"div",2),P(3,aMa,2,1,"label",3),fg(4),F(),D(5,"div",4),L("cdkDropListDropped",function(c){return b.onDrop(c)}),P(6,dMa,3,7,"collapsible-panel",5),P(7,gMa,4,4,"ng-container",3),D(8,"div",6,7),P(10,mMa,4,3,"ng-container",8),fg(11,1),F()()(),P(12,GMa,1,1,"ng-template",null,9,Eg),P(14,JMa,2,2,"ng-template",null,10,Eg),D(16,"mat-menu",null,11),P(18,LMa,
1,2,"ng-template",12),F(),P(19,RMa,13,6,"ng-template",null,13,Eg),P(21,SMa,1,2,"ng-template",null,14,Eg),F());a&2&&(Xf("empty-list-field-indication",!(null==b.values?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),w(1),Xf("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),C("matTooltip",b.tooltip)("matTooltipPosition","left"),Nf("aria-label",b.getAriaLabel()),w(2),C("ngIf",b.title),w(2),Xf("draggable",(null==b.values?null:b.values.length)&&b.isDefaultOrAllowedValues),
C("cdkDropListDisabled",!b.isDefaultOrAllowedValues),w(1),C("ngIf",b.isCollapsible),w(1),C("ngIf",!b.isCollapsible),w(3),C("ngIf",!b.readonly&&b.additionAllowed))},dependencies:[Dv,Ev,Jv,Fv,Gv,Hv,qA,bD,fA,tR,RL,pw,Tg,hw,iw,zw,ow,mw,Ez,FB,CN,oR,MO,IR,HR,cK,bK,fK,AB,yB,zB,xB,mR,zR,xR,YD],styles:["xap-dialog-layout[_ngcontent-%COMP%]{padding:16px}xap-dialog-layout-content[_ngcontent-%COMP%]{padding:0}.list-field-content.draggable[_ngcontent-%COMP%]{cursor:grab}.list-field-content.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.bv2-editable-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{word-break:normal;overflow-wrap:anywhere}b-icon[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%]     .bv2-field-user-action-footer span{width:max-content;display:flex}"]});
var Nbc={USERCHIP:"USERCHIP",CHANGELISTS:"CHANGELISTS",POSTMORTEMS:"POSTMORTEMS",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",REPEATED_NUMERIC:"REPEATED_NUMERIC",TEAM:"TEAM",WORKSPACES:"WORKSPACES"},LR=function(){};LR.\u0275fac=function(a){return new (a||LR)};LR.\u0275mod=qd({type:LR});LR.\u0275inj=ad({imports:[aD,hD,oA,uR,rM,Dw,SB,FC,IO,wR,pR,NO,JR,DK,FK,BB,nR,AR,FK,yR,bE]});var WMa=function(){return[]},MR=function(){this.disabled=this.readonly=!1;this.save=new Yu},Obc=function(a){return a.issue.customFieldMap[a.field.customFieldId]};MR.prototype.getDisplayValue=function(){var a,b,c=null!=(b=null==(a=Obc(this).displayValues)?void 0:a[0])?b:null;"0.0"===c&&(c="0");return c};MR.prototype.getTooltip=function(){var a=this.field.customFieldId;a=this.field.shared?"(Global Field "+a+". see go/b-gcf)":"[ID: "+a+"]";var b;return(null!=(b=this.field.description)?b:"")+" "+a};
var VMa=function(a){return(a=Obc(a).getValue())&&void 0===a.values?a:null},YMa=function(a){return(a=Obc(a).getValue())&&void 0!==a.values?a.values:null};Qh.Object.defineProperties(MR.prototype,{isShared:{configurable:!0,enumerable:!0,get:function(){return this.field.shared}}});MR.\u0275fac=function(a){return new (a||MR)};
MR.\u0275cmp=od({type:MR,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&zg(qR,5);if(a&2){var c;yg(c=Bg())&&(b.editField=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&Xf("is-shared-field",b.isShared)},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId",
"valueChange",4,"ngIf"],[3,"readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled","valuesChange",4,"ngIf"],[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId","valueChange"],[3,"readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled","valuesChange"]],
template:function(a,b){a&1&&P(0,$Ma,3,2,"ng-container",0);a&2&&C("ngIf",Obc(b))},dependencies:[Ev,KR,qR],encapsulation:2});var NR=function(){};NR.\u0275fac=function(a){return new (a||NR)};NR.\u0275mod=qd({type:NR});NR.\u0275inj=ad({imports:[aD,LR,rR]});var OR=function(){this.showFolderSpecialIcon=!1;this.mode="default";this.query="";this.selectComponentId=new Yu;this.expandComponent=new Yu;this.goBack=new Yu};OR.prototype.ngOnInit=function(){};OR.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};OR.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};OR.\u0275fac=function(a){return new (a||OR)};
OR.\u0275cmp=od({type:OR,selectors:[["component-row"]],inputs:{showFolderSpecialIcon:"showFolderSpecialIcon",componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},decls:13,vars:10,consts:[[1,"container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"content"],[1,"margin-s-right"],[4,"ngIf","ngIfElse"],["leafOnly",""],["class","archived-indicator",4,"ngIf"],[3,"accessLevel","labelOnlyMode"],
[3,"trackerId","showHovercard"],["svgIcon","history"],["mat-icon-button","","aria-label","Return to search results","matTooltip","Return to search results",3,"mousedown"],["svgIcon","back"],["mat-icon-button","",1,"expand-button",3,"matTooltip","mousedown"],[3,"svgIcon"],[4,"ngFor","ngForOf"],["noAccessComponent",""],[4,"ngIf"],[1,"subtle-link",3,"innerHtml","mousedown"],[1,"subtle-link",3,"mousedown"],[1,"archived-indicator"]],template:function(a,b){a&1&&(D(0,"div",0),I(1,1),P(2,aNa,2,0,"ng-container",
2),P(3,bNa,3,0,"ng-container",2),P(4,cNa,3,3,"ng-container",3),K(),D(5,"div",4)(6,"span",5),P(7,hNa,2,1,"ng-container",6),P(8,jNa,1,1,"ng-template",null,7,Eg),P(10,kNa,2,0,"span",8),F(),G(11,"b-access-level-indicator",9)(12,"b-tracker-chip-smart",10),F()());if(a&2){var c=N(9);w(1);C("ngSwitch",b.mode);w(1);C("ngSwitchCase","recent");w(1);C("ngSwitchCase","tree");w(4);C("ngIf","leaf"!==b.mode)("ngIfElse",c);w(3);C("ngIf",b.componentOption.archived);w(1);C("accessLevel",null==b.componentOption.accessLimit?
null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",!0);w(1);C("trackerId",b.componentOption.trackerId)("showHovercard",!1)}},dependencies:[Dv,Ev,Fv,Gv,Hv,qA,Ez,FB,HP,XO,II,NI],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:4px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.content[_ngcontent-%COMP%]{display:inline-block;margin-left:8px;margin-top:1px;line-height:20px}.mat-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:18px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:18px;width:18px;line-height:18px}.archived-indicator[_ngcontent-%COMP%]{margin-left:4px;color:#ea4335;color:var(--bad)}\n/*# sourceMappingURL=component_row.css.map */"]});var PR=function(a,b,c,d,e,f,h){var k=this;this.userApi=a;this.componentActions=b;this.teamsService=c;this.analytics=d;this.destroyed$=e;this.config=f;this.currentTracker=h;this.includeArchived=!1;this.searchQuery$=new B.BehaviorSubject("");this.debouncedSearchQuery$=this.searchQuery$.pipe(jf(250));this.state$=new B.BehaviorSubject("default");this.listUpdated$=new B.Subject;this.componentsLoading=this.teamsLoading=!1;this.teamScope$=new B.BehaviorSubject(void 0);this.componentOptions=[];this.childTeamsMap=
new Map;this.componentCountMap=new Map;this.recentComponents=[];this.myTeams$=new B.BehaviorSubject([]);this.showAllTeams$=new B.BehaviorSubject(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(mf());this.teamOptions$=new B.BehaviorSubject([]);this.filteredTeamOptions$=(0,B.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(A(function(q){q=l(q);var u=q.next().value;return q.next().value?u:u.slice(0,5)}));this.hasHiddenTeams$=(0,B.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(A(function(q){var u=
l(q);q=u.next().value;u=u.next().value;return 5<q.length&&!u}));this.newChildTeams$=new B.BehaviorSubject([]);this.teamsDisplayed$=(0,B.merge)(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(A(function(q){return q?[q]:[]}))).pipe(A(function(q){return q.map(function(u){return u.id})}));this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(A(function(q){return q.filter(function(u){return!k.childTeamsMap.has(u)})}),cf(function(q){return 0<q.length}),zf(function(q){return k.teamsService.getChildTeams(q)}),
A(oNa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(A(function(q){return q.filter(function(u){return!k.componentCountMap.has(u)})}),cf(function(q){return 0<q.length}),zf(function(q){return IZb(k.teamsService,q)}));this.componentIdSelected$=new B.ReplaySubject(1);this.lastProcessedIndex=-1;this.requestIndex=0};
PR.prototype.init=function(a){var b=this;a=void 0===a?!1:a;Pbc(this);(0,B.combineLatest)([this.debouncedSearchQuery$.pipe(xf(a?1:0)),this.state$]).pipe(Af(this.destroyed$)).subscribe(function(c){var d=l(c);c=d.next().value;d=d.next().value;b.showAllTeams$.next(!1);"default"===d?c?b.state$.next("global"):(b.componentOptions=[],b.teamOptions$.next([]),b.listUpdated$.next()):"global"===d?c?(b.includeTeamData()&&Qbc(b,c),Rbc(b,c)):b.state$.next("default"):"team_scope"===d?b.teamScope$.value&&(b.teamOptions$.next([]),
Rbc(b,"teamid:"+b.teamScope$.value.id+" "+c)):"component_scope"===d&&b.componentScope&&Sbc(b,b.componentScope.id)});this.debouncedSearchQuery$.pipe(Cf(this.state$),Af(this.destroyed$)).subscribe(function(c){c=l(c);var d=c.next().value;"component_scope"===c.next().value&&b.state$.next(d?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(Af(this.destroyed$)).subscribe(function(c){c=l(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b.childTeamsMap.set(d,
e)}});this.unseenTeamComponentCountMap$.pipe(Af(this.destroyed$)).subscribe(function(c){c=l(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b.componentCountMap.set(d,e)}})};PR.prototype.getTrackerId=function(){return this.currentTracker.getTrackerId()};PR.prototype.includeTeamData=function(){return this.config.includeTeamData&&!this.currentTracker.inTracker};
var Pbc=function(a){a.componentsLoading=!0;a.userApi.getRecentComponents().then(function(b){b=b.filter(function(c){return a.filterTrackerComponents(c)});b=Tbc(a,b);a.recentComponents=b;a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1});a.includeTeamData()&&(a.teamsLoading=!0,wI(a.teamsService,"").pipe(Af(a.destroyed$)).subscribe(function(b){a.myTeams$.next(b.map(lNa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
PR.prototype.filterTrackerComponents=function(a){return!this.currentTracker.inTracker||a.trackerId===this.getTrackerId()};PR.prototype.selectOption=function(a){"component"===a.type?BOa(this,a.id):"team"===a.type?INa(this,a):console.warn("invalid option selected")};
var BOa=function(a,b){var c=Ubc(a);a.analytics.trackEvent(xp.COMPONENT_PICKER,"autocomplete-select",c);a.componentIdSelected$.next(b);a.state$.next("global")},Ubc=function(a){if("default"===a.state$.value)return"recent-component";if("global"===a.state$.value)return"global-search";if("component_scope"===a.state$.value)return"component-scope";if("team_scope"===a.state$.value){var b,c=null==(b=a.teamScope$.value)?void 0:b.id;return a.myTeams$.value.some(function(d){return d.id===c})?"my-team":"team-scope"}return""};
PR.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var oOa=function(a,b){a.componentActions.get(b).then(function(c){var d=is(a.currentTracker,c.componentPathInfo);a.componentScope=nNa(c,d);a.state$.next("component_scope")})},nOa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},INa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||fp(a,b.id)},fp=function(a,b){a.teamsLoading=!0;wI(a.teamsService,b).pipe(Af(a.destroyed$)).subscribe(function(c){c=
c.map(lNa);if(1===c.length){c=c[0];var d,e=c.id!==(null==(d=a.teamScope$.value)?void 0:d.id);a.teamScope$.next(c);a.teamsLoading=!1;e&&a.state$.next("team_scope")}},function(){a.teamsLoading=!1})},Vbc=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(2>a.teamScope$.value.pathIds.length)){var b=a.teamScope$.value.pathIds;fp(a,b[b.length-2])}};PR.prototype.getChildTeams=function(a){var b;return null!=(b=this.childTeamsMap.get(a))?b:[]};
PR.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?0===this.componentCountMap.get(a):!1};
var dOa=function(a,b){b.expanded=!1;a.listUpdated$.next()},eOa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},hOa=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},Qbc=function(a,b){1<b.length&&(a.teamsLoading=!0,wI(a.teamsService,b).pipe(Af(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.map(lNa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},Rbc=function(a,b){if(1<b.length){a.componentsLoading=
!0;var c=a.requestIndex++;a.componentActions.search(b,a.includeArchived).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=Tbc(a,d));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},Sbc=function(a,b){var c=a.requestIndex++;a.componentsLoading=!0;a.componentActions.getChildren(b).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=Tbc(a,d),a.listUpdated$.next())}).finally(function(){a.componentsLoading=!1})},Tbc=
function(a,b){return b.map(function(c){var d=is(a.currentTracker,c.componentPathInfo);return nNa(c,d)})};var Wbc=0,QR=function(a,b){this.changeDetectorRef=a;this.elementRef=b;this.active=!1;this.id="b-component-picker-option-"+Wbc;Wbc+=1};QR.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};QR.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};QR.\u0275fac=function(a){return new (a||QR)(z(xv),z(ae))};
QR.\u0275dir=sd({type:QR,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(cg("id",b.id),Xf("active",b.active))},inputs:{data:"data",listOrder:"listOrder"}});var RR=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new Yu};RR.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};RR.prototype.ngOnInit=function(){};RR.\u0275fac=function(a){return new (a||RR)};
RR.\u0275cmp=od({type:RR,selectors:[["team-row"]],inputs:{teamOption:"teamOption",query:"query",allowSegmentSelection:"allowSegmentSelection",compact:"compact",hasNoComponent:"hasNoComponent"},outputs:{selectTeamId:"selectTeamId"},decls:5,vars:7,consts:[[1,"container"],["alt","Team logo",4,"ngIf"],[1,"content"],["class","name-row",4,"ngIf"],["class","path",4,"ngIf"],["alt","Team logo"],[1,"name-row"],[1,"team-name",3,"innerHtml"],["class","no-component-label",4,"ngIf"],[1,"no-component-label"],[1,
"path"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["lastSeg",""],["plainText",""],[1,"subtle-link",3,"mousedown"],["normal",""],[1,"team-name"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,pNa,1,1,"img",1),D(2,"div",2),P(3,rNa,4,5,"div",3),P(4,zNa,2,1,"div",4),F()());a&2&&(Xf("no-component",b.hasNoComponent)("compact",b.compact),w(1),C("ngIf",!b.compact),w(2),C("ngIf",!b.compact),w(1),C("ngIf",b.teamOption.pathNames&&b.teamOption.pathNames.length))},dependencies:[Dv,Ev,II],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:4px}.no-component[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-webkit-filter:grayscale(1);filter:grayscale(1)}.no-component[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-left:8px;width:100%}.container[_ngcontent-%COMP%]:not(.compact)   .path[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]:not(.compact)   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.container.compact[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{margin-left:2px}.name-row[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.no-component-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.6875rem;line-height:1.2307692308;margin-left:auto}img[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;object-fit:contain;width:20px;height:20px}\n/*# sourceMappingURL=team_row.css.map */"]});var Xbc=new Ad("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Ybc=new Ad("mat-progress-bar-location",{providedIn:"root",factory:ANa});Rh(function(a){this._elementRef=a},"primary");Rh(function(a){this._elementRef=a},"primary");var Zbc=["primaryValueBar"],$bc=Rh(function(a){this._elementRef=a},"primary"),acc=0,SR=function(a,b,c,d,e,f){a=$bc.call(this,a)||this;a._ngZone=b;a._animationMode=c;a._changeDetectorRef=f;a._isNoopAnimation=!1;a._value=0;a._bufferValue=0;a.animationEnd=new Yu;a._animationEndSubscription=B.Subscription.EMPTY;a.mode="determinate";a.progressbarId="mat-progress-bar-"+acc++;a._rectangleFillValue="url('"+(d?d.getPathname().split("#")[0]:"")+"#"+a.progressbarId+"')";a._isNoopAnimation="NoopAnimations"===
c;e&&(e.color&&(a.color=a.defaultColor=e.color),a.mode=e.mode||a.mode);return a};W(SR,$bc);SR.prototype._primaryTransform=function(){return{transform:"scale3d("+this.value/100+", 1, 1)"}};SR.prototype._bufferTransform=function(){return"buffer"===this.mode?{transform:"scale3d("+this.bufferValue/100+", 1, 1)"}:null};
SR.prototype.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,B.fromEvent)(b,"transitionend").pipe(cf(function(c){return c.target===b})).subscribe(function(){0!==a.animationEnd.observers.length&&("determinate"!==a.mode&&"buffer"!==a.mode||a._ngZone.run(function(){return a.animationEnd.next({value:a.value})}))})})};SR.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()};
Qh.Object.defineProperties(SR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,dh(a)||0));var b;null==(b=this._changeDetectorRef)||b.markForCheck()}},bufferValue:{configurable:!0,enumerable:!0,get:function(){return this._bufferValue},set:function(a){this._bufferValue=Math.max(0,Math.min(100,a||0));var b;null==(b=this._changeDetectorRef)||b.markForCheck()}}});
SR.\u0275fac=function(a){return new (a||SR)(z(ae),z(Df),z(iu,8),z(Ybc,8),z(Xbc,8),z(xv))};
SR.\u0275cmp=od({type:SR,selectors:[["mat-progress-bar"]],viewQuery:function(a,b){a&1&&zg(Zbc,5);if(a&2){var c;yg(c=Bg())&&(b._primaryValueBar=c.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:5,hostBindings:function(a,b){a&2&&(Nf("aria-valuenow","indeterminate"===b.mode||"query"===b.mode?null:b.value)("mode",b.mode)("mat-id-collision",null),Xf("_mat-animation-noopable",b._isNoopAnimation))},inputs:{color:"color",value:"value",
bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Jf],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],"cx 2 cy 2 r 2".split(" "),["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary",
"mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(a,b){a&1&&(D(0,"div",0),Qd(),D(1,"svg",1)(2,"defs")(3,"pattern",2),G(4,"circle",3),F()(),G(5,"rect",4),F(),Kd.currentNamespace=null,G(6,"div",5)(7,"div",6,7)(9,"div",8),F());a&2&&(w(3),C("id",b.progressbarId),w(2),Nf("fill",b._rectangleFillValue),w(1),C("ngStyle",b._bufferTransform()),w(1),C("ngStyle",b._primaryTransform()))},
dependencies:[Iv],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],
encapsulation:2,changeDetection:0});var bcc=["container"],ccc=["inputBox"],dcc=["dropdownTemplate"],ecc=["dropdown"],NNa=function(a){return{mode:"recent",$implicit:a}},SNa=function(a){return[a]},RNa=function(a,b){return{team:a,level:0,order:b}},YNa=function(a){return{mode:"default",$implicit:a}},aOa=function(a){return[0,a]},iOa=function(){return[0]},lOa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},rOa=function(a){return{mode:"leaf",$implicit:a}},wOa=function(a,b,c){return{team:a,level:b,order:c}},fcc=[{originX:"start",
originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],TR=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);this.overlay=a;this.viewContainerRef=b;this.userApi=c;this.componentActions=d;this.teamsService=e;this.userAccess=f;this.paths=h;this.analytics=k;this.activeSession=q;this.currentTracker=u;this.cdr=x;this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=!1;this.accessCheckComplete=new Yu;this.shouldFocus=!1;this.touched=
new Yu;this.selectedComponentChange=new Yu;this.dropdownClosed=new Yu;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();this.searchState=new PR(this.userApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeTeamData:!this.isExternal},this.currentTracker);this.componentLoading=this.isDropdownOpen=!1};W(TR,Y);TR.\u0275dir=Y.\u0275dir;
TR.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent);this.searchState.componentIdSelected$.pipe(Af(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;gcc(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});(0,B.merge)(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(Af(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
TR.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var gcc=function(a){if(a.selectedComponent){var b=is(a.currentTracker,a.selectedComponent.componentPathInfo);b=nNa(a.selectedComponent,b);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},hcc=function(a){if(a.dropdown&&a.keyManager&&a.keyManager.activeItem){var b=a.keyManager.activeItem.elementRef.nativeElement,c=b.offsetTop;b=b.offsetHeight;var d=a.dropdown.nativeElement.scrollTop,e=a.dropdown.nativeElement.offsetHeight;
a.dropdown.nativeElement.scrollTop=c<d?c:c+b>d+e?Math.max(0,c-e+b):d}};g=TR.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(gcc(this),this.checkAdminAccess&&this.selectedComponent&&icc(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();Y.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=iy(jy(new ny(this.listOptions)));this.searchState.listUpdated$.pipe(Af(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(Af(this.destroyed$)).subscribe(function(b){var c=b.toArray();b=c.filter(function(e){return null==e.listOrder});c=c.filter(function(e){return null!=e.listOrder}).sort(LOa);b=[].concat(p(c),p(b));a.listOptions.reset(b);var d;if(null==(d=a.keyManager)?0:d.activeItem)d=b.indexOf(a.keyManager.activeItem),
-1<d&&d!==a.keyManager.activeItemIndex&&a.keyManager.setActiveItem(d)});this.shouldFocus&&setTimeout(function(){a.inputBox.nativeElement.focus()})};g.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
g.close=function(a){a=void 0===a?!1:a;this.isDropdownOpen&&this.dropdownOverlayRef&&(this.searchState.searchQuery$.value||(this.selectedComponent=void 0,this.selectedComponentChange.emit(void 0)),"team_scope"===this.searchState.state$.value&&hOa(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),this.analytics.trackEvent(xp.COMPONENT_PICKER,"close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var jcc=function(a){var b,c,d;return null!=(d=null==(b=a.keyManager)?void 0:null==(c=b.activeItem)?void 0:c.id)?d:void 0};
TR.prototype.handleKeydown=function(a){var b=this;if(this.keyManager)switch(a.key){case "Escape":this.close();break;case "ArrowUp":a.preventDefault();this.isDropdownOpen?(this.keyManager.onKeydown(a),hcc(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||rMb(d);hcc(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),hcc(this)):(this.open(),setTimeout(function(){var d;null!=(d=b.keyManager)&&d._setActiveItemByIndex(0,1);hcc(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?hOa(this.searchState):this.searchState.selectOption(this.keyManager.activeItem.data),a.preventDefault());break;case "ArrowRight":if(this.keyManager.activeItem){var c=this.keyManager.activeItem.data;"team"===c.type?(a.preventDefault(),eOa(this.searchState,c)):"component"===c.type&&(a.preventDefault(),this.searchState.expandComponent(c))}break;case "ArrowLeft":this.keyManager.activeItem&&"team"===this.keyManager.activeItem.data.type&&
(a.preventDefault(),this.searchState.teamScope$.value!==this.keyManager.activeItem.data||this.searchState.teamScope$.value.expanded?dOa(this.searchState,this.keyManager.activeItem.data):Vbc(this.searchState));"component_scope"===this.searchState.state$.value&&(a.preventDefault(),nOa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(hOa(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var ep=function(a){a.preventDefault();a.stopPropagation()},icc=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;uG(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=TR.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new Hy({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:null==(c=this.container.nativeElement)?void 0:c.offsetWidth}))};g.attach=function(){var a=new Tw(this.dropdownTemplateRef,this.viewContainerRef),b;null==(b=this.dropdownOverlayRef)||b.attach(a);var c;null==(c=this.dropdownOverlayRef)||c.updatePosition()};
g.getPositionStrategy=function(){return Ky(GMb(My(Oy(this.overlay.position(),this.container),!1),!1),fcc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};g.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};Qh.Object.defineProperties(TR.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});
TR.\u0275fac=function(a){return new (a||TR)(z(Py),z(wg),z(nH),z(EP),z(uI),z(sG),z(xE),z(zH),z(Us),z(jG),z(xv))};
TR.\u0275cmp=od({type:TR,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(zg(bcc,7),zg(ccc,7),zg(dcc,7),zg(ecc,5),zg(QR,5));if(a&2){var c;yg(c=Bg())&&(b.container=c.first);yg(c=Bg())&&(b.inputBox=c.first);yg(c=Bg())&&(b.dropdownTemplateRef=c.first);yg(c=Bg())&&(b.dropdown=c.first);yg(c=Bg())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",ariaLabel:"ariaLabel",selectedComponent:"selectedComponent",checkAdminAccess:"checkAdminAccess",shouldFocus:"shouldFocus",
includeArchived:"includeArchived"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},features:[Jf,Fd],decls:13,vars:10,consts:[[1,"container","pseudo-input"],["container",""],["type","text","role","combobox","autocomplete","off","spellcheck","false","aria-autocomplete","list",1,"override",3,"ngModel","placeholder","required","ngModelChange","keydown","click","focus","blur"],["inputBox",""],["mat-icon-button",
"","tabindex","-1","matTooltip","Clear component","aria-label","Clear component",3,"mousedown",4,"ngIf"],[4,"ngIf"],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["mat-icon-button","","tabindex","-1","matTooltip","Clear component","aria-label","Clear component",3,"mousedown"],["svgIcon","clear"],["class","bv2-picker-checking",4,"ngIf","ngIfElse"],["maybeShowNotAdmin",""],[1,"bv2-picker-checking"],["class","bv2-picker-error",4,"ngIf"],[1,"bv2-picker-error"],["target","_blank",3,
"href"],[1,"dropdown",3,"mousedown"],["dropdown",""],[1,"progress-bar-container"],["mode","indeterminate",4,"ngIf"],[1,"dropdown-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],["mode","indeterminate"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tree",4,"ngIf"],["role","tree"],[1,"section-header"],[4,"ngFor","ngForOf"],["role","treeitem","listOption","",1,"list-option",3,"data","mousedown"],[3,"teamOption","query","hasNoComponent","selectTeamId"],["tabindex","-1","class","unstyled expand-team-line-button",
3,"mousedown",4,"ngIf"],["tabindex","-1",1,"unstyled","expand-team-line-button",3,"mousedown"],["svgIcon","arrow-down"],["class","team-scope-container",4,"ngIf"],[1,"team-scope-container"],["listOption","",1,"team-scope",3,"data","listOrder"],[3,"teamOption","query","compact","allowSegmentSelection","selectTeamId"],["tabindex","-1","mat-icon-button","","matTooltip","Clear team filter",1,"gmat-button","small","clear-filter",3,"mousedown"],["svgIcon","close"],["class","team-scope-child-teams",4,"ngIf"],
[1,"team-scope-child-teams"],["class","component-scope-container",4,"ngIf"],[1,"component-scope-container"],[1,"title"],["mode","tree",3,"componentOption","goBack","selectComponentId"],["role","treeitem","listOption","",1,"list-option",3,"listOrder","data","mousedown"],[1,"team-row-container"],["class","arrow-button","mat-icon-button","","aria-label","Show child teams",3,"mousedown",4,"ngIf"],["mat-icon-button","","aria-label","Show child teams",1,"arrow-button",3,"mousedown"],["svgIcon","arrow-dropdown"],
["role","listbox",4,"ngIf","ngIfElse"],["emptyList",""],["role","listbox"],["role","option","listOption","","class","list-option",3,"data","mousedown",4,"ngFor","ngForOf"],["role","option","listOption","",1,"list-option",3,"data","mousedown"],[3,"showFolderSpecialIcon","componentOption","query","mode","selectComponentId","expandComponent"],["class","empty-list muted",4,"ngIf"],[1,"empty-list","muted"],[4,"ngSwitchDefault"],["svgIcon","close",1,"icon-xs","valign-middle"],["href","http://go/buganizer:component-mapping#associate",
"target","_blank"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,b){a&1&&(D(0,"div",0,1)(2,"input",2,3),L("ngModelChange",function(d){return b.searchState.searchQuery$.next(d)})("keydown",function(d){return b.handleKeydown(d)})("click",function(){b.open();return b.touched.emit()})("focus",function(){return b.open()})("blur",function(){return b.close()}),T(4,"async"),F(),P(5,BNa,2,0,"button",4),F(),P(6,FNa,4,2,"div",5),P(7,tOa,11,8,"ng-template",null,6,Eg),P(9,zOa,5,11,"ng-template",null,
7,Eg),P(11,KOa,3,2,"ng-template",null,8,Eg));if(a&2){var c=N(3);w(2);C("ngModel",V(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired);Nf("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",jcc(b));w(3);C("ngIf",c.value);w(1);C("ngIf",b.checkAdminAccess)}},dependencies:[Dv,Ev,Jv,Fv,Gv,Hv,qA,Tg,hw,zw,ow,Ez,dD,FB,SR,RR,OR,QR,Kv],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid;border-color:#1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%;max-height:500px;overflow:auto}.dropdown-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:5px 0 10px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}mat-divider[_ngcontent-%COMP%]{width:100%;margin-top:16px;margin-bottom:16px}  .b-team-component-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}.section-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:2px 14px}.section-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:auto}.list-option[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px}.list-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.list-option.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-row-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.team-row-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:4px}team-row[_ngcontent-%COMP%]{width:100%}.team-scope[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 10px}.team-scope[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.team-scope.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border-color:#1a73e8;border-color:var(--primary-c600)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]     .mat-button-focus-overlay{background-color:#1a73e8;background-color:var(--primary-c600);opacity:.12}.team-scope-container[_ngcontent-%COMP%]{margin-bottom:10px}.expand-team-line-button[_ngcontent-%COMP%]{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-top:4px;margin-left:12px;color:#1a73e8;color:var(--link)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon.expanded[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:6px}.mat-icon-button[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:16px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px;line-height:16px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]:not(.expanded){-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.indent[_ngcontent-%COMP%]{margin-left:24px}.arrow-button[_ngcontent-%COMP%]{margin-right:4px}.team-scope-child-teams[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]{padding-left:14px}.component-scope-container[_ngcontent-%COMP%] > .title[_ngcontent-%COMP%]{font-weight:700;padding:4px 16px;background-color:#f1f3f4;background-color:var(--c100)}.component-scope-container[_ngcontent-%COMP%] > component-row[_ngcontent-%COMP%]{display:block;margin-left:10px}.empty-list[_ngcontent-%COMP%]{padding:4px 18px}button.clear-filter[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}\n/*# sourceMappingURL=team_component_picker.css.map */"],
changeDetection:0});var UR=function(){};UR.\u0275fac=function(a){return new (a||UR)};UR.\u0275mod=qd({type:UR});UR.\u0275inj=ad({imports:[Sv,Ty,Ty]});var VR=function(){};VR.\u0275fac=function(a){return new (a||VR)};VR.\u0275mod=qd({type:VR});VR.\u0275inj=ad({imports:[aD,Dw,SB,iD,FC,UR,Sy,Yw,LP,ay,RI,iP]});var WR=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new Yu;this.filter=function(){return!0}};WR.prototype.onComponentSelect=function(a){var b=this;if(this.selectedComponent=a){var c;this.customFields=((null==(c=a.componentPathInfo)?void 0:c.allCustomField)||[]).filter(function(d){return b.filter(d)}).sort(function(d,e){return d.name.localeCompare(e.name)})}else this.customFields=null};WR.\u0275fac=function(a){return new (a||WR)};
WR.\u0275cmp=od({type:WR,selectors:[["b-custom-field-picker"]],inputs:{filter:"filter"},outputs:{fieldSelected:"fieldSelected"},decls:5,vars:4,consts:[[1,"bv2-custom-field-picker"],[1,"bv2-custom-field-picker-message"],[3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["class","bv2-custom-field-picker-select-box",4,"ngIf"],[1,"bv2-custom-field-picker-select-box"],[4,"ngIf"],["appearance","outline"],[1,"mat-select","bv2-custom-field-picker-select",3,"selectionChange"],[3,
"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),Q(2," First, select a component that contains the custom field. "),F(),D(3,"b-team-component-picker",2),L("selectedComponentChange",function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)}),F(),P(4,QOa,4,3,"div",3),F());a&2&&(w(3),C("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),w(1),C("ngIf",b.selectedComponent))},dependencies:[Dv,Ev,jA,hA,bP,Hz,
TR],encapsulation:2});var YR=function(){};YR.\u0275fac=function(a){return new (a||YR)};YR.\u0275mod=qd({type:YR});YR.\u0275inj=ad({imports:[aD,cP,VR]});var kcc=function(a){return{value:a}},ZR=function(){this.isNonemptyJsonDateValue=Zua};ZR.prototype.toDate=function(a){return ul(a)};ZR.\u0275fac=function(a){return new (a||ZR)};
ZR.\u0275cmp=od({type:ZR,selectors:[["b-custom-field-value-display"]],inputs:{customFieldValue:"customFieldValue"},decls:6,vars:4,consts:[[1,"bv2-custom-field-value-display"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["null",""],["nonNull",""],[4,"ngIf"],["mode","date",3,"date"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(D(0,"span",0),P(1,ROa,1,0,"ng-container",1),F(),P(2,SOa,0,0,"ng-template",null,2,Eg),P(4,ePa,8,8,"ng-template",null,3,Eg));if(a&2){var c=N(5);w(1);C("ngTemplateOutlet",
null==b.customFieldValue?null:c)("ngTemplateOutletContext",og(2,kcc,b.customFieldValue))}},dependencies:[Dv,Ev,Jv,PL],encapsulation:2});var $R=function(){};$R.\u0275fac=function(a){return new (a||$R)};$R.\u0275mod=qd({type:$R});$R.\u0275inj=ad({imports:[aD,kM]});var ncc=function(a,b){this.origCommonDuplicateOf=this.origCommonVerifier=this.origCommonAssignee=this.lastCommonAssignee="";this.overwriteVerifier=this.overwriteAssignee=!1;this.commonDuplicateOf=this.commonVerifier=this.commonAssignee="";this.issueState=void 0;this.recaptchaResponse="";this.userEmail=a;this.origIssues=b;this.comment=new $N;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";lcc(this,b);mcc(this,b)},lcc=function(a,b){var c=b[0],d=Wk[c.status],
e=c.duplicateOfIssueId;if(d)for(b.every(function(f){return"DUPLICATE"===f.status&&e===f.duplicateOfIssueId})&&e&&(a.commonDuplicateOf=e,a.origCommonDuplicateOf=e),c=1;c<b.length;c++)if(b[0].status!==b[c].status){d=void 0;break}a.issueState=d;a.origCommonIssueState=d},occ=function(a){if(1===a.length)return"IDENTICAL_EMAILS";var b=!a.every(function(c){return c===a[0]});return a.every(function(c){return void 0===c||yn(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},mcc=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=occ(c);a.selectedVerifiersStatus=occ(b);"IDENTICAL_EMAILS"===a.selectedAssigneesStatus&&(a.commonAssignee=c[0],a.origCommonAssignee=c[0]);"IDENTICAL_EMAILS"===a.selectedVerifiersStatus&&(a.commonVerifier=b[0],a.origCommonVerifier=b[0])};
ncc.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;BQa(this)};ncc.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var np=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},xQa=function(a,b){(a.origCommonIssueState=b)?("NEW"===b.status?pcc(a.selectedAssigneesStatus)?a.clearAssignee():a.commonAssignee&&(a.lastCommonAssignee=a.commonAssignee,a.commonAssignee=""):"DUPLICATE"===b.status?(a.commonAssignee=a.origCommonAssignee,a.commonVerifier=a.origCommonVerifier):("REQUIRED"!==b.assigneeRequirement||a.commonAssignee||pcc(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),pcc(a.selectedVerifiersStatus)||a.commonVerifier||"VERIFIED"!==b.status||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},pcc=function(a){return"MULTIPLE"===a||"POSSIBLY_MULTIPLE"===a},BQa=function(a){var b=Wk.NEW,c=Wk.ASSIGNED;a.issueState===b&&a.commonAssignee?a.issueState=a.origCommonIssueState===b?c:a.origCommonIssueState:a.commonAssignee||a.issueState&&!UWb.has(a.issueState)||(a.issueState=b)},qcc=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},MQa=function(a){var b=new Map;b.set("assignee",a.overwriteAssignee||a.commonAssignee!==a.origCommonAssignee?a.commonAssignee:void 0);(a.overwriteVerifier||a.commonVerifier!==a.origCommonVerifier)&&b.set("verifier",a.commonVerifier);a.commonDuplicateOf!==a.origCommonDuplicateOf&&b.set("duplicateOfIssueId",a.commonDuplicateOf);qcc(a)&&b.set("status",a.issueState.status);a.comment.value&&b.set("comment",a.comment.value);return b};var rcc=function(a){this.uploadUrl_=a};var scc=function(){Po.call(this)};ft(scc,Po);var aS=function(a){AA.call(this,a)};ft(aS,AA);var bS=function(a){AA.call(this,a)};ft(bS,AA);var tcc=function(a,b){this.name_=a;this.inputElement_=b};tcc.prototype.getName=function(){return this.name_};var ucc=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!1};var cS=function(){Po.call(this);this.name_="closure_frame"+vcc++;this.iframesForDisposal_=[];wcc[this.name_]=this},dS;ft(cS,Po);var wcc={},vcc=0,xcc=function(a,b){var c=So(a);ISb(b,function(d,e){Array.isArray(d)||(d=[d]);ta(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=cS.prototype;g.form_=null;g.iframe_=null;g.iframeName_=null;g.nextIframeId_=0;g.active_=!1;g.complete_=!1;g.success_=!1;g.lastUri_=null;g.lastContent_=null;g.lastErrorCode_=0;
g.iframeDisposalTimer_=null;g.send=function(a,b,c,d){if(this.active_)throw Error("Id");this.lastUri_=a=new Vo(a);b=b?b.toUpperCase():"GET";c&&sC(a);dS||(dS=pPb("FORM"),dS.acceptCharset="utf-8",c=dS.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(dS));this.form_=dS;"GET"==b&&xcc(this.form_,a.queryData_);d&&xcc(this.form_,d);BGb(this.form_,oh(a.toString()));this.form_.method=b;ycc(this);zcc(this)};
g.abort=function(a){if(this.active_){var b=eS(this);if(b)if(CA(b))b.removeAllListeners(void 0);else if(b=FA(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)HA(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");Acc(this)}};
g.disposeInternal=function(){this.active_&&this.abort();cS.superClass_.disposeInternal.call(this);this.iframe_&&Bcc(this);zcc(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete wcc[this.name_]};g.isComplete=function(){return this.complete_};g.isSuccess=function(){return this.success_};g.isActive=function(){return this.active_};g.getResponseText=function(){return this.lastContent_};g.getResponseJson=function(){return iRb(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return pRb(this.lastErrorCode_)};
var ycc=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=So(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});rq&&7>Number(PEb)&&BGb(a.iframe_,oh(Gc(Ut('javascript:""'))));var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";jt?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");So(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";
var c=tPb(a.iframe_);if(document.baseURI){var d=Qj(b);d=gh('<head><base href="'+Qj(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=Qj(b),d=gh('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(ih(d));Qo(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=MA("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];xPb(d[e],k,!1);k.join("")!=h&&(TA(d[e],h),d[e].value=h)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);
e=MA("SELECT",a.form_);f=MA("SELECT",d);h=0;for(k=e.length;h<k;h++)for(var q=MA("OPTION",e[h]),u=MA("OPTION",f[h]),x=0,y=q.length;x<y;x++)u[x].selected=q[x].selected;e=MA("INPUT",a.form_);f=MA("INPUT",d);h=0;for(k=e.length;h<k;h++)if("file"==e[h].type&&e[h].value!=f[h].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),it&&Mp(a.testForFirefoxSilentError_,250,a)}catch(E){GA(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
cS.prototype.onIframeLoaded_=function(){GA(eS(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?tPb(eS(this)):null;this.complete_=!0;this.active_=!1;try{var b=a.body;this.lastContent_=b.textContent||b.innerText}catch(e){var c=1}var d;c||"function"!=typeof this.errorChecker_||(d=this.errorChecker_(a))&&(c=4);c?this.handleError_(c):(this.success_=!0,this.lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Acc(this))}catch(e){this.handleError_(1)}};
cS.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),Acc(this),this.errorHandled_=!0)};
var Acc=function(a){Bcc(a);zcc(a);a.form_=null;a.dispatchEvent("ready")},Bcc=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(Np(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);it?a.iframeDisposalTimer_=Mp(a.disposeIframes_,2E3,a):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
cS.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(Np(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;0!=this.iframesForDisposal_.length;){var a=this.iframesForDisposal_.pop();RA(a)}};var zcc=function(a){a.form_&&a.form_==dS&&sPb(a.form_)},eS=function(a){return a.iframe_?tPb(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
cS.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?tPb(eS(this)):null;a&&!zEb(a,"documentUri")?(GA(eS(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):Mp(this.testForFirefoxSilentError_,250,this)}};var Ccc=function(a,b,c,d,e){Po.call(this);c=document.createElement("form");c.setAttribute("method",b);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",e);c.appendChild(b);c.appendChild(d);this.form_=c;a=new Vo(a);qC(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new cS;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new xq(this);zA(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};W(Ccc,scc);g=Ccc.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("Id");var c=new Vo(this.url_||b.action);a.lastUri_=c;a.form_=b;BGb(a.form_,c.toString());ycc(a)};g.getBytesTransferred=function(){return null};
g.getResponseCode=function(){return null};g.getResponseHeaders=function(){return null};g.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new aS("m"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new aS("j"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new aS("l"))};var Fcc=function(a,b){void 0!==a.name?(this.name=a.name,this.code=Dcc[a.name]):(this.code=a=a.code,this.name=Ecc(a));aa.call(this,FGb("%s %s",this.name,b))};ft(Fcc,aa);
var Ecc=function(a){var b=sca(Dcc,function(c){return a==c});if(void 0===b)throw Error("Jd`"+a);return b},fS={},Dcc=(fS.AbortError=3,fS.EncodingError=5,fS.InvalidModificationError=9,fS.InvalidStateError=7,fS.NotFoundError=1,fS.NotReadableError=4,fS.NoModificationAllowedError=6,fS.PathExistsError=12,fS.QuotaExceededError=10,fS.SecurityError=2,fS.SyntaxError=8,fS.TypeMismatchError=11,fS);var Gcc=function(a,b){AA.call(this,a.type,b);this.event_=a};ft(Gcc,AA);var Hcc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};No(function(){if(!da.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return 100!=b.size?!1:!0});var Icc=No(function(){if(!da.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===Hcc(b,0,1)?!1:!0});var Jcc=function(){Po.call(this);this.reader_=new FileReader;this.reader_.onloadstart=dt(this.dispatchProgressEvent_,this);this.reader_.onprogress=dt(this.dispatchProgressEvent_,this);this.reader_.onload=dt(this.dispatchProgressEvent_,this);this.reader_.onabort=dt(this.dispatchProgressEvent_,this);this.reader_.onerror=dt(this.dispatchProgressEvent_,this);this.reader_.onloadend=dt(this.dispatchProgressEvent_,this)};ft(Jcc,Po);g=Jcc.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new Fcc(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new Fcc(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new Gcc(a,this))};g.disposeInternal=function(){Jcc.superClass_.disposeInternal.call(this);delete this.reader_};g.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};g.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
g.readAsText=function(a,b){this.reader_.readAsText(a,b)};var Kcc=function(a){var b=new BO;a.listen("loadend",et(function(c,d){var e=d.reader_.result,f=d.getError();null==e||f?(DO(c),EO(c,!1,f)):c.callback(e);d.dispose()},b,a));return b};var gS=function(){pB.call(this)};W(gS,pB);gS.prototype.createXhr=function(){var a=pB.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=dt(this.onProgress_,this));return a};gS.prototype.onProgress_=function(a){this.dispatchEvent(a)};var Lcc=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Ncc=function(a,b){var c=a.attempt_+1;if(0<a.maxAttempts_&&c>a.maxAttempts_)return!1;0==c?b():a.delayCallId_=Mp(function(){a.delayCallId_=null;b()},Mcc(a),a);a.attempt_=c;return!0};Lcc.prototype.reset=function(){this.delayCallId_&&Np(this.delayCallId_);this.attempt_=-1};var Mcc=function(a){var b=250*Math.pow(2,a.attempt_);0<=a.maxDelayMs_&&(b=Math.min(b,a.maxDelayMs_));return b};var gPa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Occ=function(a){Po.call(this);a=a||new ucc;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new Lcc;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorDescription_=null;this.eventHandler_=new xq(this);zA(this,this.eventHandler_);this.url_=this.blob_=null;this.method_=void 0;this.metadata_=this.headers_=null;this.maxChunkSize_=a.maxChunkSize_;this.chunkSize_=null;this.retryOnHttpClientErrorEnabled_=
a.retryOnHttpClientErrorEnabled_;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.responseText_=this.responseHeaders_=this.responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};ft(Occ,scc);g=Occ.prototype;g.run=function(){hS(this)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};g.getResponseHeaders=function(){return this.responseHeaders_};
g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};
g.cancel=function(){if("Response received"!=this.state_&&"Error"!=this.state_){this.eventHandler_.removeAll();this.request_&&this.request_.abort();this.retryIterator_.reset();var a="Paused"===this.state_?this.stateAfterUnpausing_:this.state_;if("Upload"===a||"Query"===a)a=new gS,a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new aS("m"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;"Paused"===this.state_&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,Pcc(this))};
var hS=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):Ncc(a.retryIterator_,function(){return Pcc(a)})||iS(a,"Transfer encountered too many consecutive failures.")},Pcc=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.uploadUrl_,c=a.blob_.size;if(Icc()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=Hcc(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=new gS;a.request_.withCredentials_=
a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=dt(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new bS("o"));e=Object.assign({},a.headers_||{},{"X-Goog-Upload-Command":"upload"+(e?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.request_.send(b,"POST",c,e);break;case "Query":a.query_();break;default:throw Error("Kd");}},iS=function(a,
b){a.state_="Error";a.errorDescription_=b;a.dispatchEvent(new aS("l"))};g=Occ.prototype;
g.start_=function(){this.request_=new gS;var a=Ac(this.headers_);null!=this.blob_.size&&(a["Content-Length"]=this.blob_.size);a=hPa(a);a["X-Goog-Upload-Protocol"]="resumable";a["X-Goog-Upload-Command"]="start";this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onStartComplete_);this.request_.withCredentials_=this.withCredentials_;this.request_.send(this.url_,this.method_,this.metadata_,a);this.lastCommandResponseCode_=null;this.dispatchEvent(new bS("o"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new bS("p"));if(Qcc(b))Rcc(this,b);else if(Scc(b)){a=gp(a.target.getAllResponseHeaders());for(var c in a)si(c.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new aS("k"));c=hp(a,"X-Goog-Upload-URL");a=(a=hp(a,"X-Goog-Upload-Chunk-Granularity"))?parseInt(a,10):1;void 0===c||isNaN(a)||0>=a?iS(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/a)*
a,this.transferHandle_=new rcc(c),this.dispatchEvent(new aS("n")),this.state_="Upload",this.retryIterator_.reset(),hS(this))}else hS(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new aS("i"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return Ne(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new bS("p"));if(d.retryOnHttpClientErrorEnabled_?Tcc(e)||404==e.getStatus():Qcc(e))return d.bytesTransferred_=a,Rcc(d,e),h.return();if(Scc(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return h.yield(Ucc(d),4);case 4:f=h.yieldResult;case 3:if(f)return iS(d,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=400==e.getStatus();d.state_="Query";hS(d);return h.return();case 2:if(b)return iS(d,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();hS(d);return h.return()}})};
g.query_=function(){this.request_=new gS;this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onQueryComplete_);var a=Object.assign({},this.headers_||{},{"X-Goog-Upload-Command":"query"});this.request_.send(this.transferHandle_.uploadUrl_,"POST","",a);this.lastCommandResponseCode_=null;this.dispatchEvent(new bS("o"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new bS("p"));Qcc(b)?(200===b.getStatus()&&(this.bytesTransferred_=this.blob_.size),Rcc(this,b)):Scc(b)?(a=gp(a.target.getAllResponseHeaders()),a=parseInt(hp(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?iS(this,"Server did not respond with current offset."):a<this.offset_?iS(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?iS(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<a&&this.retryIterator_.reset(),this.offset_=this.bytesTransferred_=a,this.state_="Upload",hS(this))):hS(this)};
var Rcc=function(a,b){a.responseCode_=b.getStatus();var c=gp(b.getAllResponseHeaders());a.responseHeaders_=iPa(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new aS("j"))},Scc=function(a){var b=a.getStatus();a=gp(a.getAllResponseHeaders());a=hp(a,"X-Goog-Upload-Status");return 200===b&&"active"===a},Tcc=function(a){a=gp(a.getAllResponseHeaders());return"final"===hp(a,"X-Goog-Upload-Status")},Qcc=function(a){if(Tcc(a))return!0;a=a.getStatus();return 400<=a&&500>
a},Ucc=function(a){var b;return Ne(function(c){if(1==c.nextAddress){if(!a.blob_||0>=a.originalBlobSize_)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);Oe(c,2);if(b=Hcc(a.blob_,0,1)){var d=c.yield,e=new Jcc,f=Kcc(e);e.readAsBinaryString(b);c=d.call(c,f,4)}else c=c.return(!0);return c}if(2!=c.nextAddress)return c.return(a.blob_.size!==a.originalBlobSize_);Re(c);return c.return(!0)})};var Vcc=function(a,b,c,d,e,f){Po.call(this);this.payload_=d;this.url_=a;this.method_=b;this.headers_=c;this.metadata_=e;this.metadataOverhead_=0;this.encoding_=f||"binary";a=new pi;this.boundary_="uploader-"+Zt()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new xq(this);zA(this,this.eventHandler_)};W(Vcc,scc);g=Vcc.prototype;
g.run=function(){var a=Ac(this.headers_);null!=this.payload_.length&&(a["Content-Length"]=this.payload_.length);a=hPa(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new gS;this.eventHandler_.removeAll();this.eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.eventHandler_.listen(this.transferRequest_,"complete",this.onTransferComplete_);var b=this.transferRequest_,
c=b.send,d=this.url_,e=this.method_,f="--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n";this.metadataOverhead_=f.length-this.payload_.length;c.call(b,d,e,f,a)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};
g.getResponseHeaders=function(){return this.responseHeaders_};g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){"Complete"!=this.state_&&"Error"!=this.state_&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new aS("m")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new aS("i"))};g.onTransferComplete_=function(a){var b=a.target.getStatus();void 0===b||-1===b?(this.errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new aS("l"))):(this.responseCode_=b,a=a.target,b=gp(a.getAllResponseHeaders()),this.responseHeaders_=iPa(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new aS("j")))};var Wcc=function(){},Xcc=function(a,b,c,d,e){e=void 0===e?!1:e;if(c instanceof tcc)return new Ccc(a,"POST",b,c.inputElement_,d);if("string"===typeof c||c instanceof String)return new Vcc(a,"POST",b,c,d);var f=new Occ(void 0);f.url_=a;f.method_="POST";f.headers_=b;f.blob_=c;f.originalBlobSize_=c.size;f.metadata_=d;e&&(f.withCredentials_=e);f.state_="Start";return f};var Ycc=new Ad("ScottyUploaderConfigFactory"),Zcc=new Ad("ScottyUploader",{factory:function(){return new Wcc}}),jS=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new B.Subject;this.transferStatus=vu(this.internalTransferStatus)};
jS.prototype.upload=function(a,b){var c=this;b=void 0===b?this.configFactory.create(a):b;a=Xcc(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=(0,B.merge)((0,B.fromEvent)(a,"k"),(0,B.fromEvent)(a,"i"),(0,B.fromEvent)(a,"n"),(0,B.fromEvent)(a,"l"),(0,B.fromEvent)(a,"j"),(0,B.fromEvent)(a,"m")).pipe(Af((0,B.fromEvent)(a,"j").pipe(lf(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});
a.run()};jS.\u0275fac=function(a){return new (a||jS)(n(Zcc),n(Ycc))};jS.\u0275prov=$c({token:jS,factory:jS.\u0275fac});var $cc=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};$cc.prototype.getDirectory=function(a){return this.directoryMap_[a]};$cc.prototype.getName=function(){return this.name_};var bdc=function(a,b,c){b=void 0===b?"single_file":b;c=void 0===c?[]:c;Po.call(this);this.overlayTarget_=a;this.parentOverlay_=null!=a?a.parentNode:Oj(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=adc(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};W(bdc,Po);
var adc=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Qo(e,"change",a.onFilesSelected_,!1,a);"multiple_file"===c&&(e.multiple="true");"single_directory"===c&&(e.webkitdirectory="true");0<d.length&&e.setAttribute("accept",d.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(null!=a.overlayTarget_)return e.style.height=
b.offsetHeight+"px",e.style.width=b.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),b.parentNode&&b.parentNode.insertBefore(e,b.nextSibling),Eq(e,new Bq(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};bdc.prototype.click=function(){this.overlay_.click()};
bdc.prototype.onFilesSelected_=function(a){a:{try{var b=void 0!==(new XMLHttpRequest).upload;break a}catch(u){}b=!1}if(b){a=a.target.files;b=[];if("single_directory"===this.selectorType_&&(jt||ht)){b=new $cc("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(var c=0;c<a.length;c++)for(var d=a[c],e=d.webkitRelativePath.split("/"),f=b,h=0;h<e.length;h++){var k=e[h];if(h==e.length-1){"."!=k&&f.files_.push(d);break}var q=f.getDirectory(k);void 0==q&&(k=q=new $cc(k),f.directoryMap_[k.getName()]=
k,f.directories_.push(k));f=q}b=b.directories_}this.dispatchEvent(new cdc(a,b,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new cdc([],[],new tcc(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=adc(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var ddc={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},cdc=function(a,b){AA.call(this,"u");this.files=a;this.directories=b};W(cdc,AA);var kS=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new B.ReplaySubject(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new Yu;this.maxFileSize=null;this.fileSizeRejected=new Yu;this.fileSelected=new Yu;this.fileNameLengthRejected=new Yu};
kS.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(zf(function(b){return(0,B.merge)((0,B.fromEvent)(b,"q"),(0,B.fromEvent)(b,"u"))}),Af(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=l(b.files);for(var d=c.next();!d.done;d=c.next()){var e=a.supportedFileExtensions,f=e.includes;d=d.value.name;var h=d.lastIndexOf(".");if(!f.call(e,-1!==h?d.substr(h+1).toLowerCase():"")){c=!1;break a}}}c=!0}if(c){a:{if(a.maxFileSize)for(c=
l(b.files),e=c.next();!e.done;e=c.next())if(e.value.size>a.maxFileSize){c=!1;break a}c=!0}if(c){a:{if(a.maxFileNameLength)for(c=l(b.files),e=c.next();!e.done;e=c.next())if(e.value.name.length>a.maxFileNameLength){c=!1;break a}c=!0}c?a.fileSelected.emit(b):a.fileNameLengthRejected.emit(b)}else a.fileSizeRejected.emit(b)}else a.fileExtensionRejected.emit(b)})});this.getOverlay().subscribe(function(b){(0,B.fromEvent)(b,"s").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){(0,B.fromEvent)(b,
"t").subscribe(function(){a.ngZone.run(function(){})})})};kS.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};kS.\u0275fac=function(a){return new (a||kS)(z(ae),z(Df))};kS.\u0275dir=sd({type:kS,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize",maxFileNameLength:"maxFileNameLength"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected",fileNameLengthRejected:"fileNameLengthRejected"}});var lS=function(a,b){kS.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};W(lS,kS);
lS.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return(0,B.merge)((0,B.fromEvent)(a.elementRef.nativeElement,"mouseover"),(0,B.fromEvent)(a.elementRef.nativeElement,"focus")).pipe(qf(),Af(a.destroyed),A(function(){a.fileSelectorOverlay=new bdc(a.elementRef.nativeElement,a.selectorType,edc(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),wf(1))}));return this.overlay};
lS.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};var edc=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};lS.\u0275fac=function(a){return new (a||lS)(z(ae),z(Df))};lS.\u0275dir=sd({type:lS,hostBindings:function(a,b){a&1&&L("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[Jf]});var mS=function(a,b,c){lS.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};W(mS,lS);
mS.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(Af(this.destroyed),cf(function(){return!a.disableAutoUpload})).subscribe(function(b){b=l(b.files);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;null==(d=a.uploader)||d.upload(c)}})};Qh.Object.defineProperties(mS.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=ah(a)}}});
mS.\u0275fac=function(a){return new (a||mS)(z(ae),z(Df),z(jS,8))};mS.\u0275dir=sd({type:mS,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[Jf]});var nS=function(){this.SelectorType=ddc;this.includeTextLabel=this.disabled=!1;this.onSelect=new Yu},jPa=function(a,b){if(b=b.files){b=l(b);for(var c=b.next();!c.done;c=b.next())a.onSelect.emit(c.value)}};nS.\u0275fac=function(a){return new (a||nS)};
nS.\u0275cmp=od({type:nS,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled",includeTextLabel:"includeTextLabel"},outputs:{onSelect:"onSelect"},decls:4,vars:2,consts:[[1,"goog-inline-block","vertical-centered"],["mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled","fileSelected",4,"ngIf","ngIfElse"],["fullButton",""],["mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments",
"aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled","fileSelected"],["svgIcon","attachment"],["mat-stroked-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled","fileSelected"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,kPa,2,3,"button",1),F(),P(2,lPa,3,3,"ng-template",null,2,Eg));if(a&2){var c=N(3);w(1);C("ngIf",!b.includeTextLabel)("ngIfElse",c)}},dependencies:[Ev,qA,Ez,FB,mS],
encapsulation:2});var oS=function(a,b){ZN.call(this,a.size,a.name);var c=this;this.destroyed$=new B.Subject;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "i":case "k":case "n":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "l":c.handleError(e);break;case "j":c.transferredBytes=e.getBytesTransferred()||0;(d=e.getResponseCode())&&200!=d?c.handleError(e):(d=e.getResponseText())?(c.state=2,c.blobRef=JSON.parse(d).encryptedMedia):c.handleError(e);c.unsubscribe();
break;case "m":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(Af(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};W(oS,ZN);oS.prototype.handleError=function(a){this.transferredBytes=a.getBytesTransferred()||0;this.state=3;if(a=a.getErrorDescription())this.errorMessage=a;this.errorMessage||(this.errorMessage="Error while uploading.")};
oS.prototype.cancel=function(){var a,b;null==(a=this.transfer)||null==(b=a.cancel)||b.call(a);this.unsubscribe()};oS.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};var pS=function(a){this.activeSession=a};
pS.prototype.create=function(a){for(var b=a.name,c=[],d=0,e=0;e<b.length;e++){var f=b.charCodeAt(e);128>f?c[d++]=f:(2048>f?c[d++]=f>>6|192:(55296==(f&64512)&&e+1<b.length&&56320==(b.charCodeAt(e+1)&64512)?(f=65536+((f&1023)<<10)+(b.charCodeAt(++e)&1023),c[d++]=f>>18|240,c[d++]=f>>12&63|128):c[d++]=f>>12|224,c[d++]=f>>6&63|128),c[d++]=f&63|128)}b=La(c);a=zCa(a.name)?a.name:b;return{url:qC(PSb().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,
"X-Goog-Upload-File-Name":a},withCredentials:!0}};pS.\u0275fac=function(a){return new (a||pS)(n(Us))};pS.\u0275prov=$c({token:pS,factory:pS.\u0275fac,providedIn:"root"});var qS=function(a,b){this.uploader=a;this.uploaderConfigFactory=b};qS.prototype.create=function(){return new jS(this.uploader,this.uploaderConfigFactory)};qS.\u0275fac=function(a){return new (a||qS)(n(Zcc),n(pS))};qS.\u0275prov=$c({token:qS,factory:qS.\u0275fac,providedIn:"root"});var pPa=function(a){return{"attachment-error":a}},rS=function(a){Y.call(this);this.scottyUploaderFactory=a;this.uploads=[];this.onUploadCancel=new Yu;this.onUploadComplete=new Yu;this.uploadStates=L4b};W(rS,Y);rS.\u0275dir=Y.\u0275dir;rS.prototype.ngOnDestroy=function(){Y.prototype.ngOnDestroy.call(this);for(var a=l(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};
rS.prototype.upload=function(a){var b=this,c=this.scottyUploaderFactory.create();c.upload(a);a=new oS(a,c.transferStatus);c.transferStatus.pipe(Af(this.destroyed$)).subscribe(function(d){"j"===d.type&&b.onUploadComplete.emit()});return a};rS.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};rS.\u0275fac=function(a){return new (a||rS)(z(qS))};
rS.\u0275cmp=od({type:rS,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel",onUploadComplete:"onUploadComplete"},features:[Jf],decls:1,vars:1,consts:[["class","attachments",4,"ngIf"],[1,"attachments"],["class","attachment",3,"ngClass",4,"ngFor","ngForOf"],[1,"attachment",3,"ngClass"],[1,"attachment-title"],["svgIcon","file-present"],[1,"issue-attachment-filename",3,"matTooltip"],[1,"attachment-filesize"],[4,"ngIf"],["role","alert","aria-live",
"assertive",4,"ngIf"],[1,"bv2-remove-icon","keep-focus-ring","attachment-cancel-button",3,"matTooltip","click"],["role","alert","aria-live","assertive"]],template:function(a,b){a&1&&P(0,rPa,2,1,"div",0);a&2&&C("ngIf",0<b.uploads.length)},dependencies:[Cv,Dv,Ev,qA,FB,LI],styles:[".attachments[_ngcontent-%COMP%]{margin:10px 10px 0}.attachments[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border-radius:4px;box-sizing:border-box;display:inline-flex;align-items:center;margin-bottom:10px;overflow-y:hidden;padding:5px;position:relative;width:100%;min-height:36px}.attachments[_ngcontent-%COMP%]   .attachment.attachment-error[_ngcontent-%COMP%]{background-color:#fce8e6;background-color:var(--bad-bg)}.attachments[_ngcontent-%COMP%]   .attachment-title[_ngcontent-%COMP%]{flex-grow:1}.attachments[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.attachments[_ngcontent-%COMP%]   .issue-attachment-filename[_ngcontent-%COMP%]{display:inline-block;font-weight:bold;margin-right:5px;max-width:50%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.attachments[_ngcontent-%COMP%]   .attachment-filesize[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.attachments[_ngcontent-%COMP%]   .issue-attachment-link[_ngcontent-%COMP%]{margin-left:8px}.attachments[_ngcontent-%COMP%]   .attachment-cancel-button[_ngcontent-%COMP%]{padding:12px;margin-left:4px}"]});var fdc=function(a){this.size=a.sizeBytes;this.name=a.name;this.mimeType=a.mimeType;this.encryptedBlobId=a.blobId;this.url=a.url;this.docId=a.id};var gdc=function(a){ZN.call(this,a.size,a.name);this.attachment=a};W(gdc,ZN);
var hdc=function(a,b){a.attachment.encryptedBlobId?(a.state=1,J4b(b,{filename:a.attachment.name,mimeType:a.attachment.mimeType,encryptedBlobId:a.attachment.encryptedBlobId,docId:a.attachment.docId,size:a.attachment.size}).then(function(c){a.attachment.size&&(a.transferredBytes=a.attachment.size);a.blobRef=c.encryptedMedia;a.state=2}).catch(function(c){a.state=3;a.errorMessage=sn(c)?tn(c):"Error while uploading."})):(a.state=3,a.errorMessage="Error while uploading.")};var sS=function(a){this.id_=a;this.opts={}};g=sS.prototype;g.setLabel=function(a){this.label_=a||void 0;return this};g.setOptions=function(a){this.opts=a};g.setQuery=function(a){this.opts.query=a;return this};g.setParent=function(a){this.opts.parent=a;return this};g.toArray=function(){var a=wc(this.opts,function(c){return null!==c});a=xc(a)?null:a;a=[this.id_,this.label_,a];var b=naa(a,cGb);return a=a.slice(0,b+1)};
g.toString=function(){var a=this.toArray();return"("+wEb(a,function(b){return JSON.stringify(b)}).join(",")+")"};g.getId=function(){return this.id_};g.getLabel=function(){return this.label_};g.getOptions=function(){return Ac(this.opts)};g.getQuery=function(){return this.opts.query};var tS=function(a){sS.call(this,a||"all")};ft(tS,sS);var idc=function(){var a=(new tS("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=tS.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setOwnedByMe=function(a){void 0!==a?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};g.setStarred=function(a){this.opts.starred=a};g.setLabel=function(a){tS.superClass_.setLabel.call(this,a);return this};
g.setQuery=function(a){tS.superClass_.setQuery.call(this,a);return this};g.setParent=function(a){tS.superClass_.setParent.call(this,a);return this};var jdc=function(){sS.call(this,"image-search")};W(jdc,sS);g=jdc.prototype;g.setType=function(a){this.opts.type=a;return this};g.setSize=function(a){this.opts.imgsz=a;return this};g.setColor=function(a){this.opts.imgcolor=a;return this};g.setLabel=function(a){sS.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){sS.prototype.setQuery.call(this,a);return this};g.setParent=function(a){sS.prototype.setParent.call(this,a);return this};var uS=function(){sS.call(this,"maps")};W(uS,sS);uS.prototype.setMode=function(a){this.opts.mode=a;return this};uS.prototype.setLabel=function(a){sS.prototype.setLabel.call(this,a);return this};uS.prototype.setQuery=function(a){sS.prototype.setQuery.call(this,a);return this};uS.prototype.setParent=function(a){sS.prototype.setParent.call(this,a);return this};var kdc=function(){sS.call(this,"photos")};W(kdc,sS);g=kdc.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setType=function(a){this.opts.type=a;return this};g.setLabel=function(a){sS.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){sS.prototype.setQuery.call(this,a);return this};g.setParent=function(a){sS.prototype.setParent.call(this,a);return this};g.removeDuplicates=function(){this.opts.rdv=!0;return this};var vS=function(){sS.call(this,"url")};W(vS,sS);vS.prototype.setType=function(a){this.opts.type=a;return this};vS.prototype.setLabel=function(a){sS.prototype.setLabel.call(this,a);return this};vS.prototype.setQuery=function(a){sS.prototype.setQuery.call(this,a);return this};vS.prototype.setParent=function(a){sS.prototype.setParent.call(this,a);return this};var wS=function(){sS.call(this,"video-search")};W(wS,sS);wS.prototype.setLabel=function(a){sS.prototype.setLabel.call(this,a);return this};wS.prototype.setQuery=function(a){sS.prototype.setQuery.call(this,a);return this};wS.prototype.setParent=function(a){sS.prototype.setParent.call(this,a);return this};var xS=function(){sS.call(this,"web")};W(xS,sS);xS.prototype.setLabel=function(a){sS.prototype.setLabel.call(this,a);return this};xS.prototype.setQuery=function(a){sS.prototype.setQuery.call(this,a);return this};xS.prototype.setParent=function(a){sS.prototype.setParent.call(this,a);return this};var ldc=function(){this.root_=void 0;this.items_=[];this.opts={}},mdc=function(a){switch(a){case "image-search":return new jdc;case "maps":return new uS;case "photos":return new kdc;case "url":return new vS;case "video-search":return new wS;case "web":return new xS}return new sS(a)};ldc.prototype.addView=function(a){this.items_.push("string"===typeof a?mdc(a):a);return this};
var ndc=function(a){return"("+wEb(a.items_,function(b){return b.toString()}).join(",")+")"},odc=function(a){a=wc(a.opts,function(b){return null!==b});return(a=xc(a)?null:a)?JSON.stringify(oca(a,function(b){return b.toString()})):""};ldc.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",ndc(this)],b=odc(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return ndc(this)};ldc.prototype.getOptions=function(){return Ac(this.opts)};var pdc=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new ldc};g=pdc.prototype;g.nav_=null;g.domHelper_=null;g.addView=function(a){this.nav_.addView(a);return this};g.getBaseUrl=function(){return this.basePickerUrl_};g.getDomHelper=function(){return this.domHelper_};g.setAppId=function(a){this.appId_=a};g.setCallback=function(a){this.callback_=a;return this};var qdc=function(a){pdc.call(this,a)};ft(qdc,pdc);var yS=function(a){Po.call(this);this.dom_=a||So();this.rightToLeft_=rdc;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null};ft(yS,Po);yS.prototype.idGenerator_=uq.getInstance();var rdc=!1;g=yS.prototype;g.getId=function(){return this.id_||(this.id_=qq(this.idGenerator_))};
g.setId=function(a){if(this.parent_&&this.parent_.childIndex_){yc(this.parent_.childIndex_,this.id_);var b=this.parent_.childIndex_;if(null!==b&&a in b)throw Error("U`"+a);b[a]=this}this.id_=a};g.getElement=function(){return this.element_};g.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new xq(this));return this.googUiComponentHandler_};
g.setParent=function(a){if(this==a)throw Error("Ld");if(a&&this.parent_&&this.id_&&C1b(this.parent_,this.id_)&&this.parent_!=a)throw Error("Ld");this.parent_=a;yS.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Md");yS.superClass_.setParentEventTarget.call(this,a)};g.getDomHelper=function(){return this.dom_};g.createDom=function(){this.element_=this.dom_.createElement("DIV")};
g.render=function(a){if(this.inDocument_)throw Error("Nd");this.element_||this.createDom();a?a.insertBefore(this.element_,null):this.dom_.document_.body.appendChild(this.element_);this.parent_&&!this.parent_.inDocument_||this.enterDocument()};g.enterDocument=function(){this.inDocument_=!0;sdc(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
g.exitDocument=function(){sdc(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);sdc(this,function(a){a.dispose()});this.element_&&RA(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;yS.superClass_.disposeInternal.call(this)};
g.setModel=function(){};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("Nd");if(0>a||a>(this.children_?this.children_.length:0))throw Error("Od");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);if((void 0).getParent()==this){var b=this.childIndex_,c=(void 0).getId();b[c]=void 0;za(this.children_)}else{b=this.childIndex_;c=(void 0).getId();if(null!==b&&c in b)throw Error("U`"+c);b[c]=void 0}(void 0).setParent(this);qaa(this.children_,
a,0,void 0);(void 0).inDocument_&&this.inDocument_&&(void 0).getParent()==this?(b=this.getContentElement(),(b.childNodes[a]||null)!=(void 0).getElement()&&((void 0).getElement().parentElement==b&&b.removeChild((void 0).getElement()),a=b.childNodes[a]||null,b.insertBefore((void 0).getElement(),a))):this.inDocument_&&!(void 0).inDocument_&&(void 0).element_&&(void 0).element_.parentNode&&1==(void 0).element_.parentNode.nodeType&&(void 0).enterDocument()};g.getContentElement=function(){return this.element_};
g.isRightToLeft=function(){null==this.rightToLeft_&&(this.rightToLeft_=fR(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};g.hasChildren=function(){return!!this.children_&&0!=this.children_.length};var C1b=function(a,b){return a.childIndex_&&b?zc(a.childIndex_,b)||null:null},sdc=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
yS.prototype.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=C1b(this,c);c&&a&&(yc(this.childIndex_,c),za(this.children_,a),b&&(a.exitDocument(),a.element_&&RA(a.element_)),a.setParent(null))}if(!a)throw Error("Pd");return a};yS.prototype.removeChildren=function(a){for(var b=[];this.hasChildren();){var c=b,d=c.push;var e=this.removeChild(this.children_?this.children_[0]||null:null,a);d.call(c,e)}return b};ft(tPa,sPa);var tdc=function(a){sPa.call(this,"visibility");this.visible=a};ft(tdc,sPa);var udc=Xs(["//apis.google.com/js/rpc.js"]),vdc=lh(Gc(Ut("//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"))),wdc=mh(udc),vPa=null;var zS=function(a){Po.call(this);this.element_=a;a=rq?"focusout":"blur";this.listenKeyIn_=Qo(this.element_,rq?"focusin":"focus",this,!rq);this.listenKeyOut_=Qo(this.element_,a,this,!rq)};ft(zS,Po);zS.prototype.handleEvent=function(a){var b=new BA(a.event_);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};zS.prototype.disposeInternal=function(){zS.superClass_.disposeInternal.call(this);HA(this.listenKeyIn_);HA(this.listenKeyOut_);delete this.element_};var xdc=new Map;xdc.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");xdc.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");xdc.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var ydc=new Set;ydc.add("application/vnd.google-apps.kix");ydc.add("application/vnd.google-apps.ritz");ydc.add("application/vnd.google-apps.punch");var Idc=function(a,b,c){var d=c&&Hi(c,1);if(c){var e=Hi(c,3);e=e&&JSON.parse(e)||{};c={0:Hi(c,1),1:c.getLabel(),2:e}}else c={};switch(a[0].getId().getSourceId()){case 13:return zdc(a,b,d,c);case 3:return Adc(a,b,d,c);case 10:return Bdc(a,b,d,c);case 12:return Cdc(a,b);case 2:return Ddc(a,b,d,c);case 5:return Edc(a,b,d,c);case 9:return Fdc(a,b,d,c);case 6:return Gdc(a,b,d,c);case 1:return Zi(a[0],RFb,26)?Hdc(a,b,d,c):Bdc(a,b,d,c);default:return{}}},Gdc=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:e.getDescription(),type:AS(e),lastEditedUtc:Fi(e,gj,16).toDate().getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:Hi(e,13),thumbnails:BS(Mt(e))}});return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},Ddc=function(a,b,c,d){var e=a.map(function(f){var h={id:f.getId().getId(),serviceId:"docs",mimeType:f.getMimeType(),name:f.getName(),type:AS(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),
url:f.getUrl(),sizeBytes:AFb(f),description:f.getDescription(),iconUrl:f.getIconUrl(),thumbnails:BS(Mt(f)),isShared:Fi(f,Nt,21).getShared(),downloadUrl:Fi(f,Nt,21).getDownloadUrl(),embedUrl:Hi(f,13),copyable:Ri(Fi(f,Nt,21),9),resourceKey:Hi(Fi(f,Nt,21),11)};Ri(Fi(f,Nt,21),12)&&(h.uploadState="success");if(Fi(f,Nt,21).hasVideoMetadata()){f=Fi(f,Nt,21).getVideoMetadata();if(f.hasDuration()){var k=f.getDuration().getSeconds()+f.getDuration().getNanos()/1E9;h.duration=k}h.aspectRatio=El(f,1)}return h});
return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:Jdc(a),v2Translated:!0}},Edc=function(a,b,c,d){a=a.map(function(e){var f=Fi(Fi(e,ZFb,15),Ht,1);Wp(e,10,Ht,f);return{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:AS(e),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BS(Mt(e))}});return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},Fdc=function(a,
b,c,d){a=a.map(function(e){return{serviceId:"url",name:Mt(e)[0].getUrl().split("/").pop(),type:AS(e),mimeType:e.getMimeType(),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BS(Mt(e))}});return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},Hdc=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"picasa",name:e.getName(),type:AS(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:BS(Mt(e))}});return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},Bdc=function(a,b,c,d){return{action:b,docs:a.map(Kdc),viewToken:d,view:Ldc(c||"upload",a),extraUserInputs:Jdc(a),v2Translated:!0}},Ldc=function(a,b){return b.some(function(c){var d;return 9===(null==(d=Fi(c,Kt,30))?void 0:Vi(d,3,0))})?a+"/gmailphotos":a},Adc=function(a,b,c,d){var e=a.map(function(f){var h={id:f.getId().getId(),serviceId:"picasa",mimeType:f.getMimeType(),name:f.getName(),type:AS(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),
url:f.getUrl(),sizeBytes:AFb(f),description:f.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BS(Mt(f)),mediaKey:f.getId().getId(),parentId:f.getParentId()},k;if(f=null==(k=Fi(f,UFb,18))?void 0:Fi(k,TFb,3))h.latitude=El(f,1),h.longitude=El(f,2);return h});return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:Jdc(a),v2Translated:!0}},zdc=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:Mt(e)[0].getUrl().split("/").pop(),
description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BS(Mt(e),"etjpg")}});return{action:b,docs:a,viewToken:d,view:c||"et",v2Translated:!0}},Cdc=function(a,b){a=a.map(function(c){var d=ii(Fi(c,Jt,27),1)[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:c.getMimeType(),name:c.getName(),description:c.getDescription(),url:"mailto:"+d,thumbnail:[{url:c.getIconUrl()}],email:d}});return{action:b,docs:a,view:"contacts",
v2Translated:!0}},BS=function(a,b){b=void 0===b?"":b;if(!a.length)return null;"etjpg"==b&&(a=a.filter(function(c){return c.getUrl().includes("w1200-h300")}));return a.map(function(c){return{url:c.getUrl(),height:c.getHeight(),width:c.getWidth(),type:b}})},Jdc=function(a){return{isAttachment:a.some(function(b){return Ri(b,31)})}},Kdc=function(a){var b={id:a.getId().getId(),serviceId:Mdc(a),mimeType:a.getMimeType(),name:a.getName(),type:AS(a),sizeBytes:AFb(a),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:BS(Mt(a)),isNew:!0},c=Fi(a,Kt,30);if(c){b.dataUrl=Hi(c,1)||null;a:{var d=Fi(a,Kt,30);switch(Vi(d,3,0)){case 9:d=Fl(d,XFb,2,Lt);d={remoteRefs:d&&Hi(d,1)};break a;case 10:case 15:d=Fl(d,WFb,4,Lt);var e=Mt(a);d={photo_id:d&&d.getPhotoId(),media_key:a.getId().getId(),media_type:1===a.getType()?1:2,image_url:e&&e[0].getUrl(),width:e&&String(e[0].getWidth()),height:e&&String(e[0].getHeight())};break a}d=null}b.uploadMetadata=d}(d=c&&Fl(c,WFb,4,Lt))&&(b.id=d.getPhotoId());(d=c&&Fl(c,YFb,5,Lt))&&
(b.contentId=Hi(d,1));(d=c&&Fl(c,VFb,6,Lt))&&(b.contentId=Hi(d,1));1===(null==c?void 0:Vi(c,3,0))&&(b.mediaKey=a.getId().getId());return b},Mdc=function(a){var b;switch((null==(b=Fi(a,Kt,30))?void 0:Vi(b,3,0))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},AS=function(a){switch(a.getType()){case 1:case 21:return"photo";case 2:return"video";case 6:return"folder";
case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return a.getMimeType().startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}};var Ndc=function(a){this.obj_=a};g=Ndc.prototype;g.value=function(){return this.obj_};g.setWidth=function(a){this.obj_.width=a;return this};g.getWidth=function(){return this.obj_.width};g.setHeight=function(a){this.obj_.height=a;return this};g.getHeight=function(){return this.obj_.height};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};var Odc=function(a){this.obj_=a||{}};g=Odc.prototype;g.value=function(){return this.obj_};g.setUrl=function(a){this.obj_.url=a;return this};g.getUrl=function(){return this.obj_.url};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};g.setId=function(a){this.obj_.id=a;return this};g.getId=function(){return this.obj_.id};g.getContext=function(){return this.obj_.context};
var Pdc=function(a){a.obj_.attributes=a.obj_.attributes||{};return new Ndc(a.obj_.attributes)},d$b=function(a){return(a=a.obj_.timeout)?a:null};var Qdc=function(){Odc.apply(this,arguments)};W(Qdc,Odc);var Rdc=Xs(["https://apis.google.com/js/api.js"]),Sdc=mh(Rdc),Wdc=function(a,b){var c=!1,d=Tdc(a,b).then(function(f){c=!0;return f}),e=gQb(5E3).then(function(){return c?Tdc(a,b):Udc(b).then(function(f){return Vdc(f,a)})});return TPb([d,e])},Tdc=function(a,b){return Xdc(b).then(function(c){return Vdc(c,a)})},Vdc=function(a,b){var c=si(b,"gapi.")?b.slice(5):b;return a[c]?XA(a[c]):new WA(function(d,e){var f=Mp(function(){e(Error("Qd"))},3E4);a.load(b,{callback:function(){Np(f);d(a[c])},onerror:function(h){Np(f);
e(h)}})})},Xdc=function(a){return a.gapi&&a.gapi.load?XA(a.gapi):Udc(a)},Udc=function(a){return bIa(Sdc,{document:a.document}).then(function(){return a.gapi})},Ydc=function(){};Ydc.prototype.load=function(a,b){b=void 0===b?window:b;var c=Date.now();return Wdc(a,b).then(function(d){var e=Date.now();return{library:d,loadStartMs:c,loadEndMs:e}},function(d){throw d instanceof Error?d:Error(String(d));})};var Zdc=function(){yA.call(this);this.gapiLoader_=new Ydc;this.origin_=null;this.gapiPickerIframeResolver_=VPb();this.gapiIframesResolver_=VPb();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};W(Zdc,yA);
var $dc=function(a,b){var c=Jo("gapi.iframes",b);return c?(a=Date.now(),XA({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},aec=function(a,b,c,d,e,f){var h=!0;h=void 0===h?!1:h;$dc(a,QA(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var u=k.resolve,x=h;x=void 0===x?!1:x;var y={};y["host-message-handler"]=c;a.hostMessageHandlerInternal_=y;var E=tC(d);E=tC(E);E=kC(jC(iC(new Vo,E.scheme_),E.getDomain()),
E.port_).toString();a.origin_=E;E=(new Qdc).setUrl(d);E.obj_.where=b;E.obj_.allowPost=x;E.obj_.messageHandlers=y;x=Jo("makeWhiteListIframesFilter",q)([a.origin_]);E.obj_.messageHandlersFilter=x;null!=e&&E.setId(e);null!=f&&(E.obj_.rpctoken=f);Pdc(E).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");Pdc(E).value().allow="camera 'src' "+a.origin_;q=q.getContext().openChild(E.value());u.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});
return a.gapiPickerIframeResolver_.promise},bec=function(a,b){return SPb([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=l(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,Jo("makeWhiteListIframesFilter",c)([a.origin_])):OPb(Error("Rd"))})};Zdc.prototype.disposeInternal=function(){cec(this);yA.prototype.disposeInternal.call(this)};
var cec=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var dec=function(){this.nextId=0};dec.prototype.getUniqueId=function(){return":"+(this.nextId++).toString(36)};var fec=function(a,b){switch(a.action){case "select-contacts":a=eec(a.contacts);break;case "visibility":a=a.visible;a=(new Qt).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?bec(b,a):XA()},eec=function(a){if(!a||0==a.length)return null;var b=new Qt;b.setCommand(11);var c=new dec;a.forEach(function(d){if(d.email){var e=(new qt).setName(d.name?d.name:d.email);var f=new Jt;d=cc(f,1,yb(d.email));e=oj(e,Jt,27,d).setId((new Gt).setId(c.getUniqueId()).setSourceId(12))}else e=
null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a};var CS=function(a,b,c){Po.call(this);this.target=a;this.handle=b||a;this.limits=c||new aR(NaN,NaN,NaN,NaN);this.document_=KA(a);this.eventHandler_=new xq(this);zA(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.dragging_=!1;Qo(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=gec};ft(CS,Po);
var gec=da.document&&da.document.documentElement&&!!da.document.documentElement.setCapture&&!!da.document.releaseCapture;g=CS.prototype;g.getHandler=function(){return this.eventHandler_};g.disposeInternal=function(){CS.superClass_.disposeInternal.call(this);GA(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
g.startDrag=function(a){var b="mousedown"==a.type;if(this.dragging_||b&&(0!=a.event_.button||tq&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new DS("start",this,a.clientX,a.clientY,a))){this.dragging_=!0;b&&a.preventDefault();b=this.document_;var c=b.documentElement,d=!this.useSetCapture_;this.eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,{capture:d,passive:!1});this.eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,d);this.useSetCapture_?(c.setCapture(!1),
this.eventHandler_.listen(c,"losecapture",this.endDrag)):this.eventHandler_.listen(QA(b),"blur",this.endDrag);this.scrollTarget_&&this.eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,d);this.clientX=this.startX=a.clientX;this.clientY=this.startY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop;this.pageScroll=PA(So(this.document_).document_)}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new DS("end",this,a.clientX,a.clientY,a,hec(this,this.deltaX),iec(this,this.deltaY),b||"touchcancel"==a.type))):this.dispatchEvent("earlycancel")};
g.handleMove_=function(a){var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;if(0<d*d+e*e)if(this.dispatchEvent(new DS("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=jec(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new DS("beforedrag",this,a.clientX,a.clientY,
a,b,c))&&(kec(this,a,b,c),a.preventDefault())};var jec=function(a,b,c){var d=PA(So(a.document_).document_);b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new Bq(hec(a,a.deltaX),iec(a,a.deltaY))};CS.prototype.onScroll_=function(a){var b=jec(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;kec(this,a,b.x,b.y)};
var kec=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new DS("drag",a,b.clientX,b.clientY,b,c,d))},hec=function(a,b){var c=a.limits;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))},iec=function(a,b){var c=a.limits;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))};CS.prototype.isDragging=function(){return this.dragging_};
var DS=function(a,b,c,d,e,f,h){AA.call(this,a);this.clientX=c;this.clientY=d;this.left=void 0!==f?f:b.deltaX;this.top=void 0!==h?h:b.deltaY};ft(DS,AA);var ES=function(a){this.map_=new Map;var b=arguments.length;if(1<b){if(b%2)throw Error("V");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};g=ES.prototype;g.getCount=function(){return this.map_.size};g.getValues=function(){return Array.from(this.map_.values())};g.getKeys=function(){return Array.from(this.map_.keys())};g.containsKey=function(a){return this.map_.has(a)};g.containsValue=function(a){return this.getValues().some(function(b){return b==a})};
g.equals=function(a,b){var c=this;b=void 0===b?function(d,e){return d===e}:b;return this===a?!0:this.map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.map_.get(d),a.get(d))})};g.isEmpty=function(){return 0==this.map_.size};g.clear=function(){this.map_.clear()};g.remove=function(a){return this.map_.delete(a)};g.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};g.set=function(a,b){this.map_.set(a,b);return this};
g.addAll=function(a){if(a instanceof ES){a=l(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=l(Object.entries(a)),b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};g.forEach=function(a,b){var c=this;b=void 0===b?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};g.clone=function(){return new ES(this)};(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!da.requestAnimationFrame;++c)da.requestAnimationFrame=da[b+"RequestAnimationFrame"],da.cancelAnimationFrame=da[b+"CancelAnimationFrame"]||da[b+"CancelRequestAnimationFrame"];if(!da.requestAnimationFrame){var d=0;da.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return da.setTimeout(function(){e(f+h)},h)};da.cancelAnimationFrame||(da.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var lec=[[],[]],mec=0,nec=!1,oec=0,qec=function(a,b){var c=oec++,d={measureTask:{id:c,fn:a.measure,context:b},mutateTask:{id:c,fn:a.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){0<arguments.length?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&0!=d.args.length?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,lec[mec].push(d));nec||(nec=!0,window.requestAnimationFrame(pec))}},pec=
function(){nec=!1;var a=lec[mec],b=a.length;mec=(mec+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state={};a.length=0};var rec=rq?lh(Gc(Ut('javascript:""'))):lh(Gc(Ut("about:blank")));di(rec);var sec=rq?lh(Gc(Ut('javascript:""'))):lh(Gc(Ut("javascript:undefined")));di(sec);var tec=function(a,b){this.element_=a;this.dom_=b};var FS=function(a,b){yS.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=qec({mutate:this.resizeBackground_},this);qec({mutate:this.updateModalAndBackground_},this)};ft(FS,yS);g=FS.prototype;g.focusHandler_=null;g.visible_=!1;g.bgEl_=null;g.bgIframeEl_=null;g.tabCatcherElement_=null;g.backwardTabWrapInProgress_=!1;g.getCssClass=function(){return"goog-modalpopup"};g.getBackgroundElement=function(){return this.bgEl_};
g.createDom=function(){FS.superClass_.createDom.call(this);var a=this.getElement();ZQ(a,ui(this.getCssClass()).split(" "));a.tabIndex=0;eR(a,!1);this.useIframeMask_&&!this.bgIframeEl_&&(a=this.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"}),a.src=di(rec).toString(),this.bgIframeEl_=a,this.bgIframeEl_.className=this.getCssClass()+"-bg",eR(this.bgIframeEl_,!1),mac(this.bgIframeEl_,0));this.bgEl_||(this.bgEl_=this.getDomHelper().createDom("DIV",this.getCssClass()+
"-bg"),eR(this.bgEl_,!1));this.tabCatcherElement_||(this.tabCatcherElement_=this.getDomHelper().createElement("SPAN"),eR(this.tabCatcherElement_,!1),this.tabCatcherElement_.tabIndex=0,this.tabCatcherElement_.style.position="absolute")};g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
g.enterDocument=function(){if(this.bgIframeEl_){var a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.bgIframeEl_,a)}a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.bgEl_,a);FS.superClass_.enterDocument.call(this);a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.tabCatcherElement_,a.nextSibling);this.focusHandler_=new zS(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);uec(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Zh(this.focusHandler_);FS.superClass_.exitDocument.call(this);RA(this.bgIframeEl_);RA(this.bgEl_);RA(this.tabCatcherElement_)};
g.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&uec(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.getDomHelper().document_.activeElement}catch(e){}this.updateModalAndBackground_();this.getHandler().listen(this.getDomHelper().getWindow(),
"resize",this.resizeBackground_).listen(this.getDomHelper().getWindow(),"orientationchange",this.resizeBackgroundTask_);vec(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)EA(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){this.getHandler().unlisten(this.getDomHelper().getWindow(),"resize",this.resizeBackground_).unlisten(this.getDomHelper().getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)EA(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.getDomHelper(),c=b.document_.body,d=b.document_.activeElement||c;if(!this.lastFocus_||this.lastFocus_==c){this.lastFocus_=null;break a}(d==c||b.contains(this.getElement(),d))&&this.lastFocus_.focus()}catch(e){}this.lastFocus_=null}}};
var uec=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new tec(a.element_,a.dom_));a=a.modalAriaVisibilityHelper_;if(b){a.hiddenElements_||(a.hiddenElements_=[]);b=a.dom_.getChildren(a.dom_.document_.body);for(var c=0;c<b.length;c++){var d=b[c];d==a.element_||AWb(d,"hidden")||(oE(d,"hidden",!0),a.hiddenElements_.push(d))}}else if(a.hiddenElements_){for(c=0;c<a.hiddenElements_.length;c++)a.hiddenElements_[c].removeAttribute("aria-hidden");a.hiddenElements_=null}};
FS.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};var vec=function(a,b){a.bgIframeEl_&&eR(a.bgIframeEl_,b);a.bgEl_&&eR(a.bgEl_,b);eR(a.getElement(),b);eR(a.tabCatcherElement_,b)};g=FS.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){vec(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&eR(this.bgIframeEl_,!1);this.bgEl_&&eR(this.bgEl_,!1);var a=this.getDomHelper().document_;var b=wec(this);var c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(eR(this.bgIframeEl_,!0),lac(this.bgIframeEl_,c,a));this.bgEl_&&(eR(this.bgEl_,!0),lac(this.bgEl_,c,a))};
g.reposition=function(){if("fixed"==ip(this.getElement(),"position"))var a=0,b=0;else b=PA(this.getDomHelper().document_),a=b.x,b=b.y;var c=Dq(this.getElement());var d=wec(this);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);Eq(this.getElement(),a,b);Eq(this.tabCatcherElement_,a,b)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Mp(this.focusElement_,0,this)};
g.focusElement_=function(){try{rq&&this.getDomHelper().document_.body.focus(),this.getElement().focus()}catch(a){}};var wec=function(a){a=a.getDomHelper().document_;return NA(QA(a)||window)};FS.prototype.disposeInternal=function(){Zh(this.popupShowTransition_);this.popupShowTransition_=null;Zh(this.popupHideTransition_);this.popupHideTransition_=null;Zh(this.bgShowTransition_);this.bgShowTransition_=null;Zh(this.bgHideTransition_);this.bgHideTransition_=null;FS.superClass_.disposeInternal.call(this)};var IS=function(a,b,c){FS.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=GS(GS(new HS,xec,!0),yec,!1,!0)};ft(IS,FS);g=IS.prototype;g.escapeToCancel_=!0;g.hasTitleCloseButton_=!0;g.modal_=!0;g.backgroundElementOpacity_=.5;g.title_="";g.dragger_=null;g.disposeOnHide_=!1;g.titleEl_=null;g.titleTextEl_=null;g.titleTextId_=null;g.titleCloseEl_=null;g.contentEl_=null;g.buttonEl_=null;g.getCssClass=function(){return this.class_};
g.setTitle=function(a){this.title_=a;this.titleTextEl_&&TA(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var zec=function(a){a.getElement()||a.render();return a.getElement()};IS.prototype.getBackgroundElement=function(){this.getElement()||this.render();return IS.superClass_.getBackgroundElement.call(this)};IS.prototype.handleDrag=function(){};
var Aec=function(a,b){var c=ui(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?ZQ(a.titleEl_,c):fac(a.titleEl_,c));b&&!a.dragger_?(b=new CS(a.getElement(),a.titleEl_),a.dragger_=b,ZQ(a.titleEl_,c),Qo(a.dragger_,"start",a.setDraggerLimits_,!1,a),Qo(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=IS.prototype;
g.createDom=function(){IS.superClass_.createDom.call(this);var a=this.getElement(),b=this.getDomHelper();this.titleTextId_=this.getId();var c=this.getId()+".contentEl";this.titleEl_=b.createDom("DIV",this.class_+"-title",this.titleTextEl_=b.createDom("SPAN",{className:this.class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.createDom("SPAN",this.class_+"-title-close"));rPb(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));nE(this.titleTextEl_,"heading");nE(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;BWb(this.titleCloseEl_,"Close");nE(a,"dialog");oE(a,"labelledby",this.titleTextId_||"");eR(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());eR(this.buttonEl_,!!this.buttons_);this.backgroundElementOpacity_=this.backgroundElementOpacity_;this.getElement()&&(a=this.getBackgroundElement())&&mac(a,this.backgroundElementOpacity_)};
g.enterDocument=function(){IS.superClass_.enterDocument.call(this);this.getHandler().listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);this.getHandler().listen(this.buttonEl_,"click",this.onButtonClick_);Aec(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();nE(a,"dialog");""!==this.titleTextEl_.id&&oE(a,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){a=
this.getDomHelper();var b=this.getBackgroundElement();a.removeNode(this.bgIframeEl_);a.removeNode(b)}this.isVisible()&&uec(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Aec(this,!1);IS.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),IS.superClass_.setVisible.call(this,a))};g.onShow=function(){IS.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){IS.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=NA(QA(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=Dq(this.getElement());"fixed"==ip(this.getElement(),"position")?this.dragger_.limits=new aR(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new aR(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){Bec(this)};var Bec=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new JS(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},Cec=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&eR(a.titleCloseEl_,a.hasTitleCloseButton_)};IS.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};IS.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;IS.superClass_.disposeInternal.call(this)};
IS.prototype.onButtonClick_=function(a){a:{for(a=a.target;null!=a&&a!=this.buttonEl_;){if("BUTTON"==a.tagName)break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new JS(a,b))&&this.setVisible(!1)}};
IS.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if("keydown"==a.type)if(this.escapeToCancel_&&27==a.keyCode){var f=d&&d.cancelButton_;e="SELECT"==e.tagName&&!e.disabled;f&&!e?(c=!0,b=d.get(f),b=this.dispatchEvent(new JS(f,b))):e||(b=!0)}else{if(9==a.keyCode&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(x){}Mp(this.resetBackwardTabWrap_,0,this)}}else if(13==a.keyCode){if("BUTTON"==e.tagName&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)Bec(this);else if(d){var h=d.getDefault(),k;if(k=h)a:{k=MA("BUTTON",d.element_);for(var q=0,u;u=k[q];q++)if(u.name==h||u.id==h){k=u;break a}k=null}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName||"A"==e.tagName)&&!e.disabled;!k||k.disabled||e||(f=h)}f&&d&&(c=!0,b=this.dispatchEvent(new JS(f,String(d.get(f)))))}else e!=this.titleCloseEl_||32!=a.keyCode&&" "!=a.key||Bec(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var JS=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};ft(JS,AA);var HS=function(a){ES.call(this);this.dom_=a||So();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};ft(HS,ES);HS.prototype.clear=function(){ES.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};HS.prototype.set=function(a,b,c,d){ES.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var GS=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};g=HS.prototype;g.render=function(){if(this.element_){qKa(this.element_,Hs);var a=So(this.element_);this.forEach(function(b,c){b=a.createDom("BUTTON",{name:c},b);c==this.defaultButton_&&(b.className=this.class_+"-default");this.element_.appendChild(b)},this)}};g.getElement=function(){return this.element_};g.getDomHelper=function(){return this.dom_};g.setDefault=function(a){this.defaultButton_=a};g.getDefault=function(){return this.defaultButton_};
var xec={key:"ok",caption:"OK"},yec={key:"cancel",caption:"Cancel"},Dec={key:"yes",caption:"Yes"},Eec={key:"no",caption:"No"},Fec={key:"save",caption:"Save"},Gec={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(GS(new HS,xec,!0,!0),GS(GS(new HS,xec,!0),yec,!1,!0),GS(GS(new HS,Dec,!0),Eec,!1,!0),GS(GS(GS(new HS,Dec),Eec,!0),yec,!1,!0),GS(GS(GS(new HS,Gec),Fec),yec,!0,!0));var Hec=function(a,b,c){IS.call(this,a,b,c)};ft(Hec,IS);var KS=function(a,b){Po.call(this);this.element_=a;a=SA(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&fR(a);this.listenKey_=Qo(this.element_,it?"DOMMouseScroll":"mousewheel",this,b)};ft(KS,Po);
KS.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;"mousewheel"==d.type?(a=Iec(-d.wheelDelta),void 0!==d.wheelDeltaX?(b=Iec(-d.wheelDeltaX),c=Iec(-d.wheelDeltaY)):c=a):(a=d.detail,100<a?a=3:-100>a&&(a=-3),void 0!==d.axis&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);"number"===typeof this.maxDeltaX_&&(b=Math.min(Math.max(b,-this.maxDeltaX_),this.maxDeltaX_));"number"===typeof this.maxDeltaY_&&(c=Math.min(Math.max(c,-this.maxDeltaY_),this.maxDeltaY_));this.isRtl_&&(b=-b);b=new Jec(a,d,b,c);this.dispatchEvent(b)};
var Iec=function(a){return jt&&(tq||DEb)&&0!=a%40?a:a/40};KS.prototype.disposeInternal=function(){KS.superClass_.disposeInternal.call(this);HA(this.listenKey_);this.listenKey_=null};var Jec=function(a,b,c,d){BA.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};ft(Jec,BA);var Kec;var Lec=Xs(["https://about:blank"]),Mec=Xs(['javascript:""']),Nec=Xs(["about:blank"]),LS=function(a,b,c,d,e,f,h,k,q){k=void 0===k?!1:k;q=void 0===q?!1:q;IS.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);TQb(a,"protocol");this.iframeManager_=new Zdc;this.targetId_=Zt();this.rpcToken_=Zt();this.useGapi_=!q&&!0;a=tC(a);rC(a,"hostId");k||qC(a,"v2","true");this.setUrl(a.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;void 0!==d||void 0!==e?d=!0:(d=rC(tC(a.toString()),
"hostId"),Kec||(Kec=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!Kec.has(d));this.autoSizeDialog_=d;this.gadgetsDomHelper_=h||this.getDomHelper();b&&(b="true"==rC(tC(this.url_),"grugl")?wdc:vdc,h=this.gadgetsDomHelper_,uPa(h)||(h=h||So(document),d=h.createElement("SCRIPT"),ei(d,b),d.type="text/javascript",h.document_.body.appendChild(d)));b=a.toString();h=null;a=b.indexOf("/picker?");
-1<a?h=b.substring(0,a+8-1):gt(b,"/picker")&&(h=b);h&&this.setRelayUrl(h+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(b=this.buttons_,b.element_=this.buttonEl_,b.render()):qKa(this.buttonEl_,Hs),eR(this.buttonEl_,!!this.buttons_))};ft(LS,Hec);g=LS.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};
g.enterDocument=function(){LS.superClass_.enterDocument.call(this);var a=this.getBackgroundElement(),b=this.getHandler(),c=new KS(a);zA(b,c);b.listen(c,"mousewheel",dt(yPa,void 0,a)).listen(a,"scroll",dt(yPa,void 0,a))};g.render=function(a){var b=this;LS.superClass_.render.call(this,a);this.useGapi_?$dc(this.iframeManager_,window).then(function(){return Oec(b)}).then(null,function(c){return void b.handleError_(c)}):Pec(this)};
var Oec=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);eR(b,!1);a.getContentElement().appendChild(b);return aec(a.iframeManager_,b,function(c){var d=bGb(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=Fi(d,$Fb,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var f=d.getItemList();d=0===f.length?{action:e}:Idc(f,e,d.getInternalOnlyV1ViewInfo());c.call(a,d);a.setVisible(!1);break;case 4:Cec(a),
a.callback_({action:"loaded"})}},a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();Qec(a);eR(a.iframe_.parentElement,!0);dac(a.getElement(),"picker-dialog");Rec(a);return c})},Pec=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});rpa(a.iframe_,Sec(a));dac(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void Qec(a)});
a.iframe_.src=a.url_;Rec(a)},Uec=function(a){Tec(a,dt(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},Rec=function(a){var b=rC(tC(a.url_),"title");b&&a.setTitle(b)},Sec=function(a){return 7<=jaa()&&si(a.url_,"https")?mh(Lec):rq?mh(Mec):mh(Nec)},Qec=function(a){Uec(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};LS.prototype.handleKeydown_=function(a){27==a.keyCode&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};
var Tec=function(a,b){var c=a.gadgetsDomHelper_;wPa(function(){b(c.getWindow().gadgets.rpc)},c)};LS.prototype.setUrl=function(a){a=qC(new Vo(a),"rpcService",this.targetId_);qC(a,"rpctoken",this.rpcToken_);mC(a,"rpctoken="+this.rpcToken_);iC(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};LS.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&Vec(this)};
LS.prototype.setCallback=function(a){this.callback_=a;Tec(this,dt(function(b){b.register(this.targetId_,dt(this.handlePickerAction_,this))},this))};LS.prototype.handlePickerAction_=function(a){var b=a.action;"loaded"==b&&(this.loadedFired_=!0,this.sendCommand(new tdc(this.isVisible())),Vec(this),Cec(this),this.getHandler().unlisten(this.getDomHelper().getWindow(),"keydown",this.handleKeydown_),this.iframe_.tabIndex=0);"picked"!=b&&"cancel"!=b||this.setVisible(!1);this.callback_(a)};
var Vec=function(a){a.appId_&&a.sendCommand(new tPa(a.appId_,window.location.protocol+"//"+window.location.host))};g=LS.prototype;g.setRelayUrl=function(a){Tec(this,dt(function(b){b.setRelayUrl(this.targetId_,a)},this))};g.sendCommand=function(a){var b=this;this.useGapi_&&fec(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});Tec(this,dt(function(c){c.call(this.targetId_,"picker",null,a)},this))};
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=QA(a)||window;if("true"==rC(tC(this.url_),"ignoreLimits"))a=new IA(this.preferredDialogWidth_,this.preferredDialogHeight_);else if("true"==rC(tC(this.url_),"shadeDialog")){var b=rac(zec(this)),c=NA(a);a=c.width-80;c=c.height-40;b&&(a-=b.left?b.left:0,a-=b.right?b.right:0,c-=b.top?b.top:0,c-=b.bottom?b.bottom:0);a=new IA(0<a?a:0,0<c?c:0)}else{b=this.preferredDialogWidth_;if(b){b=Math.max(320,Math.min(1051,b));c=this.preferredDialogHeight_;
c||(c=NA(a),c=.85*c.height);var d=Math.max(480,Math.min(650,c))}else c=NA(a),b=.618*c.width,d=b<c.height?Math.round(Math.max(480,Math.min(650,.85*b))):Math.round(Math.max(480,Math.min(650,.85*c.height))),b=Math.round(d/.618);c=NA(a);b=Math.min(b,Math.max(c.width,320));d=Math.min(d,Math.max(c.height,480));a=new IA(b,d)}lac(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if("true"==rC(tC(this.url_),"shadeDialog")){var a=Dq(this.getElement()),b=NA(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=rac(zec(this))){var c=b.left?b.left:0;c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=0<a?a:0;b=PA(this.getDomHelper().document_).y;Eq(this.getElement(),a,b)}else LS.superClass_.reposition.call(this)};
g.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var b=this.getDomHelper().getWindow();a?(this.resizePicker_(),this.getHandler().listen(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().listen(b,"keydown",this.handleKeydown_)):(this.getHandler().unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().unlisten(b,"keydown",this.handleKeydown_))}LS.superClass_.setVisible.call(this,a);this.sendCommand(new tdc(a))};
g.focus=function(){LS.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};g.handleError_=function(){this.callback_({action:"error"})};var MS=function(a){pdc.call(this,a);this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.setOrigin(a);this.postProcessors_=[];this.gadgetsDomHelper_=void 0};ft(MS,qdc);MS.prototype.disposeOnHide_=!1;
MS.prototype.build=function(){this.urlParamMap_.get("parent")||this.setRelayUrl(mC(lC(tC(window.location.href)),"").setPath("/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("Sd");var a=new LS(Wec(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_,!1,!1);a.setDisposeOnHide(this.disposeOnHide_);a.setAppId(this.appId_);a.setCallback(this.callback_);return a};
var Xec=function(a,b){a.urlParamMap_.set(b,"true");return a};g=MS.prototype;g.getHeight=function(){return this.dialogHeight_};g.getLocale=function(){return this.urlParamMap_.get("hl")};g.getProtocol=function(){return this.urlParamMap_.get("protocol")};g.getTitle=function(){return this.urlParamMap_.get("title")};g.getWidth=function(){return this.dialogWidth_};g.setDisposeOnHide=function(a){this.disposeOnHide_=a};g.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};
var Yec=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=MS.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};g.setLocale=function(a){this.urlParamMap_.set("hl",a);return this};g.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};g.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};g.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var Wec=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",ndc(a.nav_));var b=new Vo(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){qC(b,d,c)});return b};var NS=function(a,b){this.activeSession=a;this.attachmentsApi=b;this.disabled=!1;this.onPickDoc=new Yu;this.onCloneBlob=new Yu;this.onePickUrl=a.getOnePickUrl();this.onePickSecretToken=a.getOnePickSecretToken()};
NS.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=Yec(Xec(Xec(Xec(Xec((new MS(this.onePickUrl)).addView(idc().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&"picked"===c.action)for(var d=l(c.docs),e=d.next();!e.done;e=d.next())e=new fdc(e.value),c.extraUserInputs.isAttachment?(e=new gdc(e),hdc(e,a.attachmentsApi),a.onCloneBlob.emit(e)):
a.onPickDoc.emit(e)}).setOrigin(b)).build()}this.drivePicker.setVisible(!0)};NS.\u0275fac=function(a){return new (a||NS)(z(Us),z(I4b))};
NS.\u0275cmp=od({type:NS,selectors:[["b-drive-attachment"]],inputs:{disabled:"disabled"},outputs:{onPickDoc:"onPickDoc",onCloneBlob:"onCloneBlob"},decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["mat-icon-button","","matTooltip","Add Drive attachments","aria-label","Add Drive attachments",3,"disabled","click"],["svgIcon","google-drive"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"button",1),L("click",function(){return b.showDialog()}),G(2,"mat-icon",2),F()());a&2&&(w(1),C("disabled",
b.disabled))},dependencies:[qA,Ez,FB],encapsulation:2});var OS=function(a,b,c){Y.call(this);this.window=b;this.scrolledOnScreenService=c;this.onAutoResize=new Yu;this.el=a.nativeElement;this.cloneEl=this.el.cloneNode();this.cloneEl.removeAttribute("id");this.cloneEl.removeAttribute("name");this.cloneEl.removeAttribute("aria-label");this.cloneEl.setAttribute("aria-hidden","");this.cloneEl.removeAttribute("data-stable");this.cloneEl.setAttribute("data-cloned-for-auto-resize","");this.cloneEl.style.height="auto";this.cloneEl.style.visibility="hidden";this.cloneEl.style.position=
"absolute";this.cloneEl.style.left="0";this.cloneEl.style.top="0";this.cloneEl.style.zIndex="-9999";this.cloneEl.style.overflowY="hidden";this.window.document.body.appendChild(this.cloneEl)};W(OS,Y);OS.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&Zec(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){Zec(a,2)}))};OS.prototype.onInput=function(){Zec(this,1)};
var Zec=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=l("width max-height min-height font-family text-decoration letter-spacing".split(" ")),e=d.next();!e.done;e=d.next())e=e.value,a.cloneEl.style.setProperty(e,c.getPropertyValue(e));a.cloneEl.value=a.el.value;d=a.window.getComputedStyle(a.cloneEl);c=a.cloneEl;c=jp(d.getPropertyValue("border-top-width"))+jp(d.getPropertyValue("padding-top"))+c.scrollHeight+jp(d.getPropertyValue("padding-bottom"))+jp(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=jp(d.getPropertyValue("max-height")),d=jp(d.getPropertyValue("min-height")),!Number.isNaN(e)&&c>e&&(c=e),!Number.isNaN(d)&&c<d&&(c=d),d=c+"px",a.el.style.height!==d&&(a.el.style.height=d,a.onAutoResize.emit({newHeight:c,source:b})))};OS.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);Y.prototype.ngOnDestroy.call(this)};OS.\u0275fac=function(a){return new (a||OS)(z(ae),z(qF),z(kL))};
OS.\u0275dir=sd({type:OS,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&L("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},features:[Jf]});var $ec=["el"],PS=function(a,b,c){this.clipboard=a;this.snackBar=b;this.domSafe=c;this.opened=!1};PS.prototype.getNgContentParentEl=function(){return this.el.nativeElement};PS.prototype.hide=function(){this.opened=!1};PS.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};PS.\u0275fac=function(a){return new (a||PS)(z(nP),z(SF),z(zL))};
PS.\u0275cmp=od({type:PS,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&zg($ec,7);if(a&2){var c;yg(c=Bg())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},ngContentSelectors:["*"],decls:8,vars:3,consts:[["cdkOverlayOrigin","","aria-haspopup","true",1,"broken",3,"click"],["trigger","cdkOverlayOrigin"],["svgIcon","link-off",1,"broken","icon-s"],["el",""],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",3,"cdkConnectedOverlayPush","cdkConnectedOverlayOrigin",
"cdkConnectedOverlayOpen"],[1,"b-bubble","flex-kids-y",3,"clickOutside"],[1,"flex-kids-x"],["mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"],[3,"href","click"]],template:function(a,b){a&1&&(eg(),D(0,"a",0,1),L("click",function(d){d.preventDefault();d.stopPropagation();b.opened=!b.opened}),D(2,"b-glue"),G(3,"mat-icon",2),F(),D(4,"span",null,3),fg(6),F()(),P(7,DPa,11,3,"ng-template",4));if(a&2){var c=N(1);w(7);C("cdkConnectedOverlayPush",
!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[qA,Ry,Qy,yM,hL,Ez,FB],styles:["mat-icon.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}a.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}.b-bubble[_ngcontent-%COMP%]{display:flex;border-width:1px;border-style:solid;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;box-shadow:0 4px 8px 3px rgba(0,0,0,.1);padding:9px;background-color:#fff;background-color:var(--surface-default)}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}  .tooltip-panel{display:inline-block;margin:.1em}"],
changeDetection:0});var QS=function(){this.checked=!1};QS.\u0275fac=function(a){return new (a||QS)};QS.\u0275cmp=od({type:QS,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked"},decls:1,vars:2,consts:[["gmat-checkbox","",3,"disabled","checked"]],template:function(a,b){a&1&&G(0,"mat-checkbox",0);a&2&&C("disabled",!0)("checked",b.checked)},dependencies:[PK],encapsulation:2,changeDetection:0});var afc=["el"],RS=function(a,b,c){Y.call(this);this.domSafe=a;this.clipboard=b;this.snackBar=c;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.opened=!1};W(RS,Y);RS.\u0275dir=Y.\u0275dir;RS.prototype.ngOnInit=function(){};RS.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(Af(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};RS.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var bfc=function(a){var b=a.getNgContentParentEl(),c,d;if(d=BPa(b))a=a.originalHref,b=null!=(c=b.textContent)?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};RS.prototype.hide=function(){this.opened=!1};var FPa=function(a,b){CPa(b)||(b.preventDefault(),b.stopPropagation(),kp(a.domSafe,a.href))};RS.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};
var HPa=function(a,b){b.preventDefault();if(a=a.cdkConnectedOverlay.overlayRef.overlayElement){var c=a.querySelector("a");c&&setTimeout(function(){c.focus()})}},GPa=function(a,b){if(b.shiftKey&&"Tab"===b.key&&(b.preventDefault(),a=a.cdkConnectedOverlay.overlayRef.overlayElement)){var c=a.querySelector("button");c&&setTimeout(function(){c.focus()})}};RS.\u0275fac=function(a){return new (a||RS)(z(zL),z(nP),z(SF))};
RS.\u0275cmp=od({type:RS,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(zg(afc,7),zg(Ry,7));if(a&2){var c;yg(c=Bg())&&(b.el=c.first);yg(c=Bg())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},features:[Jf],ngContentSelectors:["*"],decls:7,vars:8,consts:[["cdkOverlayOrigin","",1,"keep-focus-ring",3,"href","rel","click"],["trigger","cdkOverlayOrigin"],[4,"ngIf"],["el",""],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",
3,"cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["svgIcon","link",1,"icon-s"],[1,"b-bubble",3,"clickOutside"],[1,"gmat-caption"],["target","_blank",1,"keep-focus-ring",3,"href","rel","click","keydown"],["mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"keydown.Tab","click"],["svgIcon","copy"]],template:function(a,b){a&1&&(eg(),D(0,"a",0,1),L("click",function(d){CPa(d)||(d.preventDefault(),d.stopPropagation(),bfc(b)?
b.opened=!b.opened:FPa(b,d))}),P(2,EPa,2,0,"b-glue",2),D(3,"span",null,3),fg(5),F()(),P(6,IPa,6,3,"ng-template",4));if(a&2){var c=N(1);Xf("needs-user-confirm",bfc(b));C("href",b.originalHref,re)("rel",b.EXTERNAL_LINK_REL);w(2);C("ngIf",bfc(b));w(4);C("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[Ev,qA,Ry,Qy,yM,hL,Ez,FB],styles:[".tooltip-panel{display:inline-block;margin:.1em}[_nghost-%COMP%] > a.needs-user-confirm[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.b-bubble[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-width:1px;border-style:solid;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;box-shadow:0 4px 8px 3px rgba(60,64,67,.15);padding:9px;background-color:#fff;background-color:var(--surface-default)}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}"],
changeDetection:0});var cfc=["child"],SS=function(a){this.codefont=a};SS.prototype.ngOnInit=function(){};SS.prototype.ngOnChanges=function(){APa(this.child.nativeElement,this.content.content)};SS.\u0275fac=function(a){return new (a||SS)(z(AM))};
SS.\u0275cmp=od({type:SS,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&zg(cfc,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{content:"content"},features:[Fd],decls:3,vars:4,consts:[[1,"type-m","child"],["child",""]],template:function(a,b){a&1&&(D(0,"div",0,1),T(2,"async"),F());a&2&&Xf("codefont",V(2,2,b.codefont.codefont$))},dependencies:[Kv],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});var TS=function(a,b){this.session=a;this.userPreferencesManager=b;this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(A(function(c){return c.textDisplayPreferences?c.textDisplayPreferences:{}}),mf());this.textDisplayPreferences$.pipe(A(function(c){return c.lastPublishMode===XTb}),mf());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(A(function(c){return c.commentDisplayOverride}),mf())};TS.\u0275fac=function(a){return new (a||TS)(n(Us),n(iE))};
TS.\u0275prov=$c({token:TS,factory:TS.\u0275fac,providedIn:"root"});var dfc=new Ad("IssueCard");var US=function(){};US.prototype.visit=function(){};US.\u0275fac=function(a){return new (a||US)};US.\u0275prov=$c({token:US,factory:US.\u0275fac,providedIn:"root"});var efc=["el"],VS=function(a){this.viewContainerRef=a};VS.\u0275fac=function(a){return new (a||VS)(z(wg))};VS.\u0275dir=sd({type:VS,selectors:[["","issueCardHost",""]]});var WS=function(a,b){Y.call(this);this.issueReferenceResolver=a;this.issueCard=b;this.hovercardReady=new B.ReplaySubject(1)};W(WS,Y);WS.\u0275dir=Y.\u0275dir;WS.prototype.ngOnInit=function(){};
WS.prototype.ngAfterViewInit=function(){var a=this;this.issueCardHost.changes.pipe(Af(this.destroyed$)).subscribe(function(b){a.issueCard&&0!==b.length&&(b=a.issueCardHost.first.viewContainerRef.createComponent(a.issueCard),b.instance.issueId=a.issueId,b.instance.init.pipe(nf(),Af(a.destroyed$)).subscribe(a.hovercardReady),b.changeDetectorRef.detectChanges())})};
WS.prototype.visit=function(a){if(!CPa(a))if(this.commentNumber)this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+this.commentNumber,event:a});else{var b=this.href.indexOf("#");if(-1!==b&&(b=this.href.slice(b+1))){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:b,event:a});return}this.issueReferenceResolver.visit({issueId:this.issueId,event:a})}};WS.\u0275fac=function(a){return new (a||WS)(z(US),z(dfc,8))};
WS.\u0275cmp=od({type:WS,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(zg(efc,7),zg(VS,5));if(a&2){var c;yg(c=Bg())&&(b.el=c.first);yg(c=Bg())&&(b.issueCardHost=c)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},features:[Jf],ngContentSelectors:["*"],decls:6,vars:3,consts:[["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[1,"keep-focus-ring",3,"onedevHovercardTrigger","onedevHovercardActive","href","click"],
["el",""],[3,"onedevIsHovercardReady"],["issueCardHost",""]],template:function(a,b){a&1&&(eg(),D(0,"onedev-hovercard",null,0),P(2,JPa,2,1,"div",1),F(),D(3,"a",2,3),L("click",function(d){return b.visit(d)}),fg(5),F());if(a&2){var c=N(1);w(3);C("onedevHovercardTrigger",c)("onedevHovercardActive",!!b.issueCard)("href",b.href,re)}},dependencies:[PJ,QJ,UJ,RJ,VS],encapsulation:2,changeDetection:0});var XS=function(){this.isMentioningMe=!1};XS.prototype.ngOnInit=function(){this.username=this.email.replace(/@google.com$/,"")};XS.\u0275fac=function(a){return new (a||XS)};
XS.\u0275cmp=od({type:XS,selectors:[["b-mention-chip-widget"]],inputs:{email:"email",isMentioningMe:"isMentioningMe"},decls:6,vars:5,consts:[[1,"mention",3,"onedevHovercardTrigger"],["el",""],["card",""],[3,"email"]],template:function(a,b){a&1&&(D(0,"span",0,1),Q(2),F(),D(3,"onedev-hovercard",null,2),G(5,"b-issue-person-card",3),F());if(a&2){var c=N(4);Xf("me",b.isMentioningMe);C("onedevHovercardTrigger",c);w(2);S("@",b.username,"");w(3);C("email",b.email)}},dependencies:[sO,PJ,UJ],styles:[".mention[_ngcontent-%COMP%]{font-weight:500}.mention.me[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--self-mentioned-bg);color:#1a73e8;color:var(--self-mentioend-text);border-radius:4px;font-weight:500;padding:0 3px}"]});var ffc=Symbol(),gfc=Symbol(),hfc=Symbol(),ifc=Symbol(),jfc=Symbol(),kfc=Symbol(),YS=function(a,b,c){this.appRef=a;this.flags=b;this.session=c;this.allComponentRefs=[];this.secureImageRefs=[];this.snipItImageRefs=[];this.mentionChipRefs=[];this.checkboxRefs=[];this.externalHyperlinkRefs=[];this.brokenLinkRefs=[];this.issueReferenceRefs=[]},nfc=function(a,b,c){for(var d=b.querySelectorAll("*"),e=0;e<d.length;e++){var f=d[e],h=f.dataset.bId;h&&(f.id=h)}d=l(b.querySelectorAll("a"));for(e=d.next();!e.done;e=
d.next())if(e=e.value,(h=e.getAttribute("href"))&&YEa(h)&&e&&BPa(e)&&h===e.textContent&&(f=e.nextSibling,lfc(a,e,h,void 0,c),h=void 0,null!=(h=f)&&h.textContent&&(h=f.textContent.match(/(^[^\w]+)/))))h=h[1],f.textContent=f.textContent.substring(h.length),f=document.createElement("span"),f.textContent=h,e.insertAdjacentElement("afterend",f);d=b.querySelectorAll("*[data-b-widget]");for(e=0;e<d.length;e++)switch(f=d[e],f.dataset.bWidget){case "image":h=a;var k=c,q=f.dataset.bImgSrc,u=f.dataset.bImgRedirectedSrc;
KPa(f);if(q){var x=f.dataset.bImgAlt;if(YEa(q))lfc(h,f,q,x,k,!0);else if($C(h.flags.session,"enableMarkdownInlineImages"))f=h.createComponent(oL,f,k),k=f.instance,k.src=q,x&&(k.alt=x),h.secureImageRefs.push(f);else{var y=document.createElement("a");x?y.appendChild(document.createTextNode(x)):y.appendChild(document.createTextNode(q));f.appendChild(y);mfc(h,y,q,u||q,k)}}break;case "checkbox":h=a;x=c;q=null!=f.dataset.bCheckboxChecked;KPa(f);f=h.createComponent(QS,f,x);f.instance.checked=q;h.checkboxRefs.push(f);
break;case "url":h=a;q=c;x=f.dataset.bOriginalHref;k=f.dataset.bRedirectedHref;x&&k&&(f.removeAttribute("href"),mfc(h,f,x,k,q));break;case "broken-url":h=a;k=c;if(x=f.dataset.bOriginalHref){q=Array.from(f.childNodes);f=h.createComponent(PS,f,k);k=f.instance;k.originalHref=x;x=k.getNgContentParentEl();q=l(q);for(k=q.next();!k.done;k=q.next())x.appendChild(k.value);h.brokenLinkRefs.push(f)}break;case "mention":a.session.isInternalSession()&&(x=void 0,h=a,k=c,q="","@"===(null==(x=f.textContent)?void 0:
x[0])&&(q=f.textContent.slice(1)),KPa(f),f=h.createComponent(XS,f,k),x=f.instance,x.email=q,x.isMentioningMe=h.session.getUserEmail()===q,h.mentionChipRefs.push(f));break;case "issue-reference":y=void 0;h=a;var E=c;q=f.href;x=f.dataset.bIssueId;k=f.dataset.bCommentNumber;if(q&&x){u=Number(k);k=Array.from(f.childNodes);var H=document.createElement("span");null==(y=f.parentNode)||y.insertBefore(H,f);y=h.createComponent(WS,H,E);E=y.instance;E.href=q;E.issueId=x;E.commentNumber=u;q=E.el.nativeElement;
x=l(k);for(k=x.next();!k.done;k=x.next())q.appendChild(k.value);f.remove();h.issueReferenceRefs.push(y)}}a=b.querySelectorAll("a");for(c=0;c<a.length;c++)d=a[c],d.getAttribute("target")||d.setAttribute("target","_self");b=b.querySelectorAll("table");for(a=0;a<b.length;a++)c=b[a],c.parentNode&&(d=document.createElement("div"),d.classList.add("table-overflow"),c.parentNode.insertBefore(d,c),d.appendChild(c))};YS.prototype.ngOnDestroy=function(){ofc(this)};
var lfc=function(a,b,c,d,e,f){f=void 0===f?!1:f;var h=b;b instanceof HTMLAnchorElement&&(h=document.createElement("span"),b.insertAdjacentElement("afterend",h));b=a.createComponent(qL,h,e);e=b.instance;e.src=c;e.alt=d;e.isMarkdownImage=f;a.snipItImageRefs.push(b)},mfc=function(a,b,c,d,e){var f=Array.from(b.childNodes);b=a.createComponent(RS,b,e);e=b.instance;e.originalHref=c;e.href=d;c=e.getNgContentParentEl();f=l(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value);a.externalHyperlinkRefs.push(b)};
YS.prototype.createComponent=function(a,b,c){c={environmentInjector:this.appRef.injector,elementInjector:c.injector};a=a[pd]||null;var d=c.elementInjector||lea();c=(new Hg(a)).create(d,c.projectableNodes,c.hostElement,c.environmentInjector);b.appendChild(c.location.nativeElement);NIb(this.appRef,c.hostView);this.allComponentRefs.push(c);return c};
var ofc=function(a){for(var b=l(a.allComponentRefs),c=b.next();!c.done;c=b.next())c.value.destroy();a.allComponentRefs=[];a.secureImageRefs=[];a.snipItImageRefs=[];a.mentionChipRefs=[];a.checkboxRefs=[];a.externalHyperlinkRefs=[];a.brokenLinkRefs=[];a.issueReferenceRefs=[]};YS.prototype[ffc]=function(){return this.secureImageRefs.slice()};YS.prototype[gfc]=function(){return this.snipItImageRefs.slice()};YS.prototype[hfc]=function(){return this.checkboxRefs.slice()};YS.prototype[ifc]=function(){return this.externalHyperlinkRefs.slice()};
YS.prototype[jfc]=function(){return this.brokenLinkRefs.slice()};YS.prototype[kfc]=function(){return this.issueReferenceRefs.slice()};YS.\u0275fac=function(a){return new (a||YS)(n(vv),n(TS),n(Us))};YS.\u0275prov=$c({token:YS,factory:YS.\u0275fac});var pfc=["child"],qfc=Symbol(),ZS=function(a,b,c){this.dynamicComponents=a;this.codefont=b;this.viewContainerRef=c};ZS.prototype.ngOnInit=function(){};ZS.prototype.ngOnChanges=function(){ofc(this.dynamicComponents);var a=this.child.nativeElement;APa(a,this.content.content);nfc(this.dynamicComponents,a,this.viewContainerRef)};ZS.prototype.ngOnDestroy=function(){ofc(this.dynamicComponents)};ZS.prototype[qfc]=function(){return this.dynamicComponents};
ZS.\u0275fac=function(a){return new (a||ZS)(z(YS,2),z(AM),z(wg))};
ZS.\u0275cmp=od({type:ZS,selectors:[["b-markdown-format-presenter"]],viewQuery:function(a,b){a&1&&zg(pfc,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{content:"content"},features:[lg([{provide:YS,useClass:YS}]),Fd],decls:3,vars:4,consts:[[1,"type-m","markdown-display"],["child",""]],template:function(a,b){a&1&&(D(0,"div",0,1),T(2,"async"),F());a&2&&Xf("codefont",V(2,2,b.codefont.codefont$))},dependencies:[Kv],styles:[':root{--blue-50: #e8f0fe;--blue-100: #d2e3fc;--blue-200: #aecbfa;--blue-300: #8ab4f8;--blue-400: #669df6;--blue-500: #4285f4;--blue-600: #1a73e8;--blue-700: #1967d2;--blue-800: #185abc;--blue-900: #174ea6;--blue: var(--blue-600);--red-50: #fce8e6;--red-100: #fad2cf;--red-200: #f6aea9;--red-300: #f28b82;--red-400: #ee675c;--red-500: #ea4335;--red-600: #d93025;--red-700: #c5221f;--red-800: #b31412;--red-900: #a50e0e;--red: var(--red-600);--yellow-50: #fef7e0;--yellow-100: #feefc3;--yellow-200: #fde293;--yellow-300: #fdd663;--yellow-400: #fcc934;--yellow-500: #fbbc04;--yellow-600: #f9ab00;--yellow-700: #f29900;--yellow-800: #ea8600;--yellow-900: #e37400;--yellow: var(--yellow-600);--green-50: #e6f4ea;--green-100: #ceead6;--green-200: #a8dab5;--green-300: #81c995;--green-400: #5bb974;--green-500: #34a853;--green-600: #1e8e3e;--green-700: #188038;--green-800: #137333;--green-900: #0d652d;--green: var(--green-600);--white: #fff;--grey-50: #f8f9fa;--grey-100: #f1f3f4;--grey-200: #e8eaed;--grey-300: #dadce0;--grey-400: #bdc1c6;--grey-500: #9aa0a6;--grey-600: #80868b;--grey-700: #5f6368;--grey-800: #3c4043;--grey-900: #202124;--black: var(--grey-900);--orange-50: #feefe3;--orange-100: #fedfc8;--orange-200: #fdc69c;--orange-300: #fcad70;--orange-400: #fa903e;--orange-500: #fa7b17;--orange-600: #e8710a;--orange-700: #d56e0c;--orange-800: #c26401;--orange-900: #b06000;--pink-50: #fde7f3;--pink-100: #fdcfe8;--pink-200: #fba9d6;--pink-300: #ff8bcb;--pink-400: #ff63b8;--pink-500: #f439a0;--pink-600: #e52592;--pink-700: #c92786;--pink-800: #b80672;--pink-900: #9c166b;--purple-50: #f3e8fd;--purple-100: #e9d2fd;--purple-200: #d7aefb;--purple-300: #c58af9;--purple-400: #af5cf7;--purple-500: #a142f4;--purple-600: #9334e6;--purple-700: #8430ce;--purple-800: #7627bb;--purple-900: #681da8;--cyan-50: #e4f7fb;--cyan-100: #cbf0f8;--cyan-200: #a1e4f2;--cyan-300: #78d9ec;--cyan-400: #4ecde6;--cyan-500: #24c1e0;--cyan-600: #12b5cb;--cyan-700: #129eaf;--cyan-800: #098591;--cyan-900: #007b83}.markdown-display{word-break:break-word;overflow-wrap:break-word}.markdown-display p{word-break:break-word}.markdown-display hr{height:0;border:0;border-top:1px solid var(--hairline)}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{font-weight:500}.markdown-display h1{font-size:160%;font-weight:700}.markdown-display h2{font-size:160%}.markdown-display h3{font-size:140%}.markdown-display h4{font-size:120%}.markdown-display h5{font-size:100%}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display p,.markdown-display blockquote,.markdown-display hr,.markdown-display ul,.markdown-display ol{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display>*:first-child{margin-block-start:0}.markdown-display ul,.markdown-display ol{padding-inline-start:2rem}.markdown-display blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.markdown-display ul{list-style:initial}.markdown-display ul ul{list-style:circle}.markdown-display ul ul ul{list-style:square}.markdown-display ul ul,.markdown-display ol ol,.markdown-display ul ol,.markdown-display ol ul{margin:0}.markdown-display li{margin-block-end:.2em}.markdown-display code,.markdown-display pre{background-color:var(--surface-secondary);border-radius:2px;font-family:WorkAroundWebKitAndMozilla,monospace}.markdown-display pre{border:1px solid var(--hairline);overflow-x:auto}.markdown-display code{color:var(--markdown-code);padding:0 2px}.markdown-display pre code{color:var(--text-high-contrast);padding:0}.markdown-display pre{padding:8px 16px}.markdown-display pre,.markdown-display pre code{line-height:1.5}.markdown-display img{max-width:100%}.markdown-display a,.markdown-display a code{color:var(--primary-default);text-decoration:none}.markdown-display a:visited,.markdown-display a code:visited{color:var(--markdown-link-visited)}.markdown-display pre code a{color:inherit;text-decoration:underline}.markdown-display a:hover{text-decoration:underline}.markdown-display a:focus{outline:-webkit-focus-ring-color auto 1px}.markdown-display table{border-collapse:collapse;margin:1em 0}.markdown-display td,.markdown-display th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.markdown-display th{text-align:left;vertical-align:bottom;word-break:keep-all}.markdown-display div.table-overflow{overflow-x:auto}.markdown-display input[type=checkbox]{vertical-align:middle}.markdown-display section.footnotes{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;margin-top:2.5em;border-top:1px solid #dadce0}.markdown-display sup.footnote-ref::before{content:"["}.markdown-display sup.footnote-ref::after{content:"]"}.markdown-display .footnote-backref{text-decoration:none}.markdown-display .footnote-backref>a{text-decoration:none}.markdown-display .align-left{text-align:left}.markdown-display .align-right{text-align:right}.markdown-display .align-center{text-align:center}.markdown-display .align-justify{text-align:justify}.markdown-display .g3mark-callout{position:relative}.markdown-display .g3mark-callout .g3mark-callout__icon{display:none}body:not(.dark-mode) .markdown-display .stx-plain{color:inherit}body:not(.dark-mode) .markdown-display .stx-keyword{color:#708}body:not(.dark-mode) .markdown-display .stx-keyword-strong{color:inherit}body:not(.dark-mode) .markdown-display .stx-string{color:#080}body:not(.dark-mode) .markdown-display .stx-comment{color:#800}body:not(.dark-mode) .markdown-display .stx-number{color:#164}body:not(.dark-mode) .markdown-display .stx-macro{color:#555}body:not(.dark-mode) .markdown-display .stx-class{color:inherit}body:not(.dark-mode) .markdown-display .stx-const{color:inherit}body:not(.dark-mode) .markdown-display .stx-escape-sequence{color:inherit}body:not(.dark-mode) .markdown-display .stx-deprecated{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-doc-tag{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-task-tag{font-weight:inherit}body:not(.dark-mode) .markdown-display .stx-atom{color:#219}body:not(.dark-mode) .markdown-display .stx-definition{color:blue}body:not(.dark-mode) .markdown-display .stx-type-id{color:#085}body:not(.dark-mode) .markdown-display .stx-qualifier{color:#555}body:not(.dark-mode) .markdown-display .stx-local-ref{color:#05a}body:not(.dark-mode) .markdown-display .stx-md-entity{color:#708}body:not(.dark-mode) .markdown-display .stx-md-bold{font-weight:bold}body:not(.dark-mode) .markdown-display .stx-md-italic{font-style:italic}body:not(.dark-mode) .markdown-display .stx-md-link{color:#080}body:not(.dark-mode) .markdown-display .stx-md-code{color:#555}body:not(.dark-mode) .markdown-display .stx-comment .stx-md-link,body:not(.dark-mode) .markdown-display .stx-comment .stx-md-code{color:#800}body:not(.dark-mode) .markdown-display pre .chl{border:1px solid #ffca28;background-color:#fff59d;padding:1px 0;margin:0 -1px}body:not(.dark-mode) .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body:not(.dark-mode) .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body:not(.dark-mode) .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body:not(.dark-mode) .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body:not(.dark-mode) .markdown-display .g3mark-callout__keyword{font-weight:bold}body:not(.dark-mode) .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons";margin-left:-1.5rem}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body:not(.dark-mode) .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body:not(.dark-mode) .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body:not(.dark-mode) .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body:not(.dark-mode) .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr,body:not(.dark-mode) .markdown-display .g3mark-callout-summary{border-color:#669df6;background:#e8f0fe;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-tip,body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice{border-color:#5bb974;background:#e6f4ea;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-note{border-color:#bdc1c6;background:#f8f9fa;color:#202124;background:#f1f3f4}body:not(.dark-mode) .markdown-display .g3mark-callout-warning{border-color:#ee675c;background:#fce8e6;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-important{border-color:#fa903e;background:#feefe3;color:#202124}body.dark-mode .markdown-display .stx-plain{color:inherit}body.dark-mode .markdown-display .stx-keyword{color:#d8884b}body.dark-mode .markdown-display .stx-keyword-strong{color:inherit}body.dark-mode .markdown-display .stx-string{color:#97c67b}body.dark-mode .markdown-display .stx-comment{color:#8c9292}body.dark-mode .markdown-display .stx-number{color:#79a9c4}body.dark-mode .markdown-display .stx-macro{color:#9dbed9}body.dark-mode .markdown-display .stx-class{color:inherit}body.dark-mode .markdown-display .stx-const{color:inherit}body.dark-mode .markdown-display .stx-escape-sequence{color:inherit}body.dark-mode .markdown-display .stx-deprecated{text-decoration:inherit}body.dark-mode .markdown-display .stx-doc-tag{text-decoration:inherit}body.dark-mode .markdown-display .stx-task-tag{font-weight:inherit}body.dark-mode .markdown-display .stx-atom{color:#cf7ea9}body.dark-mode .markdown-display .stx-definition{color:#75b3db}body.dark-mode .markdown-display .stx-type-id{color:#eede7b}body.dark-mode .markdown-display .stx-qualifier{color:#97c67b}body.dark-mode .markdown-display .stx-local-ref{color:#aac6e3}body.dark-mode .markdown-display .stx-md-entity{color:#d8884b}body.dark-mode .markdown-display .stx-md-bold{font-weight:bold}body.dark-mode .markdown-display .stx-md-italic{font-style:italic}body.dark-mode .markdown-display .stx-md-link{color:#d8884b}body.dark-mode .markdown-display .stx-md-code{color:#d8884b}body.dark-mode .markdown-display .stx-comment .stx-md-link,body.dark-mode .markdown-display .stx-comment .stx-md-code{color:#89b2cd}body.dark-mode .markdown-display pre .chl{border:1px solid #ffca28;background-color:#fff59d;padding:1px 0;margin:0 -1px}body.dark-mode .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body.dark-mode .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body.dark-mode .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body.dark-mode .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body.dark-mode .markdown-display .g3mark-callout__keyword{font-weight:bold}body.dark-mode .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons";margin-left:-1.5rem}body.dark-mode .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body.dark-mode .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body.dark-mode .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body.dark-mode .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body.dark-mode .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body.dark-mode .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body.dark-mode .markdown-display .g3mark-callout-tldr,body.dark-mode .markdown-display .g3mark-callout-tip,body.dark-mode .markdown-display .g3mark-callout-note,body.dark-mode .markdown-display .g3mark-callout-warning{border-color:#fff;background:#3c4043;color:#fff}/*# sourceMappingURL=markdown_format_presenter.css.map */\n'],encapsulation:2,
changeDetection:0});var rfc=["child"],sfc=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},$S=function(a){this.codefont=a};$S.prototype.ngOnInit=function(){};$S.\u0275fac=function(a){return new (a||$S)(z(AM))};
$S.\u0275cmp=od({type:$S,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},decls:3,vars:5,consts:[[1,"type-m"],[4,"ngFor","ngForOf"],[3,"section"]],template:function(a,b){a&1&&(D(0,"div",0),T(1,"async"),P(2,LPa,2,1,"ng-container",1),F());a&2&&(Xf("codefont",V(1,3,b.codefont.codefont$)),w(2),C("ngForOf",b.content.plainSection))},dependencies:function(){return[Dv,aT,Kv]},styles:[sfc()],changeDetection:0});var aT=function(){};aT.prototype.ngOnInit=function(){};
aT.\u0275fac=function(a){return new (a||aT)};aT.\u0275cmp=od({type:aT,selectors:[["b-plain-format-section"]],inputs:{section:"section"},decls:3,vars:2,consts:[[3,"section",4,"ngIf"],[3,"section"]],template:function(a,b){a&1&&(I(0),P(1,MPa,1,1,"b-plain-format-quoted-section",0),P(2,NPa,1,1,"b-plain-format-unquoted-section",0),K());a&2&&(w(1),C("ngIf",b.section.isQuoted),w(1),C("ngIf",!b.section.isQuoted))},dependencies:function(){return[Ev,bT,cT]},encapsulation:2,changeDetection:0});
var bT=function(){this.showQuote=!1;tfc++;this.childId="plainFormatQuotedSection"+tfc};bT.prototype.ngOnInit=function(){};bT.prototype.ngOnChanges=function(){OPa(this)};var OPa=function(a){var b=a.child.nativeElement;a.showQuote?APa(b,a.section.content):zPa(b)};bT.\u0275fac=function(a){return new (a||bT)};
bT.\u0275cmp=od({type:bT,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&zg(rfc,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{section:"section"},features:[Fd],decls:5,vars:3,consts:[["class","showhide muted","tabindex","0","role","button","aria-expanded","false",3,"click",4,"ngIf"],["class","showhide muted","tabindex","0","role","button","aria-expanded","true",3,"click",4,"ngIf"],[1,"child",3,"id"],["child",""],["tabindex","0","role","button","aria-expanded",
"false",1,"showhide","muted",3,"click"],["tabindex","0","role","button","aria-expanded","true",1,"showhide","muted",3,"click"]],template:function(a,b){a&1&&(D(0,"div"),P(1,PPa,2,1,"a",0),P(2,QPa,2,1,"a",1),G(3,"div",2,3),F());a&2&&(w(1),C("ngIf",!b.showQuote),w(1),C("ngIf",b.showQuote),w(1),C("id",b.childId))},dependencies:[Ev],styles:[sfc()],changeDetection:0});var tfc=0,cT=function(a,b){this.dynamicComponents=a;this.viewContainerRef=b};cT.prototype.ngOnInit=function(){};
cT.prototype.ngOnChanges=function(){ofc(this.dynamicComponents);var a=this.child.nativeElement;APa(a,this.section.content);nfc(this.dynamicComponents,a,this.viewContainerRef)};cT.\u0275fac=function(a){return new (a||cT)(z(YS,2),z(wg))};
cT.\u0275cmp=od({type:cT,selectors:[["b-plain-format-unquoted-section"]],viewQuery:function(a,b){a&1&&zg(rfc,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{section:"section"},features:[lg([{provide:YS,useClass:YS}]),Fd],decls:2,vars:0,consts:[[1,"child"],["child",""]],template:function(a){a&1&&G(0,"div",0,1)},encapsulation:2,changeDetection:0});var dT=function(){};dT.prototype.ngOnInit=function(){};dT.\u0275fac=function(a){return new (a||dT)};
dT.\u0275cmp=od({type:dT,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment"},decls:3,vars:3,consts:[[4,"ngIf"],[3,"content"]],template:function(a,b){a&1&&(P(0,RPa,2,1,"ng-container",0),P(1,SPa,2,1,"ng-container",0),P(2,TPa,2,1,"ng-container",0));a&2&&(C("ngIf",b.formattedComment.literalFormat),w(1),C("ngIf",b.formattedComment.markdownFormat),w(1),C("ngIf",b.formattedComment.plainFormat))},dependencies:[Ev,SS,ZS,$S],encapsulation:2,changeDetection:0});var eT=function(a){this.internalArray_=m(a,0,eT.messageId)};W(eT,X);g=eT.prototype;g.getFormattingMode=function(){return Vi(this,1,0)};g.setFormattingMode=function(a){return rj(this,1,a)};g.getSource=function(){return Hi(this,2)};g.setSource=function(a){return qj(this,2,a)};g.hasSource=function(){return Ii(this,2)};g.getSourceOrUndefined=function(){return At(this,2)};g.getIssueId=function(){return dj(this,3)};g.setIssueId=function(a){return xj(this,3,a)};g.getIdPrefix=function(){return Hi(this,4)};
g.setIdPrefix=function(a){return qj(this,4,a)};g.setCurrentTrackerId=function(a){wj(this,7,a)};eT.messageId="b.FormatCommentRequest";var fT=function(a){this.internalArray_=m(a,0,fT.messageId)};W(fT,X);fT.prototype.getFormattedComment=function(){return Fi(this,Km,1)};fT.prototype.hasFormattedComment=function(){return Zi(this,Km,1)};fT.prototype.getMentionsList=function(){return Ji(this,TE,2)};fT.repeatedFields_=[2];fT.messageId="b.FormatCommentResponse";var gT=function(a,b){this.executor=a;this.currentTrackerId=b};gT.prototype.format=function(a){return"LITERAL"===a.formattingMode||""===a.comment.trim()?UPa(a):ufc(this,a).pipe(A(function(b){return b.hasFormattedComment()?Hva(b.getFormattedComment()):{}}))};
var vfc=function(a,b){if("LITERAL"===b.formattingMode||""===b.comment.trim())return(0,B.of)([]);var c=new eT;c.setSource(b.comment);var d;c.setIssueId(null!=(d=Xk(b.issueId))?d:0);rj(c,6,CTb[b.audience]);c.setFormattingMode(qya(b.formattingMode));c.setIdPrefix(b.idPrefix);return ufc(a,b).pipe(A(function(e){return e.getMentionsList().map(function(f){return zi(Fi(f,Bi,1))||""})}))},ufc=function(a,b){var c,d=(new eT).setSource(b.comment).setIssueId(null!=(c=Xk(b.issueId))?c:0);b=rj(d,6,CTb[b.audience]).setFormattingMode(qya(b.formattingMode)).setIdPrefix(b.idPrefix);
(c=a.currentTrackerId.getTrackerId())&&b.setCurrentTrackerId(c);return a.executor.post({url:"action/formatComment",body:b,responseConstructor:fT})};gT.\u0275fac=function(a){return new (a||gT)(n(tD),n(rF))};gT.\u0275prov=$c({token:gT,factory:gT.\u0275fac,providedIn:"root"});var hT=function(a){Y.call(this);var b=this;this.formatter=a;this.issueId="";this.audience="EXTERNAL_AUDIENCE";this.formattingMode="LITERAL";this.params$=new B.ReplaySubject(1);this.formattedResult$=this.params$.pipe(jf(200),zf(function(c){return b.formatter.format(c).pipe(wfc,gf(function(){var d={literalFormat:{content:Mqa(hh(c.comment))}};return(0,B.of)({formattedComment:d,isFallback:!0})}))}))};W(hT,Y);hT.\u0275dir=Y.\u0275dir;
hT.prototype.ngOnInit=function(){var a=this;this.comment$&&this.subscriptions.add(this.comment$.subscribe(function(b){a.params$.next({comment:b,issueId:a.issueId,audience:null!=a.audience?a.audience:"EXTERNAL_AUDIENCE",formattingMode:a.formattingMode,idPrefix:a.getIdPrefix()})}))};hT.prototype.ngOnChanges=function(){null!=this.comment&&this.params$.next({comment:this.comment,issueId:this.issueId,audience:null!=this.audience?this.audience:"EXTERNAL_AUDIENCE",formattingMode:this.formattingMode,idPrefix:this.getIdPrefix()})};
hT.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueId+"-draft"};hT.\u0275fac=function(a){return new (a||hT)(z(gT))};
hT.\u0275cmp=od({type:hT,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},features:[Jf,Fd],decls:2,vars:3,consts:[[4,"ngIf"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(P(0,VPa,3,5,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.formattedResult$))},dependencies:[Ev,dT,Kv],styles:["[_nghost-%COMP%]{display:block}.md-preview[_ngcontent-%COMP%]{min-height:32px;margin-top:16px}.md-preview[_ngcontent-%COMP%]{box-sizing:border-box;padding:8px;background-color:#f8f9fa;background-color:var(--c50);border-radius:4px}.md-preview.error[_ngcontent-%COMP%]{background-color:#fef4f3;background-color:var(--bad-bg-pale);box-shadow:inset 0 0 0 1px #ea4335;box-shadow:inset 0 0 0 1px var(--bad)}[_nghost-%COMP%]     .markdown-display pre, [_nghost-%COMP%]     .markdown-display code{background-color:#f1f3f4;background-color:var(--c100)}.bv2-note-container-note   [_nghost-%COMP%]   .md-preview[_ngcontent-%COMP%]{min-height:0;margin-top:0;padding:0;background-color:rgba(0,0,0,0)}/*# sourceMappingURL=live_preview.css.map */"],
changeDetection:0});var wfc=A(function(a){return{formattedComment:a,isFallback:!1}});var iT=function(a,b,c){Y.call(this);var d=this;this.prefs=a;this.flags=b;this.links=c;this.change=new Yu;this.checkedSubject=new B.BehaviorSubject(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.flags.textDisplayPreferences$.pipe(Af(this.destroyed$)).subscribe(function(e){d.currentTextDisplayPreferences=e});this.flags.commentDisplayOverride$.pipe(Af(this.destroyed$)).subscribe(function(e){d.currentCommentDisplayOverride=
e})};W(iT,Y);iT.\u0275dir=Y.\u0275dir;iT.prototype.ngOnInit=function(){this.checkedSubject.next("MARKDOWN"===this.initialValue)};iT.prototype.ngOnChanges=function(){null!=this.initialValue&&this.checkedSubject.next("MARKDOWN"===this.initialValue)};iT.prototype.save=function(a){a=Object.assign({},this.currentTextDisplayPreferences,a);this.prefs.save({textDisplayPreferences:a}).pipe(Af(this.destroyed$)).subscribe()};iT.\u0275fac=function(a){return new (a||iT)(z(iE),z(TS),z(yL))};
iT.\u0275cmp=od({type:iT,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},features:[Jf,Fd],decls:4,vars:4,consts:[["gmat-checkbox","","aria-label","Use markdown for this comment","matTooltip","Use Markdown for this comment",3,"checked","change"],["mat-icon-button","","matTooltip","Markdown Help","class","help small","aria-label","Markdown Help","target","_blank",3,"href","disableRipple",4,"ngIf"],["mat-icon-button","","matTooltip","Markdown Help","aria-label",
"Markdown Help","target","_blank",1,"help","small",3,"href","disableRipple"],["svgIcon","help-outline",1,"icon-xs"]],template:function(a,b){a&1&&(D(0,"mat-checkbox",0),L("change",function(d){var e=b.currentCommentDisplayOverride;d=d.checked?XTb:e?e:YTb;b.save({lastPublishMode:d});b.change.emit(Ki(d))}),T(1,"async"),Q(2," Markdown "),F(),P(3,WPa,2,2,"a",1));if(a&2){var c;C("checked",null!==(c=V(1,2,b.checkedSubject))&&void 0!==c?c:!1);w(3);C("ngIf",b.mdHelpLink)}},dependencies:[PK,Ev,qA,Fz,FB,Kv],
encapsulation:2,changeDetection:0});var jT=function(a,b){Y.call(this);var c=this;this.appEvents=b;this.init=new Yu;this.FormattingMode=IC;a.textDisplayPreferencesSubject$.pipe(Af(this.destroyed$)).subscribe(function(d){switch(d.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":c.formattingModeOverride="LITERAL";break;case "MARKDOWN_FORMATTING_MODE":c.formattingModeOverride="MARKDOWN";break;case "PLAIN_FORMATTING_MODE":c.formattingModeOverride="PLAIN";break;case void 0:c.formattingModeOverride=void 0;break;default:$h(d.commentDisplayOverride)}})};
W(jT,Y);jT.\u0275dir=Y.\u0275dir;jT.prototype.ngOnInit=function(){};jT.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.audience=this.issueAccessLevel&&"INTERNAL"===this.issueAccessLevel?"INTERNAL_AUDIENCE":"EXTERNAL_AUDIENCE";this.note.commentNumber&&(this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber)};jT.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next([this.issueId,this.note.commentNumber]);this.init.next(this)};
jT.\u0275fac=function(a){return new (a||jT)(z(iE),z(DF))};
jT.\u0275cmp=od({type:jT,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId"},outputs:{init:"init"},features:[Jf,Fd],decls:5,vars:2,consts:[[1,"bv2-note-container","bv2-event-note"],[1,"bv2-note-container-note"],[3,"formattedComment",4,"ngIf","ngIfElse"],["livePreview",""],[3,"formattedComment"],[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),
P(2,XPa,1,1,"b-formatted-comment-presenter",2),F()(),P(3,YPa,1,5,"ng-template",null,3,Eg));if(a&2){var c=N(4);w(2);if(a=b.note.formattedComment)a=b.note.formattedComment,a=!a||b.formattingModeOverride?!1:a.literalFormat&&"LITERAL"===b.formattingMode||a.plainFormat&&"PLAIN"===b.formattingMode||a.markdownFormat&&"MARKDOWN"===b.formattingMode?!0:!1;C("ngIf",a)("ngIfElse",c)}},dependencies:[Ev,dT,hT],styles:[".bv2-note-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.bv2-note-container-note[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0}"],
changeDetection:0});var xfc=new Ad("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});var yfc=new Ad("MatTabContent");var zfc=new Ad("MAT_TABS_CONFIG");Xg({passive:!0});ZPa(Th(function(){}));var Afc=new Ad("MatTabLabel"),Bfc=new Ad("MAT_TAB");Th(function(){});var Cfc=new Ad("MAT_TAB_GROUP");Rh(Sh(function(a){this._elementRef=a}),"primary");ZPa(Vh(Sh(Th(function(){}))));var Dfc=qh("translateTab",[th("center, void, left-origin-center, right-origin-center",sh({transform:"none"})),th("left",sh({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),th("right",sh({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),uh("* => left, * => right, left => center, right => center",rh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),uh("void => left-origin-center",[sh({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),
rh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),uh("void => right-origin-center",[sh({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),rh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])]);var Efc=function(a){return{animationDuration:a}},Ffc=function(a,b){return{value:a,params:b}},kT=function(a,b,c,d){Xw.call(this,a,b,d);this._host=c;this._leavingSub=this._centeringSub=B.Subscription.EMPTY};W(kT,Xw);
kT.prototype.ngOnInit=function(){var a=this;Xw.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(yf(this._host._isCenterPosition(this._host._position))).subscribe(function(b){b&&!a.hasAttached()&&a.attach(a._host._content)});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a.detach()})};kT.prototype.ngOnDestroy=function(){Xw.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};
kT.\u0275fac=function(a){return new (a||kT)(z(fu),z(wg),z(fd(function(){return lT})),z(Oh))};kT.\u0275dir=sd({type:kT,selectors:[["","matTabBodyHost",""]],features:[Jf]});
var mT=function(a,b,c){var d=this;this._elementRef=a;this._dir=b;this._dirChangeSubscription=B.Subscription.EMPTY;this._translateTabComplete=new B.Subject;this._onCentering=new Yu;this._beforeCentering=new Yu;this._afterLeavingCenter=new Yu;this._onCentered=new Yu(!0);this.animationDuration="500ms";this.preserveContent=!1;b&&(this._dirChangeSubscription=b.change.subscribe(function(e){d._computePositionAnimationState(e);c.markForCheck()}));this._translateTabComplete.pipe(mf(function(e,f){return e.fromState===
f.fromState&&e.toState===f.toState})).subscribe(function(e){d._isCenterPosition(e.toState)&&d._isCenterPosition(d._position)&&d._onCentered.emit();d._isCenterPosition(e.fromState)&&!d._isCenterPosition(d._position)&&d._afterLeavingCenter.emit()})};g=mT.prototype;g.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))};g.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();this._translateTabComplete.complete()};
g._onTranslateTabStarted=function(a){a=this._isCenterPosition(a.toState);this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};g._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"};g._isCenterPosition=function(a){return"center"==a||"left-origin-center"==a||"right-origin-center"==a};
g._computePositionAnimationState=function(a){a=void 0===a?this._getLayoutDirection():a;this._position=0>this._positionIndex?"ltr"==a?"left":"right":0<this._positionIndex?"ltr"==a?"right":"left":"center"};g._computePositionFromOrigin=function(a){var b=this._getLayoutDirection();return"ltr"==b&&0>=a||"rtl"==b&&0<a?"left-origin-center":"right-origin-center"};Qh.Object.defineProperties(mT.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});
mT.\u0275fac=function(a){return new (a||mT)(z(ae),z(py,8),z(xv))};mT.\u0275dir=sd({type:mT,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var lT=function(a,b,c){mT.call(this,a,b,c)};W(lT,mT);lT.\u0275dir=mT.\u0275dir;
lT.\u0275fac=function(a){return new (a||lT)(z(ae),z(py,8),z(xv))};
lT.\u0275cmp=od({type:lT,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&zg(Xw,5);if(a&2){var c;yg(c=Bg())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},features:[Jf],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(D(0,"div",0,1),L("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",
function(c){return b._translateTabComplete.next(c)}),P(2,aQa,0,0,"ng-template",2),F());a&2&&C("@translateTab",pg(3,Ffc,b._position,og(1,Efc,b.animationDuration)))},dependencies:[kT],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}\n'],
encapsulation:2,data:{animation:[Dfc]}});var nT=function(a){this.template=a};nT.\u0275fac=function(a){return new (a||nT)(z(vg))};nT.\u0275dir=sd({type:nT,selectors:[["","matTabContent",""]],features:[lg([{provide:yfc,useExisting:nT}])]});var Gfc=Xg({passive:!0}),oT=function(a,b,c,d,e,f,h){var k=this;this._elementRef=a;this._changeDetectorRef=b;this._viewportRuler=c;this._dir=d;this._ngZone=e;this._platform=f;this._animationMode=h;this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new B.Subject;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new B.Subject;this._disablePagination=!1;this._selectedIndex=0;this.selectFocusedIndex=new Yu;this.indexFocused=new Yu;
e.runOutsideAngular(function(){(0,B.fromEvent)(a.nativeElement,"mouseleave").pipe(Af(k._destroyed)).subscribe(function(){k._stopInterval()})})};g=oT.prototype;g.ngAfterViewInit=function(){var a=this;(0,B.fromEvent)(this._previousPaginator.nativeElement,"touchstart",Gfc).pipe(Af(this._destroyed)).subscribe(function(){a._handlePaginatorPress("before")});(0,B.fromEvent)(this._nextPaginator.nativeElement,"touchstart",Gfc).pipe(Af(this._destroyed)).subscribe(function(){a._handlePaginatorPress("after")})};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:(0,B.of)("ltr"),c=this._viewportRuler.change(150),d=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=hy(iy(ly(ky(new oy(this._items),this._getLayoutDirection()))),function(){return!1});my(this._keyManager,this._selectedIndex);this._ngZone.onStable.pipe(nf()).subscribe(d);(0,B.merge)(b,c,this._items.changes,this._itemsResized()).pipe(Af(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=
Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));d()})});ky(a._keyManager,a._getLayoutDirection())});this._keyManager.change.subscribe(function(e){a.indexFocused.emit(e);a._setTabFocus(e)})};
g._itemsResized=function(){var a=this;return"function"!==typeof ResizeObserver?B.EMPTY:this._items.changes.pipe(yf(this._items),zf(function(b){return new B.Observable(function(c){return a._ngZone.runOutsideAngular(function(){var d=new ResizeObserver(function(e){return c.next(e)});b.forEach(function(e){return d.observe(e.elementRef.nativeElement)});return function(){d.disconnect()}})})}),xf(1),cf(function(b){return b.some(function(c){return 0<c.contentRect.width&&0<c.contentRect.height})}))};
g.ngAfterContentChecked=function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck());this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck());this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())};
g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};g._handleKeydown=function(a){if(!eh(a))switch(a.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){var b=this._items.get(this.focusIndex);b&&!b.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(a))}break;default:this._keyManager.onKeydown(a)}};
g._onContentChanges=function(){var a=this,b=this._elementRef.nativeElement.textContent;b!==this._currentTextContent&&(this._currentTextContent=b||"",this._ngZone.run(function(){a.updatePagination();a._alignInkBarToSelectedTab();a._changeDetectorRef.markForCheck()}))};g.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};g._isValidIndex=function(a){return this._items?!!this._items.toArray()[a]:!0};
g._setTabFocus=function(a){this._showPaginationControls&&this._scrollToLabel(a);this._items&&this._items.length&&(this._items.toArray()[a].focus(),a=this._tabListContainer.nativeElement,a.scrollLeft="ltr"==this._getLayoutDirection()?0:a.scrollWidth-a.offsetWidth)};g._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"};
g._updateTabScrollPosition=function(){if(!this.disablePagination){var a=this.scrollDistance;this._tabList.nativeElement.style.transform="translateX("+Math.round("ltr"===this._getLayoutDirection()?-a:a)+"px)";if(this._platform.TRIDENT||this._platform.EDGE)this._tabListContainer.nativeElement.scrollLeft=0}};g._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+("before"==a?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
g._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
g._scrollToLabel=function(a){if(!this.disablePagination){var b=this._items?this._items.toArray()[a]:null;if(b){a=this._tabListContainer.nativeElement.offsetWidth;var c=b.elementRef.nativeElement;b=c.offsetLeft;var d=c.offsetWidth;"ltr"==this._getLayoutDirection()?c=b+d:(c=this._tabListInner.nativeElement.offsetWidth-b,b=c-d);d=this.scrollDistance;a=this.scrollDistance+a;b<d?this.scrollDistance-=d-b:c>a&&(this.scrollDistance+=Math.min(c-a,b-d))}}};
g._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var a=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;a||(this.scrollDistance=0);a!==this._showPaginationControls&&this._changeDetectorRef.markForCheck();this._showPaginationControls=a}};
g._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};g._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
g._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?Hfc(this._inkBar,a):this._inkBar.hide()};g._stopInterval=function(){this._stopScrolling.next()};
g._handlePaginatorPress=function(a,b){var c=this;b&&null!=b.button&&0!==b.button||(this._stopInterval(),(0,B.timer)(650,100).pipe(Af((0,B.merge)(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(0===d||d>=e)&&c._stopInterval()}))};
g._scrollTo=function(a){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var b=this._getMaxScrollDistance();this._scrollDistance=Math.max(0,Math.min(b,a));this._scrollDistanceChanged=!0;this._checkScrollingControls();return{maxScrollDistance:b,distance:this._scrollDistance}};
Qh.Object.defineProperties(oT.prototype,{disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=ah(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=dh(a);this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&my(this._keyManager,a))}},focusIndex:{configurable:!0,enumerable:!0,get:function(){return this._keyManager?this._keyManager.activeItemIndex:
0},set:function(a){this._isValidIndex(a)&&this.focusIndex!==a&&this._keyManager&&this._keyManager.setActiveItem(a)}},scrollDistance:{configurable:!0,enumerable:!0,get:function(){return this._scrollDistance},set:function(a){this._scrollTo(a)}}});oT.\u0275fac=function(a){return new (a||oT)(z(ae),z(xv),z(Dy),z(py,8),z(Df),z(Fw),z(iu,8))};oT.\u0275dir=sd({type:oT,inputs:{disablePagination:"disablePagination"}});var Ifc=Th(function(){}),pT=function(a){var b=Ifc.call(this)||this;b.elementRef=a;return b};W(pT,Ifc);pT.prototype.focus=function(){this.elementRef.nativeElement.focus()};pT.\u0275fac=function(a){return new (a||pT)(z(ae))};pT.\u0275dir=sd({type:pT,features:[Jf]});$Pa(pT);var qT=function(a,b,c,d,e,f,h){oT.call(this,a,b,c,d,e,f,h);this._disableRipple=!1};W(qT,oT);qT.prototype._itemSelected=function(a){a.preventDefault()};Qh.Object.defineProperties(qT.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=ah(a)}}});qT.\u0275fac=function(a){return new (a||qT)(z(ae),z(xv),z(Dy),z(py,8),z(Df),z(Fw),z(iu,8))};qT.\u0275dir=sd({type:qT,inputs:{disableRipple:"disableRipple"},features:[Jf]});var rT=function(a,b,c){Tw.call(this,a,b);this._closestTab=c};W(rT,Ww);rT.\u0275fac=function(a){return new (a||rT)(z(vg),z(wg),z(Bfc,8))};rT.\u0275dir=sd({type:rT,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[lg([{provide:Afc,useExisting:rT}]),Jf]});var Jfc=Th(function(){}),sT=function(a,b){var c=Jfc.call(this)||this;c._viewContainerRef=a;c._closestTabGroup=b;c.textLabel="";c._contentPortal=null;c._stateChanges=new B.Subject;c.position=null;c.origin=null;c.isActive=!1;return c};W(sT,Jfc);sT.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};sT.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
sT.prototype.ngOnInit=function(){this._contentPortal=new Tw(this._explicitContent||this._implicitContent,this._viewContainerRef)};sT.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};Qh.Object.defineProperties(sT.prototype,{content:{configurable:!0,enumerable:!0,get:function(){return this._contentPortal}}});sT.\u0275fac=function(a){return new (a||sT)(z(wg),z(Cfc,8))};
sT.\u0275dir=sd({type:sT,viewQuery:function(a,b){a&1&&zg(vg,7);if(a&2){var c;yg(c=Bg())&&(b._implicitContent=c.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[Jf,Fd]});var Kfc=0,Lfc=Rh(Sh(function(a){this._elementRef=a}),"primary"),tT=function(a,b,c,d){a=Lfc.call(this,a)||this;a._changeDetectorRef=b;a._animationMode=d;a._tabs=new Cg;a._indexToSelect=0;a._lastFocusedTabIndex=null;a._tabBodyWrapperHeight=0;a._tabsSubscription=B.Subscription.EMPTY;a._tabLabelSubscription=B.Subscription.EMPTY;a._dynamicHeight=!1;a._selectedIndex=null;a.headerPosition="above";a._disablePagination=!1;a._preserveContent=!1;a.selectedIndexChange=new Yu;a.focusChange=new Yu;a.animationDone=
new Yu;a.selectedTabChange=new Yu(!0);a._groupId=Kfc++;a.animationDuration=c&&c.animationDuration?c.animationDuration:"500ms";a.disablePagination=c&&null!=c.disablePagination?c.disablePagination:!1;a.dynamicHeight=c&&null!=c.dynamicHeight?c.dynamicHeight:!1;var e;a.contentTabIndex=null!=(e=null==c?void 0:c.contentTabIndex)?e:null;a.preserveContent=!(null==c||!c.preserveContent);return a};W(tT,Lfc);g=tT.prototype;
g.ngAfterContentChecked=function(){var a=this,b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){var c=null==this._selectedIndex;if(!c){this.selectedTabChange.emit(this._createChangeEvent(b));var d=this._tabBodyWrapper.nativeElement;d.style.minHeight=d.clientHeight+"px"}Promise.resolve().then(function(){a._tabs.forEach(function(e,f){return e.isActive=f===b});c||(a.selectedIndexChange.emit(b),a._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(e,
f){e.position=f-b;null==a._selectedIndex||0!=e.position||e.origin||(e.origin=b-a._selectedIndex)});this._selectedIndex!==b&&(this._selectedIndex=b,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())};
g.ngAfterContentInit=function(){var a=this;this._subscribeToAllTabChanges();this._subscribeToTabLabels();this._tabsSubscription=this._tabs.changes.subscribe(function(){var b=a._clampTabIndex(a._indexToSelect);if(b===a._selectedIndex){for(var c=a._tabs.toArray(),d,e=0;e<c.length;e++)if(c[e].isActive){a._indexToSelect=a._selectedIndex=e;a._lastFocusedTabIndex=null;d=c[e];break}!d&&c[b]&&Promise.resolve().then(function(){c[b].isActive=!0;a.selectedTabChange.emit(a._createChangeEvent(b))})}a._changeDetectorRef.markForCheck()})};
g._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(yf(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));xg(a._tabs)})};g.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe()};g.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};g._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};
g._createChangeEvent=function(a){var b=new Mfc;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};g._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=B.merge.apply(null,p(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};g._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};
g._getTabLabelId=function(a){return"mat-tab-label-"+this._groupId+"-"+a};g._getTabContentId=function(a){return"mat-tab-content-"+this._groupId+"-"+a};g._setTabBodyWrapperHeight=function(a){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var b=this._tabBodyWrapper.nativeElement;b.style.height=this._tabBodyWrapperHeight+"px";this._tabBodyWrapper.nativeElement.offsetHeight&&(b.style.height=a+"px")}};
g._removeTabBodyWrapperHeight=function(){var a=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=a.clientHeight;a.style.height="";this.animationDone.emit()};g._handleClick=function(a,b,c){b.focusIndex=c;a.disabled||(this.selectedIndex=c)};g._getTabIndex=function(a){var b,c=null!=(b=this._lastFocusedTabIndex)?b:this.selectedIndex;return a===c?0:-1};g._tabFocusChanged=function(a,b){a&&"mouse"!==a&&"touch"!==a&&(this._tabHeader.focusIndex=b)};
Qh.Object.defineProperties(tT.prototype,{dynamicHeight:{configurable:!0,enumerable:!0,get:function(){return this._dynamicHeight},set:function(a){this._dynamicHeight=ah(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=dh(a,null)}},animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a+"")?a+"ms":a}},contentTabIndex:{configurable:!0,
enumerable:!0,get:function(){return this._contentTabIndex},set:function(a){this._contentTabIndex=dh(a,null)}},disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=ah(a)}},preserveContent:{configurable:!0,enumerable:!0,get:function(){return this._preserveContent},set:function(a){this._preserveContent=ah(a)}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=
this._elementRef.nativeElement.classList;b.remove("mat-tabs-with-background","mat-background-"+this.backgroundColor);a&&b.add("mat-tabs-with-background","mat-background-"+a);this._backgroundColor=a}}});tT.\u0275fac=function(a){return new (a||tT)(z(ae),z(xv),z(zfc,8),z(iu,8))};
tT.\u0275dir=sd({type:tT,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Jf]});var Mfc=function(){};var Nfc=Number.MAX_SAFE_INTEGER,uT=function(a,b,c,d,e,f,h){oT.call(this,a,d,e,b,c,f,h);this._disableRipple=!1;this.color="primary"};W(uT,oT);uT.prototype._itemSelected=function(){};uT.prototype.ngAfterContentInit=function(){var a=this;this._items.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){Ofc(a)});oT.prototype.ngAfterContentInit.call(this)};
var Ofc=function(a){if(a._items){for(var b=a._items.toArray(),c=0;c<b.length;c++)if(b[c].active){a.selectedIndex=c;a._changeDetectorRef.markForCheck();a.tabPanel&&(a.tabPanel._activeTabId=b[c].id);return}a.selectedIndex=-1;a._inkBar.hide()}};uT.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};
Qh.Object.defineProperties(uT.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-tabs-with-background","mat-background-"+this.backgroundColor);a&&b.add("mat-tabs-with-background","mat-background-"+a);this._backgroundColor=a}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=ah(a)}}});
uT.\u0275fac=function(a){return new (a||uT)(z(ae),z(py,8),z(Df),z(xv),z(Dy),z(Fw),z(iu,8))};uT.\u0275dir=sd({type:uT,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[Jf]});
var Pfc=Vh(Sh(Th(function(){}))),vT=function(a,b,c,d,e,f){var h=Pfc.call(this)||this;h._tabNavBar=a;h.elementRef=b;h._focusMonitor=e;h._isActive=!1;h.id="mat-tab-link-"+Nfc--;h.rippleConfig=c||{};h.tabIndex=parseInt(d)||0;"NoopAnimations"===f&&(h.rippleConfig.animation={enterDuration:0,exitDuration:0});return h};W(vT,Pfc);g=vT.prototype;g.focus=function(){this.elementRef.nativeElement.focus()};g.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this.elementRef)};
g._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};g._handleKeydown=function(a){!this.disabled||32!==a.keyCode&&13!==a.keyCode?this._tabNavBar.tabPanel&&32===a.keyCode&&this.elementRef.nativeElement.click():a.preventDefault()};g._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?null==(a=this._tabNavBar.tabPanel)?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};
g._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};g._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};g._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};g._getTabIndex=function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex};
Qh.Object.defineProperties(vT.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a=ah(a);a!==this._isActive&&(this._isActive=a,Ofc(this._tabNavBar))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});vT.\u0275fac=function(a){return new (a||vT)(z(uT),z(ae),z(bz,8),Ud("tabindex"),z(Ow),z(iu,8))};
vT.\u0275dir=sd({type:vT,inputs:{active:"active",id:"id"},features:[Jf]});$Pa(vT);var wT=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._inkBarPositioner=c;this._animationMode=d},Hfc=function(a,b){a.show();a._ngZone.run(function(){a._ngZone.onStable.pipe(nf()).subscribe(function(){var c=a._inkBarPositioner(b),d=a._elementRef.nativeElement;d.style.left=c.left;d.style.width=c.width})})};wT.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"};wT.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"};
wT.\u0275fac=function(a){return new (a||wT)(z(ae),z(Df),z(xfc),z(iu,8))};wT.\u0275dir=sd({type:wT,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(a,b){a&2&&Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode)}});var Qfc=function(a){return{animationDuration:a}},Rfc=function(a,b){return{value:a,params:b}},xT=function(a,b,c,d){kT.call(this,a,b,c,d)};W(xT,kT);xT.\u0275fac=function(a){return new (a||xT)(z(fu),z(wg),z(fd(function(){return yT})),z(Oh))};xT.\u0275dir=sd({type:xT,selectors:[["","matTabBodyHost",""]],features:[Jf]});var yT=function(a,b,c){mT.call(this,a,b,c)};W(yT,mT);yT.\u0275dir=mT.\u0275dir;yT.\u0275fac=function(a){return new (a||yT)(z(ae),z(py,8),z(xv))};
yT.\u0275cmp=od({type:yT,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&zg(Xw,5);if(a&2){var c;yg(c=Bg())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-tab-body"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},features:[Jf],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(D(0,"div",0,1),L("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",
function(c){return b._translateTabComplete.next(c)}),P(2,bQa,0,0,"ng-template",2),F());a&2&&C("@translateTab",pg(3,Rfc,b._position,og(1,Qfc,b.animationDuration)))},dependencies:[xT],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[Dfc]}});var zT=function(){nT.apply(this,arguments)};W(zT,nT);zT.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(zT)))(b||zT)}}();zT.\u0275dir=sd({type:zT,selectors:[["","matTabContent",""]],features:[lg([{provide:yfc,useExisting:zT}]),Jf]});var AT=function(){return pT.apply(this,arguments)||this};W(AT,pT);AT.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(AT)))(b||AT)}}();AT.\u0275dir=sd({type:AT,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Nf("aria-disabled",!!b.disabled),Xf("mat-tab-disabled",b.disabled))},inputs:{disabled:"disabled"},features:[Jf]});var Sfc=["tabListContainer"],Tfc=["tabList"],Ufc=["tabListInner"],Vfc=["nextPaginator"],Wfc=["previousPaginator"],BT=function(a,b,c,d,e,f,h){qT.call(this,a,b,c,d,e,f,h)};W(BT,qT);BT.\u0275dir=qT.\u0275dir;BT.\u0275fac=function(a){return new (a||BT)(z(ae),z(xv),z(Dy),z(py,8),z(Df),z(Fw),z(iu,8))};
BT.\u0275cmp=od({type:BT,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&Ag(c,AT,4);if(a&2){var d;yg(d=Bg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(zg(wT,7),zg(Sfc,7),zg(Tfc,7),zg(Ufc,7),zg(Vfc,5),zg(Wfc,5));if(a&2){var c;yg(c=Bg())&&(b._inkBar=c.first);yg(c=Bg())&&(b._tabListContainer=c.first);yg(c=Bg())&&(b._tabList=c.first);yg(c=Bg())&&(b._tabListInner=c.first);yg(c=Bg())&&(b._nextPaginator=c.first);yg(c=Bg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-header"],
hostVars:5,hostBindings:function(a,b){a&2&&(Nf("mat-id-collision",null),Xf("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection()))},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Jf],ngContentSelectors:["*"],decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before",
"mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled",
"disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(a,b){a&1&&(eg(),D(0,"button",0,1),L("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),G(2,"div",2),F(),D(3,"div",3,4),L("keydown",function(c){return b._handleKeydown(c)}),D(5,"div",5,6),L("cdkObserveContent",function(){return b._onContentChanges()}),D(7,"div",7,8),fg(9),F(),G(10,"mat-ink-bar"),
F()(),D(11,"button",9,10),L("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),G(13,"div",2),F());a&2&&(Xf("mat-tab-header-pagination-disabled",b._disableScrollBefore),C("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),w(5),Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode),w(6),Xf("mat-tab-header-pagination-disabled",
b._disableScrollAfter),C("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[cz,Xx,wT],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],
encapsulation:2});var CT=function(){var a=sT.apply(this,arguments)||this;a._explicitContent=void 0;return a};W(CT,sT);CT.\u0275dir=sT.\u0275dir;Qh.Object.defineProperties(CT.prototype,{templateLabel:{configurable:!0,enumerable:!0,get:function(){return this._templateLabel},set:function(a){this._setTemplateLabelInput(a)}}});CT.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(CT)))(b||CT)}}();
CT.\u0275cmp=od({type:CT,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(Ag(c,Afc,5),Ag(c,yfc,7,vg));if(a&2){var d;yg(d=Bg())&&(b.templateLabel=d.first);yg(d=Bg())&&(b._explicitContent=d.first)}},hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[lg([{provide:Bfc,useExisting:CT}]),Jf],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),P(0,cQa,1,0,"ng-template"))},encapsulation:2});var Xfc=["tabBodyWrapper"],Yfc=["tabHeader"],DT=function(a,b,c,d){return tT.call(this,a,b,c,d)||this};W(DT,tT);DT.\u0275dir=tT.\u0275dir;DT.\u0275fac=function(a){return new (a||DT)(z(ae),z(xv),z(zfc,8),z(iu,8))};
DT.\u0275cmp=od({type:DT,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&Ag(c,CT,5);if(a&2){var d;yg(d=Bg())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(zg(Xfc,5),zg(Yfc,5));if(a&2){var c;yg(c=Bg())&&(b._tabBodyWrapper=c.first);yg(c=Bg())&&(b._tabHeader=c.first)}},hostAttrs:["ngSkipHydration","",1,"mat-tab-group"],hostVars:5,hostBindings:function(a,b){a&2&&(Nf("mat-id-collision",null),Xf("mat-tab-group-dynamic-height",b.dynamicHeight)("mat-tab-group-inverted-header","below"===
b.headerPosition))},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[lg([{provide:Cfc,useExisting:DT}]),Jf],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",
4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",
""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(a,b){a&1&&(D(0,"mat-tab-header",0,1),L("indexFocused",function(c){return b._focusChanged(c)})("selectFocusedIndex",function(c){return b.selectedIndex=c}),P(2,gQa,5,15,"div",2),F(),D(3,"div",3,4),P(5,hQa,1,11,"mat-tab-body",5),F());a&2&&(C("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",
b.disablePagination),w(2),C("ngForOf",b._tabs),w(1),Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode),w(2),C("ngForOf",b._tabs))},dependencies:[Cv,Dv,Ev,Xw,cz,Qw,AT,yT,BT],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],
encapsulation:2});var ET=function(){rT.apply(this,arguments)};W(ET,rT);ET.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(ET)))(b||ET)}}();ET.\u0275dir=sd({type:ET,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[lg([{provide:Afc,useExisting:ET}]),Jf]});var Zfc=["tabListContainer"],$fc=["tabList"],agc=["tabListInner"],bgc=["nextPaginator"],cgc=["previousPaginator"],FT=function(a,b,c,d,e,f,h){uT.call(this,a,b,c,d,e,f,h)};W(FT,uT);FT.\u0275dir=uT.\u0275dir;FT.\u0275fac=function(a){return new (a||FT)(z(ae),z(py,8),z(Df),z(xv),z(Dy),z(Fw),z(iu,8))};
FT.\u0275cmp=od({type:FT,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&Ag(c,GT,5);if(a&2){var d;yg(d=Bg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(zg(wT,7),zg(Zfc,7),zg($fc,7),zg(agc,7),zg(bgc,5),zg(cgc,5));if(a&2){var c;yg(c=Bg())&&(b._inkBar=c.first);yg(c=Bg())&&(b._tabListContainer=c.first);yg(c=Bg())&&(b._tabList=c.first);yg(c=Bg())&&(b._tabListInner=c.first);yg(c=Bg())&&(b._nextPaginator=c.first);yg(c=Bg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-nav-bar",
"mat-tab-header"],hostVars:12,hostBindings:function(a,b){a&2&&(Nf("role",b._getRole())("mat-id-collision",null),Xf("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())("mat-primary","warn"!==b.color&&"accent"!==b.color)("mat-accent","accent"===b.color)("mat-warn","warn"===b.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[Jf],attrs:["mat-tab-nav-bar",""],ngContentSelectors:["*"],decls:14,vars:10,
consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple",
"","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(a,b){a&1&&(eg(),D(0,"button",0,1),L("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),G(2,"div",2),F(),D(3,"div",3,4),L("keydown",function(c){return b._handleKeydown(c)}),
D(5,"div",5,6),L("cdkObserveContent",function(){return b._onContentChanges()}),D(7,"div",7,8),fg(9),F(),G(10,"mat-ink-bar"),F()(),D(11,"button",9,10),L("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),G(13,"div",2),F());a&2&&(Xf("mat-tab-header-pagination-disabled",b._disableScrollBefore),C("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||
null),w(5),Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode),w(6),Xf("mat-tab-header-pagination-disabled",b._disableScrollAfter),C("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[cz,Xx,wT],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],
encapsulation:2});var GT=function(a,b,c,d,e,f,h,k){a=vT.call(this,a,b,e,f,h,k)||this;a._tabLinkRipple=new bNb(a,c,b,d);eNb(a._tabLinkRipple,b.nativeElement);return a};W(GT,vT);GT.prototype.ngOnDestroy=function(){vT.prototype.ngOnDestroy.call(this);this._tabLinkRipple._removeTriggerEvents()};GT.\u0275fac=function(a){return new (a||GT)(z(FT),z(ae),z(Df),z(Fw),z(bz,8),Ud("tabindex"),z(Ow),z(iu,8))};
GT.\u0275dir=sd({type:GT,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&L("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Nf("aria-controls",b._getAriaControls())("aria-current",b._getAriaCurrent())("aria-disabled",b.disabled)("aria-selected",b._getAriaSelected())("id",b.id)("tabIndex",b._getTabIndex())("role",b._getRole()),Xf("mat-tab-disabled",
b.disabled)("mat-tab-label-active",b.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[Jf]});var HT=function(){};HT.\u0275fac=function(a){return new (a||HT)};HT.\u0275mod=qd({type:HT});HT.\u0275inj=ad({imports:[Sv,Ty,Yw,ez,Yx,ay,Ty]});var IT=function(){};IT.\u0275fac=function(a){return new (a||IT)};IT.\u0275mod=qd({type:IT});IT.\u0275inj=ad({imports:[SK,RF,aD,Sy,zM,rL,cP,HT,SB,FC,IO,KO,CK]});var dgc=["textarea"],egc=["hiddenInput"],fgc=["autocompleteUnderlay"],ggc=Symbol(),JT=function(a,b,c){Y.call(this);this.codefont=a;this.activeSession=b;this.window=c;this.textareaClass=[];this.disabled=!1;this.contentChange=new Yu;this.focus=new Yu;this.blur=new Yu;this.autoResize=new Yu;this.manualResize$=new Yu;this.autocompleteUserName="";this.scrollPosition=this.autocompleteLeft=this.autocompleteTop=0;this.taggingInProgress=!1;this.wordInfo={wordStart:0,wordEnd:0,word:""};this.textAreaLastAtSymbolLocation=
this.textAreaLastCursorLocation=0};W(JT,Y);JT.\u0275dir=Y.\u0275dir;JT.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?lp(a).classList.add("codefont"):lp(a).classList.remove("codefont")}))};JT.prototype.ngOnDestroy=function(){Y.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};JT.prototype.setValue=function(a){lp(this).value!==a&&(lp(this).value=a,this.manualResize$.next())};
JT.prototype.getValue=function(){return lp(this).value};var lp=function(a){return a.textareaRef.nativeElement},mp=function(a){var b;return null==(b=a.hiddenInputRef)?void 0:b.nativeElement},iQa=function(a){return a.activeSession.isInternalSession()&&"INTERNAL_AUDIENCE"===a.audience},hgc=function(a){var b;return null==(b=a.autocompleteUnderlayRef)?void 0:b.nativeElement},igc=function(a){var b=lp(a).selectionStart;a.wordInfo=a.findWord(a.getValue(),b)};
JT.prototype.findWord=function(a,b){var c=a.slice(0,b).search(/(?!(.*\s))/);b+=a.slice(b).search(/(\s|$)/);a=a.slice(c,b);return{wordStart:c,wordEnd:b,word:a}};
var jgc=function(a){return"ArrowDown"===a.key||"ArrowUp"===a.key||"Enter"===a.key||"Escape"===a.key||"Tab"===a.key},kgc=function(a){var b=hgc(a);a=lp(a);b&&a&&(b.scrollTop=a.scrollTop)},jQa=function(a){a.taggingInProgress=!1;a.autocompleteUserName=""},kQa=function(a,b){b=void 0===b?!1:b;var c=lp(a),d=lp(a).value,e,f=null==(e=mp(a))?void 0:e.value;e=null==f?void 0:f.length;igc(a);var h=a.wordInfo.word,k=d.slice(0,a.textAreaLastAtSymbolLocation+1);d=h.slice(1)===f?d.slice(a.textAreaLastAtSymbolLocation+
f.length+1):d.slice(a.textAreaLastCursorLocation);e&&(a.textAreaLastCursorLocation=k.length+e);b?(b=k+f+" "+d,a.textAreaLastCursorLocation+=1):b=k+f+d;c.value=b};JT.prototype[ggc]=function(){return this.findWord};JT.\u0275fac=function(a){return new (a||JT)(z(AM),z(Us),z(qF))};
JT.\u0275cmp=od({type:JT,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(zg(dgc,7),zg(egc,5),zg(fgc,5));if(a&2){var c;yg(c=Bg())&&(b.textareaRef=c.first);yg(c=Bg())&&(b.hiddenInputRef=c.first);yg(c=Bg())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&L("click",function(){jQa(b)},!1,hfa)("keyup",function(c){var d=c.key;c=c.target.classList.contains("autocomplete-hidden-input");"Escape"===d&&c&&(jQa(b),lp(b).focus())},!1,hfa)},inputs:{textareaClass:"textareaClass",
disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",audience:"audience"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},features:[Jf],decls:7,vars:11,consts:[[1,"pos-rel","comment-box-container",3,"keydown"],["commentBoxContainer",""],["aria-label","Comment box - add your comment","cdkFocusInitial","",3,"autoResize","ngClass","disabled","input","focus","blur","onAutoResize","keydown","keyup","scroll"],["textarea",""],[1,"autocomplete-input-container"],
["type","text","bContactAutocomplete","SINGLE","class","autocomplete-hidden-input","tabIndex","-1","aria-hidden","true",3,"value","change","keyup",4,"ngIf"],["class","autocomplete-underlay","contentEditable","true",4,"ngIf"],["type","text","bContactAutocomplete","SINGLE","tabIndex","-1","aria-hidden","true",1,"autocomplete-hidden-input",3,"value","change","keyup"],["hiddenInput",""],["contentEditable","true",1,"autocomplete-underlay"],["autocompleteUnderlay",""]],template:function(a,b){a&1&&(D(0,
"div",0,1),L("keydown",function(c){"Escape"===c.key&&(jQa(b),lp(b).focus())}),D(2,"textarea",2,3),L("input",function(){b.contentChange.emit(b.getValue())})("focus",function(c){return b.focus.emit(c)})("blur",function(c){return b.blur.emit(c)})("onAutoResize",function(c){return b.autoResize.emit(c)})("keydown",function(c){if(iQa(b)&&jgc(c)&&b.taggingInProgress){null==c||c.preventDefault();var d;null==(d=mp(b))||d.focus();d=c.code;var e=c.key,f=c.keyCode,h=c.which;c=new KeyboardEvent("keydown",{charCode:c.charCode,
metaKey:c.metaKey,type:c.type,code:"Enter"===e?"Tab":d,key:"Enter"===e?"Tab":e,keyCode:"Enter"===e?9:f,which:"Enter"===e?9:h});var k;null==(k=mp(b))||k.dispatchEvent(c)}})("keyup",function(c){if(iQa(b)){var d=lp(b),e=null==d?void 0:d.value;b.textAreaLastCursorLocation=d.selectionStart;b.textAreaLastAtSymbolLocation=e.slice(0,b.textAreaLastCursorLocation).lastIndexOf("@");if(!jgc(c)){c=c.target;b.scrollPosition=c.scrollTop;igc(b);var f=b.wordInfo.word;d="@"===f;e=f.startsWith("@");var h=f.slice(f.length-
1).match(/[a-z]/i);f=sza.test(f.slice(1));if(d||e&&h&&!f){c=c.selectionStart;if(!b.taggingInProgress){if(d=hgc(b)){d.textContent=b.getValue();e=hgc(b);h=lp(b);f="height width font-family margin line-height padding border".split(" ");if(e&&h){h=b.window.getComputedStyle(h);f=l(f);for(var k=f.next();!k.done;k=f.next()){k=k.value;var q=h.getPropertyValue(k);e.style.setProperty(k,q)}}kgc(b)}d=null==d?void 0:d.firstChild;e=null==d?void 0:d.textContent;d&&e&&c&&(e=new Range,e.setStart(d,c),e.setEnd(d,c),
c=document.createElement("span"),e.deleteContents(),e.insertNode(c),d=c.getBoundingClientRect(),b.autocompleteTop=d.top,b.autocompleteLeft=d.left,c.remove())}b.taggingInProgress=!0}else b.taggingInProgress=!1;if(b.taggingInProgress){b.autocompleteUserName=b.wordInfo.word.slice(1);var u;null==(u=mp(b))||u.dispatchEvent(new KeyboardEvent("keydown"))}}}})("scroll",function(){return kgc(b)}),F(),D(4,"span",4),P(5,lQa,2,1,"input",5),F(),P(6,mQa,2,0,"div",6),F());a&2&&(w(2),C("autoResize",b.manualResize$)("ngClass",
b.textareaClass)("disabled",b.disabled),Nf("placeholder",b.placeholder)("id",b.idForAriaLabel),w(2),Wf("top",b.autocompleteTop+"px")("left",b.autocompleteLeft+"px"),w(1),C("ngIf",b.taggingInProgress),w(1),C("ngIf",iQa(b)))},dependencies:[Cv,Ev,mR,OS],styles:["textarea.banned-words-warning[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-gfx)}/*# sourceMappingURL=comment_draft_textarea.css.map */"],changeDetection:0});var lgc=function(a){return{"draft-markdown":a}},KT=function(a,b,c){Y.call(this);var d=this;this.cdr=a;this.ref=b;this.events=c;this.previewDisabled=!1;this.selectedIndex=0;this.onCommentSubmitted=function(){d.matTabGroup.selectedIndex=0};this.render=function(){var e=d.matTabGroup;e._tabHeader&&e._tabHeader._alignInkBarToSelectedTab();d.cdr.markForCheck()}};W(KT,Y);KT.\u0275dir=Y.\u0275dir;KT.prototype.ngOnInit=function(){this.subscriptions.add(this.events.commentSubmitted.subscribe(this.onCommentSubmitted))};
KT.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+56+"px"};KT.\u0275fac=function(a){return new (a||KT)(z(yD,2),z(ae),z(DF))};
KT.\u0275cmp=od({type:KT,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&zg(DT,7);if(a&2){var c;yg(c=Bg())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},features:[lg([yD]),Jf],decls:5,vars:5,consts:[[1,"small","no-border",3,"dynamicHeight","selectedIndex","animationDone","selectedIndexChange"],["label","Edit"],[4,"ngTemplateOutlet"],["label","Preview",3,"disabled"]],template:function(a,b){a&1&&(D(0,"mat-tab-group",
0),L("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),D(1,"mat-tab",1),P(2,nQa,1,0,"ng-container",2),F(),D(3,"mat-tab",3),P(4,oQa,1,0,"ng-container",2),F()());a&2&&(C("dynamicHeight",!1)("selectedIndex",b.selectedIndex),w(2),C("ngTemplateOutlet",b.editArea),w(1),C("disabled",b.previewDisabled),w(1),C("ngTemplateOutlet",b.previewArea))},dependencies:[Jv,DT,CT],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});var LT=function(a,b,c,d){Y.call(this);this.codefont=a;this.ngZone=b;this.prefs=c;this.hotkeys=d;this.isMarkdown$=this.prefs.lastPublishMode$.pipe(A(function(e){return e===XTb}));this.idPrefix="b-draft";this.content="";this.textareaClass=[];this.disabled=!1;this.audience="EXTERNAL_AUDIENCE";this.init=new Yu;this.contentChange=new Yu;this.focus=new Yu;this.blur=new Yu;this.autoResize=new Yu;this.onSubmit=new Yu};W(LT,Y);LT.\u0275dir=Y.\u0275dir;
LT.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
LT.prototype.ngAfterViewInit=function(){this.init.emit(this);this.init.complete();this.commentDraftTextarea&&(this.commentDraftTextarea.setValue(this.content),this.subscriptions.add(this.commentDraftTextarea.contentChange.subscribe(this.contentChange)),this.subscriptions.add(this.commentDraftTextarea.focus.subscribe(this.focus)),this.subscriptions.add(this.commentDraftTextarea.blur.subscribe(this.blur)),this.subscriptions.add(this.commentDraftTextarea.autoResize.subscribe(this.autoResize)))};
var mgc=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&lp(a.commentDraftTextarea).focus()})};LT.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};LT.\u0275fac=function(a){return new (a||LT)(z(AM),z(Df),z(iE),z(qE))};
LT.\u0275cmp=od({type:LT,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(zg(JT,5),zg(KT,5));if(a&2){var c;yg(c=Bg())&&(b.commentDraftTextarea=c.first);yg(c=Bg())&&(b.commentDraftTabGroup=c.first)}},inputs:{content:"content",textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",audience:"audience",idForAriaLabel:"idForAriaLabel"},outputs:{init:"init",contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize",onSubmit:"onSubmit"},features:[Jf,
Fd],decls:2,vars:10,consts:[[3,"textareaClass","ngClass","disabled","placeholder","idForAriaLabel","audience","autoResize","keydown.control.enter","keydown.meta.enter"]],template:function(a,b){a&1&&(D(0,"b-comment-draft-textarea",0),L("autoResize",function(c){return b.synchronizeHeight(c)})("keydown.control.enter",function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()})("keydown.meta.enter",function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()}),T(1,"async"),F());a&2&&C("textareaClass",b.textareaClass)("ngClass",
og(8,lgc,V(1,6,b.isMarkdown$)))("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)},dependencies:[Cv,JT,Kv],styles:["body   [_nghost-%COMP%]     textarea{resize:none;border-color:var(--text-secondary)}body   [_nghost-%COMP%]     textarea, body   [_nghost-%COMP%]     .autocomplete-underlay{max-height:40vh;min-height:130px;margin:0;width:100%;display:block;margin-bottom:8px}body   [_nghost-%COMP%]     .comment-box-container:focus-within textarea:not(:focus){padding:4px 1px 1px 7px;border:2px solid;border-color:#1a73e8;border-color:var(--primary)}body   [_nghost-%COMP%]     .autocomplete-underlay{width:100%;height:100%;position:absolute;top:0;left:0;z-index:-2;box-sizing:border-box;visibility:hidden;overflow-y:scroll;white-space:pre-line;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-input-container{position:fixed;z-index:-1;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-hidden-input{position:fixed}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input{height:18px !important;line-height:18px !important;border:0 !important;margin:0 !important;padding:0 !important;opacity:0 !important}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input:focus{outline:none !important;border:0 !important;padding:0 !important}body   [_nghost-%COMP%]     textarea.codefont, body   [_nghost-%COMP%]     .draft-markdown textarea{font-family:WorkAroundWebKitAndMozilla,monospace}.good[_nghost-%COMP%]     textarea:focus{border-color:#34a853;border-color:var(--good)}.warn[_nghost-%COMP%]     textarea:focus{border-color:#fcc934;border-color:var(--warn)}.bad[_nghost-%COMP%]     textarea:focus{border-color:#ea4335;border-color:var(--bad)}/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});var MT=function(){};MT.\u0275fac=function(a){return new (a||MT)};MT.\u0275mod=qd({type:MT});MT.\u0275inj=ad({imports:[SK,aD,nR,Dw,Sy,zM,rL,cP,HT,SB,FC]});var NT=function(a,b,c){Y.call(this);this.issueDetailsBrain=a;this.userResources=b;this.analytics=c;this.isPlusOneText=!1;this.onSubmitComment=new Yu};W(NT,Y);NT.\u0275dir=Y.\u0275dir;NT.prototype.ngOnChanges=function(a){a.isPlusOneText&&this.isPlusOneText&&this.analytics.trackEvent(xp.EDIT_ISSUE,"view","commentAndVoteBanner")};
NT.prototype.onClick=function(){var a=Gk(this.issueDetailsBrain.id$);this.onSubmitComment.emit();null!=a&&(yYb(this.userResources,a,{voted:!0,starred:null,notificationSubscription:null}).pipe(Af(this.destroyed$)).subscribe(),this.analytics.trackEvent(xp.EDIT_ISSUE,"click","commentAndVote"))};NT.\u0275fac=function(a){return new (a||NT)(z(CI),z(oH),z(zH))};
NT.\u0275cmp=od({type:NT,selectors:[["b-plus-one-comment-callout"]],inputs:{isPlusOneText:"isPlusOneText"},outputs:{onSubmitComment:"onSubmitComment"},features:[Jf,Fd],decls:1,vars:1,consts:[["class","callout",4,"ngIf"],[1,"callout"],["svgIcon","info",1,"info-icon",3,"matTooltip"],["role","alert",1,"content"],[1,"actions"],["mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&P(0,pQa,7,1,"div",0);a&2&&C("ngIf",b.isPlusOneText)},dependencies:[Ev,qA,Ez,FB],styles:[".callout[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;min-height:36px;padding:8px;background-color:#e8f0fe;background-color:var(--primary-c50)}.callout[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.info-icon[_ngcontent-%COMP%]{margin-left:8px;margin-right:16px}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]});var ngc=["commentBoxContainer"],ogc=[[["","warning",""]],[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],pgc=function(a){return{focused:a}},qgc=function(a,b){return[a,b]},OT=function(a,b,c,d,e){this.analytics=a;this.hotkeys=b;this.activeSession=c;this.appEvents=d;this.currentTracker=e;this.MARKDOWN="MARKDOWN";this.commentChange=new Yu;this.warn=this.disabled=this.supportsPreview=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.showRestrictionOptions=!0;this.isPlusOneCalloutEnabled=
!1;this.onPlusOneTextEntered=new Yu;this.onChange=new Yu;this.onFocusEvent=new Yu;this.onSubmit=new Yu;this.onRestrict=new Yu;this.focused=!1;this.commentRebound$=new B.ReplaySubject(1);this.destroyed$=new B.ReplaySubject(1);this.createRestrictedResourcesComponentWhitelist=this.activeSession.getCreateRestrictedSubresourcesComponentWhitelist()};g=OT.prototype;g.ngOnDestroy=function(){var a;null==(a=this.comment)||M4b(a);this.destroyed$.next()};
g.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(Af(this.destroyed$)).subscribe(function(b){osb(a,b)});this.appEvents.scrollToCommentBox.pipe(Af(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};g.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};g.getRestrictedLabel=function(){var a,b,c=null!=(b=null==(a=this.judgementForNewContent)?void 0:a.severity)?b:"NONE_DETECTED";return Dva(c)};
g.isRestricted=function(){var a,b;return"NONE_DETECTED"!==(null!=(b=null==(a=this.judgementForNewContent)?void 0:a.severity)?b:"NONE_DETECTED")};var osb=function(a,b){(b=void 0===b?"":b)&&a.analytics.trackEvent("commentBox","takeFocus",b);a.scrollIntoView();var c;null==(c=a.commentDraftComponent)||mgc(c)};g=OT.prototype;g.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};g.addUpload=function(a){this.comment&&this.comment.uploads.push(a)};
g.removeUpload=function(a){this.comment&&za(this.comment.uploads,a)};g.scrollIntoView=function(){var a;null==(a=this.commentBoxContainer)||a.nativeElement.scrollIntoView({behavior:"smooth"})};g.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};g.onBlur=function(){this.focused=!1};g.onKeydown=function(a){this.hotkeys.isEnabled()&&("Enter"!==a.key||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a))};OT.\u0275fac=function(a){return new (a||OT)(z(zH),z(qE),z(Us),z(DF),z(jG))};
OT.\u0275cmp=od({type:OT,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(zg(LT,5),zg(ngc,5),zg(rS,5));if(a&2){var c;yg(c=Bg())&&(b.commentDraftComponent=c.first);yg(c=Bg())&&(b.commentBoxContainer=c.first);yg(c=Bg())&&(b.attachmentUploader=c.first)}},inputs:{issueId:"issueId",comment:"comment",supportsPreview:"supportsPreview",componentId:"componentId",placeholder:"placeholder",judgementForNewContent:"judgementForNewContent",audience:"audience",disabled:"disabled",warn:"warn",showToolbar:"showToolbar",
idForAriaLabel:"idForAriaLabel",attachmentsDisabled:"attachmentsDisabled",showRestrictionOptions:"showRestrictionOptions",isPlusOneCalloutEnabled:"isPlusOneCalloutEnabled"},outputs:{commentChange:"commentChange",onPlusOneTextEntered:"onPlusOneTextEntered",onChange:"onChange",onFocusEvent:"onFocusEvent",onSubmit:"onSubmit",onRestrict:"onRestrict"},features:[Fd],ngContentSelectors:["[warning]","[recaptchaContainer]","[additionalToolbarItems]"],decls:10,vars:16,consts:[[1,"bv2-comment-box-container",
3,"ngClass"],["commentBoxContainer",""],[1,"bv2-comment-textarea-wrapper"],[3,"content","placeholder","disabled","textareaClass","audience","idForAriaLabel","contentChange","focus","blur","keydown","paste"],[4,"ngIf"],[3,"uploads","onUploadCancel","onUploadComplete"],["class","bv2-comment-toolbar",4,"ngIf"],[3,"isPlusOneText","onSubmitComment"],[1,"bv2-comment-toolbar"],[3,"disabled","onSelect"],[3,"disabled","onPickDoc","onCloneBlob",4,"ngIf"],["class","goog-inline-block vertical-centered restriction-button",
4,"ngIf"],[3,"disabled","onPickDoc","onCloneBlob"],[1,"goog-inline-block","vertical-centered","restriction-button"],[4,"ngIf","ngIfElse"],["restrictedFlatButton",""],["mat-icon-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",3,"disabled","click"],["svgIcon","restricted"],["mat-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",1,"button-with-text",3,"click"],[3,"comment","issueId","audience",
"formattingMode"]],template:function(a,b){a&1&&(eg(ogc),D(0,"div",0,1)(2,"div",2)(3,"b-comment-draft",3),L("contentChange",function(c){if(b.comment){var d=b.comment.value;b.comment.value=c;c!==d&&(b.onChange&&(b.commentChange.emit(b.comment),b.onChange.emit()),b.onPlusOneTextEntered&&b.onPlusOneTextEntered.emit("+1"===c.trim()))}})("focus",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("keydown",function(c){return b.onKeydown(c)})("paste",function(c){if(c&&null!=c.clipboardData){var d=
c.clipboardData;for(var e=!1,f=!1,h=0,k=0;k<d.items.length;k++)"string"===d.items[k].kind&&"text/plain"===d.items[k].type?e=!0:"file"===d.items[k].kind&&(f=!0,h=k);f&&d.items&&d.files?(f=d.files[0],h=d.items[h].type.replace(/^.*[/]/,""),e?(d=d.getData("text/plain"),d=d.replace(/^.*[\\\/]/,"")):d=(new Date).toString()+"."+h,d={file:f,filename:d}):d=void 0;d&&(c.preventDefault(),c=new File([d.file],d.filename,{type:d.file.type}),b.uploadFile(c))}}),F(),P(4,qQa,2,1,"ng-container",4),F(),fg(5),D(6,"b-attachment-uploader",
5),L("onUploadCancel",function(c){b.removeUpload(c);return b.onChange.emit()})("onUploadComplete",function(){return b.onChange.emit()}),F(),fg(7,1),P(8,vQa,6,5,"div",6),F(),P(9,wQa,2,4,"div",4));a&2&&(C("ngClass",og(11,pgc,b.focused)),w(3),C("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",pg(13,qgc,b.disabled?"bv2-disabled":"",b.warn?"banned-words-warning":""))("audience",b.audience)("idForAriaLabel",b.idForAriaLabel),w(1),C("ngIf",b.isPlusOneCalloutEnabled),
w(2),C("uploads",b.comment.uploads),w(2),C("ngIf",b.showToolbar),w(1),C("ngIf",b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN))},dependencies:[Cv,Ev,qA,LT,FB,hT,NS,nS,rS,Ez,NT,Kv],encapsulation:2});var rgc=["captchaContainer"],PT=function(a,b,c,d,e){this.ngZone=a;this.window=b;this.darkmodeService=c;this.appEvents=d;this.analytics=e;this.onUpdate=new Yu;this.destroyed$=new B.ReplaySubject(1)};PT.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(Af(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
PT.prototype.ngAfterViewInit=function(){var a=this;this.onUpdate.emit("");var b;null==(b=this.window.recaptchaAsync)||b.then(function(c){var d=a.darkmodeService.clientDarkmodeSubject.getValue();a.widgetId=c.render(a.captchaContainer.nativeElement,{sitekey:"6Ley9F4iAAAAAIwZf9W4ujzph90roM2zldPodcjv",callback:function(e){a.ngZone.run(function(){a.onUpdate.emit(e);a.analytics.trackEvent(xp.RECAPTCHA_TOKEN,"create")})},"expired-callback":function(){a.ngZone.run(function(){a.onUpdate.emit("");a.analytics.trackEvent(xp.RECAPTCHA_TOKEN,
"expire")})},theme:d?"dark":"light"})})};PT.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};PT.prototype.reset=function(){var a=this;if(void 0!==this.widgetId){var b;null==(b=this.window.recaptchaAsync)||b.then(function(c){c.reset(a.widgetId)})}};PT.\u0275fac=function(a){return new (a||PT)(z(Df),z(qF),z(YK),z(DF),z(zH))};
PT.\u0275cmp=od({type:PT,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&zg(rgc,5);if(a&2){var c;yg(c=Bg())&&(b.captchaContainer=c.first)}},outputs:{onUpdate:"onUpdate"},decls:2,vars:0,consts:[["captchaContainer",""]],template:function(a){a&1&&G(0,"div",null,0)},encapsulation:2});var sgc=["dialog"],QT=function(a,b,c,d){Y.call(this);this.matDialog=a;this.activeSession=b;this.hotkeys=c;this.save=new Yu;this.close=new Yu;this.externalWarnings=[];this.issueEditBuilder=null;this.FocusableField=tgc;this.enableRecaptcha=$C(this.activeSession,"enableRecaptcha")&&$C(this.activeSession,"enableBulkEditCaptchaUi");this.comment=new $N;var e;this.comment.formattingMode=Ki(null==(e=jE(d).textDisplayPreferences)?void 0:e.lastPublishMode);this.issueStates=SWb};W(QT,Y);QT.\u0275dir=Y.\u0275dir;
QT.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new ncc(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&xQa(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});Pz(this.matDialogRef).pipe(Af(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};QT.\u0275fac=function(a){return new (a||QT)(z(Uz),z(Us),z(qE),z(iE))};
QT.\u0275cmp=od({type:QT,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&zg(sgc,5);if(a&2){var c;yg(c=Bg())&&(b.dialog=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},features:[Jf],decls:2,vars:0,consts:[["dialog",""],["statusForm","ngForm"],["mat-dialog-title",""],["mat-dialog-content",""],["class","bv2-modal-form",4,"ngIf"],["class","flex-kids-x justify-flex-end",4,"ngIf"],["mat-dialog-actions",""],["type","button","mat-button","",1,"gmat-button",
"medium",3,"mat-dialog-close"],["type","submit","color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close","disabled"],[1,"bv2-modal-form"],["type","button","mat-button","",1,"gmat-button","medium","primary","status-select",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["statusMenu",""],["mat-menu-item","","type","button",3,"disabled","click"],["mat-menu-item","","type","button",3,"disabled","click",4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],
["class","bv2-modal-text-field",4,"ngSwitchDefault"],["placeholder","Add a comment (optional)",3,"comment","showToolbar","onSubmit"],[1,"float-clear"],["class","bv2-external-component-modal-warning",4,"ngIf"],[1,"bv2-modal-text-field"],["for","bv2-state-modal-assignee",1,"bv2-top-field-label"],["class","bv2-multiple-user-chip",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["for","bv2-state-modal-verifier",1,"bv2-top-field-label"],["class","bv2-multiple-user-chip",3,"bv2-invalid-multiple-user-chip",4,"ngSwitchCase"],
[1,"bv2-multiple-user-chip"],["title","Clear assignees",3,"click"],["type","text","name","assignee",3,"ngModel","bContactAutocomplete","ngModelChange"],["title","Clear verifiers",3,"click"],["type","text","name","verifier",3,"ngModel","required","bContactAutocomplete","ngModelChange"],["for","bv2-state-modal-issue-id",1,"bv2-top-field-label"],["type","text","name","duplicateOf",3,"ngModel","ngModelChange"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"],[1,"flex-kids-x",
"justify-flex-end"],[3,"onUpdate"]],template:function(a){a&1&&P(0,NQa,14,5,"ng-template",null,0,Eg)},dependencies:[Dv,Ev,Fv,Gv,Hv,Vz,Wz,Xz,Yz,XO,pw,Tg,hw,iw,zw,ow,mw,Ez,bD,AB,yB,zB,mR,OT,PT],encapsulation:2});var tgc={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};var RT=function(a,b,c,d){this.documentationLinks=a;this.userAccess=b;this.errorHandler=c;this.data=d;this.issuesToFlag=[];this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1;this.issuesToFlag=d.issuesToFlag};RT.prototype.ngOnInit=function(){ugc(this,this.issuesToFlag)};
var ugc=function(a,b){0>=b.length?a.permissionsCheckComplete=!0:uG(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);ugc(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};RT.\u0275fac=function(a){return new (a||RT)(z(yL),z(sG),z(XF),z(Tz))};
RT.\u0275cmp=od({type:RT,selectors:[["b-bulk-flag-as-spam-dialog"]],decls:19,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-bulk-flag-as-spam-prompt"],["target","_blank",1,"keep-underline",3,"href"],[1,"bv2-bulk-flag-as-spam-warning"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close","",1,"gmat-button","medium"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","dialog-primary-action",3,"disabled","mat-dialog-close"],[4,"ngFor","ngForOf"]],
template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Flag Issues as Spam"),F(),D(2,"div",1)(3,"div",2)(4,"p"),Q(5),D(6,"a",3),Q(7,"see here"),F(),Q(8,". "),F(),D(9,"p"),Q(10," This operation cannot be undone in bulk. "),F()(),D(11,"div",4),P(12,RQa,3,2,"div",5),P(13,TQa,5,2,"div",5),F()(),D(14,"div",6)(15,"button",7),Q(16," Close "),F(),D(17,"button",8),Q(18," Flag as Spam "),F()());a&2&&(w(5),S(" Flagging these ",b.issuesToFlag.length," issues as spam will cause them to drop out of regular search results, and they will be deleted after 30 days. For more information on remediating spam at scale, "),
w(1),C("href",S1b(b.documentationLinks),re),w(6),C("ngIf",!b.permissionsCheckComplete),w(1),C("ngIf",b.permissionsCheckComplete&&0<b.protectedIssues.length),w(4),C("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[Dv,Ev,Ez,Vz,Wz,Xz,Yz],encapsulation:2});var ST=function(a,b){this.cdr=a;this.dialogRef=b;this.component=null};ST.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};ST.prototype.save=function(){this.dialogRef.close(this.component)};ST.prototype.cancel=function(){this.dialogRef.close()};ST.\u0275fac=function(a){return new (a||ST)(z(yD,2),z(Rz))};
ST.\u0275cmp=od({type:ST,selectors:[["b-bulk-move-dialog"]],features:[lg([yD])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"bv2-bulk-move-warning"],[3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Change Component"),F(),D(2,"mat-dialog-content")(3,"p"),Q(4,"Choose new component for these issues."),F(),D(5,"p",1),
Q(6," Warning: If these issues have custom fields, their values will be lost if you move the issues outside the component subtree that defines those custom fields. "),F(),D(7,"b-team-component-picker",2),L("selectedComponentChange",function(c){return b.updateComponent(null!==c&&void 0!==c?c:null)}),F()(),D(8,"mat-dialog-actions")(9,"button",3),L("click",function(){return b.cancel()}),Q(10," Cancel "),F(),D(11,"button",4),L("click",function(){return b.save()}),Q(12," Save "),F()());a&2&&(w(7),C("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),w(4),C("disabled",null==b.component))},dependencies:[Ez,Wz,Xz,Yz,TR],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}"]});var TT=function(){this.renderPanel=!0;this.sloEditCommit=new Yu;this.closePicker=new Yu};TT.prototype.ngOnChanges=function(a){if(a.sloEditTime){var b;this.currentPickerDate=null!=(b=KBa(this.sloEditTime))?b:void 0}};TT.prototype.setDate=function(a){this.currentPickerDate=a};TT.\u0275fac=function(a){return new (a||TT)};
TT.\u0275cmp=od({type:TT,selectors:[["slo-edit-date-time-picker"]],inputs:{sloEditTime:"sloEditTime",sloStatus:"sloStatus",renderPanel:"renderPanel"},outputs:{sloEditCommit:"sloEditCommit",closePicker:"closePicker"},features:[lg([yD]),Fd],decls:2,vars:2,consts:[[3,"clickOutside"],[3,"renderPanel","date","dateSelectionChange","saveClicked","cancelClicked"]],template:function(a,b){a&1&&(D(0,"div",0),L("clickOutside",function(){b.closePicker.emit()}),D(1,"b-date-time-picker-content",1),L("dateSelectionChange",
function(c){return b.setDate(c)})("saveClicked",function(){var c=(c=b.currentPickerDate)?{seconds:c.getTime()/1E3,nanos:0}:null;b.sloEditCommit.emit({date:null!=c?c:null});b.closePicker.emit()})("cancelClicked",function(){b.closePicker.emit()}),F()());a&2&&(w(1),C("renderPanel",b.renderPanel)("date",b.currentPickerDate))},dependencies:[yM,RL],styles:["b-date-time-picker-content[_ngcontent-%COMP%]{right:10px;z-index:100}[_nghost-%COMP%]     .mat-form-field{width:9rem;margin-left:1rem}[_nghost-%COMP%]     .mat-form-field .mat-form-field-underline{bottom:0}/*# sourceMappingURL=slo_edit_date_time_picker.css.map */"],
changeDetection:0});var UT=function(a,b){this.data=a;this.dialogRef=b;this.commitEvent=void 0;this.fieldDisplayName=a.fieldDisplayName};UT.prototype.close=function(){this.dialogRef.close(this.commitEvent)};UT.\u0275fac=function(a){return new (a||UT)(z(Tz),z(Rz))};
UT.\u0275cmp=od({type:UT,selectors:[["b-edit-calendar-modal"]],decls:3,vars:2,consts:[["mat-dialog-title",""],[3,"renderPanel","sloEditCommit","closePicker"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"slo-edit-date-time-picker",1),L("sloEditCommit",function(c){b.commitEvent=c})("closePicker",function(){return b.close()}),F());a&2&&(w(1),S("Edit ",b.fieldDisplayName,""),w(1),C("renderPanel",!1))},dependencies:[TT],encapsulation:2});var VT=function(a,b){this.data=a;this.dialogRef=b;this.fieldDisplayName=this.data.fieldDisplayName;this.effortSpec=this.data.effortSpec;this.numericEstimatedEffort="";this.effortSpecName=this.effortSpec.name;this.currentEnumLabel="";this.enumSpec=this.effortSpec.enumSpec;var c,d;this.enumOptions=null!=(d=null==(c=this.enumSpec)?void 0:c.options)?d:[];this.isEnumSpec=!!this.enumSpec;var e;this.allowedLabels=(null!=(e=this.enumOptions)?e:[]).map(function(f){return f.label})};
VT.prototype.enableSubmit=function(){return this.isEnumSpec&&""!==this.currentEnumLabel||!this.isEnumSpec};VT.prototype.cancel=function(){this.dialogRef.close(void 0)};VT.prototype.save=function(){if(this.enumSpec)var a={estimate:this.currentEnumLabel};else a=this.numericEstimatedEffort,a={estimate:0===a.length||isNaN(Number(a))?"":String(Number(a))};this.dialogRef.close(a)};VT.\u0275fac=function(a){return new (a||VT)(z(Tz),z(Rz))};
VT.\u0275cmp=od({type:VT,selectors:[["b-edit-estimated-effort-modal"]],decls:9,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["class","bv2-top-field-label",4,"ngIf"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"],["matInput","",3,"ngModel","ngModelChange","keypress"],[1,"bv2-top-field-label"],[3,"value","includeEmptyOption","options","valueChange"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),P(2,UQa,5,2,"mat-dialog-content",1),P(3,
VQa,4,4,"div",2),D(4,"mat-dialog-actions")(5,"button",3),L("click",function(){return b.cancel()}),Q(6," Cancel "),F(),D(7,"button",4),L("click",function(){return b.save()}),Q(8," Save "),F()());a&2&&(w(1),S("Edit ",b.fieldDisplayName,""),w(1),C("ngIf",!b.isEnumSpec),w(1),C("ngIf",b.isEnumSpec),w(4),C("disabled",!b.enableSubmit()))},dependencies:[Ev,Tg,hw,ow,Ez,Wz,Xz,Yz,jA,hA,nA,iM],encapsulation:2});var WT=function(a,b){this.data=a;this.dialogRef=b;this.fieldDisplayName=this.removeItems=this.addItems="";this.fieldDisplayName=a.fieldDisplayName};WT.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};WT.prototype.close=function(){this.dialogRef.close()};WT.\u0275fac=function(a){return new (a||WT)(z(Tz),z(Rz))};
WT.\u0275cmp=od({type:WT,selectors:[["b-edit-item-modal"]],decls:20,vars:6,consts:[["mat-dialog-title",""],[1,"bv2-modal-form"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"click"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"mat-dialog-content")(3,"p"),Q(4),F(),D(5,"div",1)(6,"mat-form-field")(7,"mat-label"),Q(8),F(),D(9,"input",2),L("ngModelChange",function(c){return b.addItems=c}),F()(),
G(10,"br"),D(11,"mat-form-field")(12,"mat-label"),Q(13),F(),D(14,"input",2),L("ngModelChange",function(c){return b.removeItems=c}),F()()()(),D(15,"mat-dialog-actions")(16,"button",3),L("click",function(){return b.close()}),Q(17," Cancel "),F(),D(18,"button",4),L("click",function(){return b.save()}),Q(19," Save "),F()());a&2&&(w(1),S("Edit ",b.fieldDisplayName,""),w(3),S("Enter ",b.fieldDisplayName," to add or remove"),w(4),S(" ",b.fieldDisplayName," to Add "),w(1),C("ngModel",b.addItems),w(4),S(" ",
b.fieldDisplayName," to Remove "),w(1),C("ngModel",b.removeItems))},dependencies:[Tg,hw,ow,Ez,jA,hA,nA,Wz,Xz,Yz],encapsulation:2});var vgc=["hotlistFilterInput"],wgc=["hotlistCreate"],xgc=["hotlistApply"],ygc=["hotlistLoad"],zgc=["menuitem"],XT=function(a,b,c,d,e,f){Y.call(this);this.liveAnnouncer=a;this.butterBar=b;this.userAccess=c;this.analytics=d;this.activeSession=e;this.cdr=f;this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new Yu;this.onApply=new Yu;this.onLoad=new Yu;this.hotlistEditAcls={};this.validHotlistIds=new Set;this.pendingChanges=this.canLoad=this.canCreate=!1;this.oldSelectedHotlistMap=
{};this.selectedHotlistMap={};this.shouldShowHotlist={};this.filterText="";this.focusedRowIndex=-1;this.isAnonymous=this.activeSession.isAnonymous()};W(XT,Y);XT.\u0275dir=Y.\u0275dir;XT.prototype.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(Af(this.destroyed$)).subscribe(function(){(0,B.timer)(0).pipe(Af(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;null==(c=this.trigger)||c.menuClosed.pipe(Af(this.destroyed$)).subscribe(function(){Agc(a)})};
XT.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};XT.prototype.ngOnChanges=function(){Bgc(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;YT(this)};
var Bgc=function(a){var b={};uca(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=l(a.choices),d=c.next();!d.done;d=c.next())d=d.value,b[d.hotlistId]=0,a.validHotlistIds.add(d.hotlistId);if(a.selectedHotlistIds){c=a.selectedHotlistIds.length;d=l(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=l(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=l(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=l(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Ka(a.choices,function(h,k){var q=b[h.hotlistId],u=b[k.hotlistId];return q>u?-1:q<u?1:oq(h.name,k.name)})}}};XT.prototype.open=function(){this.trigger.openMenu();this.cdr.detectChanges()};XT.prototype.close=function(){this.trigger.closeMenu()};
XT.prototype.hasAclToEdit=function(a){var b=this;if(rca(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];uG(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var WQa=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return void 0===a?!0:!a},qp=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=null===c?!0:!c;cRa(a);a.close()},cRa=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},YT=function(a){for(var b=a.filterText,c=!1,d=l(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=ka(e.name.toLowerCase(),b.toLowerCase()),
e.name===b&&(c=!0);a.canCreate=!(!b||c);a.canLoad=fo(ui(b))&&!!b&&!!a.onLoad},Agc=function(a){a.trigger.menuOpen||(Bgc(a),a.filterText="",YT(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},Cgc=function(a){var b=a.selectedHotlistIds;return b&&1===b.length?"Hotlists ("+maa(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
XT.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",YT(this),this.onCreate.emit({name:b,successCallback:function(c){qp(a,c)},errorCallback:function(){a.butterBar.showWarning("Failed to create hotlist "+b)}}))};
XT.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){this.analytics.trackEvent("hotlistPicker","loadHotlist");WF(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";YT(this);for(var c=qi(b),d=l(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){qp(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){qp(a,f)},errorCallback:function(){a.butterBar.showWarning("Failed to load hotlist "+b)}})}};
var XQa=function(a,b){WQa(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.focusFilterBox(),a.pendingChanges=!ki(a.oldSelectedHotlistMap,a.selectedHotlistMap))},Igc=function(a,b){b=void 0===b?0:b;var c=ZT(a).filter(function(e,f){return f>a.focusedRowIndex&&a.shouldShowHotlist[Number(e.id.substring(13))]}),d=a.choices.length;c.length?(b=b>=c.length?c[c.length-1]:c[b],a.focusedRowIndex=ua(ZT(a),b),Dgc(a),Egc(a,b)):a.focusedRowIndex<d&&a.canCreate?Fgc(a,d):a.focusedRowIndex<
d+1&&a.canLoad?Ggc(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&Hgc(a,d)},ZT=function(a){return a.menuItems.map(function(b){return b.nativeElement})},Jgc=function(a,b){b=void 0===b?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)Fgc(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)Ggc(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)Fgc(a,a.choices.length);else{var c=ZT(a).filter(function(d,e){return e<a.focusedRowIndex&&a.shouldShowHotlist[Number(d.id.substring(13))]});
c.length?(b=b>=c.length?c[0]:c[c.length-b-1],a.focusedRowIndex=ua(ZT(a),b),Dgc(a),Egc(a,b)):(a.focusedRowIndex=-1,Egc(a,null))}},Egc=function(a,b){a.filterElement&&pE(a.filterElement.nativeElement,b);a.focusFilterBox()},Fgc=function(a,b){a.focusedRowIndex=b;pE(a.filterElement.nativeElement,null);var c;null==(c=a.createElement)||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},Ggc=function(a,b){a.focusedRowIndex=b+1;pE(a.filterElement.nativeElement,null);var c;
null==(c=a.loadElement)||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},Hgc=function(a,b){a.focusedRowIndex=b+2;pE(a.filterElement.nativeElement,null);var c;null==(c=a.applyElement)||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},Dgc=function(a){-1===a.focusedRowIndex||a.focusedRowIndex>=a.choices.length||(a=ZT(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},YQa=function(a){return null==
a?"mixed":a.toString()},ZQa=function(a){return null==a?"indeterminate":a?"checked":"unchecked"};XT.\u0275fac=function(a){return new (a||XT)(z(Zx),z(VF),z(sG),z(zH),z(Us),z(yD,2))};
XT.\u0275cmp=od({type:XT,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(zg(zB,5),zg(vgc,5),zg(wgc,5),zg(xgc,5),zg(ygc,5),zg(zgc,5));if(a&2){var c;yg(c=Bg())&&(b.trigger=c.first);yg(c=Bg())&&(b.filterElement=c.first);yg(c=Bg())&&(b.createElement=c.first);yg(c=Bg())&&(b.applyElement=c.first);yg(c=Bg())&&(b.loadElement=c.first);yg(c=Bg())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},features:[lg([yD]),Jf,Fd],decls:13,vars:4,consts:[["mat-button","","id","hotlist-picker-button","aria-describedby","hotlist-picker-label-text",1,"gmat-button","medium","primary",3,"matMenuTriggerFor","disabled"],["id","hotlist-picker-label-text"],["name","arrow-dropdown","size","small"],["hotlistMenu","matMenu"],[1,"menu"],[1,"menu-control"],[1,"hotlist-filter"],["mat-input","","type","text","id","hotlist-filter-input","maxlength","255","role","combobox","aria-autocomplete","list",
"aria-expanded","true","placeholder","Type to filter your starred hotlists","autocomplete","off",3,"ngModel","ngModelChange","mousedown","blur","click","keydown"],["hotlistFilterInput",""],["matMenuContent",""],["role","listbox",1,"multi-edit-scrollarea"],["hotlistChoices",""],["class","multi-edit-menuitem","role","option",3,"display","focused","title","click",4,"ngFor","ngForOf"],["mat-menu-item","","matTooltip","Type a new name to create a hotlist","matTooltipPosition","right","title","Type a new hotlist name above and then click here to create a new hotlist.",
1,"hotlist-create",3,"disabled","click","keydown.enter"],["hotlistCreate",""],[4,"ngIf"],["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"focused","click","keydown.enter",4,"ngIf"],["mat-menu-item","","class","hotlist-apply","id","hotlist-apply","aria-label","apply",3,"focused","click","keydown.enter",4,"ngIf"],["role","option",1,"multi-edit-menuitem",3,"title","click"],["menuitem",""],["role","checkbox",3,"state","disabled","click"],
["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"click","keydown.enter"],["hotlistLoad",""],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"click","keydown.enter"],["hotlistApply",""]],template:function(a,b){a&1&&(D(0,"button",0)(1,"span",1),Q(2),F(),G(3,"b-icon",2),F(),D(4,"mat-menu",null,3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"input",7,8),L("ngModelChange",function(d){return b.filterText=d})("ngModelChange",
function(){return YT(b)})("mousedown",function(d){return d.stopPropagation()})("blur",function(){return Agc(b)})("click",function(d){return d.stopPropagation()})("keydown",function(d){d.stopImmediatePropagation();"Escape"===d.key?b.close():"ArrowDown"===d.key?(Igc(b),d.preventDefault()):"ArrowUp"===d.key?(Jgc(b),d.preventDefault()):"PageUp"===d.key?Jgc(b,11):"PageDown"===d.key?Igc(b,11):" "===d.key?-1===b.focusedRowIndex||b.focusedRowIndex>=b.choices.length||(XQa(b,b.choices[b.focusedRowIndex]),d.preventDefault()):
"Enter"===d.key&&(b.focusedRowIndex===b.choices.length?b.createHotlist():b.focusedRowIndex===b.choices.length+1?b.loadHotlist():b.pendingChanges?(b.close(),cRa(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&qp(b,b.choices[b.focusedRowIndex]))}),F()()(),G(11,"mat-divider"),P(12,eRa,11,8,"ng-template",9),F()());if(a&2){var c=N(5);C("matMenuTriggerFor",c)("disabled",b.isAnonymous);w(2);jg(Cgc(b));w(7);C("ngModel",b.filterText)}},dependencies:[Dv,
Ev,AB,yB,zB,xB,Ez,Tg,hw,Aw,ow,dz,FB,dD,bD],styles:[".menu[_ngcontent-%COMP%]{max-height:400px;width:280px;overflow-x:hidden;overflow-y:hidden}.menu-control[_ngcontent-%COMP%]{line-height:19px;padding:0 6px}.menu-control[_ngcontent-%COMP%]   .hotlist-filter[_ngcontent-%COMP%]{padding:8px 0}.menu-control[_ngcontent-%COMP%]   .hotlist-filter[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:29px;line-height:16px;padding-left:9px;vertical-align:top;width:100%;box-sizing:border-box;border-radius:4px;border:1px solid #dadce0}.multi-edit-scrollarea[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:246px;overflow-y:scroll;overflow-x:hidden}.multi-edit-scrollarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{border:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem[_ngcontent-%COMP%]{border-width:0;line-height:19px;margin:0 6px;padding:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem.focused[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.mat-menu-item.focused[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg);border:0}/*# sourceMappingURL=hotlist_picker.css.map */"]});var Kgc=Cn(function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.aggregatedData)?void 0:b.voteCount)?c:0},Dn),$T=function(a){this.issueFridge=a;this.componentIdToRecentCanonicals=new Map};
$T.prototype.search=function(a,b,c,d){var e=this;if(!a.trim())return(0,B.of)(void 0);if("canonical"===b){b=Lgc(this,a,d);d=Mgc(this,d).pipe(zf(function(h){return e.issueFridge.watchMany({filter:fRa(a,rp("-id",null==c?void 0:c.id),rp("status","open"),rp("componentid",h)),pageSize:10})}),A(function(h){return null==h?void 0:h.results}));var f=this.issueFridge.watchMany({filter:fRa(a,rp("-id",null==c?void 0:c.id)),pageSize:10,sort:"modified_time:desc"}).pipe(A(function(h){return null==h?void 0:h.results}),
yf([]));return(0,B.combineLatest)([b,d,f]).pipe(A(function(h){return Sj(h.flat(),function(k){return k.issueId})}),A(function(h){return h.slice(0,10)}),A(function(h){return Kgc(h,"desc")}))}return this.issueFridge.watchMany({filter:a,pageSize:10}).pipe(A(function(h){return null==h?void 0:h.results}))};
var Lgc=function(a,b,c){return c?Ngc(a,c).pipe(zf(function(d){return 0===d.length?(0,B.of)([]):a.issueFridge.watchMany({filter:fRa(b,rp("id",d),rp("status","open")),pageSize:10}).pipe(A(function(e){return null==e?void 0:e.results}))})):(0,B.of)([])},Ngc=function(a,b){if(!b)return(0,B.of)([]);if(a.componentIdToRecentCanonicals.has(b))return a.componentIdToRecentCanonicals.get(b);var c=a.issueFridge.watchMany({filter:fRa(rp("componentid",b,!0),rp("status","duplicate")),sort:"modified_time:desc",pageSize:250}).pipe(A(function(d){return null==
d?void 0:d.results}),A(function(d){return d.map(function(e){return e.snapshot[0].duplicateOfIssueId})}),A(function(d){return Tj(d.filter(cl))}),wf({bufferSize:1,refCount:!0}));a.componentIdToRecentCanonicals.set(b,c);return c},Mgc=function(a,b){return b?Ngc(a,b).pipe(zf(function(c){return a.issueFridge.watchSet(c)}),A(function(c){return c.map(function(d){return d.snapshot[0].componentId})}),A(function(c){return[b].concat(p(c.filter(cl)))}),A(Tj),wf({bufferSize:1,refCount:!0})):(0,B.of)([])};
$T.\u0275fac=function(a){return new (a||$T)(n(GH))};$T.\u0275prov=$c({token:$T,factory:$T.\u0275fac,providedIn:"root"});var aU=function(){};aU.\u0275fac=function(a){return new (a||aU)};aU.\u0275cmp=od({type:aU,selectors:[["b-async-data-placeholder"]],inputs:{isReady:"isReady"},ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","animated-loading-bar",4,"ngIf"],[4,"ngIf"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(eg(),P(0,gRa,1,0,"div",0),P(1,hRa,2,0,"ng-container",1));a&2&&(C("ngIf",!b.isReady),w(1),C("ngIf",b.isReady))},dependencies:[Ev],encapsulation:2});var bU=function(){this.mode="datetime";this.isDataLoaded=!1};bU.prototype.ngOnChanges=function(){var a;if(null==(a=this.issue)?0:a.aggregatedData){var b;this.createdTime=(null==(b=this.issue)?NaN:b.aggregatedData.createdTimeMicros)/1E3}this.isDataLoaded=null!=this.issue};bU.\u0275fac=function(a){return new (a||bU)};
bU.\u0275cmp=od({type:bU,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue",mode:"mode"},features:[Fd],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[3,"mode","timestamp",4,"ngIf","ngIfElse"],["noData",""],[3,"mode","timestamp"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,iRa,1,2,"b-formatted-date-time",1),F(),P(2,jRa,1,0,"ng-template",null,2,Eg));if(a&2){var c=N(3);C("isReady",b.isDataLoaded);w(1);C("ngIf",b.createdTime)("ngIfElse",c)}},dependencies:[aU,Ev,
PL],encapsulation:2,changeDetection:0});var cU=function(a,b,c,d){Y.call(this);this.activeSession=a;this.currentTracker=b;this.clipboard=c;this.butterBar=d;this.componentId=0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.showCopyOptions=this.enableHotkeys=!0;this.isOpen=!1;this.HOTKEYS=BD};W(cU,Y);cU.\u0275dir=Y.\u0275dir;cU.prototype.copyIssueId=function(){this.clipboard.copy(this.issueId);WF(this.butterBar,"Issue ID copied",2E3)};var sp=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};
cU.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};cU.prototype.getAppBaseUrl=function(a){return kG(this.currentTracker,this.issueId,void 0,void 0===a?!1:a)};cU.\u0275fac=function(a){return new (a||cU)(z(Us),z(jG),z(nP),z(VF))};
cU.\u0275cmp=od({type:cU,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&zg(cM,5);if(a&2){var c;yg(c=Bg())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled",enableHotkeys:"enableHotkeys",showCopyOptions:"showCopyOptions"},features:[Jf],decls:4,vars:6,consts:[["matTooltip","Copy issue ID","matTooltipShowDelay","750","disableRipple","true",1,"unstyled","square-right","issue-id",3,"click"],
["svgIcon","copy","class","icon-xs invisible",4,"ngIf"],[4,"ngIf"],["svgIcon","copy",1,"icon-xs","invisible"],["matTooltip","Show links for this issue","onedevPopupPanelTrigger","","disableRipple","true",1,"unstyled","square-left",3,"onedevPopupPanelTriggerFor","hotkey","hotkeyEnabled","onHotkey","onedevPopupPanelTriggerOpened","onedevPopupPanelTriggerClosed","click"],["trigger","onedevPopupPanelTrigger"],["svgIcon","arrow-dropdown",1,"icon-xs"],["role","region"],["contentPanel","onedevPopupPanel"],
["class","issue-id-picker-popup","cdkTrapFocus","",3,"cdkTrapFocusAutoCapture",4,"ngIf"],["cdkTrapFocus","",1,"issue-id-picker-popup",3,"cdkTrapFocusAutoCapture"],[1,"id-details-row"],[3,"htmlFor"],["cdkFocusInitial","","type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"hotkey","hotkeyEnabled","onHotkey","focus"],["issueIdField",""],["class","muted shortcut",4,"ngIf"],["mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"gmat-button","copy",
3,"hotkey","hotkeyEnabled","onHotkey","click"],["svgIcon","copy",1,"icon-s"],["class","id-details-row",4,"ngIf"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"hotkey","hotkeyEnabled","onHotkey","focus"],["issueUrlField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"gmat-button","copy",3,"hotkey","hotkeyEnabled","onHotkey","click"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"hotkey","hotkeyEnabled",
"onHotkey","focus"],["urlAndTitleField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,"gmat-button","copy",3,"hotkey","hotkeyEnabled","onHotkey","click"],[1,"muted","shortcut"],["type","text","readonly","","id","id-details-issue-shortlink-field",1,"value",3,"hotkey","hotkeyEnabled","onHotkey","focus"],["issueShortlinkField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy shortlink","matTooltip","Copy shortlink",1,"gmat-button","copy",3,
"hotkey","hotkeyEnabled","onHotkey","click"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",1,"value",3,"hotkey","hotkeyEnabled","onHotkey","focus"],["issueEmailField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"gmat-button","copy",3,"hotkey","hotkeyEnabled","onHotkey","click"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",
1,"value",3,"hotkey","hotkeyEnabled","onHotkey","focus"],["todoCommentField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"gmat-button","copy",3,"hotkey","hotkeyEnabled","onHotkey","click"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){return b.copyIssueId()}),Q(1),P(2,kRa,1,0,"mat-icon",1),F(),P(3,wRa,7,5,"ng-container",2));a&2&&(Xf("square-right",b.showCopyOptions),Nf("aria-label","Copy issue number "+b.issueId),w(1),S(" ",
b.issueId," "),w(1),C("ngIf",!b.showCopyOptions),w(1),C("ngIf",b.showCopyOptions))},dependencies:[Lw,Ev,qA,sE,Ez,FB,bM,cM],styles:["[_nghost-%COMP%]{border-radius:4px;font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;display:inline-block;user-select:none;white-space:nowrap;line-height:22px}button[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.issue-id[_ngcontent-%COMP%]{padding:0 3px}@media(forced-colors: active){.issue-id[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}.issue-id[_ngcontent-%COMP%]:focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}.shortcut[_ngcontent-%COMP%]{font-family:WorkAroundWebKitAndMozilla,monospace;padding-left:8px;white-space:nowrap}button.issue-id[_ngcontent-%COMP%]:hover   mat-icon[_ngcontent-%COMP%], button.issue-id[_ngcontent-%COMP%]:focus   mat-icon[_ngcontent-%COMP%]{visibility:visible}button[_ngcontent-%COMP%]{cursor:pointer;border-radius:4px;user-select:text}button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}button.square-left[_ngcontent-%COMP%]{border-left:1px solid;border-left-color:#fff;border-left-color:var(--background)}@media(forced-colors: active){button.square-left[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}button.square-left[_ngcontent-%COMP%]:focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}mat-icon[_ngcontent-%COMP%]{margin-top:-2px;color:#3c4043;color:var(--gfx)}  .onedev-popup-panel .issue-id-picker-popup{padding:10px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row{display:flex;flex-direction:row;align-items:center}  .onedev-popup-panel .issue-id-picker-popup .id-details-row label{flex-basis:110px;font-family:Roboto,Arial,sans-serif;font-size:.8125rem;color:#5f6368;color:var(--text-muted)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value{flex-grow:1;font-family:Roboto,Arial,sans-serif;display:inline-block;width:345px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;outline:none;padding:5px;margin-left:5px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy{cursor:pointer;color:#1a73e8;color:var(--link)}"],
changeDetection:0});var dU=function(){};dU.prototype.ngOnInit=function(){};dU.prototype.onClick=function(a){a.stopPropagation()};dU.\u0275fac=function(a){return new (a||dU)};
dU.\u0275cmp=od({type:dU,selectors:[["b-issue-id-cell"]],hostBindings:function(a,b){a&1&&L("click",function(c){return b.onClick(c)})},inputs:{id:"id"},decls:2,vars:2,consts:[[3,"isReady"],[3,"issueId","showCopyOptions",4,"ngIf"],[3,"issueId","showCopyOptions"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,xRa,1,2,"b-issue-id-picker",1),F());a&2&&(C("isReady",!!b.id),w(1),C("ngIf",b.id))},dependencies:[aU,Ev,cU],encapsulation:2,changeDetection:0});var eU=function(){},Ogc=function(a){a=a.issuePriority;if(null==a)return"";switch(a){case "P0":return"priority-1";case "P1":return"priority-2";case "P2":return"priority-3";case "P3":return"priority-4";case "P4":return"priority-5";default:return""}};eU.\u0275fac=function(a){return new (a||eU)};
eU.\u0275cmp=od({type:eU,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},decls:2,vars:2,consts:[[1,"p-chip",3,"ngClass"]],template:function(a,b){a&1&&(D(0,"span",0),Q(1),F());a&2&&(C("ngClass",Ogc(b)),w(1),a=b.issuePriority,S(" ",null==a?"--":QTb[a]," "))},dependencies:[Cv],styles:["/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});var fU=function(){this.priority=this.issue=null;this.isDataLoaded=!1};fU.prototype.ngOnChanges=function(){var a,b;this.priority=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.priority)||null;this.isDataLoaded=null!==this.issue};fU.\u0275fac=function(a){return new (a||fU)};
fU.\u0275cmp=od({type:fU,selectors:[["b-issue-priority-cell"]],inputs:{issue:"issue"},features:[Fd],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[4,"ngIf","ngIfElse"],["noData",""],[3,"issuePriority"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,yRa,2,1,"ng-container",1),P(2,zRa,1,0,"ng-template",null,2,Eg),F());if(a&2){var c=N(3);C("isReady",b.isDataLoaded);w(1);C("ngIf",b.priority)("ngIfElse",c)}},dependencies:[aU,Ev,eU],encapsulation:2,changeDetection:0});var gU=function(){this.STATUS_JS_FULL_TEXT=Uk;this.STATUS_JS_TERSE=QC;this.issue=null;this.isDataLoaded=!1};gU.prototype.ngOnChanges=function(){var a,b;this.status=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.status)||void 0;this.isDataLoaded=null!==this.issue};gU.\u0275fac=function(a){return new (a||gU)};
gU.\u0275cmp=od({type:gU,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue"},features:[Fd],decls:4,vars:3,consts:[[3,"isReady"],[3,"class","title",4,"ngIf","ngIfElse"],["noData",""],[3,"title"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,ARa,2,5,"div",1),P(2,BRa,1,0,"ng-template",null,2,Eg),F());if(a&2){var c=N(3);C("isReady",b.isDataLoaded);w(1);C("ngIf",b.status)("ngIfElse",c)}},dependencies:[aU,Ev],encapsulation:2,changeDetection:0});var hU=function(){this.issue=null;this.useButtonToNavigate=!1;this.anchorTarget=void 0;this.title="";this.isDataLoaded=!1;this.link=""};hU.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||"";this.isDataLoaded=null!==this.issue;var c,d;this.link=this.getIssueUrl(null!=(d=null==(c=this.issue)?void 0:c.issueId)?d:"")};hU.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):Qk(a)};
hU.\u0275fac=function(a){return new (a||hU)};
hU.\u0275cmp=od({type:hU,selectors:[["b-issue-title-cell"]],hostAttrs:[1,"flex-kids-x","line-clamp-3"],inputs:{issue:"issue",issueUrlFactory:"issueUrlFactory",useButtonToNavigate:"useButtonToNavigate",anchorTarget:"anchorTarget"},features:[Fd],decls:5,vars:5,consts:[[1,"title","title-location",3,"isReady"],[3,"trackerId","compactMode"],[4,"ngIf","ngIfElse"],["useLinkToNavigate",""],[1,"line-clamp-3"],["mat-icon-button","","tabindex","0","title","Open issue in a new tab","aria-label","Open issue",
1,"small","visible-on-row-active",3,"routerLink","target","keydown","click"],["svgIcon","pop-out",1,"icon-s"],[1,"hover-link","line-clamp-3",3,"routerLink","target","keydown","click"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),G(1,"b-tracker-chip-smart",1),P(2,CRa,5,3,"ng-container",2),P(3,DRa,2,3,"ng-template",null,3,Eg),F());if(a&2){var c=N(4);C("isReady",b.isDataLoaded);w(1);C("trackerId",null==b.issue?null:b.issue.trackerId)("compactMode",!0);w(1);C("ngIf",b.useButtonToNavigate)("ngIfElse",
c)}},dependencies:[aU,Ev,qA,Fz,YD,HP],styles:[".title[_ngcontent-%COMP%]{padding-top:7px;padding-bottom:6px;display:flex;flex-direction:row;align-items:center}a[_ngcontent-%COMP%]{color:inherit}"],changeDetection:0});var iU=function(a){this.internalArray_=m(a,0,iU.messageId)};W(iU,X);iU.prototype.getName=function(){return Hi(this,1)};iU.prototype.setName=function(a){return qj(this,1,a)};iU.prototype.hasName=function(){return Ii(this,1)};iU.prototype.getNameOrUndefined=function(){return At(this,1)};iU.messageId="b.ComponentRecommendationSettings";var up=function(a){this.internalArray_=m(a,0,up.messageId)};W(up,X);up.prototype.getType=function(){return Vi(this,2,0)};up.prototype.setType=function(a){return rj(this,2,a)};up.prototype.hasType=function(){return Ti(this,2)};up.messageId="b.UserEngagement";var tp=function(a){this.internalArray_=m(a,0,tp.messageId)};W(tp,X);tp.prototype.getParent=function(){return Hi(this,1)};tp.prototype.setParent=function(a){return qj(this,1,a)};tp.messageId="b.BatchCreateUserEngagementsRequest";var jU=function(a){this.internalArray_=m(a,0,jU.messageId)};W(jU,X);g=jU.prototype;g.getResource=function(){return Hi(this,1)};g.setResource=function(a){return qj(this,1,a)};g.getType=function(){return Vi(this,2,0)};g.setType=function(a){return rj(this,2,a)};g.hasType=function(){return Ti(this,2)};g.setPageSize=function(a){return nj(this,4,a)};g.setPageToken=function(a){return qj(this,5,a)};jU.messageId="b.LookupRecommendationsRequest";var MRa=function(a){this.internalArray_=m(a)};W(MRa,X);g=MRa.prototype;g.getName=function(){return Hi(this,1)};g.setName=function(a){return qj(this,1,a)};g.hasName=function(){return Ii(this,1)};g.getNameOrUndefined=function(){return At(this,1)};g.getSource=function(){return Hi(this,2)};g.setSource=function(a){return qj(this,2,a)};g.hasSource=function(){return Ii(this,2)};g.getSourceOrUndefined=function(){return At(this,2)};g.getResource=function(){return Hi(this,3)};
g.setResource=function(a){return qj(this,3,a)};g.getType=function(){return Vi(this,4,0)};g.setType=function(a){return rj(this,4,a)};g.hasType=function(){return Ti(this,4)};g.getScore=function(){return El(this,6)};g.setScore=function(a){rj(this,6,nb(a))};var IRa=[9];var kU=function(a){this.internalArray_=m(a,0,kU.messageId)};W(kU,X);kU.prototype.setRequestsList=function(a){return om(this,1,a)};kU.prototype.addAndReturnRequests=function(){return ec(this,1,tp)};kU.repeatedFields_=[1];kU.messageId="b.BatchCreateUserEngagementsRequest";var lU=function(a){this.internalArray_=m(a,0,lU.messageId)};W(lU,X);lU.prototype.getNextPageToken=function(){return Hi(this,2)};lU.prototype.getTotalSize=function(){return dj(this,3)};lU.repeatedFields_=[1];lU.messageId="b.LookupRecommendationsResponse";var mU=function(a){this.executor=a},Pgc=function(a,b){var c=(new jU).setResource(b.resource).setType(MTb[b.type]).setPageSize(b.pageSize).setPageToken(b.pageToken);c=rj(c,6,NTb[b.view]);void 0!==b.minConfidence&&rj(c,3,zTb[b.minConfidence]);return a.executor.post({url:"action/recommendations/lookup",body:c,responseConstructor:lU}).pipe(A(NRa))},Qgc=function(a,b){a=a.executor;var c=a.put,d="action/components/"+b.componentId+"/recommendationSettings";var e=(new iU).setName("components/"+b.componentId+
"/recommendationSettings");e=mj(e,2,b.duplicateAssistanceEnabled);e=mj(e,4,b.optedOutFromDataCollection);b=mj(e,3,b.showSettings);return c.call(a,{url:d,body:b,responseConstructor:iU}).pipe(A(ERa))};mU.\u0275fac=function(a){return new (a||mU)(n(tD))};mU.\u0275prov=$c({token:mU,factory:mU.\u0275fac,providedIn:"root"});var nU=function(a){hG.call(this);this.recommendationsService=a;this.recordType="issueRecommendations";this.idForRecord=function(b){return b.issueId+"-"+b.recommendationType};this.isEqual=ki};W(nU,hG);nU.prototype.fetchOne=function(a){a=Rgc(a);var b=a.issueId,c=a.recommendationType;return Pgc(this.recommendationsService,{resource:"issues/"+b,type:c,minConfidence:"MEDIUM",pageSize:5,view:"FULL"}).pipe(A(function(d){return{issueId:b,recommendationType:c,recommendations:d.recommendations}}),gf(function(){return(0,B.of)(void 0)}))};
nU.prototype.copy=function(a){return a&&li(a)};var Rgc=function(a){var b=l(a.split("-"));a=b.next().value;b=b.next().value;return{issueId:a,recommendationType:b}};nU.\u0275fac=function(a){return new (a||nU)(n(mU))};nU.\u0275prov=$c({token:nU,factory:nU.\u0275fac,providedIn:"root"});var oU=function(a,b){this.checker=a;this.document=b};oU.prototype.focusFirstFocusableElement=function(a){(a=Sgc(this,a,!0))&&a.focus()};var Sgc=function(a,b,c){if((void 0===c||c)&&a.checker.isFocusable(b))return b;b=b.children||b.childNodes;for(c=0;c<b.length;c++){var d=b[c].nodeType===a.document.ELEMENT_NODE?Sgc(a,b[c]):null;if(d)return d}return null};oU.\u0275fac=function(a){return new (a||oU)(n(Gw),n(Oh))};oU.\u0275prov=$c({token:oU,factory:oU.\u0275fac,providedIn:"root"});var pU=function(a,b){this.elementRef=a;this.interactivityHelper=b};pU.prototype.ngOnInit=function(){};pU.prototype.focus=function(){this.interactivityHelper.focusFirstFocusableElement(this.elementRef.nativeElement)};Qh.Object.defineProperties(pU.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});pU.\u0275fac=function(a){return new (a||pU)(z(ae),z(oU))};pU.\u0275dir=sd({type:pU,selectors:[["tr","row",""]],inputs:{row:"row"}});var qU=function(){};qU.\u0275fac=function(a){return new (a||qU)};qU.\u0275mod=qd({type:qU});qU.\u0275inj=ad({});var Tgc=function(a,b){oy.call(this,a);this.directives=a;this.isEqual=b};W(Tgc,oy);var wp=function(a,b){var c;return Ne(function(d){if(1==d.nextAddress)return d.yield((0,B.firstValueFrom)(a.directives.changes.pipe(yf(a.directives.toArray()),A(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),cf(Boolean),ef(3E3))),2);c=d.yieldResult;my(a,c);Se(d)})};var Ugc=new Ad("GMAT_LEGACY_TABS_OPTION");var rU=function(a){this.inkBarPositioner=a};rU.prototype.isEnabled=function(){return this.inkBarPositioner===ORa};rU.\u0275fac=function(a){return new (a||rU)(z(xfc))};rU.\u0275dir=sd({type:rU,selectors:[["","gmat-tabs",""],["mat-tab-group"],["","mat-tab-nav-bar",""]],hostVars:2,hostBindings:function(a,b){a&2&&Xf("gmat-tabs",b.isEnabled())},features:[lg([{provide:xfc,useFactory:function(a,b,c){return a.nativeElement.hasAttribute("gmat-tabs")||c&&c.enabled?ORa:b},deps:[ae,[new bu,xfc],[new au,Ugc]]}])]});var sU=function(a,b){this.context={};b.createEmbeddedView(a,this.context)};Qh.Object.defineProperties(sU.prototype,{xapLet:{configurable:!0,enumerable:!0,set:function(a){var b=new Set(PRa(a));if(void 0!==this.context)for(var c=l(PRa(this.context).filter(function(e){return!b.has(e)})),d=c.next();!d.done;d=c.next())delete this.context[d.value];c=l(b);for(d=c.next();!d.done;d=c.next())d=d.value,this.context[d]=a[d];this.context.$implicit=a;this.context.xapLet=a}}});
sU.\u0275fac=function(a){return new (a||sU)(z(vg),z(wg))};sU.\u0275dir=sd({type:sU,selectors:[["","xapLet",""]],inputs:{xapLet:"xapLet"},standalone:!0});var tU=function(){};tU.\u0275fac=function(a){return new (a||tU)};tU.\u0275mod=qd({type:tU});tU.\u0275inj=ad({});var Vgc=new Ad("MatRadioGroup"),Wgc=new Ad("mat-radio-default-options",{providedIn:"root",factory:QRa});Sh(Vh(function(a){this._elementRef=a}));var Xgc=["input"],Ygc=0,Zgc=function(a,b){this.source=a;this.value=b},uU=function(a){this._changeDetector=a;this._value=null;this._name="mat-radio-group-"+Ygc++;this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=!1;this._controlValueAccessorChangeFn=function(){};this.onTouched=function(){};this.change=new Yu};g=uU.prototype;g._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};
g.ngAfterContentInit=function(){var a=this;this._isInitialized=!0;this._buttonChanges=this._radios.changes.subscribe(function(){a.selected&&!a._radios.find(function(b){return b===a.selected})&&(a._selected=null)})};g.ngOnDestroy=function(){var a;null==(a=this._buttonChanges)||a.unsubscribe()};g._touch=function(){if(this.onTouched)this.onTouched()};g._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};
g._updateSelectedRadioFromValue=function(){var a=this,b=null!==this._selected&&this._selected.value===this._value;this._radios&&!b&&(this._selected=null,this._radios.forEach(function(c){c.checked=a.value===c.value;c.checked&&(a._selected=c)}))};g._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new Zgc(this._selected,this._value))};g._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};g.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};
g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
Qh.Object.defineProperties(uU.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._name=a;this._updateRadioButtonNames()}},labelPosition:{configurable:!0,enumerable:!0,get:function(){return this._labelPosition},set:function(a){this._labelPosition="before"===a?"before":"after";this._markRadiosForCheck()}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,this._updateSelectedRadioFromValue(),
this._checkSelectedRadioButton())}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this.value=(this._selected=a)?a.value:null;this._checkSelectedRadioButton()}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=ah(a);this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=ah(a);this._markRadiosForCheck()}}});
uU.\u0275fac=function(a){return new (a||uU)(z(xv))};uU.\u0275dir=sd({type:uU,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});
var $gc=Sh(Vh(function(a){this._elementRef=a})),vU=function(a,b,c,d,e,f,h,k){b=$gc.call(this,b)||this;b._changeDetector=c;b._focusMonitor=d;b._radioDispatcher=e;b._providerOverride=h;b._uniqueId="mat-radio-"+ ++Ygc;b.id=b._uniqueId;b.change=new Yu;b._checked=!1;b._value=null;b._removeUniqueSelectionListener=function(){};b.radioGroup=a;b._noopAnimations="NoopAnimations"===f;k&&(b.tabIndex=dh(k,0));return b};W(vU,$gc);g=vU.prototype;
g.focus=function(a,b){b?Pw(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._markForCheck=function(){this._changeDetector.markForCheck()};g.ngOnInit=function(){var a=this;if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}this._removeUniqueSelectionListener=this._radioDispatcher.listen(function(b,c){b!==a.id&&c===a.name&&(a.checked=!1)})};g.ngDoCheck=function(){this._updateTabIndex()};
g.ngAfterViewInit=function(){var a=this;this._updateTabIndex();this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){!b&&a.radioGroup&&a.radioGroup._touch()})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};g._emitChangeEvent=function(){this.change.emit(new Zgc(this,this._value))};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onInputClick=function(a){a.stopPropagation()};
g._onInputInteraction=function(a){a.stopPropagation();this.checked||this.disabled||(a=this.radioGroup&&this.value!==this.radioGroup.value,this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent()))};g._onTouchTargetClick=function(a){this._onInputInteraction(a);this.disabled||this._inputElement.nativeElement.focus()};g._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
g._updateTabIndex=function(){var a=this.radioGroup;a=a&&a.selected&&!this.disabled?a.selected===this?this.tabIndex:-1:this.tabIndex;if(a!==this._previousTabIndex){var b,c=null==(b=this._inputElement)?void 0:b.nativeElement;c&&(c.setAttribute("tabindex",a+""),this._previousTabIndex=a)}};
Qh.Object.defineProperties(vU.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=ah(a);this._checked!==a&&((this._checked=a)&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!a&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),a&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},
set:function(a){this._value!==a&&(this._value=a,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},labelPosition:{configurable:!0,enumerable:!0,get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled(ah(a))}},
required:{configurable:!0,enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=ah(a)}},color:{configurable:!0,enumerable:!0,get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});vU.\u0275fac=function(){ee()};
vU.\u0275dir=sd({type:vU,viewQuery:function(a,b){a&1&&zg(Xgc,5);if(a&2){var c;yg(c=Bg())&&(b._inputElement=c.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[Jf]});var ahc=function(a){return{enterDuration:a}},bhc={provide:Uv,useExisting:fd(function(){return wU}),multi:!0},wU=function(){uU.apply(this,arguments)};W(wU,uU);wU.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(wU)))(b||wU)}}();
wU.\u0275dir=sd({type:wU,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&Ag(c,xU,5);if(a&2){var d;yg(d=Bg())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[lg([bhc,{provide:Vgc,useExisting:wU}]),Jf]});var xU=function(a,b,c,d,e,f,h,k){return vU.call(this,a,b,c,d,e,f,h,k)||this};W(xU,vU);xU.\u0275dir=vU.\u0275dir;xU.\u0275fac=function(a){return new (a||xU)(z(Vgc,8),z(ae),z(xv),z(Ow),z(Cy),z(iu,8),z(Wgc,8),Ud("tabindex"))};
xU.\u0275cmp=od({type:xU,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:18,hostBindings:function(a,b){a&1&&L("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(Nf("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null),Xf("mat-radio-checked",b.checked)("mat-radio-disabled",b.disabled)("_mat-animation-noopable",b._noopAnimations)("mat-primary","primary"===b.color)("mat-accent","accent"===
b.color)("mat-warn","warn"===b.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Jf],ngContentSelectors:["*"],decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled",
"matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(a,b){a&1&&(eg(),D(0,"label",0,1)(2,"span",2),G(3,"span",3)(4,"span",4),D(5,"input",5,6),L("change",function(d){return b._onInputInteraction(d)})("click",function(d){return b._onInputClick(d)}),F(),D(7,"span",7),G(8,"span",8),F()(),D(9,"span",9)(10,"span",10),Q(11,"\u00a0"),F(),fg(12),F()());if(a&2){var c=N(1);Nf("for",
b.inputId);w(5);C("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("required",b.required);Nf("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);w(2);C("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",og(17,ahc,b._noopAnimations?0:150));w(2);Xf("mat-radio-label-before","before"==b.labelPosition)}},dependencies:[cz],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n'],
encapsulation:2,changeDetection:0});var yU=new Ad("CDK_TABLE");new Ad("text-column-options");var zU=function(a){this.template=a};zU.\u0275fac=function(a){return new (a||zU)(z(vg))};zU.\u0275dir=sd({type:zU,selectors:[["","cdkCellDef",""]]});var AU=function(a){this.template=a};AU.\u0275fac=function(a){return new (a||AU)(z(vg))};AU.\u0275dir=sd({type:AU,selectors:[["","cdkHeaderCellDef",""]]});var BU=function(a){this.template=a};BU.\u0275fac=function(a){return new (a||BU)(z(vg))};BU.\u0275dir=sd({type:BU,selectors:[["","cdkFooterCellDef",""]]});
var chc=RRa(function(){}),CU=function(a){var b=chc.call(this)||this;b._table=a;b._stickyEnd=!1;return b};W(CU,chc);CU.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};CU.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
Qh.Object.defineProperties(CU.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}},stickyEnd:{configurable:!0,enumerable:!0,get:function(){return this._stickyEnd},set:function(a){var b=this._stickyEnd;this._stickyEnd=ah(a);this._hasStickyChanged=b!==this._stickyEnd}}});CU.\u0275fac=function(a){return new (a||CU)(z(yU,8))};
CU.\u0275dir=sd({type:CU,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,zU,5),Ag(c,AU,5),Ag(c,BU,5));if(a&2){var d;yg(d=Bg())&&(b.cell=d.first);yg(d=Bg())&&(b.headerCell=d.first);yg(d=Bg())&&(b.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[lg([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:CU}]),Jf]});
var DU=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,p(a._columnCssClassName))},EU=function(a,b){DU.call(this,a,b)};W(EU,DU);EU.\u0275fac=function(a){return new (a||EU)(z(CU),z(ae))};EU.\u0275dir=sd({type:EU,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Jf]});
var FU=function(a,b){DU.call(this,a,b);var c;1===(null==(c=a._table)?void 0:c._elementRef.nativeElement.nodeType)&&(a=a._table._elementRef.nativeElement.getAttribute("role"),b.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell"))};W(FU,DU);FU.\u0275fac=function(a){return new (a||FU)(z(CU),z(ae))};FU.\u0275dir=sd({type:FU,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Jf]});
var GU=function(a,b){DU.call(this,a,b);var c;1===(null==(c=a._table)?void 0:c._elementRef.nativeElement.nodeType)&&(a=a._table._elementRef.nativeElement.getAttribute("role"),b.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell"))};W(GU,DU);GU.\u0275fac=function(a){return new (a||GU)(z(CU),z(ae))};GU.\u0275dir=sd({type:GU,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Jf]});var dhc=function(){this.tasks=[];this.endTasks=[]},ehc=new Ad("_COALESCED_STYLE_SCHEDULER"),HU=function(a){this._ngZone=a;this._currentSchedule=null;this._destroyed=new B.Subject};HU.prototype.schedule=function(a){this._createScheduleIfNeeded();this._currentSchedule.tasks.push(a)};HU.prototype.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};
HU.prototype._createScheduleIfNeeded=function(){var a=this;this._currentSchedule||(this._currentSchedule=new dhc,this._getScheduleObservable().pipe(Af(this._destroyed)).subscribe(function(){for(;a._currentSchedule.tasks.length||a._currentSchedule.endTasks.length;){var b=a._currentSchedule;a._currentSchedule=new dhc;for(var c=l(b.tasks),d=c.next();!d.done;d=c.next())d=d.value,d();b=l(b.endTasks);for(d=b.next();!d.done;d=b.next())c=d.value,c()}a._currentSchedule=null}))};
HU.prototype._getScheduleObservable=function(){return this._ngZone.isStable?(0,B.from)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(nf())};HU.\u0275fac=function(a){return new (a||HU)(n(Df))};HU.\u0275prov=$c({token:HU,factory:HU.\u0275fac});var IU=function(a,b){this.template=a;this._differs=b};IU.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};IU.\u0275fac=function(a){return new (a||IU)(z(vg),z(Av))};IU.\u0275dir=sd({type:IU,features:[Fd]});var fhc=function(){IU.apply(this,arguments)};W(fhc,IU);fhc.\u0275dir=IU.\u0275dir;fhc.\u0275fac=IU.\u0275fac;
var ghc=RRa(fhc),JU=function(a,b,c){a=ghc.call(this,a,b)||this;a._table=c;return a};W(JU,ghc);JU.prototype.ngOnChanges=function(a){ghc.prototype.ngOnChanges.call(this,a)};JU.\u0275fac=function(a){return new (a||JU)(z(vg),z(Av),z(yU,8))};JU.\u0275dir=sd({type:JU,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Jf,Fd]});var hhc=function(){IU.apply(this,arguments)};W(hhc,IU);hhc.\u0275dir=IU.\u0275dir;
hhc.\u0275fac=IU.\u0275fac;var ihc=RRa(hhc),KU=function(a,b,c){a=ihc.call(this,a,b)||this;a._table=c;return a};W(KU,ihc);KU.prototype.ngOnChanges=function(a){ihc.prototype.ngOnChanges.call(this,a)};KU.\u0275fac=function(a){return new (a||KU)(z(vg),z(Av),z(yU,8))};KU.\u0275dir=sd({type:KU,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Jf,Fd]});var LU=function(a,b,c){IU.call(this,a,b);this._table=c};W(LU,IU);
LU.\u0275fac=function(a){return new (a||LU)(z(vg),z(Av),z(yU,8))};LU.\u0275dir=sd({type:LU,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Jf]});var NU=function(a){this._viewContainer=a;MU=this};NU.prototype.ngOnDestroy=function(){MU===this&&(MU=null)};var MU=null;NU.\u0275fac=function(a){return new (a||NU)(z(wg))};NU.\u0275dir=sd({type:NU,selectors:[["","cdkCellOutlet",""]]});var OU=function(){};
OU.\u0275fac=function(a){return new (a||OU)};OU.\u0275cmp=od({type:OU,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&bg(0,0)},dependencies:[NU],encapsulation:2});var PU=function(){};PU.\u0275fac=function(a){return new (a||PU)};
PU.\u0275cmp=od({type:PU,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&bg(0,0)},dependencies:[NU],encapsulation:2});var QU=function(){};QU.\u0275fac=function(a){return new (a||QU)};
QU.\u0275cmp=od({type:QU,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&bg(0,0)},dependencies:[NU],encapsulation:2});var RU=function(a){this.templateRef=a;this._contentClassName="cdk-no-data-row"};RU.\u0275fac=function(a){return new (a||RU)(z(vg))};RU.\u0275dir=sd({type:RU,selectors:[["ng-template","cdkNoDataRow",""]]});var jhc=new Ad("CDK_SPL");var khc=["top","bottom","left","right"],lhc=function(a,b,c,d,e,f,h){e=void 0===e?!0:e;f=void 0===f?!0:f;this._isNativeHtmlTable=a;this._stickCellCss=b;this.direction=c;this._coalescedStyleScheduler=d;this._isBrowser=e;this._needsPositionStickyOnElement=f;this._positionListener=h;this._cachedCellWidths=[];this._borderCellCss={top:b+"-border-elem-top",bottom:b+"-border-elem-bottom",left:b+"-border-elem-left",right:b+"-border-elem-right"}},mhc=function(a,b,c){var d=[];b=l(b);for(var e=b.next();!e.done;e=
b.next())if(e=e.value,e.nodeType===e.ELEMENT_NODE){d.push(e);for(var f=0;f<e.children.length;f++)d.push(e.children[f])}a._coalescedStyleScheduler.schedule(function(){for(var h=l(d),k=h.next();!k.done;k=h.next())a._removeStickyStyle(k.value,c)})},nhc=function(a,b,c,d,e){e=void 0===e?!0:e;if(b.length&&a._isBrowser&&(c.some(function(E){return E})||d.some(function(E){return E}))){var f=b[0],h=f.children.length,k=a._getCellWidths(f,e),q=a._getStickyStartColumnPositions(k,c),u=a._getStickyEndColumnPositions(k,
d),x=c.lastIndexOf(!0),y=d.indexOf(!0);a._coalescedStyleScheduler.schedule(function(){var E="rtl"===a.direction,H=E?"right":"left";E=E?"left":"right";for(var J=l(b),O=J.next();!O.done;O=J.next()){O=O.value;for(var R=0;R<h;R++){var U=O.children[R];c[R]&&a._addStickyStyle(U,H,q[R],R===x);d[R]&&a._addStickyStyle(U,E,u[R],R===y)}}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===x?[]:k.slice(0,x+1).map(function(Z,na){return c[na]?Z:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===
y?[]:k.slice(y).map(function(Z,na){return d[na+y]?Z:null}).reverse()}))})}else a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:[]}),a._positionListener.stickyEndColumnsUpdated({sizes:[]}))},ohc=function(a,b,c,d){if(a._isBrowser){var e="bottom"===d?b.slice().reverse():b,f="bottom"===d?c.slice().reverse():c,h=[],k=[],q=[];for(c=b=0;b<e.length;b++)if(f[b]){h[b]=c;var u=e[b];q[b]=a._isNativeHtmlTable?Array.from(u.children):[u];u=u.getBoundingClientRect().height;c+=u;k[b]=u}var x=
f.lastIndexOf(!0);a._coalescedStyleScheduler.schedule(function(){for(var y=0;y<e.length;y++)if(f[y])for(var E=h[y],H=y===x,J=l(q[y]),O=J.next();!O.done;O=J.next())a._addStickyStyle(O.value,d,E,H);if("top"===d){var R;null==(R=a._positionListener)||R.stickyHeaderRowsUpdated({sizes:k,offsets:h,elements:q})}else{var U;null==(U=a._positionListener)||U.stickyFooterRowsUpdated({sizes:k,offsets:h,elements:q})}})}},phc=function(a,b,c){if(a._isNativeHtmlTable){var d=b.querySelector("tfoot");a._coalescedStyleScheduler.schedule(function(){c.some(function(e){return!e})?
a._removeStickyStyle(d,["bottom"]):a._addStickyStyle(d,"bottom",0,!1)})}};g=lhc.prototype;g._removeStickyStyle=function(a,b){for(var c=l(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);khc.some(function(e){return-1===b.indexOf(e)&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))};
g._addStickyStyle=function(a,b,c,d){a.classList.add(this._stickCellCss);d&&a.classList.add(this._borderCellCss[b]);a.style[b]=c+"px";a.style.zIndex=this._getCalculatedZIndex(a);this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")};g._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=l(khc),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
g._getCellWidths=function(a,b){if(void 0!==b&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(a[c].getBoundingClientRect().width);return this._cachedCellWidths=b};g._getStickyStartColumnPositions=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++)b[e]&&(c[e]=d,d+=a[e]);return c};g._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;0<e;e--)b[e]&&(c[e]=d,d+=a[e]);return c};var qhc=[[["caption"]],[["colgroup"],["col"]]],SU=function(a,b){this.viewContainer=a;this.elementRef=b};SU.\u0275fac=function(a){return new (a||SU)(z(wg),z(ae))};SU.\u0275dir=sd({type:SU,selectors:[["","rowOutlet",""]]});var TU=function(a,b){this.viewContainer=a;this.elementRef=b};TU.\u0275fac=function(a){return new (a||TU)(z(wg),z(ae))};TU.\u0275dir=sd({type:TU,selectors:[["","headerRowOutlet",""]]});var UU=function(a,b){this.viewContainer=a;this.elementRef=b};
UU.\u0275fac=function(a){return new (a||UU)(z(wg),z(ae))};UU.\u0275dir=sd({type:UU,selectors:[["","footerRowOutlet",""]]});var VU=function(a,b){this.viewContainer=a;this.elementRef=b};VU.\u0275fac=function(a){return new (a||VU)(z(wg),z(ae))};VU.\u0275dir=sd({type:VU,selectors:[["","noDataRowOutlet",""]]});
var WU=function(a,b,c,d,e,f,h,k,q,u,x,y){this._differs=a;this._changeDetectorRef=b;this._elementRef=c;this._dir=e;this._platform=h;this._viewRepeater=k;this._coalescedStyleScheduler=q;this._viewportRuler=u;this._stickyPositioningListener=x;this._ngZone=y;this._onDestroy=new B.Subject;this._columnDefsByName=new Map;this._customColumnDefs=new Set;this._customRowDefs=new Set;this._customHeaderRowDefs=new Set;this._customFooterRowDefs=new Set;this._forceRecalculateCellWidths=this._stickyColumnStylesNeedReset=
this._footerRowDefChanged=this._headerRowDefChanged=!0;this._cachedRenderRowsMap=new Map;this.stickyCssClass="cdk-table-sticky";this.needsPositionStickyOnElement=!0;this._fixedLayout=this._multiTemplateDataRows=this._isShowingNoDataRow=!1;this.contentChanged=new Yu;d||this._elementRef.nativeElement.setAttribute("role","table");this._document=f;this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName};
WU.prototype.ngOnInit=function(){var a=this;this._setupStickyStyler();this._isNativeHtmlTable&&this._applyNativeTableSections();this._dataDiffer=this._differs.find([]).create(function(b,c){return a.trackBy?a.trackBy(c.dataIndex,c.data):c});this._viewportRuler.change().pipe(Af(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};
WU.prototype.ngAfterContentChecked=function(){this._cacheRowDefs();this._cacheColumnDefs();var a=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||a;this._forceRecalculateCellWidths=a;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1);this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1);this.dataSource&&0<this._rowDefs.length&&
!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&XU(this);this._checkStickyStates()};
WU.prototype.ngOnDestroy=function(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(a){a.clear()});this._headerRowDefs=[];this._footerRowDefs=[];this._defaultRowDef=null;this._onDestroy.next();this._onDestroy.complete();ioa(this.dataSource)&&this.dataSource.disconnect(this)};
WU.prototype.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;zMb(b,c,function(d,e,f){return a._getEmbeddedViewArgs(d.item,f)},function(d){1===d.operation&&d.context&&a._renderCellTemplateForItem(d.record.item.rowDef,d.context)});this._updateRowIndexContext();XIb(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();this._ngZone&&Xia()?this._ngZone.onStable.pipe(nf(),
Af(this._onDestroy)).subscribe(function(){XU(a)}):XU(this)}else this._updateNoDataRow();this.contentChanged.next()};
var rhc=function(a){var b=a._getRenderedRows(a._headerRowOutlet),c=a._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=b.length?"":"none");c=a._headerRowDefs.map(function(d){return d.sticky});mhc(a._stickyStyler,b,["top"]);ohc(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},shc=function(a){var b=a._getRenderedRows(a._footerRowOutlet),c=a._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=b.length?"":"none");c=a._footerRowDefs.map(function(d){return d.sticky});
mhc(a._stickyStyler,b,["bottom"]);ohc(a._stickyStyler,b,c,"bottom");phc(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},XU=function(a){var b=a._getRenderedRows(a._headerRowOutlet),c=a._getRenderedRows(a._rowOutlet),d=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable&&!a._fixedLayout||a._stickyColumnStylesNeedReset)mhc(a._stickyStyler,[].concat(p(b),p(c),p(d)),["left","right"]),a._stickyColumnStylesNeedReset=!1;b.forEach(function(e,
f){a._addStickyColumnStyles([e],a._headerRowDefs[f])});a._rowDefs.forEach(function(e){for(var f=[],h=0;h<c.length;h++)a._renderRows[h].rowDef===e&&f.push(c[h]);a._addStickyColumnStyles(f,e)});d.forEach(function(e,f){a._addStickyColumnStyles([e],a._footerRowDefs[f])});Array.from(a._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})};g=WU.prototype;
g._getAllRenderRows=function(){var a=[],b=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var c=0;c<this._data.length;c++){var d=this._data[c],e=this._getRenderRowsForData(d,c,b.get(d));this._cachedRenderRowsMap.has(d)||this._cachedRenderRowsMap.set(d,new WeakMap);for(d=0;d<e.length;d++){var f=e[d],h=this._cachedRenderRowsMap.get(f.data);h.has(f.rowDef)?h.get(f.rowDef).push(f):h.set(f.rowDef,[f]);a.push(f)}}return a};
g._getRenderRowsForData=function(a,b,c){return this._getRowDefs(a,b).map(function(d){var e=c&&c.has(d)?c.get(d):[];return e.length?(d=e.shift(),d.dataIndex=b,d):{data:a,rowDef:d,dataIndex:b}})};g._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();SRa(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
g._cacheRowDefs=function(){this._headerRowDefs=SRa(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=SRa(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=SRa(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
g._renderUpdatedColumns=function(){var a=function(d,e){return d||!!e._columnsDiffer.diff(e.columns)},b=this._rowDefs.reduce(a,!1);b&&this._forceRenderDataRows();var c=this._headerRowDefs.reduce(a,!1);c&&this._forceRenderHeaderRows();(a=this._footerRowDefs.reduce(a,!1))&&this._forceRenderFooterRows();return b||c||a};
g._switchDataSource=function(a){this._data=[];ioa(this.dataSource)&&this.dataSource.disconnect(this);this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null);a||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear());this._dataSource=a};
g._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;ioa(this.dataSource)?b=this.dataSource.connect(this):(0,B.isObservable)(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=(0,B.of)(this.dataSource));this._renderChangeSubscription=b.pipe(Af(this._onDestroy)).subscribe(function(c){a._data=c||[];a.renderRows()})}};
g._forceRenderHeaderRows=function(){var a=this;0<this._headerRowOutlet.viewContainer.length&&this._headerRowOutlet.viewContainer.clear();this._headerRowDefs.forEach(function(b,c){return a._renderRow(a._headerRowOutlet,b,c)});rhc(this)};g._forceRenderFooterRows=function(){var a=this;0<this._footerRowOutlet.viewContainer.length&&this._footerRowOutlet.viewContainer.clear();this._footerRowDefs.forEach(function(b,c){return a._renderRow(a._footerRowOutlet,b,c)});shc(this)};
g._addStickyColumnStyles=function(a,b){var c=this,d=Array.from(b.columns||[]).map(function(e){return c._columnDefsByName.get(e)});b=d.map(function(e){return e.sticky});d=d.map(function(e){return e.stickyEnd});nhc(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};g._getRenderedRows=function(a){for(var b=[],c=0;c<a.viewContainer.length;c++){var d=a.viewContainer.get(c);b.push(d.rootNodes[0])}return b};
g._getRowDefs=function(a,b){if(1==this._rowDefs.length)return[this._rowDefs[0]];var c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(function(e){return!e.when||e.when(b,a)});else{var d=this._rowDefs.find(function(e){return e.when&&e.when(b,a)})||this._defaultRowDef;d&&c.push(d)}return c};g._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
g._renderRow=function(a,b,c,d){d=void 0===d?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};g._renderCellTemplateForItem=function(a,b){a=l(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,MU&&MU._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
g._updateRowIndexContext=function(){for(var a=this._rowOutlet.viewContainer,b=0,c=a.length;b<c;b++){var d=a.get(b).context;d.count=c;d.first=0===b;d.last=b===c-1;d.even=0===b%2;d.odd=!d.even;this.multiTemplateDataRows?(d.dataIndex=this._renderRows[b].dataIndex,d.renderIndex=b):d.index=this._renderRows[b].dataIndex}};
g._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof JU?c.headerCell.template:a instanceof KU?c.footerCell.template:c.cell.template}):[]};
g._applyNativeTableSections=function(){for(var a=this._document.createDocumentFragment(),b=l([{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}]),c=b.next();!c.done;c=b.next()){var d=c.value;c=this._document.createElement(d.tag);c.setAttribute("role","rowgroup");d=l(d.outlets);for(var e=d.next();!e.done;e=d.next())c.appendChild(e.value.elementRef.nativeElement);a.appendChild(c)}this._elementRef.nativeElement.appendChild(a)};
g._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();this.renderRows()};g._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&rhc(this);this._footerRowDefs.reduce(a,!1)&&shc(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,XU(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new lhc(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener);(this._dir?this._dir.change:(0,B.of)()).pipe(Af(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;XU(a)})};g._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
g._updateNoDataRow=function(){var a=this._customNoDataRow||this._noDataRow;if(a){var b=0===this._rowOutlet.viewContainer.length;if(b!==this._isShowingNoDataRow){var c=this._noDataRowOutlet.viewContainer;if(b){c=c.createEmbeddedView(a.templateRef);var d=c.rootNodes[0];1===c.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(a._contentClassName))}else c.clear();this._isShowingNoDataRow=b;this._changeDetectorRef.markForCheck()}}};
Qh.Object.defineProperties(WU.prototype,{trackBy:{configurable:!0,enumerable:!0,get:function(){return this._trackByFn},set:function(a){this._trackByFn=a}},dataSource:{configurable:!0,enumerable:!0,get:function(){return this._dataSource},set:function(a){this._dataSource!==a&&this._switchDataSource(a)}},multiTemplateDataRows:{configurable:!0,enumerable:!0,get:function(){return this._multiTemplateDataRows},set:function(a){this._multiTemplateDataRows=ah(a);this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),XU(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=ah(a);this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});WU.\u0275fac=function(a){return new (a||WU)(z(Av),z(xv),z(ae),Ud("role"),z(py,8),z(Oh),z(Fw),z(AMb),z(ehc),z(Dy),z(jhc,12),z(Df,8))};
WU.\u0275cmp=od({type:WU,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,RU,5),Ag(c,CU,5),Ag(c,LU,5),Ag(c,JU,5),Ag(c,KU,5));if(a&2){var d;yg(d=Bg())&&(b._noDataRow=d.first);yg(d=Bg())&&(b._contentColumnDefs=d);yg(d=Bg())&&(b._contentRowDefs=d);yg(d=Bg())&&(b._contentHeaderRowDefs=d);yg(d=Bg())&&(b._contentFooterRowDefs=d)}},viewQuery:function(a,b){a&1&&(zg(SU,7),zg(TU,7),zg(UU,7),zg(VU,7));if(a&2){var c;yg(c=Bg())&&(b._rowOutlet=c.first);yg(c=Bg())&&(b._headerRowOutlet=
c.first);yg(c=Bg())&&(b._footerRowOutlet=c.first);yg(c=Bg())&&(b._noDataRowOutlet=c.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&Xf("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[lg([{provide:yU,useExisting:WU},{provide:AMb,useClass:yMb},{provide:ehc,useClass:HU},
{provide:jhc,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a){a&1&&(eg(qhc),fg(0),fg(1,1),bg(2,0)(3,1)(4,2)(5,3))},dependencies:[SU,TU,UU,VU],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var YU=function(){};YU.\u0275fac=function(a){return new (a||YU)};YU.\u0275mod=qd({type:YU});YU.\u0275inj=ad({imports:[Fy]});var ZU=function(){zU.apply(this,arguments)};W(ZU,zU);ZU.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(ZU)))(b||ZU)}}();ZU.\u0275dir=sd({type:ZU,selectors:[["","matCellDef",""]],features:[lg([{provide:zU,useExisting:ZU}]),Jf]});var $U=function(){AU.apply(this,arguments)};W($U,AU);$U.\u0275fac=function(){var a;return function(b){return(a||(a=Zd($U)))(b||$U)}}();$U.\u0275dir=sd({type:$U,selectors:[["","matHeaderCellDef",""]],features:[lg([{provide:AU,useExisting:$U}]),Jf]});
var aV=function(){BU.apply(this,arguments)};W(aV,BU);aV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(aV)))(b||aV)}}();aV.\u0275dir=sd({type:aV,selectors:[["","matFooterCellDef",""]],features:[lg([{provide:BU,useExisting:aV}]),Jf]});var bV=function(){return CU.apply(this,arguments)||this};W(bV,CU);bV.prototype._updateColumnCssClassName=function(){CU.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};
Qh.Object.defineProperties(bV.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});bV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(bV)))(b||bV)}}();bV.\u0275dir=sd({type:bV,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[lg([{provide:CU,useExisting:bV},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bV}]),Jf]});var cV=function(){EU.apply(this,arguments)};
W(cV,EU);cV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(cV)))(b||cV)}}();cV.\u0275dir=sd({type:cV,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Jf]});var dV=function(){FU.apply(this,arguments)};W(dV,FU);dV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(dV)))(b||dV)}}();
dV.\u0275dir=sd({type:dV,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[Jf]});var eV=function(){GU.apply(this,arguments)};W(eV,GU);eV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(eV)))(b||eV)}}();eV.\u0275dir=sd({type:eV,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Jf]});var fV=function(){return JU.apply(this,arguments)||this};W(fV,JU);fV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(fV)))(b||fV)}}();fV.\u0275dir=sd({type:fV,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[lg([{provide:JU,useExisting:fV}]),Jf]});var gV=function(){return KU.apply(this,arguments)||this};W(gV,KU);gV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(gV)))(b||gV)}}();
gV.\u0275dir=sd({type:gV,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[lg([{provide:KU,useExisting:gV}]),Jf]});var hV=function(){LU.apply(this,arguments)};W(hV,LU);hV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(hV)))(b||hV)}}();
hV.\u0275dir=sd({type:hV,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[lg([{provide:LU,useExisting:hV}]),Jf]});var iV=function(){};W(iV,OU);iV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(iV)))(b||iV)}}();
iV.\u0275cmp=od({type:iV,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},exportAs:["matHeaderRow"],features:[lg([{provide:OU,useExisting:iV}]),Jf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&bg(0,0)},dependencies:[NU],encapsulation:2});var jV=function(){};W(jV,PU);jV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(jV)))(b||jV)}}();
jV.\u0275cmp=od({type:jV,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},exportAs:["matFooterRow"],features:[lg([{provide:PU,useExisting:jV}]),Jf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&bg(0,0)},dependencies:[NU],encapsulation:2});var kV=function(){};W(kV,QU);kV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(kV)))(b||kV)}}();
kV.\u0275cmp=od({type:kV,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},exportAs:["matRow"],features:[lg([{provide:QU,useExisting:kV}]),Jf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&bg(0,0)},dependencies:[NU],encapsulation:2});var lV=function(){RU.apply(this,arguments);this._contentClassName="mat-no-data-row"};W(lV,RU);
lV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(lV)))(b||lV)}}();lV.\u0275dir=sd({type:lV,selectors:[["ng-template","matNoDataRow",""]],features:[lg([{provide:RU,useExisting:lV}]),Jf]});var thc=[[["caption"]],[["colgroup"],["col"]]],mV=function(){WU.apply(this,arguments);this.stickyCssClass="mat-table-sticky";this.needsPositionStickyOnElement=!1};W(mV,WU);mV.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(mV)))(b||mV)}}();
mV.\u0275cmp=od({type:mV,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-table"],hostVars:3,hostBindings:function(a,b){a&2&&(Nf("mat-id-collision",null),Xf("mat-table-fixed-layout",b.fixedLayout))},exportAs:["matTable"],features:[lg([{provide:AMb,useClass:yMb},{provide:WU,useExisting:mV},{provide:yU,useExisting:mV},{provide:ehc,useClass:HU},{provide:jhc,useValue:null}]),Jf],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",
""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a){a&1&&(eg(thc),fg(0),fg(1,1),bg(2,0)(3,1)(4,2)(5,3))},dependencies:[SU,TU,UU,VU],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],
encapsulation:2});var uhc=["searchInput"],VRa=function(a,b){return{issues:a,tab:b}},vhc={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1},whc={SIMILAR_ISSUES:"Similar issues",SEARCH_RESULTS:"Search results",ISSUE_IDS:"Issue IDs"},nV=function(a,b,c,d,e,f,h,k){Y.call(this);var q=this;this.dialogRef=a;this.initialData=b;this.issueFridge=c;this.issueRecommendationsFridge=d;this.issuePickerSearchService=e;this.analytics=f;this.activeSession=h;this.liveAnnouncer=k;this.data=Object.assign({},vhc,this.initialData);
var u;this.currentComponent=null!=(u=this.data.componentId)?u:void 0;this.currentIssueId$=(0,B.defer)(function(){var x;return"issue"===(null==(x=q.data.currentResource)?void 0:x.type)?(0,B.of)(q.data.currentResource.id):B.NEVER});this.selectedIssues=new jO;this.tableColumns="single-selection title id priority status duplicateCount votes createdTime".split(" ");this.issueUrlFactory=Qk;this.trackByIssueId=function(x,y){return y.issueId};this.issues$=this.issueFridge.watchSet([]);this.similarIssues$=
this.currentIssueId$.pipe(cf(function(){return $C(q.activeSession,"enableSimilarIssuesTabInIssuePicker")}),zf(function(x){return q.issueRecommendationsFridge.watch(x+"-ISSUE_DEDUPLICATION",void 0)}),A(function(x){var y;return null==x?void 0:null==(y=x.recommendations)?void 0:y.map(function(E){var H;return null==(H=E.content)?void 0:H.recommendedIssue})}),A(function(x){var y;return null!=(y=null==x?void 0:x.filter(cl))?y:[]}));this.searchText$=new B.BehaviorSubject("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(x){return x.trim()}),
mf());this.idsInSearchText$=this.searchTextTrimmed$.pipe(A(CCa),A(Tj),mf(ki));this.issuesWithIdMatches$=this.idsInSearchText$.pipe(zf(function(x){return q.issueFridge.watchSet(x)}));this.searchResults$=this.searchTextTrimmed$.pipe(jf(200),zf(function(x){return q.issuePickerSearchService.search(x,q.data.edgeType,q.data.currentResource,q.currentComponent)}),yf(void 0),wf({bufferSize:1,refCount:!0}));this.idsToAutoSelect$=this.issuesWithIdMatches$.pipe(A(function(x){return 1!==x.length||4>x[0].issueId.length?
[]:[x[0].issueId]}),mf(ki));this.TABS=whc;this.visibleTabs$=(0,B.combineLatest)([this.similarIssues$.pipe(yf([])),this.issuesWithIdMatches$.pipe(yf([])),this.searchTextTrimmed$.pipe(yf(void 0))]).pipe(A(function(x){var y=l(x);x=y.next().value;var E=y.next().value;y=y.next().value;return[].concat(p(x.length?["Similar issues"]:[]),p(y?["Search results"]:[]),p(E.length?["Issue IDs"]:[]))}),mf());this.automaticallySelectedTab$=(0,B.combineLatest)([this.searchTextTrimmed$,this.idsToAutoSelect$,this.similarIssues$.pipe(yf([]))]).pipe(A(function(x){x=
l(x);var y=x.next().value,E=x.next().value;x.next();return E.length?"Issue IDs":y?"Search results":"Similar issues"}),mf());this.automaticallySelectedTabIndex$=this.automaticallySelectedTab$.pipe(Cf(this.visibleTabs$),A(function(x){x=l(x);var y=x.next().value;return x.next().value.indexOf(y)}),mf());this.correctedDisplayedRows=new Cg;this.lastSelectionTab="none"};W(nV,Y);nV.\u0275dir=Y.\u0275dir;
nV.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.idsToAutoSelect$.subscribe(function(b){a.selectedIssues.reset(b);a.lastSelectionTab="Issue IDs"}));this.subscriptions.add(this.automaticallySelectedTab$.subscribe(function(b){a.liveAnnouncer.announce(b+" tab is active")}));"canonical"===this.data.edgeType&&this.subscriptions.add(Ngc(this.issuePickerSearchService,this.currentComponent).subscribe())};
nV.prototype.ngAfterViewInit=function(){this.focusManager=ly(new Tgc(this.correctedDisplayedRows,function(a,b){return a.issueId===b.issueId}))};var ASa=function(a,b){var c,d;return Ne(function(e){if(1==e.nextAddress)return e.yield(zo(),2);c=new Map(a.displayedRows.toArray().map(function(f){return[f.row.issueId,f]}));d=b.map(function(f){return c.get(f.issueId)}).filter(cl);a.correctedDisplayedRows.reset(d);xg(a.correctedDisplayedRows);Se(e)})};
nV.prototype.onPressConfirm=function(){var a=this,b,c,d,e,f,h;return Ne(function(k){if(1==k.nextAddress){if(!a.selectedIssues.size)return k.return();b=[].concat(p(a.selectedIssues));c={selectedIssueIds:b};a.dialogRef.close(c);d=a.analytics;e=d.trackEvent;f="picked-"+a.data.edgeType;h=a.lastSelectionTab;return k.yield(xhc(a,b[0]),2)}e.call(d,"assistive-issue-picker",f,h,k.yieldResult);Se(k)})};nV.prototype.onPressCancel=function(){this.dialogRef.close()};
nV.prototype.selectIssue=function(a,b){this.selectedIssues.reset([a]);this.lastSelectionTab=b};nV.prototype.onRowKeydown=function(a,b,c){if(0===a&&"ArrowUp"===c.key)this.inputEl.nativeElement.focus(),c.preventDefault();else this.focusManager.onKeydown(c)};
var xhc=function(a,b){var c,d;return Ne(function(e){if(1==e.nextAddress){if("canonical"!==a.data.edgeType)return e.return(0);c=Set;return e.yield((0,B.firstValueFrom)(Ngc(a.issuePickerSearchService,a.currentComponent)),2)}d=new c(e.yieldResult);return e.return(d.has(b)?1:0)})};nV.\u0275fac=function(a){return new (a||nV)(z(Rz),z(Tz),z(GH),z(nU),z($T),z(zH),z(Us),z(Zx))};
nV.\u0275cmp=od({type:nV,selectors:[["assistive-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&(zg(uhc,5),zg(pU,5));if(a&2){var c;yg(c=Bg())&&(b.inputEl=c.first);yg(c=Bg())&&(b.displayedRows=c)}},hostBindings:function(a,b){a&1&&L("keydown.control.enter",function(){return b.onPressConfirm()})("keydown.meta.enter",function(){return b.onPressConfirm()})("keydown.escape",function(){return b.onPressCancel()})},features:[Jf],decls:26,vars:19,consts:[["mat-dialog-title",""],[1,"heading","flex-kids-x",
"gap-xxs","align-items-center","padded-s-y"],["svgIcon","merge_type_24px",1,"rotate-180","green"],[1,"search-field","margin-bottom"],["svgIcon","search",1,"icon-m"],["type","search","placeholder","Search by title, contents, or id",3,"keydown.arrowdown","input"],["searchInput",""],["gmat-tabs","",3,"selectedIndex"],["label","Similar issues",4,"ngIf"],["label","Search results",4,"ngIf"],["label","Issue IDs",4,"ngIf"],["issuesTable",""],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",
"cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","confirm",3,"disabled","click"],["label","Similar issues"],["tab","matTab"],[4,"xapLet"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["label","Search results"],["label","Issue IDs"],["mat-dialog-content",""],["mat-table","","class","full-width",3,"dataSource","trackBy","contentChanged",4,"ngIf"],["class","center-text padded",4,"ngIf"],["mat-table","",1,"full-width",3,"dataSource","trackBy","contentChanged"],
["matColumnDef","single-selection"],["mat-header-cell","",4,"matHeaderCellDef"],["aria-label","Select issue",3,"change"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","id"],["matColumnDef","priority"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],["matColumnDef","duplicateCount"],["mat-cell","","class","center-text",4,"matCellDef"],["matColumnDef","votes"],["mat-header-cell","","matTooltip","Votes",4,"matHeaderCellDef"],
["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"row","keydown","keydown.enter","focusin","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","0",3,"checked","aria-label","value"],["anchorTarget","_blank",3,"issue","issueUrlFactory","useButtonToNavigate"],[3,"id"],[3,"issue"],["mat-header-cell","","mat-sort-header",
"status"],["mat-cell","",1,"center-text"],["mat-header-cell","","matTooltip","Votes"],["svgIcon","exposure_plus_1_24px",1,"icon-xs"],["mat-header-cell","","mat-sort-header","createdTime"],["mode","relativepast",3,"issue"],["mat-header-row",""],["mat-row","",1,"clickable",3,"row","keydown","keydown.enter","focusin","click"],[1,"center-text","padded"],["ariaLabel","Loading results",1,"margined","inline-block"],[1,"margined","inline-block"]],template:function(a,b){if(a&1){var c=r();D(0,"div",0)(1,"div",
1);G(2,"mat-icon",2);D(3,"span");Q(4,"Close as duplicate of:");F()();D(5,"header",3);G(6,"mat-icon",4);D(7,"input",5,6);L("keydown.arrowdown",function(){return b.focusManager.setActiveItem(0)})("input",function(){t(c);var k=N(8);return v(b.searchText$.next(k.value))});F()()();D(9,"mat-tab-group",7);T(10,"async");T(11,"async");P(12,YRa,4,3,"mat-tab",8);T(13,"async");P(14,cSa,4,3,"mat-tab",9);T(15,"async");P(16,hSa,4,3,"mat-tab",10);T(17,"async");F();P(18,ESa,4,3,"ng-template",null,11,Eg);D(20,"div",
12)(21,"button",13);L("click",function(){return b.onPressCancel()});Q(22," Cancel ");F();D(23,"button",14);L("click",function(){return b.onPressConfirm()});T(24,"async");Q(25," Close as duplicate ");F()()}if(a&2){var d,e,f,h;w(9);Xf("hidden",!(null==(d=V(10,7,b.visibleTabs$))?0:d.length));C("selectedIndex",V(11,9,b.automaticallySelectedTabIndex$));w(3);C("ngIf",null==(e=V(13,11,b.visibleTabs$))?null:e.includes(b.TABS.SIMILAR_ISSUES));w(2);C("ngIf",null==(f=V(15,13,b.visibleTabs$))?null:f.includes(b.TABS.SEARCH_RESULTS));
w(2);C("ngIf",null==(h=V(17,15,b.visibleTabs$))?null:h.includes(b.TABS.ISSUE_IDS));w(7);C("disabled",!V(24,17,b.selectedIssues.size$))}},dependencies:[Ev,Jv,qA,rU,bU,dU,fU,gU,hU,Ez,Wz,Xz,Yz,wU,xU,mV,$U,fV,bV,ZU,hV,cV,eV,iV,kV,DT,CT,FB,MJ,pU,sU,Kv],styles:[".mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.mat-dialog-title[_ngcontent-%COMP%]{margin:0}.heading[_ngcontent-%COMP%]{padding-left:4px}.search-field[_ngcontent-%COMP%]{position:relative}.search-field[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:absolute;top:9px;left:5px}.search-field[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]{height:40px;width:100%;min-width:320px;background-color:#f1f3f4;background-color:var(--main-search-bg);color:#202124;color:var(--text-high-contrast);border-radius:8px;border:none;padding:0 16px;padding-left:40px}.search-field[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}[_nghost-%COMP%]     .mat-tab-group .mat-tab-label-content{font-size:.8125rem}@media (forced-colors:active){[_nghost-%COMP%]   .mat-dialog-actions[_ngcontent-%COMP%]     button.gmat-button{border:1px solid;border-color:#dadce0;border-color:var(--divider)}[_nghost-%COMP%]   .mat-dialog-actions[_ngcontent-%COMP%]     button.gmat-button:focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}[_nghost-%COMP%]   .mat-dialog-actions[_ngcontent-%COMP%]     button.gmat-button:not([disabled]):focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;border-radius:2px;outline-offset:3px}[_nghost-%COMP%]   .mat-dialog-actions[_ngcontent-%COMP%]     button.gmat-button:not([disabled]):focus.confirm .mat-button-focus-overlay{background-color:#174ea6;background-color:var(--primary-c900);opacity:0}[_nghost-%COMP%]     .mat-dialog-content{margin:unset;padding:unset;max-height:46vh}.mat-table[_ngcontent-%COMP%]{background-color:inherit;margin:4px 0}.mat-table[_ngcontent-%COMP%]   .mat-column-title[_ngcontent-%COMP%]{min-width:250px;max-width:24vw}.mat-table[_ngcontent-%COMP%]   .mat-column-id[_ngcontent-%COMP%]{margin-right:-8px}.mat-table[_ngcontent-%COMP%]   .mat-column-single-selection[_ngcontent-%COMP%]{padding-left:6px}.mat-table[_ngcontent-%COMP%]   .mat-column-votes[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:5px}\n/*# sourceMappingURL=assistive_issue_picker_dialog.css.map */"],
changeDetection:0});var oV=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.expansionChange=new Yu;this.title=""};oV.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||""};oV.\u0275fac=function(a){return new (a||oV)};
oV.\u0275cmp=od({type:oV,selectors:[["b-expandable-issue-title-cell"]],inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level"},outputs:{expansionChange:"expansionChange"},features:[Fd],decls:4,vars:5,consts:[[1,"flex-kids-x","align-items-center"],["mat-icon-button","","class","gmat-button medium expander",3,"collapsed","click",4,"ngIf"],["class","leaf",4,"ngIf"],[3,"issue"],["mat-icon-button","",1,"gmat-button","medium","expander",3,"click"],["name","arrow-dropdown","size",
"small"],[1,"leaf"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,FSa,2,3,"button",1),P(2,GSa,1,0,"div",2),G(3,"b-issue-title-cell",3),F());a&2&&(Wf("margin-left",24*b.level,"px"),w(1),C("ngIf",b.expandable),w(1),C("ngIf",!b.expandable),w(1),C("issue",b.issue))},dependencies:[Ev,bD,Ez,hU],styles:[".expander[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.expander.collapsed[_ngcontent-%COMP%]{transform:rotate(-90deg)}.leaf[_ngcontent-%COMP%]{width:32px;min-width:32px;display:inline-block}"],
changeDetection:0});var pV=function(){this.issue=null;this.isDataLoaded=!1};pV.prototype.ngOnChanges=function(){var a;this.assignee=LBa(zi(null==(a=this.issue)?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=null!==this.issue};pV.\u0275fac=function(a){return new (a||pV)};
pV.\u0275cmp=od({type:pV,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},features:[Fd],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,HSa,2,2,"b-person-hovercard",1),P(2,ISa,1,0,"ng-template",null,2,Eg),F());if(a&2){var c=N(3);C("isReady",b.isDataLoaded);w(1);C("ngIf",b.assignee)("ngIfElse",c)}},dependencies:[aU,Ev,CN],encapsulation:2,changeDetection:0});var qV=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};qV.prototype.ngOnChanges=function(){var a,b,c;this.teamId=(null==(a=this.issue)?void 0:null==(b=a.aggregatedData)?void 0:null==(c=b.teamId)?void 0:c.toString())||"";var d,e;this.componentId=String(null==(d=this.issue)?void 0:null==(e=d.snapshot[0])?void 0:e.componentId)||"";this.isDataLoaded=null!==this.issue};qV.\u0275fac=function(a){return new (a||qV)};
qV.\u0275cmp=od({type:qV,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},features:[Fd],decls:4,vars:3,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled",4,"ngIf","ngIfElse"],["noData",""],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,JSa,1,3,"b-team-display",1),P(2,KSa,1,0,"ng-template",null,2,Eg),F());if(a&2){var c=N(3);C("isReady",b.isDataLoaded);
w(1);C("ngIf",b.teamId)("ngIfElse",c)}},dependencies:[aU,Ev,xR],encapsulation:2,changeDetection:0});var rV=function(){this.type=this.issue=null;this.isDataLoaded=!1};rV.prototype.ngOnChanges=function(){var a,b;this.type=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.type)||null;this.isDataLoaded=null!==this.issue};rV.\u0275fac=function(a){return new (a||rV)};
rV.\u0275cmp=od({type:rV,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},features:[Fd],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[4,"ngIf","ngIfElse"],["noData",""]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,LSa,3,3,"ng-container",1),P(2,MSa,1,0,"ng-template",null,2,Eg),F());if(a&2){var c=N(3);C("isReady",b.isDataLoaded);w(1);C("ngIf",b.type)("ngIfElse",c)}},dependencies:[aU,Ev,GI],encapsulation:2,changeDetection:0});var sV=function(){};sV.\u0275fac=function(a){return new (a||sV)};sV.\u0275mod=qd({type:sV});sV.\u0275inj=ad({imports:[aD]});var tV=function(){};tV.\u0275fac=function(a){return new (a||tV)};tV.\u0275mod=qd({type:tV});tV.\u0275inj=ad({imports:[ay,aD,tE,SB,FC,dM]});var uV=function(){this.issue=null;this.isDataLoaded=!1};uV.prototype.ngOnChanges=function(){var a;this.reporter=LBa(zi(null==(a=this.issue)?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=null!==this.issue};uV.\u0275fac=function(a){return new (a||uV)};
uV.\u0275cmp=od({type:uV,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},features:[Fd],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,NSa,2,2,"b-person-hovercard",1),P(2,OSa,1,0,"ng-template",null,2,Eg),F());if(a&2){var c=N(3);C("isReady",b.isDataLoaded);w(1);C("ngIf",b.reporter)("ngIfElse",c)}},dependencies:[aU,Ev,CN],encapsulation:2,changeDetection:0});var yhc=["theInput"],vV=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new Yu;this.commit=new Yu};vV.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};vV.\u0275fac=function(a){return new (a||vV)};
vV.\u0275cmp=od({type:vV,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&zg(yhc,5);if(a&2){var c;yg(c=Bg())&&(b.input=c.first)}},inputs:{value:"value",placeholder:"placeholder",readonly:"readonly",autoFocus:"autoFocus"},outputs:{valueChange:"valueChange",commit:"commit"},decls:2,vars:7,consts:[["type","text",3,"placeholder","disabled","ngModel","keydown.enter","ngModelChange"],["theInput",""]],template:function(a,b){a&1&&(D(0,"input",0,1),L("keydown.enter",function(c){b.readonly||b.commit.emit(c)})("ngModelChange",
function(c){return b.valueChange.emit(c)}),F());a&2&&(Xf("readonly",b.readonly)("override",b.readonly),C("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Tg,hw,ow],styles:["input[_ngcontent-%COMP%] {\n      margin-left: 2px;\n      width: 100%;\n    }\n    input[disabled][_ngcontent-%COMP%] {\n      background-color: unset;\n      color: unset;\n      border-color: transparent;\n      padding-left: 8px;\n    }"],changeDetection:0});var wV=function(){};wV.\u0275fac=function(a){return new (a||wV)};wV.\u0275mod=qd({type:wV});wV.\u0275inj=ad({imports:[aD]});var xV=function(){};xV.\u0275fac=function(a){return new (a||xV)};xV.\u0275mod=qd({type:xV});xV.\u0275inj=ad({imports:[wV,RI,aD,kM,Dw,hD,tV,sV,SB,IO,uP,bE,yR,LP]});var yV=function(){};yV.\u0275fac=function(a){return new (a||yV)};yV.\u0275mod=qd({type:yV});yV.\u0275inj=ad({imports:[Sv,HT]});var zV=function(){};zV.\u0275fac=function(a){return new (a||zV)};zV.\u0275mod=qd({type:zV});zV.\u0275inj=ad({imports:[ez,Ty,Ty]});var AV=function(){};AV.\u0275fac=function(a){return new (a||AV)};AV.\u0275mod=qd({type:AV});AV.\u0275inj=ad({imports:[YU,Ty,Ty]});var BV=function(){};BV.\u0275fac=function(a){return new (a||BV)};BV.\u0275mod=qd({type:BV});BV.\u0275inj=ad({providers:[{provide:Ugc,useValue:{enabled:!0}}],imports:[aD,yV,xV,SB,Zz,zV,AV,HT,FC,AK,qU,tU]});var CV=function(a,b,c,d){this.activeSession=a;this.issueApi=b;this.analytics=c;this.errorHandler=d;this.onCc=new Yu};CV.prototype.ngOnInit=function(){};
CV.prototype.toggle=function(){var a=this;this.analytics.trackEvent("issueCard","click","cc "+(this.ccState?"REMOVE":"ADD"));this.onCc.emit(!this.ccState);this.ccState?(this.ccState=!1,this.issueApi.unCcUser(this.issueId).then(function(){}).catch(function(b){a.ccState=!0;a.errorHandler.errorHandler(null,b)})):(this.ccState=!0,this.issueApi.updateIssue(this.issueId,{issueId:this.issueId,actions:[{fieldName:"ccs",value:this.activeSession.getUserEmail(),actionType:"ADD"}]}).then(function(){}).catch(function(b){a.ccState=
!1;a.errorHandler.errorHandler(null,b)}))};CV.\u0275fac=function(a){return new (a||CV)(z(Us),z(AF),z(zH),z(XF))};
CV.\u0275cmp=od({type:CV,selectors:[["b-cc-button"]],inputs:{issueId:"issueId",ccState:"ccState"},outputs:{onCc:"onCc"},decls:3,vars:1,consts:[["mat-button","",1,"gmat-button","medium",3,"click"],[4,"ngIf"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){return b.toggle()}),P(1,PSa,2,0,"ng-container",1),Q(2,"CC me\n"),F());a&2&&(w(1),C("ngIf",b.ccState))},dependencies:[Ev,Ez],encapsulation:2});var DV=function(a,b){Y.call(this);this.errorHandler=a;this.issueFridge=b;this.upvoted=!1;this.voteCount=0;this.onVote=new Yu;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};W(DV,Y);DV.\u0275dir=Y.\u0275dir;
DV.prototype.onClick=function(){var a=this;if(null!=this.issueId&&!this.isSaving){var b=(this.upvoted=!this.upvoted)?1:-1;this.voteCount+=b;this.onVote.emit(this.upvoted);this.isSaving=!0;this.issueFridge.setVoted(String(this.issueId),this.upvoted).pipe(nf(),Af(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b})}};DV.\u0275fac=function(a){return new (a||DV)(z(XF),z(GH))};
DV.\u0275cmp=od({type:DV,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&Xf("no-votes",0>=b.voteCount)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},features:[Jf],decls:4,vars:5,consts:[["mat-button","",1,"gmat-button","small",3,"matTooltip","click"],["svgIcon","exposure_plus_1_24px",1,"icon-m"],[3,"title"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){return b.onClick()}),G(1,"mat-icon",1),D(2,"output",
2),Q(3),F()());a&2&&(C("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),Nf("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),w(2),gg("title","",b.voteCount," votes on this issue"),w(1),S(" ",99999<b.voteCount?"99999+":b.voteCount," "))},dependencies:[qA,Ez,FB],styles:["[_nghost-%COMP%]{display:inline-block;margin-right:12px}.gmat-button[_ngcontent-%COMP%]{box-sizing:border-box;height:24px;line-height:24px;min-width:42px;border-radius:12px;padding:0 4px;font-size:.8125rem;text-align:center;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.gmat-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px}.gmat-button[_ngcontent-%COMP%]:hover{box-shadow:inset 0 0 0 1px #d2e3fc;box-shadow:inset 0 0 0 1px var(--primary-c100)}.gmat-button[aria-pressed=true][_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse);box-shadow:none}.gmat-button[aria-pressed=true][_ngcontent-%COMP%]:hover{background-color:#4285f4;background-color:var(--primary-btn-bg-hover)}button.gmat-button.mat-button[aria-pressed=true][_ngcontent-%COMP%]{color:#fff;color:var(--text-inverse)}.bv2-material   [_nghost-%COMP%]     button.gmat-button:not(.mat-icon-button).small{padding:0 4px}output[_ngcontent-%COMP%]{display:inline-block;box-sizing:border-box;height:20px;line-height:20px;min-width:20px;border-radius:10px;margin-left:4px;margin-right:-16px;transform:translate(0, -33%);padding:0 4px;font-weight:500;font-size:.75rem;text-align:center;background-color:#188038;background-color:var(--good-bg-inverse);color:#fff;color:var(--text-inverse);box-shadow:0 0 0 1px #fff;box-shadow:0 0 0 1px var(--background);position:relative;z-index:1}[_nghost-%COMP%], output[_ngcontent-%COMP%]{transition:margin-right .1s ease-out}.no-votes[_nghost-%COMP%]{margin-right:2px}.no-votes[_nghost-%COMP%]   output[_ngcontent-%COMP%]{margin-right:-22px;visibility:hidden}/*# sourceMappingURL=app_vote_button.css.map */"],
changeDetection:0});var cTa=function(){return[]},EV=function(a,b,c,d,e,f,h){Y.call(this);var k=this;this.issuesApi=a;this.cdr=b;this.activeSession=c;this.analytics=d;this.relationshipService=e;this.issueFridge=f;this.butterBar=h;this.STATUS_JS_FULL_TEXT=Uk;this.ISSUE_PRIORITY_TEXT_JS=QTb;this.ISSUE_PRIORITY_ENUM=GTb;this.providedIssueId$=new B.ReplaySubject(1);this.issueFetchResponse$=this.providedIssueId$.pipe(zf(function(q){return k.issuesApi.getIssue(q)}));this.editIssue=Qk;this.FormattingMode=IC;this.init=new B.ReplaySubject(1)};
W(EV,Y);EV.\u0275dir=Y.\u0275dir;EV.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issueFetchResponse$.pipe(Af(this.destroyed$)).subscribe(function(b){a.issue=b.issue;a.firstEvent=b.firstEvent;a.cdr.markForCheck();a.init.next()})};EV.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
EV.prototype.getNote=function(){var a,b;return{commentNumber:1,unlinkifiedComment:(null==(a=this.firstEvent)?void 0:a.unlinkifiedComment)||"",formattedComment:null==(b=this.firstEvent)?void 0:b.formattedComment}};
var bTa=function(a,b){return wi(b).includes(a.activeSession.getUserEmail())},XSa=function(a,b){var c;return Ne(function(d){if(1==d.nextAddress)return c=a.issueId,gG(a.issueFridge,b,function(e){var f=e.parentIssueIds.indexOf(c);0>f||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),Oe(d,2,3),d.yield((0,B.firstValueFrom)(a.relationshipService.delete(c,"CHILD",b)),3);if(2!=d.nextAddress)return Pe(d),a.issueFridge.poke(b),Qe(d,0);Re(d);a.butterBar.showWarning("Error removing the parent issue.");return d.jumpTo(3)})};
EV.\u0275fac=function(a){return new (a||EV)(z(BF),z(yD,2),z(Us),z(zH),z(bI),z(GH),z(VF))};
EV.\u0275cmp=od({type:EV,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},features:[lg([yD]),Jf],decls:2,vars:1,consts:[["role","dialog","aria-label","Issue Hovercard",1,"onedev-hovercard-content"],[4,"ngIf"],[1,"bv2-hovercard-wide"],[3,"href"],[1,"bv2-issue-card-title"],[1,"issue-card-id-snippets"],[3,"labelOnlyMode","accessLevel"],[1,"priority-status"],[1,"bv2-priority",3,"ngClass"],[3,"ngSwitch",4,"ngIf"],[1,"issue-card-buttons",
"margin-y"],[3,"issueId","ccState","onCc"],["class","bv2-issue-card-comment",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"model","hovercardEnabled"],[3,"issueId","voteCount","upvoted"],["mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"gmat-button","medium",3,"click"],["mode","date",1,"float-right",3,"timestamp"],[1,"bv2-issue-card-comment"],[3,"issueId","issueAccessLevel","formattingMode","note"]],template:function(a,b){a&1&&(D(0,"div",
0),P(1,dTa,23,16,"ng-container",1),F());a&2&&(w(1),C("ngIf",b.issue&&b.issue.snapshot[0]))},dependencies:[Cv,Ev,Fv,Gv,Hv,XO,Ez,FB,uO,PL,jT,DV,CV],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;padding:16px}.issue-card-buttons[_ngcontent-%COMP%]{margin-left:-12px}h3[_ngcontent-%COMP%]{display:inline-flex}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}.priority-status[_ngcontent-%COMP%]{display:inline-flex}"]});var FV=function(){};FV.\u0275fac=function(a){return new (a||FV)};FV.\u0275mod=qd({type:FV});FV.\u0275inj=ad({imports:[aD,SB,FC]});var GV=function(){};GV.\u0275fac=function(a){return new (a||GV)};GV.\u0275mod=qd({type:GV});GV.\u0275inj=ad({providers:[{provide:dfc,useValue:EV}],imports:[aD,iP,SB,FC,NO,kM,IT,FV]});var HV=function(a){this.issuesApi=a};HV.prototype.get=function(a){return this.issuesApi.getRelatedIssues({resourceType:void 0===a.resourceType?null:a.resourceType,resourceId:void 0===a.resourceId?null:a.resourceId,q:a.query,trackerId:void 0===a.trackerId?null:a.trackerId,s:void 0===a.sort?null:a.sort,count:void 0===a.count?null:a.count,p:void 0===a.page?null:a.page})};HV.\u0275fac=function(a){return new (a||HV)(n(AF))};HV.\u0275prov=$c({token:HV,factory:HV.\u0275fac,providedIn:"root"});var IV=function(a,b,c,d,e,f,h){Y.call(this);var k=this;this.cdr=a;this.paths=b;this.issueFridge=c;this.relatedIssues=d;this.errorHandler=e;this.domSafe=f;this.currentTracker=h;this.STATUS_ICON=TTb;this.entrySelect=new Yu;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new Yu;this.getTextToPutInInputOnSelect=function(){return k.query}};W(IV,Y);IV.\u0275dir=Y.\u0275dir;
IV.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(jf(250),Af(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};IV.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(p(this.defaultChoices),p(this.asyncChoices)))};IV.prototype.selectIssue=function(a){zhc(this,[a])};
var Bhc=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(Ahc(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return fo(b)?[b]:[]},Ahc=function(a){return!a.some(function(b){return!fo(b)})};IV.prototype.search=function(a){"string"===typeof a&&(this.query=a)};
IV.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(""===a)Chc(this);else{var b=Bhc(a);1===b.length||1<b.length&&this.allowMultipleIds?(this.lastSearchType="id",Dhc(this,b,a)):(this.lastSearchType="query",this.searchAsync(a))}};
var Chc=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;zhc(a,[])},zhc=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;null==(c=a.autocomplete)||Z$a(c)},Dhc=function(a,b,c){var d;"issue"===(null==(d=a.currentResource)?void 0:d.type)&&1===b.length&&b[0]===a.currentResource.id?(a.searchingForSelf=!0,Chc(a)):(a.choices=Ehc(a,b),a.hasLoadedResults=!1,a.issueFridge.watchSet(b).pipe(nf(),Af(a.destroyed$)).subscribe(function(e){if(a.currentQuery===
c){var f=e.reduce(function(h,k){var q=sa(k.snapshot);return h.set(k.issueId,{resourceId:k.issueId,displayText:q.title,status:q.status,relations:[]})},new Map);Ja(b);e=b.map(function(h){return f.get(h)});e.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=e;a.choices=[].concat(p(a.choices),p(a.asyncChoices));zhc(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))};
IV.prototype.searchAsync=function(a){var b=this;this.choices=Fhc(this,a);this.hasLoadedResults=!1;if(Oi(a))this.hasLoadedResults=!0;else{var c=Ghc(a,this.defaultChoices),d,e;this.relatedIssues.get({query:c,trackerId:this.currentTracker.getTrackerId(),resourceType:null==(d=this.currentResource)?void 0:d.type,resourceId:Xk(null==(e=this.currentResource)?void 0:e.id),nonParallelRequest:!0}).then(function(f){b.currentQuery===a&&(f=f.issueDigests.map(function(h){return{resourceId:h.issueId,displayText:h.title,
status:h.status,relations:[]}}),b.choices=[].concat(p(b.choices),p(f)),b.cdr.detectChanges())},function(f){b.errorHandler.errorHandler(null,f)}).finally(function(){b.hasLoadedResults=!0})}};var Ehc=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},Fhc=function(a,b){return Oi(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};IV.prototype.getIssueLink=function(a){return this.paths.editIssue(a.resourceId)};
var jTa=function(a){return a.relations.map(function(b){return Hhc.get(b)}).filter(function(b){return!!b}).join("/")},Ghc=function(a,b){if(0===b.length)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};IV.prototype.onEnter=function(a){var b;(null==(b=this.autocomplete)?0:b.panelOpen)&&a.stopPropagation()};Qh.Object.defineProperties(IV.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});
IV.\u0275fac=function(a){return new (a||IV)(z(yD,2),z(xE),z(GH),z(HV),z(XF),z(zL),z(jG))};
IV.\u0275cmp=od({type:IV,selectors:[["b-simple-issue-picker"]],viewQuery:function(a,b){a&1&&zg(XJ,5);if(a&2){var c;yg(c=Bg())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",currentResource:"currentResource",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},features:[lg([HV,yD]),Jf,Fd],decls:9,vars:8,consts:[[1,"bv2-issue-picker"],[4,"ngIf"],[1,"bv2-resource-picker","bv2-picker"],["type","text","placeholder","Type issue ID or search query...",
"autocomplete","off","spellcheck","false","aria-autocomplete","list","role","combobox","autofocus","autofocus","cdkFocusInitial","",1,"bv2-resource-picker-input",3,"ngModel","matAutocomplete","ngModelChange","keydown.enter","keydown.alt.arrowright"],[1,"issue-picker","base-resource-picker",3,"displayWith","optionActivated","optionSelected"],["auto","matAutocomplete"],["disabled","",4,"ngIf"],["disabled","","class","bv2-resource-picker-message",4,"ngIf"],["class","bv2-resource-picker-item bv2-issue-picker-item",
3,"value",4,"ngFor","ngForOf"],[1,"bv2-issue-picker-message"],["disabled",""],[1,"spinner-container"],[3,"large"],["disabled","",1,"bv2-resource-picker-message"],[1,"bv2-resource-picker-item","bv2-issue-picker-item",3,"value"],["role","region","tabindex","0"],["class","icon-s margin-none",3,"svgIcon",4,"ngIf"],[1,"bv2-issue-picker-issue-id",3,"title"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["mat-icon-button","","aria-label","Go to issue page.",
"data-stable","issue-pop-out","target","_blank",1,"gmat-button","small","bv2-issue-picker-pop-out",3,"onedevHovercardTrigger","href","click"],["svgIcon","pop-out",1,"icon-s"],[1,"bv2-issue-picker-relations"],[1,"bv2-issue-picker-description",3,"title","innerHTML"],[1,"icon-s","margin-none",3,"svgIcon"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""]],template:function(a,b){a&1&&(D(0,"div",0),P(1,eTa,3,0,"div",1),D(2,"div",2)(3,"input",3),L("ngModelChange",function(d){return b.search(d)})("keydown.enter",
function(d){return b.onEnter(d)})("keydown.alt.arrowright",function(){b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice))}),F(),D(4,"mat-autocomplete",4,5),L("optionActivated",function(d){b.activeChoice=null==d.option?null:d.option.value})("optionSelected",function(d){return b.selectIssue(d.option.value)}),P(6,fTa,3,1,"mat-option",6),P(7,gTa,2,0,"mat-option",7),P(8,kTa,14,13,"mat-option",8),F()()());if(a&2){var c=N(5);w(1);C("ngIf",b.searchingForSelf);w(2);C("ngModel",b.query)("matAutocomplete",
c);Nf("aria-label",0<b.selectedIssues.length?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue");w(1);C("displayWith",b.getTextToPutInInputOnSelect);w(2);C("ngIf",""!==b.query&&!b.hasLoadedResults);w(1);C("ngIf",""!==b.query&&!!b.hasLoadedResults&&0===b.choices.length);w(1);C("ngForOf",b.choices)}},dependencies:[Dv,Ev,qA,Tg,hw,ow,PJ,QJ,UJ,RJ,EV,YJ,XJ,Hz,Fz,MJ,II],styles:['b-simple-issue-picker input{width:450px}b-simple-issue-picker .bv2-issue-picker-message{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}.mat-autocomplete-panel.issue-picker{max-height:400px;width:450px}.mat-autocomplete-panel.issue-picker .mat-option{font-size:inherit;line-height:inherit;white-space:inherit;height:auto;min-height:40px;padding:10px}.mat-autocomplete-panel.issue-picker .bv2-resource-picker-item{cursor:pointer;padding:10px}.mat-autocomplete-panel.issue-picker .bv2-resource-picker-item:hover,.mat-autocomplete-panel.issue-picker .bv2-resource-picker-item.selected{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.mat-autocomplete-panel.issue-picker .bv2-resource-picker-message{color:#5f6368;color:var(--muted);padding:5px;text-align:center}.mat-autocomplete-panel.issue-picker .margin-none{margin:0}.mat-autocomplete-panel.issue-picker .bv2-issue-picker-relations{color:#5f6368;color:var(--muted);float:right;font-style:italic}.mat-autocomplete-panel.issue-picker .bv2-issue-picker-issue-id{margin-left:5px;opacity:.8}.mat-autocomplete-panel.issue-picker .bv2-issue-picker-description{margin-left:20px}.mat-autocomplete-panel.issue-picker .bv2-issue-picker-pop-out{float:right;visibility:hidden}.mat-autocomplete-panel.issue-picker .bv2-resource-picker-item:hover .bv2-issue-picker-pop-out,.mat-autocomplete-panel.issue-picker .bv2-resource-picker-item.selected .bv2-issue-picker-pop-out{visibility:visible}.mat-autocomplete-panel.issue-picker .spinner-container{height:40px}[mat-dialog-content] .bv2-rel-issue-bubble-issue-picker{padding-bottom:5px}[mat-dialog-content] .bv2-rel-issue-id-link{margin-left:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[mat-dialog-content] .bv2-rel-issue-title-link span{display:inline-block}[mat-dialog-content] .bv2-rel-issue-title-link span.bv2-rel-issue-title-link-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:350px;vertical-align:middle;text-decoration:underline}[mat-dialog-content] .bv2-rel-issue-error{color:#c5221f;color:var(--bad-text)}[mat-dialog-content] .bv2-rel-issue-narrow-to-component{color:#1a73e8;color:var(--text-primary);float:left;height:32px;margin-top:7px;width:28px}[mat-dialog-content] .bv2-rel-issue-issue-picker{float:left;margin-top:10px;vertical-align:top}[mat-dialog-content] .bv2-rel-issue-text{float:left;width:370px}[mat-dialog-content] .bv2-rel-issue-apply-button{float:right}[mat-dialog-content] .bv2-rel-issue-preview-link{float:left;margin:0px}[mat-dialog-content] .bv2-rel-issue-row,[mat-dialog-content] .bv2-rel-issue-issue-picker-full-width{width:475px}[mat-dialog-content] .bv2-rel-issue-search{margin-top:10px;clear:both}[mat-dialog-content] .bv2-narrow-search-comp-btn{background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/filter.png");background-position:center center;background-size:20px 16px;cursor:pointer;display:inline-block;height:25px;opacity:.8;vertical-align:middle;width:25px}[mat-dialog-content] .bv2-narrow-search-comp-btn[aria-checked=true]{opacity:.2}\n'],
encapsulation:2});var Hhc=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"],["CANONICAL","canonical"]]);var JV=function(a,b,c){this.dialogRef=a;this.params=c;this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1};this.isQueryRestricted=!1;this.selectedIssues=[];this.data=Object.assign({},this.DEFAULTS,b);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":""},oTa=function(a){if(""!==a.queryRestriction&&null!=a.issuePicker){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(Wn(a.queryRestriction)+" ?"),""):a.queryRestriction+
" "+b}};g=JV.prototype;g.onQueryChange=function(a){this.isQueryRestricted=""!==this.queryRestriction&&a.includes(this.queryRestriction)};g.onEnter=function(){if(0!==this.selectedIssues.length)this.onPressConfirm()};g.onEscape=function(){this.dialogRef.close()};g.onPressConfirm=function(){var a,b={selectedIssueIds:this.selectedIssues.map(function(c){return c.resourceId}),lastSearchType:null==(a=this.issuePicker)?void 0:a.lastSearchType};this.dialogRef.close(b)};g.onPressCancel=function(){this.dialogRef.close()};
JV.\u0275fac=function(a){return new (a||JV)(z(Rz),z(Tz),z(AI))};
JV.\u0275cmp=od({type:JV,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&zg(IV,5);if(a&2){var c;yg(c=Bg())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&L("keydown.escape",function(){return b.onEscape()})},decls:15,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-rel-issue-text"],["class","bv2-rel-issue-preview-link",4,"ngIf"],[1,"bv2-rel-issue-search"],[1,"bv2-rel-issue-bubble-issue-picker"],["class","bv2-rel-issue-narrow-to-component",4,"ngIf"],[1,
"bv2-rel-issue-issue-picker",3,"defaultChoices","currentResource","allowMultipleIds","keydown.enter","entrySelect","queryChange"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","confirm",3,"disabled","click"],[1,"bv2-rel-issue-preview-link"],["target","_blank","class","bv2-rel-issue-id-link",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"bv2-rel-issue-id-link",3,"href"],["target","_blank",
1,"keep-underline","bv2-rel-issue-title-link",3,"href"],[1,"bv2-rel-issue-title-link-txt"],["svgIcon","pop-out",1,"icon-xs"],[1,"bv2-rel-issue-narrow-to-component"],["role","checkbox","tabindex","0","aria-label","Include subcomponents",1,"bv2-narrow-search-comp-btn","keep-focus-ring",3,"matTooltip","click","keyup.space"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1),F(),D(2,"div",1)(3,"div",2),P(4,mTa,2,1,"div",3),P(5,nTa,6,2,"div",3),F(),D(6,"div",4)(7,"div",5),P(8,pTa,2,2,"div",6),D(9,"b-simple-issue-picker",
7),L("keydown.enter",function(){return b.onEnter()})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),F()()()(),D(10,"div",8)(11,"button",9),L("click",function(){return b.onPressCancel()}),Q(12," Cancel "),F(),D(13,"button",10),L("click",function(){return b.onPressConfirm()}),Q(14," Confirm "),F()());a&2&&(w(1),S(" ",b.data.title,"\n"),w(3),C("ngIf",1<b.selectedIssues.length),w(1),C("ngIf",1===b.selectedIssues.length),w(3),C("ngIf",!!b.queryRestriction),
w(1),Xf("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),C("defaultChoices",b.data.defaultChoices)("currentResource",b.data.currentResource)("allowMultipleIds",b.data.allowMultipleIds),w(4),C("disabled",!b.selectedIssues.length))},dependencies:[Dv,Ev,qA,Ez,Wz,Xz,Yz,FB,IV],encapsulation:2});var KV=function(){};KV.\u0275fac=function(a){return new (a||KV)};KV.\u0275mod=qd({type:KV});KV.\u0275inj=ad({imports:[RI,aD,Dw,CK,GV,ZJ,SB,Zz,FC,AK]});var Ihc=new Ad("XapHatsSurveyApiKey"),Jhc=new Ad("XapHatsSurveyLocale"),Khc=new Ad("XapHatsSurveyWindow"),Lhc=new Ad("XapHatsSurveyListnrProductId");var Mhc=new Map([[0,1],[1,2]]),LV=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:null!=c?c:"en-US",window:d};h=uTb(xTb,"help.service.Lazy.create",b,{apiKey:h.apiKey||h.apiKey,environment:h.environment||h.environment,helpCenterPath:h.helpCenterPath||h.helpCenterPath,locale:h.locale||h.locale||"en-US".replace(/-/g,"_"),nonce:h.nonce||h.nonce,productData:h.productData||h.productData,receiverUri:h.receiverUri||h.receiverUri,renderApiUri:h.renderApiUri||h.renderApiUri,theme:h.theme||h.theme,
window:h.window||h.window});return new wTb(h)};this.helpService=e?e.runOutsideAngular(f):f()},Nhc=function(a,b,c){c=void 0===c?{}:c;var d=void 0===d?{}:d;var e=d.anonymous?void 0:d.authUser||0;return(new B.Observable(function(f){a.helpService.requestSurvey({triggerId:b,enableTestingMode:d.enableTestingMode,nonProd:d.nonProd,callback:function(h){null!=h.surveyData&&f.next(h.surveyData);f.complete()},authuser:e})})).pipe(zf(function(f){return new B.Observable(function(h){var k;a.helpService.presentSurvey({surveyData:f,
colorScheme:d.theme?Mhc.get(d.theme):1,authuser:e,customZIndex:null!=(k=d.zIndex)?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,listener:{surveyClosed:function(){h.complete()}}});h.next(f.surveyMetadata)})}))};LV.\u0275fac=function(a){return new (a||LV)(n(Ihc),n(Lhc),n(Jhc,8),n(Khc,8),n(Df,8))};LV.\u0275prov=$c({token:LV,factory:LV.\u0275fac,providedIn:"root"});var Ohc=xp.ISSUE_PICKER,MV=function(a,b,c,d){this.dialog=a;this.analytics=b;this.hatsService=c;this.activeSession=d};
MV.prototype.open=function(a,b){var c=this,d=Phc(this,a),e=d.dialog,f=d.config;return new Promise(function(h){Pz(c.dialog.open(e,f)).subscribe(function(k){var q,u=null!=(q=null==k?void 0:k.selectedIssueIds)?q:[],x;k=null!=(x=null==k?void 0:k.lastSearchType)?x:"";x=[a.originIsBulk?"bulk":void 0,1<u.length?"search-multi":"search",a.edgeType].filter(Boolean).join("-");c.analytics.trackEvent(Ohc,x,k);null==b||b(u);h(u);c.activeSession.isInternalSession()&&"id"===k&&Nhc(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(nf()).subscribe()})})};
var Phc=function(a,b){var c={panelClass:"no-jitter",data:b};return $C(a.activeSession,"enableIDPCanonicalIssuePicker")&&"canonical"===b.edgeType?(c.width="60vw",c.minWidth="800px",{dialog:nV,config:c}):{dialog:JV,config:c}};MV.\u0275fac=function(a){return new (a||MV)(n(Uz),n(zH),n(LV),n(Us))};MV.\u0275prov=$c({token:MV,factory:MV.\u0275fac,providedIn:"root"});var NV=function(){};NV.\u0275fac=function(a){return new (a||NV)};NV.\u0275mod=qd({type:NV});NV.\u0275inj=ad({imports:[KV,BV]});var OV=function(a){this.dialogRef=a;this.reporter="";this.autocompleteActive=!1};OV.prototype.enableSubmit=function(){return""!==this.reporter};OV.prototype.cancel=function(){this.dialogRef.close()};OV.prototype.save=function(){this.dialogRef.close(this.reporter)};OV.\u0275fac=function(a){return new (a||OV)(z(Rz))};
OV.\u0275cmp=od({type:OV,selectors:[["b-reporter-picker-dialog"]],decls:12,vars:3,consts:[["mat-dialog-title",""],["matInput","",3,"bContactAutocomplete","ngModel","ngModelChange","autocompleteActive","keydown"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Change Reporter"),F(),D(2,"mat-dialog-content")(3,"mat-form-field")(4,"mat-label"),Q(5," Reporter "),F(),D(6,"input",1),L("ngModelChange",
function(c){return b.reporter=c})("autocompleteActive",function(c){return b.autocompleteActive=c})("keydown",function(c){"Enter"===c.key&&!b.autocompleteActive&&b.enableSubmit()&&b.save()}),F()()(),D(7,"mat-dialog-actions")(8,"button",2),L("click",function(){return b.cancel()}),Q(9," Cancel "),F(),D(10,"button",3),L("click",function(){return b.save()}),Q(11," Save "),F()());a&2&&(w(6),C("bContactAutocomplete","SINGLE")("ngModel",b.reporter),w(4),C("disabled",!b.enableSubmit()))},dependencies:[Tg,
hw,ow,Ez,Wz,Xz,Yz,jA,hA,nA,mR],encapsulation:2});var Qhc=["addCommentDialog"],PV=function(a,b,c,d,e,f,h,k,q,u,x,y){Y.call(this);var E=this;this.componentFridge=a;this.cdr=b;this.activeSession=c;this.analytics=d;this.hotkeys=e;this.componentActions=f;this.issueTypeDialog=h;this.copyIssueIdService=k;this.matDialog=q;this.$log=u;this.issuePicker=x;this.userPreferencesManager=y;this.currentUserEmail=this.activeSession.getUserEmail();this.uniqueComponentIds$=new B.Subject;this.effortSpec$=this.uniqueComponentIds$.pipe(zf(function(H){return E.componentFridge.watchSet(H)}),
A(function(H){return E.getCommonEffortSpec(H)}),wf({bufferSize:1,refCount:!0}));this.enableBulkEstimatedEffortOption$=this.effortSpec$.pipe(A(function(H){return void 0!==H}));this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new Yu;this.onCreateHotlist=new Yu;this.onLoadHotlist=new Yu;this.externalWarnings=[];this.enableRecaptcha=$C(this.activeSession,"enableRecaptcha")&&$C(this.activeSession,"enableBulkEditCaptchaUi");this.recaptchaResponse="";this.controllerName="baseControls"};W(PV,Y);
var Rhc=function(a){var b=new $N,c;b.formattingMode=Ki(null==(c=jE(a.userPreferencesManager).textDisplayPreferences)?void 0:c.lastPublishMode);return b};PV.prototype.hasSelectedIssues=function(){return 0<this.getSelectedIssues().length};var Shc=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},qTa=function(a){return Shc(a)?"Mark as read":"Mark as unread"},yp=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
PV.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=l(a),c=b.next();!c.done;c=b.next()){var d=void 0;null!=(d=c.value).hotlistId||(d.hotlistId=[])}this.hotlistIdMatrix=a.map(function(e){return e.hotlistId});this.cdr.detectChanges();a=Thc(a);this.uniqueComponentIds$.next(a)};
var Thc=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.includes(c.componentId)||b.push(c.componentId);return b},Uhc=function(a){if(!ZC(a.activeSession)){a.externalWarnings=[];var b=new Set(a.getSelectedIssues().map(function(e){return e.componentId}));b=l(b);for(var c=b.next(),d={};!c.done;d={id$jscomp$371:d.id$jscomp$371},c=b.next())d.id$jscomp$371=c.value,a.componentActions.get(d.id$jscomp$371).then(function(e){if(a.activeSession.isInternalSession()&&op(e)||$Tb(a.activeSession)&&
pp(e)){var f,h=PQa(null==(f=e.componentPathInfo)?void 0:f.componentPathName,e.componentId);a.externalWarnings.push({path:h,accessLevel:e.accessLimit.accessLevel});a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.id$jscomp$371+".")}}(d))}};g=PV.prototype;g.getCommonEffortSpec=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(!b.effortSpec)return;b=b.effortSpec;var c=b.id;if(!d){var d=c;var e=b}else if(d!==c)return}return e};
g.bulkEdit=function(a){switch(a){case "ASSIGNEE":QV(this,null,0);break;case "COMPONENT":Vhc(this);break;case "VERIFIER":QV(this,null,1);break;case "REPORTER":Whc(this);break;case "CHANGELIST":RV(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":Xhc(this);break;case "FOUND_IN":RV(this,"foundInVersion","Found In");break;case "VERIFIED_IN":RV(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":RV(this,"targetedToVersion","Targeted To");break;case "COMMENT":Yhc(this);break;
case "SLO_START_TIME":Zhc(this);break;case "ESTIMATED_EFFORT":$hc(this);break;case "CC":RV(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
g.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=a.newValue)&&SV(this,"priority",a);break;case "SEVERITY":(a=a.newValue)&&SV(this,"severity",a);break;case "STATUS":(a=a.newValue)&&QV(this,Wk[a],"DUPLICATE"===a?3:void 0);break;case "TYPE":(a=a.newValue)&&SV(this,"type",a);break;case "IS_ARCHIVED":SV(this,"isArchived",""+a.newValue);break;case "IN_PROD":SV(this,"inProd",""+a.newValue);break;case "CC":SV(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+
a.field)}};
g.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?TV(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):TV(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?TV(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):TV(this,
{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?TV(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):TV(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":QV(this,Wk.DUPLICATE,3);break;default:this.$log.error("unsupported issue relation: "+
a.issueRelation)}};g.bulkMarkIssueRead=function(){var a=Shc(this);SV(this,"readState",a?"true":"")};
var SV=function(a,b,c,d){var e={fieldName:b,value:c};void 0!==d&&(e.actionType=d);var f=yp(a),h=[e];"deletionReason"===b&&h.push({fieldName:"isDeleted",value:"true"});d=function(){var k={bulkEditOps:[{issueIds:f,actions:h}]};a.enableRecaptcha&&""!==a.recaptchaResponse&&(k.recaptchaToken=a.recaptchaResponse);a.onSave.emit(k)};"type"!==b||"VULNERABILITY"!==c&&"PRIVACY_ISSUE"!==c?d():("VULNERABILITY"===c&&ON(a.issueTypeDialog,"VULNERABILITY",d,function(){}),"PRIVACY_ISSUE"===c&&ON(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},QV=function(a,b,c){a.hasSelectedIssues()&&(Uhc(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},aic=function(a){var b=a.onSave,c=b.emit,d=yp(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||xQa(e);e=l(MQa(e));for(var h=e.next();!h.done;h=e.next()){var k=l(h.value);h=k.next().value;k=k.next().value;void 0!==k&&f.push({fieldName:h,value:k})}c.call(b,{bulkEditOps:[{issueIds:d,actions:f}],recaptchaToken:a.stateModal.issueEditBuilder.recaptchaResponse})},Whc=
function(a){a.hasSelectedIssues()&&(Uhc(a),Pz(a.matDialog.open(OV,{width:"400px"})).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&SV(a,"reporter",b)}),a.hotkeys.pause())},RV=function(a,b,c,d){d=void 0===d?!1:d;a.hasSelectedIssues()&&(Pz(a.matDialog.open(WT,{width:"400px",data:{fieldDisplayName:c}})).pipe(Af(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&bic(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},Zhc=function(a){a.hasSelectedIssues()&&(Pz(a.matDialog.open(UT,
{width:"330px",data:{fieldDisplayName:"SLO Start Time"}})).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();if(b&&(b=b.date)){var c=[];c.push({fieldName:"sloStartTime",value:String(b.seconds)});c.length&&a.onSave.emit({bulkEditOps:[{issueIds:yp(a),actions:c}]})}}),a.hotkeys.pause())},$hc=function(a){var b=Gk(a.effortSpec$);a.hasSelectedIssues()&&void 0!==b&&(Pz(a.matDialog.open(VT,{width:"400px",data:{fieldDisplayName:"Estimated Effort",effortSpec:b}})).pipe(Af(a.destroyed$)).subscribe(function(c){a.hotkeys.unpause();
if(c){var d=[];d.push({fieldName:"effortEstimate",value:c.estimate});a.onSave.emit({bulkEditOps:[{issueIds:yp(a),actions:d}]})}}),a.hotkeys.pause())},bic=function(a,b,c,d,e){e=void 0===e?!1:e;c=Ni(c);d=Ni(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return Rpa(q,h).map(function(u){return u.trim()})};Oi(c)||(c=k(c),e&&(c=c.filter(function(q){return!isNaN(q)})),f.push.apply(f,p(c.map(function(q){return{fieldName:b,value:q,actionType:"ADD"}}))));
Oi(d)||(d=k(d),f.push.apply(f,p(d.map(function(q){return{fieldName:b,value:q,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:yp(a),actions:f}]})},Vhc=function(a){a.hasSelectedIssues()&&(Pz(a.matDialog.open(ST,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:yp(a),actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),a.analytics.trackEvent(a.controllerName,
"bulkMove"))}),a.hotkeys.pause())},cic=function(a){a.hasSelectedIssues()&&(Pz(a.matDialog.open(RT,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.analytics.trackEvent(a.controllerName,"bulkFlagAsSpam"),SV(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},Yhc=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&(a.comment||(a.comment=Rhc(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",
minWidth:512,maxWidth:512}),Pz(a.addCommentDialogRef).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&O4b(a.comment)&&SV(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),Uhc(a))},xTa=function(a){var b;null==(b=a.addCommentDialogRef)||b.close(!0)},Xhc=function(a){a.hasSelectedIssues()&&Pz(a.matDialog.open(jM,{data:a.getSelectedIssues(),width:"500px"})).pipe(Af(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),a.analytics.trackEvent(a.controllerName,
"bulkCustomField"))})};
PV.prototype.handleHotlistPickerSave=function(a){var b=a.oldSelectionMap,c=[],d=[],e=0;Object.entries(a.newSelectionMap).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;h!==b[f]&&(h?c.push(f):d.push(f),e++)});a=[];c.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:c.join(",")});d.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:d.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:yp(this),actions:a}]}),this.analytics.trackEvent(this.controllerName,"applyHotlists",
"numHotlists",e))};var TV=function(a,b){var c=b.actionType,d=b.fieldName;a.issuePicker.open({title:b.title,edgeType:b.edgeType,originIsBulk:!0},function(e){a.hotkeys.unpause();0!==e.length&&(e=e[0],a.onSave.emit({bulkEditOps:[{issueIds:yp(a),actions:[{fieldName:d,value:e,actionType:c}]}]}))});a.hotkeys.pause()};PV.\u0275fac=function(a){return new (a||PV)(z(OG),z(yD),z(Us),z(zH),z(qE),z(EP),z(NN),z(qP),z(Uz),z(dE),z(MV),z(iE))};
PV.\u0275dir=sd({type:PV,viewQuery:function(a,b){a&1&&(zg(Qhc,5),zg(XT,5),zg(QT,5));if(a&2){var c;yg(c=Bg())&&(b.addCommentDialog=c.first);yg(c=Bg())&&(b.hotlistPicker=c.first);yg(c=Bg())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},features:[Jf]});var UV=function(){};UV.\u0275fac=function(a){return new (a||UV)};UV.\u0275mod=qd({type:UV});UV.\u0275inj=ad({providers:[{provide:Zcc,useFactory:function(){return new Wcc}}]});var VV=function(){};VV.\u0275fac=function(a){return new (a||VV)};VV.\u0275mod=qd({type:VV});VV.\u0275inj=ad({imports:[Sv,UV]});var WV=function(){};WV.\u0275fac=function(a){return new (a||WV)};WV.\u0275mod=qd({type:WV});WV.\u0275inj=ad({providers:[{provide:Ycc,useFactory:pS}],imports:[aD,SB,FC,VV,RI]});var XV=function(){};XV.\u0275fac=function(a){return new (a||XV)};XV.\u0275mod=qd({type:XV});XV.\u0275inj=ad({imports:[aD,SB,FC]});var YV=function(){};YV.\u0275fac=function(a){return new (a||YV)};YV.\u0275mod=qd({type:YV});YV.\u0275inj=ad({imports:[aD,MT,hD,FC,cJ,IT,WV,SB,XV]});var ZV=function(){};ZV.\u0275fac=function(a){return new (a||ZV)};ZV.\u0275mod=qd({type:ZV});ZV.\u0275inj=ad({});var $V=function(){};$V.\u0275fac=function(a){return new (a||$V)};$V.\u0275mod=qd({type:$V});$V.\u0275inj=ad({imports:[aD,Zz,iP,Dw,SB,hD,BB,nR,YV,ZV]});var aW=function(){};aW.\u0275fac=function(a){return new (a||aW)};aW.\u0275mod=qd({type:aW});aW.\u0275inj=ad({imports:[aD,BB,SB,oA,Dw,fz,FC,iD,ZL,hD]});var bW=function(a,b,c,d,e,f,h,k,q,u,x,y){PV.call(this,a,b,c,d,e,f,h,k,q,u,x,y);this.panels=[];this.isNonPublicSession=this.activeSession.isNonPublicSession();this.enableBulkEditUi=$C(this.activeSession,"enableBulkEditUi");this.controllerName="dashboardControls";this.onSelectionChange.bind(this);this.getCommonEffortSpec.bind(this)};W(bW,PV);bW.\u0275dir=PV.\u0275dir;bW.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};
bW.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Ja(a,null,function(b){return b.issueId.toString()});return a};bW.\u0275fac=function(a){return new (a||bW)(z(OG),z(yD,2),z(Us),z(zH),z(qE),z(EP),z(NN),z(qP),z(Uz),z(dE),z(MV),z(iE))};
bW.\u0275cmp=od({type:bW,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},features:[lg([yD]),Jf,Fd],decls:7,vars:5,consts:[[3,"readStatePrompt","enableBulkEstimatedEffortOption","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead",4,"ngIf"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch",4,"ngIf"],["class","bv2-grid-hotlist-picker",4,"ngIf"],[1,"bv2-appbar-menu",3,"showFlagIssuesAsSpam",
"flagAsSpamClicked"],[3,"externalWarnings","save","close"],["addCommentDialog",""],[3,"readStatePrompt","enableBulkEstimatedEffortOption","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch"],[1,"bv2-grid-hotlist-picker"],[3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],["mat-dialog-title",""],[3,"comment","showToolbar","commentChange",
"onSubmit",4,"ngIf"],["class","bv2-external-component-modal-warning",4,"ngIf"],["class","flex-kids-x justify-flex-end",4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium","primary",3,"disabled","mat-dialog-close"],[3,"comment","showToolbar","commentChange","onSubmit"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"],[1,"flex-kids-x","justify-flex-end"],[3,"onUpdate"]],template:function(a,
b){a&1&&(P(0,rTa,2,4,"b-app-bar-bulk-edit-menus",0),P(1,vTa,1,2,"b-copy-issue-id-button",1),P(2,wTa,2,2,"div",2),D(3,"b-app-bar-more-menu",3),L("flagAsSpamClicked",function(){return cic(b)}),F(),D(4,"b-state-modal",4),L("save",function(){return aic(b)})("close",function(){return b.hotkeys.unpause()}),F(),P(5,CTa,11,6,"ng-template",null,5,Eg));a&2&&(C("ngIf",b.hasSelectedIssues()),w(1),C("ngIf",b.hasSelectedIssues()),w(1),C("ngIf",b.enableBulkEditUi&&b.hasSelectedIssues()),w(1),C("showFlagIssuesAsSpam",
b.isNonPublicSession&&b.hasSelectedIssues()),w(1),C("externalWarnings",b.externalWarnings))},dependencies:[fD,eD,OT,Dv,Ev,XO,mP,XT,Ez,Vz,Wz,Xz,Yz,QT,PT,Kv],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var cW=function(){};cW.\u0275fac=function(a){return new (a||cW)};cW.\u0275mod=qd({type:cW});cW.\u0275inj=ad({imports:[jD,cJ,YV,aD,iP,pP,aW,hD,SB,Zz,$V,ZV]});var dW=function(a,b){this.index=a;this.editableTemplate=this.template=null;this.name=b.name||"(unnamed template)";this.issueType="--";b.snapshot?this.template=b:(this.editableTemplate=b,this.issueType=this.editableTemplate.type)},dic=function(a,b){this.cellType=b;this.enumFields=null;this.id=a.customFieldId;this.name=a.name;this.type=a.type;if("ENUM"===this.type||"REPEATED_ENUM"===this.type)this.enumFields=(a.allowedValue||[]).map(function(c){return{displayText:c,value:c}});this.repeated=["REPEATED_TEXT",
"REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},eW=function(a,b){this.dirty=!1;this.collaboratorGroups=new Set;var c=b.snapshot||{};this.customFields=a;this.new=null==b.templateId;this.componentId=b.componentId;this.name=b.name||"";this.description=b.description||"";this.type=c.type||"--";this.priority=c.priority||"--";this.severity=c.severity||"--";this.assignee=zi(c.assigneeUser)||"";this.verifier=zi(c.verifierUser)||"";this.collaborators=xi(c.collaboratorsUsers)||[];this.cc=
xi(c.ccUsers)||[];this.title=c.title||"";this.comment=c.comment||"";this.formattingMode=c.formattingMode?c.formattingMode:"PLAIN";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||!1;this.issueAccessLimitLevel=c.issueAccessLimitLevel||"LIMIT_NONE";this.customFieldValues=Object.create(null);a=l(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=new xl(b);a=l(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=l(b.value),
b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=null!=c.typedDefaultValue?new xl(c.typedDefaultValue):new xl({customFieldId:b}))},fic=function(a,b){b.name=a.name;b.description=a.description;var c=b.snapshot||{};c.componentId=a.componentId;eic(a.type)?delete c.type:c.type=a.type;eic(a.priority)?delete c.priority:c.priority=a.priority;eic(a.severity)?delete c.severity:c.severity=a.severity;c.assigneeUser=Di(a.assignee);c.verifierUser=Di(a.verifier);
c.collaboratorsUsers=a.collaborators.map(function(f){return Di(f)});0<a.collaboratorGroups.size&&(c.collaboratorsUsers=$pa([].concat(p(a.collaboratorGroups))).concat(c.collaboratorsUsers||[]));c.ccUsers=a.cc.map(function(f){return Di(f)});c.comment=a.comment;c.formattingMode=a.formattingMode;c.title=a.title;c.hotlistId=a.hotlistId;c.inProd=a.inProd;c.customField=[];c.issueAccessLimitLevel=a.issueAccessLimitLevel;for(var d=l(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&
!e.isEmpty()&&c.customField.push(e);b.snapshot=c};
eW.prototype.setCustomField=function(a,b){a=String(a);if(this.customFieldValues[a]){var c=this.customFields[a].type;if(!c)return;switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldValues[a].textValue=b;break;case "DATE":this.customFieldValues[a].dateValue=b;break;case "ENUM":this.customFieldValues[a].enumValue=b;break;case "NUMERIC":this.customFieldValues[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldValues[a].repeatedTextValue={values:b||[]};break;case "REPEATED_DATE":this.customFieldValues[a].repeatedDateValue=
{values:b||[]};break;case "REPEATED_ENUM":this.customFieldValues[a].repeatedEnumValue={values:b||[]};break;case "REPEATED_NUMERIC":this.customFieldValues[a].repeatedNumericValue={values:b||[]};break;default:$h(c,"Unexpected custom field type: "+c)}}this.dirty=!0};eW.prototype.isDirty=function(){return this.dirty};eW.prototype.setFormattingMode=function(a){this.formattingMode=a;this.dirty=!0};eW.prototype.onAccessLimitLevelSelected=function(a){this.issueAccessLimitLevel=a;this.dirty=!0};
var eic=function(a){return Oi(a)||"--"===a};eW.prototype.getCollaboratorGroupsString=function(){return 0===this.collaboratorGroups.size?"":1<this.collaboratorGroups.size?this.collaboratorGroups.size+" groups selected":this.collaboratorGroups.keys().next().value};var UTa=function(a,b){a.collaboratorGroups.has(b)?a.collaboratorGroups.delete(b):a.collaboratorGroups.add(b);a.dirty=!0};
eW.prototype.separateCollaboratorGroups=function(a){a=new Set(a);for(var b=[],c=l(this.collaborators),d=c.next();!d.done;d=c.next())d=d.value,a.has(d)?this.collaboratorGroups.add(d):b.push(d);this.collaborators=b};var kUa=function(a,b){a.collaborators=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},lUa=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},gic={value:"--",displayText:"--"};var hic=new Az("M/d/yyyy"),fW=function(a){this.dateFormatter=a;this.boundValueChange=new Yu;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};fW.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if("string"===typeof this.boundValue)var a=ri(this.boundValue);else{var b;a=null!=(b=ul(this.boundValue))?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
fW.prototype.change=function(a,b){b=void 0===b?!1:b;var c=this.googDate;if((c&&a?!c.equals(a):c||a)&&!b){this.googDate=a;if(a)if("string"===typeof this.boundValue)a=hic.format(a);else{var d;a=null!=(d=$ua(hic.format(a)))?d:void 0}else a="string"===typeof this.boundValue?"":void 0;this.boundValue=a;this.boundValueChange.emit(this.boundValue);this.textValue=this.googDate?this.dateFormatter.formatUserCalendar(this.googDate):""}};fW.\u0275fac=function(a){return new (a||fW)(z(HL))};
fW.\u0275cmp=od({type:fW,selectors:[["bv2-input-date-picker"]],inputs:{boundValue:"boundValue",inputId:["bv2Id","inputId"],ariaLabelledBy:["bv2AriaLabelledby","ariaLabelledBy"],isRequired:"isRequired"},outputs:{boundValueChange:"boundValueChange"},decls:1,vars:4,consts:[[3,"required","value","customFormId","customAriaLabelledBy","valueChange"]],template:function(a,b){a&1&&(D(0,"b-date-time-input",0),L("valueChange",function(c){return b.change(c)}),F());a&2&&C("required",b.isRequired)("value",b.googDate)("customFormId",
b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[UL],encapsulation:2});var iic={CREATE_COMPONENT:"components/new",CREATE_ISSUE:"issues/new",DASHBOARD:function(a){return"dashboard/"+a},EDIT_COMPONENT:function(a){return"components/"+a+"/edit"},EDIT_ISSUE:function(a){return"issues/"+a},LIST_COMPONENTS:"components",LIST_ISSUES:"issues",NEEDS_ATTENTION:"attention",CREATE_BOOKMARK_GROUP:"bookmark-groups/new",VIEW_BOOKMARK_GROUP:function(a){return"bookmark-groups/"+a},VIEW_COMPONENT:function(a){return"components/"+a},VIEW_HOTLIST:function(a){return"hotlists/"+a},EDIT_HOTLIST:function(a){return"hotlists/"+
a+"/edit"},CREATE_HOTLIST:"hotlists/new",LIST_HOTLISTS:"hotlists",CREATE_SLO:"slos/new",VIEW_SLO:function(a){return"slos/"+a},EDIT_SLO:function(a){return"slos/"+a+"/edit"},LIST_SLOS:"slos",VIEW_SAVEDSEARCH:function(a){return"savedsearches/"+a},EDIT_BOOKMARK_GROUP:function(a){return"bookmark-groups/"+a+"/edit"},MANAGE_COMPONENT:function(a){return"components/"+a+"/manage"},MANAGE_COMPONENT_ACL:function(a){return"components/"+a+"/manage#access"},EDIT_SAVED_SEARCH:function(a){return"savedsearches/"+a+
"/edit"},SETTINGS:"settings"},jic=new Ad("routes",{providedIn:"root",factory:function(){return iic}}),gW=function(a){this.routes=a};g=gW.prototype;g.createIssue=function(a){return zp(this.routes.CREATE_ISSUE,{params:a})};g.editIssue=function(a,b){return Ap(this.routes.EDIT_ISSUE(a),{id:a,params:b})};g.listIssues=function(a){return zp(this.routes.LIST_ISSUES,{params:a})};g.viewSavedSearch=function(a){return Ap(this.routes.VIEW_SAVEDSEARCH(a),{id:a,params:void 0})};
g.viewHotlist=function(a){return Ap(this.routes.VIEW_HOTLIST(a),{id:a})};g.editHotlist=function(a){return zp(this.routes.EDIT_HOTLIST(a),{id:a,tab:void 0})};g.createHotlist=function(){return this.routes.CREATE_HOTLIST};g.createBookmarkGroup=function(){return this.routes.CREATE_BOOKMARK_GROUP};g.viewBookmarkGroup=function(a){return Ap(this.routes.VIEW_BOOKMARK_GROUP(a),{id:a})};g.editBookmarkGroup=function(a){return zp(this.routes.EDIT_BOOKMARK_GROUP(a),{id:a})};
g.editSavedSearch=function(a){return zp(this.routes.EDIT_SAVED_SEARCH(a),{id:a})};g.dashboard=function(a){return zp(this.routes.DASHBOARD(a),{id:a})};g.issuesCsvAction=function(a,b,c,d){b=this.toApiSortParamValue(b);c=DTa(c);return bB("action/issues/csv","q",a,"s",b,"c",c,"h",d)};g.hotlistIssuesCsvAction=function(a,b,c,d){a="action/hotlists/"+a+"/issues/csv";b=this.toApiSortParamValue(b);(c=DTa(c))&&(c="position,"+c);return bB(a,"s",b,"c",c,"h",d)};
g.toApiSortParamValue=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return zp(this.routes.LIST_COMPONENTS,{params:void 0})};g.viewComponent=function(a,b){return Ap(this.routes.VIEW_COMPONENT(a),{id:a,tab:b})};g.manageComponent=function(a,b){return Ap(this.routes.MANAGE_COMPONENT(a),{id:a,tab:b})};
g.createComponent=function(a){return zp(this.routes.CREATE_COMPONENT,{params:a})};g.editComponent=function(a,b){return zp(this.routes.EDIT_COMPONENT(a),{id:a,tab:b})};g.createSlo=function(){return zp(this.routes.CREATE_SLO,{params:void 0})};g.editSlo=function(a){return zp(this.routes.EDIT_SLO(a),{id:a,tab:void 0})};g.listSlos=function(){return zp(this.routes.LIST_SLOS,{params:void 0})};g.listHotlists=function(){return this.routes.LIST_HOTLISTS};gW.\u0275fac=function(a){return new (a||gW)(n(jic))};
gW.\u0275prov=$c({token:gW,factory:gW.\u0275fac,providedIn:"root"});var hW=function(a){this.pathBuilder=a;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new Yu};hW.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};hW.\u0275fac=function(a){return new (a||hW)(z(gW))};
hW.\u0275cmp=od({type:hW,selectors:[["b-hotlist-chip"]],inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"name"],[1,"keep-focus-ring",3,"href"],["mat-icon-button","",3,"invisible","click",4,"ngIf"],["card","onedevHovercard"],[3,"hotlist"],["mat-icon-button","",3,"click"],["svgIcon","close"]],template:function(a,
b){a&1&&P(0,FTa,9,11,"ng-container",0);a&2&&C("ngIf",b.hotlist)},dependencies:[Ev,qA,PJ,UJ,IJ,Ez],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}.chip.muted[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);color:#5f6368;color:var(--text-muted)}.chip[_ngcontent-%COMP%]{background-color:#e4f7fb;background-color:var(--hotlist-chip-bg);border-radius:10px;display:inline-flex;align-items:center;height:20px;font-size:.75rem;font-weight:normal;padding:0 10px}.chip[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:50%}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"]});var Bp={accessLevel:"LIMIT_NONE",title:"Default access",descriptionWithExpandedAccess:"Assignee, verifier and collaborators may edit. CCs can comment. Regular component-level permission settings apply.",descriptionNoExpandedAccess:"Issue access determined by component-level permission settings.",icon:"acl-alias-domain"},kic={accessLevel:"LIMIT_VIEW_TRUSTED",title:"Limited visibility + Google",descriptionWithExpandedAccess:'Same as "limited visibility", but also allow Googlers to access, according to their component-level permissions.',
descriptionNoExpandedAccess:'Same as "limited visibility", but also allow Googlers to access, according to their component-level permissions.',icon:"visibility-off"},GTa=[Bp,{accessLevel:"LIMIT_APPEND",title:"Limited commenting",descriptionWithExpandedAccess:"Only the assignee, verifier and collaborators may edit. CCs can comment. Issue admins retain full access. Visibility is unchanged.",descriptionNoExpandedAccess:"Only added users may edit or comment if their component-level permissions allow. Issue admins retain full access. Visibility is unchanged.",
icon:"comments_disabled_24px"},{accessLevel:"LIMIT_VIEW",title:"Limited visibility",descriptionWithExpandedAccess:"Only added users may access. The assignee, verifier and collaborators may edit. CCs can comment.",descriptionNoExpandedAccess:"Only added users may access. They have their normal access as defined by the component-level permissions.",icon:"visibility-off"},kic];var iW=function(){Y.apply(this,arguments);var a=this;this.defaultAccessLimitLevel$=new B.ReplaySubject(1);this.disabled=!0;this.implicitAccessEnabled=!1;this.updatedAccessLimitLevel=new Yu;this.selectedDisplay$=new B.BehaviorSubject(null);this.displays=GTa;this.disabledDropdownTooltip="Only users with Issue Admin permission can adjust restriction levels.";this.currentIssueAccessLimitLevelDisplay$=(0,B.combineLatest)([this.selectedDisplay$,this.defaultAccessLimitLevel$]).pipe(A(function(b){b=l(b);
var c=b.next().value;b=b.next().value;if(c)return c;c=l(a.displays);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.accessLevel===b)return d;return Bp}));this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(A(function(b){return b.title}))};W(iW,Y);iW.\u0275dir=Y.\u0275dir;Qh.Object.defineProperties(iW.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});
iW.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(iW)))(b||iW)}}();
iW.\u0275cmp=od({type:iW,selectors:[["b-issue-access-limits-dropdown"]],inputs:{defaultAccessLimitLevel:"defaultAccessLimitLevel",disabled:"disabled",implicitAccessEnabled:"implicitAccessEnabled"},outputs:{updatedAccessLimitLevel:"updatedAccessLimitLevel"},features:[Jf],decls:13,vars:10,consts:[[1,"access-limits-dropdown"],["mat-button","","mat-stroked-button","","dropdown-menu-button","","type","button",1,"access-limits-dropdown-button","gmat-button","small",3,"matMenuTriggerFor","disabled"],[1,
"selected-access-limit-level-title"],["svgIcon","acl-alias-domain",1,"icon-s"],[1,"selected-access-limit-level-title-text"],["svgIcon","arrow-dropdown",1,"icon-s"],["svgIcon","help-outline","class","icon-s valign-middle","tabindex","0","aria-hidden","false",3,"matTooltip",4,"ngIf"],[1,"access-limit-level-options"],["accessLimitsMenu","matMenu"],["mat-menu-item","","class","access-limit-level-option",3,"click",4,"ngFor","ngForOf"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s",
"valign-middle",3,"matTooltip"],["mat-menu-item","",1,"access-limit-level-option",3,"click"],[1,"access-limit-level-title"],[1,"icon-s",3,"svgIcon"],[1,"access-limit-level-title-text"],[1,"access-limit-level-description"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"button",1),T(2,"async"),D(3,"span",2),G(4,"mat-icon",3),D(5,"span",4),Q(6),T(7,"async"),F()(),G(8,"mat-icon",5),F(),P(9,ITa,1,1,"mat-icon",6),D(10,"mat-menu",7,8),P(12,JTa,7,3,"button",9),F()());if(a&2){var c=N(11),d;w(1);C("matMenuTriggerFor",
c)("disabled",b.disabled);Nf("aria-label","Issue Access level, "+(null!==(d=null==(d=V(2,6,b.selectedDisplay$))?null:d.title)&&void 0!==d?d:"Default access"));w(5);S(" ",V(7,8,b.issueAccessLimitLevelDisplayTitle$)," ");w(3);C("ngIf",b.disabled);w(3);C("ngForOf",b.displays)}},dependencies:[Dv,Ev,qA,Ez,AB,yB,zB,FB,Kv],styles:[".bv2-material.d-compact .mat-menu-item.access-limit-level-option{height:fit-content;line-height:12px}.bv2-material.d-cozy .mat-menu-item.access-limit-level-option{height:fit-content;line-height:16px}.mat-menu-panel.access-limit-level-options{min-width:320px}.mat-menu-item.access-limit-level-option{height:fit-content;line-height:20px}.mat-menu-item.access-limit-level-option:focus,.mat-menu-item.access-limit-level-option:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}.mat-menu-item.access-limit-level-option .mat-icon.icon-s{margin-right:2px}.access-limits-dropdown{padding:5px 0px}.access-limits-dropdown mat-icon{vertical-align:text-bottom;color:#202124;color:var(--text-default)}.access-limits-dropdown>mat-icon{padding-left:3px}.access-limits-dropdown-button:disabled{background-color:var(--disabled-bg);color:var(--text-disabled)}.access-limit-level-option{padding:5px 0px}.access-limit-level-option:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.access-limit-level-title{padding:0px 10px;white-space:nowrap}.access-limit-level-title mat-icon{vertical-align:text-bottom}.access-limit-level-description{padding:0px 15px 0px 35px;color:#5f6368;color:var(--text-muted);white-space:normal}.access-limit-level-options mat-icon{color:#202124;color:var(--text-default)}.selected-access-limit-level-title{display:inline-flex;align-items:center;color:#202124;color:var(--text-default);font-size:small;padding-bottom:2px}.selected-access-limit-level-title-text{padding:0px 6px}\n"],
encapsulation:2});var lic=["saveBeforeClosingDialog"],mic=["deleteDialog"],eUa=function(){return[]},jW=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R){Y.call(this);var U=this;this.matDialogService=a;this.cdr=b;this.userApi=c;this.templatesApi=d;this.hotlistApi=e;this.constants=f;this.paths=h;this.butterBar=k;this.analytics=q;this.issueTypeDialog=u;this.componentActions=x;this.documentationLinks=y;this.appEvents=E;this.accessPolicyApi=H;this.activeSession=J;this.trackerFridge=O;this.componentFridge=R;this.defaultIndex=
-1;this.componentId=0;this.supportCustomFields=!1;this.templates=[];this.customFieldRows=[];this.currentTemplateRow=this.currentTemplate=null;this.currentIndex=-1;this.templateRows=[];this.afterSaveCheckFunc=null;this.hotlists=[];this.selectedHotlists=[];this.hotlistMap={};this.selectedHotlistIds=[[]];this.templateHotlistIds=[];this.hotlistPickerIndex=0;this.implicitAccessEnabled=!1;this.enableQuickAddCollaborators=$C(this.activeSession,"enableQuickAddCollaborators");this.FieldType=Zac;this.componentId$=
new B.ReplaySubject(0);this.component$=this.componentId$.pipe(zf(function(Z){return U.componentFridge.watch(Z)}));this.trackerId$=this.component$.pipe(A(function(Z){return null==Z?void 0:Z.trackerId}));this.tracker$=this.trackerId$.pipe(zf(function(Z){return!Z||xn(Z)?(0,B.of)(void 0):U.trackerFridge.watch(Z)}));this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";
this.trackerCollaboratorGroups=[];this.customFieldIds=Object.create(null);this.issueTypeChoices=nic(this);this.priorityChoices=oic(this);this.severityChoices=pic(this);this.subscriptions.add(this.tracker$.subscribe(function(Z){Z&&(U.trackerCollaboratorGroups=wi(Z.collaboratorGroups));U.currentTemplate&&U.currentTemplate.separateCollaboratorGroups(U.trackerCollaboratorGroups)}))};W(jW,Y);jW.\u0275dir=Y.\u0275dir;g=jW.prototype;
g.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(c){return a.implicitAccessEnabled=c});this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(b));Promise.all([this.loadCustomFields(),this.loadTemplates()]).finally(function(){qic(a);
a.cdr.detectChanges()})};g.ngAfterViewInit=function(){this.componentId$.next(this.componentId)};g.updateSelectedHotlists=function(){var a=this,b=this.templateHotlistIds[this.hotlistPickerIndex];this.selectedHotlistIds=b?[b]:[[]];this.selectedHotlists=this.hotlists.filter(function(c){return a.selectedHotlistIds[0].includes(c.hotlistId)});Ka(this.selectedHotlists,function(c,d){return oq(c.name,d.name)})};
g.removeHotlist=function(a){za(this.templateHotlistIds[this.hotlistPickerIndex],a);this.currentTemplate.dirty=!0;this.updateSelectedHotlists()};g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent("editTemplate","createHotlist");WF(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){WF(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.handleHotlistPickerSave=function(a){var b=this,c=a.oldSelectionMap;vc(a.newSelectionMap,function(d,e){e=qi(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],va(d,e)||d.push(e)):!d&&f&&za(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
g.loadHotlist=function(a){var b=this,c=a.successCallback,d=a.errorCallback;this.hotlistApi.get(a.hotlistId).then(function(e){b.addHotlist(e);c(e);b.cdr.detectChanges()}).catch(d)};g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var nic=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:wpa(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[gic].concat(b)};jW.prototype.getDateValue=function(a){return a};jW.prototype.getListFieldType=function(a){return a};
var hUa=function(a){var b,c,d,e;return(null==(b=a.repeatedTextValue)?void 0:b.values)||(null==(c=a.repeatedDateValue)?void 0:c.values)||(null==(d=a.repeatedEnumValue)?void 0:d.values)||(null==(e=a.repeatedNumericValue)?void 0:e.values)||null},XTa=function(a){"VULNERABILITY"===a.currentTemplateRow.issueType||"PRIVACY_ISSUE"===a.currentTemplateRow.issueType?ON(a.issueTypeDialog,"VULNERABILITY"===a.currentTemplateRow.issueType?"VULNERABILITY":"PRIVACY_ISSUE",function(){a.currentTemplate.type=a.currentTemplateRow.issueType;
a.currentTemplate.dirty=!0},function(){a.currentTemplateRow.issueType=a.currentTemplate.type}):(a.currentTemplate.type=a.currentTemplateRow.issueType,a.currentTemplate.dirty=!0)},oic=function(a){return[gic].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},pic=function(a){return[gic].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))};jW.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,null!==c?c:void 0)};
var nUa=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;kW(a)},NTa=function(a,b){var c=a.currentIndex;ric(a,function(){b.index===c?nUa(a):a.openEditor(b.index)})},sic=function(a){a.templateHotlistIds.push([]);ric(a,function(){a.openEditor()})},PTa=function(a,b){return 0<=b.index&&b.index===a.currentIndex},mUa=function(a){if(!a.currentTemplate)return Promise.resolve();if(0>a.currentIndex){var b="creating";var c={componentId:a.componentId,default:!1};var d=function(k){WF(a.butterBar,
k.name?'Template "'+k.name+'" created.':"Template created.");a.analytics.trackEvent("template","create");tic(a,"create",k.snapshot);uic(a,"create",k.templateId);a.templates.push(k);a.openEditor(a.templates.length-1)}}else{b="updating";var e=a.currentIndex;c=a.templates[e];d=function(k){WF(a.butterBar,k.name?'Template "'+k.name+'" updated.':"Template updated.");a.analytics.trackEvent("template","update");tic(a,"update",k.snapshot);uic(a,"update",k.templateId);a.templates[e]=k;nUa(a)}}a.currentTemplate.hotlistId=
a.templateHotlistIds[a.hotlistPickerIndex];fic(a.currentTemplate,c);WF(a.butterBar,"Saving template...");var f=c.componentId,h=c.templateId;return(h&&"0"!==String(h)?a.templatesApi.update(f,h,c):a.templatesApi.create(f,c)).then(function(k){a.appEvents.templateModified.next(String(a.componentId));d(k);a.cdr.detectChanges()}).catch(function(k){k=tn(k);a.butterBar.showWarning(k?"Error "+b+" template: "+k:"There was an error "+b+" the template.",0)})},OTa=function(a,b){Pz(a.matDialogService.open(a.deleteDialog,
{data:b})).pipe(Af(a.destroyed$)).subscribe(function(c){c&&vic(a,b)})},vic=function(a,b){var c=b.index;xa(a.templateHotlistIds,c);b=a.templates[c];0>c||b.default?Promise.resolve():(WF(a.butterBar,"Deleting..."),a.templatesApi.delete(b.componentId,b.templateId).then(function(){a.appEvents.templateModified.next(String(a.componentId));WF(a.butterBar,"Deleted template");a.analytics.trackEvent("template","delete");a.templates.splice(c,1);a.currentIndex===c?nUa(a):kW(a);a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Error while deleting template")}))},
xic=function(a,b){b?mUa(a).then(function(){wic(a);a.cdr.detectChanges()}):wic(a)},QTa=function(a,b){var c;b=(null==(c=b.template)?void 0:c.templateId)||0;c={};c=a.paths.createIssue((c.component=a.componentId?String(a.componentId):void 0,c.template=String(b),c));return a.paths.getBaseUrl()+"/"+c};
jW.prototype.openEditor=function(a){var b=this;this.currentIndex=void 0===a?-1:a;if(0>this.currentIndex){this.currentTemplate=yic(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();kW(this);this.cdr.detectChanges();var c;null==(c=document.getElementById("template-name"))||c.focus()}else zic(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=yic(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
kW(b);b.currentTemplate.separateCollaboratorGroups(b.trackerCollaboratorGroups);b.cdr.detectChanges();var e;null==(e=document.getElementById("template-name"))||e.focus()})};
var zic=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},ric=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,Aic(a)):b()},tic=function(a,b,c){c&&c.issueAccessLimitLevel&&"LIMIT_NONE"!==c.issueAccessLimitLevel&&a.analytics.trackEvent(xp.ISSUE_ACCESS_LIMITS,b,"template:"+c.issueAccessLimitLevel)},uic=function(a,b,c){a.currentTemplate&&0<a.currentTemplate.collaboratorGroups.size&&a.analytics.trackEvent(xp.QUICK_ADD_COLLABORATORS,b,"template:"+
c)},Aic=function(a){Pz(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(Af(a.destroyed$)).subscribe(function(b){void 0!==b&&xic(a,b)})},wic=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},yic=function(a,b){return new eW(a.customFieldIds,b)};
jW.prototype.loadCustomFields=function(){var a=this;this.customFieldRows=[];this.customFieldIds={};return this.supportCustomFields?this.componentActions.get(this.componentId).then(function(b){b=l(b.componentPathInfo.allCustomField||[]);for(var c=b.next();!c.done;c=b.next()){c=c.value;if(!c.enabledOnIssues)return;a.customFieldIds[c.customFieldId.toString()]=c;a.customFieldRows.push(new dic(c,"TEXT"===c.type?"1":"2"))}a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Unable to load custom fields")}):
Promise.resolve()};jW.prototype.loadTemplates=function(){var a=this;this.templates=[];return this.templatesApi.query(this.componentId).then(function(b){a.templates=b;b=l(a.templates);for(var c=b.next();!c.done;c=b.next())c=c.value,c.snapshot.hotlistId?a.templateHotlistIds.push(c.snapshot.hotlistId):a.templateHotlistIds.push([]);a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Unable to load templates")})};
var qic=function(a){kW(a);a.defaultIndex=a.templates.findIndex(function(b){return b.default})},kW=function(a){if(0>a.currentIndex)a.templateRows=a.templates.map(function(e,f){return new dW(f,e)}),a.currentTemplate&&(a.currentTemplateRow=new dW(-1,a.currentTemplate),a.templateRows.push(a.currentTemplateRow)),a.hotlistPickerIndex=a.templates.length;else{var b=a.currentIndex,c=[];var d=a.templates.slice(0,b+1);c=c.concat(d.map(function(e,f){return new dW(f,e)}));a.currentTemplate&&(a.currentTemplateRow=
new dW(b,a.currentTemplate),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new dW(b+f+1,e)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},Bic=function(a,b,c){return zic(a,b).then(function(d){c(d);return a.templatesApi.update(d.componentId,d.templateId,d)}).then(function(d){a.appEvents.templateModified.next(String(a.componentId));return d})},MTa=function(a,b){if(a.defaultIndex!==b){a.defaultIndex=b;var c="(no template)";0<=b&&(b=a.templates[b],
c=b.name,Oi(Ni(c))&&(c="(unnamed template)"),b.default||(b=Bic(a,b,function(d){d.default=!0}),WF(a.butterBar,"Changing default template..."),b.then(function(){WF(a.butterBar,"Changed default template to "+c)},function(d){a.butterBar.showWarning("Error while changing default message"+(sn(d)?": "+tn(d):"."))}),a.analytics.trackEvent("template","changeDefault")))}};
jW.\u0275fac=function(a){return new (a||jW)(z(Uz),z(yD,2),z(nH),z(TG),z(mF),z(cD),z(xE),z(VF),z(zH),z(NN),z(EP),z(yL),z(DF),z(nG),z(Us),z(iG),z(OG))};
jW.\u0275cmp=od({type:jW,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(zg(lic,5),zg(mic,5));if(a&2){var c;yg(c=Bg())&&(b.saveBeforeClosingDialog=c.first);yg(c=Bg())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},features:[lg([yD]),Jf],decls:21,vars:2,consts:[[1,"component-banner","template-help-banner"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"templates-list"],[1,"template-column-tool"],[4,"ngFor",
"ngForOf"],[1,"edit-button-row"],["format","fill","bAriaLabel","Create New template in this component",3,"onAction"],["deleteDialog",""],["saveBeforeClosingDialog",""],[4,"ngIf"],["colspan","4",4,"ngIf"],["tabindex","-1",1,"template-row-name"],[1,"template-row-new-issue-link"],["tabindex","0",1,"keep-focus-ring",3,"href"],[3,"id","checked","aria-label","value","change"],["format","hairline",3,"bAriaLabel","onAction"],["format","hairline",3,"bAriaLabel","disabled","onAction"],["colspan","4"],[1,"template-edit-pane",
"template-editor-within-table"],["class","form-header",4,"ngIf"],[1,"cell-1"],[1,"template-label"],["for","template-name"],["id","template-name","type","text",1,"template-field",3,"ngModel","ngModelChange"],["for","template-description"],["id","template-description","type","text",1,"template-field",3,"ngModel","ngModelChange"],"role;region;tabindex;0;aria-label;Standard issue fields".split(";"),[1,"cell-1","access-limit-row"],[1,"access-limit-field"],["for","template-issue-access-limits-dropdown"],
["id","template-issue-access-limits-dropdown",3,"disabled","defaultAccessLimitLevel","implicitAccessEnabled","updatedAccessLimitLevel"],["class","collaborator-group-field",4,"ngIf"],["for","template-title"],["id","template-title","type","text",1,"template-field",3,"ngModel","ngModelChange"],[1,"cell-3"],["for","template-default-type"],["id","template-default-type","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,
"overlapTrigger"],["typeMenu",""],["mat-menu-item","",3,"disabled","matTooltip","click",4,"ngFor","ngForOf"],["for","template-default-priority"],["id","template-default-priority","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["priorityMenu",""],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["for","template-default-severity"],["id","template-default-severity","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],
["severityMenu",""],[1,"cell-1","bv2-edit-template-hotlists"],["for","template-default-hotlist"],["id","template-default-hotlist",1,"hotlist-picker",3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],["class","bv2-hotlist-chips",4,"ngFor","ngForOf"],[1,"float-clear"],[1,"cell-2"],["for","template-assignee"],["id","template-assignee","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-verifier"],["id","template-verifier","type","text",
1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-collaborators"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["id","template-collaborators","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-cc"],["id","template-cc","type","text",
1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-comment"],["id","template-comment",1,"template-field",3,"ngModel","ngModelChange"],[3,"initialValue","change"],["for","template-in-prod"],["id","template-in-prod","aria-label","issue in prod",3,"model","modelChange"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class",4,"ngFor","ngForOf"],[1,"buttons-row"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"onAction"],[1,
"form-header"],[1,"collaborator-group-field"],["for","template-collaborator-groups-dropdown"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-xs","valign-middle","margin-xs-left",3,"matTooltip"],["mat-stroked-button","","dropdown-menu-button","","type","button",1,"gmat-button","small","collaborator-groups-button",3,"matMenuTriggerFor"],[1,"collaborator-groups-text"],["svgIcon","arrow-dropdown",1,"icon-s"],[1,"multiple-check-box-menu"],["collaboratorsGroupsMenu","matMenu"],["mat-menu-item",
"",3,"keydown.enter","keydown.space","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"keydown.enter","keydown.space","click"],["gmat-checkbox","",3,"checked","change","click"],["mat-menu-item","",3,"disabled","matTooltip","click"],["mat-menu-item","",3,"disabled","click"],[1,"bv2-hotlist-chips"],[3,"hotlist","removeHotlist"],[3,"for"],[3,"ngSwitch"],["class","template-field","type","text",3,"ngModel","ngModelChange",4,"ngSwitchCase"],["class","template-field","type","number","step","any",3,"ngModel",
"ngModelChange",4,"ngSwitchCase"],[3,"type","name","clearable","value","choices","valueChange",4,"ngSwitchCase"],[3,"boundValue","boundValueChange",4,"ngSwitchCase"],[3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange",4,"ngSwitchDefault"],["type","text",1,"template-field",3,"ngModel","ngModelChange"],["type","number","step","any",1,"template-field",3,"ngModel","ngModelChange"],[3,"type","name","clearable","value","choices","valueChange"],[3,"boundValue","boundValueChange"],
[3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"mat-dialog-close"],["color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["cdkFocusInitial","","color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close"]],template:function(a,
b){a&1&&(D(0,"div")(1,"div",0),Q(2," A template is a set of default values for new issues created in this component. "),D(3,"a",1),Q(4,"Learn more"),F()(),D(5,"table",2)(6,"tr")(7,"th"),Q(8,"TEMPLATE"),F(),D(9,"th",3),Q(10,"DEFAULT"),F(),G(11,"th",3)(12,"th",3),F(),P(13,pUa,3,2,"tr",4),F(),D(14,"div",5)(15,"b-button",6),L("onAction",function(){return sic(b)}),Q(16," Create New Template "),F()(),P(17,qUa,7,3,"ng-template",null,7,Eg),P(19,rUa,9,4,"ng-template",null,8,Eg),F());a&2&&(w(3),C("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",
re),w(10),C("ngForOf",b.templateRows))},dependencies:[bJ,Dv,Ev,Fv,Gv,Hv,qA,iT,qR,Tg,qw,hw,ow,hW,XT,fW,KR,Ez,PK,Vz,Xz,Yz,xU,RP,mR,FB,bD,AB,yB,zB,iW],styles:["button.gmat-button.small.collaborator-groups-button[_ngcontent-%COMP%]{color:#202124;color:var(--text-default);min-width:160px;max-width:270px;margin-top:5px}button.gmat-button.small.collaborator-groups-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{float:right;padding-top:5px}button.gmat-button.small.collaborator-groups-button[_ngcontent-%COMP%]   .collaborator-groups-text[_ngcontent-%COMP%]{width:130px;overflow:hidden;float:left}.buttons-row[_ngcontent-%COMP%]   b-button[_ngcontent-%COMP%]{margin-right:10px}.access-limit-field[_ngcontent-%COMP%]{margin-right:20px}.cell-1.access-limit-row[_ngcontent-%COMP%]{display:inline-flex;min-height:60px}"]});var lW=function(){};lW.\u0275fac=function(a){return new (a||lW)};lW.\u0275mod=qd({type:lW});lW.\u0275inj=ad({imports:[aD,sM]});var mW=function(a,b){this.hotlists=a;this.userAccess=b;this.id$=new B.ReplaySubject(1);this.removeHotlist=new Yu;this.removable=!0;this.hotlist$=this.id$.pipe(zf(this.hotlists.watch));this.isDisabled$=(0,B.combineLatest)([this.id$,this.id$.pipe(zf(this.hotlists.isSaving$))]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return null==c?!1:d?!0:!1}))};
mW.prototype.ngOnInit=function(){var a=this;this.removable$="check-acl"===this.removable?this.id$.pipe(zf(function(b){return uG(a.userAccess,"appender","hotlists/"+b)})):(0,B.of)(this.removable)};Qh.Object.defineProperties(mW.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});mW.\u0275fac=function(a){return new (a||mW)(z(rH),z(sG))};
mW.\u0275cmp=od({type:mW,selectors:[["b-hotlist-chip-smart"]],inputs:{id:"id",removable:"removable"},outputs:{removeHotlist:"removeHotlist"},decls:4,vars:9,consts:[[3,"hotlist","disabled","removable","removeHotlist"]],template:function(a,b){a&1&&(D(0,"b-hotlist-chip",0),L("removeHotlist",function(){null==b.idInternal?Ek("Missing id"):b.removeHotlist.emit()}),T(1,"async"),T(2,"async"),T(3,"async"),F());if(a&2){var c;C("hotlist",V(1,3,b.hotlist$))("disabled",!0===V(2,5,b.isDisabled$))("removable",null!==
(c=V(3,7,b.removable$))&&void 0!==c?c:!1)}},dependencies:[hW,Kv],encapsulation:2,changeDetection:0});var nW=function(){};nW.\u0275fac=function(a){return new (a||nW)};nW.\u0275mod=qd({type:nW});nW.\u0275inj=ad({imports:[aD,CK,wK,SB]});var oW=function(){};oW.\u0275fac=function(a){return new (a||oW)};oW.\u0275mod=qd({type:oW});oW.\u0275inj=ad({imports:[aD,SB,BB,FC,hD]});var pW=function(){};pW.\u0275fac=function(a){return new (a||pW)};pW.\u0275mod=qd({type:pW});pW.\u0275inj=ad({imports:[cJ,aD,IT,rR,Dw,nW,aW,lW,LR,SB,SK,Zz,zV,SP,RI,nR,cP,Iz,FC,hD,BB,oW]});var qW=function(a,b,c,d,e){this.appSearchState=b;this.analytics=c;this.domSafe=d;this.currentTracker=e;this.enableEstado=$C(a,"enableEstado")};qW.prototype.openInEstado=function(){this.analytics.trackEvent("listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.appSearchState.currentQuery))};qW.\u0275fac=function(a){return new (a||qW)(n(Us),n(mK),n(zH),n(zL),n(jG))};
qW.\u0275prov=$c({token:qW,factory:qW.\u0275fac,providedIn:"root"});var Cic=["ASSIGNMENT","RESPONSE","CLOSURE"],Dic=new Map([["ASSIGNMENT","Assignment"],["RESPONSE","Response"],["CLOSURE","Closure"]]),Eic=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),Q4a=new Map([["DAY_TYPE_UNSPECIFIED","Calendar"],["CALENDAR","Calendar"],["BUSINESS","Business"]]);var hm=function(a){this.internalArray_=m(a)};W(hm,X);hm.prototype.getComponentId=function(){return dj(this,1)};hm.prototype.setComponentId=function(a){return um(this,1,a)};hm.prototype.getEffectiveSloEditPolicy=function(){return Vi(this,2,0)};var Fic=function(a){this.internalArray_=m(a,0,Fic.messageId)};W(Fic,X);Fic.messageId="b.GetComponentSloEditPolicyResponse";var rW=function(a){this.internalArray_=m(a,0,rW.messageId)};W(rW,X);rW.prototype.getTeamSloEditPolicy=function(){return Fi(this,QE,1)};rW.messageId="b.GetTeamSloEditPolicyResponse";var sW=function(a){this.internalArray_=m(a,0,sW.messageId)};W(sW,X);sW.repeatedFields_=[1];sW.messageId="b.SloSearchResponse";var tW=function(a){this.internalArray_=m(a,0,tW.messageId)};W(tW,X);tW.prototype.getTeamSloEditPolicy=function(){return Fi(this,QE,1)};tW.messageId="b.UpdateTeamSloEditPolicyResponse";var uW=function(a,b){this.activeSession=a;this.executor=b};g=uW.prototype;g.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:nm}).pipe(A(mm))};g.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};g.search=function(a){return this.executor.get({url:"action/slos",options:{params:{query:a}},responseConstructor:sW}).pipe(A(function(b){var c;return(null!=(c=Ji(b,nm,1))?c:[]).map(mm)}))};
g.create=function(a){a=pwa(a);return this.executor.post({url:"action/slos",body:a,responseConstructor:nm}).pipe(A(mm))};g.update=function(a){var b=a.sloId;a=pwa(a);return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:nm}).pipe(A(mm))};uW.\u0275fac=function(a){return new (a||uW)(n(Us),n(tD))};uW.\u0275prov=$c({token:uW,factory:uW.\u0275fac,providedIn:"root"});
var vW=function(a,b){this.observableSlosService=b;var c;this.slosCache=null!=(c=a.get("slos-second-level-cache"))?c:a.create("slos-second-level-cache",{capacity:25})};g=vW.prototype;g.get=function(a){var b=this.slosCache.get(a);return void 0!==b?b:this.slosCache.put(String(a),(0,B.firstValueFrom)(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return(0,B.firstValueFrom)(this.observableSlosService.getOwnedSlos())};g.search=function(a){return(0,B.firstValueFrom)(this.observableSlosService.search(a))};
g.create=function(a){return(0,B.firstValueFrom)(this.observableSlosService.create(a))};g.update=function(a){return(0,B.firstValueFrom)(this.observableSlosService.update(a))};vW.\u0275fac=function(a){return new (a||vW)(n(KE),n(uW))};vW.\u0275prov=$c({token:vW,factory:vW.\u0275fac,providedIn:"root"});var wW=function(a,b){this.sloStatusHelpersService=a;this.dateFormatter=b;this.timeDisplayText="--";this.objectiveDisplayText=null;this.iconName="slo-status-no-data"};wW.prototype.getIconName=function(a){return Gic.has(a)?Gic.get(a):"slo-status-no-data"};
wW.prototype.setDisplayValues=function(a,b){this.iconName=this.getIconName(a);b=null!==b?G2b(1E3*b).match(/^(\d+\s\D+)(?:\s|$)/)[1]:"";switch(a){case "COMPLETED":this.timeDisplayText="ASSIGNMENT"===this.sloMetricDescription?"Issue assigned":"RESPONSE"===this.sloMetricDescription?"Response recorded":"CLOSURE"===this.sloMetricDescription?"Issue closed":"SLO fulfilled";break;case "SNOOZED_NEAR":case "SNOOZED_HEALTHY":case "HEALTHY":case "NEAR":this.timeDisplayText="ASSIGNMENT"===this.sloMetricDescription?
b+" to assign":"RESPONSE"===this.sloMetricDescription?b+" to respond":"CLOSURE"===this.sloMetricDescription?b+" to close":b+" left";break;case "OUT_OF_SLO":this.timeDisplayText="ASSIGNMENT"===this.sloMetricDescription?b+" overdue for assignment":"RESPONSE"===this.sloMetricDescription?b+" overdue for response":"CLOSURE"===this.sloMetricDescription?b+" overdue for closure":b+" overdue";break;case "NO_DATA":this.timeDisplayText="ASSIGNMENT"===this.sloMetricDescription?"No assignment SLO":"RESPONSE"===
this.sloMetricDescription?"No response SLO":"CLOSURE"===this.sloMetricDescription?"No closure SLO":"--";break;default:Ek("unknown status type: "+a)}};
wW.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&eO(this.sloBounds)){var b=this.sloBounds.targetTime.seconds,c=b-this.sloBounds.startTime.seconds;c?this.objectiveDisplayText=G2b(1E3*c):this.objectiveDisplayText=null;c=this.sloBounds;eO(c)&&c.endTime&&0!==c.endTime.seconds&&c.endTime.seconds<=Date.now()/1E3?this.setDisplayValues("COMPLETED",a-this.sloBounds.endTime.seconds):b<a?this.setDisplayValues("OUT_OF_SLO",a-b):(c=this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime),
a=b-a,this.setDisplayValues(259200<a?c?"SNOOZED_HEALTHY":"HEALTHY":c?"SNOOZED_NEAR":"NEAR",a))}else this.setDisplayValues("NO_DATA",null),this.objectiveDisplayText=null};wW.\u0275fac=function(a){return new (a||wW)(z(dO),z(OL))};
wW.\u0275cmp=od({type:wW,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},features:[Fd],decls:4,vars:6,consts:[[3,"ngClass","svgIcon"],["matTooltipShowDelay","250",1,"slo-time-indicator-text",3,"matTooltip","matTooltipDisabled"],[1,"slo-status-text"]],template:function(a,b){a&1&&(G(0,"mat-icon",0),D(1,"span",
1)(2,"span",2),Q(3),F()());a&2&&(C("ngClass",b.iconName)("svgIcon",b.iconName),Nf("aria-label","--"===b.timeDisplayText?"No SLO data":""),w(1),gg("matTooltip","",b.objectiveDisplayText," total"),C("matTooltipDisabled",!b.includeObjective||!b.objectiveDisplayText),w(2),jg(b.timeDisplayText))},dependencies:[Cv,qA,FB],styles:[".slo-time-indicator-text[_ngcontent-%COMP%]   span.slo-status-text[_ngcontent-%COMP%]{display:inline-block}mat-icon[_ngcontent-%COMP%]{margin-right:5px;width:18px;height:18px;flex-shrink:0}mat-icon.slo-status-snoozed-near-slo[_ngcontent-%COMP%], mat-icon.slo-status-near[_ngcontent-%COMP%]{color:#fa7b17;color:var(--slo-near)}mat-icon.slo-status-snoozed-healthy[_ngcontent-%COMP%], mat-icon.slo-status-healthy[_ngcontent-%COMP%], mat-icon.slo-status-no-data[_ngcontent-%COMP%], mat-icon.slo-status-completed[_ngcontent-%COMP%]{color:#80868b;color:var(--slo-healthy)}mat-icon.slo-status-out-of-slo[_ngcontent-%COMP%]{color:#ea4335;color:var(--slo-overdue)}[_nghost-%COMP%]{display:inline-flex}"],
changeDetection:0});var Gic=new Map([["SNOOZED_HEALTHY","slo-status-snoozed-healthy"],["SNOOZED_NEAR","slo-status-snoozed-near-slo"],["OUT_OF_SLO","slo-status-out-of-slo"],["HEALTHY","slo-status-healthy"],["NEAR","slo-status-near"],["COMPLETED","slo-status-completed"],["NO_DATA","slo-status-no-data"]]);var xW=function(a){this.sloStatusHelpersService=a;this.includeNoSlo=!1};xW.prototype.ngOnInit=function(){Hic(this);this.hasSlo=!!this.sloStatus&&U4b(this.sloStatus)};xW.prototype.ngOnChanges=function(){Hic(this)};var Hic=function(a){a.sloStatus&&(a.assignmentSlo=Iic($k(a.sloStatus.assignmentBounds)),a.responseSlo=Iic($k(a.sloStatus.responseBounds)),a.closureSlo=Iic($k(a.sloStatus.closureBounds)))};xW.prototype.isSloStartTimeApplied=function(){return this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime)};
var Iic=function(a){if(eO(a))return a};xW.\u0275fac=function(a){return new (a||xW)(z(dO))};
xW.\u0275cmp=od({type:xW,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},features:[Fd],decls:3,vars:3,consts:[[4,"ngIf"],["sloMetricDescription","ASSIGNMENT",3,"sloStartTime","sloEndTime","sloBounds","includeObjective"],["sloMetricDescription","RESPONSE",3,"sloStartTime","sloEndTime","sloBounds","includeObjective"],["sloMetricDescription","CLOSURE",3,"sloStartTime","sloEndTime",
"sloBounds","includeObjective"]],template:function(a,b){a&1&&(P(0,sUa,2,4,"div",0),P(1,tUa,2,4,"div",0),P(2,uUa,2,4,"div",0));a&2&&(C("ngIf",(b.includeNoSlo||b.assignmentSlo)&&(!b.onlyShowMetric||"ASSIGNMENT"==b.onlyShowMetric)),w(1),C("ngIf",(b.includeNoSlo||b.responseSlo)&&(!b.onlyShowMetric||"RESPONSE"==b.onlyShowMetric)),w(1),C("ngIf",(b.includeNoSlo||b.closureSlo)&&(!b.onlyShowMetric||"CLOSURE"==b.onlyShowMetric)))},dependencies:[Ev,wW],encapsulation:2,changeDetection:0});var yW=function(a,b,c,d){this.sloStatusHelpersService=a;this.paths=b;this.analytics=c;this.sloApi=d};yW.prototype.ngOnInit=function(){this.hasSlo=!!this.sloStatus&&V4b(this.sloStatus,this.onlyShowMetric);"0"!==this.sloId?(this.editSloLink=this.paths.editSlo(this.sloId),Jic(this)):this.editSloLink=null};yW.prototype.trackOpenSlo=function(){this.analytics.trackEvent(xp.EDIT_SLO,"open","fromSloStatusCard")};
var Jic=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.name}).catch(function(){a.sloName=null})};yW.\u0275fac=function(a){return new (a||yW)(z(dO),z(xE),z(zH),z(vW))};
yW.\u0275cmp=od({type:yW,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",onlyShowMetric:"onlyShowMetric"},ngContentSelectors:["*"],decls:10,vars:4,consts:[[3,"onedevHovercardTrigger"],["card",""],["role","dialog","aria-label","SLO Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow"],["class","slo-indicators",4,"ngIf"],["class","no-slo-message",4,"ngIf"],[4,"ngIf"],[1,"slo-indicators"],[3,"sloStatus",
"sloStartTime","onlyShowMetric"],[1,"no-slo-message"],["class","slo-link",3,"href","click",4,"ngIf"],[1,"slo-link",3,"href","click"]],template:function(a,b){a&1&&(eg(),D(0,"span",0),fg(1),F(),D(2,"onedev-hovercard",null,1)(4,"div",2)(5,"div",3)(6,"div",4),P(7,vUa,2,3,"div",5),P(8,yUa,3,2,"div",6),P(9,BUa,4,2,"span",7),F()()()());if(a&2){var c=N(3);C("onedevHovercardTrigger",c);w(7);C("ngIf",b.hasSlo);w(1);C("ngIf",!b.hasSlo);w(1);C("ngIf",b.editSloLink)}},dependencies:[Ev,PJ,UJ,xW],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}hovercard-content[_ngcontent-%COMP%]   slo-time-indicator[_ngcontent-%COMP%]{display:inline-block;margin:2px 0}hovercard-content[_ngcontent-%COMP%]   .slo-indicators[_ngcontent-%COMP%]{margin-bottom:5px}hovercard-content[_ngcontent-%COMP%]   .no-slo-message[_ngcontent-%COMP%]{margin:2px 0 5px 2px}hovercard-content[_ngcontent-%COMP%]   .slo-link[_ngcontent-%COMP%]{margin-left:2px}/*# sourceMappingURL=slo_status_card.css.map */"]});var zW=function(a){var b=this;this.selectedCustomField=null;this.isLegalColumn=function(c){return void 0===b.columns.find(function(d){return d.name===String(c.customFieldId)})};this.column=a.column;this.columns=a.columns};zW.\u0275fac=function(a){return new (a||zW)(z(Tz))};
zW.\u0275cmp=od({type:zW,selectors:[["b-column-picker-custom-dialog"]],decls:9,vars:4,consts:[["mat-dialog-title",""],[3,"filter","fieldSelected"],["mat-button","",1,"gmat-button","medium","cancel",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button","medium","dialog-primary-action","confirm",3,"disabled","mat-dialog-close"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"mat-dialog-content")(3,"b-custom-field-picker",1),L("fieldSelected",function(c){return b.selectedCustomField=c}),
F()(),D(4,"mat-dialog-actions")(5,"button",2),Q(6," Cancel "),F(),D(7,"button",3),Q(8," Add "),F()());a&2&&(w(1),S("Insert custom field column next to ",b.column.fullLabel,""),w(2),C("filter",b.isLegalColumn),w(4),C("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[Ez,Vz,Wz,Xz,Yz,WR],encapsulation:2});var CUa="issueId componentPath type status priority severity reporter assignee verifier cc collaborator changelist postmortem blockingIssueId blockedByIssueId createdTime modifiedTime resolvedTime verifiedTime title foundInVersion targetedToVersion verifiedInVersion inProd duplicateOfIssueId voteCount duplicateCount ccCount collaboratorCount lastModifier archived minSlo assignmentSlo responseSlo closureSlo deletionTime team estimate estimateTotalOpen estimateTotalComplete accessLevel".split(" ");var Cp=function(a){this.fullLabel="";this.isCustomField=!1;this.tooltip="";this.moreOptions=[];this.parentLabel="";this.draggable=this.sortable=!0;this.isMetadata=!1;this.label=this.name="";a&&Object.assign(this,a)};Cp.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var HUa={issueId:{defaultSortDirection:"DESC",label:"ID",moreOptions:[{name:"id-link",menuItem:"Plain Link"},{name:"id-copy",menuItem:"Quick Copy Chip"}]},priority:{label:"P",fullLabel:"Priority"},severity:{label:"S",fullLabel:"Severity"},modifiedTime:{defaultSortDirection:"DESC",label:"LAST MODIFIED"},magic:{label:"MAGIC NUMBER"},createdTime:{defaultSortDirection:"DESC",label:"CREATED"},verifiedTime:{defaultSortDirection:"DESC",label:"VERIFIED"},resolvedTime:{defaultSortDirection:"DESC",label:"RESOLVED"},
blockedByIssueId:{sortable:!1,label:"BLOCKED BY"},foundInVersion:{label:"FOUND IN"},targetedToVersion:{label:"TARGETED TO"},verifiedInVersion:{label:"VERIFIED IN"},inProd:{label:"IN PROD"},duplicateOfIssueId:{sortable:!1,label:"DUPLICATE OF"},componentPath:{label:"COMPONENT",moreOptions:[{name:"wrapComponents",menuItem:"Wrap components"},{name:"rtlComponentPath",menuItem:"Prefer right alignment"}]},cc:{sortable:!1},collaborator:{sortable:!1},changelist:{sortable:!1},postmortem:{sortable:!1},blockingIssueId:{sortable:!1,
label:"BLOCKING"},title:{moreOptions:[{name:"showHotlists",menuItem:"Show hotlists"},{name:"wrapTitles",menuItem:"Wrap titles"}]},status:{moreOptions:[{name:"showStatusIcons",menuItem:"Icons only"},{name:"status-plain",menuItem:"Plain text (no colors)"}]},voteCount:{defaultSortDirection:"DESC",label:"VOTES",fullLabel:"Vote Count"},duplicateCount:{defaultSortDirection:"DESC",label:"DUPE COUNT",tooltip:"Duplicate Count"},ccCount:{defaultSortDirection:"DESC",label:"CC COUNT"},collaboratorCount:{defaultSortDirection:"DESC",
label:"COLLABORATOR COUNT"},lastModifier:{label:"LAST MODIFIED BY"},minSlo:{defaultSortDirection:"ASC",label:"NEAREST SLO",fullLabel:"Nearest SLO",parentLabel:"SLO"},assignmentSlo:{label:"ASSIGNMENT SLO",fullLabel:"Assignment SLO",parentLabel:"SLO",sortable:!0},responseSlo:{label:"RESPONSE SLO",fullLabel:"Response SLO",parentLabel:"SLO",sortable:!0},closureSlo:{label:"CLOSURE SLO",fullLabel:"Closure SLO",parentLabel:"SLO",sortable:!0},deletionTime:{label:"DELETION DATE",fullLabel:"Deletion Date",
sortable:!0},team:{label:"TEAM",sortable:!0},estimate:{label:"ESTIMATE",fullLabel:"Estimate",parentLabel:"Estimates",sortable:!0},estimateTotalOpen:{label:"TOTAL DAYS OPEN",fullLabel:"Total days open",parentLabel:"Estimates",sortable:!0,tooltip:"Total estimate of all child issues that are open in number of days"},estimateTotalComplete:{label:"TOTAL DAYS COMPLETE",fullLabel:"Total days complete",parentLabel:"Estimates",sortable:!0,tooltip:"Total estimate of all child issues that are complete (fixed or won\u2019t fix) in number of days"},
accessLevel:{label:"ISSUE ACCESS LEVEL",sortable:!0}};var AW=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};AW.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var Kic=function(){this.bindings=[]};Kic.prototype.off=function(){for(var a=l(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var Lic=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.element=this.params.nativeElement;this.eventBindings=new Kic;this.resetDragTarget=function(){b.dragTargetElement&&(b.dragTargetElement.classList.remove("drag-over"),b.dragTargetElement.classList.remove("left"),b.dragTargetElement.classList.remove("right"));b.dragTargetElement=null};this.onDragTargetDragstart=function(c,d){b.draggedElement=d;b.dragIndex=b.params.getColumnIndexForElement(b.draggedElement);b.draggedElement.classList.add("dragging");
b.draggedElement.setAttribute("aria-grabbed","true");if(c=c.dataTransfer)c.setData("text","drag"),c.effectAllowed="move",c.dropEffect="move"};this.onDragTargetDragenter=function(c,d){b.draggedElement&&d&&d.draggable&&d!==b.draggedElement&&(b.resetDragTarget(),b.dragTargetElement=d,b.dragTargetElement&&(d=b.params.getColumnIndexForElement(b.dragTargetElement),b.dragTargetElement.classList.add("drag-over"),null!=b.dragIndex&&(d>b.dragIndex?(b.dragTargetElement.classList.remove("left"),b.dragTargetElement.classList.add("right")):
(b.dragTargetElement.classList.add("left"),b.dragTargetElement.classList.remove("right"))),b.mask.style.width=b.dragTargetElement.offsetWidth+"px",b.mask.style.height=b.dragTargetElement.offsetHeight+"px",b.mask.style.left="0",b.mask.style.top="0",b.dragTargetElement.appendChild(b.mask),b.mask.style.display="block"),c.stopPropagation(),c.preventDefault())};this.onDragTargetDragend=function(c,d){d.classList.remove("dragging");b.draggedElement&&b.draggedElement.setAttribute("aria-grabbed","false");
b.resetDragTarget();b.draggedElement=null;b.mask.style.display="none";c.stopPropagation();c.preventDefault()};this.onDragTargetSelectstart=function(c){c.currentTarget.dragDrop();c.stopPropagation();c.preventDefault()};this.onMaskDragLeave=function(c){b.resetDragTarget();b.mask.style.display="none";c.stopPropagation();c.preventDefault()};this.onMaskDragover=function(c){b.draggedElement&&(c.stopPropagation(),c.preventDefault())};this.onMaskDrop=function(c){if(b.dragTargetElement){var d=b.params.getColumnIndexForElement(b.dragTargetElement);
b.resetDragTarget();b.mask.style.display="none";b.dragIndex!==d&&b.params.ngZone.run(function(){if(null!=b.dragIndex)b.params.onDragDropColumn(b.dragIndex,d)})}c.stopPropagation();c.preventDefault()}};
Lic.prototype.setup=function(){var a=this;this.mask.style.position="absolute";this.mask.style.zIndex="100";this.mask.style.margin="-2px";this.mask.classList.add("pop-grid-dnd-mask");this.mask.style.display="none";this.params.ngZone.runOutsideAngular(function(){Mic(a,"dragstart",a.onDragTargetDragstart);Mic(a,"dragenter",a.onDragTargetDragenter);Mic(a,"dragend",a.onDragTargetDragend);Mic(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new AW(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new AW(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new AW(a.mask,"drop",a.onMaskDrop))})};var Mic=function(a,b,c){a.eventBindings.bindings.push(new AW(a.element,b,Ep("th.drag-target",c)))};Lic.prototype.tearDown=function(){this.eventBindings.off()};var Nic=["table"],Oic=["defaultHeaderCellTemplate"],Pic=["defaultViewCellTemplate"],Qic=["dataRows"],MUa=function(a){return{column:a}},PUa=function(a,b,c){return{row:a,column:b,index:c}},BW=function(a,b){var c=this;this.activeSession=a;this.ngZone=b;this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new Yu;this.rowClick=new Yu;this.rowLabelRenderer=function(d,e){return"Row "+e};this.sortChange=new Yu;this.focusedRowIndexChange=new Yu;this.afterViewInit=
new Yu;this.enableDragDropHeader=!0;this.readUnreadOptOut=$C(this.activeSession,"readUnreadOptOut");this.onDragDropColumn=function(d,e){var f=[].concat(p(c.columns));d=f.splice(d,1)[0];f.splice(e,0,d);c.columns=f;c.columnsChange.emit([].concat(p(c.columns)))};this.onTdClickableClick=Ep("td.clickable",function(d,e){if(("mouseup"!==d.type||1===d.button)&&!M1b(e)&&(e=e.closest("tr"))){var f,h=null!=(f=e.dataset.rowId)?f:"";c.rowClick.emit({id:h,isRead:!!e.dataset.isRead,event:d})}})};
BW.prototype.ngOnInit=function(){this.enableDragDropHeader&&Ric(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};var Ric=function(a){a.dragDropHeaderLogic=new Lic({nativeElement:a.tableElement.nativeElement,ngZone:a.ngZone,getColumnIndexForElement:function(b){return a.getColumnIndexForElement(b)},onDragDropColumn:function(b,c){a.onDragDropColumn(b,c)}});a.dragDropHeaderLogic.setup()};
BW.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;null!=b&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(TEa(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};BW.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
BW.prototype.ngOnDestroy=function(){var a;null==(a=this.dragDropHeaderLogic)||a.tearDown();this.tableElement.nativeElement.removeEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.removeEventListener("mouseup",this.onTdClickableClick)};var Sic=function(a){return a.columns.map(function(b){b=b.name;return null!=b?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};BW.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
BW.prototype.focus=function(){if(null!=this.focusedRowIndex&&null!=this.dataRows){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};BW.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};BW.\u0275fac=function(a){return new (a||BW)(z(Us),z(Df))};
BW.\u0275cmp=od({type:BW,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(zg(Nic,7),zg(Oic,7),zg(Pic,7),zg(Qic,5,ae));if(a&2){var c;yg(c=Bg())&&(b.tableElement=c.first);yg(c=Bg())&&(b.defaultHeaderCellTemplate=c.first);yg(c=Bg())&&(b.defaultViewCellTemplate=c.first);yg(c=Bg())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer",enableDragDropHeader:"enableDragDropHeader"},
outputs:{columnsChange:"columnsChange",rowClick:"rowClick",sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit"},features:[Fd],decls:13,vars:3,consts:[[1,"pop-grid",3,"mousedown"],["table",""],[3,"class",4,"ngFor","ngForOf"],[1,"header-row"],[4,"ngFor","ngForOf"],[4,"ngIf"],["defaultHeaderCellTemplate",""],["defaultViewCellTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",3,"selected","unread","closed","grid-focus","click",
"focus",4,"ngFor","ngForOf"],["tabindex","0",3,"click","focus"],["dataRows",""],[3,"column"],[3,"row","column"]],template:function(a,b){a&1&&(D(0,"table",0,1),L("mousedown",function(c){c.shiftKey&&window.getSelection().removeAllRanges()}),D(2,"colgroup"),P(3,KUa,1,3,"col",2),F(),D(4,"thead")(5,"tr",3),P(6,NUa,2,4,"ng-container",4),F()(),D(7,"tbody"),P(8,SUa,2,1,"ng-container",5),F()(),P(9,TUa,2,1,"ng-template",null,6,Eg),P(11,UUa,2,2,"ng-template",null,7,Eg));a&2&&(w(3),C("ngForOf",b.columns),w(3),
C("ngForOf",b.columns),w(2),C("ngIf",Sic(b)))},encapsulation:2});var CW=function(a,b){this.templateRef=a;this.popGrid=b};CW.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};CW.\u0275fac=function(a){return new (a||CW)(z(vg),z(BW))};CW.\u0275dir=sd({type:CW,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"}});var DW=function(a,b){this.templateRef=a;this.popGrid=b};
DW.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};DW.\u0275fac=function(a){return new (a||DW)(z(vg),z(BW))};DW.\u0275dir=sd({type:DW,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"}});var EW=function(a,b){this.templateRef=a;this.popGrid=b};EW.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};EW.\u0275fac=function(a){return new (a||EW)(z(vg),z(BW))};
EW.\u0275dir=sd({type:EW,selectors:[["","forHeaderCellDefault",""]]});var FW=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new Yu};FW.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?"ASC"===this.sort.direction?a+", sorted ascending":a+", sorted descending":a};FW.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
FW.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a="ASC"===this.sort.direction?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};FW.\u0275fac=function(a){return new (a||FW)};
FW.\u0275cmp=od({type:FW,selectors:[["b-sortable-header"]],inputs:{columnName:"columnName",columnLabel:"columnLabel",sort:"sort",defaultSortDirection:"defaultSortDirection"},outputs:{sortChanged:"sortChanged"},decls:3,vars:8,consts:[["role","button","tabindex","0",1,"keep-focus-ring","pop-grid-sort-header",3,"click","keydown.enter","keydown.space"],[1,"arrow"]],template:function(a,b){a&1&&(D(0,"div",0),L("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();return c.stopPropagation()})("keydown.space",
function(c){b.activate();return c.stopPropagation()}),G(1,"span",1),Q(2),F());a&2&&(Xf("current-sort",b.isActive())("direction-asc",b.isActive()&&"ASC"===b.sort.direction)("direction-desc",b.isActive()&&"DESC"===b.sort.direction),Nf("aria-label",b.ariaLabel()),w(2),S(" ",b.columnLabel," "))},encapsulation:2});var GW=function(a,b){this.elementRef=a;this.grid=b};GW.prototype.ngAfterViewInit=function(){if(this.column){var a=this.column;if(a.draggable){var b;a:{for(b=this.elementRef.nativeElement;b.parentElement;){if("TH"===b.parentElement.tagName){b=b.parentElement;break a}b=b.parentElement}b=void 0}if(this.cellParent=b)this.cellParent.draggable=!0,this.cellParent.classList.add("drag-target"),this.cellParent.dataset.dragTargetColumnName=a.name}}};GW.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};
GW.\u0275fac=function(a){return new (a||GW)(z(ae),z(BW,8))};
GW.\u0275cmp=od({type:GW,selectors:[["pop-grid-default-th"]],inputs:{column:"column"},decls:3,vars:2,consts:[[1,"pop-grid-default-th"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip","sortChanged",4,"ngIf"],["class","pop-grid-non-sort-header keep-focus-ring","tabindex","0",4,"ngIf"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip","sortChanged"],["tabindex","0",1,"pop-grid-non-sort-header","keep-focus-ring"],["class","a11y-only",4,"ngIf"],[1,"a11y-only"]],
template:function(a,b){a&1&&(D(0,"div",0),P(1,VUa,1,5,"b-sortable-header",1),P(2,XUa,3,3,"div",2),F());a&2&&(w(1),C("ngIf",b.column.sortable),w(1),C("ngIf",!b.column.sortable))},dependencies:[Ev,FB,FW],encapsulation:2});var dVa=function(a,b){return{columns:a,before:b}},Tic=function(){return{before:!1}},Uic=function(){return{before:!0}},HW=function(a,b,c,d,e,f){Y.call(this);var h=this;this.matDialog=a;this.userPreferencesManager=b;this.butterBar=c;this.analytics=d;this.hotkeys=e;this.activeSession=f;this.selectedColumnsChange=new Yu;this.onAddTeamColumn=new Yu;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=YC.listViewPreferences;b.preferences$.pipe(Af(this.destroyed$)).subscribe(function(k){h.listViewPrefs=
k.listViewPreferences||YC.listViewPreferences})};W(HW,Y);HW.\u0275dir=Y.\u0275dir;HW.prototype.ngOnChanges=function(a){a.selectedColumns&&Vic(this)};
var Wic=function(a){a.selectedColumnsChange.emit([].concat(p(a.selectedColumns)));Vic(a)},ZUa=function(a,b){var c=Object.assign({},a.listViewPrefs),d=$Ua(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||WF(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(nf(),Af(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||WF(a.butterBar,
"Display preference saved.",4E3)},function(){a.activeSession.isAnonymous()||a.butterBar.showWarning("Display preference could not be saved.")})},gVa=function(a,b){a.hotkeys.pause();Pz(a.matDialog.open(zW,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Af(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},Vic=function(a){for(var b={},c=
l(a.selectedColumns),d=c.next();!d.done;d=c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!rca(b,f.name)});c=[].concat(p(new Set(e.filter(function(f){return f.parentLabel}).map(function(f){return f.parentLabel})))).map(function(f){return{label:f,columns:e.filter(function(h){return h.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(p(d),p(c));a.currentAvailableItems.sort(function(f,h){return oq(f instanceof Cp?f.fullLabel:
f.label,h instanceof Cp?h.fullLabel:h.label)});a.isRemovable=Xic(a)};HW.prototype.isIssueGridColumn=function(a){return a instanceof Cp};HW.prototype.remove=function(){var a=this;if(this.isRemovable){var b=this.selectedColumns.filter(function(c){return c.name!==a.column.name});if(b.length!==this.selectedColumns.length)return this.selectedColumns=b,Wic(this),!0}return!1};
HW.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new Cp({name:a.customFieldId.toString(),label:a.name,fullLabel:a.name,sortable:!0,draggable:!0,isCustomField:!0}):a;"TEAM"===a.label&&this.onAddTeamColumn.emit();var d=this.selectedColumns.findIndex(function(e){return e.name===c.column.name});if(-1===d)return!1;b=b?d:d+1;this.selectedColumns=[].concat(p(this.selectedColumns));this.selectedColumns.splice(b,0,a);Wic(this);return!0};
var Xic=function(a){return 1<a.selectedColumns.filter(function(b){return!b.isMetadata}).length};HW.\u0275fac=function(a){return new (a||HW)(z(Uz),z(iE),z(VF),z(zH),z(qE),z(Us))};
HW.\u0275cmp=od({type:HW,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&zg(zB,5);if(a&2){var c;yg(c=Bg())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},features:[Jf,Fd],decls:20,vars:11,consts:[[1,"bv2-column-picker-container"],[1,"bv2-columnheader-content"],[3,"column"],["mat-button","","tabindex","0","role","button","class",
"columnpicker-button",3,"matMenuTriggerFor","columnpicker-button-active","menuOpened","menuClosed","keydown.enter","keydown.space",4,"ngIf"],[1,"columnpicker-menu"],["pickerMenu","matMenu"],["mat-menu-item","","class","checkbox-item",3,"b-menu-item-checked","click",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"disabled","click"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["addColumnMenu","matMenu"],["matMenuContent",""],["columnGroupMenu","matMenu"],["mat-button","",
"tabindex","0","role","button",1,"columnpicker-button",3,"matMenuTriggerFor","menuOpened","menuClosed","keydown.enter","keydown.space"],["menuTrigger","matMenuTrigger"],["mat-menu-item","",1,"checkbox-item",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-description"],["mat-menu-item","",3,"click"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"matTooltip","click","keydown.enter",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",
4,"ngIf"],["mat-menu-item","",3,"matTooltip","click","keydown.enter"],["mat-menu-item","",3,"click","keydown.enter",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click","keydown.enter"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),G(2,"pop-grid-default-th",2),F(),P(3,YUa,2,4,"div",3),D(4,"mat-menu",4,5),P(6,aVa,4,3,"button",6),P(7,bVa,1,0,"mat-divider",7),D(8,"button",8),L("click",function(){return b.remove()}),Q(9," Remove column "),F(),D(10,"button",9),Q(11," Add column right "),F(),D(12,
"button",9),Q(13," Add column left "),F()(),D(14,"mat-menu",null,10),P(16,hVa,4,1,"ng-template",11),F(),D(17,"mat-menu",null,12),P(19,jVa,1,1,"ng-template",11),F()());if(a&2){var c=N(15);w(2);C("column",b.column);w(1);C("ngIf",!0);w(3);C("ngForOf",b.column.moreOptions);w(1);C("ngIf",b.column.moreOptions.length);w(1);C("disabled",!b.isRemovable);w(2);C("matMenuTriggerFor",c)("matMenuTriggerData",ng(9,Tic));w(2);C("matMenuTriggerFor",c)("matMenuTriggerData",ng(10,Uic))}},dependencies:[Dv,Ev,AB,yB,zB,
xB,dD,FB,bD,GW],styles:['.bv2-columheader-content[_ngcontent-%COMP%]{display:inline-block;height:100%}.columnpicker-button[_ngcontent-%COMP%]{background:none;border:1px solid rgba(0,0,0,0);height:24px;width:24px;opacity:.8}.columnpicker-button[_ngcontent-%COMP%]::before{background:none;border-radius:50%;position:absolute;top:-2px;bottom:-2px;left:-2px;right:-2px;box-sizing:border-box;content:"";display:block}.columnpicker-button[_ngcontent-%COMP%]:hover::before, .columnpicker-button[_ngcontent-%COMP%]:focus::before, .columnpicker-button.columnpicker-button-active[_ngcontent-%COMP%]::before{background-color:#dadce0;background-color:var(--c300);opacity:1}.columnpicker-button[_ngcontent-%COMP%]::after{background:url(https://www.gstatic.com/buganizer/img/v0/arrow_drop_down_black.svg);content:"";cursor:pointer;height:24px;width:24px;opacity:.8;position:absolute}@media(forced-colors: active){.columnpicker-button[_ngcontent-%COMP%]::after{filter:invert(1)}}  .columnpicker-menu .mat-menu-content button.mat-menu-item{line-height:0px;padding:5px 32px 5px 16px;white-space:normal;font-family:Roboto,Arial,sans-serif}  .columnpicker-menu .mat-menu-content button.mat-menu-item.checkbox-item{padding-left:24px}  .columnpicker-menu .mat-menu-content button.mat-menu-item .b-menu-item-check-mark{top:50%;transform:translate(0, -50%)}/*# sourceMappingURL=column_picker.css.map */']});var $ic=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=Ep("td.drag-handle",function(c,d){b.draggedRow=d.closest("tr");b.draggedRow.classList.add("dragging");b.draggedRow.setAttribute("aria-grabbed","true");c=c.dataTransfer;c.setData("text","drag");c.setDragImage(b.draggedRow,0,0);c.effectAllowed="move";c.dropEffect="move"});this.onTrDragEnter=Ep("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){Yic(b.dragTargetRow);b.dragTargetRow=d;var e;b.draggedIssueIndex=b.params.rowFinder(null!=(e=b.draggedRow.dataset.rowId)?e:void 0);var f;b.dragTargetIndex=b.params.rowFinder(null!=(f=b.dragTargetRow.dataset.rowId)?f:void 0);b.dragTargetRow.classList.add("drag-over");b.dragTargetIndex>b.draggedIssueIndex?b.dragTargetRow.classList.add("below"):b.dragTargetRow.classList.add("above");a:{for(c=b.dragTargetRow.parentElement;c;){if("static"!==window.getComputedStyle(c).position)break a;
c=c.parentElement}c=void 0}c&&(d=c.scrollTop||0,c=b.dragTargetRow.getBoundingClientRect().top-c.getBoundingClientRect().top+d,b.dropzone.style.width=b.dragTargetRow.offsetWidth+"px",b.dropzone.style.height=b.dragTargetRow.offsetHeight+"px",b.dropzone.style.left="0",b.dropzone.style.top=c+"px");b.dragTargetRow.appendChild(b.dropzone);b.dropzone.style.display="block"}});this.onTrDragEnd=Ep("tr",function(){b.draggedRow&&(Yic(b.draggedRow),Yic(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=Ep("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=Ep(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=Ep(".row-dropzone",function(c){Yic(b.dragTargetRow);Zic(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=Ep(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=Ep(".row-dropzone",function(c){Zic(b);
b.draggedIssueIndex!==b.dragTargetIndex&&b.params.ngZone.run(function(){if(null!=b.draggedIssueIndex&&null!=b.dragTargetIndex)b.params.onRowDragDrop({srcIndex:b.draggedIssueIndex,destIndex:b.dragTargetIndex})});c.stopPropagation();c.preventDefault()})};
$ic.prototype.setup=function(){var a=this;this.dropzone.style.position="absolute";this.dropzone.style.zIndex="100";this.dropzone.style.margin="-2px";this.dropzone.classList.add("row-dropzone");Zic(this);this.params.ngZone.runOutsideAngular(function(){a.element.addEventListener("dragstart",a.onTdDragStart);a.element.addEventListener("dragenter",a.onTrDragEnter);a.element.addEventListener("dragend",a.onTrDragEnd);a.element.addEventListener("dragleave",a.onTrDragLeave);a.element.addEventListener("dragenter",
a.onDropzoneDragEnter);a.element.addEventListener("dragleave",a.onDropzoneDragLeave);a.element.addEventListener("dragover",a.onDropzoneDragOver);a.element.addEventListener("drop",a.onDropzoneDrop)})};
$ic.prototype.tearDown=function(){this.dropzone.remove();this.element.removeEventListener("dragstart",this.onTdDragStart);this.element.removeEventListener("dragenter",this.onTrDragEnter);this.element.removeEventListener("dragend",this.onTrDragEnd);this.element.removeEventListener("dragleave",this.onTrDragLeave);this.element.removeEventListener("dragenter",this.onDropzoneDragEnter);this.element.removeEventListener("dragleave",this.onDropzoneDragLeave);this.element.removeEventListener("dragover",this.onDropzoneDragOver);
this.element.removeEventListener("drop",this.onDropzoneDrop)};var Yic=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},Zic=function(a){a.dropzone.style.display="none"};var IW=function(a){this.sloStatusHelpersService=a;this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};IW.prototype.ngOnInit=function(){ajc(this)};IW.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&ajc(this)};var ajc=function(a){var b=W4b(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
IW.\u0275fac=function(a){return new (a||IW)(z(dO))};
IW.\u0275cmp=od({type:IW,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},features:[Fd],decls:1,vars:5,consts:[[3,"sloBounds","sloMetricDescription","sloStartTime","sloEndTime","includeObjective"]],template:function(a,b){a&1&&G(0,"b-slo-time-indicator",0);a&2&&C("sloBounds",b.firstOpenSlo)("sloMetricDescription",b.firstOpenSloMetric)("sloStartTime",
b.sloStartTime)("sloEndTime",b.sloEndTime)("includeObjective",b.includeObjective)},dependencies:[wW],encapsulation:2,changeDetection:0});var JW=function(){};JW.\u0275fac=function(a){return new (a||JW)};JW.\u0275cmp=od({type:JW,selectors:[["archived-issue-indicator"]],decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(D(0,"span"),G(1,"mat-icon",0),Q(2,"Archived "),F())},dependencies:[qA],styles:["span[_ngcontent-%COMP%]{border-radius:8px;display:inline-block;line-height:18px;padding:0 10px;margin-right:6px;color:#202124;color:var(--text-high-contrast);background-color:#feefc3;background-color:var(--archived-bg)}mat-icon[_ngcontent-%COMP%]{height:15px;width:15px;margin:2px;vertical-align:middle;color:#5f6368;color:var(--icon)}"]});
var KW=function(){};KW.\u0275fac=function(a){return new (a||KW)};KW.\u0275mod=qd({type:KW});KW.\u0275inj=ad({imports:[aD]});var LW=function(a){this.bFocus=!0;this.nativeElement=a.nativeElement};LW.prototype.ngOnInit=function(){this.bFocus&&this.nativeElement.focus()};LW.prototype.ngOnChanges=function(){this.bFocus&&this.nativeElement.focus()};LW.\u0275fac=function(a){return new (a||LW)(z(ae))};LW.\u0275dir=sd({type:LW,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},features:[Fd]});var MW=function(){};MW.\u0275fac=function(a){return new (a||MW)};MW.\u0275mod=qd({type:MW});MW.\u0275inj=ad({});var NW=function(a){this.internalArray_=m(a,0,NW.messageId)};W(NW,X);NW.repeatedFields_=[1];NW.messageId="b.ListStatusUpdateHistoryResponse";var OW=function(a){this.executor=a};OW.prototype.get=function(a,b){return this.executor.get({url:tUb(a),responseConstructor:VE,options:{params:{issueCommentView:String(Fwa[void 0===b?"MARKDOWN":b])}}}).pipe(A(Lm))};
OW.prototype.update=function(a){var b=this.executor,c=b.post,d=tUb(a.issueId),e=new VE;a.issueId&&e.setIssueId(a.issueId);a.updateText&&qj(e,2,a.updateText);if(a.formattedText){var f=a.formattedText,h=new Km;if(f.plainFormat){var k=f.plainFormat;var q=new Ul;k=k.plainSection.map(Iva);q=om(q,1,k);Ll(h,1,Vl,q)}f.markdownFormat&&(q=f.markdownFormat,q=(new Xl).setContent(q.content),Ll(h,2,Vl,q));f.literalFormat&&(f=f.literalFormat,f=(new Yl).setContent(f.content),Ll(h,3,Vl,f));oj(e,Km,3,h)}a.formattingMode&&
e.setFormattingMode(Fwa[a.formattingMode]);a.author&&e.setAuthor(Ci(a.author));a.updateTime&&e.setUpdateTime(kl(a.updateTime));a.version&&e.setVersion(a.version);return c.call(b,{url:d,body:e,responseConstructor:VE}).pipe(A(Lm))};OW.prototype.delete=function(a){return this.executor.delete({url:tUb(a),responseConstructor:null})};
var bjc=function(a,b){return a.executor.get({url:"action/issues/"+b+"/statusUpdateHistory",responseConstructor:NW,options:{params:{issueCommentView:String(Fwa.MARKDOWN)}}}).pipe(A(function(c){return Ji(c,VE,1).map(Lm)}))};OW.\u0275fac=function(a){return new (a||OW)(n(tD))};OW.\u0275prov=$c({token:OW,factory:OW.\u0275fac,providedIn:"root"});var PW=function(a){this.internalArray_=m(a,0,PW.messageId)};W(PW,X);g=PW.prototype;g.getComponentId=function(){return Yi(this,1)};g.setComponentId=function(a){return wj(this,1,a)};g.hasComponentId=function(){return Xi(this,1)};g.getText=function(){return Hi(this,2)};g.setText=function(a){return qj(this,2,a)};PW.messageId="b.CheckBannedWordsRequest";var QW=function(a){this.internalArray_=m(a,0,QW.messageId)};W(QW,X);QW.repeatedFields_=[1];QW.messageId="b.CheckBannedWordsResponse";var RW=function(a){this.executor=a};RW.prototype.checkBannedWords=function(a){a=(new PW).setComponentId(a.componentId).setText(a.text);return this.executor.post({url:"action/check_banned_words",body:a,responseConstructor:QW}).pipe(A(kVa))};RW.\u0275fac=function(a){return new (a||RW)(n(tD))};RW.\u0275prov=$c({token:RW,factory:RW.\u0275fac,providedIn:"root"});var SW=function(a){this.observableApi=a};SW.prototype.checkBannedWords=function(a){return(0,B.firstValueFrom)(this.observableApi.checkBannedWords(a))};
SW.\u0275fac=function(a){return new (a||SW)(n(RW))};SW.\u0275prov=$c({token:SW,factory:SW.\u0275fac,providedIn:"root"});var TW=function(a,b,c,d){Y.call(this);this.bannedWordsApi=a;this.activeSession=b;this.errorHandler=c;this.analytics=d;this.matchedPatterns=[];this.warningState="INITIAL";this.enableBannedWordsCheck=$C(this.activeSession,"enableBannedWordsCheck");this.isUserInternal=this.activeSession.isInternalSession()};W(TW,Y);TW.\u0275dir=Y.\u0275dir;
TW.prototype.check=function(a,b,c){var d=this;return Ne(function(e){if(!(d.enableBannedWordsCheck&&d.isUserInternal&&b&&c))return e.return(!0);switch(d.warningState){case "INITIAL":return e.return(cjc(d,String(c),a));case "SHOW_WARNING":return d.warningState="SKIP_WARNING",d.analytics.trackEvent(xp.BANNED_WORDS,"skipBannedWordsCheck",Fp(d)),e.return(!0);default:return e.return(!0)}})};
var cjc=function(a,b,c){var d,e;return Ne(function(f){if(1==f.nextAddress)return Oe(f,2),f.yield(a.bannedWordsApi.checkBannedWords({componentId:b,text:c}),4);if(2!=f.nextAddress)return d=f.yieldResult,0<d.matchedPatterns.length?(a.matchedPatterns=d.matchedPatterns,a.warningState="SHOW_WARNING",a.analytics.trackEvent(xp.BANNED_WORDS,"failBannedWordsCheck",Fp(a)),f.return(!1)):f.return(!0);e=Re(f);ZF(a.errorHandler,e);return f.return(!0)})},Fp=function(a){return a.matchedPatterns.join(", ")};
TW.prototype.showWarning=function(){return"SHOW_WARNING"===this.warningState};TW.prototype.reset=function(){this.matchedPatterns=[];this.warningState="INITIAL"};TW.\u0275fac=function(a){return new (a||TW)(n(SW),n(Us),n(XF),n(zH))};TW.\u0275prov=$c({token:TW,factory:TW.\u0275fac});var UW=function(){var a=this;this.checks=[];this.beforeUnloadEventHandler=function(b){if(a.checks.some(function(c){return c.dataChanged()}))return b.preventDefault(),b.returnValue="","You have unsaved changes in your form."};window.addEventListener("beforeunload",this.beforeUnloadEventHandler)};UW.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler)};
var VW=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new B.Subscription(function(){a.checks=a.checks.filter(function(e){return e!==d})})};UW.prototype.canDeactivate=function(a,b,c,d){a:{a=tC(c.url).getPath()===tC(d.url).getPath();b=l(this.checks);for(c=b.next();!c.done;c=b.next())if(c=c.value,a){if(c.triggerOnSearch&&c.dataChanged()){a=!0;break a}}else if(c.dataChanged()){a=!0;break a}a=!1}return a?djc()?(this.checks=[],!0):!1:!0};var djc=function(){return window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?")};
UW.\u0275fac=function(a){return new (a||UW)};UW.\u0275prov=$c({token:UW,factory:UW.\u0275fac,providedIn:"root"});var ejc=function(a){return[a]},WW=function(a){this.matDialog=a};WW.prototype.show=function(a,b,c){"LITERAL"===a.formattingMode&&(a.formattingMode="PLAIN");this.dialog=this.matDialog.open(XW,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{componentId:c,formattingAudience:b,statusUpdate:a}});return(0,B.firstValueFrom)(Pz(this.dialog))};WW.\u0275fac=function(a){return new (a||WW)(n(Uz))};WW.\u0275prov=$c({token:WW,factory:WW.\u0275fac,providedIn:"root"});
var XW=function(a,b,c,d,e,f){Y.call(this);var h=this;this.activeSession=a;this.data=b;this.dialogService=c;this.dialogRef=d;this.bannedWordsChecker=f;this.CHAR_LIMIT=1E3;this.FormattingMode=IC;this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/delete-comments-attachments":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.formattingAudience=b.formattingAudience;this.origStatusUpdate=b.statusUpdate;this.newStatusUpdate=
li(this.origStatusUpdate);this.subscriptions.add(VW(e,function(){return h.isModified()},!1))};W(XW,Y);XW.\u0275dir=Y.\u0275dir;var fjc=function(a){var b,c;return null!=(c=BCa(null==(b=a.newStatusUpdate)?void 0:b.updateText))?c:""};g=XW.prototype;g.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Af(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
g.closeIfUnmodified=function(){if(!this.isModified()){var a;null==(a=this.dialogService.dialog)||a.close()}};g.isModified=function(){return!ki(this.newStatusUpdate,this.origStatusUpdate)};g.asNumber=function(a){return Number(a)};
g.closeDialogForSave=function(){var a=this,b,c,d;return Ne(function(e){if(1==e.nextAddress)return a.isModified()?e.yield(a.bannedWordsChecker.check(a.newStatusUpdate.updateText,"EXTERNAL_AUDIENCE"===a.formattingAudience,a.data.componentId),2):e.return();b=e.yieldResult;if(!b)return null==(c=a.commentDraft)||mgc(c),e.return();null==(d=a.dialogService.dialog)||d.close(a.newStatusUpdate);Se(e)})};XW.\u0275fac=function(a){return new (a||XW)(z(Us),z(Tz),z(WW),z(Rz),z(UW),z(TW))};
XW.\u0275cmp=od({type:XW,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&zg(LT,5);if(a&2){var c;yg(c=Bg())&&(b.commentDraft=c.first)}},features:[lg([TW]),Jf],decls:19,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"content","textareaClass","contentChange","onSubmit"],["class","char-limit-warning",4,"ngIf"],["class","banned-words-warning break-word",4,"ngIf"],[1,"inline-block",3,"initialValue",
"change"],["class","clamper line-clamp-4","tabindex","0",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button","save-button",3,"disabled","color","click"],[1,"char-limit-warning"],[1,"banned-words-warning","break-word"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],["tabindex","0",1,"clamper","line-clamp-4"],[3,"comment","issueId",
"formattingMode","audience"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Editing Status Update"),F(),D(2,"section",1)(3,"p",2),Q(4," Editing the Status Update will not permanently remove old ones from database history. "),G(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),D(7,"a",3),Q(8," file a support request. "),F()(),D(9,"b-comment-draft",4),L("contentChange",function(d){return b.newStatusUpdate.updateText=d})("contentChange",function(){b.bannedWordsChecker.reset()})("onSubmit",
function(){return b.closeDialogForSave()}),F(),P(10,lVa,2,1,"p",5),P(11,mVa,4,1,"p",6),D(12,"b-markdown-toggle",7),L("change",function(d){return b.newStatusUpdate.formattingMode=d}),F(),P(13,nVa,2,4,"div",8),F(),D(14,"footer",9)(15,"button",10),Q(16," Cancel "),F(),D(17,"button",11),L("click",function(){return b.closeDialogForSave()}),Q(18),F()());if(a&2){var c;w(7);C("href",b.contentRemovalRequestLink,re);w(2);Yf(fjc(b));C("content",b.newStatusUpdate.updateText)("textareaClass",og(15,ejc,b.bannedWordsChecker.showWarning()?
"banned-words-warning":""));w(1);C("ngIf",1E3<b.newStatusUpdate.updateText.length);w(1);C("ngIf",b.bannedWordsChecker.showWarning());w(1);Xf("margin-bottom",b.newStatusUpdate.formattingMode!==b.FormattingMode.MARKDOWN);C("initialValue",null!==(c=b.origStatusUpdate.formattingMode)&&void 0!==c?c:b.FormattingMode.PLAIN);w(1);C("ngIf",b.newStatusUpdate.formattingMode===b.FormattingMode.MARKDOWN);w(2);C("mat-dialog-close",void 0);w(2);C("disabled",0===b.newStatusUpdate.updateText.length||1E3<b.newStatusUpdate.updateText.length||
!b.isModified())("color",b.bannedWordsChecker.showWarning()?"warn":"primary");w(1);S(" ",b.bannedWordsChecker.showWarning()?"Save Anyway":"Save"," ")}},dependencies:[Vz,Wz,Xz,Yz,Ev,Ez,iT,hT,LT],styles:['b-comment-draft[_ngcontent-%COMP%]{position:relative;display:block}b-comment-draft[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;height:100%;width:4px;border-top-left-radius:4px;border-bottom-left-radius:4px;pointer-events:none}b-comment-draft.good[_ngcontent-%COMP%]:after{background-color:#34a853;background-color:var(--good)}b-comment-draft.warn[_ngcontent-%COMP%]:after{background-color:#fcc934;background-color:var(--warn)}b-comment-draft.bad[_ngcontent-%COMP%]:after{background-color:#ea4335;background-color:var(--bad)}.clamper[_ngcontent-%COMP%]:focus, .clamper[_ngcontent-%COMP%]:focus-within{display:block;-webkit-line-clamp:none}.banned-words-warning[_ngcontent-%COMP%], .char-limit-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}\n/*# sourceMappingURL=edit_status_update_dialog.css.map */'],
changeDetection:0});var YW=function(a){this.internalArray_=m(a)};W(YW,X);YW.prototype.getText=function(){return Hi(this,1)};YW.prototype.setText=function(a){return wm(this,1,a)};var ZW=function(a){this.internalArray_=m(a)};W(ZW,X);ZW.prototype.setModel=function(a){return wm(this,1,a)};ZW.prototype.getPrompt=function(){return Fi(this,YW,2)};ZW.prototype.setPrompt=function(a){return oj(this,YW,2,a)};ZW.repeatedFields_=[8,9];var qVa=function(a){this.internalArray_=m(a)};W(qVa,X);qVa.repeatedFields_=[2];var pVa=function(a){this.internalArray_=m(a)};W(pVa,X);pVa.repeatedFields_=[1,2,3,4];var gjc=function(a){this.internalArray_=m(a,0,gjc.messageId)};W(gjc,X);gjc.messageId="b.GenerateTextResponse";var $W=function(a){this.executor=a};$W.prototype.generate=function(a){var b;var c=(new ZW).setModel(null!=(b=a.model)?b:"models/text-bison-001").setPrompt((new YW).setText(a.prompt));return this.executor.post({url:"/action/palm/generate",body:c,responseConstructor:gjc}).then(rVa)};$W.\u0275fac=function(a){return new (a||$W)(n(uD))};$W.\u0275prov=$c({token:$W,factory:$W.\u0275fac,providedIn:"root"});var hjc={},ijc=(hjc[0]="Please provide a brief summary of the topic of the following conversation using a single line.",hjc[1]="Please provide a brief summary of the topic, any recommendations, and any status in the following conversation using up to 3 lines.",hjc),aX=function(a,b,c){this.prompts=a;this.palmApi=b;this.issueApi=c},kjc=function(a,b,c){var d;return Ne(function(e){if(1==e.nextAddress)return e.yield((0,B.firstValueFrom)(jjc(a.prompts,b)),2);if(d=e.yieldResult){var f=e.return,h=B.firstValueFrom;
var k=a.issueApi;var q=new xF;q=rj(q,2,0===c?1:2).setIssueId(b);k=k.executor.post({url:"action/issues/"+b+"/summarize",body:q,responseConstructor:WE}).pipe(A(jxa));e=f.call(e,h.call(B,k))}else e=e.return({status:1,summary:""});return e})},ljc=function(a,b){var c,d;return Ne(function(e){if(1==e.nextAddress)return c={prompt:b},e.yield(a.palmApi.generate(c),2);d=e.yieldResult;return e.return(d.output)})};aX.\u0275fac=function(a){return new (a||aX)(n(bX),n($W),n(BF))};
aX.\u0275prov=$c({token:aX,factory:aX.\u0275fac,providedIn:"root"});
var bX=function(a){this.eventsForIssueFridge=a},jjc=function(a,b){return mjc(a,b).pipe(A(function(c){return!!(c&&3<=c.commentEvents.length)}),mf())},njc=function(a,b,c){var d,e;return Ne(function(f){if(1==f.nextAddress)return f.yield((0,B.firstValueFrom)(mjc(a,b)),2);d=f.yieldResult;e=d.commentEvents.map(function(h){return h.userPerformingAction.split("@")[0]+": "+JSON.stringify(h.unlinkifiedComment.trim())});return f.return(ijc[c]+"\nThe input is of the form: <speaker>: <comment>, where the comment is a JSON string.\n\n"+
e.join("\n")+"\n\nSUMMARY:")})},mjc=function(a,b){return a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(A(function(c){if(!c)return{commentEvents:[]};c=c.events;return{commentEvents:[].concat(p(c.slice(0,1).filter(function(d){var e;return null==(e=d.unlinkifiedComment)?void 0:e.trim()})),p(c.slice(1).filter(sVa).filter(function(d){var e;return null==(e=d.unlinkifiedComment)?void 0:e.trim()})))}}))};bX.\u0275fac=function(a){return new (a||bX)(n(cH))};
bX.\u0275prov=$c({token:bX,factory:bX.\u0275fac,providedIn:"root"});var ojc=function(a){this.internalArray_=m(a)};W(ojc,X);ojc.prototype.getEmail=function(){return Hi(this,1)};ojc.prototype.setEmail=function(a){return wm(this,1,a)};var Gp=function(a){this.internalArray_=m(a)};W(Gp,X);g=Gp.prototype;g.getWorkspaceId=function(){return dj(this,1)};g.getName=function(){return Hi(this,2)};g.setName=function(a){return wm(this,2,a)};g.getTimeZone=function(){return Fi(this,km,8)};g.setTimeZone=function(a){return oj(this,km,8,a)};g.hasTimeZone=function(){return Zi(this,km,8)};g.getMembersList=function(){return Ji(this,ojc,9)};g.setMembersList=function(a){om(this,9,a)};g.getUpdateTime=function(){return Fi(this,gj,12)};
g.setUpdateTime=function(a){oj(this,gj,12,a)};g.getBookmarkGroupId=function(){return dj(this,14)};g.setBookmarkGroupId=function(a){return um(this,14,a)};g.getTeamId=function(){return Hi(this,20)};g.setTeamId=function(a){return wm(this,20,a)};var pjc=tc(Gp);Gp.repeatedFields_=[5,9,13,15,17,18];var qjc=function(a){this.internalArray_=m(a)};W(qjc,X);qjc.prototype.getWorkspaceId=function(){return dj(this,1)};var rjc=new UB("/google.corp.devtools.worktracker.v1.WorkspaceService/Get",qjc,Gp,function(a){return a.serialize()},pjc);var sjc=function(a){this.internalArray_=m(a)};W(sjc,X);var ujc=function(a,b){return Jl(a,1,tjc,b)};sjc.repeatedFields_=[3];var tjc=[1,2];var vjc=function(a){this.internalArray_=m(a)};W(vjc,X);var wjc=tc(vjc);vjc.repeatedFields_=[1];var xjc=new UB("/google.corp.devtools.worktracker.v1.WorkspaceService/List",sjc,vjc,function(a){return a.serialize()},wjc);var yjc=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new zC(b);this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};yjc.prototype.get=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Get",a,b||{},rjc)};yjc.prototype.list=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/List",a,b||{},xjc)};var zjc={},Ajc;zjc.Authorization=null!=(Ajc=Ko([]))?Ajc:"";zjc["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";zjc["X-Goog-AuthUser"]="0";var cX=function(a,b){this.activeSession=a;this.clientFactory=b;this.environmentType=this.activeSession.getEnvironmentType();this.client=this.clientFactory.create(this.getServiceEndpoint())},Bjc=function(a,b){return a.activeSession.isExternalSession()?(0,B.of)([]):(0,B.from)(a.client.list(ujc(new sjc,"b/"+b),zjc)).pipe(A(tVa(b)),gf(function(){return(0,B.of)([])}))};
cX.prototype.getServiceEndpoint=function(){switch(this.environmentType){case "NIGHTLY":return"https://staging-worktracker-googleapis.corp.google.com";case "PROD":return"https://worktracker-googleapis.corp.google.com";default:return"https://autopush-worktracker-googleapis.corp.google.com"}};cX.\u0275fac=function(a){return new (a||cX)(n(Us),n(dX))};cX.\u0275prov=$c({token:cX,factory:cX.\u0275fac,providedIn:"root"});var dX=function(){};dX.prototype.create=function(a){return new yjc(a)};
dX.\u0275fac=function(a){return new (a||dX)};dX.\u0275prov=$c({token:dX,factory:dX.\u0275fac,providedIn:"root"});var Cjc=[[["",8,"value-action"]]],eX=function(a){Y.call(this);var b=this;this.jspbPrincipalTypes=a;this.readonly=!1;this.collaborators=[];this.collaboratorsUsers=[];this.listFieldDisabled=!1;this.teamId="";this.isCollapsible=!1;this.valuesChange=new Yu;this.toggleAccessLimits=new Yu;this.additionAllowed=!0;this.ListFieldType=Nbc;this.userPrincipalValidator=function(c){var d,e,f;return Ne(function(h){if(1==h.nextAddress){if(!c)return h.return("This field is required");d=c.split(",").map(function(k){return k.trim()}).filter(Boolean);
return h.yield(xUb(b.jspbPrincipalTypes,d,!1),2)}e=h.yieldResult;f=d.find(function(k){var q;return"USER"!==(null==(q=e[k])?void 0:q.principalType)});return h.return(f?"You can only add users to collaborators.":"")})}};W(eX,Y);eX.\u0275dir=Y.\u0275dir;eX.\u0275fac=function(a){return new (a||eX)(z(xD))};
eX.\u0275cmp=od({type:eX,selectors:[["b-collaborators-field"]],inputs:{readonly:"readonly",collaborators:"collaborators",collaboratorsUsers:"collaboratorsUsers",listFieldDisabled:"listFieldDisabled",teamId:"teamId",isCollapsible:"isCollapsible",additionAllowed:"additionAllowed"},outputs:{valuesChange:"valuesChange",toggleAccessLimits:"toggleAccessLimits"},features:[lg([yD]),Jf],ngContentSelectors:[".value-action"],decls:3,vars:16,consts:[["aria-label","Collaborators are people directly working on this issue.",
1,"full-width",3,"defaultLineCount","readonly","additionAllowed","title","type","isUser","values","users","inputValidator","listFieldDisabled","teamId","isExpanded","collapsiblePanelTitle","isCollapsible","iconName","valuesChange","toggleAccessLimits"],[1,"value-action"]],template:function(a,b){a&1&&(eg(Cjc),D(0,"b-list-field",0),L("valuesChange",function(c){return b.valuesChange.emit(c)})("toggleAccessLimits",function(){return b.toggleAccessLimits.emit()}),D(1,"div",1),fg(2),F()());a&2&&(ig("collapsiblePanelTitle",
"",b.collaborators.length," ",1===b.collaborators.length?"user":"users",""),C("defaultLineCount",5)("readonly",b.readonly)("additionAllowed",b.additionAllowed)("title","Collaborators")("type",b.ListFieldType.USERCHIP)("isUser",!0)("values",b.collaborators)("users",b.collaboratorsUsers)("inputValidator",b.userPrincipalValidator)("listFieldDisabled",b.listFieldDisabled)("teamId",b.teamId)("isExpanded",!0)("isCollapsible",b.isCollapsible)("iconName",b.isCollapsible?"groups_24px":""))},dependencies:[KR],
encapsulation:2});var fX=function(){};fX.\u0275fac=function(a){return new (a||fX)};fX.\u0275mod=qd({type:fX});fX.\u0275inj=ad({imports:[LR,aD,FC]});var gX=function(){var a=this;this.pressed=new Yu;this.disabled=!1;this.getTooltip=function(){return a.disabled?"Deployment status is only available for submitted Boq, Pod & Annealing CLs. For more information, go/devgraph_supported_insights.":"Open the insights graph"}};gX.\u0275fac=function(a){return new (a||gX)};
gX.\u0275cmp=od({type:gX,selectors:[["insights-graph-btn"]],inputs:{disabled:"disabled"},outputs:{pressed:"pressed"},decls:14,vars:3,consts:[["mat-stroked-button","","color","primary",1,"gmat-button",3,"title","disabled","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),
"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" ")],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){return b.pressed.emit()}),Q(1,"Insights "),Qd(),D(2,"svg",1)(3,"g",2),G(4,"path",3)(5,"path",4)(6,"path",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"circle",9)(11,"circle",10)(12,"circle",11)(13,"circle",12),F()()());a&2&&(C("title",b.getTooltip())("disabled",b.disabled),Nf("aria-label",b.getTooltip()))},dependencies:[Ez],styles:["button.gmat-button[_ngcontent-%COMP%]{line-height:20px;padding:0 5px;font-size:.75rem;font-weight:500;font-family:Roboto,Arial,sans-serif}[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:text-bottom}/*# sourceMappingURL=insights_graph_btn.css.map */"],
changeDetection:0});var hX=function(a,b){Y.call(this);var c=this;this.componentFridge=a;this.currentTracker=b;this.componentId$=new B.ReplaySubject(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(cf(function(d){return String(d.idOrKey)===c.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(cf(cl),zf(this.componentFridge.watch),cf(cl));this.component$=(0,B.merge)(this.error$,this.rawComponent$).pipe(A(function(d){return d.componentId&&d.name?d:{componentId:Number(d.idOrKey),name:"(unknown)"}}));
this.isArchived$=this.component$.pipe(A(function(d){return d.archived}));this.componentPath$=this.component$.pipe(A(function(d){d=is(c.currentTracker,d.componentPathInfo);return xo(d)}));this.init=new B.ReplaySubject(1);this.routes$=this.componentId$.pipe(A(function(d){return{createIssue:gua(d),componentSettings:hua(d),recentIssues:Tk(d)}}))};W(hX,Y);hX.\u0275dir=Y.\u0275dir;hX.prototype.ngOnInit=function(){var a=this;this.component$.pipe(nf(),Af(this.destroyed$)).subscribe(function(){a.init.next()})};
Qh.Object.defineProperties(hX.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a=String(a);this.componentId$.next(a)}}});hX.\u0275fac=function(a){return new (a||hX)(z(OG),z(jG))};
hX.\u0275cmp=od({type:hX,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},features:[Jf],decls:7,vars:7,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["class","component-path squared b-chip s margin-s-bottom",4,"ngIf"],[4,"ngIf"],["class","flex-kids-y padded-s-top actions",4,"ngIf"],[1,"component-path","squared","b-chip","s","margin-s-bottom"],[4,"ngFor","ngForOf"],
[3,"routerLinkObj"],[1,"flex-kids-x"],["svgIcon","folder",1,"icon-xs"],[1,"type-s"],[1,"type-s","id-text"],[1,"flex-kids-y","padded-s-top","actions"],["aria-label","View recent open issues","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"],["aria-label","View component settings","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"],["aria-label","Create issue in this component","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(D(0,"div",0)(1,
"div",1),P(2,xVa,5,6,"div",2),P(3,yVa,9,3,"ng-container",3),T(4,"async"),P(5,zVa,7,3,"div",4),T(6,"async"),F()());a&2&&(w(2),C("ngIf",!b.hidePath),w(1),C("ngIf",V(4,3,b.component$)),w(2),C("ngIf",V(6,5,b.routes$)))},dependencies:[Dv,Ev,qA,Fz,tP,Kv],styles:["img[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;object-fit:contain;width:24px;height:24px;box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 2px 6px 2px rgba(0,0,0,.15);padding:5px;border-radius:4px}.id-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-bottom:12px}.b-chip[_ngcontent-%COMP%]{margin-right:0;line-height:16px;padding-top:2px;padding-bottom:2px}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#202124;color:var(--text)}.component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active, .component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.actions[_ngcontent-%COMP%]{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"]});var Djc=function(a){this.internalArray_=m(a,0,Djc.messageId)};W(Djc,X);Djc.messageId="b.CompareComponentAccessResponse";var iX=function(a){this.executor=a};iX.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:Djc}).then(Dxa)};iX.\u0275fac=function(a){return new (a||iX)(n(uD))};iX.\u0275prov=$c({token:iX,factory:iX.\u0275fac,providedIn:"root"});var jX=function(a,b,c,d,e,f){this.issueInteractionsTracking=a;this.issueFridge=b;this.butterBar=c;this.compareComponentAccess=d;this.matDialogService=e;this.editIssueService=f},uWa=function(a,b,c){var d,e,f,h,k;Ne(function(q){switch(q.nextAddress){case 1:return b=String(b),hO(a.issueInteractionsTracking,b,{label:"changeComponent"}),c?q.yield((0,B.firstValueFrom)(a.issueFridge.watch(b)),2):q.return();case 2:d=q.yieldResult;if(!d)return a.butterBar.showWarning("Could not load issue "+b),q.return();
e=d.snapshot[0].componentId;f=c.componentId;return e===f?q.return():q.yield(a.compareComponentAccess.check(String(e),String(f),b),3);case 3:h=q.yieldResult;if(!h.warning){q.jumpTo(4);break}return q.yield(Ejc(a,h),5);case 5:if(k=q.yieldResult,!k)return q.return();case 4:return q.return(a.editIssueService.updateComponent(b,f,h.isExternalMove))}})},Ejc=function(a,b){return new Promise(function(c){Pz(a.matDialogService.open(zP,{width:"580px",data:{response:b,callbacks:{allow:function(){c(!0)},cancel:function(){c(!1)}}}})).subscribe(function(){c(!1)})})};
jX.\u0275fac=function(a){return new (a||jX)(n(gO),n(GH),n(VF),n(iX),n(Uz),n(nO))};jX.\u0275prov=$c({token:jX,factory:jX.\u0275fac,providedIn:"root"});var kX=function(a){this.documentationLinks=a};kX.\u0275fac=function(a){return new (a||kX)(z(yL))};
kX.\u0275cmp=od({type:kX,selectors:[["b-issue-component-retention-dialog"]],decls:12,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a){a&1&&(D(0,"h1",0),Q(1,"Apply component retention settings?"),F(),D(2,"div",
1)(3,"p"),Q(4," This issue is currently retained indefinitely. If you select this option, this issue will be scheduled for deletion based on the component retention settings. "),F(),D(5,"a",2),Q(6,"Learn more"),F()(),D(7,"div",3)(8,"button",4),Q(9," Cancel "),F(),D(10,"button",5),Q(11," OK "),F()());a&2&&(w(5),C("href",Ks(),re),w(3),C("mat-dialog-close",!1),w(2),C("mat-dialog-close",!0))},dependencies:[Vz,Wz,Xz,Yz,Ez],encapsulation:2});var lX=function(a,b){this.documentationLinks=b;this.deletionReasons=a.deletionReasons;this.attachmentId=a.attachmentId};lX.\u0275fac=function(a){return new (a||lX)(z(Tz),z(yL))};
lX.\u0275cmp=od({type:lX,selectors:[["b-issue-delete-attachment-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"],[3,"value","disabled"],[4,"ngIf"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"div",1)(3,"span"),Q(4," Please select the reason for deleting this attachment. "),D(5,"a",2),Q(6," \u00a0Learn more "),F()(),D(7,"mat-radio-group",3),L("ngModelChange",function(c){return b.selectedReason=c}),P(8,BVa,3,4,"mat-radio-button",4),F()(),D(9,"div",5)(10,"button",6),Q(11," Cancel "),F(),D(12,"button",7),Q(13," Delete "),F()());a&2&&(w(1),S("Delete attachment ",b.attachmentId,""),w(4),C("href",
U1b(b.documentationLinks),re),w(2),C("ngModel",b.selectedReason),w(1),C("ngForOf",b.deletionReasons),w(4),C("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[Dv,Ev,Vz,Wz,Xz,Yz,Ez,hw,ow,wU,xU],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var mX=function(a,b){this.documentationLinks=b;this.commentNumber=a.commentNumber;this.issueId=a.issueId;this.deletionReasons=a.deletionReasons};mX.\u0275fac=function(a){return new (a||mX)(z(Tz),z(yL))};
mX.\u0275cmp=od({type:mX,selectors:[["b-issue-delete-comment-dialog"]],decls:14,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"],[3,"value","disabled"],[4,"ngIf"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"div",1)(3,"label"),Q(4,"Please select the reason for deleting this comment."),F(),D(5,"a",2),Q(6," \u00a0Learn more "),F(),D(7,"mat-radio-group",3),L("ngModelChange",function(c){return b.selectedReason=c}),P(8,DVa,3,4,"mat-radio-button",4),F()(),D(9,"div",5)(10,"button",6),Q(11," Cancel "),F(),D(12,"button",7),Q(13," Delete "),F()());a&2&&(w(1),kg("Delete Comment #",b.commentNumber," of Issue ",b.issueId,
""),w(4),C("href",U1b(b.documentationLinks),re),w(2),C("ngModel",b.selectedReason),w(1),C("ngForOf",b.deletionReasons),w(4),C("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[Dv,Ev,Vz,Wz,Xz,Yz,Ez,hw,ow,wU,xU],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var nX=function(a,b){this.documentationLinks=a;this.activeSession=b;this.REMOVAL_URL=EVa(this.activeSession.isInternalSession())};nX.\u0275fac=function(a){return new (a||nX)(z(yL),z(Us))};
nX.\u0275cmp=od({type:nX,selectors:[["b-issue-flag-as-spam-dialog"]],decls:19,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",1,"keep-underline",3,"href"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Report spam?"),F(),D(2,"div",1)(3,
"p"),Q(4," This will remove the issue from search results, and it will be deleted after 30 days. For more information on remediating spam at scale, "),D(5,"a",2),Q(6,"see here"),F(),Q(7,". "),F(),G(8,"p"),D(9,"p"),Q(10," To delete PII or other sensitive content, "),D(11,"a",2),Q(12,"file a support request"),F(),Q(13,". "),F()(),D(14,"div",3)(15,"button",4),Q(16," Cancel "),F(),D(17,"button",5),Q(18," Report spam "),F()());a&2&&(w(5),C("href",S1b(b.documentationLinks),re),w(6),C("href",b.REMOVAL_URL,
re),w(4),C("mat-dialog-close",!1),w(2),C("mat-dialog-close",!0))},dependencies:[Vz,Wz,Xz,Yz,Ez],encapsulation:2});var oX=function(a){this.documentationLinks=a;this.indefiniteRetentionAcknowledged=!1};oX.\u0275fac=function(a){return new (a||oX)(z(yL))};
oX.\u0275cmp=od({type:oX,selectors:[["b-issue-indefinite-retention-dialog"]],decls:28,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["cdkFocusInitial","",3,"checked","change"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close","disabled"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Retain issue indefinitely?"),
F(),D(2,"div",1)(3,"p"),Q(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),F(),D(5,"p")(6,"b"),Q(7,"Please note indefinite retention is not appropriate in many circumstances."),F(),G(8,"br"),Q(9," Before selecting this option, you should make sure at least one of the following is true: "),F(),D(10,"ul")(11,"li"),Q(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),F(),D(13,"li"),
Q(14," You have a process in place to manually delete this issue within an approved period of time. "),F(),D(15,"li"),Q(16," Legal and Privacy have approved this non-standard retention period. "),F()(),G(17,"p"),D(18,"p")(19,"a",2),Q(20,"Learn more"),F()(),D(21,"mat-checkbox",3),L("change",function(c){return b.indefiniteRetentionAcknowledged=c.checked}),Q(22," I acknowledge "),F()(),D(23,"div",4)(24,"button",5),Q(25," Cancel "),F(),D(26,"button",6),Q(27," OK "),F()());a&2&&(w(19),C("href",Ks(),re),
w(2),C("checked",b.indefiniteRetentionAcknowledged),w(3),C("mat-dialog-close",!1),w(2),C("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[Vz,Wz,Xz,Yz,Ez,PK],styles:[".mat-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var As=function(a,b,c,d){var e=this;this.issueComments=b;this.errorHandler=c;this.dialogRef=d;this.allResponders=[];this.loadingResponders=!0;this.commentNumber=a.commentNumber;this.reactionType=a.reactionType;this.issueComments.listCommentReactionResponders({issueId:a.issueId,reactionType:a.reactionType,commentId:a.commentNumber}).then(function(f){e.loadingResponders=!1;e.allResponders=f.responders}).catch(function(f){e.loadingResponders=!1;YF(e.errorHandler,"Fetching comment reaction responders failed\n "+
f.message);e.dialogRef.close()})};As.\u0275fac=function(a){return new (a||As)(z(Tz),z(WI),z(XF),z(Rz))};
As.\u0275cmp=od({type:As,selectors:[["b-issue-comment-reaction-responders-dialog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","primary"],["mat-tab-label",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"],[1,"icon-xs",3,"svgIcon"],[4,"ngFor","ngForOf"],[1,"margin-xs-top","margin-xs-bottom","type-m"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,
"div",1)(3,"mat-tab-group",2)(4,"mat-tab"),P(5,FVa,1,1,"ng-template",3),P(6,GVa,1,0,"b-spinner",4),P(7,IVa,2,1,"ng-container",4),F()()(),D(8,"div",5)(9,"button",6),Q(10," OK "),F()());a&2&&(w(1),S("View Reactions for Comment #",b.commentNumber,""),w(5),C("ngIf",b.loadingResponders),w(1),C("ngIf",!b.loadingResponders),w(2),C("mat-dialog-close",!0))},dependencies:[Dv,Ev,qA,Vz,Wz,Xz,Yz,Ez,MJ,DT,ET,CT],styles:["[_nghost-%COMP%]     .mat-tab-label {\n      height: 32px;\n    }\n    [_nghost-%COMP%]     .mat-tab-body-wrapper {\n      margin-top: 8px;\n    }"]});var pX=function(){};pX.\u0275fac=function(a){return new (a||pX)};pX.\u0275mod=qd({type:pX});pX.\u0275inj=ad({imports:[aD,Zz,SB,oA,Dw,kA,zV,AK,HT,SK]});var qX=function(a){this.internalArray_=m(a,0,qX.messageId)};W(qX,X);g=qX.prototype;g.getResourcePath=function(){return Hi(this,1)};g.setResourcePath=function(a){return qj(this,1,a)};g.hasResourcePath=function(){return Ii(this,1)};g.getSeverity=function(){return Vi(this,2,0)};g.setSeverity=function(a){return rj(this,2,a)};g.hasSeverity=function(){return Ti(this,2)};g.getJudgementReason=function(){return Hi(this,3)};g.setJudgementReason=function(a){return qj(this,3,a)};qX.messageId="b.CreateContentJudgementRequest";var rX=function(a){this.internalArray_=m(a,0,rX.messageId)};W(rX,X);rX.repeatedFields_=[1];rX.messageId="b.ListContentJudgementsResponse";var sX=function(a){this.internalArray_=m(a,0,sX.messageId)};W(sX,X);sX.prototype.getContentJudgement=function(){return Fi(this,Sl,1)};sX.prototype.setContentJudgement=function(a){return oj(this,Sl,1,a)};sX.messageId="b.UpdateContentJudgementRequest";var tX=function(a){this.executor=a};tX.prototype.create=function(a,b,c){a=(new qX).setResourcePath(a).setSeverity(Bva(b)).setJudgementReason(c);return this.executor.post({url:"action/content_judgements",body:a,responseConstructor:Sl}).pipe(A(Eva))};
tX.prototype.update=function(a){var b=a.contentJudgementId,c=new sX,d=c.setContentJudgement,e=new Sl;e=wj(e,1,a.contentJudgementId).setResourcePath(a.resourcePath).setSeverity(Bva(a.severity)).setJudgementReason(a.judgementReason);a=qj(e,5,a.contentJudge);c=d.call(c,a);return this.executor.post({url:"action/content_judgements/"+b,body:c,responseConstructor:Sl}).pipe(A(Eva))};
tX.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:rX}).pipe(A(function(b){var c;return(null!=(c=Ji(b,Sl,1))?c:[]).map(Eva)}))};tX.\u0275fac=function(a){return new (a||tX)(n(tD))};tX.\u0275prov=$c({token:tX,factory:tX.\u0275fac,providedIn:"root"});var vX=function(a,b,c,d,e){var f=this;this.dialogRef=a;this.documentationLinks=b;this.contentJudgements=c;this.activeSession=d;this.data=e;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.piiSeverity=FTb;this.loaded=!1;this.minimumSeverity="PII_SEVERITY_UNSPECIFIED";this.severity="NONE_DETECTED";this.severity=e.severity;e.resourcePath?c.list(e.resourcePath).subscribe(function(h){var k="PII_SEVERITY_UNSPECIFIED";h=l(h);for(var q=h.next();!q.done;q=h.next())q=q.value,q.contentJudge===
f.activeSession.getUserEmail()?Fjc(f,q):uX(q.severity,k)&&(k=q.severity);f.minimumSeverity=k;uX(f.minimumSeverity,f.severity)&&(f.severity=f.minimumSeverity);f.loaded=!0}):(Fjc(this,e.contentJudgement),this.loaded=!0)};vX.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var uX=function(a,b){return JVa(a)>JVa(b)},Fjc=function(a,b){if(a.judgement=b)a.severity=b.severity},Gjc=function(a){var b=a.data.resourceType||"comment and/or attachment(s)";a.data.resourcePath&&(a.data.resourcePath.includes("comment")?b="comment":a.data.resourcePath.includes("attachment")&&(b="attachment"));if(!a.data.hasAclToCreate)return"You do not have permission to create new judgements for this\n          "+b+". This is the current restriction level of the\n          "+b+".";b="Each restriction level allows access to particular users and has a designated content retention period. Customize levels on the component settings page.";
uX(a.minimumSeverity,"NONE_DETECTED")&&(b+=" You can only select a restriction level equal or greater than the severity already given by other users.");return b};vX.prototype.getContentJudgement=function(){var a;this.judgement?a=Object.assign({},this.judgement):a={contentJudge:"",contentJudgementId:void 0,resourcePath:void 0,severity:"PII_SEVERITY_UNSPECIFIED",judgementReason:""};a.severity=this.severity;a.judgementReason="None specified";return a};
vX.prototype.onSaveClick=function(){var a=this;if(this.data.resourcePath){if(null==this.judgement){this.contentJudgements.create(this.data.resourcePath,this.severity,"None specified").subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});return}if(this.judgement.severity!==this.severity||"None specified"!==this.judgement.judgementReason){this.contentJudgements.update(this.getContentJudgement()).subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});
return}}this.dialogRef.close({contentJudgement:this.getContentJudgement()})};vX.prototype.onNoClick=function(){this.dialogRef.close(null)};vX.\u0275fac=function(a){return new (a||vX)(z(Rz),z(yL),z(tX),z(Us),z(Tz))};
vX.\u0275cmp=od({type:vX,selectors:[["b-content-judgement-dialog"]],decls:28,vars:11,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["id","restriction-radio-group-label"],["target","_blank","aria-label","Learn more about restricted access",1,"keep-focus-ring",3,"rel"],["aria-labelledby","restriction-radio-group-label",3,"ngModel","ngModelChange"],[1,"restriction-radio","restriction-none",3,"value","disabled"],[1,"restriction-radio","restriction-pii",
3,"value","disabled"],[1,"restriction-radio","restriction-spii",3,"value","disabled"],["mat-button","",1,"gmat-button","medium","content-judgement-dialog-cancel",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","content-judgement-dialog-confirm",3,"disabled","click"]],template:function(a,b){a&1&&(D(0,"header",0)(1,"h1"),G(2,"mat-icon",1),D(3,"div"),Q(4," Set restriction "),F()()(),D(5,"section",2)(6,"label",3),Q(7),D(8,"a",4),Q(9," Learn More "),F()(),
D(10,"mat-radio-group",5),L("ngModelChange",function(c){return b.severity=c}),D(11,"mat-radio-button",6),Q(12," No restriction "),D(13,"div"),Q(14,' Users with "View issues" can access. '),F()(),D(15,"mat-radio-button",7),Q(16," Restricted "),D(17,"div"),Q(18,' Users with "View restricted content" can access. '),F()(),D(19,"mat-radio-button",8),Q(20," Restricted+ "),D(21,"div"),Q(22,' Users with "View restricted+ content" can access. '),F()()()(),D(23,"mat-dialog-actions")(24,"button",9),L("click",
function(){return b.onNoClick()}),Q(25," Cancel "),F(),D(26,"button",10),L("click",function(){return b.onSaveClick()}),Q(27," Set "),F()());a&2&&(w(7),S(" ",Gjc(b)," "),w(1),C("rel",b.EXTERNAL_LINK_REL),Nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),re),w(2),C("ngModel",b.severity),w(1),C("value",b.piiSeverity.NONE_DETECTED)("disabled",!b.canInteract()||uX(b.minimumSeverity,b.piiSeverity.NONE_DETECTED)),w(4),C("value",b.piiSeverity.PII)("disabled",!b.canInteract()||uX(b.minimumSeverity,
b.piiSeverity.PII)),w(4),C("value",b.piiSeverity.SPII)("disabled",!b.canInteract()||uX(b.minimumSeverity,b.piiSeverity.SPII)),w(7),C("disabled",!b.canInteract()))},dependencies:[qA,Ez,Wz,Xz,Yz,wU,xU,hw,ow],styles:["h1[_ngcontent-%COMP%]{text-align:center}.restriction-radio[_ngcontent-%COMP%]{display:block;margin:10px;padding:4px;line-height:1.5em}.restriction-radio[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}/*# sourceMappingURL=content_judgement_dialog.css.map */"]});var wX=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.acknowledgeToMatchIssueRetention=!1;this.resource=c.resource;this.piiRetention=c.piiRetention};wX.prototype.canInteract=function(){return!xX(this)||this.acknowledgeToMatchIssueRetention};var xX=function(a){return"INDEFINITE"===a.piiRetention};wX.prototype.onSaveClick=function(){this.dialogRef.close(1)};wX.prototype.onNoClick=function(){this.dialogRef.close(0)};
wX.\u0275fac=function(a){return new (a||wX)(z(Rz),z(yL),z(Tz))};
wX.\u0275cmp=od({type:wX,selectors:[["b-update-retention-dialog"]],decls:19,vars:8,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],[4,"ngIf"],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about component retention",3,"rel"],[3,"ngModel","ngModelChange",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","update-retention-dialog-cancel",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","dialog-primary-action",
"medium","update-retention-dialog-confirm",3,"disabled","click"],[3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(D(0,"h1",0),G(1,"mat-icon",1),D(2,"div"),P(3,KVa,2,1,"span",2),P(4,LVa,2,0,"span",2),F()(),D(5,"div",3),P(6,MVa,8,1,"span",2),P(7,NVa,3,2,"span",2),D(8,"span")(9,"a",4),Q(10," Learn More "),F()()(),D(11,"div")(12,"span"),P(13,OVa,2,1,"mat-checkbox",5),F()(),D(14,"div",6)(15,"button",7),L("click",function(){return b.onNoClick()}),Q(16," Cancel "),F(),D(17,"button",8),L("click",
function(){return b.onSaveClick()}),Q(18," Save "),F()());a&2&&(w(3),C("ngIf",xX(b)),w(1),C("ngIf",!xX(b)),w(2),C("ngIf",xX(b)),w(1),C("ngIf",!xX(b)),w(2),C("rel",b.EXTERNAL_LINK_REL),Nf("href",Ks(),re),w(4),C("ngIf",xX(b)),w(4),C("disabled",!b.canInteract()))},dependencies:[Ev,qA,Ez,Wz,Xz,Yz,PK,hw,ow],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}/*# sourceMappingURL=update_retention_dialog.css.map */"]});var yX=function(a,b,c,d,e,f,h){this.errorHandler=a;this.eventsForIssueFridge=b;this.issueFetchResponseFridge=c;this.issueCommentsService=d;this.issueInteractionsTracking=e;this.butterBar=f;this.editIssueService=h},Hjc=function(a,b){var c=b.issueId,d=b.newCommentId,e=b.newComment,f=b.newCommentFormattingMode,h=b.recaptchaToken,k,q;Ne(function(u){switch(u.nextAddress){case 1:k=a.editIssueService.savingState(c);if(!e.trim())return a.butterBar.showWarning("New comment cannot be empty."),u.return();kO(k,
"commentEdit");WF(a.butterBar,"Saving comment edit...",0);hO(a.issueInteractionsTracking,c,{label:1===d?"description":"comment"});Oe(u,2,3);return u.yield(a.issueCommentsService.update(c,d,e,f,h),5);case 5:WF(a.butterBar,"Comment edit successful.",4E3),LH(a.issueFetchResponseFridge,c),gG(a.eventsForIssueFridge,c,function(x){x.events=Dza(x.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:f})}),a.eventsForIssueFridge.poke(c);case 3:Pe(u);lO(k,"commentEdit");Qe(u,0);break;case 2:q=
Re(u),ZF(a.errorHandler,q),u.jumpTo(3)}})};yX.\u0275fac=function(a){return new (a||yX)(n(XF),n(cH),n(JH),n(WI),n(gO),n(VF),n(nO))};yX.\u0275prov=$c({token:yX,factory:yX.\u0275fac,providedIn:"root"});var Ijc=function(a,b,c){this.objectId=a;this.version=b;this.payload=c},Jjc=function(){},Kjc=function(a){this.timestampMicros=a};PVa.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var Ljc=function(a){var b=0;if(a.inRetryMode_){b=Math.ceil(a.random_()*a.currentMaxDelayMs_);var c=1024*a.initialMaxDelayMs_;a.currentMaxDelayMs_<=c&&(a.currentMaxDelayMs_*=2,a.currentMaxDelayMs_>c&&(a.currentMaxDelayMs_=c))}a.inRetryMode_=!0;return b};var Pp=function(a){this.internalArray_=m(a)};W(Pp,X);var UVa=[1,2,3,15];var Rp=function(a){this.internalArray_=m(a)};W(Rp,X);var Tp=[1,2,3,4,5,6,7,8,9,10,11,12];var Qp=function(a){this.internalArray_=m(a)};W(Qp,X);Qp.repeatedFields_=[1];var Op=function(a){this.internalArray_=m(a)};W(Op,X);Op.prototype.getName=function(){return aq(this,1,Mjc)};Op.prototype.setName=function(a){return Jl(this,1,Mjc,a)};Op.prototype.hasName=function(){return null!=aq(this,1,Mjc)};Op.prototype.getNameOrUndefined=function(){return At(this,Dl(this,Mjc,1))};var Mjc=[1,2];var Njc=function(a){this.internalArray_=m(a)};W(Njc,X);g=Njc.prototype;g.setProject=function(a){oj(this,Op,1,a)};g.getOwner=function(){return Fi(this,Pp,2)};g.setOwner=function(a){return oj(this,Pp,2,a)};g.getPath=function(){return Fi(this,Qp,3)};g.setPath=function(a){return oj(this,Qp,3,a)};g.hasPath=function(){return Zi(this,Qp,3)};var Ojc=function(a){this.internalArray_=m(a)};W(Ojc,X);g=Ojc.prototype;g.setProject=function(a){oj(this,Op,1,a)};g.getOwner=function(){return Fi(this,Pp,2)};g.setOwner=function(a){return oj(this,Pp,2,a)};g.getPrefix=function(){return Fi(this,Qp,3)};g.setPrefix=function(a){oj(this,Qp,3,a)};var zX=function(a){this.internalArray_=m(a)};W(zX,X);zX.prototype.getVersion=function(){return tt(this,1)};zX.prototype.getVersion_legacyNullable=function(){return tt(this,1)};zX.prototype.setVersion=function(a){return nj(this,1,a)};zX.prototype.getVersionOrUndefined=function(){return yt(this,1)};var Pjc=function(a){this.internalArray_=m(a)};W(Pjc,X);g=Pjc.prototype;g.getHeader=function(){return Fi(this,zX,4)};g.setHeader=function(a){return oj(this,zX,4,a)};g.hasHeader=function(){return Zi(this,zX,4)};g.getPrefix=function(){return Fl(this,Ojc,6,Qjc)};g.setPrefix=function(a){Ll(this,6,Qjc,a)};var Qjc=[2,3,6];var Rjc=function(a){this.internalArray_=m(a)};W(Rjc,X);var Sjc=function(a){this.internalArray_=m(a)};W(Sjc,X);Sjc.prototype.setAffinitization=function(a){rj(this,2,a)};Sjc.prototype.getAffinitizationOrUndefined=function(){return Xr(this,2)};var Tjc=function(a){this.internalArray_=m(a)};W(Tjc,X);var Ujc=function(a){this.internalArray_=m(a)};W(Ujc,X);g=Ujc.prototype;g.getStreamId_legacyNullable=function(){return Zp(this,1)};g.setStreamId=function(a){wj(this,1,a)};g.getClose=function(){return Fl(this,Tjc,3,Vjc)};g.setClose=function(a){Ll(this,3,Vjc,a)};g.hasClose=function(){return Tl(this,Tjc,3,Vjc)};g.setAffinitization=function(a){rj(this,4,a)};g.getAffinitizationOrUndefined=function(){return Xr(this,4)};var Vjc=[2,3];var AX=function(a){this.internalArray_=m(a)};W(AX,X);AX.prototype.setRequestsList=function(a){return om(this,1,a)};AX.prototype.addAndReturnRequests=function(){return ec(this,1,Ujc)};AX.repeatedFields_=[1];var BX=function(a){this.internalArray_=m(a)};W(BX,X);BX.prototype.getCode=function(){return Mr(this,1)};BX.prototype.getCode_legacyNullable=function(){return Mr(this,1)};BX.prototype.setCode=function(a){return rj(this,1,a)};var Wjc=function(a){this.internalArray_=m(a)};W(Wjc,X);var CX=function(a){this.internalArray_=m(a)};W(CX,X);CX.prototype.getVersion=function(){return Zp(this,3)};CX.prototype.getVersion_legacyNullable=function(){return Zp(this,3)};CX.prototype.setVersion=function(a){return wj(this,3,a)};CX.prototype.getVersionOrUndefined=function(){var a=Zp(this,3);return null==a?void 0:a};var Xjc=function(a){this.internalArray_=m(a)};W(Xjc,X);Xjc.repeatedFields_=[1];var Yjc=function(a){this.internalArray_=m(a)};W(Yjc,X);var DX=function(a){this.internalArray_=m(a)};W(DX,X);DX.prototype.getStart=function(){return Fl(this,Yjc,1,EX)};DX.prototype.setStart=function(a){return Ll(this,1,EX,a)};DX.prototype.getChanges=function(){return Fl(this,Xjc,2,EX)};DX.prototype.hasChanges=function(){return Tl(this,Xjc,2,EX)};var EX=[1,2,3,5];var FX=function(a){this.internalArray_=m(a)};W(FX,X);g=FX.prototype;g.getCode=function(){return tt(this,1)};g.getCode_legacyNullable=function(){return tt(this,1)};g.setCode=function(a){return nj(this,1,a)};g.getMessage=function(){return Ej(this,3)};g.setMessage=function(a){qj(this,3,a)};var GX=function(a){this.internalArray_=m(a)};W(GX,X);GX.prototype.getStatus=function(){return Fi(this,FX,1)};GX.prototype.setStatus=function(a){return oj(this,FX,1,a)};GX.prototype.hasStatus=function(){return Zi(this,FX,1)};var Zjc=function(a){this.internalArray_=m(a)};W(Zjc,X);g=Zjc.prototype;g.getStreamId_legacyNullable=function(){return Zp(this,1)};g.setStreamId=function(a){wj(this,1,a)};g.getClose=function(){return Fl(this,GX,3,$jc)};g.setClose=function(a){Ll(this,3,$jc,a)};g.hasClose=function(){return Tl(this,GX,3,$jc)};var $jc=[2,3];var HX=function(a){this.internalArray_=m(a)};W(HX,X);HX.prototype.getStatus=function(){return Fi(this,BX,2)};HX.prototype.setStatus=function(a){return oj(this,BX,2,a)};HX.prototype.hasStatus=function(){return Zi(this,BX,2)};HX.repeatedFields_=[1];var akc=function(){AA.call(this,"y")};ft(akc,AA);var bkc=function(){AA.call(this,"x")};ft(bkc,AA);var ckc=function(a,b){this.path=a;this.authMethod=b},IX=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new xq;this.channel=this.createWebChannel(e)};
IX.prototype.createWebChannel=function(a){var b=this;a={sendRawJson:!0,messageContentType:"application/json+protobuf",httpSessionIdParam:void 0,messageUrlParams:Object.assign({},{gsessionid:a},this.config.authMethod.getQueryParameters()),messageHeaders:this.config.authMethod.getHeaders(),supportsCrossDomainXhr:this.config.authMethod.usesCredentialedRequests()};a=this.channelCreator(this.config.path,a);this.channelHandler.listen(a,"v",function(){b.channelStatusHandler.onOpen()});this.channelHandler.listen(a,
"w",function(){b.channelStatusHandler.onClose((new JX(b.channel.channel_)).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});this.channelHandler.listen(a,"y",function(c){(c=c.data)&&1===c.length&&b.channelMessageHandler(new HX(c[0]))});this.channelHandler.listen(a,"x",function(c){b.channelStatusHandler.onError(c,(new JX(b.channel.channel_)).getLastStatusCode());0!==c.status&&(b.state=2)});return a};
IX.prototype.open=function(){0===this.state&&(this.state=1,this.channel.open())};IX.prototype.close=function(){2!==this.state&&this.channel.close()};IX.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var dkc,ekc=(new zX).setVersion(7);dkc=rj(ekc,2,5);var Vp=function(a){this.rep=a};Vp.prototype.equals=function(a){return this.rep===a.rep};var fkc=function(){var a=8;a=void 0===a?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};fkc.prototype.update=function(){var a=Date.now();a=Math.floor((a-this.lastAddedTimestampMs)/3E5);this.tokens=Math.min(this.tokens+a,this.max);this.lastAddedTimestampMs+=3E5*a};var Up=function(a,b){this.seconds=a;this.nanos=b},WVa=function(a){var b=new gj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},aWa=function(a){try{var b=a.getSeconds(),c=a.getNanos();if(-62135596800>b)throw Error("Wd`"+b);if(253402300800<=b)throw Error("Xd`"+b);if(0>c)throw Error("Yd`"+c);if(1E9<=c)throw Error("Zd`"+c);if(!Number.isInteger(b))throw Error("$d`"+b);if(!Number.isInteger(c))throw Error("ae`"+c);return new Up(b,c)}catch(d){return null}};
Up.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var Sp=function(a,b){this.low_=a|0;this.high_=b|0},KX=function(a){return 4294967296*a.high_+(a.low_>>>0)};g=Sp.prototype;g.isSafeInteger=function(){var a=this.high_>>21;return 0==a||-1==a&&!(0==this.low_&&-2097152==this.high_)};
g.toString=function(a){a=a||10;if(2>a||36<a)throw Error("be`"+a);if(this.isSafeInteger()){var b=KX(this);return 10==a?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=LX(c,c/4294967296);c=MX(this,d);var e=Math,f=e.abs;d=c.multiply(d);d=this.add(NX(d));e=f.call(e,KX(d));f=10==a?""+e:e.toString(a);f.length<b&&(f="0000000000000".slice(f.length-b)+f);e=KX(c);return(10==a?e:e.toString(a))+f};g.isZero=function(){return 0==this.low_&&0==this.high_};
g.equals=function(a){return this.low_==a.low_&&this.high_==a.high_};g.compare=function(a){return this.high_==a.high_?this.low_==a.low_?0:this.low_>>>0>a.low_>>>0?1:-1:this.high_>a.high_?1:-1};var NX=function(a){var b=~a.low_+1|0;return LX(b,~a.high_+!b|0)};
Sp.prototype.add=function(a){var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=a.high_>>>16,f=a.high_&65535,h=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);h=(a>>>16)+(d+h);d=h>>>16;d+=c+f;return LX((h&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};
Sp.prototype.multiply=function(a){if(this.isZero())return this;if(a.isZero())return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=this.low_&65535,f=a.high_>>>16,h=a.high_&65535,k=a.low_>>>16;a=a.low_&65535;var q=e*a;var u=(q>>>16)+d*a;var x=u>>>16;u=(u&65535)+e*k;x+=u>>>16;x+=c*a;var y=x>>>16;x=(x&65535)+d*k;y+=x>>>16;x=(x&65535)+e*h;y=y+(x>>>16)+(b*a+c*k+d*h+e*f)&65535;return LX((u&65535)<<16|q&65535,y<<16|x&65535)};
var MX=function(a,b){if(b.isZero())throw Error("ce");if(0>a.high_){if(a.equals(OX)){if(b.equals(gkc)||b.equals(hkc))return OX;if(b.equals(OX))return gkc;var c=a.high_;c=LX(a.low_>>>1|c<<31,c>>1);c=MX(c,b).shiftLeft(1);if(c.equals(PX))return 0>b.high_?gkc:hkc;var d=b.multiply(c);a=a.add(NX(d));return c.add(MX(a,b))}return 0>b.high_?MX(NX(a),NX(b)):NX(MX(NX(a),b))}if(a.isZero())return PX;if(0>b.high_)return b.equals(OX)?PX:NX(MX(a,NX(b)));for(d=PX;0<=a.compare(b);){c=Math.max(1,Math.floor(KX(a)/KX(b)));
var e=Math.ceil(Math.log(c)/Math.LN2);e=48>=e?1:Math.pow(2,e-48);for(var f=QX(c),h=f.multiply(b);0>h.high_||0<h.compare(a);)c-=e,f=QX(c),h=f.multiply(b);f.isZero()&&(f=gkc);d=d.add(f);a=a.add(NX(h))}return d};Sp.prototype.and=function(a){return LX(this.low_&a.low_,this.high_&a.high_)};Sp.prototype.or=function(a){return LX(this.low_|a.low_,this.high_|a.high_)};Sp.prototype.xor=function(a){return LX(this.low_^a.low_,this.high_^a.high_)};
Sp.prototype.shiftLeft=function(a){a&=63;if(0==a)return this;var b=this.low_;return 32>a?LX(b<<a,this.high_<<a|b>>>32-a):LX(0,b<<a-32)};
var QX=function(a){return 0<a?0x7fffffffffffffff<=a?ikc:new Sp(a,a/4294967296):0>a?-0x7fffffffffffffff>=a?OX:NX(new Sp(-a,-a/4294967296)):PX},LX=function(a,b){return new Sp(a,b)},Yp=function(a,b){if("-"==a.charAt(0))return NX(Yp(a.substring(1),b));var c=parseInt(a,b||10);if(9007199254740991>=c)return new Sp(c%4294967296|0,c/4294967296|0);if(0==a.length)throw Error("de");if(0<=a.indexOf("-"))throw Error("ee`"+a);b=b||10;if(2>b||36<b)throw Error("be`"+b);c=QX(Math.pow(b,8));for(var d=PX,e=0;e<a.length;e+=
8){var f=Math.min(8,a.length-e),h=parseInt(a.substring(e,e+f),b);8>f?d=d.multiply(QX(Math.pow(b,f))).add(QX(h)):(d=d.multiply(c),d=d.add(QX(h)))}return d},PX=LX(0,0),gkc=LX(1,0),hkc=LX(-1,-1),ikc=LX(4294967295,2147483647),OX=LX(0,2147483648);var Hp=function(a,b){this.value=a;this.isDecreasing=!!b};
Hp.prototype.equals=function(a){if(this.isDecreasing!==a.isDecreasing)var b=!1;else if("string"===typeof this.value||"number"===typeof this.value)b=this.value===a.value;else if(this.value instanceof Sp)b=a.value instanceof Sp?this.value.equals(a.value):!1;else if(this.value instanceof Vp)b=a.value instanceof Vp?this.value.equals(a.value):!1;else if(this.value instanceof Uint8Array)if(a.value instanceof Uint8Array)a:if(b=this.value,a=a.value,b.length!==a.length)b=!1;else{for(var c=0;c<b.length;++c)if(b[c]!==
a[c]){b=!1;break a}b=!0}else b=!1;else b=this.value instanceof Up?a.value instanceof Up?this.value.equals(a.value):!1:!1;return b};var Xp=function(a,b){this.parts=a;this.isPrivate=b},YVa=function(){for(var a=[],b=l(xd.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof Hp?a.push(c):a.push(new Hp(c));return new Xp(a,!1)};
Xp.prototype.equals=function(a){var b;if(b=this.parts.length===a.parts.length)a:if(this.isPrivate!==a.isPrivate||this.parts.length>a.parts.length)b=!1;else{for(b=0;b<this.parts.length;++b)if(!this.parts[b].equals(a.parts[b])){b=!1;break a}b=!0}return b};var jkc=function(){},Lp=function(a,b){this.apiKey=a;this.authUser=b};Lp.prototype.getHeaders=function(){var a={},b;(b=Ko([]))?(b=b.split(" "),b={scheme:b[0],hash:b[1]}):b=null;null!=b&&(a.Authorization=b.scheme+" "+b.hash,a["X-Goog-AuthUser"]=String(this.authUser||0));return a};Lp.prototype.getQueryParameters=function(){return{key:this.apiKey}};Lp.prototype.domainType=function(){return 0};Lp.prototype.usesCredentialedRequests=function(){return!0};var Jp=function(a){this.oauthTokens=a};
Jp.prototype.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();return a};Jp.prototype.getQueryParameters=function(){return{}};Jp.prototype.domainType=function(){return 1};Jp.prototype.usesCredentialedRequests=function(){return!0};var Kp=function(a,b){this.apiKey=a;this.appAuthTokens=b};Kp.prototype.getHeaders=function(){return{}};Kp.prototype.getQueryParameters=function(){return{key:this.apiKey}};Kp.prototype.domainType=function(){return 1};
Kp.prototype.usesCredentialedRequests=function(){return!1};var kkc={send:function(a,b,c,d,e,f,h){go(a,b,c,d,e,f,h)}};var lkc=function(a,b,c){this.code=a;this.message=b;this.status=c},mkc=function(a){var b=void 0===b?kkc:b;this.baseUri=a;this.xhrIo=b};mkc.prototype.post=function(a,b,c,d){d=void 0===d?{}:d;return this.request("POST",a,b,c,d)};
mkc.prototype.request=function(a,b,c,d,e){var f=this,h=new Vo(this.baseUri);h.setPath(b);if(e.queryParams){b=l(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var q=l(k.value);k=q.next().value;q=q.next().value;qC(h,k,q)}}var u={"Content-type":"application/json+protobuf"};Object.assign(u,e.extraHeaders);var x=c.serialize();return new Promise(function(y,E){var H;f.xhrIo.send(h,function(){var J=-1===this.getStatus()?void 0:this.getStatus();if(this.isSuccess())try{y(nca(d,this.getResponseText()))}catch(O){E(new lkc(4,
"Failed to deserialize response from "+h+": "+this.getResponseText(),J))}else E(new lkc(this.getLastErrorCode(),this.getLastError(),J))},a,x,u,null!=(H=e.timeoutMs)?H:2E4,e.withCredentials)})};var nkc=function(a,b,c){yA.call(this);this.listener_=null!=c?a.bind(c):a;this.interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.timer_=null};W(nkc,yA);g=nkc.prototype;g.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:this.doAction_()};g.stop=function(){this.timer_&&(Np(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};g.pause=function(){this.pauseCount_++};
g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,this.doAction_())};g.disposeInternal=function(){yA.prototype.disposeInternal.call(this);this.stop()};g.onTimer_=function(){this.timer_=null;this.shouldFire_&&!this.pauseCount_&&(this.shouldFire_=!1,this.doAction_())};g.doAction_=function(){var a=this;this.timer_=Mp(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};var okc=null,pkc=function(){return okc=okc||new Po},qkc=function(a){AA.call(this,"serverreachability",a)};ft(qkc,AA);var RX=function(a){var b=pkc();b.dispatchEvent(new qkc(b,a))},rkc=function(a,b){AA.call(this,"statevent",a);this.stat=b};ft(rkc,AA);var SX=function(a){var b=pkc();b.dispatchEvent(new rkc(b,a))},skc=function(a,b,c){AA.call(this,"timingevent",a);this.size=b;this.rtt=c};ft(skc,AA);
var tkc=function(a,b,c){var d=pkc();d.dispatchEvent(new skc(d,a,b,c))},TX=function(a,b){if("function"!==typeof a)throw Error("ge");return da.setTimeout(function(){a()},b)};var UX=function(){this.redactEnabled_=!0};UX.prototype.disableRedact=function(){this.redactEnabled_=!1};
var ukc=function(a,b,c,d,e,f){a.info(function(){if(a.redactEnabled_)if(f){var h="";for(var k=f.split("&"),q=0;q<k.length;q++){var u=k[q].split("=");if(1<u.length){var x=u[0];u=u[1];var y=x.split("_");h=2<=y.length&&"type"==y[1]?h+(x+"="+u+"&"):h+(x+"=redacted&")}}}else h=null;else h=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+h})},vkc=function(a,b,c,d,e,f,h){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+h})},VX=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+wkc(a,c)+(d?" "+d:"")})},xkc=function(a,b){a.info(function(){return"TIMEOUT: "+b})};UX.prototype.debug=function(){};UX.prototype.info=function(){};UX.prototype.warning=function(){};
var wkc=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d<c.length;d++)if(Array.isArray(c[d])){var e=c[d];if(!(2>e.length)){var f=e[1];if(Array.isArray(f)&&!(1>f.length)){var h=f[0];if("noop"!=h&&"stop"!=h&&"close"!=h)for(var k=1;k<f.length;k++)f[k]=""}}}return kRb(c)}catch(q){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var WX=function(a,b,c,d,e){this.channel_=a;this.channelDebug_=b;this.sid_=c;this.rid_=d;this.retryId_=e||1;this.eventHandler_=new xq(this);this.timeout_=45E3;a=Pj?125:void 0;this.pollingTimer_=new ZA(a);this.extraHeaders_=null;this.successful_=!1;this.postData_=this.requestUri_=this.baseUri_=this.type_=this.requestStartTime_=this.watchDogTimeoutTime_=this.watchDogTimerId_=null;this.pendingMessages_=[];this.xmlHttp_=null;this.xmlHttpChunkStart_=0;this.lastError_=this.verb_=null;this.lastStatusCode_=
-1;this.cancelled_=!1;this.readyStateChangeThrottleMs_=0;this.readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new ykc},ykc=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},zkc=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},
Akc={},Bkc={};WX.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};WX.prototype.setTimeout=function(a){this.timeout_=a};WX.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};WX.prototype.getPendingMessages=function(){return this.pendingMessages_};
var Dkc=function(a,b,c){a.type_=1;a.baseUri_=sC(b.clone());a.postData_=c;a.decodeChunks_=!0;Ckc(a,null)},Ckc=function(a,b){a.requestStartTime_=Date.now();XX(a);a.requestUri_=a.baseUri_.clone();var c=a.requestUri_,d=a.retryId_;Array.isArray(d)||(d=[String(d)]);c.queryData_.setValues("t",d);a.xmlHttpChunkStart_=0;c=a.channel_.supportsCrossDomainXhrs_;a.fetchResponseState_=new ykc;a.xmlHttp_=Ekc(a.channel_,c?b:null,!a.postData_);0<a.readyStateChangeThrottleMs_&&(a.readyStateChangeThrottle_=new nkc(dt(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?Ac(a.extraHeaders_):{};a.postData_?(a.verb_||(a.verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.xmlHttp_.send(a.requestUri_,a.verb_,a.postData_,b)):(a.verb_="GET",a.xmlHttp_.send(a.requestUri_,a.verb_,null,b));RX(1);ukc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
WX.prototype.readyStateChangeHandler_=function(a){a=a.target;var b=this.readyStateChangeThrottle_;b&&3==a.getReadyState()?(this.channelDebug_.debug("Throttling readystatechange."),b.fire()):this.xmlHttpHandler_(a)};WX.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?Fkc(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Gkc(this)}finally{}};
var Fkc=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(3>b||3==b&&!Pj&&!Gkc(a))){a.cancelled_||4!=b||7==c||(8==c||0>=d?RX(3):RX(2));Hkc(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=Ikc(a);Gkc(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=200==e;vkc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
Jkc(a))VX(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,Kkc(a,d);else{a.successful_=!1;a.lastError_=3;SX(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");YX(a);ZX(a);return}a.decodeChunks_?(Lkc(a,b,c),Pj&&a.successful_&&3==b&&Mkc(a)):(VX(a.channelDebug_,a.rid_,c,null),Kkc(a,c));4==b&&YX(a);a.successful_&&!a.cancelled_&&(4==b?Nkc(a.channel_,a):(a.successful_=!1,XX(a)))}else a.xmlHttp_.getResponseHeaders(),
400==e&&0<c.indexOf("Unknown SID")?(a.lastError_=3,SX(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,SX(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),YX(a),ZX(a)}},Jkc=function(a){return a.xmlHttp_&&(a=ai(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!Oi(a)?a:null},Ikc=function(a){if(!Okc(a))return a.xmlHttp_.getResponseText();var b=a.xmlHttp_.getResponse(),c="",d=b.length,e=4==a.xmlHttp_.getReadyState();if(!a.fetchResponseState_.textDecoder){if("undefined"===
typeof TextDecoder)return YX(a),ZX(a),"";a.fetchResponseState_.textDecoder=new da.TextDecoder}for(var f=0;f<d;f++)a.fetchResponseState_.responseArrivedForFetch=!0,c+=a.fetchResponseState_.textDecoder.decode(b[f],{stream:e&&f==d-1});b.splice(0,d);a.fetchResponseState_.responseBuffer+=c;a.xmlHttpChunkStart_=0;return a.fetchResponseState_.responseBuffer},Gkc=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},
Okc=function(a){return a.xmlHttp_?"GET"==a.verb_&&2!=a.type_&&a.channel_.usesFetchStreams_:!1},Lkc=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=Pkc(a,c),e==Bkc){4==b&&(a.lastError_=4,SX(14),d=!1);VX(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==Akc){a.lastError_=4;SX(15);VX(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else VX(a.channelDebug_,a.rid_,e,null),Kkc(a,e);Okc(a)&&e!=Bkc&&e!=Akc&&(a.fetchResponseState_.responseBuffer=
"",a.xmlHttpChunkStart_=0);4!=b||0!=c.length||a.fetchResponseState_.responseArrivedForFetch||(a.lastError_=1,SX(16),d=!1);a.successful_=a.successful_&&d;d?0<c.length&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,b=a.channel_,b.backChannelRequest_==a&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),Qkc(b),b.bpDetectionDone_=!0,SX(11))):(VX(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),YX(a),ZX(a))};
WX.prototype.pollResponse_=function(){if(this.xmlHttp_){var a=this.xmlHttp_.getReadyState(),b=this.xmlHttp_.getResponseText();this.xmlHttpChunkStart_<b.length&&(Hkc(this),Lkc(this,a,b),this.successful_&&4!=a&&XX(this))}};
var Mkc=function(a){a.eventHandler_.listen(a.pollingTimer_,"tick",a.pollResponse_);a.pollingTimer_.start()},Pkc=function(a,b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(-1==d)return Bkc;c=Number(b.substring(c,d));if(isNaN(c))return Akc;d+=1;if(d+c>b.length)return Bkc;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};WX.prototype.cancel=function(){this.cancelled_=!0;YX(this)};
var XX=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;Rkc(a,a.timeout_)},Rkc=function(a,b){if(null!=a.watchDogTimerId_)throw Error("he");a.watchDogTimerId_=TX(dt(a.onWatchDogTimeout_,a),b)},Hkc=function(a){a.watchDogTimerId_&&(da.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
WX.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();0<=a-this.watchDogTimeoutTime_?(xkc(this.channelDebug_,this.requestUri_),2!=this.type_&&(RX(3),SX(17)),YX(this),this.lastError_=2,ZX(this)):(this.channelDebug_.warning("WatchDog timer called too early"),Rkc(this,this.watchDogTimeoutTime_-a))};
var ZX=function(a){a.channel_.isClosed()||a.cancelled_||Nkc(a.channel_,a)},YX=function(a){Hkc(a);Zh(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.pollingTimer_.stop();a.eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}};WX.prototype.getLastError=function(){return this.lastError_};WX.prototype.getLastStatusCode=function(){return this.lastStatusCode_};WX.prototype.getRequestId=function(){return this.rid_};WX.prototype.getXhr=function(){return this.xmlHttp_};
var Kkc=function(a,b){try{var c=a.channel_;if(0!=c.state_&&(c.backChannelRequest_==a||Skc(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&Skc(c.forwardChannelRequestPool_,a)&&3==c.state_){try{var d=c.wireCodec_.parser_.parse(b)}catch(Z){d=null}if(Array.isArray(d)&&3==d.length){var e=d;if(0==e[0])a:if(c.channelDebug_.debug("Server claims our backchannel is missing."),c.backChannelTimerId_)c.channelDebug_.debug("But we are currently starting the request.");else{if(c.backChannelRequest_)if(c.backChannelRequest_.requestStartTime_+
3E3<a.requestStartTime_)Tkc(c),Ukc(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");Vkc(c);SX(18)}else{c.lastPostResponseArrayId_=e[1];var f=c.lastPostResponseArrayId_-c.lastArrayId_;if(0<f){var h=e[2];c.channelDebug_.debug(h+" bytes (in "+f+" arrays) are outstanding on the BackChannel");37500>h&&c.enableStreaming_&&0==c.backChannelRetryCount_&&!c.deadBackChannelTimerId_&&(c.deadBackChannelTimerId_=TX(dt(c.onBackChannelDead_,c),6E3))}}if(1>=Wkc(c.forwardChannelRequestPool_)&&
c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(Z){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),$X(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&Tkc(c),!Oi(b))for(e=c.wireCodec_.parser_.parse(b),f=0;f<e.length;f++){var k=e[f];c.lastArrayId_=k[0];k=k[1];if(2==c.state_)if("c"==k[0]){c.sid_=k[1];c.hostPrefix_=c.correctHostPrefix(k[2]);var q=k[3];null!=q&&(c.channelVersion_=q,c.channelDebug_.info("VER="+
c.channelVersion_));var u=k[4];null!=u&&(c.serverVersion_=u,c.channelDebug_.info("SVER="+c.serverVersion_));var x=k[5];null!=x&&"number"===typeof x&&0<x&&(h=1.5*x,c.backChannelRequestTimeoutMs_=h,c.channelDebug_.info("backChannelRequestTimeoutMs_="+h));h=c;var y=a.getXhr();if(y){var E=ai(y,"X-Client-Wire-Protocol");if(E){var H=h.forwardChannelRequestPool_;b=E;!H.requestPool_&&(ka(b,"spdy")||ka(b,"quic")||ka(b,"h2"))&&(H.maxSize_=H.maxPoolSizeConfigured_,H.requestPool_=new Set,H.request_&&(H.addRequest(H.request_),
H.request_=null))}if(h.httpSessionIdParam_){var J=ai(y,"X-HTTP-Session-Id");J?(h.httpSessionId_=J,qC(h.forwardChannelUri_,h.httpSessionIdParam_,J)):h.channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response")}}c.state_=3;c.handler_&&c.handler_.channelOpened();c.detectBufferingProxy_&&(c.handshakeRttMs_=Date.now()-a.requestStartTime_,c.channelDebug_.info("Handshake RTT: "+c.handshakeRttMs_+"ms"));h=c;b=a;var O=d=h,R=Xkc(O,O.supportsCrossDomainXhrs_?h.hostPrefix_:null,h.path_);O.channelDebug_.debug("GetBackChannelUri: "+
R);d.backChannelUri_=R;if(b.initialResponseDecoded_){h.channelDebug_.debug("Upgrade the handshake request to a backchannel.");Ykc(h.forwardChannelRequestPool_,b);d=b;var U=h.backChannelRequestTimeoutMs_;U&&d.setTimeout(U);d.watchDogTimerId_&&(Hkc(d),XX(d));h.backChannelRequest_=b}else Zkc(h);0<c.outgoingMaps_.length&&$kc(c)}else"stop"!=k[0]&&"close"!=k[0]||$X(c,7);else 3==c.state_&&("stop"==k[0]||"close"==k[0]?"stop"==k[0]?$X(c,7):c.disconnect():"noop"!=k[0]&&c.handler_&&c.handler_.channelHandleArray(k),
c.backChannelRetryCount_=0)}RX(4)}catch(Z){}};var alc=function(a,b){this.mapId=a;this.map=b;this.context=null};var blc=function(a){this.maxPoolSizeConfigured_=a||10;da.PerformanceNavigationTiming?(a=da.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(da.chrome&&da.chrome.loadTimes&&da.chrome.loadTimes()&&da.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;1<this.maxSize_&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},clc=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},Wkc=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},Skc=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1};blc.prototype.addRequest=function(a){this.requestPool_?this.requestPool_.add(a):this.request_=a};var Ykc=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
blc.prototype.cancel=function(){this.pendingMessages_=this.getPendingMessages();if(this.request_)this.request_.cancel(),this.request_=null;else if(this.requestPool_&&0!==this.requestPool_.size){for(var a=l(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
blc.prototype.getPendingMessages=function(){if(null!=this.request_)return this.pendingMessages_.concat(this.request_.getPendingMessages());if(null!=this.requestPool_&&0!==this.requestPool_.size){for(var a=this.pendingMessages_,b=l(this.requestPool_.values()),c=b.next();!c.done;c=b.next())a=a.concat(c.value.getPendingMessages());return a}return Ba(this.pendingMessages_)};var dlc=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};var flc=function(a,b){var c=new UX;c.debug("TestLoadImage: loading "+a);if(da.Image){var d=new Image;d.onload=et(elc,c,d,"TestLoadImage: loaded",!0,b);d.onerror=et(elc,c,d,"TestLoadImage: error",!1,b);d.onabort=et(elc,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=et(elc,c,d,"TestLoadImage: timeout",!1,b);da.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)},elc=function(a,b,c,d,e){try{a.debug(c),b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(f){}};var glc=function(){this.replacer_=void 0};glc.prototype.stringify=function(a){return da.JSON.stringify(a,this.replacer_)};glc.prototype.parse=function(a){return da.JSON.parse(a,void 0)};var hlc=function(){this.parser_=new glc},ilc=function(a,b,c){var d=c||"";try{ISb(a,function(e,f){var h=e;Fa(e)&&(h=kRb(e));b.push(d+f+"="+encodeURIComponent(h))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};var aY=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},bY=function(a){this.clientVersion_=22;this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new UX;this.hostPrefix_=this.backChannelUri_=this.forwardChannelUri_=this.path_=this.backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.extraHeaders_=null;this.nextMapId_=this.nextRid_=0;this.failFast_=aY("failFast",!1,a);this.enableStreaming_=
this.deadBackChannelTimerId_=this.backChannelTimerId_=this.forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.lastPostResponseArrayId_=this.lastArrayId_=-1;this.backChannelAttemptId_=this.backChannelRetryCount_=this.forwardChannelRetryCount_=0;this.baseRetryDelayMs_=aY("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=aY("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=aY("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=
aY("forwardChannelRequestTimeoutMs",2E4,a);this.xmlHttpFactory_=a&&a.xmlHttpFactory||void 0;this.usesFetchStreams_=a&&a.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.readyStateChangeThrottleMs_=0;this.supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new blc(a&&a.concurrentRequestLimit);this.wireCodec_=new hlc;this.fastHandshake_=a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=a&&a.encodeInitMessageHeaders||!1;this.fastHandshake_&&
this.encodeInitMessageHeaders_&&(this.channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&a&&a.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;a&&a.longPollingTimeout&&0<a.longPollingTimeout&&
(this.longPollingTimeout_=a.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};bY.prototype.channelVersion_=8;bY.prototype.state_=1;
bY.prototype.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");SX(0);this.path_=a;this.extraParams_=b||{};c&&void 0!==d&&(this.extraParams_.OSID=c,this.extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;this.channelDebug_.debug("connectChannel_()");a=Xkc(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;$kc(this)};
bY.prototype.disconnect=function(){this.channelDebug_.debug("disconnect()");jlc(this);if(3==this.state_){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();qC(b,"SID",this.sid_);qC(b,"RID",a);qC(b,"TYPE","terminate");cY(this,b);a=new WX(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=sC(b.clone());b=!1;if(da.navigator&&da.navigator.sendBeacon)try{b=da.navigator.sendBeacon(a.baseUri_.toString(),"")}catch(c){}!b&&da.Image&&((new Image).src=a.baseUri_,b=!0);b||(a.xmlHttp_=Ekc(a.channel_,
null),a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();XX(a)}klc(this)};var Ukc=function(a){a.backChannelRequest_&&(Qkc(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},jlc=function(a){Ukc(a);a.backChannelTimerId_&&(da.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);Tkc(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&("number"===typeof a.forwardChannelTimerId_&&da.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};g=bY.prototype;
g.setExtraHeaders=function(a){this.extraHeaders_=a};g.getHttpSessionId=function(){return this.httpSessionId_};g.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};g.getHandler=function(){return this.handler_};g.isClosed=function(){return 0==this.state_};g.getState=function(){return this.state_};g.getLastStatusCode=function(){return this.errorResponseStatusCode_};
var $kc=function(a){clc(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,UA(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},mlc=function(a,b){if(Wkc(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.maxSize_-(a.forwardChannelTimerId_?1:0))return!1;if(a.forwardChannelTimerId_)return a.channelDebug_.debug("Use the retry request that is already scheduled."),a.outgoingMaps_=b.getPendingMessages().concat(a.outgoingMaps_),!0;if(1==a.state_||
2==a.state_||a.forwardChannelRetryCount_>=(a.failFast_?0:a.forwardChannelMaxRetries_))return!1;a.channelDebug_.debug("Going to retry POST");a.forwardChannelTimerId_=TX(dt(a.onStartForwardChannelTimer_,a,b),llc(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
bY.prototype.onStartForwardChannelTimer_=function(a){if(this.forwardChannelTimerId_)if(this.forwardChannelTimerId_=null,this.channelDebug_.debug("startForwardChannel_"),1==this.state_){if(!a){this.channelDebug_.debug("open_()");this.nextRid_=Math.floor(1E5*Math.random());a=this.nextRid_++;var b=new WX(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=Ac(c),Bc(c,this.initHeaders_)):c=this.initHeaders_);null!==this.httpHeadersOverwriteParam_||this.encodeInitMessageHeaders_||
(b.setExtraHeaders(c),c=null);var d;if(this.fastHandshake_)a:{for(var e=d=0;e<this.outgoingMaps_.length;e++){b:{var f=this.outgoingMaps_[e];if("__data__"in f.map&&(f=f.map.__data__,"string"===typeof f)){f=f.length;break b}f=void 0}if(void 0===f)break;d+=f;if(4096<d){d=e;break a}if(4096===d||e===this.outgoingMaps_.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=nlc(this,b,d);e=this.forwardChannelUri_.clone();qC(e,"RID",a);0<this.clientVersion_&&qC(e,"CVER",this.clientVersion_);this.httpSessionIdParam_&&
qC(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);cY(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+encodeURIComponent(String(RSb(c)))+"&"+d:this.httpHeadersOverwriteParam_&&SSb(e,this.httpHeadersOverwriteParam_,c));this.forwardChannelRequestPool_.addRequest(b);this.blockingHandshake_&&qC(e,"TYPE","init");this.fastHandshake_?(qC(e,"$req",d),qC(e,"SID","null"),b.decodeInitialResponse_=!0,Dkc(b,e,null)):Dkc(b,e,d);this.state_=2}}else 3==this.state_&&(a?olc(this,a):0==this.outgoingMaps_.length?
this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):clc(this.forwardChannelRequestPool_)||(olc(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var olc=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();qC(d,"SID",a.sid_);qC(d,"RID",c);qC(d,"AID",a.lastArrayId_);cY(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&SSb(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new WX(a,a.channelDebug_,a.sid_,c,a.forwardChannelRetryCount_+1);null===a.httpHeadersOverwriteParam_&&c.setExtraHeaders(a.extraHeaders_);b&&(a.outgoingMaps_=b.getPendingMessages().concat(a.outgoingMaps_));b=nlc(a,c,1E3);c.setTimeout(Math.round(.5*
a.forwardChannelRequestTimeoutMs_)+Math.round(.5*a.forwardChannelRequestTimeoutMs_*Math.random()));a.forwardChannelRequestPool_.addRequest(c);Dkc(c,d,b)},cY=function(a,b){a.extraParams_&&vc(a.extraParams_,function(c,d){qC(b,d,c)});a.handler_&&ISb({},function(c,d){qC(b,d,c)})},nlc=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?dt(a.handler_.badMapError,a.handler_,a):null;a:for(var e=a.outgoingMaps_,f=-1;;){var h=["count="+c];-1==f?0<c?(f=e[0].mapId,h.push("ofs="+f)):f=0:h.push("ofs="+
f);for(var k=!0,q=0;q<c;q++){var u=e[q].mapId,x=e[q].map;u-=f;if(0>u)f=Math.max(0,e[q].mapId-100),k=!1;else try{ilc(x,h,"req"+u+"_")}catch(y){d&&d(x)}}if(k){d=h.join("&");break a}}a=a.outgoingMaps_.splice(0,c);b.pendingMessages_=a;return d},Zkc=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,UA(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},Vkc=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||3<=a.backChannelRetryCount_)return!1;a.channelDebug_.debug("Going to retry GET");
a.backChannelAttemptId_++;a.backChannelTimerId_=TX(dt(a.onStartBackChannelTimer_,a),llc(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0};
bY.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;plc(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(null==this.backChannelRequest_||0>=this.handshakeRttMs_)this.channelDebug_.warning("Skip bpDetectionTimerId_ "+this.backChannelRequest_+" "+this.handshakeRttMs_);else{var a=2*this.handshakeRttMs_;this.channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=TX(dt(this.onBpDetectionTimer_,this),a)}};
bY.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.channelDebug_.info("BP detection timeout reached.");if(null!=this.backChannelRequest_.getXhr()){var a=this.backChannelRequest_.getXhr().getResponseText();a&&this.channelDebug_.warning("Timer should have been cancelled : "+a)}this.channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=!1;this.bpDetectionDone_=!0;SX(10);Ukc(this);plc(this)}else this.channelDebug_.warning("Invalid operation.")};
var Qkc=function(a){null!=a.bpDetectionTimerId_&&(a.channelDebug_.debug("Cancel the BP detection timer."),da.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},plc=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new WX(a,a.channelDebug_,a.sid_,"rpc",a.backChannelAttemptId_);null===a.httpHeadersOverwriteParam_&&a.backChannelRequest_.setExtraHeaders(a.extraHeaders_);a.backChannelRequest_.setReadyStateChangeThrottle(a.readyStateChangeThrottleMs_);var b=
a.backChannelUri_.clone();qC(b,"RID","rpc");qC(b,"SID",a.sid_);qC(b,"AID",a.lastArrayId_);qC(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&qC(b,"TO",a.longPollingTimeout_);qC(b,"TYPE","xmlhttp");cY(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&SSb(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=sC(b.clone());
c.postData_=null;c.decodeChunks_=!0;Ckc(c,d);a.channelDebug_.debug("New Request created")};bY.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};bY.prototype.onBackChannelDead_=function(){null!=this.deadBackChannelTimerId_&&(this.deadBackChannelTimerId_=null,Ukc(this),Vkc(this),SX(19))};
var Tkc=function(a){null!=a.deadBackChannelTimerId_&&(da.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},Nkc=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){Tkc(a);Qkc(a);a.backChannelRequest_=null;var d=2}else if(Skc(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),Ykc(a.forwardChannelRequestPool_,b),d=1;else return;if(0!=a.state_)if(b.successful_)1==d?(tkc(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),$kc(a)):Zkc(a);else{var e=b.getLastStatusCode(),f=b.getLastError();if(3==f||0==f&&0<e)a.channelDebug_.debug("Not retrying due to error type"),200<e&&(a.errorResponseStatusCode_=b.getLastStatusCode());else{a.channelDebug_.debug(function(){return"Maybe retrying, last error: "+zkc(f,a.errorResponseStatusCode_)});if(1==d&&mlc(a,b)||2==d&&Vkc(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&0<c.length&&dlc(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:$X(a,5);break;case 4:$X(a,10);break;case 3:$X(a,6);break;default:$X(a,2)}}},llc=function(a,b){var c=a.baseRetryDelayMs_+Math.floor(Math.random()*a.retryDelaySeedMs_);a.isActive()||(a.channelDebug_.debug("Inactive channel"),c*=2);return c*b},$X=function(a,b){a.channelDebug_.info("Error code "+b);if(2==b){var c=null;a.handler_&&(c=null);var d=dt(a.testNetworkCallback_,a);c||(c=new Vo("//www.google.com/images/cleardot.gif"),da.location&&"http"==da.location.protocol||iC(c,"https"),sC(c));
flc(c.toString(),d)}else SX(2);a.onError_(b)};bY.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),SX(2)):(this.channelDebug_.info("Failed to ping google.com"),SX(1))};bY.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);klc(this);jlc(this)};
var klc=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var b=a.forwardChannelRequestPool_.getPendingMessages();if(0!=b.length||0!=a.outgoingMaps_.length)a.channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+a.outgoingMaps_.length}),Ea(a.nonAckedMapsAtChannelClose_,b),Ea(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,Ba(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
Xkc=function(a,b,c){var d=tC(c);""!=d.getDomain()?(b&&jC(d,b+"."+d.getDomain()),kC(d,d.port_)):(d=da.location,d=PSb(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&qC(d,b,c);qC(d,"VER",a.channelVersion_);cY(a,d);return d},Ekc=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("ie");b=c&&a.usesFetchStreams_&&!a.xmlHttpFactory_?new pB(new dC({streamBinaryChunks:!0})):new pB(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};bY.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var qlc=function(){};g=qlc.prototype;g.channelOpened=function(){};g.channelHandleArray=function(){};g.channelError=function(){};g.channelClosed=function(){};g.isActive=function(){return!0};g.badMapError=function(){};g.correctHostPrefix=function(a){return a};var rlc=function(){if(rq&&!(10<=Number(kt)))throw Error("je");};rlc.prototype.createWebChannel=function(a,b){return new dY(a,b)};
var dY=function(a,b){Po.call(this);this.channel_=new bY(b);this.url_=a;this.messageUrlParams_=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.channel_.setExtraHeaders(a);a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?a["X-WebChannel-Content-Type"]=b.messageContentType:a={"X-WebChannel-Content-Type":b.messageContentType});b&&b.clientProfile&&(a?a["X-WebChannel-Client-Profile"]=
b.clientProfile:a={"X-WebChannel-Client-Profile":b.clientProfile});this.channel_.initHeaders_=a;(a=b&&b.httpHeadersOverwriteParam)&&!Oi(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!Oi(b)&&(this.channel_.httpSessionIdParam_=b,rca(this.messageUrlParams_,b)&&yc(this.messageUrlParams_,b));this.channelHandler_=new eY(this)};ft(dY,Po);
dY.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};dY.prototype.close=function(){this.channel_.disconnect()};dY.prototype.send=function(a){var b=this.channel_;if("string"===typeof a){var c={};c.__data__=a;a=c}else this.sendRawJson_&&(c={},c.__data__=kRb(a),a=c);b.outgoingMaps_.push(new alc(b.nextMapId_++,a));3==b.state_&&$kc(b)};
dY.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;dY.superClass_.disposeInternal.call(this)};var slc=function(a){akc.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;if(b){a:{for(var c in b){a=c;break a}a=void 0}this.data=(this.metadataKey=a)?zc(b,this.metadataKey):b}else this.data=a};ft(slc,akc);
var tlc=function(a){bkc.call(this);this.status=1;this.errorCode=a};ft(tlc,bkc);var eY=function(a){this.channel_=a};ft(eY,qlc);eY.prototype.channelOpened=function(){this.channel_.dispatchEvent("v")};eY.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new slc(a))};eY.prototype.channelError=function(a){this.channel_.dispatchEvent(new tlc(a))};eY.prototype.channelClosed=function(){this.channel_.dispatchEvent("w")};var JX=function(a){this.channel_=a};JX.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};
JX.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};JX.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};var ulc=function(){this.changeList=[]};ulc.prototype.add=function(a){this.changeList.push(a)};
var vlc=function(a,b){this.authMethod=b;this.jspbClient=new mkc(a)},wlc=function(a,b){var c,d,e,f,h;return Ne(function(k){if(1==k.nextAddress){c=new Rjc;oj(c,Pjc,1,b);var q=k.yield,u=a.jspbClient,x=u.post;var y=a.authMethod;y={queryParams:y.getQueryParameters(),extraHeaders:y.getHeaders(),withCredentials:y.usesCredentialedRequests()};return q.call(k,x.call(u,"/punctual/v1/chooseServer",c,Sjc,y),2)}d=k.yieldResult;e=Ej(d,1);if(null==e)throw Error("ke");return k.return({gsessionid:e,affinitization:null!=
(f=d.getAffinitizationOrUndefined())?f:0,initialConnectionDelayMillis:null!=(h=tt(d,3))?h:0})})},xlc=function(a,b,c){this.project=a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},fY=function(a,b,c){this.defaultProject=a;this.channelDeps=c;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new B.Subject;this.streamNumber=0;this.rawStatus=new B.Subject;this.status=new B.BehaviorSubject(new $B);this.skipBackoff=
new fkc;this.recentResyncs=[];this.hasConnected=!1;this.rawStatus.pipe(gia(function(d){return 0===d.getCode()?Promise.resolve():new Promise(function(e){Mp(e,500)})})).subscribe(this.status);this.delayGenerator=new PVa;this.reconnectHint=b?b.pipe(gf(function(){return B.NEVER}),eia(B.NEVER)):B.NEVER;ylc(this)},zlc=function(a,b,c,d){b=b.then(function(e){switch(e.domainType()){case 2:case 0:var f=a.firstPartyUri;break;case 1:f=a.thirdPartyUri;break;default:f=new Vo}var h=f.clone().setPath("/punctual/multi-watch/channel"),
k=new ckc(h.toString(),e);return{serverChooser:new vlc(f,e),channelCreator:function(q,u,x){q=new IX(q,u,k,function(y,E){return(new rlc).createWebChannel(y,E)},x);q.open();return q}}});return new fY(d,c,b)};fY.prototype.handleClose=function(a,b){var c=this.causalStreams.get(a)||this.limboStreams.get(a)||this.nonCausalStreams.get(a);c&&(0===b.getCode_legacyNullable()?c.observer.complete():c.observer.error(b),this.causalStreams.delete(a),this.limboStreams.delete(a),this.nonCausalStreams.delete(a))};
var Alc=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},Blc=function(a,b){return a.recentResyncs.find(function(c){var d;if(d=c.project===b.project)c=c.interestSet,d=b.interestSet,d=c instanceof Xp&&d instanceof Xp?c.equals(d):!1;return d})};fY.prototype.onOpen=function(){var a=new $B;a.setCode(0);try{this.rawStatus.next(a)}catch(b){}};fY.prototype.onClose=function(){this.channelState=void 0;ylc(this)};
fY.prototype.onError=function(a,b){a=new $B;a.setCode(RVa(b));try{this.rawStatus.next(a)}catch(c){}a=l(this.causalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=l(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2};
var Elc=function(a,b,c){if(a.channelState){var d=Clc(c.project,c.interestSet);c instanceof Dlc&&(wj(d,1,c.knowledgeTimestamp.toString()),mj(d,8,c.knowledgeTimestampChosenByPunctual));rj(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new AX;var e=c.addAndReturnRequests();e.setStreamId(b.toString());Ll(e,2,Vjc,d);e.setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},Clc=function(a,b){var c=(new Pjc).setHeader(dkc);if(b instanceof Xp){var d=new Njc;null!=a&&
d.setProject(TVa(a));d.setOwner(VVa(b));d.setPath(XVa(b));Ll(c,2,Qjc,d)}else d=new Ojc,null!=a&&d.setProject(TVa(a)),d.setOwner(VVa(b.root)),d.setPrefix(XVa(b.root)),c.setPrefix(d);return c},Flc=function(a,b){var c=new AX,d=c.addAndReturnRequests();d.setStreamId(b.toString());d.setClose(new Tjc);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},ylc=function(a){var b=Ljc(a.delayGenerator);SVa(b).pipe(Dia(a.reconnectHint.pipe(qf(function(){var c=
a.skipBackoff;c.update();0<c.tokens?(c.tokens--,c=!0):c=!1;return c})))).subscribe(function(){a.channelDeps.then(function(c){Glc(a,c.serverChooser).then(function(d){Mp(function(){a.hasConnected=!0;Hlc(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(){ylc(a)})},function(c){var d=new $B;d.setCode(13);d.setMessage(c.toString());a.rawStatus.next(d)})})},Glc=function(a,b){var c,d,e,f,h,k;return Ne(function(q){if(1==q.nextAddress)return q.yield(Ilc(a),2);c=q.yieldResult;
d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return(wlc(b,Clc(h,k)))})},Ilc=function(a){var b,c,d,e,f,h,k;return Ne(function(q){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];c=l(b);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=l(e.values()),h=f.next();!h.done;)return k=h.value,q.return([k.project,k.interestSet]);return q.yield(MHb(vu(a.newStreamSubject).pipe(qf())),1)})},Hlc=function(a,b,c){a.channelState={channel:b(function(f){for(var h=l(Ji(f,Zjc,1)),k=h.next();!k.done;k=
h.next()){var q=k.value;if(k=q.getStreamId_legacyNullable())if(k=Number(k),q.hasClose()){a:{if(q=q.getClose())if(q=q.getStatus())break a;q=void 0}q&&a.handleClose(k,q)}else{var u=Fl(q,DX,2,$jc);if(u)switch(Bl(u,EX)){case 1:q=a;if(u=q.causalStreams.get(k)){try{u.observer.next(new Jjc)}catch(O){}q.causalStreams.delete(k);q.limboStreams.set(k,u.start())}break;case 3:a:{if(q=Fl(u,Wjc,3,EX))if(q=Zp(q,1)){var x=new Kjc(Yp(q));break a}x=void 0}if(x&&(q=a,u=k,k=x,(x=q.limboStreams.get(u))?(x=x.advance(k.timestampMicros),
q.limboStreams.delete(u),q.nonCausalStreams.set(u,x),q=x):q=q.nonCausalStreams.get(u),q)){u=q;x=k.timestampMicros;x>u.knowledgeTimestamp&&(u.knowledgeTimestamp=x,u.knowledgeTimestampChosenByPunctual=!0);try{q.observer.next(k)}catch(O){}}break;case 2:k=a.nonCausalStreams.get(k)||a.limboStreams.get(k);if(!k)break;q=k.interestSet;if(x=u.getChanges()){u=new ulc;x=l(Ji(x,CX,1));for(var y=x.next();!y.done;y=x.next()){var E=y.value,H=Fi(E,Qp,6);y=E.getVersion_legacyNullable();if(H&&y){var J=void 0;E=null==
(J=bq(E,2))?void 0:$Va(J);J=null===E?void 0:E;(H=bWa(q,H))&&u.add(new Ijc(H,Yp(y),J))}}q=u}else q=void 0;if(q)for(q=l(q.changeList),u=q.next();!u.done;u=q.next()){u=u.value;u=new Ijc(u.objectId,u.version,u.payload);try{k.observer.next(u)}catch(O){}}break;case 5:if(q=a,k=q.causalStreams.get(k)||q.limboStreams.get(k)||q.nonCausalStreams.get(k)){k instanceof Dlc&&(Alc(q),(u=Blc(q,k))?(u.hasRecurred=!0,u.knowledgeTimestamp=k.knowledgeTimestamp,u.resyncMillis=Date.now()):q.recentResyncs.push(new xlc(k.project,
k.interestSet,k.knowledgeTimestamp)));try{k.observer.complete()}catch(O){}}}}}if(f.hasStatus())switch(f.getStatus().getCode_legacyNullable()){case 1:h=l(a.causalStreams.values());for(f=h.next();!f.done;f=h.next())f.value.streamInitiationReason=3;h=l(a.nonCausalStreams.values());for(f=h.next();!f.done;f=h.next())f.value.streamInitiationReason=3;a.channelState&&a.channelState.channel.close()}},a,c.gsessionid),affinitization:c.affinitization};b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));
b.sort(function(f,h){return f[0]-h[0]});b=l(b);for(c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;Elc(a,c,d)}b=l(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=l(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var e=a.channelState;Mp(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};
fY.prototype.watch=function(a,b){var c=this;b=void 0===b?{}:b;return new B.Observable(function(d){var e=++c.streamNumber,f,h=null!=(f=b.projectOverride)?f:c.defaultProject;d=new Jlc(d,h,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});Elc(c,e,d);return function(){Flc(c,e)}})};
fY.prototype.watchWithStartTime=function(a,b,c){var d=this;c=void 0===c?{}:c;return new B.Observable(function(e){var f=++d.streamNumber,h,k=null!=(h=c.projectOverride)?h:d.defaultProject,q=new Dlc(e,k,a,b,!1);Alc(d);if((e=Blc(d,q))&&(e.hasRecurred||0>=b.compare(e.knowledgeTimestamp))){var u=!0;Mp(function(){u&&q.observer.complete()},6E4);return function(){u=!1}}d.nonCausalStreams.set(f,q);d.newStreamSubject.next({});Elc(d,f,q);return function(){Flc(d,f)}})};
var Jlc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};Jlc.prototype.start=function(){return new Klc(this.observer,this.project,this.interestSet)};var Klc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};Klc.prototype.advance=function(a){return new Dlc(this.observer,this.project,this.interestSet,a,!0)};
var Dlc=function(a,b,c,d,e){this.observer=a;this.project=b;this.interestSet=c;this.knowledgeTimestamp=d;this.knowledgeTimestampChosenByPunctual=e;this.streamInitiationReason=1};var Llc={firstPartyUri:new Vo("https://signaler-pa.clients6.google.com"),thirdPartyUri:new Vo("https://signaler-pa.googleapis.com")},Mlc={firstPartyUri:new Vo("https://punctual-dev.corp.google.com"),thirdPartyUri:new Vo("https://signaler-staging.sandbox.google.com")},Nlc=new Map(Object.entries({prod:Llc,ytprod:{firstPartyUri:new Vo("https://signaler-pa.youtube.com"),thirdPartyUri:new Vo("https://signaler-pa.googleapis.com")},dev:Mlc}));var Olc=function(a){this.projectPath=a;this.authParams=new jkc};Olc.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};
Olc.prototype.build=function(){var a=QVa(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("le`"+b);var c=b.substring(10).split("/");if(2!==c.length)throw Error("me`"+b);b=l(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new Vo(decodeURIComponent(c.substring(7))),c={firstPartyUri:c,thirdPartyUri:c};else{var d=Nlc.get(c);if(!d)throw Error("ne`"+c);c=d}return zlc(c,a,this.reconnectHint,b)};var Plc={watch:function(){return(0,B.of)()},watchWithStartTime:function(){return(0,B.of)()},status:(0,B.of)()},gY=function(a){this.activeSession=a;if($C(this.activeSession,"enablePushUpdatesClient")){switch(this.activeSession.getEnvironmentType()){case "PROD":case "NIGHTLY":a="AIzaSyDBL0cdQ7zgltPyAYPmzKE4X2t2_S_wW8w";var b="/punctual/prod/buganizer";break;case "QA":a="AIzaSyCpeBtg5BChNlEw-O4F0WpVJWgk_CFEY6I";b="/punctual/prod/buganizer-qa";break;default:a="ANVavNKXeiME5gTvC0_SzcTVHNYBMU50fWn-NpE",
b="/punctual/dev/buganizer-test"}this.punctualClient=(new Olc(b)).setApiKey(a).build()}else this.punctualClient=Plc},Qlc=function(a,b){return a.punctualClient.watch(YVa("new-comment-issue",b)).pipe(cf(function(c){return c instanceof Ijc}))};gY.\u0275fac=function(a){return new (a||gY)(n(Us))};gY.\u0275prov=$c({token:gY,factory:gY.\u0275fac,providedIn:"root"});var hY=function(a){this.punctualService=a;this.stream=new B.Subject;this.isPaused=!1;this.closeStream$=new B.Subject};hY.prototype.resume=function(){this.isPaused=!1};var Rlc=function(a,b){a.issueId!==b&&(a.closeStream$.next(),a.stream=new B.Subject,a.issueId=b,a.resume(),a.watch(b).subscribe(a.stream));return a.stream};hY.prototype.watch=function(a){var b=this;return Qlc(this.punctualService,a).pipe(cf(function(){var c=!b.isPaused;b.resume();return c}),jf(1E3),Af(this.closeStream$))};
hY.\u0275fac=function(a){return new (a||hY)(n(gY))};hY.\u0275prov=$c({token:hY,factory:hY.\u0275fac,providedIn:"root"});var Slc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};var Tlc=function(a){return[a]},iY=function(a){this.matDialog=a};iY.prototype.show=function(a,b,c,d){this.dialog=this.matDialog.open(jY,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:a,componentId:d,audience:b,id:null!=c.unlinkifiedComment?c.commentNumber:1,text:c.unlinkifiedComment||"",formattingMode:c.formattingMode||"PLAIN"}});return(0,B.firstValueFrom)(Pz(this.dialog))};iY.\u0275fac=function(a){return new (a||iY)(n(Uz))};iY.\u0275prov=$c({token:iY,factory:iY.\u0275fac,providedIn:"root"});
var jY=function(a,b,c,d,e,f){Y.call(this);var h=this;this.activeSession=a;this.origComment=b;this.dialogService=c;this.dialogRef=d;this.bannedWordsChecker=f;this.MARKDOWN="MARKDOWN";this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.enableRecaptcha=$C(this.activeSession,"enableRecaptcha");this.recaptchaResponse="";this.newComment=Object.assign({},this.origComment);
this.subscriptions.add(VW(e,function(){return h.isModified()},!1))};W(jY,Y);jY.\u0275dir=Y.\u0275dir;g=jY.prototype;g.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Af(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};g.closeIfUnmodified=function(){if(!this.isModified()){var a;null==(a=this.dialogService.dialog)||a.close()}};
g.isCaptchaValid=function(){return!this.enableRecaptcha||""!==this.recaptchaResponse};g.isModified=function(){return!ki(this.newComment,this.origComment)};
g.closeDialogForSave=function(){var a=this,b,c,d;return Ne(function(e){if(1==e.nextAddress){if(!a.isModified())return e.return();a.enableRecaptcha&&(a.newComment.recaptchaToken=a.recaptchaResponse);return e.yield(a.bannedWordsChecker.check(a.newComment.text,"EXTERNAL_AUDIENCE"===a.newComment.audience,a.newComment.componentId),2)}(b=e.yieldResult)?null==(d=a.dialogService.dialog)||d.close(a.newComment):null==(c=a.commentDraft)||mgc(c);Se(e)})};
jY.\u0275fac=function(a){return new (a||jY)(z(Us),z(Tz),z(iY),z(Rz),z(UW),z(TW))};
jY.\u0275cmp=od({type:jY,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&zg(LT,5);if(a&2){var c;yg(c=Bg())&&(b.commentDraft=c.first)}},features:[lg([TW]),Jf],decls:19,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"content","audience","textareaClass","contentChange","onSubmit"],["class","banned-words-warning break-word",4,"ngIf"],[1,"inline-block",3,"initialValue","change"],[3,"comment","issueId",
"audience","formattingMode",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button",3,"disabled","color","click"],[1,"banned-words-warning","break-word"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[3,"comment","issueId","audience","formattingMode"],[1,"recaptcha-container"],[3,"onUpdate"]],template:function(a,b){a&1&&(D(0,
"h1",0),Q(1),F(),D(2,"section",1)(3,"p",2),Q(4," Editing comments will not permanently remove old ones from database history. "),G(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),D(7,"a",3),Q(8," file a support request."),F()(),D(9,"b-comment-draft",4),L("contentChange",function(c){return b.newComment.text=c})("onSubmit",function(){return b.closeDialogForSave()})("contentChange",function(){b.bannedWordsChecker.reset()}),F(),P(10,cWa,4,1,"p",5),D(11,"b-markdown-toggle",6),L("change",
function(c){return b.newComment.formattingMode=c}),F(),P(12,dWa,1,4,"b-live-preview",7),F(),P(13,eWa,3,0,"section",8),D(14,"footer",9)(15,"button",10),Q(16," Cancel "),F(),D(17,"button",11),L("click",function(){return b.closeDialogForSave()}),Q(18),F()());a&2&&(w(1),kg("Editing Comment #",b.origComment.id," of Issue ",b.origComment.issueId,""),w(6),C("href",b.contentRemovalRequestLink,re),w(2),C("content",b.newComment.text)("audience",b.origComment.audience)("textareaClass",og(16,Tlc,b.bannedWordsChecker.showWarning()?
"banned-words-warning":"")),w(1),C("ngIf",b.bannedWordsChecker.showWarning()),w(1),Xf("margin-bottom",(null==b.newComment?null:b.newComment.formattingMode)!==b.MARKDOWN),C("initialValue",b.origComment.formattingMode),w(1),C("ngIf",(null==b.newComment?null:b.newComment.formattingMode)===b.MARKDOWN),w(1),C("ngIf",b.enableRecaptcha),w(2),C("mat-dialog-close",void 0),w(2),C("disabled",!b.isModified()||!b.isCaptchaValid())("color",b.bannedWordsChecker.showWarning()?"warn":"primary"),w(1),S(" ",b.bannedWordsChecker.showWarning()?
"Save Anyway":"Save"," "))},dependencies:[Vz,Wz,Xz,Yz,Ev,Ez,iT,hT,LT,PT],styles:[".recaptcha-container[_ngcontent-%COMP%]{float:right;padding-top:8px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}\n/*# sourceMappingURL=edit_comment_dialog.css.map */"],changeDetection:0});var kY=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da){this.editIssueService=a;this.butterBar=b;this.issuePermissionService=c;this.issueCommentService=d;this.editCommentDialogService=e;this.issueFridge=f;this.matDialogService=h;this.paths=k;this.analytics=q;this.domSafe=u;this.confirmationDialogService=x;this.issueComments=y;this.errorHandler=E;this.issueFetchResponseFridge=H;this.eventsForIssueFridge=J;this.componentFridge=O;this.commentFormatter=R;this.confirmNoAccessService=U;this.activeSession=
Z;this.appEvents=na;this.issuePicker=oa;this.eventsForIssueWatcher=wa;this.issueInteractionsTracking=Da},Bs=function(a,b,c){var d,e,f,h,k,q,u;return Ne(function(x){if(1==x.nextAddress)return x.yield((0,B.firstValueFrom)(a.issueFridge.watch(b)),2);if(3!=x.nextAddress){d=x.yieldResult;f=null==(e=d)?void 0:e.snapshot[0].componentId;h=a.editIssueService.savingState(b);if(h.get("commentEdit"))return x.return();a.butterBar.dismiss();q=null!=(k=a.issuePermissionService.audience())?k:"EXTERNAL_AUDIENCE";
return x.yield(a.editCommentDialogService.show(b,q,c,f),3)}u=x.yieldResult;if(null==u)return x.return();Hjc(a.issueCommentService,{issueId:b,newCommentId:u.id,newComment:u.text,newCommentFormattingMode:u.formattingMode,recaptchaToken:u.recaptchaToken});Se(x)})},Vlc=function(a,b,c){var d,e,f;return Ne(function(h){if(1==h.nextAddress)return c?h.yield(Ulc(a,b),2):h.return();if(3!=h.nextAddress)return d={title:"Choose target issue",defaultChoices:h.yieldResult,allowMultipleIds:!1,currentResource:{id:b,
type:"issue"},edgeType:"copyComment"},h.yield(a.issuePicker.open(d),3);e=h.yieldResult;if(null==(f=e)?0:f.length){var k=a.paths.editIssue(e[0],{template_issue:b,template_comment:c,do_attribution:!0});a.analytics.trackEvent(xp.EDIT_ISSUE,"copyComment");a.domSafe.openInNewTab(k)}Se(h)})},Ulc=function(a,b){function c(U){return y.get(U)}var d,e,f,h,k,q,u,x,y,E,H,J,O,R;return Ne(function(U){if(1==U.nextAddress)return U.yield((0,B.firstValueFrom)(a.issueFridge.watch(b)),2);if(3!=U.nextAddress){d=U.yieldResult;
if(!d)return U.return([]);f=null!=(e=d.snapshot[0].duplicateIssueId)?e:[];k=null!=(h=d.snapshot[0].blockingIssueId)?h:[];u=null!=(q=d.snapshot[0].blockedByIssueId)?q:[];return U.yield((0,B.firstValueFrom)(a.issueFridge.watchSet(Tj([].concat(p(f),p(k),p(u))))),3)}x=U.yieldResult;y=new Map(x.map(function(Z){return[Z.issueId,Z]}));E=u.map(c).filter(cl).map(fWa("BLOCKED_BY"));H=k.map(c).filter(cl).map(fWa("BLOCKING"));J=f.map(c).filter(cl).map(fWa("DUPLICATE"));O=[].concat(p(E),p(H),p(J));R=gWa(O);return U.return(R)})},
Xlc=function(a,b,c){var d;return Ne(function(e){return 1==e.nextAddress?c?e.yield(AJ(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Uo("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?e.yield(Wlc(a,b,c),0):e.return()})},Wlc=function(a,b,c){var d,e;return Ne(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();WF(a.butterBar,"Restoring comment...",0);Oe(f,2,3);kO(d,"commentUndelete");
return f.yield(a.issueComments.undelete(b,c),5);case 5:WF(a.butterBar,"Comment restored successfully.");case 3:Pe(f);lO(d,"commentUndelete");LH(a.issueFetchResponseFridge,b);a.eventsForIssueFridge.poke(b);Qe(f,0);break;case 2:e=Re(f),WF(a.butterBar,"Comment restoration failed."),ZF(a.errorHandler,e),f.jumpTo(3)}})},$lc=function(a,b,c,d){var e,f,h,k;return Ne(function(q){if(1==q.nextAddress){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?q.return():q.yield(Ylc(a,
b),2)}return 3!=q.nextAddress?(f=q.yieldResult,a.butterBar.dismiss(),q.yield((0,B.firstValueFrom)(Pz(a.matDialogService.open(mX,{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(h=q.yieldResult)?q.yield(Zlc(a,b,c,h.value,null!=(k=d)?k:""),0):q.jumpTo(0)})},Zlc=function(a,b,c,d,e){var f,h;return Ne(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Oe(k,2,3);WF(a.butterBar,"Deleting comment...",0);kO(f,"commentDelete");
return k.yield(a.issueComments.delete(b,c,d,e),5);case 5:WF(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:Pe(k);lO(f,"commentDelete");LH(a.issueFetchResponseFridge,b);Qe(k,0);break;case 2:h=Re(k),WF(a.butterBar,"Comment deletion failed."),ZF(a.errorHandler,h),k.jumpTo(3)}})},Ylc=function(a,b){var c,d,e,f,h,k,q,u;return Ne(function(x){switch(x.nextAddress){case 1:return x.yield((0,B.firstValueFrom)(a.issueFridge.watch(b,{trustUncertainMemory:!0})),
2);case 2:c=x.yieldResult;e=(null==(d=c)?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;x.jumpTo(3);break}return x.yield((0,B.firstValueFrom)(a.componentFridge.watch(e)),4);case 4:f=x.yieldResult;case 3:return h=f,k=new Slc("Other","USER_REQUEST"),h&&"DISABLED"!==h.commentEditState||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),q=new Slc("Spam or Abuse","ABUSE"),"EXTERNAL_PUBLIC"!==a.issuePermissionService.accessLevel()&&(q.enabled=!1,q.disabledReason="available on Public components"),
u=new Slc("Personally Identifiable Information","PII"),x.return([u,q,k])}})},amc=function(a,b,c){var d,e;return Ne(function(f){if(1==f.nextAddress)return d=DI(a.issuePermissionService,zi(c.userPerformingActionUser)),a.analytics.trackEvent(xp.RESTRICTED_CONTENT,"updateContentJudgement","comment"),f.yield(a.showContentJudgementDialog({severity:Rl(c.commentContentVerdict),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict=
{piiVerdict:{severity:e.contentJudgement.severity}},LH(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b),IH(a.issueFridge,[b],{markRead:!0});Se(f)})};kY.prototype.showContentJudgementDialog=function(a){return(0,B.firstValueFrom)(Pz(this.matDialogService.open(vX,{panelClass:"no-jitter",width:"500px",data:a})))};
var bmc=function(a,b,c){var d;return Ne(function(e){if(1==e.nextAddress)return e.yield((0,B.firstValueFrom)(Pz(a.matDialogService.open(wX,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(1===d)})},cmc=function(a,b,c,d){var e;Ne(function(f){if(1==f.nextAddress){if(null==d)return f.return();a.analytics.trackEvent(xp.RESTRICTED_CONTENT,"updateContentJudgement","attachment");return f.yield(a.showContentJudgementDialog({severity:Rl(d.contentVerdict),resourcePath:"issues/"+
b+"/attachments/"+d.attachmentId,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:e.contentJudgement.severity}},LH(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b),IH(a.issueFridge,[b],{markRead:!0});Se(f)})};
kY.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q,u;Ne(function(x){if(1==x.nextAddress){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return x.return();e=B;f=e.firstValueFrom;h=c.matDialogService;k=h.open;q=lX;return x.yield(Ylc(c,a),3)}return 2!=x.nextAddress?x.yield(f.call(e,Pz(k.call(h,q,{width:"560px",data:{deletionReasons:x.yieldResult,attachmentId:b.attachmentId}}))),2):(u=x.yieldResult)?x.yield(r5b(c.editIssueService,a,b,u.value),
0):x.jumpTo(0)})};
var dmc=function(a,b){var c=b.issueId,d=b.componentId,e=b.comment,f,h,k;return Ne(function(q){if(1==q.nextAddress){if("INTERNAL"!==a.issuePermissionService.accessLevel()||a.issuePermissionService.hasAclToEdit()&&a.issuePermissionService.isImplicitAccessEnabled())return q.return(!0);Oe(q,2);return q.yield((0,B.firstValueFrom)(vfc(a.commentFormatter,{comment:e.value,issueId:c,audience:null!=(f=a.issuePermissionService.audience())?f:"EXTERNAL_AUDIENCE",formattingMode:e.formattingMode,idPrefix:"b"+c+
"-draft"})),4)}if(2!=q.nextAddress)return h=q.yieldResult,q.return(YN(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=Re(q);ZF(a.errorHandler,k);return q.return(!1)})},emc=function(a,b){b=void 0===b?"comment":b;var c,d;return Ne(function(e){if((c=a.issuePermissionService.accessLevel())&&"INTERNAL"===c||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||$Tb(a.activeSession))return e.return(!0);switch(b){case "comment":d=
Uo("Commenting on this bug report means your email address will be shared with the team that works on this product.");break;case "reaction":d=Uo("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:$h(b)}return e.return(AJ(a.confirmationDialogService,{title:"",content:d}))})};
kY.prototype.submitCommentBox=function(a,b,c,d){var e=this,f,h,k,q;return Ne(function(u){if(1==u.nextAddress){f=e.editIssueService.savingState(b);if(!e.issuePermissionService.hasAclToComment()||!O4b(c)||f.get("comment"))return u.return();kO(f,"comment");h=function(){lO(f,"comment")};return u.yield(dmc(e,{issueId:b,componentId:a,comment:c}),2)}if(3!=u.nextAddress)return k=u.yieldResult,k?u.yield(emc(e),3):(h(),u.return());q=u.yieldResult;if(!q)return h(),u.return();e.analytics.trackEvent(xp.EDIT_ISSUE,
"addComment","MARKDOWN"===c.formattingMode?"markdown":"non markdown");hO(e.issueInteractionsTracking,b);e.eventsForIssueWatcher.isPaused=!0;return u.return(e.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(b,d).finally(function(){h();e.appEvents.commentSubmitted.next(b);e.appEvents.scrollToCommentBox.next()}))})};
kY.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,h,k;return Ne(function(q){if(1==q.nextAddress)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),h=null!=(f=null==(e=d)?void 0:e.severity)?f:"NONE_DETECTED",q.yield(b.showContentJudgementDialog({severity:h,contentJudgement:void 0,hasAclToCreate:!0}),2);(k=q.yieldResult)&&c.userDefinedJudgementForNewContent$.next(k.contentJudgement);Se(q)})};
kY.prototype.updateCommentReaction=function(a){var b=this,c;return Ne(function(d){return 1==d.nextAddress?a.hasReacted?d.yield(emc(b,"reaction"),3):d.jumpTo(2):2==d.nextAddress||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};kY.\u0275fac=function(a){return new (a||kY)(n(nO),n(VF),n(EI),n(yX),n(iY),n(GH),n(Uz),n(xE),n(zH),n(zL),n(zJ),n(WI),n(XF),n(JH),n(cH),n(OG),n(gT),n(XN),n(Us),n(DF),n(MV),n(hY),n(gO))};
kY.\u0275prov=$c({token:kY,factory:kY.\u0275fac,providedIn:"root"});var lY=function(a,b,c){this.editIssueService=a;this.issuePicker=b;this.analytics=c},fmc=function(a,b){var c,d,e,f,h,k,q;return Ne(function(u){if(1==u.nextAddress)return b=String(b),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResource:{id:b,type:"issue"},componentId:c.componentId,allowMultipleIds:!1,edgeType:"canonical"},f=(new Date).getTime(),u.yield(a.issuePicker.open(e),2);h=u.yieldResult;if(null==(k=h)||!k.length)return c.status=
d,u.return();q=(new Date).getTime()-f;a.analytics.trackEvent(xp.ISSUE_PICKER,"duplicate duration","<"+Math.min(2*Math.ceil(q/2E3),600)+"s",q);a.analytics.trackEvent(xp.EDIT_ISSUE,"setCanonicalIssue");return u.return(j5b(a.editIssueService,b,h[0]))})};lY.\u0275fac=function(a){return new (a||lY)(n(nO),n(MV),n(zH))};lY.\u0275prov=$c({token:lY,factory:lY.\u0275fac,providedIn:"root"});var mY=function(a,b,c){var d=this;this.componentFridge=a;this.issueEditComponentService=b;this.currentTracker=c;this.componentId$=new B.ReplaySubject(1);this.viewOnly=!1;this.compactMode$=new B.BehaviorSubject(!1);this.editing=!1;this.component$=this.componentId$.pipe(zf(function(e){return d.componentFridge.watch(e).pipe(yf(void 0))}));this.isArchived$=this.component$.pipe(A(function(e){return null==e?void 0:e.archived}));this.componentPath$=(0,B.combineLatest)([this.componentId$,this.component$,
this.compactMode$]).pipe(A(function(e){var f=l(e);e=f.next().value;var h=f.next().value;f=f.next().value;if(null==h)return xo({componentPathId:[Number(e)]});e=is(d.currentTracker,h.componentPathInfo);e=xo(e);if(f){f=[];h=0;for(var k=e.length-1;0<=k;k--){var q=e[k],u=k===e.length-1?48:32;if(h>=u)break;var x=String(q.name),y=void 0;if(h+[].concat(p(x)).length>u){var E=u-h;u="";x=void 0===x?"":x;E=void 0===E?48:E;u=void 0===u?"...":u;y=[].concat(p(x));y.length<=E||(x=E-[].concat(p(u)).length,x=y.slice(-x).join(""),
null!=String.prototype.trimStart&&(x=x.trimStart()),x=u+x);y=!0}h+=[].concat(p(x)).length;f.unshift(Object.assign({},q,{name:x,isTruncated:y}));if(y)break}e.length>f.length&&(f[0].isSpliced=!0);e=f}return e}));this.isEmpty$=this.component$.pipe(A(function(e){return!e}));this.isThinkingAndEmpty$=(0,B.combineLatest)([this.componentFridge.thinking$,this.isEmpty$]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e&&f}));this.isReady$=this.isThinkingAndEmpty$.pipe(A(function(e){return!e}))};
mY.prototype.ngOnInit=function(){};Qh.Object.defineProperties(mY.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){null!=a&&this.componentId$.next(a)}},compactMode:{configurable:!0,enumerable:!0,set:function(a){this.compactMode$.next(a)}}});mY.\u0275fac=function(a){return new (a||mY)(z(OG),z(jX),z(jG))};
mY.\u0275cmp=od({type:mY,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",issueId:"issueId",viewOnly:"viewOnly",popoutLink:"popoutLink",compactMode:"compactMode"},decls:3,vars:2,consts:[[3,"isReady",4,"ngIf","ngIfElse"],["componentPicker",""],[3,"isReady"],[1,"b-chip","squared","s"],["title","Component folder path",1,"icon-xs",3,"svgIcon"],["class","component-path",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","class","edit-btn","aria-label","Change Component","matTooltip",
"Change Component",3,"click",4,"ngIf"],["mat-icon-button","","class","gmat-button small pop-out-btn","aria-label","View Component (Link opens in a new window)","matTooltip","View Component","target","_blank",3,"routerLinkObj",4,"ngIf"],[1,"component-path"],[4,"ngFor","ngForOf"],["href","javascript:void(0);","title","Show all Components","class","subtle-link","role","button",3,"click",4,"ngIf"],["class","subtle-link",3,"routerLinkObj","onedevHovercardTrigger","muted",4,"ngIf","ngIfElse"],["viewOnlyComponent",
""],["card",""],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components","role","button",1,"subtle-link",3,"click"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],[1,"view-only-component"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],["mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn",3,"click"],["svgIcon","edit-outline",1,"icon-xxs"],["mat-icon-button","","aria-label","View Component (Link opens in a new window)",
"matTooltip","View Component","target","_blank",1,"gmat-button","small","pop-out-btn",3,"routerLinkObj"],["svgIcon","pop-out",1,"icon-xs"],["placeholder","Choose Component",3,"selectedComponent","isRequired","shouldFocus","selectedComponentChange","dropdownClosed"]],template:function(a,b){a&1&&(P(0,tWa,10,12,"b-async-data-placeholder",0),P(1,vWa,2,5,"ng-template",null,1,Eg));if(a&2){var c=N(2);C("ngIf",!b.editing)("ngIfElse",c)}},dependencies:[aU,Dv,Ev,qA,Ez,Fz,TR,PJ,QJ,UJ,RJ,FB,hX,tP,Kv],styles:["[_nghost-%COMP%]     b-async-data-placeholder{display:inline-block;height:22px}a[_ngcontent-%COMP%], .view-only-component[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%], .edit-btn[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]{vertical-align:middle}mat-icon[_ngcontent-%COMP%]:first-of-type{margin-right:3px}.b-chip[_ngcontent-%COMP%]{margin-right:0}.edit-btn[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]{height:22px;width:22px;line-height:22px;margin-right:-4px;margin-left:4px;border-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid;border-left-color:#fff;border-left-color:var(--background)}.edit-btn[_ngcontent-%COMP%]:hover, .pop-out-btn[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.edit-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-top:-3px}.issue-editor-false   [_nghost-%COMP%]     .edit-btn{display:none}"],
changeDetection:0});var gmc=["multiUserInput"],nY=function(a,b,c,d,e,f){Y.call(this);var h=this;this.element=a;this.principalTypes=b;this.activeSession=c;this.documentationLinks=d;this.appEvents=e;this.usersChange=new Yu(!0);this.includeViewAliases=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.ariaLabel="";this.isValid=new Yu;this.typedText="";this.items=[];this.chipifyFn=function(){hmc(h)};this.additionalContactsFn=function(){return imc(h)};this.isFocused=
!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){h.typedText=""}));this.subscriptions.add(rE(f,{title:"Manage Component Page",hotkeys:[{keys:[],displayAs:"Right Arrow (>)",description:"Move the Cursor to Input Field",onPress:function(){}}]}))};W(nY,Y);nY.\u0275dir=Y.\u0275dir;
nY.prototype.ngOnInit=function(){var a=this;this.validators=Object.assign({},{validateGaia:function(b,c){return jmc(c)},validateInternalAccessLevel:function(b,c){return kmc(a,c)},validateExternalAccessLevel:function(b,c){return lmc(a,c)}},this.customValidators)};nY.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=mmc(this,this.users),oY(this)};
var oY=function(a){var b=[].concat(p(a.items)),c=nmc(b),d=omc(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&ki(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
nY.prototype.validate=function(a,b,c){for(var d=new Set,e=l(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;h(a,c)||d.add(f)}a=l(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=l(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return 0===this.violations.size};
var yWa=function(a){!a.isWidgetDisabled()&&pmc(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},wWa=function(a){cq(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};nY.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var pmc=function(a){var b,c;return 0>a.maxUserAllowed||(null!=(c=null==(b=a.users)?void 0:b.length)?c:0)<a.maxUserAllowed};
nY.prototype.removeItem=function(a){this.isWidgetDisabled()||!cq(this,a)||this.items[a].isReadonly||(wWa(this),this.items.splice(a,1),oY(this))};nY.prototype.setAccessLevel=function(a){this.accessLevel=a};
var imc=function(a){return qmc(a).map(function(b){return{text:Upa(b),id:Ao({alias:b})}})},qmc=function(a){if(!a.includeAliases||ZC(a.activeSession))return[];var b=["googlers_unrestricted"];if(void 0===a.accessLevel||"EXTERNAL_PUBLIC"===a.accessLevel)b.push("public_non_google"),a.includeViewAliases&&b.push("public");return b},hmc=function(a){setTimeout(function(){a.typedText&&ka(a.typedText,",")&&zWa(a,a.typedText.split(",")[0].trim())})},zWa=function(a,b){b&&(b=e7b.test(b)?rmc(a,b):smc(a,b),a.items.push(b));
a.typedText="";oY(a)},cq=function(a,b){return 0<=b&&b<a.items.length},rmc=function(a,b){var c=void 0===c?!1:c;var d=Co(b);if(void 0===d.alias)throw Error("rd`"+b);b=d.alias;d=Upa(b);return new pY("ALIAS",b,d,null,c,a)},tmc=function(a,b){b=qo(b);var c=new pY("GROUP",b,b,null,!1,a);wD(a.principalTypes,b,!0).then(function(d){c.detailedUserType=d.detailedUserType;oY(a)});return c},umc=function(a,b){var c=void 0===c?!1:c;b=qo(b);var d=new pY("USER",b,b,null,c,a);wD(a.principalTypes,b,!0).then(function(e){d.detailedUserType=
e.detailedUserType;oY(a)});return d},smc=function(a,b){var c=void 0===c?!1:c;b=qo(b);var d=new pY("PRINCIPAL_TYPE_UNSPECIFIED",b,b,null,c,a);wD(a.principalTypes,b,!0).then(function(e){d.principalType=e.principalType;d.detailedUserType=e.detailedUserType;oY(a)});return d},vmc=function(a,b,c){return new pY("PRINCIPAL_TYPE_UNSPECIFIED","",b,c,!0,a)};nY.prototype.getAccessLevel=function(){return this.accessLevel};nY.prototype.getAppName=function(){return this.activeSession.getAppName()};
nY.prototype.onKeyDown=function(a){8===a.keyCode?cq(this,this.selectedChipIndex)?(cq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex),a.stopPropagation(),a.preventDefault()):""===this.typedText&&0<this.items.length&&this.removeItem(this.items.length-1):46===a.keyCode?cq(this,this.selectedChipIndex)&&cq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):39===a.keyCode&&yWa(this)};
var mmc=function(a,b){b=(b||[]).map(function(d){return wmc(a,d)});if(a.containerChips){var c=a.containerChips.filter(function(d){return void 0!==d.values&&Array.isArray(d.values)&&0<d.values.length}).map(function(d){return vmc(a,d.displayText,d.values.map(function(e){return wmc(a,e)}))});return[].concat(p(c),p(b))}return b},wmc=function(a,b){var c=b.split(":");if(2!==c.length)throw Error("oe`"+b);var d=c[0];if("USER"!==d&&"GROUP"!==d&&"ALIAS"!==d)throw Error("oe`"+b);return"ALIAS"===d?rmc(a,b):"USER"===
d?umc(a,c[1]):tmc(a,c[1])},nmc=function(a){return(a||[]).filter(function(b){return"PRINCIPAL_TYPE_UNSPECIFIED"!==b.principalType}).map(function(b){return b.principalType+":"+b.value})},omc=function(a){return(a||[]).filter(function(b){return"NO_DETAILED_TYPE"!==b.detailedUserType}).map(function(b){return b.detailedUserType+":"+b.value})},jmc=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},kmc=function(a,b){return"INTERNAL"!==a.accessLevel?!0:!b.some(function(c){return c.isInternalAccessViolated()})},
lmc=function(a,b){return"EXTERNAL_PARTNER"!==a.accessLevel?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};nY.\u0275fac=function(a){return new (a||nY)(z(ae),z(vD),z(Us),z(yL),z(DF),z(qE))};
nY.\u0275cmp=od({type:nY,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&zg(gmc,5);if(a&2){var c;yg(c=Bg())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&L("keydown",function(c){return b.onKeyDown(c)})},inputs:{users:"users",containerChips:"containerChips",accessLevel:"accessLevel",includeAliases:"includeAliases",idForInputBox:"idForInputBox",includeViewAliases:"includeViewAliases",maxUserAllowed:"maxUserAllowed",customValidators:"customValidators",detailedUserValidators:"detailedUserValidators",
ariaLabel:"ariaLabel"},outputs:{usersChange:"usersChange",isValid:"isValid"},features:[Jf,Fd],decls:13,vars:12,consts:[["tabindex","0","role","listbox","aria-describedby","input-description",1,"bv2-multi-user-input","keep-focus-ring",3,"click"],["id","input-description","hidden","",1,"screen-reader-only"],["class","bv2-user-chip","role","listitem",4,"ngFor","ngForOf"],["class","bv2-multi-user-embedded-input","b-adaptive-width-input","","tabindex","0",3,"bContactAutocomplete","additionalContactsCallback",
"ngModel","disabled","autocompleteActive","ngModelChange","focus","blur",4,"ngIf"],["role","alert",1,"bv2-multi-user-errors"],[4,"ngIf"],["role","listitem",1,"bv2-user-chip"],[3,"isReadonly","isSelected","isWidgetDisabled","principalType","detailedUserType","nestedChips","value","displayText","accessLevel","chipSelection","chipClear","chipRemove"],["b-adaptive-width-input","","tabindex","0",1,"bv2-multi-user-embedded-input",3,"bContactAutocomplete","additionalContactsCallback","ngModel","disabled",
"autocompleteActive","ngModelChange","focus","blur"],["multiUserInput",""],["target","_blank"]],template:function(a,b){a&1&&(D(0,"div",0),L("click",function(){return yWa(b)}),D(1,"div",1),Q(2," Press tab to navigate through users and right arrow to go to input section "),F(),D(3,"div"),P(4,xWa,2,9,"div",2),P(5,AWa,2,4,"input",3),F()(),D(6,"div",4),P(7,BWa,4,1,"span",5),P(8,CWa,2,0,"span",5),P(9,DWa,2,0,"span",5),P(10,EWa,2,0,"span",5),P(11,FWa,2,0,"span",5),P(12,GWa,2,0,"span",5),F());a&2&&(Xf("focused",
b.isFocused),Nf("aria-label",b.idForInputBox),w(4),C("ngForOf",b.items),w(1),C("ngIf",pmc(b)),w(1),Nf("aria-hidden",0===b.violations.size),w(1),C("ngIf",b.violations.has("noRestrictedPlusGroups")),w(1),C("ngIf",b.violations.has("validateGaia")),w(1),C("ngIf",b.violations.has("validateInternalAccessLevel")),w(1),C("ngIf",b.violations.has("validateExternalAccessLevel")),w(1),C("ngIf",b.violations.has("sloLeadNotUser")),w(1),C("ngIf",b.violations.has("sloLeadNotGoogler")))},styles:[".bv2-multi-user-embedded-input[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);color:#202124;color:var(--text-high-contrast)}.bv2-multi-user-input[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:1px;cursor:text;min-height:27px;padding:6px;width:600px}.bv2-multi-user-input[_ngcontent-%COMP%]:hover{box-shadow:inset 0px 1px 2px rgba(0,0,0,.1)}.bv2-multi-user-input.focused[_ngcontent-%COMP%]{box-shadow:inset 0px 1px 2px rgba(0,0,0,.3);border-color:#1a73e8;border-color:var(--primary)}.bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[_ngcontent-%COMP%]{border:0;display:inline-block;height:24px;min-width:100px;max-width:500px;width:auto;outline:none;padding-left:5px}.bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:.8125rem;padding:3px;padding-top:2px;vertical-align:top}.ng-invalid[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast)}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);cursor:initial}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);display:none}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}.disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover, [disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover{border-color:#dadce0;border-color:var(--divider);box-shadow:none}.bv2-multi-user-errors[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad);font-size:.8125rem;line-height:18px;margin:0 0 1em;padding:9px 0}/*# sourceMappingURL=multi_user_input.css.map */"]});
var pY=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType="NO_DETAILED_TYPE";this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};g=pY.prototype;
g.getTooltip=function(){if("ALIAS"!==this.principalType)return"";switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.parentController.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All logged in users, excluding the google.com domain.";case "public":return"All logged in users.";default:throw Error("pe`"+this.value);}};
g.isGroupChip=function(){return"GROUP"===this.principalType};g.isPublicChip=function(){return"ALIAS"===this.principalType&&["public_non_google","public"].includes(this.value)};g.isDomainChip=function(){return"ALIAS"===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};g.isExternalChip=function(){return"EXTERNAL"===this.detailedUserType||"PUBLIC"===this.detailedUserType||this.isPublicChip()};g.isNonGaiaChip=function(){return"NON_GAIA"===this.principalType};
g.isContainerChip=function(){return null!==this.nestedChips};g.isInternalAccessViolated=function(){return"INTERNAL"===this.parentController.getAccessLevel()&&(this.isExternalChip()||this.isPublicChip())};g.isExternalPartnerAccessViolated=function(){return"EXTERNAL_PARTNER"===this.parentController.getAccessLevel()&&this.isPublicChip()};g.isUserChip=function(){return"USER"===this.principalType};var qY=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H){Y.call(this);var J=this;this.errorHandler=a;this.issueApi=b;this.issueFridge=c;this.componentFridge=d;this.trackerFridge=e;this.eventsForIssueFridge=f;this.issuePermissionService=h;this.snackBar=k;this.dialogRef=q;this.data=u;this.analytics=x;this.confirmationDialogService=E;this.jspbPrincipalTypes=H;this.defaultAccessLimitLevel="LIMIT_NONE";this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";
this.writers=[];this.appenders=[];this.readers=[];this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.issueId=this.data.issueId;this.issue$=this.issueFridge.watch(this.issueId);this.currentAccessLimitLevel$=this.issue$.pipe(A(function(O){var R;return null!=(R=null==O?void 0:O.snapshot[0].issueAccessLimitLevel)?R:J.defaultAccessLimitLevel}));this.updatedAccessLimitLevel$=new B.BehaviorSubject(this.defaultAccessLimitLevel);
this.hasAccessLimitLevelSelectionChanged$=(0,B.combineLatest)([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(A(function(O){var R=l(O);O=R.next().value;R=R.next().value;return O!==R}));this.componentId=this.data.componentId;this.component$=this.componentFridge.watch(this.componentId);this.trackerId$=this.component$.pipe(A(function(O){return null==O?void 0:O.trackerId}));this.tracker$=this.trackerId$.pipe(zf(function(O){return xn(O)?(0,B.of)(void 0):J.trackerFridge.watch(O)}));
this.collaboratorGroupsEmailToDetailsMap=new Map;this.addedCollaboratorGroups=new Set;this.removedCollaboratorGroups=new Set;this.expandedAccessTooltip$=this.isImplicitAccessEnabled$.pipe(A(function(O){return O?"This component has expanded access enabled. Assignees, verifiers, and collaborators can edit issues, and CC'd users can add comments.":"This component has expanded access disabled. Being listed on the issue does not confer any additional access privileges."}));this.currentUserEmail=y.getUserEmail();
this.enableQuickAddCollaborators=$C(y,"enableQuickAddCollaborators")};W(qY,Y);qY.\u0275dir=Y.\u0275dir;
qY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.currentAccessLimitLevel$.subscribe(function(b){a.updatedAccessLimitLevel$.next(b);HWa(a,b)}));this.subscriptions.add((0,B.combineLatest)([this.tracker$,this.issue$]).subscribe(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.updateCollaboratorGroups(b,c)}));this.subscriptions.add(this.hasAccessLimitLevelSelectionChanged$.subscribe(function(b){a.dialogRef.disableClose=b}));this.analytics.trackEvent(xp.ISSUE_ACCESS_LIMITS,
"view","issue_access_limits_dialog:"+this.issueId)};
qY.prototype.updateCollaboratorGroups=function(a,b){var c=this,d,e,f,h;Ne(function(k){if(1==k.nextAddress){c.collaboratorGroupsEmailToDetailsMap.clear();c.addedCollaboratorGroups.clear();c.removedCollaboratorGroups.clear();if(a&&a.collaboratorGroups)for(d=l(a.collaboratorGroups),e=d.next();!e.done;e=d.next())f=e.value,f.emailAddress&&c.collaboratorGroupsEmailToDetailsMap.set(f.emailAddress,{user:f,specifiedOnIssue:!1});return b&&b.snapshot&&b.snapshot[0].collaboratorsUsers?k.yield(xmc(c,b.snapshot[0].collaboratorsUsers),
3):k.jumpTo(0)}h=k.yieldResult;h.forEach(function(q){c.collaboratorGroupsEmailToDetailsMap.set(q.emailAddress,{user:q,specifiedOnIssue:!0})});Se(k)})};
var xmc=function(a,b){var c,d;return Ne(function(e){if(1==e.nextAddress)return c=b.map(function(f){return f.emailAddress}).filter(cl),e.yield(xUb(a.jspbPrincipalTypes,c,!1),2);d=e.yieldResult;return e.return(b.filter(function(f){if(!f.emailAddress)return!1;var h;return"GROUP"===(null==(h=d[f.emailAddress])?void 0:h.principalType)}))})},ymc=function(a){return a?"Expanded access on":"Expanded access off"},KWa=function(a,b){return 0<a.addedCollaboratorGroups.size||0<a.removedCollaboratorGroups.size||
!0===b},HWa=function(a,b){0<a.addedCollaboratorGroups.size&&a.analytics.trackEvent(xp.QUICK_ADD_COLLABORATORS,"update","idp_added_dryrun:"+a.issueId);0<a.removedCollaboratorGroups.size&&a.analytics.trackEvent(xp.QUICK_ADD_COLLABORATORS,"update","idp_removed_dryrun:"+a.issueId);a.issueApi.getRetainedAccessPrincipals(a.issueId,b,Array.from(a.addedCollaboratorGroups),Array.from(a.removedCollaboratorGroups)).then(function(c){a.writers=Eo(c.writers);a.appenders=Eo(c.appenders);a.readers=Eo(c.readers)},
function(c){ZF(a.errorHandler,c)})};g=qY.prototype;g.manageComponentAccessRouterLink=function(a){return{path:"/components/"+a+"/manage",fragment:"access"}};g.closeDialog=function(){this.dialogRef.close()};g.onEnter=function(){this.onPressSave()};g.onEscape=function(){this.dialogRef.close()};
g.onPressSave=function(){var a=this,b=Ao({user:{emailAddress:this.currentUserEmail}});if(this.writers.includes(b)||this.appenders.includes(b)||this.readers.includes(b))this.save();else{b="You will lose access";var c="You will no longer be able to access this issue. Are you sure you want to proceed?";0===this.writers.length&&0===this.appenders.length&&0===this.readers.length&&(b="Issue will be orphaned",c="No one will be able to access this issue. We strongly recommend maintaining at least one user with access. Are you sure you still want to proceed?");
this.confirmationDialogService.open({title:b,content:hh(c),onConfirm:function(){a.save()}})}};
g.save=function(){var a=this;this.dialogRef.close();this.issueApi.updateAccessLimit(this.issueId,$k(this.updatedAccessLimitLevel$.value),Array.from(this.addedCollaboratorGroups),Array.from(this.removedCollaboratorGroups)).then(function(){a.didSave();a.analytics.trackEvent(xp.ISSUE_ACCESS_LIMITS,"update","issue_access_limits_dialog:"+a.updatedAccessLimitLevel$.value);0<a.addedCollaboratorGroups.size&&a.analytics.trackEvent(xp.QUICK_ADD_COLLABORATORS,"update","idp_added:"+a.issueId);0<a.removedCollaboratorGroups.size&&
a.analytics.trackEvent(xp.QUICK_ADD_COLLABORATORS,"update","idp_removed:"+a.issueId)},function(b){ZF(a.errorHandler,b)})};g.didSave=function(){this.snackBar.open("Successfully saved access configuration",void 0,{duration:2500});this.issueFridge.poke(this.issueId);this.eventsForIssueFridge.poke(this.issueId)};g.onPressCancel=function(){this.dialogRef.close()};qY.\u0275fac=function(a){return new (a||qY)(z(XF),z(AF),z(GH),z(OG),z(iG),z(cH),z(EI),z(SF),z(Rz),z(Tz),z(zH),z(Us),z(zJ),z(xD))};
qY.\u0275cmp=od({type:qY,selectors:[["b-issue-access-limits-dialog"]],hostBindings:function(a,b){a&1&&L("keydown.escape",function(){return b.onEscape()})},features:[Jf],decls:38,vars:43,consts:[[1,"bv2-issue-limits-title"],[1,"lock-circle"],["svgIcon","lock","color","text-primary"],[1,"issue-limits-dialog-title-txt"],[3,"issueId","componentId","compactMode","popoutLink","viewOnly"],[1,"expanded-access"],[1,"expanded-access-txt"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","aria-label",
"Help","role","button",1,"icon-s","valign-middle",3,"matTooltip"],[3,"disabled","defaultAccessLimitLevel","implicitAccessEnabled","updatedAccessLimitLevel"],[4,"ngIf"],[1,"user-display-area"],[1,"limit-users-title"],["idForInputBox","Users who can edit, comment, and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can comment and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can only view",3,"users","includeAliases","includeViewAliases"],
["mat-dialog-actions",""],[4,"ngIf","ngIfElse"],["closeButton",""],[1,"trusted-groups-title"],[1,"trusted-groups-checkboxes"],[4,"ngFor","ngForOf"],[1,"trusted-group-checkbox",3,"id","name","checked","click","change"],["mat-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","confirm",3,"disabled","click"],["mat-button","",1,"gmat-button","medium","close",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"span",1),G(2,"mat-icon",
2),F(),D(3,"h2",3),Q(4,"Issue access level"),F()(),D(5,"div"),G(6,"b-component-breadcrumb-chip",4),D(7,"span",5),T(8,"async"),D(9,"span",6),Q(10),T(11,"async"),F(),G(12,"mat-icon",7),T(13,"async"),F()(),D(14,"b-issue-access-limits-dropdown",8),L("updatedAccessLimitLevel",function(k){b.updatedAccessLimitLevel$.next(k);HWa(b,k)}),T(15,"async"),T(16,"async"),T(17,"async"),F(),P(18,JWa,8,4,"ng-container",9),T(19,"async"),D(20,"div",10)(21,"div")(22,"div",11),Q(23,"Users who can edit, comment, and view"),
F(),G(24,"b-multi-user-input",12),F(),D(25,"div")(26,"div",11),Q(27,"Users who can comment and view"),F(),G(28,"b-multi-user-input",13),F(),D(29,"div")(30,"div",11),Q(31,"Users who can only view"),F(),G(32,"b-multi-user-input",14),F()(),D(33,"div",15),P(34,LWa,6,3,"ng-container",16),T(35,"async"),P(36,MWa,2,0,"ng-template",null,17,Eg),F());if(a&2){var c=N(37),d,e,f,h;w(6);C("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",!0)("popoutLink",b.manageComponentAccessRouterLink)("viewOnly",
!0);w(1);Xf("expanded-access-on",V(8,27,b.isImplicitAccessEnabled$));w(3);jg(ymc(null!==(d=V(11,29,b.isImplicitAccessEnabled$))&&void 0!==d?d:!1));w(2);C("matTooltip",null!==(e=V(13,31,b.expandedAccessTooltip$))&&void 0!==e?e:"");w(2);C("disabled",!V(15,33,b.hasAclToAdmin$))("defaultAccessLimitLevel",null!==(f=V(16,35,b.currentAccessLimitLevel$))&&void 0!==f?f:b.defaultAccessLimitLevel)("implicitAccessEnabled",null!==(h=V(17,37,b.isImplicitAccessEnabled$))&&void 0!==h?h:!1);w(4);C("ngIf",b.enableQuickAddCollaborators&&
0<b.collaboratorGroupsEmailToDetailsMap.size&&V(19,39,b.hasAclToAdmin$));w(6);C("users",b.writers)("includeAliases",!1)("includeViewAliases",!1);Nf("disabled",!0);w(4);C("users",b.appenders)("includeAliases",!1)("includeViewAliases",!1);Nf("disabled",!0);w(4);C("users",b.readers)("includeAliases",!1)("includeViewAliases",!1);Nf("disabled",!0);w(2);C("ngIf",V(35,41,b.hasAclToAdmin$))("ngIfElse",c)}},dependencies:[iW,Dv,Ev,qA,mY,Ez,Yz,FB,nY,PK,Kv,Pv],styles:[".issue-limits-dialog-title-txt[_ngcontent-%COMP%]{padding:0 20px;font-size:1.4rem;line-height:2rem}.user-display-area[_ngcontent-%COMP%]{min-height:400px}.limit-users-title[_ngcontent-%COMP%]{font-weight:400;color:#202124;color:var(--text-default);padding-bottom:5px;font-size:1rem}.bv2-issue-limits-title[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;font-weight:400;padding:20px 0 28px}.limit-option[_ngcontent-%COMP%]{padding:10px 0}.limit-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.limit-title[_ngcontent-%COMP%]{padding:0 20px;white-space:nowrap}.selected-limit-title[_ngcontent-%COMP%]{padding:0 5px 0 10px;color:#202124;color:var(--text-default);font-size:small}.limit-description[_ngcontent-%COMP%]{padding:0 40px}.limit-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}b-component-breadcrumb-chip[_ngcontent-%COMP%]{margin-right:16px}.expanded-access[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-color:#c5221f;border-color:var(--text-bad);border-radius:3px;padding:5px;background-color:var(--bad-bg);vertical-align:middle}.expanded-access[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-bottom:1px}.expanded-access-on[_ngcontent-%COMP%]{border-color:#188038;border-color:var(--text-good);background-color:var(--good-bg)}.lock-circle[_ngcontent-%COMP%]{border:solid;border-color:#1a73e8;border-color:var(--primary);border-radius:50%;background-color:var(--primary);color:#fff;color:var(--background);padding:12px;display:inline-block}.edit-btn[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%], a[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}b-issue-access-limits-dropdown[_ngcontent-%COMP%]{display:block;padding:20px 0}.mat-checkbox[_ngcontent-%COMP%]{padding-right:5px}.trusted-groups-title[_ngcontent-%COMP%]{padding:0 5px 5px 0;font-size:1rem}.trusted-groups-checkboxes[_ngcontent-%COMP%]{padding:5px 10px 20px 0}div.disabled[_ngcontent-%COMP%]{color:var(--text-disabled)}.trusted-groups-email[_ngcontent-%COMP%]{padding-right:20px}.expanded-access-txt[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%]{padding:5px}\n/*# sourceMappingURL=issue_access_limits_dialog.css.map */"]});
var rY=function(a){this.dialog=a;this.dialogRef=null};rY.prototype.open=function(a){this.dialogRef=this.dialog.open(qY,{panelClass:"no-jitter",data:a,ariaLabel:"Issue access level"})};rY.prototype.isOpen=function(){return this.dialogRef?0===this.dialogRef.getState():!1};rY.\u0275fac=function(a){return new (a||rY)(n(Uz))};rY.\u0275prov=$c({token:rY,factory:rY.\u0275fac,providedIn:"root"});var sY=function(){this.isReady=!1};sY.\u0275fac=function(a){return new (a||sY)};sY.\u0275cmp=od({type:sY,selectors:[["onedev-async-data-placeholder"]],inputs:{isReady:"isReady"},ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","loading-indicator",4,"ngIf"],[4,"ngIf"],[1,"loading-indicator"]],template:function(a,b){a&1&&(eg(),P(0,NWa,1,0,"div",0),P(1,OWa,2,0,"ng-container",1));a&2&&(C("ngIf",!b.isReady),w(1),C("ngIf",b.isReady))},dependencies:[Ev],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.loading-indicator[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_opacity-gradient .5s linear 0s infinite alternate;animation:_ngcontent-%COMP%_opacity-gradient .5s linear 0s infinite alternate;background-image:-webkit-gradient(linear,left top,right top,from(#f1f3f4),to(#dadce0));background-image:-webkit-linear-gradient(left,#f1f3f4,#dadce0);background-image:linear-gradient(90deg,#f1f3f4,#dadce0);border-radius:3px;height:10px;width:80px;display:inline-block}@-webkit-keyframes _ngcontent-%COMP%_opacity-gradient{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_opacity-gradient{0%{opacity:0}to{opacity:1}}"]});var tY=function(){this.warning=""};tY.\u0275fac=function(a){return new (a||tY)};
tY.\u0275cmp=od({type:tY,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&Xf("is-present",b.warning)},inputs:{warning:"warning"},decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip"],["d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"]],template:function(a,b){a&1&&P(0,PWa,2,1,"svg",0);a&2&&
C("ngIf",b.warning)},dependencies:[Ev,FB],styles:[".is-present[_nghost-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:16px;line-height:16px;width:16px}svg[_ngcontent-%COMP%]{color:var(--icon-warn,#e37400);fill:currentColor;width:16px;height:16px}"]});var zmc=["*",[["","actions",""]]],Amc=[[["onedev-field-label"]],[["onedev-field-value"]]],Bmc=0,uY=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+Bmc;Bmc++};uY.\u0275fac=function(a){return new (a||uY)};
uY.\u0275cmp=od({type:uY,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&Nf("id",b.id)},inputs:{thinking:"thinking",labelTooltip:"labelTooltip",warning:"warning"},ngContentSelectors:["*"],decls:4,vars:3,consts:[[3,"isReady"],[1,"label",3,"matTooltip"],[3,"warning"]],template:function(a,b){a&1&&(eg(),D(0,"onedev-async-data-placeholder",0)(1,"span",1),fg(2),F(),G(3,"onedev-warning-icon",2),F());a&2&&(C("isReady",!b.thinking),w(1),C("matTooltip",b.labelTooltip),w(2),C("warning",
b.warning))},dependencies:[sY,FB,tY],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var vY=function(){this.thinking=!1};vY.\u0275fac=function(a){return new (a||vY)};
vY.\u0275cmp=od({type:vY,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(eg(zmc),D(0,"onedev-async-data-placeholder",0),fg(1),fg(2,1),F());a&2&&C("isReady",!b.thinking)},dependencies:[sY],encapsulation:2});var wY=function(){this.labelPosition="left"};wY.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
wY.\u0275fac=function(a){return new (a||wY)};
wY.\u0275cmp=od({type:wY,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(Ag(c,hM,5),Ag(c,uY,7));if(a&2){var d;yg(d=Bg())&&(b.field=d.first);yg(d=Bg())&&(b.label=d.first)}},inputs:{labelPosition:"labelPosition"},ngContentSelectors:["onedev-field-label","onedev-field-value"],decls:3,vars:4,consts:[[1,"wrapper"]],template:function(a,b){a&1&&(eg(Amc),D(0,"div",0),fg(1),fg(2,1),F());a&2&&Xf("active",null==b.field?null:b.field.isActive())("top-label","top"===b.labelPosition)},styles:[".wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:2px}.wrapper.top-label[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%]     onedev-field-label{margin-right:5px}[_nghost-%COMP%]     onedev-field-value{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;min-height:29px}[_nghost-%COMP%]     onedev-field-value>*{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;width:100%}[_nghost-%COMP%]     onedev-field-value onedev-async-data-placeholder{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start}[_nghost-%COMP%]     onedev-field-value [actions]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     onedev-field-value:not(.content-overflow){overflow:hidden;text-overflow:ellipsis}.active[_ngcontent-%COMP%]     onedev-field-label{color:var(--primary-default,#1a73e8)}"]});var Cmc=["popOverContent"],xY=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.fitToViewport=!1;this.minWidth=null;this.saveDisabled=!1;this.closedWithAction=new Yu;this.isOpen=!1;this.destroyed$=new B.ReplaySubject(1);this.backdropClickSubscription=B.Subscription.EMPTY};xY.prototype.ngOnInit=function(){};xY.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
xY.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){SWa(a)}))};xY.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var RWa=function(a){a.closedWithAction.emit(0);a.close()},SWa=function(a){a.closedWithAction.emit(1);a.close()};g=xY.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":SWa(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)RWa(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(RWa(this),a.stopPropagation(),a.preventDefault())}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:8+Math.max(null!=(c=this.minWidth)?c:0,this.anchor.offsetWidth)});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=new Tw(this.contentTemplateRef,this.viewContainerRef),b;null==(b=this.overlayRef)||b.attach(a);var c;null==(c=this.overlayRef)||c.updatePosition()};g.getPositionStrategy=function(){var a=GMb(My(Oy(this.overlay.position(),this.anchor),this.fitToViewport),this.fitToViewport);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return Ky(a,Dmc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
xY.\u0275fac=function(a){return new (a||xY)(z(Py),z(wg))};
xY.\u0275cmp=od({type:xY,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&zg(Cmc,7);if(a&2){var c;yg(c=Bg())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop",fitToViewport:"fitToViewport",minWidth:"minWidth",saveDisabled:"saveDisabled"},outputs:{closedWithAction:"closedWithAction"},exportAs:["onedevPopOverEditPanel"],decls:2,vars:0,consts:[["popOverContent",
""],["cdkTrapFocus","",1,"content","gmat-elevation-z2",3,"cdkTrapFocusAutoCapture","keydown"],[1,"edit-field"],[4,"ngTemplateOutlet"],[1,"actions"],["mat-button","","color","primary",1,"save",3,"disabled","click"],["mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&P(0,TWa,8,3,"ng-template",null,0,Eg)},dependencies:[Jv,Lw,Ez],styles:[".content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;background-color:var(--surface-default,#fff);border-radius:4px;overflow:auto;padding:4px}.actions[_ngcontent-%COMP%]{margin-top:4px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:24px;line-height:24px;min-width:auto;padding-left:8px;padding-right:8px;font-size:13px}"]});
var Dmc=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}];var Emc=["popOver"],VWa=function(a){return{$implicit:a}},yY=function(a){this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.valueChange=new Yu;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};W(yY,hM);g=yY.prototype;g.ngOnInit=function(){};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};
g.valueChanged=function(){return $Wa(this.editingValue)!==this.value};g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue=null!=this.value?String(this.value):"",this.popOver.open())};g.stopEditing=function(a){this.editing=!1;0===a&&(this.onChange(this.editingValue),this.value=a=$Wa(this.editingValue),this.valueChange.emit(a))};g.writeValue=function(a){var b=$Wa(a);if(null!=a||this.val!==b)this.val=b,this.editingValue=null!=a?a:""};
g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};Qh.Object.defineProperties(yY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(null!=a?String(a):null)}}});yY.\u0275fac=function(a){return new (a||yY)(Ud("required"))};
yY.\u0275cmp=od({type:yY,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&zg(Emc,7);if(a&2){var c;yg(c=Bg())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:"labelledById",openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate"},outputs:{valueChange:"valueChange"},features:[lg([{provide:Uv,useExisting:fd(function(){return yY}),multi:!0},{provide:hM,useExisting:fd(function(){return yY}),multi:!0}]),Jf],decls:11,
vars:6,consts:[[3,"disabled","click","focus","blur"],["anchor",""],[4,"ngIf","ngIfElse"],["standardValueDisplay",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"anchor","editorTemplate","closedWithAction"],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],
["type","number",3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(D(0,"button",0,1),L("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),D(2,"span"),P(3,WWa,2,4,"ng-container",2),P(4,XWa,1,1,"ng-template",null,3,Eg),F(),P(6,YWa,2,0,"svg",4),F(),D(7,"onedev-pop-over-edit-panel",5,6),L("closedWithAction",function(f){return b.stopEditing(f)}),F(),P(9,ZWa,1,1,"ng-template",null,7,Eg));if(a&2){var c=N(1),d=
N(5),e=N(10);C("disabled",b.disabled);w(3);C("ngIf",b.valueTemplate)("ngIfElse",d);w(3);C("ngIf",!b.disabled&&b.displayEditIcon);w(1);C("anchor",c)("editorTemplate",e)}},dependencies:[Ev,Jv,Tg,qw,hw,ow,xY],styles:["button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor}input[type=number][_ngcontent-%COMP%]{padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px}input[type=number][_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}"]});var fXa=function(){return[]},zY=function(){this.disabled=this.thinking=!1;this.effortChange=new Yu;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
zY.prototype.ngOnChanges=function(){if("DROPDOWN"===this.getFieldType()){var a;this.effortSpec&&null!=(a=this.effortSpec.enumSpec)&&a.options&&this.effort&&this.effort.estimate?(a=Fmc(this),a="incompatible"===a?{label:this.effort.estimate,value:0}:a):a=void 0;this.selectedOption=a}else if("NUMERIC"===this.getFieldType()){var b,c;this.selectedNumericEstimate=(null==(b=this.effort)?0:b.estimate)?Number(null==(c=this.effort)?void 0:c.estimate):void 0}this.fieldName=this.getFieldName();this.fieldType=
this.getFieldType();this.isCompatibleValue=Gmc(this)};zY.prototype.selectOption=function(a){this.selectedOption=a;if(null==a)this.effort=void 0;else{var b,c;this.effort={specId:null!=(c=null==(b=this.effortSpec)?void 0:b.id)?c:0,estimate:a.label}}this.isCompatibleValue=Gmc(this);this.effortChange.emit(this.effort)};zY.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.name||"":this.effort?"Estimate "+this.effort.specId:"Estimate"};
zY.prototype.getFieldType=function(){var a;if(null==(a=this.effortSpec)?0:a.numericSpec)return"NUMERIC";var b;return(null==(b=this.effortSpec)?0:b.enumSpec)?"DROPDOWN":"UNKNOWN"};
var Gmc=function(a){var b;if(!a.effort||null==(b=a.effort)||!b.estimate)return!0;var c,d;if((null==(c=a.effortSpec)?void 0:c.id)!==(null==(d=a.effort)?void 0:d.specId)||"DROPDOWN"===a.fieldType&&"incompatible"===Fmc(a))return!1;var e,f;return"NUMERIC"===a.getFieldType()&&isNaN(Number(null!=(f=null==(e=a.effort)?void 0:e.estimate)?f:""))?!1:!0},Fmc=function(a){var b;if(null==(b=a.effort)?0:b.estimate){var c,d,e,f;return null!=(f=null==(c=a.effortSpec)?void 0:null==(d=c.enumSpec)?void 0:null==(e=d.options)?
void 0:e.find(function(h){var k;return h.label===(null==(k=a.effort)?void 0:k.estimate)}))?f:"incompatible"}};zY.\u0275fac=function(a){return new (a||zY)};
zY.\u0275cmp=od({type:zY,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},features:[Fd],decls:3,vars:1,consts:[[4,"ngIf"],["rawNumericValueTemplate",""],["labelTooltip","Estimated effort",3,"thinking"],["svgIcon","error","aria-hidden","false","aria-label","This estimate was made under a different configuration and needs to be \n                          updated.","class","icon-xs effort-warning align-items-center",
3,"onedevHovercardTrigger",4,"ngIf"],["warningHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["href","http://go/buganizer/user-guide/concepts/wtdm-home.md?cl=head#stale-effort","target","_blank"],[3,"thinking"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["svgIcon","error","aria-hidden","false","aria-label","This estimate was made under a different configuration and needs to be \n                          updated.",1,"icon-xs",
"effort-warning","align-items-center",3,"onedevHovercardTrigger"],[1,"flex-kids-x",3,"value","valueTemplate","disabled","displayEditIcon","valueChange"],[3,"value","options","includeEmptyOption","optionTemplate","disabled","displayArrowIcon","valueChange"],["optionTemplate",""],[4,"ngIf","ngIfElse"],["emptyOption",""],["regularNumeric",""]],template:function(a,b){a&1&&(P(0,iXa,16,7,"onedev-edit-field",0),P(1,lXa,3,2,"ng-template",null,1,Eg));a&2&&C("ngIf",b.effortSpec)},dependencies:[Ev,Fv,Gv,Hv,
qA,uY,vY,wY,iM,yY,PJ,UJ],styles:["onedev-numeric-field[_ngcontent-%COMP%], onedev-single-select[_ngcontent-%COMP%]{flex:1;width:100%}.effort-warning[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx);overflow:visible}/*# sourceMappingURL=estimated_effort_row.css.map */"]});var s9a=function(a){this.internalArray_=m(a,1)};W(s9a,X);var lr=function(){this.filter_=null;this.boostIds_=[];this.primingTimeoutMillis_=1E3;this.searchFormat_=this.suggestFormat_=this.queryScope_=0;this.slots_=[];this.entryPoint_=0};g=lr.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.getEntryPoint=function(){return this.entryPoint_};g.setEntryPoint=function(a){this.entryPoint_=a;return this};
g.getSuggestFormat=function(){return this.suggestFormat_};g.getSearchFormat=function(){return this.searchFormat_};g.clone=function(){var a=new lr;a.filter_=this.filter_;a.boostIds_=this.boostIds_;a.primingTimeoutMillis_=this.primingTimeoutMillis_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;a.suggestFormat_=this.suggestFormat_;a.searchFormat_=this.searchFormat_;return a};var Wr=function(a){this.internalArray_=m(a)};W(Wr,X);Wr.prototype.getEntryPoint=function(){return Vi(this,5,0)};Wr.prototype.setEntryPoint=function(a){return rj(this,5,a)};var Yr=function(a){this.internalArray_=m(a)};W(Yr,X);Yr.prototype.getEntryPoint=function(){return Vi(this,1,0)};Yr.prototype.setEntryPoint=function(a){return rj(this,1,a)};var AY=function(a){this.internalArray_=m(a)};W(AY,X);AY.prototype.getQuery=function(){return Hi(this,1,"")};AY.prototype.setQuery=function(a){return qj(this,1,a)};AY.prototype.clearQuery=function(){st(this,1)};AY.prototype.hasQuery=function(){return Ii(this,1)};var Hmc=function(a,b){xj(a,3,b)};AY.prototype.getAffinityVersion=function(){return hi(this,7)};AY.prototype.setAffinityVersion=function(a){nj(this,7,a)};AY.prototype.getAffinityVersionOrUndefined=function(){return yt(this,7)};
var Imc=function(a){var b=L7b();rj(a,8,nb(b))};g=AY.prototype;g.getSources=function(){return Fi(this,Wr,10)};g.getInstanceId=function(){return Hi(this,11,"")};g.setInstanceId=function(a){return qj(this,11,a)};g.clearInstanceId=function(){st(this,11)};g.hasInstanceId=function(){return Ii(this,11)};g.getInstanceIdOrUndefined=function(){return At(this,11)};var Qr=function(a){this.internalArray_=m(a)};W(Qr,X);g=Qr.prototype;g.getPersonLoggingId=function(){return Hi(this,1)};g.setPersonLoggingId=function(a){qj(this,1,a)};g.getFieldLoggingId=function(){return Hi(this,2)};g.setFieldLoggingId=function(a){qj(this,2,a)};g.setFieldValue=function(a){return qj(this,3,a)};g.clearFieldValue=function(){return st(this,3)};g.getName=function(){return Hi(this,4)};g.setName=function(a){return qj(this,4,a)};g.hasName=function(){return Ii(this,4)};
g.getNameOrUndefined=function(){return At(this,4)};g.getContactId=function(){return Hi(this,5)};g.setContactId=function(a){qj(this,5,a)};g.getProfileId=function(){return Hi(this,6)};g.getProfileId_legacyNullable=function(){return Ej(this,6)};g.setProfileId=function(a){return qj(this,6,a)};g.hasProfileId=function(){return Ii(this,6)};g.getFieldType=function(){return Vi(this,7,0)};g.getIsPlaceholder=function(){return Ri(this,10,!1)};g.setIsPlaceholder=function(a){mj(this,10,a)};
g.getGroupId=function(){return Hi(this,11)};g.setGroupId=function(a){qj(this,11,a)};g.hasGroupId=function(){return Ii(this,11)};var Pr=function(a){this.internalArray_=m(a)};W(Pr,X);g=Pr.prototype;g.getProvenance=function(){return Vi(this,3,0)};g.setProvenance=function(a){return rj(this,3,a)};g.getContext=function(){return Vi(this,5,0)};g.getExistingSelectionsCount=function(){return hi(this,6,0)};g.setExistingSelectionsCount=function(a){nj(this,6,a)};var Or=function(a){this.internalArray_=m(a)};W(Or,X);var Yq=function(a){return Fi(a,Pr,2)};Or.prototype.getSessionState=function(){return Fi(this,AY,3)};Or.prototype.setSessionState=function(a){oj(this,AY,3,a)};Or.prototype.hasSessionState=function(){return Zi(this,AY,3)};var Nr=function(a){this.internalArray_=m(a)};W(Nr,X);g=Nr.prototype;g.getType=function(){return Vi(this,1,0)};g.setType=function(a){return rj(this,1,a)};g.hasType=function(){return Ti(this,1)};g.getValue=function(){return Hi(this,2,"")};g.setValue=function(a){return qj(this,2,a)};g.hasValue=function(){return Ii(this,2)};var Jmc=function(a){this.delegate_=a};g=Jmc.prototype;g.getDelegate=function(){return this.delegate_};g.getId=function(){return this.delegate_.getId()};g.getTargetType=function(){return this.delegate_.getTargetType()};g.getValue=function(){return this.delegate_.getValue()};g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getName=function(){return this.delegate_.getName()};g.getPhoto=function(){return this.delegate_.getPhoto()};
g.getTagList=function(){return this.delegate_.getTagList()};g.getSourceIdList=function(){return this.delegate_.getSourceIdList()};g.getProfileId=function(){return this.delegate_.getProfileId()};g.getContactId=function(){return this.delegate_.getContactId()};g.getLoggingToken=function(){return this.delegate_.getLoggingToken()};g.getIsMe=function(){return this.delegate_.getIsMe()};g.getIsPersonalResult=function(){return this.delegate_.getIsPersonalResult()};g.getOrgState=function(){return this.delegate_.getOrgState()};
g.getDataSource=function(){return this.delegate_.getDataSource()};g.getOriginatingField=function(){return this.delegate_.getOriginatingField()};g.getExtendedData=function(){return this.delegate_.getExtendedData()};var b9a=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=b9a.prototype;g.getDisplayName=function(){return this.displayName_};g.setDisplayName=function(a){this.displayName_=a||"";return this};g.getGivenName=function(){return this.givenName_};g.setGivenName=function(a){this.givenName_=a||"";return this};g.getFamilyName=function(){return this.familyName_};g.setFamilyName=function(a){this.familyName_=a||"";return this};g.getSourceType=function(){return this.sourceType_};
g.setSourceType=function(a){this.sourceType_=a||0;return this};var Kmc=function(a,b){this.delegate_=a;this.name_=b};W(Kmc,Jmc);Kmc.prototype.getName=function(){return this.name_};var BY=function(a){this.delegate_=a};g=BY.prototype;g.getDelegate=function(){return this.delegate_};g.getResultType=function(){return this.delegate_.getResultType()};g.getTargetList=function(){return this.delegate_.getTargetList()};g.getMemberList=function(){return this.delegate_.getMemberList()};g.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};g.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};g.getDisplayName=function(){return this.delegate_.getDisplayName()};
g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};g.getMatchInfo=function(){return this.delegate_.getMatchInfo()};g.getExtendedData=function(){return this.delegate_.getExtendedData()};var dq=function(a){this.delegate_=a};W(dq,BY);g=dq.prototype;g.getPrimaryTarget=function(){return this.getTargetList()[0]};g.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};g.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};g.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
g.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};var mXa=function(a,b){this.delegate_=a;this.targets_=b};W(mXa,BY);mXa.prototype.getTargetList=function(){return this.targets_};var CY=function(){};CY.prototype.filterResult=function(a){var b=this,c=a.getTargetList().filter(function(d){return!b.shouldRemove(d)});return 0===c.length?null:c.length===a.getTargetList().length?a:new dq(new mXa(a,c))};CY.prototype.reset=function(){};var oXa=function(a){this.types_=a};W(oXa,CY);oXa.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};oXa.prototype.reset=function(){};var qXa=function(a){this.sourceIds_=a.filter(function(b){return Y8a.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return n8b.includes(b.getType())}).map(String)};W(qXa,CY);qXa.prototype.shouldRemove=function(a){var b=this;return!this.targetIds_.includes(String(a.getId()))&&a.getSourceIdList().every(function(c){return!b.sourceIds_.includes(String(c))})};
var sXa=function(a){this.filters_=a};sXa.prototype.filterResult=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};sXa.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var Lmc=tXa();var Mmc=new Ad("PeoplekitClientConfig"),Nmc=function(a){this.matcher=a};Nmc.prototype.filterResult=function(a){for(var b=a.getTargetList(),c=b.length-1;0<=c;c--)1===b[c].getTargetType()&&this.matcher(b[c].getValue())&&b.splice(c,1);return b.length?a:null};Nmc.prototype.reset=function(){};var Omc=function(a){this.internalArray_=m(a)};W(Omc,X);g=Omc.prototype;g.setMaxResults=function(a){return nj(this,1,a)};g.getQuery=function(){return Hi(this,2,"")};g.setQuery=function(a){return qj(this,2,a)};g.clearQuery=function(){st(this,2)};g.hasQuery=function(){return Ii(this,2)};var Pmc=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]};var Qmc=function(a){this.internalArray_=m(a,1)};W(Qmc,X);var Rmc=function(a){this.internalArray_=m(a)};W(Rmc,X);g=Rmc.prototype;g.getExperimentIdsList=function(){return ji(this,1)};g.setExperimentIdsList=function(a){return ac(this,1,a,tb)};g.getExperimentIds=function(){return vt(this,1)};g.setExperimentIds=function(a){dc(this,1,a,tb(void 0),ji)};g.getProfileId=function(){return Hi(this,2)};g.getProfileId_legacyNullable=function(){return Ej(this,2)};g.setProfileId=function(a){return qj(this,2,a)};g.hasProfileId=function(){return Ii(this,2)};
Rmc.repeatedFields_=[1];var Smc=function(){},Tmc=function(){return!1},Umc=function(){this.experiments_=(new Rmc).setProfileId(vQ.userProfileId);this.peopleApiEnv_=vQ.apiEnv;this.userEmail_=vQ.userEmail;this.delegatorId_="";this.onAuthError_=Smc;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=Tmc;this.customDataConfig_=null;this.isOrgStateEnabled_=!1};g=Umc.prototype;g.getUserEmail=function(){return this.userEmail_};g.getDelegatorId=function(){return this.delegatorId_};g.getPeopleApiEnv=function(){return this.peopleApiEnv_};
g.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};g.getExperiments=function(){return this.experiments_};g.getAuthErrorHandler=function(){return this.onAuthError_};g.setClearcutUrl=function(a){this.clearcutUrl_=a};g.getClearcutUrl=function(){return this.clearcutUrl_};g.setAuthErrorHandler=function(a){this.onAuthError_=a||Smc};g.getApiKey=function(){return this.apiKey_};g.setApiKey=function(a){this.apiKey_=a;return this};var DY=function(a,b){null!=b||(b=jd(Df));var c=new Umc;a.peopleApiEnv&&c.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(c.customAuthHeaders_=a.customAuthHeaders);a.profileId&&c.getExperiments().setProfileId(a.profileId);if(a.dynamicDataProviders||a.staticDataProviders){var d=new Pmc;a.dynamicDataProviders&&(d.dynamicDataProviders_=a.dynamicDataProviders);a.staticDataProviders&&(d.staticDataProviders_=a.staticDataProviders);c.customDataConfig_=d}b=b.runOutsideAngular(function(){var e=a.peopleStoreClient.create(c);
e.warmUpCache();return{peopleStore:e,environmentConfig:new s8b(c.getPeopleApiEnv(),new t8b(""))}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};DY.\u0275fac=function(a){return new (a||DY)(n(Mmc),n(Df))};DY.\u0275prov=$c({token:DY,factory:DY.\u0275fac});var EY=function(a,b,c,d,e,f){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.selectionChange=new Yu;this.sessionOptions=(new lr).setFilter(Vmc);this.inputSearchDelay=200;this.destroyed$=new B.ReplaySubject(1);this.inputChanged$=new B.ReplaySubject(1)};EY.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
EY.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);uXa(b,this.config);this.zone.runOutsideAngular(function(){var c;if(null==(c=a.clientConfig.autocompleteFactory))c=void 0;else{var d=c.create;if(!a.peopleKitService.autocompleteAnchor){var e=a.renderer.createElement("div");a.peopleKitService.autocompleteAnchor=e;a.renderer.addClass(e,"peoplekit-autocomplete-anchor");var f;(null!=(f=cDa(a.inputEl.nativeElement))?
f:a.document.body).append(e)}c=d.call(c,a.peopleKitService.autocompleteAnchor,a.inputEl.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions)}a.autocomplete=c});Wmc(this.autocomplete,function(c){a.selectionChange.emit(c);a.autocomplete.report(4)});this.inputChanged$.pipe(jf(this.inputSearchDelay)).subscribe(function(){a.search()})};EY.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};
EY.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};EY.\u0275fac=function(a){return new (a||EY)(z(Mmc),z(Oh),z(DY),z(ae),z(Df),z(ku))};
EY.\u0275dir=sd({type:EY,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&L("input",function(){return b.inputChanged$.next()})("focus",function(){return b.search()})("blur",function(){return b.cancel()})},inputs:{config:["peoplekitAutocompleteConfig","config"],sessionOptions:["peoplekitSearchSessionOptions","sessionOptions"],inputSearchDelay:["peoplekitAutocompleteInputSearchDelay","inputSearchDelay"]},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},
exportAs:["peoplekitAutocomplete"]});var Vmc=pXa(1);var Xmc=["popOver"],Ymc=["inputBox"],FY=function(a){this.defaultAutocompleteConfig=a;this.mergedAutocompleteConfig=Object.assign({},Zmc,this.defaultAutocompleteConfig);this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new Yu;this.inputValue="";this.sessionOptions=$mc};FY.prototype.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
FY.prototype.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},Zmc,this.defaultAutocompleteConfig,this.autocompleteConfig))};FY.prototype.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;null==(c=b.inputBox)||c.nativeElement.select()})};FY.prototype.onPopOverClose=function(a){this.closed.emit(0===a?this.inputValue:void 0);this.inputValue=""};FY.\u0275fac=function(a){return new (a||FY)(z(anc,8))};
FY.\u0275cmp=od({type:FY,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(zg(Xmc,7),zg(Ymc,5));if(a&2){var c;yg(c=Bg())&&(b.popOver=c.first);yg(c=Bg())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit"},outputs:{closed:"closed"},features:[Fd],attrs:["anchor",""],decls:4,vars:3,consts:[[3,"anchor","displayUnder","editorTemplate",
"closedWithAction"],["popOver","onedevPopOverEditPanel"],["autocompleteTemplate",""],["peoplekitAutocomplete","",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel","peoplekitAutocompleteSelectionChange","ngModelChange"],["inputBox",""]],template:function(a,b){a&1&&(D(0,"onedev-pop-over-edit-panel",0,1),L("closedWithAction",function(d){return b.onPopOverClose(d)}),F(),P(2,vXa,2,3,"ng-template",null,2,Eg));if(a&2){var c=N(3);C("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",
c)}},dependencies:[Tg,hw,ow,xY,EY],styles:["input[_ngcontent-%COMP%]{padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px}input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}  .peoplekit-autocomplete-anchor{z-index:1001}"]});
var anc=new Ad("user-picker-autocomplete-config"),Zmc={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},$mc=(new lr).setFilter(tXa(pXa(1),new Nmc(function(a){return 0<=a.indexOf("-pager")||0<=a.indexOf("+pager")||0<=a.indexOf("lifeguard-ng")})));var xXa=function(a){return{$implicit:a}},bnc=0,GY=function(){this.val="";this.disabled=!1;this.emailChange=new Yu;this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+bnc;this.onChange=function(){};this.onTouched=function(){};bnc++};W(GY,hM);g=GY.prototype;g.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
g.onPopOverClose=function(a){null!=a&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.writeValue=function(a){null!=a&&(this.val=a)};g.isActive=function(){return this.active||this.popOverOpen};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};
Qh.Object.defineProperties(GY.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});GY.\u0275fac=function(a){return new (a||GY)};
GY.\u0275cmp=od({type:GY,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&zg(FY,7);if(a&2){var c;yg(c=Bg())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],features:[lg([{provide:hM,useExisting:fd(function(){return GY}),multi:!0},{provide:Uv,useExisting:fd(function(){return GY}),multi:!0}]),
Jf],decls:7,vars:9,consts:[[1,"unstyled-button",3,"focus","blur","click"],["anchor",""],[4,"ngIf","ngIfElse"],["plainText",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"anchor","autocompleteConfig","closed"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"]],
template:function(a,b){a&1&&(D(0,"button",0,1),L("focus",function(){return b.active=!0})("blur",function(){return b.active=!1})("click",function(){return b.openPopOver()}),P(2,yXa,2,4,"ng-container",2),P(3,zXa,1,1,"ng-template",null,3,Eg),P(5,AXa,2,0,"svg",4),F(),D(6,"onedev-user-picker-panel",5),L("closed",function(e){return b.onPopOverClose(e)}),F());if(a&2){var c=N(1),d=N(4);Xf("active",b.isActive());Nf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());w(2);C("ngIf",b.selectedUserTemplate)("ngIfElse",
d);w(3);C("ngIf",!b.disabled);w(1);C("anchor",c)("autocompleteConfig",b.autocompleteConfig)}},dependencies:[Ev,Jv,FY],styles:["button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor}"]});var cnc=["picker"],HY=function(){this.disabled=!1;this.emailChange=new Yu;this.userEmail=""};W(HY,hM);HY.prototype.openPopOver=function(){this.picker.openPopOver()};HY.prototype.isActive=function(){return this.picker.isActive()};Qh.Object.defineProperties(HY.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userEmail=zi(a)||""}}});HY.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(HY)))(b||HY)}}();
HY.\u0275cmp=od({type:HY,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&zg(cnc,7);if(a&2){var c;yg(c=Bg())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],features:[lg([{provide:hM,useExisting:fd(function(){return HY}),multi:!0}]),Jf],decls:4,vars:4,consts:[[3,"email","disabled","labelledById","selectedUserTemplate","emailChange"],["picker","onedevUserPicker"],["userChip",
""],[3,"email","teamId","enableSmallChip",4,"ngIf"],[3,"email","teamId","enableSmallChip"]],template:function(a,b){a&1&&(D(0,"onedev-user-picker",0,1),L("emailChange",function(d){return b.emailChange.emit(d)}),F(),P(2,CXa,1,1,"ng-template",null,2,Eg));if(a&2){var c=N(3);C("email",b.userEmail)("disabled",b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",c)}},dependencies:[Ev,MO,GY],styles:["b-user-membership-chip[_ngcontent-%COMP%]     .user-chip-small, b-user-membership-chip[_ngcontent-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}/*# sourceMappingURL=user_picker.css.map */"]});var IY=function(a){hG.call(this);this.observableSlosService=a;this.recordType="slo";this.idForRecord=function(b){return b.sloId}};W(IY,hG);g=IY.prototype;g.fetchOne=function(a){return this.observableSlosService.get(a)};g.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};g.search=function(a){return this.observableSlosService.search(a)};g.create=function(a){return this.observableSlosService.create(a)};g.update=function(a){return this.observableSlosService.update(a)};
IY.\u0275fac=function(a){return new (a||IY)(n(uW))};IY.\u0275prov=$c({token:IY,factory:IY.\u0275fac,providedIn:"root"});var JY=function(a,b,c,d,e){Y.call(this);var f=this;this.session=a;this.userPreferencesManager=b;this.sloStatusHelpersService=c;this.paths=d;this.sloFridge=e;this.onSloStartTimeChange=new Yu;this.onSloEndTimeChange=new Yu;this.providedSloId$=new B.ReplaySubject(1);this.slo$=this.providedSloId$.pipe(zf(function(h){return f.sloFridge.watchOne(h)}));this.hasClosureSlo=this.isSloEndEditTimePickerOpen=this.isSloStartEditTimePickerOpen=this.enableSloEndTime=this.hasSloEndTime=this.hasSloStartTime=this.isAccordionExpanded=
!1};W(JY,Y);JY.\u0275dir=Y.\u0275dir;JY.prototype.ngOnInit=function(){var a=this;dnc(this);this.userPreferencesManager.layoutPreferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.isAccordionExpanded=!!b.expandIssueSlo})};JY.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);dnc(this)};
var dnc=function(a){a.hasSlo=!!a.sloStatus&&U4b(a.sloStatus);a.hasClosureSlo=a.hasSlo&&V4b(a.sloStatus,"CLOSURE");a.enableSloEndTime=$C(a.session,"enableSloEndTime");var b,c;(c=a.sloStatus)?(c=c.closureBounds,c=eO($k(c))?c.targetTime:void 0):c=void 0;a.closureSloTarget=null!=(b=null==c?void 0:c.seconds)?b:0;b=a.sloStartTime;a.hasSloStartTime=!!b&&0!==b.seconds;b=a.sloEndTime;a.hasSloEndTime=!!b&&0!==b.seconds;a.sloId&&"0"!==a.sloId?a.editSloLink=a.paths.editSlo(a.sloId):a.editSloLink=void 0;a.componentId?
a.componentSloLink=a.paths.manageComponent(a.componentId):a.componentSloLink=void 0},enc=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;oWb(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(Af(a.destroyed$)).subscribe();Mk(xp.ISSUE_SLO,"toggle",a.isAccordionExpanded?"open":"close")};JY.prototype.updateSloStartTime=function(a){this.onSloStartTimeChange.next(a)};JY.prototype.updateSloEndTime=function(a){this.onSloEndTimeChange.next(a)};
JY.prototype.trackOpenSlo=function(){Mk(xp.EDIT_SLO,"open","fromIssueSloBox")};JY.\u0275fac=function(a){return new (a||JY)(z(Us),z(iE),z(dO),z(xE),z(IY))};
JY.\u0275cmp=od({type:JY,selectors:[["b-issue-slo-box"]],inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp"},outputs:{onSloStartTimeChange:"onSloStartTimeChange",onSloEndTimeChange:"onSloEndTimeChange"},features:[Jf,Fd],decls:17,vars:19,consts:[[1,"issue-slo-box-title",3,"click"],[1,"slo-body"],[1,"slo-status"],[3,"hidden"],[3,"sloStatus","sloStartTime","sloEndTime",
"includeSloMetric","includeObjective"],[3,"sloStatus","sloStartTime","sloEndTime","includeNoSlo"],["mat-icon-button","","aria-label","Toggle the detailed SLO status","matTooltip","Toggle the detailed SLO status",1,"expand-button","small",3,"click"],["svgIcon","arrow-down","class","icon-s",4,"ngIf"],["svgIcon","arrow-up","class","icon-s",4,"ngIf"],[1,"slo-actions",3,"hidden"],["class","slo-action","id","start-time-row",4,"ngIf"],["class","slo-action","id","end-time-row",4,"ngIf"],["class","slo-action",
4,"ngIf"],["svgIcon","arrow-down",1,"icon-s"],["svgIcon","arrow-up",1,"icon-s"],["id","start-time-row",1,"slo-action"],["href","http://go/buganizer/guides/defer-slos","target","_blank","aria-label","View help page on deferring slos","matTooltip","View help page on deferring slos",1,"clear-link"],[1,"slo-edit"],["role","button","tabindex","0","aria-label","Modify the slo start date value","matTooltip","Modify the slo start date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"keydown.enter","keydown.space",
"click"],["trigger","cdkOverlayOrigin"],[4,"ngIf"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["mode","date",3,"timestamp"],[3,"sloStatus","sloEditTime","closePicker","sloEditCommit"],["id","end-time-row",1,"slo-action"],["role","button","tabindex","0","aria-label","Modify the slo end date value","matTooltip","Modify the slo end date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space"],[1,"slo-action"],["aria-label",
"Navigate to the applied slo page","matTooltip","Navigate to the applied slo page","class","slo-link bv2-metadata-link slo-definition",3,"click",4,"ngIf"],["aria-label","Navigate to the applied slo page","matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition",3,"click"],["aria-label","Open page to select an slo","matTooltip","Open page to select an slo",1,"bv2-metadata-link","bv2-metadata-tool","slo-definition",3,"click"]],template:function(a,b){a&1&&(D(0,
"span",0),L("click",function(){return enc(b)}),D(1,"label"),Q(2,"SLO Status"),F()(),D(3,"div",1)(4,"div",2)(5,"div",3),G(6,"b-aggregated-slo-status-indicator",4),F(),D(7,"div",3),G(8,"b-slo-status-summary",5),F(),D(9,"button",6),L("click",function(){return enc(b)}),P(10,DXa,1,0,"mat-icon",7),P(11,EXa,1,0,"mat-icon",8),F()(),D(12,"div",9),P(13,IXa,9,4,"div",10),P(14,NXa,10,5,"div",11),P(15,PXa,4,3,"div",12),P(16,QXa,3,1,"div",12),F()());a&2&&(w(5),C("hidden",b.isAccordionExpanded),w(1),C("sloStatus",
b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeSloMetric",!0)("includeObjective",!0),w(1),C("hidden",!b.isAccordionExpanded),w(1),C("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeNoSlo",!0),w(1),Nf("aria-expanded",b.isAccordionExpanded),w(1),C("ngIf",!b.isAccordionExpanded),w(1),C("ngIf",b.isAccordionExpanded),w(1),C("hidden",!b.isAccordionExpanded),w(1),C("ngIf",b.isEditable),w(1),C("ngIf",b.enableSloEndTime&&b.isEditable),
w(1),C("ngIf",b.editSloLink),w(1),C("ngIf",!b.editSloLink&&b.componentSloLink))},dependencies:[Ev,qA,FB,Ez,IW,PL,xW,TT,Ry,Qy,Kv],styles:["[_nghost-%COMP%]{align-items:baseline;margin:8px 19px 8px 19px}[_nghost-%COMP%]:focus{outline:0}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #d2e3fc;box-shadow:0 0 0 1px var(--primary-c100);border-radius:4px}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary);border-radius:4px}[_nghost-%COMP%]:focus   .issue-slo-box-title[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .issue-slo-box-title[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.issue-slo-box-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-weight:500;flex:0 0 23%;min-width:80px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.slo-body[_ngcontent-%COMP%]{display:inline-block;margin:0 14px;padding:8px 0 8px 4px;width:fill-available;width:-webkit-fill-available}.slo-status[_ngcontent-%COMP%]{display:flex}.slo-actions[_ngcontent-%COMP%]   .slo-action[_ngcontent-%COMP%]{vertical-align:baseline;min-height:24px}.slo-action[_ngcontent-%COMP%]   .slo-edit[_ngcontent-%COMP%]{display:inline-block}.slo-action[_ngcontent-%COMP%]   .slo-definition[_ngcontent-%COMP%]{min-height:24px}.clear-link[_ngcontent-%COMP%]{color:inherit;text-decoration:none;background-color:none}.expand-button[_ngcontent-%COMP%]{margin-left:auto}.expand-button[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:block}.d-cozy[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:4px 14px 4px 19px}.d-compact[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:2px 14px 2px 19px}"]});var fnc={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};var KY=function(a,b,c,d,e,f,h,k,q,u){Y.call(this);var x=this;this.data=a;this.dialogRef=b;this.pathBuilder=c;this.teamsService=d;this.componentActions=e;this.userPreferencesManager=f;this.snackBar=h;this.analytics=k;this.errorHandler=q;this.componentFridge=u;this.teamSuggestionIds=[];this.header="";this.teamOptions=[];this.teamAction="CHANGE";this.WarningType=fnc;this.warningType=a.warningType;this.componentId=a.componentId;this.parentComponentId=a.parentComponentId;this.teamSuggestionIds=a.teamSuggestionIds;
this.selectedTeam=new gnc(this.teamSuggestionIds[0]||"0",[]);this.componentSetting=this.pathBuilder.editComponent(this.componentId,"basic");this.suggestedTeams$=GZb(this.teamsService,this.teamSuggestionIds).pipe(A(function(y){for(var E=[],H=l(x.teamSuggestionIds),J=H.next();!J.done;J=H.next()){J=J.value;var O=y.get(J);O&&E.push(new gnc(J,O.collapsedPathNames))}return E}),yf([]));this.myTeams$=wI(this.teamsService,"").pipe(A(function(y){return y.map(function(E){return new gnc(E.teamId,E.pathNames)})}));
(0,B.combineLatest)([this.suggestedTeams$,this.myTeams$]).pipe(A(function(y){var E=l(y);y=E.next().value;E=E.next().value;return[].concat(p(y),p(E))}),A(pra(function(y){return y.teamId})),Af(this.destroyed$)).subscribe(function(y){x.teamOptions=y;x.selectedTeam=y[0]})};W(KY,Y);KY.\u0275dir=Y.\u0275dir;KY.prototype.ngOnInit=function(){"MISSING"===this.warningType?this.header="Add team to the component":"DELETED"===this.warningType&&(this.header="Change team mapping for this component")};
KY.prototype.confirm=function(){var a=this;if("CHANGE"===this.teamAction)0<this.parentComponentId?this.componentActions.get(this.parentComponentId).then(function(c){var d;hnc(a,(null==(d=c.team)?void 0:d.id)||"0",a.selectedTeam.teamId)}):hnc(this,"0",this.selectedTeam.teamId);else{var b=li(this.userPreferencesManager.teamWarningPreferencesSubject$.value);b.componentTeamWarnings.push({componentId:this.componentId,dismissMillis:(new Date).getTime()});tWb(this.userPreferencesManager,b).pipe(Af(this.destroyed$)).subscribe(function(){a.analytics.trackEvent(xp.TEAM_WARNING,
"dismiss","componentId",a.componentId);var c;null==(c=a.dialogRef)||c.close()},function(){})}};var hnc=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);a.analytics.trackEvent(xp.TEAM_WARNING,"updateTeam");a.snackBar.open("Team mapping changed","",{duration:4E3});var e;null==(e=a.dialogRef)||e.close(a.selectedTeam.teamId)}).catch(function(d){a.errorHandler.errorHandler(null,d)})};
KY.prototype.selectOption=function(a){this.selectedTeam=a};KY.prototype.trackClick=function(a){this.analytics.trackEvent(xp.TEAM_WARNING,"click",a)};KY.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};KY.\u0275fac=function(a){return new (a||KY)(z(Tz),z(Rz),z(gW),z(uI),z(EP),z(iE),z(SF),z(zH),z(XF),z(OG))};
KY.\u0275cmp=od({type:KY,selectors:[["b-team-warning-dialog"]],features:[Jf],decls:11,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["aria-label","Quick team actions",3,"ngModel","ngModelChange",4,"ngIf"],["class","suggested-teams",4,"ngIf"],["mat-button","","mat-dialog-close","",1,"gmat-button","medium"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button",3,"click"],["mat-dialog-content",""],["target","_blank",3,"href","click"],["target","_blank",3,"href"],["aria-label",
"Quick team actions",3,"ngModel","ngModelChange"],["value","NONE"],["value","CHANGE"],[1,"suggested-teams"],[3,"disabled","value","options","includeEmptyOption","optionTemplate","valueChange"],["optionTemplate",""],["mat-icon-button","","target","_blank","matTooltip","Go to Moma Team page.",1,"gmat-button","small",3,"click"],["svgIcon","pop-out",1,"icon-s"],[4,"ngIf","ngIfElse"],["emptyOption",""],[1,"suggested-team-option"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),P(2,SXa,5,1,"div",1),
P(3,TXa,5,1,"div",1),P(4,UXa,7,1,"mat-radio-group",2),P(5,YXa,6,6,"div",3),D(6,"mat-dialog-actions")(7,"button",4),Q(8," Cancel "),F(),D(9,"button",5),L("click",function(){return b.confirm()}),Q(10," Confirm "),F()());a&2&&(w(1),jg(b.header),w(1),C("ngIf",b.warningType===b.WarningType.MISSING),w(1),C("ngIf",b.warningType===b.WarningType.DELETED),w(1),C("ngIf",b.warningType===b.WarningType.MISSING),w(1),C("ngIf",0<b.teamOptions.length))},dependencies:[Ev,qA,hw,ow,Ez,Fz,Vz,Wz,Xz,Yz,wU,xU,FB,iM],styles:["mat-radio-button[_ngcontent-%COMP%]{margin-top:10px}.suggested-teams[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center}[_nghost-%COMP%]     onedev-single-select button{margin-top:5px;border-color:#bdc1c6}  span.suggested-team-option{display:inline-block;width:490px}"]});
var gnc=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};var LY=function(a,b){Y.call(this);this.matDialogService=a;this.analytics=b;this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new Yu};W(LY,Y);LY.\u0275dir=Y.\u0275dir;LY.prototype.ngOnInit=function(){};LY.prototype.ngOnChanges=function(){"MISSING"===this.warningType?(this.warningMessage="Team mapping is missing",this.buttonName="Add"):"DELETED"===this.warningType&&(this.warningMessage="This team no longer exists",this.buttonName="Change")};
LY.prototype.openDialog=function(){var a=this;this.analytics.trackEvent(xp.TEAM_WARNING,"open");Pz(this.matDialogService.open(KY,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.teamId)})}})).pipe(Af(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};LY.\u0275fac=function(a){return new (a||LY)(z(Uz),z(zH))};
LY.\u0275cmp=od({type:LY,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},features:[Jf,Fd],decls:4,vars:2,consts:[["messageType","caution","format","app"],[4,"ngIf"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(D(0,"b-callout",0)(1,"b-callout-body"),Q(2),F(),P(3,ZXa,3,1,"b-callout-actions",1),F());
a&2&&(w(2),S(" ",b.warningMessage," "),w(1),C("ngIf",!b.messageOnly))},dependencies:[bJ,nD,oD,Ev],encapsulation:2});var inc=new Ad("DevopsGraphLogger",{providedIn:"root",factory:function(){return Ek}}),jnc=new Ad("DEV_GRAPH",{providedIn:"root",factory:function(){var a;return Ne(function(b){switch(b.nextAddress){case 1:return Oe(b,2),b.yield($Xa(),4);case 4:a=b.yieldResult;$s(b,3);break;case 2:return Re(b),b.return();case 3:return Oe(b,5),b.yield(a.loadGraph(),7);case 7:$s(b,6);break;case 5:return Re(b),b.return();case 6:return b.return(google.corp.devops.tools.graph)}})}});var MY=function(a,b,c,d){var e=this;this.session=a;this.theme=b;this.logger=c;this.graphBuilder=d;this.open$=new B.Subject;this.close$=new B.Subject;this.getContainer=function(){return document.getElementById("graph-sidebar-host")};this.onGraphClose=function(){var f=e.getContainer();null!=f&&(f.classList.remove("open"),e.close$.next())};this.onGraphOpen=function(){var f=e.getContainer();null!=f&&(f.classList.add("open"),e.open$.next())};this.init()};
MY.prototype.init=function(){var a=this,b,c,d,e,f;return Ne(function(h){if(1==h.nextAddress)return b=a.getContainer(),!b||a.graphService&&a.graphController?h.return():h.yield(a.graphBuilder,2);c=h.yieldResult;d=["PROD","NIGHTLY"].includes(a.session.getEnvironmentType())?"production":"autopush";if(e=c.createService({environment:d}))f=a.theme.clientDarkmodeSubject.getValue(),a.graphService=e,a.graphController=e.createController({element:b,onClose:a.onGraphClose,onOpen:a.onGraphOpen,theme:f?"dark":void 0}),
a.theme.clientDarkmode$.subscribe(function(k){var q;null==(q=a.graphController)||q.setTheme(k?"dark":"light")});Se(h)})};var knc=function(a,b){var c;return Ne(function(d){switch(d.nextAddress){case 1:return Oe(d,2),d.yield(a.init(),4);case 4:return null==a.graphService?d.return(new Set):d.yield(a.graphService.getAvailableIssueContexts(Number(b)),6);case 6:return d.return(d.yieldResult);case 5:$s(d,0);break;case 2:return c=Re(d),a.logger(c),d.return(new Set)}})};
MY.prototype.openSidebar=function(a,b){var c=this,d;return Ne(function(e){switch(e.nextAddress){case 1:return e.yield(c.init(),2);case 2:if(!c.graphController)return e.return();Oe(e,3);return e.yield(c.graphController.openIssueContext(Number(a),b),5);case 5:$s(e,0);break;case 3:d=Re(e),c.logger(d),Se(e)}})};
MY.prototype.close=function(){var a=this,b;return Ne(function(c){switch(c.nextAddress){case 1:return c.yield(a.init(),2);case 2:if(!a.graphController)return c.return();Oe(c,3);return c.yield(a.graphController.close(),5);case 5:$s(c,0);break;case 3:b=Re(c),a.logger(b),Se(c)}})};MY.\u0275fac=function(a){return new (a||MY)(n(Us),n(YK),n(inc),n(jnc))};MY.\u0275prov=$c({token:MY,factory:MY.\u0275fac,providedIn:"root"});var NY=function(a,b,c,d,e,f,h,k){Y.call(this);var q=this;this.devopsGraph=a;this.paramsService=b;this.analytics=c;this.butterBar=d;this.router=e;this.route=f;this.activeSession=h;this.contextSensitiveRegistry=k;this.id$=this.contextSensitiveRegistry.getIssueId().pipe(A(function(u){return u||void 0}));this.contexts$=this.id$.pipe(zf(function(u){return Ne(function(x){return null!=q.devopsGraph.getContainer()&&u?x.return(knc(q.devopsGraph,u).then(function(y){return{issueId:u,availablePanels:y}})):x.return(void 0)})}),
wf({refCount:!1,bufferSize:1}));this.availablePanels$=this.contexts$.pipe(A(function(u){return u?u.availablePanels:new Set}));this.shouldShowInsightsGraphMenu$=this.contexts$.pipe(A(function(u){return!!u&&0<u.availablePanels.size&&q.activeSession.isInternalSession()&&null!=q.devopsGraph.getContainer()}));this.shouldShowInsightsGraphButton$=this.contexts$.pipe(A(function(u){return!!u&&0<u.availablePanels.size&&q.activeSession.isInternalSession()&&null!=q.devopsGraph.getContainer()&&u.availablePanels.has("deployments")}));
this.openSidebar.bind(this);this.subscriptions.add(this.contexts$.subscribe(function(u){if(u){u=u.availablePanels;q.track("ingress-view-"+(0<u.size?"enabled":"disabled"));u.has("deployments")&&q.track("ingress-view-deployments-enabled");var x=q.paramsService.params.showInsights;x&&("default"===x?0<u.size?q.openSidebar():q.butterBar.showWarning("Could not open Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."):u.has(x)?q.openSidebar(x):q.butterBar.showWarning("Could not open "+
x+" Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."))}else q.devopsGraph.close()}));this.subscriptions.add(this.devopsGraph.close$.subscribe(function(){lnc(q,null)}))};W(NY,Y);NY.\u0275dir=Y.\u0275dir;NY.prototype.openSidebar=function(a){var b=this,c,d,e,f;return Ne(function(h){c=Gk(b.contexts$);if(!c)return h.return();d=c;e=d.issueId;lnc(b,null!=(f=a)?f:"default");return h.return(b.devopsGraph.openSidebar(e,{panel:a}))})};
NY.prototype.track=function(a){this.analytics.trackEvent("sidebar",a)};var lnc=function(a,b){a.router.navigate([],{relativeTo:a.route,queryParams:{showInsights:b},queryParamsHandling:"merge",replaceUrl:!0,preserveFragment:!0})};NY.\u0275fac=function(a){return new (a||NY)(n(MY),n(AI),n(zH),n(VF),n(WD),n(lk),n(Us),n(BI))};NY.\u0275prov=$c({token:NY,factory:NY.\u0275fac,providedIn:"root"});var cYa=function(a){return[a]},fYa=function(){return[]},WYa=function(a){return{$implicit:a}},OY=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J){var O=this;this.activeSession=a;this.editIssueService=b;this.issueFridge=c;this.issuePermissionService=d;this.issueDetailsBrain=e;this.constants=f;this.refreshMonitor=h;this.userPreferencesManager=k;this.documentationLinks=q;this.workspaceService=u;this.changelistApi=x;this.issueMarkAsDuplicateDialogService=y;this.analytics=E;this.issueInsightsSidebarService=H;this.issueLimits=
J;this.issueId$=new B.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(mf());this.issue$=this.distinctIssueId$.pipe(zf(function(R){return O.editIssueService.editableIssue$(R)}));this.enablePeoplekitAc=$C(this.activeSession,"enablePeoplekitUserAc");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.showSloStatus=this.sessionIsInternal;this.showChangelists=!this.sessionIsExternal;this.defaultAssigneeQuickActionEnabled=
this.sessionIsInternal;this.HOTKEYS=BD;this.trackCustomField=function(R,U){return"{"+U.componentId+", "+U.customFieldId+"}"};this.FieldType=Zac;this.ListFieldType=Nbc;this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isCurrentUserCollaborator$=this.issuePermissionService.isCurrentUserCollaborator$;this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;
this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(A(function(R){return!O.activeSession.isExternalSession()&&!R}));this.teamSuggestions$=this.issueDetailsBrain.teamSuggestions$;this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.canonicalIssueId$=
this.issueDetailsBrain.canonicalIssueId$;this.sloId$=this.issueDetailsBrain.sloId$;this.sloStatus$=this.issueDetailsBrain.sloStatus$;this.createdTimeMicros$=this.issueDetailsBrain.createdTimeMicros$;this.teamId$=this.issueDetailsBrain.teamId$;this.teamWarningType$=this.issueDetailsBrain.team$.pipe(A(RXa));this.component$=this.issueDetailsBrain.component$;this.effort$=this.issueDetailsBrain.effort$;this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.issueFields$=this.distinctIssueId$.pipe(A(function(R){return O.editIssueService.issueFields(R)}),
wf({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(zf(function(R){return R.isForgottenFourPrimary$}));this.showHiddenFieldsLabel$=this.issueFields$.pipe(zf(function(R){return R.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(zf(function(R){return R.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(zf(function(R){return R.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(zf(function(R){return R.isSeverityPrimary$}));
this.isSloStatusPrimary$=this.issueFields$.pipe(zf(function(R){return R.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(zf(function(R){return R.hiddenCustomFields$}));this.visibleCustomFields$=this.issueFields$.pipe(zf(function(R){return R.visibleCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(A(function(R){return O.editIssueService.issueQuickActions(R)}),wf({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(zf(function(R){return R.issueAssigneeQuickAction$}));
this.issueStatusQuickAction$=this.issueQuickActions$.pipe(zf(function(R){return R.issueStatusQuickAction$}));this.priorityChoices=this.constants.priorities.map(function(R){return{value:R,displayText:R}});this.severityChoices=this.constants.severities.map(function(R){return{value:R,displayText:R}});this.typeChoices=this.constants.editIssueTypeChoices;this.teamHovercardInputs$=(0,B.combineLatest)([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(A(function(R){var U=l(R);R=U.next().value;U=U.next().value;
return{teamId:U?String(U):"0",componentId:R?String(R):"0"}}));this.isTeamWarningDismissed$=(0,B.combineLatest)([this.issue$,this.userPreferencesManager.preferences$]).pipe(A(function(R){R=l(R);var U=R.next().value,Z,na;return null==(Z=R.next().value.teamWarningPreferences)?void 0:null==(na=Z.componentTeamWarnings)?void 0:na.some(function(oa){return oa.componentId===U.componentId})}));this.shouldDisplayTeamSuggestions$=(0,B.combineLatest)([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,
this.teamWarningType$]).pipe(A(function(R){var U=l(R);R=U.next().value;var Z=U.next().value;U=U.next().value;return R&&!Z&&("MISSING"===U||"DELETED"===U)}));this.statusChoices$=this.canonicalIssueId$.pipe(A(function(R){return[].concat(p(TWb.filter(function(U){return"DUPLICATE"!==U.value})),[{value:"DUPLICATE",displayText:R?"Duplicate of "+R:"Duplicate"}])}));this.workspaces$=this.distinctIssueId$.pipe(zf(function(R){return Bjc(O.workspaceService,R)}),wf({refCount:!0,bufferSize:1}));this.pendingChangelists$=
SYb(this.refreshMonitor,this.distinctIssueId$).pipe(zf(function(R){return O.changelistApi.getPendingChangelistsForIssue(R)}),A(function(R){return R.changelistNumbers}),A(function(R){return{cls:R,hasError:!1}}),gf(function(){return(0,B.of)({cls:[],hasError:!0})}),wf({refCount:!0,bufferSize:1}));this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new SJ,{position:[P_b]});this.ACCESS_LIMITS_HOVERCARD_CONFIG=Object.assign({},new SJ,{position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",
offsetX:-30}]});this.reconcileView={assignee:function(R){var U,Z;R.value=null!=(Z=null==(U=Gk(O.issue$))?void 0:U.assignee)?Z:""},reporter:function(R){var U,Z;R.value=null!=(Z=null==(U=Gk(O.issue$))?void 0:U.reporter)?Z:""},verifier:function(R){var U,Z;R.value=null!=(Z=null==(U=Gk(O.issue$))?void 0:U.verifier)?Z:""},ccs:function(R){var U,Z;R.values=null!=(Z=null==(U=Gk(O.issue$))?void 0:U.cc)?Z:[]},collaborators:function(R){var U,Z;R.collaborators=null!=(Z=null==(U=Gk(O.issue$))?void 0:U.collaborators)?
Z:[]}}};OY.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var PYa=function(a){var b=a.issuePermissionService.isCurrentUserCCd();a.analytics.trackEvent(xp.EDIT_ISSUE,"toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!DI(a.issuePermissionService,e)}):[].concat(p(c.cc),[a.activeSession.getUserEmail()]);return n5b(a.editIssueService,a.issueId,d)},LYa=function(a){var b=a.issuePermissionService.isCurrentUserCollaborator();a.analytics.trackEvent(xp.EDIT_ISSUE,"toggleCollaborators (appbar)",
(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.collaborators.filter(function(e){return!DI(a.issuePermissionService,e)}):[].concat(p(c.collaborators),[a.activeSession.getUserEmail()]);return o5b(a.editIssueService,a.issueId,d)};OY.prototype.toggleAccessLimits=function(){var a=this;return Ne(function(b){if(a.issueLimits.isOpen())return b.return();a.issueLimits.open({componentId:Number(Gk(a.issueDetailsBrain.componentId$)),issueId:a.issueId});Se(b)})};
OY.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};
var yYa=function(a,b,c){return AYa(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.assignee(b)})},iYa=function(a,b,c){return kYa(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.reporter(b)})},FYa=function(a,b,c){return HYa(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.verifier(b)})},KZa=function(a,b,c){return n5b(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.ccs(b)})},JZa=function(a,b,c){return o5b(a.editIssueService,
a.issueId,c).finally(function(){a.reconcileView.collaborators(b)})},eq=function(a,b){a.analytics.trackEvent(xp.EDIT_ISSUE,"quickAction (sidebar)",null==b?void 0:b.displayText);return l5b(a.editIssueService,a.issueId,b)},IZa=function(a,b){var c;return Ne(function(d){a:switch(b){case "NEW":case "ASSIGNED":case "ACCEPTED":case "FIXED":case "VERIFIED":case "NOT_REPRODUCIBLE":case "INTENDED_BEHAVIOR":case "OBSOLETE":case "INFEASIBLE":case "DUPLICATE":var e=b;break a;default:e=null}return(c=e)?"DUPLICATE"===
c?d.return(fmc(a.issueMarkAsDuplicateDialogService,a.issueId)):d.return(k5b(a.editIssueService,a.issueId,c)):d.return()})};OY.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(A(function(c){return b.editIssueService.savingState(c)}),zf(function(c){return vp(c.propertiesBeingSaved,Xn(String(a)))}))};OY.prototype.getAccessLimitLevelDisplay=function(a){return HTa(a)};
OY.\u0275fac=function(a){return new (a||OY)(z(Us),z(nO),z(GH),z(EI),z(CI),z(cD),z(EH),z(iE),z(yL),z(cX),z(IG),z(lY),z(zH),z(NY),z(rY))};
OY.\u0275cmp=od({type:OY,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},features:[Fd],decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["peoplekitReporter",""],[3,"name","title","type","value","choices","readonly","disabled","valueChange"],[1,"flex-wrappable","flex-kids-y"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","hotkey","readonly","disabled","onHotkey","valueChange"],[1,"status-field-row"],[3,"name","title","type","value","choices","readonly","disabled",
"onedevHovercardActive","onedevHovercardTrigger","valueChange"],["canonicalHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"effort","effortSpec","disabled","effortChange",4,"ngIf"],[1,"bv2-issue-metadata-field"],["tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-readonly",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-editable-title","access-level-title"],[1,"bv2-editable-value","access-level-info"],[1,"access-level-current-val"],
["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["ialCard","onedevHovercard"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","target","_blank","aria-label","Learn more about issue access limits",1,"gmat-button","primary","bv2-metadata-link","keep-focus-ring",3,"href"],[1,"flex-kids-y"],["class","implicit-access-header flex-kids-x flex-cross-axis-centered flex-spread full-width",
4,"ngIf"],[1,"flex-1"],["peoplekitAssignee",""],["peoplekitVerifier",""],[3,"readonly","collaborators","collaboratorsUsers","listFieldDisabled","teamId","isCollapsible","onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig","toggleAccessLimits","valuesChange"],["collaboratorsField",""],[1,"value-action"],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"disabled","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["collaboratorsCard","onedevHovercard"],
["mat-button","","href","https://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank",1,"gmat-button","primary"],["title","CC","iconName","add_alert_24px",1,"full-width",3,"defaultLineCount","readonly","type","isUser","values","users","listFieldDisabled","isCollapsible","isExpanded","onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig","collapsiblePanelTitle","teamId","valuesChange"],["ccsField",""],["ccCard","onedevHovercard"],[3,"readonly","defaultLineCount",
"title","type","values","tooltip",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","hidden-fields-separator",4,"ngIf"],[3,"titleWhenCollapsed","titleWhenExpanded",4,"ngIf"],["sloField",""],["severityField",""],["changelistsFields",""],["foundInField",""],["targetedToField",""],["verifiedInField",""],["inProdField",""],["forgottenFourFields",""],["customFieldTemplate",""],[4,"ngTemplateOutlet"],["class","issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values",4,"ngIf"],
[1,"issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values"],["class","issue-metadata-field-short",4,"ngIf"],[1,"issue-metadata-field-short"],[3,"warningType","componentId","parentComponentId","teamSuggestions","updateTeam"],[3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","valueChange"],["reporterField",""],[3,"thinking"],[3,"user","teamId","disabled","emailChange"],["class","bv2-metadata-quick-action",4,"ngIf"],[1,"bv2-metadata-quick-action"],
[1,"bv2-field-label-spacer"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""],[3,"effort","effortSpec","disabled","effortChange"],[1,"implicit-access-header","flex-kids-x","flex-cross-axis-centered","flex-spread","full-width"],[1,"implicit-access-header-text"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["implicitAccessHelpBubble",""],["target","_blank",3,"href"],
[3,"hotkey","name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","onHotkey","valueChange"],["assigneeField",""],["class","bv2-metadata-quick-action","tabindex","0","role","button",3,"hotkey","matTooltip","onHotkey","click","keydown.enter","keydown.space",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"hotkey","matTooltip","onHotkey","click","keydown.enter","keydown.space"],["class","bv2-metadata-link",3,"disabled",4,"ngIf"],[1,
"bv2-metadata-link"],[3,"hotkey","user","teamId","disabled","onHotkey","emailChange"],["userPicker","bUserPicker"],["actions",""],["class","bv2-metadata-link","tabindex","0","role","button",3,"click",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click"],["class","bv2-metadata-link","tabindex","0","role","button",3,"hotkey","matTooltip","disabled","onHotkey","click","keydown.enter","keydown.space",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"hotkey","matTooltip",
"onHotkey","click","keydown.enter","keydown.space"],[1,"flex-1",3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","valueChange"],["verifierField",""],[3,"readonly","defaultLineCount","title","type","values","tooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"hidden-fields-separator"],[3,"titleWhenCollapsed","titleWhenExpanded"],[3,"refreshable"],["tabindex","0",1,"issue-metadata-field-long",3,"sloStatus","sloStartTime","sloEndTime","sloId",
"componentId","isEditable","issueCreationTimestamp","onSloStartTimeChange","onSloEndTimeChange"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","readonly","disabled","valueChange"],[3,"readonly","defaultLineCount","title","type","values","listFieldDisabled","valuesChange"],[1,"title-action"],[3,"pressed",4,"ngIf"],[3,"pressed"],[1,"issue-metadata-field-short","issue-metadata-field-short-left",3,"name","title","type","multiline","tooltip","value","readonly","disabled","valueChange"],
[3,"name","title","type","multiline","tooltip","value","readonly","disabled","valueChange"],[3,"name","title","type","value","tooltip","readonly","disabled","valueChange"],[3,"issue","field","readonly","disabled","save"]],template:function(a,b){a&1&&(P(0,LZa,134,159,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.issue$))},dependencies:[zR,Dv,Ev,Jv,qA,MR,qR,zY,uY,vY,wY,sE,PJ,QJ,UJ,RJ,gX,EV,JY,KR,eX,FB,iL,LY,HY,WO,hK,OI,Kv],styles:["hr.hidden-fields-separator[_ngcontent-%COMP%]{margin-left:16px;margin-right:10px}.bv2-field-label-spacer[_ngcontent-%COMP%]{width:23%;display:inline-block;min-width:80px;max-width:120px;padding-right:10px}/*# sourceMappingURL=edit_issue_metadata.css.map */"]});var mnc=["descriptionArea"],PY=function(a,b,c,d,e,f,h,k,q,u,x,y){Y.call(this);var E=this;this.issueFridge=a;this.eventsForIssueFridge=b;this.editStatusUpdateDialogService=c;this.statusUpdateService=d;this.issueCommentDialogsService=e;this.contextSensitiveRegistry=f;this.issuePermissionService=h;this.clipboard=k;this.snackBar=q;this.prompts=u;this.llmService=x;this.activeSession=y;this.closeSidebar=new Yu;this.navigateToNextIssue=new Yu;this.navigateToPreviousIssue=new Yu;this.issueId$=new B.ReplaySubject(1);
this.issue$=this.issueId$.pipe(Af(this.destroyed$),zf(this.issueFridge.watch),wf({bufferSize:1,refCount:!0}));this.componentId$=this.issue$.pipe(A(function(H){return null==H?void 0:H.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(A(function(H){var J;return null==H?void 0:null==(J=H.accessLimit)?void 0:J.accessLevel}));this.events$=this.issueId$.pipe(Af(this.destroyed$),zf(this.eventsForIssueFridge.watch),A(function(H){return(null==H?void 0:H.events)||[]}));this.firstEvent$=this.events$.pipe(A(function(H){return 0<
H.length?H[0]:void 0}));this.statusUpdate$=this.issue$.pipe(A(function(H){return null==H?void 0:H.statusUpdate}));this.statusUpdateNote$=this.statusUpdate$.pipe(cf(cl),A(function(H){return{unlinkifiedComment:H.updateText,formattedComment:H.formattedText}}));this.userCanEditStatusUpdate$=this.issuePermissionService.hasAclToEdit$;this.hasStatusUpdate$=this.statusUpdate$.pipe(A(function(H){return!!H&&""!==H.updateText}));this.firstNote$=this.events$.pipe(Af(this.destroyed$),A(function(H){if(H&&0<H.length&&
H[0].commentNumber&&-1<H[0].commentNumber)return{commentNumber:H[0].commentNumber,unlinkifiedComment:H[0].unlinkifiedComment||"",formattedComment:H[0].formattedComment}}),wf({bufferSize:1,refCount:!0}));this.userCanEditDescription$=this.firstEvent$.pipe(zf(function(H){return H?E.issuePermissionService.canEditComment$(H):(0,B.of)(!1)}));this.hasDescription$=this.events$.pipe(Af(this.destroyed$),A(function(H){return H&&0<H.length&&""!==H[0].unlinkifiedComment}));this.isFieldsExpanded=this.isDescriptionExpanded=
this.isStatusUpdateExpanded=!0;this.editTitleMode=this.isSavingTitle=!1;this.draftTitle="";this.FormattingMode=IC;this.descriptionHasMore=!0;this.showFullDescription=!1;this.enableLlmSummarization=$C(this.activeSession,"enableLlmSummarization")&&this.activeSession.isInternalSession();this.hasIssueSummary=this.isLoadingIssueSummary=this.isIssueSummaryExpanded=!1;this.isSummarizable$=this.issueId$.pipe(zf(function(H){return jjc(E.prompts,H)}));this.issueSummaryRequested$=new B.ReplaySubject(1);this.issueSummary$=
this.issueSummaryRequested$.pipe(Cf(this.issueId$),zf(function(H){H=l(H);H.next();H=H.next().value;return kjc(E.llmService,H,1)}),Bf(function(){E.hasIssueSummary=!0;E.isLoadingIssueSummary=!1}),wf({bufferSize:1,refCount:!0}));this.destroyed$.subscribe(function(){fq(E)});this.issueId$.pipe(Af(this.destroyed$)).subscribe(function(){fq(E);E.hasIssueSummary=!1;E.isIssueSummaryExpanded=!1;E.showFullDescription=!1});this.firstNote$.pipe(Af(this.destroyed$)).subscribe(function(){nnc(E)})};W(PY,Y);
PY.\u0275dir=Y.\u0275dir;var nnc=function(a){setTimeout(function(){var b;a.descriptionHasMore=130<(null==(b=a.descriptionArea)?void 0:b.nativeElement.scrollHeight)},0)};PY.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("IssueId copied","",{duration:2E3})};
PY.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:return u.yield((0,B.firstValueFrom)(a.issueId$),2);case 2:return b=u.yieldResult,u.yield((0,B.firstValueFrom)(a.componentId$),3);case 3:return c=u.yieldResult,d={issueId:b,updateText:"",version:-1},f=null!=(e=Gk(a.statusUpdate$))?e:d,u.yield((0,B.firstValueFrom)(a.accessLevel$),4);case 4:return k=(h=u.yieldResult)&&"INTERNAL"===h?"INTERNAL_AUDIENCE":"EXTERNAL_AUDIENCE",u.yield(a.editStatusUpdateDialogService.show(f,
k,c),5);case 5:q=u.yieldResult;if(!q)return u.return();a.statusUpdateService.update(q).subscribe(function(x){gG(a.issueFridge,b,function(y){y.statusUpdate=x});a.issueFridge.poke(b)});Se(u)}})};
var h_a=function(a){var b,c;return Ne(function(d){return 1==d.nextAddress?d.yield((0,B.firstValueFrom)(a.issueId$),2):3!=d.nextAddress?(b=d.yieldResult,(c=Gk(a.firstEvent$))?d.yield(Bs(a.issueCommentDialogsService,b,c),3):d.return()):d.yield(a.eventsForIssueFridge.poke(b),0)})},NZa=function(a){var b;return Ne(function(c){if(1==c.nextAddress)return c.yield((0,B.firstValueFrom)(a.issue$),2);b=c.yieldResult;if(!b)return c.return();a.draftTitle=b.snapshot[0].title;a.editTitleMode=!0;Se(c)})},fq=function(a){a.isSavingTitle||
(a.draftTitle="",a.editTitleMode=!1)};PY.prototype.saveTitle=function(){var a=this,b;return Ne(function(c){if(1==c.nextAddress)return c.yield((0,B.firstValueFrom)(a.issue$),2);b=c.yieldResult;if(!b||b.snapshot[0].title===a.draftTitle)return fq(a),c.return();a.isSavingTitle=!0;UYb(a.issueFridge,b.issueId,a.draftTitle).subscribe(function(){a.isSavingTitle=!1;fq(a)});Se(c)})};
Qh.Object.defineProperties(PY.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a?(this.issueId$.next(String(a)),this.contextSensitiveRegistry.issueIdOverride$.next(String(a))):this.contextSensitiveRegistry.issueIdOverride$.next(null)}},content:{configurable:!0,enumerable:!0,set:function(a){a&&(this.descriptionArea=a,nnc(this))}}});PY.\u0275fac=function(a){return new (a||PY)(z(GH),z(cH),z(WW),z(OW),z(kY),z(BI),z(EI),z(nP),z(SF),z(bX),z(aX),z(Us))};
PY.\u0275cmp=od({type:PY,selectors:[["issue-sidebar"]],viewQuery:function(a,b){a&1&&zg(mnc,5);if(a&2){var c;yg(c=Bg())&&(b.content=c.first)}},inputs:{issueId:"issueId"},outputs:{closeSidebar:"closeSidebar",navigateToNextIssue:"navigateToNextIssue",navigateToPreviousIssue:"navigateToPreviousIssue"},features:[Jf],decls:17,vars:7,consts:[[1,"container","flex-kids-x"],[1,"details","flex-kids-y","padded-s-sides"],[1,"top-actions","flex-kids-x","space-between","border-bottom"],[1,"flex-kids-x","align-items-center",
"margin-s-left","gap-s"],[4,"ngIf"],["mat-icon-button","","matTooltip","Previous issue","matTooltipPosition","above","aria-label","Previous issue",3,"click"],["svgIcon","chevron-left"],["mat-icon-button","","matTooltip","Next issue","matTooltipPosition","above","aria-label","Next issue",3,"click"],["svgIcon","chevron-right"],["mat-icon-button","","matTooltip","Close sidebar","matTooltipPosition","above","aria-label","Close sidebar",3,"click"],["svgIcon","close"],[4,"ngIf","ngIfElse"],["spinner",""],
[1,"heading-xs","muted","hover-link",3,"href"],["mat-icon-button","","aria-label","copy issue id",1,"gmat-button","small","fade-icon-button","copy-issue-id",3,"click"],["svgIcon","copy",1,"icon-xs"],[1,"title"],[1,"flex"],[1,"card-container"],[1,"card","status-update"],[1,"card-header"],[1,"card-header-inner-left"],["svgIcon","group","color","primary",1,"icon-s"],[1,"card-header-inner-right"],["mat-icon-button","","class","gmat-button small edit-button","aria-label","Edit the status update","matTooltip",
"Edit the status update","matTooltipPosition","above",3,"matTooltipShowDelay","click",4,"ngIf"],["mat-icon-button","","class","gmat-button small expand-button","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue","matTooltipPosition","above",3,"matTooltipShowDelay","click",4,"ngIf"],[1,"bv2-issue-metadata","card"],["svgIcon","release-notes-default","color","primary",1,"icon-s"],["mat-icon-button","","aria-label","Toggle the fields view for this issue",
"matTooltip","Toggle the fields view for this issue","matTooltipPosition","above",1,"gmat-button","small",3,"matTooltipShowDelay","click"],["svgIcon","arrow-down","class","icon-s",4,"ngIf"],["svgIcon","arrow-up","class","icon-s",4,"ngIf"],["class","fields-area margin-top flex-kids-y",4,"ngIf"],["mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"fade-icon-button","gmat-button","small",3,"matTooltipShowDelay","click"],["svgIcon","edit-outline",1,"icon-s"],[1,"full-width"],
["matInput","","type","text","aria-label","Edit issue title","rows","3",3,"cdkTextareaAutosize","cdkAutosizeMinRows","ngModel","bFocus","ngModelChange"],[1,"flex-kids-x","gap","justify-flex-end","padded-bottom","border-bottom"],["mat-stroked-button","","class","gmat-button small",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",1,"gmat-button","small",3,"disabled","click"],["mat-stroked-button","",1,"gmat-button","small",3,"click"],[1,"card","no-border","issue-summary"],["svgIcon","chat_spark_24px",
"color","primary",1,"icon-s"],["mat-icon-button","","aria-label","Show AI generated summary note","dialogLabel","AI generated summary note",1,"gmat-button","small",3,"xapInlineDialog","dialogTabIndex"],["svgIcon","help-outline",1,"icon-s"],["aiHelp",""],["mat-flat-button","","class","gmat-button small generate-summary",3,"click",4,"ngIf"],["mat-icon-button","","class","gmat-button small","aria-label","Toggle the AI-generated summary for this issue","matTooltip","Toggle the AI-generated summary for this issue",
"matTooltipPosition","above",3,"matTooltipShowDelay","click",4,"ngIf"],[1,"issue-summary-area"],[3,"ngTemplateOutlet",4,"ngIf"],["mat-flat-button","",1,"gmat-button","small","generate-summary",3,"click"],["mat-icon-button","","aria-label","Toggle the AI-generated summary for this issue","matTooltip","Toggle the AI-generated summary for this issue","matTooltipPosition","above",1,"gmat-button","small",3,"matTooltipShowDelay","click"],["svgIcon","arrow-down",1,"icon-s"],["svgIcon","arrow-up",1,"icon-s"],
[3,"ngTemplateOutlet"],["mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition","above",1,"gmat-button","small","edit-button",3,"matTooltipShowDelay","click"],["mat-icon-button","","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue","matTooltipPosition","above",1,"gmat-button","small","expand-button",3,"matTooltipShowDelay","click"],["class","status-update-area",4,"ngIf"],
[1,"status-update-area"],[3,"issueId","note","issueAccessLevel","formattingMode",4,"ngIf"],[3,"issueId","note","issueAccessLevel","formattingMode"],[1,"card","description"],["mat-icon-button","","class","gmat-button small edit-button","aria-label","Edit the description","matTooltip","Edit the description","matTooltipPosition","above",3,"matTooltipShowDelay","click",4,"ngIf"],["mat-icon-button","","class","gmat-button small expand-button","aria-label","Toggle the description view for this issue","matTooltip",
"Toggle the description view for this issue","matTooltipPosition","above",3,"matTooltipShowDelay","click",4,"ngIf"],["mat-icon-button","","aria-label","Edit the description","matTooltip","Edit the description","matTooltipPosition","above",1,"gmat-button","small","edit-button",3,"matTooltipShowDelay","click"],["mat-icon-button","","aria-label","Toggle the description view for this issue","matTooltip","Toggle the description view for this issue","matTooltipPosition","above",1,"gmat-button","small",
"expand-button",3,"matTooltipShowDelay","click"],[1,"description-area"],["descriptionArea",""],[1,"description-note"],["class","description-show-more margin-s-top",4,"ngIf"],[1,"description-show-more","margin-s-top"],[3,"click"],[1,"fields-area","margin-top","flex-kids-y"],[3,"issueId"],[1,"text-center"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),P(4,MZa,5,2,"ng-container",4),T(5,"async"),F(),D(6,"div")(7,"button",5),L("click",function(){return b.navigateToPreviousIssue.emit()}),
G(8,"mat-icon",6),F(),D(9,"button",7),L("click",function(){return b.navigateToNextIssue.emit()}),G(10,"mat-icon",8),F(),D(11,"button",9),L("click",function(){return b.closeSidebar.emit()}),G(12,"mat-icon",10),F()()(),P(13,u_a,36,28,"ng-container",11),T(14,"async"),F()(),P(15,v_a,2,0,"ng-template",null,12,Eg));if(a&2){var c=N(16);w(4);C("ngIf",V(5,3,b.issueId$));w(9);C("ngIf",V(14,5,b.issue$))("ngIfElse",c)}},dependencies:[Ez,FB,Tg,hw,ow,jA,aA,nA,cK,bK,EK,Ev,Jv,qA,MJ,OY,jT,LW,Kv],styles:[".fade-icon-button[_ngcontent-%COMP%]{vertical-align:bottom;opacity:0;-webkit-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out}.fade-icon-button[_ngcontent-%COMP%]:focus{opacity:1}.card[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .top-actions[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%]{opacity:1}.container[_ngcontent-%COMP%]{width:440px;height:100%;overflow-y:scroll}.issue-summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.issue-summary-area[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.title[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;overflow-wrap:anywhere;font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:16px 8px}.title[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:8px}.card-container[_ngcontent-%COMP%]{display:grid}.card[_ngcontent-%COMP%]{padding:8px 8px 8px 16px;border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);margin-bottom:16px}.card.no-border[_ngcontent-%COMP%]{border:none}.card-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.card-header-inner-left[_ngcontent-%COMP%], .card-header-inner-right[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.card-header-inner-left[_ngcontent-%COMP%]{font-weight:500;text-transform:uppercase;letter-spacing:.05rem}.card-header-inner-right[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.details[_ngcontent-%COMP%]{width:-webkit-fill-available;width:-moz-fill-available;width:-moz-available;width:fill-available}.status-update[_ngcontent-%COMP%]{padding-left:12px;border-left:4px solid;border-left-color:#1a73e8;border-left-color:var(--primary)}.description-note[_ngcontent-%COMP%]{max-height:160px;overflow:hidden}.full-height[_ngcontent-%COMP%]{max-height:100%}.description-area[_ngcontent-%COMP%], .fields-area[_ngcontent-%COMP%], .status-update-area[_ngcontent-%COMP%]{position:relative}.edit-description[_ngcontent-%COMP%], .edit-status-update[_ngcontent-%COMP%]{opacity:0}.edit-description[_ngcontent-%COMP%]:focus, .edit-status-update[_ngcontent-%COMP%]:focus{opacity:1}.description[_ngcontent-%COMP%]:hover   .edit-description[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]:hover   .edit-status-update[_ngcontent-%COMP%]{opacity:1}\n/*# sourceMappingURL=issue_sidebar.css.map */"]});var onc=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],QY=function(){this.compactMode=this.labelOnlyMode=!1};QY.prototype.ngOnInit=function(){};QY.\u0275fac=function(a){return new (a||QY)};
QY.\u0275cmp=od({type:QY,selectors:[["b-base-chip"]],inputs:{labelOnlyMode:"labelOnlyMode",compactMode:"compactMode",labelClass:"labelClass",hovercardAriaLabel:"hovercardAriaLabel"},ngContentSelectors:[".tooltip-content",".chip-content"],decls:9,vars:6,consts:[[1,"bv2-chip"],["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"field-label-with-help",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"help-label",3,"ngClass"]],template:function(a,
b){a&1&&(eg(onc),D(0,"span",0)(1,"onedev-hovercard",null,1)(3,"div",2)(4,"div",3),fg(5),F()()(),D(6,"div",4)(7,"span",5),fg(8,1),F()()());if(a&2){var c=N(2),d;w(3);Nf("aria-label",b.hovercardAriaLabel);w(3);C("onedevHovercardTrigger",c)("onedevHovercardActive",!b.labelOnlyMode);w(1);Xf("compact-chip",b.compactMode);C("ngClass",null!==(d=b.labelClass)&&void 0!==d?d:"")}},dependencies:[Cv,PJ,UJ],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-chip[_ngcontent-%COMP%]   .field-label-with-help[_ngcontent-%COMP%]{line-height:1em}.bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{font-weight:normal;border-radius:8px;display:inline-block;line-height:18px;padding:0 10px}.bv2-chip[_ngcontent-%COMP%]   .help-label.compact-chip[_ngcontent-%COMP%]{font-size:.7em;margin-top:0;padding:0 6px;vertical-align:inherit}.bv2-edit-issue-details-scroll[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{vertical-align:baseline}.bv2-grid-cell-container[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%] > .field-label-with-help[_ngcontent-%COMP%]{line-height:1}.onedev-hovercard-body[_ngcontent-%COMP%]{line-height:1.6em;width:350px}"]});var RY=function(a){this.documentationLinks=a;this.documentationLink=Ks()};RY.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=zn(this.retentionState.scheduledDeletionTime):this.retentionExpireTime=void 0};RY.\u0275fac=function(a){return new (a||RY)(z(yL))};
RY.\u0275cmp=od({type:RY,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Fd],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["indefinite",""],["target","_blank",3,"href"],[3,"mode","timestamp"]],template:function(a,b){a&1&&P(0,y_a,6,3,"ng-container",0);a&2&&C("ngIf",b.retentionState&&b.modifiedTime)},dependencies:[Ev,PL],encapsulation:2});var SY=function(a){this.dateFormatter=a;this.compactMode=!1;this.text=""};SY.prototype.ngOnChanges=function(){var a;null!=(null==(a=this.retentionState)?void 0:a.scheduledDeletionTime)?this.text=qeb(zn(this.retentionState.scheduledDeletionTime),!this.compactMode):this.text="Indefinite"};SY.\u0275fac=function(a){return new (a||SY)(z(OL))};
SY.\u0275cmp=od({type:SY,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},features:[Fd],decls:1,vars:1,template:function(a,b){a&1&&Q(0);a&2&&jg(b.text)},encapsulation:2});var TY=function(){this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};TY.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=A_a(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};TY.\u0275fac=function(a){return new (a||TY)(z(yL))};
TY.\u0275cmp=od({type:TY,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Fd],decls:1,vars:1,consts:[["hovercardAriaLabel","Retention Chip Hovercard",3,"compactMode","labelClass","labelOnlyMode",4,"ngIf"],["hovercardAriaLabel","Retention Chip Hovercard",3,"compactMode","labelClass","labelOnlyMode"],[1,"chip-content"],[3,"retentionState",
"compactMode"],[1,"tooltip-content"],[3,"retentionState","modifiedTime"]],template:function(a,b){a&1&&P(0,z_a,5,7,"b-base-chip",0);a&2&&C("ngIf",b.showRetentionInfo)},dependencies:[Ev,QY,SY,RY],styles:["[_nghost-%COMP%]     .help-label{white-space:nowrap;color:#202124;color:var(--text-high-contrast)}[_nghost-%COMP%]     .help-label.expiring{background-color:#e8eaed;background-color:var(--chip-bg)}[_nghost-%COMP%]     .help-label.danger{background-color:#fcad70;background-color:var(--expiring-bg);color:rgba(0,0,0,.7);color:var(--expiring-text)}"]});var pnc=qh("transform",[th("open, open-instant",sh({transform:"none",visibility:"visible"})),th("void",sh({"box-shadow":"none",visibility:"hidden"})),uh("void => open-instant",rh("0ms")),uh("void <=> open, open-instant => void",rh("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))]);var qnc=["*"],rnc=["content"],snc=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],tnc=new Ad("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:D_a}),unc=new Ad("MAT_DRAWER_CONTAINER"),UY=function(a,b,c,d,e){Ay.call(this,c,d,e);this._changeDetectorRef=a;this._container=b};W(UY,Ay);UY.\u0275dir=Ay.\u0275dir;UY.prototype.ngAfterContentInit=function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})};
UY.\u0275fac=function(a){return new (a||UY)(z(xv),z(fd(function(){return VY})),z(ae),z(zy),z(Df))};
UY.\u0275cmp=od({type:UY,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(a,b){a&2&&Wf("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px")},features:[lg([{provide:Ay,useExisting:UY}]),Jf],ngContentSelectors:qnc,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},encapsulation:2,changeDetection:0});
var WY=function(a,b,c,d,e,f,h,k){var q=this;this._elementRef=a;this._focusTrapFactory=b;this._focusMonitor=c;this._platform=d;this._ngZone=e;this._interactivityChecker=f;this._doc=h;this._container=k;this._elementFocusedBeforeDrawerWasOpened=null;this._enableAnimations=!1;this._position="start";this._mode="over";this._opened=this._disableClose=!1;this._animationStarted=new B.Subject;this._animationEnd=new B.Subject;this._animationState="void";this.openedChange=new Yu(!0);this._openedStream=this.openedChange.pipe(cf(function(u){return u}),
A(function(){}));this.openedStart=this._animationStarted.pipe(cf(function(u){return u.fromState!==u.toState&&0===u.toState.indexOf("open")}),sf());this._closedStream=this.openedChange.pipe(cf(function(u){return!u}),A(function(){}));this.closedStart=this._animationStarted.pipe(cf(function(u){return u.fromState!==u.toState&&"void"===u.toState}),sf());this._destroyed=new B.Subject;this.onPositionChanged=new Yu;this._modeChanged=new B.Subject;this.openedChange.subscribe(function(u){u?(q._doc&&(q._elementFocusedBeforeDrawerWasOpened=
q._doc.activeElement),q._takeFocus()):q._isFocusWithinDrawer()&&q._restoreFocus(q._openedVia||"program")});this._ngZone.runOutsideAngular(function(){(0,B.fromEvent)(q._elementRef.nativeElement,"keydown").pipe(cf(function(u){return 27===u.keyCode&&!q.disableClose&&!eh(u)}),Af(q._destroyed)).subscribe(function(u){return q._ngZone.run(function(){q.close();u.stopPropagation();u.preventDefault()})})});this._animationEnd.pipe(mf(function(u,x){return u.fromState===x.fromState&&u.toState===x.toState})).subscribe(function(u){var x=
u.fromState;u=u.toState;(0===u.indexOf("open")&&"void"===x||"void"===u&&0===x.indexOf("open"))&&q.openedChange.emit(q._opened)})};g=WY.prototype;g._forceFocus=function(a,b){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var c=function(){a.removeEventListener("blur",c);a.removeEventListener("mousedown",c);a.removeAttribute("tabindex")};a.addEventListener("blur",c);a.addEventListener("mousedown",c)}));a.focus(b)};
g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};g._takeFocus=function(){var a=this;if(this._focusTrap){var b=this._elementRef.nativeElement;switch(this.autoFocus){case !1:case "dialog":break;case !0:case "first-tabbable":aKb(this._focusTrap).then(function(c){c||"function"!==typeof a._elementRef.nativeElement.focus||b.focus()});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}};
g._restoreFocus=function(a){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?Pw(this._focusMonitor,this._elementFocusedBeforeDrawerWasOpened,a):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)};g._isFocusWithinDrawer=function(){var a=this._doc.activeElement;return!!a&&this._elementRef.nativeElement.contains(a)};
g.ngAfterViewInit=function(){this._isAttached=!0;this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement);this._updateFocusTrapState();"end"===this._position&&this._updatePositionInParent("end")};g.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)};
g.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy();var a;null==(a=this._anchor)||a.remove();this._anchor=null;this._animationStarted.complete();this._animationEnd.complete();this._modeChanged.complete();this._destroyed.next();this._destroyed.complete()};g.open=function(a){return this.toggle(!0,a)};g.close=function(){return this.toggle(!1)};g._closeViaBackdropClick=function(){return this._setOpen(!1,!0,"mouse")};
g.toggle=function(a,b){(a=void 0===a?!this.opened:a)&&b&&(this._openedVia=b);b=this._setOpen(a,!a&&this._isFocusWithinDrawer(),this._openedVia||"program");a||(this._openedVia=null);return b};g._setOpen=function(a,b,c){var d=this;(this._opened=a)?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",b&&this._restoreFocus(c));this._updateFocusTrapState();return new Promise(function(e){d.openedChange.pipe(nf()).subscribe(function(f){return e(f?"open":"close")})})};
g._getWidth=function(){return this._elementRef.nativeElement?this._elementRef.nativeElement.offsetWidth||0:0};g._updateFocusTrapState=function(){if(this._focusTrap){var a;this._focusTrap.enabled=!(null==(a=this._container)||!a.hasBackdrop)}};
g._updatePositionInParent=function(a){var b=this._elementRef.nativeElement,c=b.parentNode;"end"===a?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),c.insertBefore(this._anchor,b)),c.appendChild(b)):this._anchor&&this._anchor.parentNode.insertBefore(b,this._anchor)};
Qh.Object.defineProperties(WY.prototype,{position:{configurable:!0,enumerable:!0,get:function(){return this._position},set:function(a){a="end"===a?"end":"start";a!==this._position&&(this._isAttached&&this._updatePositionInParent(a),this._position=a,this.onPositionChanged.emit())}},mode:{configurable:!0,enumerable:!0,get:function(){return this._mode},set:function(a){this._mode=a;this._updateFocusTrapState();this._modeChanged.next()}},disableClose:{configurable:!0,enumerable:!0,get:function(){return this._disableClose},
set:function(a){this._disableClose=ah(a)}},autoFocus:{configurable:!0,enumerable:!0,get:function(){var a=this._autoFocus;return null==a?"side"===this.mode?"dialog":"first-tabbable":a},set:function(a){if("true"===a||"false"===a||null==a)a=ah(a);this._autoFocus=a}},opened:{configurable:!0,enumerable:!0,get:function(){return this._opened},set:function(a){this.toggle(ah(a))}}});WY.\u0275fac=function(a){return new (a||WY)(z(ae),z(Kw),z(Ow),z(Fw),z(Df),z(Gw),z(Oh,8),z(unc,8))};
WY.\u0275cmp=od({type:WY,selectors:[["mat-drawer"]],viewQuery:function(a,b){a&1&&zg(rnc,5);if(a&2){var c;yg(c=Bg())&&(b._content=c.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(a,b){a&1&&Sja("@transform.start",function(c){return b._animationStarted.next(c)})("@transform.done",function(c){return b._animationEnd.next(c)});a&2&&(Nf("align",null),dg("@transform",b._animationState),Xf("mat-drawer-end","end"===b.position)("mat-drawer-over","over"===
b.mode)("mat-drawer-push","push"===b.mode)("mat-drawer-side","side"===b.mode)("mat-drawer-opened",b.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:qnc,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],
["content",""]],template:function(a){a&1&&(eg(),D(0,"div",0,1),fg(2),F())},dependencies:[Ay],encapsulation:2,data:{animation:[pnc]},changeDetection:0});
var VY=function(a,b,c,d,e,f,h){var k=this;f=void 0===f?!1:f;this._dir=a;this._element=b;this._ngZone=c;this._changeDetectorRef=d;this._animationMode=h;this._drawers=new Cg;this.backdropClick=new Yu;this._destroyed=new B.Subject;this._doCheckSubject=new B.Subject;this._contentMargins={left:null,right:null};this._contentMarginChanges=new B.Subject;a&&a.change.pipe(Af(this._destroyed)).subscribe(function(){k._validateDrawers();XY(k)});e.change().pipe(Af(this._destroyed)).subscribe(function(){return XY(k)});
this._autosize=f};
VY.prototype.ngAfterContentInit=function(){var a=this;this._allDrawers.changes.pipe(yf(this._allDrawers),Af(this._destroyed)).subscribe(function(b){a._drawers.reset(b.filter(function(c){return!c._container||c._container===a}));xg(a._drawers)});this._drawers.changes.pipe(yf(null)).subscribe(function(){a._validateDrawers();a._drawers.forEach(function(b){a._watchDrawerToggle(b);a._watchDrawerPosition(b);a._watchDrawerMode(b)});(!a._drawers.length||a._isDrawerOpen(a._start)||a._isDrawerOpen(a._end))&&XY(a);
a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._doCheckSubject.pipe(jf(10),Af(a._destroyed)).subscribe(function(){return XY(a)})})};VY.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete();this._doCheckSubject.complete();this._drawers.destroy();this._destroyed.next();this._destroyed.complete()};VY.prototype.open=function(){this._drawers.forEach(function(a){return a.open()})};VY.prototype.close=function(){this._drawers.forEach(function(a){return a.close()})};
var XY=function(a){var b=0,c=0;if(a._left&&a._left.opened)if("side"==a._left.mode)b+=a._left._getWidth();else if("push"==a._left.mode){var d=a._left._getWidth();b+=d;c-=d}a._right&&a._right.opened&&("side"==a._right.mode?c+=a._right._getWidth():"push"==a._right.mode&&(d=a._right._getWidth(),c+=d,b-=d));b=b||null;c=c||null;if(b!==a._contentMargins.left||c!==a._contentMargins.right)a._contentMargins={left:b,right:c},a._ngZone.run(function(){return a._contentMarginChanges.next(a._contentMargins)})};
g=VY.prototype;g.ngDoCheck=function(){var a=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return a._doCheckSubject.next()})};
g._watchDrawerToggle=function(a){var b=this;a._animationStarted.pipe(cf(function(c){return c.fromState!==c.toState}),Af(this._drawers.changes)).subscribe(function(c){"open-instant"!==c.toState&&"NoopAnimations"!==b._animationMode&&b._element.nativeElement.classList.add("mat-drawer-transition");XY(b);b._changeDetectorRef.markForCheck()});"side"!==a.mode&&a.openedChange.pipe(Af(this._drawers.changes)).subscribe(function(){return b._setContainerClass(a.opened)})};
g._watchDrawerPosition=function(a){var b=this;a&&a.onPositionChanged.pipe(Af(this._drawers.changes)).subscribe(function(){b._ngZone.onMicrotaskEmpty.pipe(nf()).subscribe(function(){b._validateDrawers()})})};g._watchDrawerMode=function(a){var b=this;a&&a._modeChanged.pipe(Af((0,B.merge)(this._drawers.changes,this._destroyed))).subscribe(function(){XY(b);b._changeDetectorRef.markForCheck()})};
g._setContainerClass=function(a){var b=this._element.nativeElement.classList;a?b.add("mat-drawer-container-has-open"):b.remove("mat-drawer-container-has-open")};g._validateDrawers=function(){var a=this;this._start=this._end=null;this._drawers.forEach(function(b){"end"==b.position?a._end=b:a._start=b});this._right=this._left=null;this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)};
g._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode};g._onBackdropClicked=function(){this.backdropClick.emit();this._closeModalDrawersViaBackdrop()};g._closeModalDrawersViaBackdrop=function(){var a=this;[this._start,this._end].filter(function(b){return b&&!b.disableClose&&a._drawerHasBackdrop(b)}).forEach(function(b){return b._closeViaBackdropClick()})};
g._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)};g._isDrawerOpen=function(a){return null!=a&&a.opened};g._drawerHasBackdrop=function(a){return null==this._backdropOverride?!!a&&"side"!==a.mode:this._backdropOverride};
Qh.Object.defineProperties(VY.prototype,{start:{configurable:!0,enumerable:!0,get:function(){return this._start}},end:{configurable:!0,enumerable:!0,get:function(){return this._end}},autosize:{configurable:!0,enumerable:!0,get:function(){return this._autosize},set:function(a){this._autosize=ah(a)}},hasBackdrop:{configurable:!0,enumerable:!0,get:function(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)},set:function(a){this._backdropOverride=null==a?null:ah(a)}},scrollable:{configurable:!0,
enumerable:!0,get:function(){return this._userContent||this._content}}});VY.\u0275fac=function(a){return new (a||VY)(z(py,8),z(ae),z(Df),z(xv),z(Dy),z(tnc),z(iu,8))};
VY.\u0275cmp=od({type:VY,selectors:[["mat-drawer-container"]],contentQueries:function(a,b,c){a&1&&(Ag(c,UY,5),Ag(c,WY,5));if(a&2){var d;yg(d=Bg())&&(b._content=d.first);yg(d=Bg())&&(b._allDrawers=d)}},viewQuery:function(a,b){a&1&&zg(UY,5);if(a&2){var c;yg(c=Bg())&&(b._userContent=c.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(a,b){a&2&&Xf("mat-drawer-container-explicit-backdrop",b._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},
outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[lg([{provide:unc,useExisting:VY}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(a,b){a&1&&(eg(snc),P(0,B_a,1,2,"div",0),fg(1),fg(2,1),P(3,C_a,2,0,"mat-drawer-content",1));a&2&&(C("ngIf",b.hasBackdrop),w(3),C("ngIf",!b._content))},dependencies:[Ev,
UY],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],
encapsulation:2,changeDetection:0});var vnc=["*"],wnc=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],YY=function(a,b,c,d,e){UY.call(this,a,b,c,d,e)};W(YY,UY);YY.\u0275dir=UY.\u0275dir;YY.\u0275fac=function(a){return new (a||YY)(z(xv),z(fd(function(){return ZY})),z(ae),z(zy),z(Df))};
YY.\u0275cmp=od({type:YY,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(a,b){a&2&&Wf("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px")},features:[lg([{provide:Ay,useExisting:YY}]),Jf],ngContentSelectors:vnc,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},encapsulation:2,changeDetection:0});
var $Y=function(){WY.apply(this,arguments);this._fixedInViewport=!1;this._fixedBottomGap=this._fixedTopGap=0};W($Y,WY);
Qh.Object.defineProperties($Y.prototype,{fixedInViewport:{configurable:!0,enumerable:!0,get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=ah(a)}},fixedTopGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=dh(a)}},fixedBottomGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=dh(a)}}});
$Y.\u0275fac=function(){var a;return function(b){return(a||(a=Zd($Y)))(b||$Y)}}();
$Y.\u0275cmp=od({type:$Y,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(a,b){a&2&&(Nf("align",null),Wf("top",b.fixedInViewport?b.fixedTopGap:null,"px")("bottom",b.fixedInViewport?b.fixedBottomGap:null,"px"),Xf("mat-drawer-end","end"===b.position)("mat-drawer-over","over"===b.mode)("mat-drawer-push","push"===b.mode)("mat-drawer-side","side"===b.mode)("mat-drawer-opened",b.opened)("mat-sidenav-fixed",b.fixedInViewport))},
inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Jf],ngContentSelectors:vnc,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(a){a&1&&(eg(),D(0,"div",0,1),fg(2),F())},dependencies:[Ay],encapsulation:2,data:{animation:[pnc]},changeDetection:0});var ZY=function(){VY.apply(this,arguments);this._content=this._allDrawers=void 0};W(ZY,VY);
ZY.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(ZY)))(b||ZY)}}();
ZY.\u0275cmp=od({type:ZY,selectors:[["mat-sidenav-container"]],contentQueries:function(a,b,c){a&1&&(Ag(c,YY,5),Ag(c,$Y,5));if(a&2){var d;yg(d=Bg())&&(b._content=d.first);yg(d=Bg())&&(b._allDrawers=d)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(a,b){a&2&&Xf("mat-drawer-container-explicit-backdrop",b._backdropOverride)},exportAs:["matSidenavContainer"],features:[lg([{provide:unc,useExisting:ZY}]),Jf],ngContentSelectors:["mat-sidenav",
"mat-sidenav-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(a,b){a&1&&(eg(wnc),P(0,E_a,1,2,"div",0),fg(1),fg(2,1),P(3,F_a,2,0,"mat-sidenav-content",1));a&2&&(C("ngIf",b.hasBackdrop),w(3),C("ngIf",!b._content))},dependencies:[Ev,YY],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],
encapsulation:2,changeDetection:0});var aZ=function(){};aZ.\u0275fac=function(a){return new (a||aZ)};aZ.\u0275mod=qd({type:aZ});aZ.\u0275inj=ad({imports:[Sv,Ty,Ey,Ey,Ty]});var xnc=["issueSidenavContainer"],r0a=function(a,b,c){return{low:a,high:b,p0:c}},Y0a=function(a){return{id:a}},D1a=function(a,b){return{"bv2-grid-cell-variable-height":a,"rtl-component-path":b}},f2a=function(){return[]},bZ=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J){var O=this;this.activeSession=a;this.cdr=b;this.elementRef=c;this.teamsService=d;this.ngZone=e;this.userPreferencesManager=f;this.hotlistFridge=h;this.issueFridge=k;this.bLocation=q;this.issuePagination=u;this.paths=x;this.errorHandler=y;
this.$log=E;this.domSafe=H;this.currentTracker=J;this.ISSUE_STATUS_JS_ICON_NAME=TTb;this.STATUS_JS_FULL_TEXT=Uk;this.STATUS_JS_TERSE=QC;this.lastCheckedIndex=null;this.focusedRowIndexChange=new Yu;this.columns=[];this.columnsChange=new Yu;this.enableColumnSaving=!1;this.sort=null;this.enableSidebar=!1;this.sortChange=new Yu;this.rowClick=new Yu;this.init=new Yu;this.onRowDragDrop=new Yu;this.onNextPage=new Yu;this.onPrevPage=new Yu;this.selectionCallbacks=[];this.GET_ISSUE_ACCESS_LEVEL_TITLE=HTa;
this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=$C(this.activeSession,"enableAggregationRules");this.isIssueSidebarOpen=this.isIssueSidebarEnabled=!1;this.destroyed$=new B.ReplaySubject(1);this.starInProgress={};this.readUnreadOptOut=$C(this.activeSession,"readUnreadOptOut");b=Ba(CUa);a.isInternalSession()||(za(b,"minSlo"),za(b,"responseSlo"),za(b,"assignmentSlo"),za(b,"closureSlo"),za(b,"deletionTime"),za(b,"team"),za(b,"estimate"),za(b,"estimateTotalOpen"),za(b,"estimateTotalComplete"));this.availableColumns=
b.map(Dp);this.dragDropLogic=new $ic({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(R){return ync(O,R)},onRowDragDrop:function(R){O.onRowDragDrop.emit(R)}})};g=bZ.prototype;
g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.isIssueSidebarEnabled=this.enableSidebar&&$C(this.activeSession,"enableIssueSidebar")||!1;this.init.emit(this)};
g.ngOnChanges=function(a){if(a.searchResults){var b,c=zpa((null==(b=this.searchResults)?void 0:b.issues.map(function(e){return new Set([].concat(p(e.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(p(c)))}if(a.searchResults||a.columns)for(b=l(this.columns),c=b.next();!c.done;c=b.next())"TEAM"===c.value.label&&znc(this);if(a.searchResults){b=a.searchResults.currentValue;var d;a=new Set((null==(d=a.searchResults.previousValue)?void 0:d.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||
[]);d=new Set((null==b?void 0:b.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||[]);Qpa(a,d)||cZ(this)}};g.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};g.focus=function(){this.grid.focus()};g.selectAll=function(){if(this.searchResults){for(var a=l(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}cZ(this)};
var Anc=function(a){if(a.searchResults){for(var b=l(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}cZ(a)};bZ.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};var O_a=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1};
bZ.prototype.someIssuesSelected=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};bZ.prototype.getHeaderCheckboxState=function(){if(!this.searchResults)return"unchecked";for(var a=!0,b=!1,c=l(this.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected?b=!0:a=!1;return a?"checked":b?"indeterminate":"unchecked"};
bZ.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};var Cnc=function(a){if(Bnc(a)&&null!=a.focusedRowIndex&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),cZ(a))}};
bZ.prototype.toggleAllIssueSelection=function(){if(this.searchResults){for(var a=!this.someIssuesSelected(),b=l(this.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=a;this.cdr.detectChanges();cZ(this)}};
var H_a=function(a){null!=a.focusedRowIndex&&a.searchResults&&a.focusedRowIndex<a.searchResults.issues.length-1?(a.focusedRowIndex++,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasNextPage()&&GXb(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},I_a=function(a){null!=a.focusedRowIndex&&0<a.focusedRowIndex?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),
a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&GXb(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},dZ=function(a,b){b=void 0===b?{}:b;var c=a.getFocusedIssue();c&&(b.openInNewTab?a.domSafe.openInNewTab(a.paths.editIssue(c.issueId)):a.bLocation.url(a.paths.editIssue(c.issueId)))};
bZ.prototype.getFocusedIssue=function(){return Bnc(this)&&null!=this.focusedRowIndex&&this.searchResults?this.searchResults.issues[this.focusedRowIndex]:null};var Dnc=function(a,b){a.selectionCallbacks.push(b);b()};
bZ.prototype.onCheckboxClicked=function(a,b,c){if(a.shiftKey&&(a=c.selected,null!==this.lastCheckedIndex&&this.searchResults)){if(b<this.lastCheckedIndex){var d=b+1;var e=this.lastCheckedIndex+1}else d=this.lastCheckedIndex,e=b;d=this.searchResults.issues.slice(d,e);d=l(d);for(e=d.next();!e.done;e=d.next())e.value.selected=!a;cZ(this)}c.selected=!c.selected;this.lastCheckedIndex=b;cZ(this)};
var cZ=function(a){a=l(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},Enc=function(a){Bnc(a)&&null!=a.focusedRowIndex&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},Fnc=function(a,b){b=void 0===b?!0:b;var c=a.getSelectedIssues();if(0!==c.length){for(var d=l(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();IH(a.issueFridge,c.map(function(f){return f.issueId}),{markRead:b}).then(function(f){for(var h=l(c),k=h.next();!k.done;k=
h.next()){var q=void 0;k.value.lastViewedTime=null!=(q=f)?q:null}}).catch(function(){for(var f=l(c),h=f.next();!h.done;h=f.next())h=h.value,h.isRead=!!h.lastViewedTime&&h.lastViewedTime>=h.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
bZ.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,TYb(this.issueFridge,String(a.issueId),a.starred).pipe(nf(),Af(this.destroyed$)).subscribe(function(){b.starInProgress[a.issueId]=!1;b.cdr.detectChanges()},function(c){a.starred=!a.starred;b.starInProgress[a.issueId]=!1;b.errorHandler.errorHandler(null,c);b.cdr.detectChanges()}))};
bZ.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var Bnc=function(a){return null!=a.searchResults&&null!=a.focusedRowIndex&&0<=a.focusedRowIndex&&a.focusedRowIndex<a.searchResults.issues.length},ync=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},znc=function(a){if(a.searchResults){for(var b=new Set,c=l(a.searchResults.issues),d=c.next();!d.done;d=c.next())d=String(d.value.teamId),"0"!==d&&b.add(d);0<b.size?(a.isLoadingTeams=!0,GZb(a.teamsService,[].concat(p(b))).pipe(Af(a.destroyed$)).subscribe(function(e){if(a.searchResults)for(var f=
l(a.searchResults.issues),h=f.next();!h.done;h=f.next()){h=h.value;var k=String(h.teamId);"0"!==k&&(k=e.get(k))&&(h.team=k.name)}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};g=bZ.prototype;g.isIssueGridColumn=function(){return!0};g.isLowPriority=function(a){return 2<=Number(a.priority)};g.isHighPriority=function(a){return 2>Number(a.priority)};g.isP0Priority=function(a){return 0===Number(a.priority)};
g.getComponentPath=function(a){return ni(a)?a.join(" > "):(a=is(this.currentTracker,a))&&a.componentPathName?a.componentPathName.join(" > "):""};bZ.\u0275fac=function(a){return new (a||bZ)(z(Us),z(yD,2),z(ae),z(uI),z(Df),z(iE),z(rH),z(GH),z(wE),z(JF),z(xE),z(XF),z(dE),z(zL),z(jG))};
bZ.\u0275cmp=od({type:bZ,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&(zg(BW,7),zg(xnc,5));if(a&2){var c;yg(c=Bg())&&(b.grid=c.first);yg(c=Bg())&&(b.sideNavContainer=c.first)}},inputs:{searchResults:"searchResults",focusedRowIndex:"focusedRowIndex",columns:"columns",enableColumnSaving:"enableColumnSaving",sort:"sort",enableSidebar:"enableSidebar"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",columnsChange:"columnsChange",sortChange:"sortChange",rowClick:"rowClick",init:"init",
onRowDragDrop:"onRowDragDrop",onNextPage:"onNextPage",onPrevPage:"onPrevPage"},features:[lg([yD]),Fd],decls:6,vars:2,consts:[["hasBackdrop","false",3,"sidebar-enabled",4,"ngIf","ngIfElse"],["issuesGrid",""],["issueWithHovercard",""],["hasBackdrop","false"],["issueSidenavContainer",""],["mode","side","position","end",3,"opened"],[3,"issueId","closeSidebar","navigateToNextIssue","navigateToPreviousIssue"],[4,"ngTemplateOutlet"],[1,"keep-focus-ring",3,"list","columns","focusedRowIndex","scrollContainer",
"sort","rowLabelRenderer","columnsChange","focusedRowIndexChange","sortChange","rowClick"],["class","focus-indicator",4,"forHeaderCell"],["class","drag-handle",4,"forHeaderCell"],["class","selected-box",4,"forHeaderCell"],[4,"forHeaderCell"],[4,"forHeaderCellDefault"],["class","focus-indicator",4,"forViewCell"],["class","drag-handle","draggable","true",4,"forViewCell"],["class","selected-box",4,"forViewCell"],["class","star-cell",4,"forViewCell"],[4,"forViewCell"],["data-template","issueId","class",
"clickable issue-id-cell",4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height",4,"forViewCell"],["class","priority-cell clickable",4,"forViewCell"],["class","severity-cell clickable",4,"forViewCell"],["data-stable-cell","status","class","clickable",4,"forViewCell"],["data-stable-cell","type","class","clickable",4,"forViewCell"],["class","clickable",4,"forViewCell"],["class","clickable datetime-cell",4,"forViewCell"],["class","componentPath-cell clickable",3,"ngClass",
4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],[1,"focus-indicator"],[4,"ngIf"],[1,"drag-handle"],[1,"selected-box"],["tabindex","0","aria-label","Select all issues","role","checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"state","click","keydown.enter","keydown.space"],[3,"column"],[3,"column","availableColumns","selectedColumns","selectedColumnsChange",4,"ngIf"],[3,"column",4,"ngIf"],[3,"column","availableColumns","selectedColumns","selectedColumnsChange"],
["draggable","true",1,"drag-handle"],["tabindex","-1","role","checkbox",3,"state","click"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage","starClicked"],["data-template","issueId",1,"clickable","issue-id-cell"],[3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],["tabindex","-1",1,"row-issue-id",3,"href"],[1,"row-issue-id",3,"issueId","showCopyOptions","click"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container"],[3,"accessLevel","compactMode"],[3,
"trackerId","compactMode"],[3,"retentionState","showOnlyInDangerZone","compactMode","modifiedTime"],[1,"bv2-grid-cell-text"],[1,"row-issue-title",3,"href"],["class","bv2-hotlist-chips",4,"ngIf"],[1,"bv2-hotlist-chips"],[3,"id","removable",4,"ngFor","ngForOf"],[3,"id","removable"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"ngClass"],[1,"severity-cell","clickable"],["data-stable-cell","status",1,"clickable"],[3,"ngSwitch","title"],["class","icon-s",3,"svgIcon",4,"ngSwitchCase"],[3,"class",
4,"ngSwitchDefault"],[1,"icon-s",3,"svgIcon"],["data-stable-cell","type",1,"clickable"],[1,"clickable"],[3,"email",4,"ngIf"],[3,"email"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"clickable","datetime-cell"],["mode","datetime",3,"timestamp"],[1,"componentPath-cell","clickable",3,"ngClass"],[1,"clickable","first-letter-capitalized"],[3,"sloId","sloStatus","sloStartTime",4,"ngIf"],[3,"sloId","sloStatus","sloStartTime"],[3,"sloStatus","sloStartTime"],[3,"sloId","sloStatus",
"sloStartTime","onlyShowMetric",4,"ngIf"],[3,"sloId","sloStatus","sloStartTime","onlyShowMetric"],[3,"sloBounds"],["mode","date",3,"timestamp",4,"ngIf"],["mode","date",3,"timestamp"],["class","animated-loading-bar",4,"ngIf"],[1,"animated-loading-bar"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"],
["cardBody",""]],template:function(a,b){a&1&&(D(0,"div"),P(1,J_a,6,5,"mat-sidenav-container",0),F(),P(2,g2a,47,54,"ng-template",null,1,Eg),P(4,i2a,5,2,"ng-template",null,2,Eg));if(a&2){var c=N(3);w(1);C("ngIf",b.isIssueSidebarEnabled)("ngIfElse",c)}},dependencies:[JW,Cv,Dv,Ev,Jv,Fv,Gv,Hv,qA,dz,$Y,ZY,YY,BW,GW,CW,DW,EW,wW,yW,PL,IW,CN,mW,TY,HP,XO,KJ,PJ,QJ,UJ,RJ,EV,PY,xR,cU,HW,HI,GI,MI,JI],styles:["mat-sidenav-container.sidebar-enabled[_ngcontent-%COMP%]{height:calc(100vh - 100px)}/*# sourceMappingURL=issues_grid.css.map */"],
changeDetection:0});var eZ=new Cp({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),Gnc=new Cp({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),fZ=new Cp({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),gZ=new Cp({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),Hnc=new Cp({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});var hZ=function(a,b,c){Y.call(this);var d=this;this.snackBar=a;this.issuePicker=b;this.issueApi=c;this.issueAddedToHotlist=new Yu;this.onCloseIssuePicker=function(e){e=void 0===e?[]:e;if(0!==e.length&&null!=d.id){var f=e.join(", ");d.snackBar.open(1===e.length?"Adding issue "+f+" to this hotlist":"Adding multiple issues to this hotlist: "+f,void 0,{duration:2500});d.issueApi.issueBulkEdit({bulkEditOps:[{actions:[{fieldName:"hotlists",value:d.id,actionType:"ADD"}],issueIds:e}]}).then(d.didSave,d.gotErr)}};
this.didSave=function(){d.issueAddedToHotlist.emit();d.snackBar.open("Successfully added to hotlist",void 0,{duration:2500})};this.gotErr=function(e){var f,h,k,q,u=null!=(q=null!=(k=null==e?void 0:null==(f=e.error)?void 0:f.message)?k:null==e?void 0:null==(h=e.data)?void 0:h.message)?q:"Error adding issues to the hotlist";d.snackBar.open(u,"close",{panelClass:"error"})}};W(hZ,Y);hZ.\u0275dir=Y.\u0275dir;hZ.\u0275fac=function(a){return new (a||hZ)(z(SF),z(MV),z(AF))};
hZ.\u0275cmp=od({type:hZ,selectors:[["hotlist-add-issue-btn"]],inputs:{id:["hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},features:[Jf],decls:2,vars:0,consts:[["mat-button","","matTooltip","Add issues to this hotlist",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),Q(1," Add Issue(s) "),F())},dependencies:[Ez,FB],encapsulation:2});var iZ=function(a,b,c,d){Y.call(this);var e=this;this.fridge=a;this.snackBar=b;this.dialog=c;this.events=d;this.id$=new B.ReplaySubject(1);this.hotlist$=this.id$.pipe(zf(function(f){return e.fridge.watchOne(f)}),wf({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(A(function(f){return!(null==f||!f.archived)}),mf());this.archiveActionLabel$=this.archived$.pipe(A(function(f){return f?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(A(function(f){return f?"Unarchive this hotlist":
"Archive this hotlist, hiding it from most searches"}));this.didSave=function(f){return function(){e.snackBar.open(f?"Hotlist was archived":"Hotlist was unarchived",void 0,{duration:2500});e.events.hotlistChanged.next()}};this.gotErr=function(f){return function(h){var k=f?"archiving":"unarchiving";e.snackBar.open(tn(h)||"Error "+k+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(Af(this.destroyed$)).subscribe(function(f){e.latestHotlist=f})};W(iZ,Y);iZ.\u0275dir=Y.\u0275dir;
iZ.prototype.isThinking=function(a){return this.fridge.isThinking(a)};iZ.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};var Jnc=function(a){if(null!=a.latestHotlist){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Uo("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){Inc(a,b)}}):Inc(a,b)}},Inc=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};
iZ.\u0275fac=function(a){return new (a||iZ)(z(rH),z(SF),z(zJ),z(DF))};
iZ.\u0275cmp=od({type:iZ,selectors:[["hotlist-archive-btn"]],inputs:{id:["hotlistId","id"]},features:[Jf,Fd],decls:4,vars:7,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){return Jnc(b)}),T(1,"async"),Q(2),T(3,"async"),F());if(a&2){var c;C("disabled",b.isThinking(b.id))("matTooltip",null!==(c=V(1,3,b.archiveActionTooltip$))&&void 0!==c?c:"");w(2);S(" ",V(3,5,b.archiveActionLabel$)," ")}},dependencies:[Ez,
FB,Kv],encapsulation:2});var jZ=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H){PV.call(this,a,b,c,d,e,f,h,k,q,u,E,H);this.estadoService=x;this.refreshMonitor=y;this.init=new Yu;this.onRefresh=new Yu;this.isHotlistAdmin=!1;this.onExportCsv=new Yu;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!a.currentTracker.inTracker;this.enableBulkEditUi=$C(this.activeSession,"enableBulkEditUi");this.controllerName="gridControls"};W(jZ,PV);
jZ.\u0275dir=PV.\u0275dir;g=jZ.prototype;g.ngOnInit=function(){this.init.emit(this)};g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&Dnc(this.grid,function(){b.onSelectionChange()})};g.getSelectedIssues=function(){var a,b;return null!=(b=null==(a=this.grid)?void 0:a.getSelectedIssues())?b:[]};g.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};g.openInEstado=function(){this.estadoService.openInEstado()};var Knc=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};
jZ.\u0275fac=function(a){return new (a||jZ)(z(OG),z(yD,2),z(Us),z(zH),z(qE),z(EP),z(NN),z(qP),z(Uz),z(dE),z(qW),z(EH),z(MV),z(iE))};
jZ.\u0275cmp=od({type:jZ,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},features:[lg([yD]),Jf,Fd],decls:11,vars:8,consts:[["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"enableBulkEstimatedEffortOption","readStatePrompt",
"onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead",4,"ngIf"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch",4,"ngIf"],["class","bv2-grid-hotlist-picker",4,"ngIf"],[4,"ngIf"],["class","compact","tooltip","Reporting","aria-label","Reporting",3,"size","format","onAction",4,"ngIf"],[1,"bv2-appbar-menu",3,"showExportCsv","showFlagIssuesAsSpam","exportCsvClicked","flagAsSpamClicked"],[3,"externalWarnings",
"save","close"],["addCommentDialog",""],[3,"enableBulkEstimatedEffortOption","readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch"],[1,"bv2-grid-hotlist-picker"],[3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],[3,"hotlistId","issueAddedToHotlist",4,"ngIf"],[3,"hotlistId",4,"ngIf"],[3,"hotlistId","issueAddedToHotlist"],
[3,"hotlistId"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"size","format","onAction"],["name","bar-chart","size","large"],["class","bv2-estado-text",4,"ngIf"],[1,"bv2-estado-text"],["mat-dialog-title",""],[3,"comment","showToolbar","commentChange","onSubmit",4,"ngIf"],["class","bv2-external-component-modal-warning",4,"ngIf"],["class","flex-kids-x justify-flex-end",4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial",
"",1,"gmat-button","medium","primary",3,"disabled","mat-dialog-close"],[3,"comment","showToolbar","commentChange","onSubmit"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"],[1,"flex-kids-x","justify-flex-end"],[3,"onUpdate"]],template:function(a,b){a&1&&(D(0,"b-button",0),L("onAction",function(){return b.refresh()}),G(1,"b-icon",1),F(),P(2,j2a,2,4,"b-app-bar-bulk-edit-menus",2),P(3,k2a,1,2,"b-copy-issue-id-button",3),P(4,l2a,2,2,"div",4),P(5,o2a,3,2,"ng-container",
5),P(6,q2a,3,3,"b-button",6),D(7,"b-app-bar-more-menu",7),L("exportCsvClicked",function(){return b.onExportCsv.emit()})("flagAsSpamClicked",function(){return cic(b)}),F(),D(8,"b-state-modal",8),L("save",function(){return aic(b)})("close",function(){return b.hotkeys.unpause()}),F(),P(9,v2a,11,6,"ng-template",null,9,Eg));a&2&&(w(2),C("ngIf",b.hasSelectedIssues()),w(1),C("ngIf",b.hasSelectedIssues()),w(1),C("ngIf",b.enableBulkEditUi&&b.hasSelectedIssues()),w(1),C("ngIf",b.showHotlistButtons&&!b.hasSelectedIssues()),
w(1),C("ngIf",b.enableEstadoInAppBar),w(1),C("showExportCsv",b.isNonPublicSession)("showFlagIssuesAsSpam",Knc(b)),w(1),C("externalWarnings",b.externalWarnings))},dependencies:[fD,eD,bJ,OT,Dv,Ev,XO,mP,iZ,hZ,XT,bD,Ez,Vz,Wz,Xz,Yz,QT,PT,Kv],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var Lnc=function(a){return{displayText:"Admins",values:a}},Mnc=function(a){return[a]},Nnc=function(a){return{displayText:"Appenders",values:a}},Onc=Uo("You are about to change the administrator privileges for this hotlist.\nMake sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits.\nDo you want to proceed?"),kZ=function(a,b,c,d,e,f,h,k,q){Y.call(this);var u=this;this.hotlistAccessPolicyFridge=a;this.links=b;this.snackBar=
c;this.events=d;this.dialog=f;this.permissions=h;this.userApi=k;this.activeSession=q;this.id$=new B.ReplaySubject(1);this.idSubject$=Fk(this.id$.pipe(Af(this.destroyed$)));this.acl$=this.id$.pipe(zf(function(x){return u.hotlistAccessPolicyFridge.watchOne(x)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=P1b(this.links);this.validity={};this.isValid=function(){return Object.values(u.validity).every(Boolean)};this.isInvalid=function(){return!u.isValid()};
this.allAppenders=[];this.onPressSave=function(){u.isRevokingAdmin()?u.dialog.open({title:"Change Hotlist Admins",content:Onc,isDestructive:!0,onConfirm:u.doSave}):u.doSave()};this.doSave=function(){var x=u.idSubject$.value;if(null!=x){var y=u.isRevokingAdmin();x={id:x,admins:MJa(u.admins),appenders:MJa(u.appenders),editors:null,readers:MJa(u.readers),implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};
u.hotlistAccessPolicyFridge.save(x).subscribe({next:u.didSave(y,x.id),error:u.gotErr})}};this.didSave=function(x,y){return function(){u.snackBar.open("Access control saved",void 0,{duration:2500});u.events.hotlistChanged.next();u.permissions.poke(y);x&&u.doStar()}};this.gotErr=function(x){u.snackBar.open(tn(x)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){var x=u.idSubject$.value;x&&u.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:x,userLogin:u.activeSession.getUserEmail()}).then(function(){u.events.hotlistChanged.next()})};
this.onPressRevert=function(){u.resetEdits()};this.gotAcl=function(x){u.latestPolicy=x;var y,E,H;u.latestCompactPolicy={admins:Eo(null==(y=u.latestPolicy)?void 0:y.admins),appenders:Eo(null==(E=u.latestPolicy)?void 0:E.appenders),readers:Eo(null==(H=u.latestPolicy)?void 0:H.readers)};u.resetEdits()};this.isChanged=function(){var x=u.latestCompactPolicy,y;if(!ki(null!=(y=x.admins)?y:[],u.admins))return!0;var E;if(!ki(null!=(E=x.appenders)?E:[],u.appenders))return!0;var H;return ki(null!=(H=x.readers)?
H:[],u.readers)?!1:!0};this.hasNoChanges=function(){return!u.isChanged()};this.acl$.pipe(Af(this.destroyed$)).subscribe(this.gotAcl);this.subscriptions.add(VW(e,this.isChanged,!1))};W(kZ,Y);kZ.\u0275dir=Y.\u0275dir;var Pnc=function(a){return[].concat(p(new Set([].concat(p(a.admins),p(a.appenders)))))};kZ.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};
kZ.prototype.resetEdits=function(){var a;this.admins=[].concat(p(null!=(a=this.latestCompactPolicy.admins)?a:[]));var b;this.appenders=[].concat(p(null!=(b=this.latestCompactPolicy.appenders)?b:[]));var c;this.readers=[].concat(p(null!=(c=this.latestCompactPolicy.readers)?c:[]));this.allAppenders=Pnc(this)};kZ.prototype.isRevokingAdmin=function(){var a=this.admins,b,c=null!=(b=this.latestCompactPolicy.admins)?b:[];return this.isRevokingDirectAdmin(a,c,this.activeSession.getUserEmail())};
kZ.prototype.isRevokingDirectAdmin=function(a,b,c){c=void 0===c?"":c;if(rra(a,b))return!1;c="USER:"+c;b=b.includes(c);a=!a.includes(c);return b&&a};kZ.\u0275fac=function(a){return new (a||kZ)(z(hH),z(yL),z(SF),z(DF),z(UW),z(zJ),z(eI),z(nH),z(Us))};
kZ.\u0275cmp=od({type:kZ,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[Jf,Fd],decls:22,vars:24,consts:[[1,"flex-kids-y"],[1,"muted","type-s","margin-s-bottom"],[3,"users","usersChange","isValid"],[3,"users","includeAliases","containerChips","usersChange","isValid"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange","isValid"],["target","_blank",3,"href"],["class","margin-top flex-kids-x gap-s",4,"ngIf"],[1,"margin-top",
"flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"gmat-button","medium",3,"disabled","matTooltip","click"],["mat-button","","type","button",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(D(0,"form",0)(1,"label"),Q(2,"Admins"),F(),D(3,"p",1),Q(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),F(),D(5,"b-multi-user-input",2),L("usersChange",function(c){b.admins=c;b.allAppenders=Pnc(b)})("isValid",
function(c){return b.validity.admins=c}),F(),D(6,"label"),Q(7,"View and append"),F(),D(8,"p",1),Q(9,"Reorder hotlist, add/remove issues"),F(),D(10,"b-multi-user-input",3),L("usersChange",function(c){b.appenders=c;b.allAppenders=Pnc(b)})("isValid",function(c){return b.validity.appenders=c}),F(),D(11,"label"),Q(12,"View only"),F(),D(13,"p",1),Q(14,"View the hotlist"),F(),D(15,"b-multi-user-input",4),L("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),F()(),
D(16,"p"),Q(17," Users can see which issues are in a hotlist, even when they don't have view access to the hotlist. See "),D(18,"a",5),Q(19,"access control documentation"),F(),Q(20," for an explanation of the settings.\n"),F(),P(21,w2a,5,4,"div",6));a&2&&(w(5),Xf("disabled",b.isReadOnly),C("users",b.admins),w(5),Xf("disabled",b.isReadOnly),C("users",b.appenders)("includeAliases",!0)("containerChips",og(18,Mnc,og(16,Lnc,b.admins))),w(5),Xf("disabled",b.isReadOnly),C("users",b.readers)("includeAliases",
!0)("includeViewAliases",!0)("containerChips",og(22,Mnc,og(20,Nnc,b.allAppenders))),w(3),C("href",b.accessControlLink,re),w(3),C("ngIf",!b.isReadOnly))},dependencies:[Ev,pw,iw,mw,Ez,FB,nY],styles:["[_nghost-%COMP%] {\n      display: block;\n      max-width: 600px;\n      padding: 16px; \n\n    }\n    label[_ngcontent-%COMP%] {\n      font-weight: bold;\n      line-height: 2em;\n    }"]});var Qnc=["hotlistName"],lZ=function(a,b,c,d){Y.call(this);var e=this;this.fridge=a;this.snackBar=b;this.events=c;this.isReadOnly=!1;this.id$=new B.ReplaySubject(1);this.hotlist$=this.id$.pipe(zf(function(f){return e.fridge.watchOne(f)}));this.isArchived=!1;this.localEdits={};this.gotHotlist=function(f){e.latestHotlist=f;var h;e.isArchived=null!=(h=null==f?void 0:f.archived)?h:!1;e.resetEdits(f)};this.gotErr=function(f){e.snackBar.open(tn(f)||"Error saving the hotlist","close",{panelClass:"error"})};
this.didSave=function(){e.snackBar.open("Hotlist saved",void 0,{duration:2500});e.events.hotlistChanged.next()};this.isChanged=function(){var f,h=null!=(f=e.latestHotlist)?f:{};return!ki(h,e.localEdits)};this.hasNoChanges=function(){return!e.isChanged()};this.save=function(){e.fridge.save(e.localEdits).subscribe({next:e.didSave,error:e.gotErr})};this.revert=function(){e.resetEdits(e.latestHotlist)};this.hotlist$.pipe(Af(this.destroyed$)).subscribe(function(f){e.gotHotlist(f)});this.subscriptions.add(VW(d,
this.isChanged,!1))};W(lZ,Y);lZ.\u0275dir=Y.\u0275dir;lZ.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;null==(b=a.hotlistName)||b.nativeElement.focus()})};lZ.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};lZ.prototype.resetEdits=function(a){var b;this.localEdits=null!=(b=li(a))?b:{}};lZ.\u0275fac=function(a){return new (a||lZ)(z(rH),z(SF),z(DF),z(UW))};
lZ.\u0275cmp=od({type:lZ,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&zg(Qnc,5);if(a&2){var c;yg(c=Bg())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[Jf,Fd],decls:10,vars:5,consts:[["name","hotlist",1,"flex-kids-y"],["for","hotlist-name",1,"required"],["type","text","id","hotlist-name","name","name","required","","aria-required","true","autocomplete","off",3,"disabled","ngModel","ngModelChange"],["hotlistName",""],["for","hotlist-description",
1,"margin-top"],["id","hotlist-description","name","description",3,"disabled","ngModel","ngModelChange"],["class","margin-top flex-kids-x gap-s",4,"ngIf"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"gmat-button","medium",3,"disabled","matTooltip","click"],["mat-button","","type","button",1,"gmat-button","medium",3,"disabled","matTooltip","click"],[3,"hotlistId"]],template:function(a,b){a&1&&(D(0,"form",0)(1,"label",1),Q(2,"Name"),F(),D(3,"input",
2,3),L("ngModelChange",function(c){return b.localEdits.name=c}),F(),D(5,"label",4),Q(6,"Description"),F(),D(7,"textarea",5),L("ngModelChange",function(c){return b.localEdits.description=c}),Q(8,"  "),F(),P(9,x2a,7,7,"div",6),F());a&2&&(w(3),C("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.name),w(4),C("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.description),w(2),C("ngIf",!b.isReadOnly))},dependencies:[Ev,pw,Tg,hw,iw,zw,ow,mw,Ez,FB,iZ,Kv],styles:["[_nghost-%COMP%]{display:block;max-width:600px;padding:16px}label[_ngcontent-%COMP%]{font-weight:bold;line-height:2em}textarea[_ngcontent-%COMP%]{min-height:150px;resize:vertical}input.ng-invalid[_ngcontent-%COMP%], input.ng-invalid.ng-touched[_ngcontent-%COMP%]:not(.mat-input-element){border:1px solid;border-color:#ea4335;border-color:var(--bad)}/*# sourceMappingURL=edit_hotlist_basic.css.map */"]});var mZ=function(a,b){Y.call(this);var c=this;this.hotlists=a;this.acls=b;this.id$=new B.ReplaySubject(1);this.hotlist$=this.id$.pipe(zf(function(d){return c.hotlists.watchOne(d)}))};W(mZ,Y);mZ.\u0275dir=Y.\u0275dir;mZ.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};mZ.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};mZ.\u0275fac=function(a){return new (a||mZ)(z(rH),z(hH))};
mZ.\u0275cmp=od({type:mZ,selectors:[["b-edit-hotlist-header"]],inputs:{id:["hotlistId","id"]},features:[Jf,Fd],decls:9,vars:8,consts:[[1,"flex-kids-x","align-items-center","gap-s","padded-x"],[1,"muted"],[4,"ngIf"],["class","color-bad-text",4,"ngIf"],[1,"color-bad-text"]],template:function(a,b){a&1&&(D(0,"header",0)(1,"h2")(2,"span",1),Q(3),F(),P(4,y2a,2,1,"ng-container",2),T(5,"async"),F(),P(6,z2a,2,0,"strong",3),T(7,"async"),P(8,A2a,1,0,"b-spinner",2),F());if(a&2){var c;w(3);S(" Hotlist ",b.id,
": ");w(1);C("ngIf",V(5,4,b.hotlist$));w(2);C("ngIf",null==(c=V(7,6,b.hotlist$))?null:c.archived);w(2);C("ngIf",b.isThinking(b.id))}},dependencies:[Ev,MJ,Kv],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});var nZ=function(a){Y.call(this);this.activeSession=a;this.URLS=ys;this.id$=new B.ReplaySubject(1);this.enableBulkEditUi=$C(this.activeSession,"enableBulkEditUi")};W(nZ,Y);nZ.\u0275dir=Y.\u0275dir;nZ.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};nZ.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};nZ.\u0275fac=function(a){return new (a||nZ)(z(Us))};
nZ.\u0275cmp=od({type:nZ,selectors:[["b-edit-hotlist-toolbar"]],inputs:{id:["hotlistId","id"]},features:[Jf,Fd],decls:6,vars:2,consts:[[1,"button-bar","border-bottom","padded-s"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],["mat-button","","matTooltip","View the issues tagged with this hotlist",1,"gmat-button","medium","no-visited-no-active",3,"href"],[3,"hotlistId",4,"ngIf"],[3,"hotlistId"]],template:function(a,
b){a&1&&(D(0,"section",0)(1,"b-button",1),L("onAction",function(){return b.onPressBack()}),G(2,"b-icon",2),F(),D(3,"a",3),Q(4," View Issues "),F(),P(5,B2a,2,3,"hotlist-add-issue-btn",4),F());a&2&&(w(3),C("href",b.URLS.HOTLIST_VIEW(b.id),re),w(2),C("ngIf",b.enableBulkEditUi))},dependencies:[Ev,Fz,FB,bJ,bD,hZ,Kv],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var Rnc=new Map([[403,"You do not have permission to view this Hotlist."],[404,"This Hotlist does not exist."]]),oZ=function(a,b,c,d){this.routeParams=a;this.pageTitle=b;this.permissions=c;this.hotlists=d;this.id=this.routeParams.hotlistId;this.resourceId="hotlists/"+this.id;this.isAdmin$=this.permissions.watchOne(this.resourceId).pipe(A(function(e){return null==e?void 0:e.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(A(function(e){var f;return null!=(f=e.status)?f:-1}),A(function(e){var f;
return null!=(f=Rnc.get(e))?f:"unknown error"}),yf(void 0));this.tabIndex=0};oZ.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);window.location.hash.includes("access")&&(this.tabIndex=1)};oZ.\u0275fac=function(a){return new (a||oZ)(z(aO),z(lG),z(eI),z(rH))};
oZ.\u0275cmp=od({type:oZ,selectors:[["edit-hotlist"]],decls:4,vars:6,consts:[[4,"ngIf"],[3,"hotlistId"],[1,"bv2-view"],["gmat-tabs","",3,"selectedIndex"],["label","Basic Information"],[3,"hotlistId","isReadOnly"],["label","Access Control"],["class","muted padded-x",4,"ngIf"],[1,"muted","padded-x"],[1,"padded-x"]],template:function(a,b){a&1&&(P(0,D2a,13,14,"ng-container",0),T(1,"async"),P(2,E2a,7,1,"ng-container",0),T(3,"async"));a&2&&(C("ngIf",void 0===V(1,2,b.hotlistErrorMsg$)),w(2),C("ngIf",V(3,
4,b.hotlistErrorMsg$)))},dependencies:[Ev,DT,CT,rU,gL,kZ,lZ,mZ,nZ,Kv],encapsulation:2});var pZ=function(){};pZ.\u0275fac=function(a){return new (a||pZ)};pZ.\u0275cmp=od({type:pZ,selectors:[["b-error-banner"]],inputs:{error:"error"},decls:1,vars:1,consts:[["messageType","error",4,"ngIf"],["messageType","error"]],template:function(a,b){a&1&&P(0,F2a,3,1,"b-callout",0);a&2&&C("ngIf",b.error)},dependencies:[Ev,nD,oD],encapsulation:2});var qZ=function(){};qZ.\u0275fac=function(a){return new (a||qZ)};qZ.\u0275mod=qd({type:qZ});qZ.\u0275inj=ad({imports:[aD,dJ]});var rZ=function(a){this.activeSession=a;this.sessionIsExternal=a.isExternalSession()};rZ.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!yn(this.email)};rZ.prototype.getName=function(){return void 0===this.email?"":this.email.split("@")[0]};rZ.\u0275fac=function(a){return new (a||rZ)(z(Us))};
rZ.\u0275cmp=od({type:rZ,selectors:[["b-group-email-card"]],inputs:{email:"email"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],["role","dialog","aria-label","Group email hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow","bv2-group-email-card"],[1,"bv2-group-email-card-content"],[1,"bv2-group-email-card-name"],
[1,"bv2-group-email-card-email"],["svgIcon","group"],["class","bv2-group-email-card-links-container",4,"ngIf"],[1,"bv2-group-email-card-links-container"],["target","_blank",1,"bv2-group-email-card-link",3,"href"],[4,"ngIf"]],template:function(a,b){a&1&&(eg(),P(0,L2a,17,5,"ng-container",0),P(1,M2a,1,0,"ng-template",null,1,Eg));if(a&2){var c=N(2);C("ngIf",!!yn(b.email))("ngIfElse",c)}},dependencies:[Ev,Jv,qA,PJ,UJ],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{--onedev-card-background: var(--surface-default, rgb(255, 255, 255));--onedev-card-title-text: var(--text-default, rgb(32, 33, 36));--onedev-card-icon: var(--icon, rgb(95, 99, 104));--onedev-card-secondary-text: var(--text-secondary, rgb(95, 99, 104));--onedev-card-link-color: var(--primary-default, rgb(26, 115, 232))}.onedev-hovercard-content[_ngcontent-%COMP%]{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]{padding:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--onedev-card-link-color)}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px auto;column-gap:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{grid-row:1/span 2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{grid-row:2;grid-column:2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .chips[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:0;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{margin-top:2px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]:empty{margin-top:0px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .subcontent[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline}.onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-group-email-card[_ngcontent-%COMP%]{margin:-15px -20px -20px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]{padding:15px 60px 20px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;vertical-align:middle}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   .bv2-group-email-card-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);padding:10px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:hover, .bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:active{text-decoration:underline}/*# sourceMappingURL=group_email_card.css.map */"]});
var sZ=function(){};sZ.\u0275fac=function(a){return new (a||sZ)};sZ.\u0275mod=qd({type:sZ});sZ.\u0275inj=ad({imports:[aD,CK]});var ika=function(a,b,c,d,e,f){return{"bv2-user-chip-external":a,"bv2-user-chip-non-gaia":b,"bv2-user-chip-not-accessible":c,"bv2-user-chip-container":d,selected:e,readonly:f}},tZ=function(a){Y.call(this);this.activeSession=a;this.isReadonly=!0;this.isSelected=!1;this.isWidgetDisabled=!0;this.nestedChips=this.detailedUserType=this.principalType=null;this.displayText=this.value="";this.accessLevel=void 0;this.chipSelection=new Yu;this.chipClear=new Yu;this.chipRemove=new Yu};W(tZ,Y);tZ.\u0275dir=Y.\u0275dir;
g=tZ.prototype;g.isPublicChip=function(){return"ALIAS"===this.principalType&&["public_non_google","public"].includes(this.value)};g.isNonGaiaChip=function(){return"NON_GAIA"===this.principalType};g.isContainerChip=function(){return null!==this.nestedChips};g.isUserChip=function(){return"USER"===this.principalType};g.isGroupChip=function(){return"GROUP"===this.principalType};g.isDomainChip=function(){return"ALIAS"===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};
g.isExternalChip=function(){return"EXTERNAL"===this.detailedUserType||"PUBLIC"===this.detailedUserType||this.isPublicChip()};g.isExternalPartnerAccessViolated=function(){return"EXTERNAL_PARTNER"===this.accessLevel&&this.isPublicChip()};g.isInternalAccessViolated=function(){return"INTERNAL"===this.accessLevel&&(this.isExternalChip()||this.isPublicChip())};
g.getTooltip=function(){if("ALIAS"!==this.principalType)return"";switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.activeSession.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All logged in users, excluding the google.com domain.";case "public":return"All logged in users.";default:throw Error("pe`"+this.value);}};
var Snc=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};tZ.\u0275fac=function(a){return new (a||tZ)(z(Us))};
tZ.\u0275cmp=od({type:tZ,selectors:[["b-contact-chip"]],inputs:{isReadonly:"isReadonly",isSelected:"isSelected",isWidgetDisabled:"isWidgetDisabled",principalType:"principalType",detailedUserType:"detailedUserType",nestedChips:"nestedChips",value:"value",displayText:"displayText",accessLevel:"accessLevel"},outputs:{chipSelection:"chipSelection",chipClear:"chipClear",chipRemove:"chipRemove"},features:[Jf],decls:9,vars:15,consts:[[1,"bv2-user-chip-item",3,"ngClass","matTooltip","focus","blur"],[1,"alias-icon"],
[3,"svgIcon",4,"ngIf"],[1,"user-chip-name"],[3,"email",4,"ngIf"],[4,"ngIf"],["role","button","tabindex","0","class","user-chip-x keep-focus-ring",3,"matTooltip","click","keydown.enter",4,"ngIf"],["class","bv2-user-chip-nested-content-container",4,"ngIf"],[3,"svgIcon"],[3,"email"],["role","button","tabindex","0",1,"user-chip-x","keep-focus-ring",3,"matTooltip","click","keydown.enter"],["svgIcon","close"],[1,"bv2-user-chip-nested-content-container"],[1,"bv2-user-chip-nested-content"],[1,"jfk-bubble"],
["class","bv2-user-chip",4,"ngFor","ngForOf"],[1,"jfk-bubble-arrow","jfk-bubble-arrowup"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],[1,"bv2-user-chip"],[3,"value","detailedUserType","principalType","accessLevel","displayText"]],template:function(a,b){a&1&&(D(0,"span",0),L("focus",function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),D(1,"span",1),P(2,N2a,1,1,"mat-icon",2),F(),D(3,"div",3),P(4,O2a,2,2,"b-person-hovercard",4),P(5,P2a,2,2,"b-group-email-card",
4),P(6,Q2a,2,1,"div",5),F(),P(7,R2a,2,2,"div",6),P(8,T2a,7,1,"div",7),F());a&2&&(C("ngClass",jka(b.isExternalChip(),b.isNonGaiaChip(),b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated(),b.isContainerChip(),b.isSelected,b.isReadonly))("matTooltip",b.getTooltip()),w(2),C("ngIf",Snc(b)),w(2),C("ngIf",b.isUserChip()),w(1),C("ngIf",b.isGroupChip()),w(1),C("ngIf",!b.isUserChip()&&!b.isGroupChip()),w(1),C("ngIf",!b.isReadonly&&!b.isWidgetDisabled),w(1),C("ngIf",b.isContainerChip()))},dependencies:[Cv,
Dv,Ev,qA,FB,CN,rZ,tZ],styles:["span.bv2-user-chip-item[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:3px;display:block;height:20px;white-space:nowrap}span.bv2-user-chip-item[_ngcontent-%COMP%]   .alias-icon[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{width:18px;height:20px;margin-left:3px;margin-right:-3px;opacity:.6}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{display:inline-block;line-height:16px;margin:2px 5px;max-width:550px;overflow:hidden;text-overflow:ellipsis}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{cursor:pointer;display:inline-block}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:16px;height:20px;opacity:.6;margin-left:-3px;margin-right:2px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%]{margin-top:10px;position:relative;white-space:normal}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%]{position:absolute;width:600px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%]{z-index:900 !important;padding:10px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .bv2-user-chip[_ngcontent-%COMP%] > span.bv2-user-chip-item[_ngcontent-%COMP%]:active{border-color:#3c4043;border-color:var(--gfx)}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .jfk-bubble-arrow[_ngcontent-%COMP%] > .jfk-bubble-arrowimplbefore[_ngcontent-%COMP%]{left:-1px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .jfk-bubble-arrow[_ngcontent-%COMP%] > .jfk-bubble-arrowimplafter[_ngcontent-%COMP%]{left:0}span.bv2-user-chip-item.selected[_ngcontent-%COMP%]   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:hover:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:block}span.bv2-user-chip-item[_ngcontent-%COMP%]:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:active{border-color:#1a73e8;border-color:var(--primary)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item.bv2-user-chip-external[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg)}span.bv2-user-chip-item.bv2-user-chip-non-gaia[_ngcontent-%COMP%]{border:1px dashed;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-not-accessible[_ngcontent-%COMP%]{border:1px solid;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%]{cursor:pointer}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%] > .user-chip-name[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);border-style:dashed;height:14px}/*# sourceMappingURL=contact_chip.css.map */"]});var uZ=function(){};uZ.\u0275fac=function(a){return new (a||uZ)};uZ.\u0275mod=qd({type:uZ});uZ.\u0275inj=ad({imports:[aD,Dw,FC,IO,sZ,RI,nR,sP]});Cka(nY,[Dv,Ev,Tg,hw,ow,mR,rP,tZ]);var vZ=function(){};vZ.\u0275fac=function(a){return new (a||vZ)};vZ.\u0275mod=qd({type:vZ});vZ.\u0275inj=ad({providers:[{provide:Ugc,useValue:{enabled:!0}}],imports:[aD,Dw,SB,FC,HT,cJ,RF,yV,hD,AK,qZ,uZ,rL]});var wZ=function(){};wZ.\u0275fac=function(a){return new (a||wZ)};wZ.\u0275mod=qd({type:wZ});wZ.\u0275inj=ad({imports:[jD,cJ,YV,aD,iP,pP,vZ,aW,hD,SB,Zz,FC,$V,ZV]});var xZ=function(a,b,c,d,e){Y.call(this);this.element=a;this.bLocation=b;this.paths=c;this.hotkeys=d;this.cdr=e;this.focusedIndex=0;this.convertUserToString=zi;this.hotlists=[];this.registerKeys()};W(xZ,Y);xZ.\u0275dir=Y.\u0275dir;g=xZ.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
g.selectPrevious=function(){0>this.focusedIndex-1||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.registerKeys=function(){var a=this,b=rE(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next hotlist",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous hotlist",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View hotlist detail",onPress:function(){var c=a.hotlists[a.focusedIndex];c&&a.editHotlist(c)}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=null==(b=this.element.nativeElement.querySelector("table"))?void 0:null==(c=b.rows)?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.hotlists[a].name};g.editHotlist=function(a){this.bLocation.path(this.paths.editHotlist(a.hotlistId))};
xZ.\u0275fac=function(a){return new (a||xZ)(z(ae),z(wE),z(xE),z(qE),z(yD,2))};
xZ.\u0275cmp=od({type:xZ,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},features:[lg([yD]),Jf],decls:26,vars:1,consts:[[1,"pop-grid","bv2-resource-list"],[1,"header-row"],[1,"focus-indicator"],[1,"bv2-columnheader-content"],[1,"pop-grid-default-th"],[1,"pop-grid-non-sort-header"],["class","bv2-resource-list-row","tabindex","0",3,"grid-focus","click","focus",4,"ngFor","ngForOf"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","hotlist-name","clickable"],
["tabindex","-1",1,"grid-link",3,"href","click"],[1,"bv2-resource-list-cell","hotlist-description","clickable"],[1,"bv2-resource-list-cell","resource-admins","clickable"],[4,"ngFor","ngForOf"],[1,"bv2-resource-list-cell","hotlist-id","clickable"],[4,"ngIf"]],template:function(a,b){a&1&&(D(0,"table",0)(1,"thead")(2,"tr",1),G(3,"th",2),D(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," Hotlist name "),F()()()(),D(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),F()()()(),D(14,"th")(15,
"div",3)(16,"div",4)(17,"div",5),Q(18," Admins "),F()()()(),D(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),Q(23," ID "),F()()()()()(),D(24,"tbody"),P(25,W2a,11,9,"tr",6),F()());a&2&&(w(25),C("ngForOf",b.hotlists))},dependencies:[Dv,Ev],encapsulation:2});var yZ=function(){};yZ.\u0275fac=function(a){return new (a||yZ)};yZ.\u0275mod=qd({type:yZ});yZ.\u0275inj=ad({imports:[aD]});var zZ=function(a,b){this.bLocation=a;this.butterBar=b},Tnc=function(a,b){var c=a.bLocation.search()[b];return null!=c?Array.isArray(c)?(a.butterBar.showWarning("Given multiple values for parameter "+b+"; using the first."),c[0]):"boolean"===typeof c?"":c:null};zZ.prototype.getCount=function(){var a=Tnc(this,"c");return a?qi(a):null};var Unc=function(a){return(a=Tnc(a,"p"))?qi(a):null};zZ.prototype.getQuery=function(){return Tnc(this,"q")};
zZ.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Mi).filter(cl):null};zZ.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(fqa).filter(cl):null};
var AZ=function(a,b,c){c=void 0===c?!1:c;var d=function(e,f){c?a.bLocation.search(e,f,!0):a.bLocation.search(e,f)};void 0!==b.displayColumns&&d("d",null==b.displayColumns?null:(b.displayColumns||[]).map(function(e){return Vnc(e)}));void 0!==b.sortColumns&&d("s",null==b.sortColumns?null:(b.sortColumns||[]).map(function(e){var f="ASCENDING"==e.direction?"asc":"desc";return Vnc(e.fieldId)+":"+f}));void 0!==b.page&&d("p",b.page);void 0!==b.resultsPerPage&&d("c",b.resultsPerPage);void 0!==b.query&&d("q",
b.query)},Vnc=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};zZ.\u0275fac=function(a){return new (a||zZ)(n(wE),n(VF))};zZ.\u0275prov=$c({token:zZ,factory:zZ.\u0275fac,providedIn:"root"});var BZ=function(a,b,c){this.urlPreferences=a;this.userPreferencesManager=b;this.customFieldApi=c};BZ.prototype.fetch=function(a,b){a=this.getParameters(a,void 0===b?null:b);return{searchPreferences:yo({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
BZ.prototype.getParameters=function(a,b){var c=this,d=b?function(){return Wnc(b)}:function(){return Xnc(c)},e=b?function(){return Ync(b)}:function(){return Znc(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return CZ(k)}).then(null,d).then(function(k){return CZ(k)}).then(null,Rt(a.displayColumns)).then(function(k){return $nc(c,k)});e=Promise.resolve(this.urlPreferences.getSortColumns()).then(function(k){return CZ(k)}).then(null,e).then(function(k){return CZ(k)}).then(null,
Rt(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return CZ(k)}).then(null,function(){return aoc(c)}).then(function(k){return CZ(k)}).then(null,Rt(a.resultsPerPage)),h=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return CZ(k)}).then(null,function(){return boc(b,function(k){return k.query})}).then(null,Rt(a.query));a=Unc(this.urlPreferences)||a.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:a}};
var CZ=function(a){return null==a?Promise.reject(null):a},Wnc=function(a){return boc(a,function(b){return b.displayColumn}).then(function(b){return coc(b)})},Ync=function(a){return boc(a,function(b){return b.sortOrder}).then(function(b){return doc(b)})},Znc=function(a){return(0,B.firstValueFrom)(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return CZ(b)}).then(function(b){return doc(b)})},Xnc=function(a){return(0,B.firstValueFrom)(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return CZ(b)}).then(function(b){return coc(b)})},
aoc=function(a){return(0,B.firstValueFrom)(a.userPreferencesManager.preferences$.pipe(A(function(b){var c;return null!=(c=b.resultsPerPage)?c:null}))).then(function(b){return CZ(b)})},boc=function(a,b){return a?a.then(function(c){c=b(c);return null==c?Promise.reject(null):c}):Promise.reject(null)},coc=function(a){if(!a||!a.length)return null;a=Sj(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Li({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:"CANONICAL_ISSUE_ID"===b.type?"DUPLICATE_OF_ISSUE_ID":b.type})})},doc=function(a){return a&&a.length?a.map(function(b){return void 0!==b.column?new Pi(new Li(b.column),b.order):new Pi(new Li(b.field),b.direction)}).filter(function(b){return"CUSTOM_FIELD"!=b.fieldId.type||null!=b.fieldId.customFieldId}):null},$nc=function(a,b){function c(){for(var k=l(b),q=k.next();!q.done;q=k.next())if(q=q.value,q.isCustomField()&&!q.customFieldName){var u=d[q.customFieldId];q.customFieldName=u?u:"Custom field "+
q.customFieldId}return b}if(!b)return Promise.resolve([]);for(var d={},e=[],f=l(b),h=f.next();!h.done;h=f.next())h=h.value,h.customFieldId&&h.isCustomField()&&(h.customFieldName?d[h.customFieldId]=h.customFieldName:e.push(a.customFieldApi.get(h.customFieldId).then(function(k){d[k.customFieldId]=k.name})));return Promise.all(e).then(c,c)};BZ.\u0275fac=function(a){return new (a||BZ)(n(zZ),n(iE),n(ZG))};BZ.\u0275prov=$c({token:BZ,factory:BZ.\u0275fac,providedIn:"root"});var DZ=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J){Y.call(this);var O=this;this.cdr=a;this.bLocation=b;this.$log=c;this.butterBar=e;this.analytics=f;this.issuePagination=h;this.gridPreferencesFetcher=k;this.paths=q;this.errorHandler=u;this.domSafe=x;this.timeout=y;this.hotkeys=E;this.appSearchState=J;this.ANALYTICS_CATEGORY="panel";this.resource=this.searchResults=this.initialSortPreferences=this.initialIssueColumns=this.displayColumns=null;this.isLoading=!1;this.page=1;this.issueColumnsInternal=[];this.sortPreferences=
[];this.last=this.first=this.isDashboardEditable=!1;this.focusedRowIndexInternal=null;this.focusedRowIndexChange=new Yu;this.resultsLoaded=new Yu;this.selectionChange=new Yu;this.isColumnSaveEnabled=!1;this.cachedSort=null;this.currentUserEmail=d.getUserEmail();this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue in the current panel",onPress:function(){var R;null==(R=O.issuesGrid)||H_a(R)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",
onPress:function(){var R;null==(R=O.issuesGrid)||I_a(R)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var R;null==(R=O.issuesGrid)||Cnc(R)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var R;null==(R=O.issuesGrid)||Enc(R)}},{keys:[Vj("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var R;null==(R=O.issuesGrid)||Fnc(R,!0)}},{keys:[Vj("u")],displayAs:"Shift+u",description:"Mark as unread",
onPress:function(){var R;null==(R=O.issuesGrid)||Fnc(R,!1)}},{keys:[Wj("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var R;null==(R=O.issuesGrid)||R.selectAll()}},{keys:[Wj("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var R;null==(R=O.issuesGrid)||Anc(R)}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(R){var U=H.document.activeElement;
if(1===R&&"A"===(null==U?void 0:U.tagName))if(U.href)R=O.paths.getBaseUrl(),si(U.href,R)?b.url(U.href.slice(R.length)):O.domSafe.openInNewTab(U.href);else{var Z;null==(Z=O.issuesGrid)||dZ(Z)}else{var na;null==(na=O.issuesGrid)||dZ(na)}}}];this.destroyed$.subscribe(function(){var R;null==(R=O.unregisterHotkeys)||R.call(O)})};W(DZ,Y);DZ.prototype.columnsChange=function(a){this.issueColumns=a};DZ.prototype.ngOnInit=function(){this.getIssues();eoc(this)};
var eoc=function(a){var b;null==(b=a.unregisterHotkeys)||b.call(a);a.isFocused?a.unregisterHotkeys=rE(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},I3a=function(a,b){a.issuesGrid=b;Dnc(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:null==(c=a.issuesGrid)?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};g=DZ.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Mi(a);if(null==d)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Pi(d,"ASC"==b?"ASCENDING":"DESCENDING");Aa(this.sortPreferences,function(f){return ki(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
g.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"==a.fieldId.type?String(a.fieldId.customFieldId):oi(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};ki(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(p(b),p(FUa(a)));this.initialIssueColumns=li(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&"A"===c.target.tagName||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):this.bLocation.url(a))};g.goToPage=function(a){this.page=a;this.getIssues()};g.refreshResults=function(){LF(this.issuePagination);this.getIssues()};g.exportCsv=function(){AL(this.domSafe,this.getCsvUrl())};
g.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};g.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;var b=this.resource?Promise.resolve(this.resource):this.loadResource();return this.doSearch(b).catch(function(c){a.$log.warn("WARNING: unable to doSearch()",c)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this,c=this.getGridPreferencesDefaults(),d=this.gridPreferencesFetcher.fetch(c,a.then(function(){return{query:null!=b.resource.query?b.resource.query:null,displayColumn:b.resource.displayColumn,sortOrder:b.resource.sortOrder}}));a=d.searchPreferences.then(function(e){if(!e.query)return Promise.reject(null);e=b.getSearchParams(e);b.searchParams=e;e.trackerIds=b.appSearchState.currentTrackerScope;return KF(b.issuePagination,e)});a.catch(function(e){"number"===typeof e?b.goToPage(e):
e&&b.errorHandler.errorHandler(null,e)});return yo({searchResultsPage:a,displayColumns:d.displayColumns}).then(function(e){var f=e.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.sortPreferences=f.params.sortColumns||[];b.initialSortPreferences||(b.initialSortPreferences=li(b.sortPreferences));d.displayColumns.then(function(h){b.initColumns(h,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);b.timeout.schedule(function(){var h=b.issuePagination.getFocusedIssue();-1!=h&&
(b.focusedRowIndex=h-f.startIndex)})})};g.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:foc,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):goc).length);b=GUa(b).map(function(c){return new Li(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;WF(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=li(a.issueColumns);a.initialSortPreferences=li(a.sortPreferences);a.cdr.detectChanges()})};
g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(p(this.initialIssueColumns||[]));if(this.initialSortPreferences&&!ki(this.initialSortPreferences,this.sortPreferences)){oaa(this.sortPreferences);var a=this.initialSortPreferences;et(qaa,this.sortPreferences,void 0,0).apply(null,a);this.refreshResults()}};
g.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!ki(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!ki(this.initialSortPreferences,this.sortPreferences):!1};g.isEditable=function(){var a=this;return!!this.resource&&this.resource.adminUsers.some(function(b){return b.emailAddress===a.currentUserEmail})};g.getMetaColumns=function(){return goc};
g.getSearchParams=function(a){a=li(a);a.resultsPerPage=10;a.page=this.page;this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.url();return a};
Qh.Object.defineProperties(DZ.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){ki(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification"))}},focusedRowIndex:{configurable:!0,enumerable:!0,set:function(a){var b=this.isFocused;this.focusedRowIndexInternal!==a&&(this.focusedRowIndexInternal=a,this.focusedRowIndexChange.emit(a));this.isFocused!==b&&eoc(this)},
get:function(){return this.focusedRowIndexInternal}},isFocused:{configurable:!0,enumerable:!0,get:function(){return null!==this.focusedRowIndex}}});var goc=[eZ,fZ,gZ],foc="priority type title assignee status issueId modifiedTime".split(" ").map(Mi);DZ.\u0275fac=function(a){return new (a||DZ)(z(yD),z(wE),z(dE),z(Us),z(VF),z(zH),z(JF),z(BZ),z(xE),z(XF),z(zL),z(rD),z(qE),z(Window),z(mK))};
DZ.\u0275dir=sd({type:DZ,viewQuery:function(a,b){a&1&&zg(bZ,5);if(a&2){var c;yg(c=Bg())&&(b.issuesGrid=c.first)}},inputs:{panel:"panel",isDashboardEditable:"isDashboardEditable",first:"first",last:"last",focusedRowIndex:"focusedRowIndex"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",resultsLoaded:"resultsLoaded",selectionChange:"selectionChange"},features:[Jf]});var EZ=function(a,b){this.dialog=a;this.appEvents=b;this.last=this.first=!1};EZ.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:hh("Are you sure you want to remove this item? It will be removed from the bookmark group permanently."),onConfirm:function(){a.appEvents.dashboardPanels.remove.next(a.panelId)}})};EZ.\u0275fac=function(a){return new (a||EZ)(z(zJ),z(DF))};
EZ.\u0275cmp=od({type:EZ,selectors:[["b-panel-controls"]],inputs:{panelId:"panelId",first:"first",last:"last"},decls:6,vars:1,consts:[["mat-icon-button","","aria-label","Customize list view",1,"gmat-button","small","bv2-grid-settings-button",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],["menu",""],["matMenuContent",""],["mat-menu-item","","class","bv2-panel-move-to-top-menuitem",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-panel-move-up-menuitem",3,"click",4,"ngIf"],["mat-menu-item",
"","class","bv2-panel-move-down-menuitem",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-panel-move-to-bottom-menuitem",3,"click",4,"ngIf"],["mat-menu-item","",1,"bv2-panel-remove-edit-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-to-top-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-up-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-down-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem",3,"click"]],template:function(a){a&1&&(D(0,
"div")(1,"button",0),G(2,"mat-icon",1),F(),D(3,"mat-menu",null,2),P(5,a3a,6,4,"ng-template",3),F()());if(a&2){var b=N(4);w(1);C("matMenuTriggerFor",b)}},dependencies:[Ev,qA,AB,yB,zB,xB,Ez],encapsulation:2});var FZ=function(){};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275mod=qd({type:FZ});FZ.\u0275inj=ad({imports:[aD,BB,SB]});var GZ=function(){};GZ.\u0275fac=function(a){return new (a||GZ)};GZ.\u0275mod=qd({type:GZ});GZ.\u0275inj=ad({imports:[aD,FC]});var HZ=function(){};HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275mod=qd({type:HZ});HZ.\u0275inj=ad({imports:[aD,GZ]});var IZ=function(){};IZ.\u0275fac=function(a){return new (a||IZ)};IZ.\u0275mod=qd({type:IZ});IZ.\u0275inj=ad({imports:[aD,CK,HZ]});var JZ=function(){};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275mod=qd({type:JZ});JZ.\u0275inj=ad({imports:[aD,GZ]});var KZ=function(){this.availablePanels=new Set;this.iconOnly=!1;this.buttonClassname="";this.openSidebar=new Yu};KZ.\u0275fac=function(a){return new (a||KZ)};
KZ.\u0275cmp=od({type:KZ,selectors:[["b-insights-graph-menu"]],inputs:{availablePanels:"availablePanels",iconOnly:"iconOnly",buttonClassname:"buttonClassname"},outputs:{openSidebar:"openSidebar"},decls:14,vars:5,consts:[["mat-button","","matTooltip","Insight Graph menu",1,"main-button","gmat-button","square-right",3,"ngClass","disabled","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),
"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" "),[4,"ngIf"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){b.openSidebar.emit({panel:void 0})}),Qd(),D(1,"svg",1)(2,"g",2),G(3,"path",3)(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9)(10,"circle",10)(11,"circle",11)(12,"circle",12),F()(),P(13,b3a,2,0,"ng-container",13),F());a&2&&(Xf("icon-only-mode",b.iconOnly),
C("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size),w(13),C("ngIf",!b.iconOnly))},dependencies:[Cv,Ev,Ez,FB],styles:["[_nghost-%COMP%]{white-space:nowrap}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:middle;margin-right:3px}.gmat-button[_ngcontent-%COMP%]{min-width:unset;height:32px;line-height:32px}.main-button[_ngcontent-%COMP%]{padding-right:4px}.main-button[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}.gmat-button.icon-only-mode[_ngcontent-%COMP%]{padding:0 2px}.gmat-button.icon-only-mode.main-button[_ngcontent-%COMP%]{padding:0 4px}.gmat-button.icon-only-mode[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-right:0;height:16px;width:16px}.gmat-button.icon-only-mode.mat-button[_ngcontent-%COMP%]:not([disabled]){color:#5f6368;color:var(--icon)}.gmat-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-icon-button).small{padding:0 2px}.gmat-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-icon-button).small.main-button{padding:0 4px}"],
changeDetection:0});var LZ=function(a){this.issueInsightsSidebarService=a;this.iconOnly=!1;this.buttonClassname="";this.availablePanels$=this.issueInsightsSidebarService.availablePanels$;this.shouldShowInsightsGraphMenu$=this.issueInsightsSidebarService.shouldShowInsightsGraphMenu$};LZ.prototype.openSidebar=function(a){this.issueInsightsSidebarService.openSidebar(a)};LZ.\u0275fac=function(a){return new (a||LZ)(z(NY))};
LZ.\u0275cmp=od({type:LZ,selectors:[["insights-graph-menu-smart"]],inputs:{iconOnly:"iconOnly",buttonClassname:"buttonClassname"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"availablePanels","iconOnly","buttonClassname","openSidebar",4,"ngIf"],[3,"availablePanels","iconOnly","buttonClassname","openSidebar"]],template:function(a,b){a&1&&(P(0,d3a,3,3,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.availablePanels$))},dependencies:[Ev,KZ,Kv],encapsulation:2,changeDetection:0});var MZ=function(){};MZ.\u0275fac=function(a){return new (a||MZ)};MZ.\u0275mod=qd({type:MZ});MZ.\u0275inj=ad({imports:[aD,SB,BB,bE,FC]});var NZ=function(){};NZ.\u0275fac=function(a){return new (a||NZ)};NZ.\u0275mod=qd({type:NZ});NZ.\u0275inj=ad({imports:[Sv]});var OZ=function(){};OZ.\u0275fac=function(a){return new (a||OZ)};OZ.\u0275mod=qd({type:OZ});OZ.\u0275inj=ad({imports:[Sv,FC]});var PZ=function(){};PZ.\u0275fac=function(a){return new (a||PZ)};PZ.\u0275mod=qd({type:PZ});PZ.\u0275inj=ad({imports:[NZ,Sv,FC,OZ]});var QZ=function(){};QZ.\u0275fac=function(a){return new (a||QZ)};QZ.\u0275mod=qd({type:QZ});QZ.\u0275inj=ad({imports:[Sv,ay,Sy,Yw,SB]});var RZ=function(){};RZ.\u0275fac=function(a){return new (a||RZ)};RZ.\u0275mod=qd({type:RZ});RZ.\u0275inj=ad({imports:[Sv,Dw,QZ]});var SZ=function(){};SZ.\u0275fac=function(a){return new (a||SZ)};SZ.\u0275mod=qd({type:SZ});SZ.\u0275inj=ad({imports:[aD,FC,PZ,wM,RZ,CK]});var TZ=function(){};TZ.\u0275fac=function(a){return new (a||TZ)};TZ.\u0275mod=qd({type:TZ});TZ.\u0275inj=ad({imports:[Sv]});var UZ=function(){};UZ.\u0275fac=function(a){return new (a||UZ)};UZ.\u0275mod=qd({type:UZ});UZ.\u0275inj=ad({imports:[Sv,Dw,QZ,TZ]});var VZ=function(){};VZ.\u0275fac=function(a){return new (a||VZ)};VZ.\u0275mod=qd({type:VZ});VZ.\u0275inj=ad({imports:[aD,NO,UZ]});var WZ=function(){};WZ.\u0275fac=function(a){return new (a||WZ)};WZ.\u0275mod=qd({type:WZ});WZ.\u0275inj=ad({imports:[aD,zM,rM,Ew,cP]});var XZ=function(){};XZ.\u0275fac=function(a){return new (a||XZ)};XZ.\u0275mod=qd({type:XZ});XZ.\u0275inj=ad({imports:[aD,FC,SB,JZ,kM,HZ,WZ,Sy]});var YZ=function(){};YZ.\u0275fac=function(a){return new (a||YZ)};YZ.\u0275mod=qd({type:YZ});YZ.\u0275inj=ad({imports:[cJ,dJ,aD,Dw,SB,Zz,zV,RF,FC,wM]});var $eb=function(a){return!!a&&("object"===typeof a||"function"===typeof a)};var hoc={},ioc=(hoc.COMFORTABLE=330,hoc.COZY=300,hoc.COMPACT=270,hoc),ZZ=function(a){Y.call(this);var b=this;this.userPreferencesManager=a;this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(c){var d;return null==(d=c.themePreferences)?void 0:d.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(A(function(c){var d;return null==(d=c.layoutPreferences)?void 0:d.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new B.Subject;this.currentSidebarWidth$=(0,B.combineLatest)([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(yf(void 0))]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return null!=d?d:null!=e?e:ioc[null!=c?c:"COMFORTABLE"]}));(0,B.combineLatest)([this.rightSidebarWidthChanged$.pipe(mf()),this.sidebarWidthPreference$]).pipe(cf(function(c){c=l(c);var d=c.next().value;return c.next().value!==d}),zf(function(c){c=l(c);var d=c.next().value;
c.next();return oWb(b.userPreferencesManager,{rightSidebarWidth:d})}),Af(this.destroyed$)).subscribe()};W(ZZ,Y);ZZ.\u0275dir=Y.\u0275dir;ZZ.prototype.ngOnInit=function(){};ZZ.\u0275fac=function(a){return new (a||ZZ)(z(iE))};
ZZ.\u0275cmp=od({type:ZZ,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},features:[Jf],decls:7,vars:7,consts:[[1,"a11y-only"],["direction","rtl",3,"disableToggleBtn","hideToggleBtnOnOpen","minWidth","size","widthChanged"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId",4,"ngIf"],[3,"issueId"]],template:function(a,b){a&1&&(D(0,"h3",0),Q(1,"Issue metadata"),F(),D(2,"b-resizable-sidebar",1),L("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),T(3,"async"),
D(4,"div",2)(5,"div",3),P(6,e3a,1,1,"edit-issue-metadata",4),F()()());if(a&2){var c;w(2);C("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",null!==(c=V(3,5,b.currentSidebarWidth$))&&void 0!==c?c:0);w(4);C("ngIf",b.issueId)}},dependencies:[Ev,jL,OY,Kv],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});var $Z=function(){};$Z.\u0275fac=function(a){return new (a||$Z)};$Z.\u0275mod=qd({type:$Z});$Z.\u0275inj=ad({imports:[RI,AR,aD,NR,rR,SZ,PZ,tE,CK,MZ,GV,XZ,LR,fX,FC,rL,YZ,VZ,hP,FK,TB]});var a_=function(){};a_.\u0275fac=function(a){return new (a||a_)};a_.\u0275mod=qd({type:a_});a_.\u0275inj=ad({imports:[SB,FC,Dw,kA,oA,bE,cA,DK,FK,aD,sV,NO,RI,AK,$Z,IT,MW]});var b_=function(){};b_.prototype.getValue=function(){return this.row[this.column.name]||""};b_.prototype.isCustomField=function(){return this.column.isCustomField};
b_.prototype.getCustomFieldValue=function(){var a;if(!(a=this.row.customFieldValueMap[this.column.name])){a=this.row;var b=this.column.name;a.customFieldMap&&b?(b=b.toLowerCase(),a=(b=a.customFieldNameToIdMap[b])?a.customFieldValueMap[String(b)]||null:null):a=null}if(!a)return null;a=new xl(a);ki(this.customFieldValue,a)||(this.customFieldValue=a);return this.customFieldValue};b_.\u0275fac=function(a){return new (a||b_)};
b_.\u0275cmp=od({type:b_,selectors:[["pop-grid-default-cell"]],inputs:{row:"row",column:"column"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"customFieldValue",4,"ngIf"],[3,"customFieldValue"]],template:function(a,b){a&1&&(P(0,f3a,2,2,"span",0),P(1,g3a,1,1,"b-custom-field-value-display",1));a&2&&(C("ngIf",!b.isCustomField()),w(1),C("ngIf",b.isCustomField()))},dependencies:[Ev,ZR],encapsulation:2,changeDetection:0});var c_=function(){};c_.\u0275fac=function(a){return new (a||c_)};c_.\u0275mod=qd({type:c_});c_.\u0275inj=ad({imports:[aD,FC,$R]});Cka(BW,[Dv,Ev,Jv,GW,b_]);var d_=function(){};d_.\u0275fac=function(a){return new (a||d_)};d_.\u0275mod=qd({type:d_});d_.\u0275inj=ad({imports:[aD,CK]});var e_=function(){};e_.\u0275fac=function(a){return new (a||e_)};e_.\u0275mod=qd({type:e_});e_.\u0275inj=ad({imports:[aD,d_,kM]});var f_=function(){};f_.\u0275fac=function(a){return new (a||f_)};f_.\u0275mod=qd({type:f_});f_.\u0275inj=ad({imports:[KW,aD,BB,iD,FC,SB,Zz,fz,aZ,hD,c_,GZ,IZ,kM,JZ,RI,IO,nW,e_,LP,iP,yK,YR,CK,GV,a_,yR,tV]});var g_=function(a,b,c){this.hotlistsApi=a;this.butterBar=b;this.appEvents=c};
g_.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,u=b[c],x=b[d].position;uaa(b,c,d);null==f||f();WF(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,u.issueId,x).then(function(){for(var y=k,E=l(b),H=E.next();!H.done;H=E.next())H.value.position=y,y+=q?-1:1;null==f||f();WF(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
g_.\u0275fac=function(a){return new (a||g_)(n(mF),n(VF),n(DF))};g_.\u0275prov=$c({token:g_,factory:g_.\u0275fac,providedIn:"root"});var joc=["actionsMenuIconButton"],h_=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical"};h_.prototype.trackByIndex=function(a){return a};h_.prototype.onAction=function(a,b){return Ne(function(c){if("mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button)return c.return();"action"!==b.type&&"select"!==b.type||b.action(a);Se(c)})};h_.prototype.ngOnInit=function(){};h_.\u0275fac=function(a){return new (a||h_)};
h_.\u0275cmp=od({type:h_,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&zg(joc,5);if(a&2){var c;yg(c=Bg())&&(b.actionsMenuIconButton=c.first)}},inputs:{menuItems:"menuItems",buttonLabel:"buttonLabel",buttonIcon:"buttonIcon",header:"header"},decls:6,vars:4,consts:[["mat-icon-button","","class","gmat-button medium","aria-haspopup","true",3,"matTooltip","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],[1,"b-actions-menu-panel"],["class","bv2-menu-header",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],
["mat-icon-button","","aria-haspopup","true",1,"gmat-button","medium",3,"matTooltip","matMenuTriggerFor"],["actionsMenuIconButton",""],[1,"icon-s",3,"svgIcon"],[1,"bv2-menu-header"],[4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["class","icon-s",3,"svgIcon",4,"ngIf"],["class","hint",4,"ngIf"],["submenu","matMenu"],[1,"hint"],["mat-menu-item","",3,"disabled","ngClass","click","mouseup",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","ngClass","click",
"mouseup",4,"ngIf"],["mat-menu-item","",3,"disabled","ngClass","click","mouseup"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","ngClass","click","mouseup"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"]],template:function(a,b){a&1&&(P(0,h3a,3,4,"button",0),D(1,"mat-menu",null,1)(3,"div",2),P(4,i3a,2,1,"div",3),P(5,w3a,3,2,"ng-container",4),F()());a&2&&(C("ngIf",0<b.menuItems.length),w(4),C("ngIf",b.header),w(1),C("ngForOf",b.menuItems)("ngForTrackBy",b.trackByIndex))},dependencies:[AB,
yB,zB,Cv,Dv,Ev,qA,Ez,FB],styles:["[_nghost-%COMP%]{display:inline-block}.mat-menu-item[_ngcontent-%COMP%]{align-items:center;display:flex}.mat-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:8px}.mat-menu-item[_ngcontent-%COMP%]   .hint[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-left:auto;padding-left:16px}  .b-actions-menu-panel .mat-menu-item[disabled]{pointer-events:auto}/*# sourceMappingURL=actions_menu.css.map */"],changeDetection:0});var i_=function(){this.pageChange=new Yu;this.resultsPerPageChange=new Yu;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};i_.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};var koc=function(a){a.searchResults&&a.pageChange.emit({page:a.searchResults.params.page-1})};
Qh.Object.defineProperties(i_.prototype,{menuItems:{configurable:!0,enumerable:!0,get:function(){var a=this;return this.resultsPerPageOptions.map(function(b){return{type:"select",label:String(b),action:function(){a.resultsPerPageChange.emit({option:b})},selected:!!a.searchResults&&a.searchResults.params.resultsPerPage===b,disabled:!!a.searchResults&&a.searchResults.params.resultsPerPage===b}})}}});i_.\u0275fac=function(a){return new (a||i_)};
i_.\u0275cmp=od({type:i_,selectors:[["b-pagination"]],inputs:{searchResults:"searchResults",resultsPerPageFixed:"resultsPerPageFixed"},outputs:{pageChange:"pageChange",resultsPerPageChange:"resultsPerPageChange"},decls:7,vars:4,consts:[[1,"bv2-appbar-page"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems",4,"ngIf"],["aria-live","polite","role","alert","class","bv2-appbar-pagenums",4,"ngIf"],["mat-icon-button","","focusBack","","color","primary",
"mat-tooltip","Go to previous page","aria-label","Go to previous page",1,"large","left","compact",3,"disabled","click","keydown.enter"],["svgIcon","arrow-left",1,"large"],["mat-icon-button","","focusBack","","color","primary","mat-tooltip","Go to next page","aria-label","Go to next page",1,"large","right","compact",3,"disabled","click","keydown.enter"],["svgIcon","arrow-right",1,"large"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems"],["aria-live",
"polite","role","alert",1,"bv2-appbar-pagenums"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,x3a,1,1,"b-actions-menu",1),P(2,y3a,6,3,"span",2),D(3,"button",3),L("click",function(){return koc(b)})("keydown.enter",function(c){koc(b);return c.stopPropagation()}),G(4,"mat-icon",4),F(),D(5,"button",5),L("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),G(6,"mat-icon",6),F()());a&2&&(w(1),C("ngIf",b.searchResults&&0<b.searchResults.issues.length&&
!b.resultsPerPageFixed),w(1),C("ngIf",b.searchResults&&0<b.searchResults.issues.length),w(1),C("disabled",!(null==b.searchResults?0:b.searchResults.hasPreviousPage())),w(2),C("disabled",!(null==b.searchResults?0:b.searchResults.hasNextPage())))},dependencies:[Ev,qA,Ez,h_,JJ],encapsulation:2});var j_=function(){};j_.\u0275fac=function(a){return new (a||j_)};j_.\u0275mod=qd({type:j_});j_.\u0275inj=ad({imports:[BB,aD,SB,FC]});var k_=function(){};k_.\u0275fac=function(a){return new (a||k_)};k_.\u0275mod=qd({type:k_});k_.\u0275inj=ad({imports:[aD,SB,j_,xK]});var l_=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U){DZ.call(this,c,e,f,h,k,q,u,x,y,d,E,J,O,R,U);this.hotlists=a;this.hotlistApi=b;this.appEvents=H;this.resource=null};W(l_,DZ);l_.\u0275dir=DZ.\u0275dir;g=l_.prototype;g.ngOnInit=function(){DZ.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?DZ.prototype.setSort.call(this,a,b,!1):DZ.prototype.setSort.call(this,a,b)};
g.loadResource=function(){var a=this,b=this.hotlistApi.get(this.hotlistId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};
g.saveResource=function(){var a=this;if(this.resource)return this.hotlistApi.updateMetadata(this.hotlistId,this.resource).then(function(b){a.resource=b;a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId,origin:"hotlist-panel"});WF(a.butterBar,'Saved changes to hotlist "'+b.name+'".');a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});this.butterBar.showWarning("Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},DZ.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};g.getMetaColumns=function(a){a=a.params.sortColumns||[];return 0==a.length||1==a.length&&"POSITION"==a[0].fieldId.type?loc:moc};g.getSearchParams=function(a){a=DZ.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;return a};
g.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"issueDragDrop")})};l_.\u0275fac=function(a){return new (a||l_)(z(g_),z(mF),z(yD,2),z(XF),z(wE),z(dE),z(Us),z(VF),z(zH),z(JF),z(BZ),z(xE),z(zL),z(DF),z(rD),z(qE),z(qF),z(mK))};
l_.\u0275cmp=od({type:l_,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},features:[lg([yD]),Jf],decls:9,vars:8,consts:[[1,"bv2-panel","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-hotlist-title-text"],[4,"ngIf"],["class","bv2-view-hotlist-save-form",4,"ngIf"],[3,"searchResults","resultsPerPageFixed","pageChange"],["class","bv2-panel-controls",3,"panelId",4,"ngIf"],["tabindex","0"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences have changed",4,"ngIf"],
[1,"bv2-panel-controls",3,"panelId"],["matTooltip","Display preferences have changed"],[1,"bv2-view-hotlist-save-form"],["mat-flat-button","","type","button","color","primary","matTooltip","Save changes to display preferences",1,"gmat-button","medium",3,"click"],["mat-stroked-button","","type","button","color","primary","matTooltip","Discard changes to display preferences",1,"gmat-button","medium",3,"click"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","0",4,"ngIf"],
["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],[3,"large"],["tabindex","0",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange","onRowDragDrop","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2),P(3,z3a,2,0,"div",3),P(4,A3a,2,0,"div",3),P(5,D3a,8,5,"div",3),F(),P(6,E3a,5,0,"div",4),D(7,"b-pagination",5),
L("pageChange",function(c){return b.goToPage(c.page)}),F()(),P(8,K3a,4,3,"div",3),F());a&2&&(Nf("aria-busy",b.isLoading),w(3),C("ngIf",!b.resource&&!b.isLoading),w(1),C("ngIf",!b.resource&&b.isLoading),w(1),C("ngIf",b.resource),w(1),C("ngIf",b.hasParamChanges()),w(1),C("searchResults",b.searchResults)("resultsPerPageFixed",!0),w(1),C("ngIf",b.resource))},dependencies:[Ev,bZ,Ez,FB,i_,EZ,MJ],encapsulation:2});var moc=[eZ,fZ,gZ,Hnc],loc=[eZ,Gnc,fZ,gZ,Hnc],m_=function(){};
m_.\u0275fac=function(a){return new (a||m_)};m_.\u0275mod=qd({type:m_});m_.\u0275inj=ad({imports:[aD,f_,SB,FC,k_,FZ,AK]});var n_=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O){DZ.call(this,b,d,e,f,h,k,q,u,x,c,y,E,H,J,O);this.savedSearchApi=a;this.resource=null};W(n_,DZ);n_.\u0275dir=DZ.\u0275dir;n_.prototype.ngOnInit=function(){DZ.prototype.ngOnInit.call(this)};n_.prototype.loadResource=function(){var a=this,b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};n_.prototype.saveResource=function(){return Promise.resolve()};
n_.\u0275fac=function(a){return new (a||n_)(z(jI),z(yD,2),z(XF),z(wE),z(dE),z(Us),z(VF),z(zH),z(JF),z(BZ),z(xE),z(zL),z(rD),z(qE),z(qF),z(mK))};
n_.\u0275cmp=od({type:n_,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},features:[lg([yD]),Jf],decls:8,vars:7,consts:[[1,"bv2-panel","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],[4,"ngIf"],["tabindex","0",4,"ngIf"],[3,"searchResults","resultsPerPageFixed","pageChange"],["tabindex","0"],["class","bv2-panel-controls",3,"panelId",4,"ngIf"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences or search query have changed",
4,"ngIf"],[1,"bv2-panel-controls",3,"panelId"],["matTooltip","Display preferences or search query have changed"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","0","role","region",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],[3,"large"],["tabindex","0","role","region",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange",
"rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2),P(3,L3a,2,0,"div",3),P(4,M3a,2,0,"div",3),P(5,P3a,8,5,"div",4),F(),D(6,"b-pagination",5),L("pageChange",function(c){return b.goToPage(c.page)}),F()(),P(7,U3a,4,3,"div",3),F());a&2&&(Nf("aria-busy",b.isLoading),w(3),C("ngIf",!b.resource&&!b.isLoading),w(1),C("ngIf",!b.resource&&b.isLoading),w(1),C("ngIf",b.resource),w(1),C("searchResults",b.searchResults)("resultsPerPageFixed",!0),w(1),C("ngIf",b.resource))},
dependencies:[Ev,bZ,FB,i_,EZ,MJ],encapsulation:2});var o_=function(){};o_.\u0275fac=function(a){return new (a||o_)};o_.\u0275mod=qd({type:o_});o_.\u0275inj=ad({imports:[aD,f_,FC,k_,FZ,AK]});var p_=function(){this.label="Team"};p_.prototype.ngOnInit=function(){};p_.\u0275fac=function(a){return new (a||p_)};
p_.\u0275cmp=od({type:p_,selectors:[["b-team-breadcrumb"]],inputs:{teamPath:"teamPath",label:"label"},decls:3,vars:2,consts:[["role","navigation",1,"breadcrumb"],[1,"breadcrumb-items"],["class","breadcrumb-item",4,"ngFor","ngForOf"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"routerLink","preserveFragment"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"span",1),P(2,V3a,3,3,"span",2),F()());a&2&&(Nf("aria-label",b.label),w(2),C("ngForOf",b.teamPath))},dependencies:[Dv,YD],encapsulation:2});var q_=function(){};q_.\u0275fac=function(a){return new (a||q_)};q_.\u0275mod=qd({type:q_});q_.\u0275inj=ad({imports:[aD,bE,wR]});var noc=["form"],ooc=["numberInput"],poc=/^\d+\.?\d*$/,qoc={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},r_=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new Yu;this.displayUnits=0;this.timeUnitEnum=qoc};
r_.prototype.ngOnInit=function(){var a=this;this.durationDays&&(this.displayUnits=0===this.durationDays%365?1:0,this.displayNumber=1===this.displayUnits?this.durationDays/365:this.durationDays);this.formSubscription=this.form.valueChanges.subscribe(function(){var b=a.form.form.getRawValue();a.displayNumber=b.numbers;a.displayUnits=b.unit;a.onValueChange()})};r_.prototype.ngAfterViewInit=function(){};
r_.prototype.onValueChange=function(){if(void 0!==this.displayNumber){switch(this.displayUnits){case 1:var a=365*this.displayNumber;break;default:a=this.displayNumber}a=Math.ceil(a)}else a=void 0;a!==this.durationDays&&(this.durationDays=a,this.durationDaysChange.emit(this.durationDays))};r_.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};r_.\u0275fac=function(a){return new (a||r_)};
r_.\u0275cmp=od({type:r_,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(zg(noc,7),zg(ooc,7));if(a&2){var c;yg(c=Bg())&&(b.form=c.first);yg(c=Bg())&&(b.numberInput=c.first)}},inputs:{durationDays:"durationDays",disabled:"disabled",ariaLabel:"ariaLabel"},outputs:{durationDaysChange:"durationDaysChange"},decls:14,vars:7,consts:[["form","ngForm"],[1,"duration-picker-form"],["color","accent","appearance","outline"],["matInput","","type","number","step","1","min","0","name","numbers",3,
"ngModel","disabled","keydown","paste"],["numberInput",""],["name","unit",3,"ngModel","disabled"],["color","accent",3,"value"]],template:function(a,b){a&1&&(D(0,"form",null,0)(2,"div",1)(3,"mat-form-field",2)(4,"mat-label"),Q(5," Custom Duration "),F(),D(6,"input",3,4),L("keydown",function(c){switch(c.key){case "-":case "e":case "E":c.preventDefault()}})("paste",function(c){var d=c.clipboardData.getData("Text");poc.test(d)||c.preventDefault()}),F()(),D(8,"mat-form-field",2)(9,"mat-select",5)(10,"mat-option",
6),Q(11,"days"),F(),D(12,"mat-option",6),Q(13,"year(s)"),F()()()()());a&2&&(w(6),C("ngModel",b.displayNumber)("disabled",b.disabled),Nf("aria-label",b.ariaLabel),w(3),C("ngModel",b.displayUnits)("disabled",b.disabled),w(1),C("value",b.timeUnitEnum.DAYS),w(2),C("value",b.timeUnitEnum.YEARS))},dependencies:[pw,Tg,qw,hw,iw,yw,ow,mw,jA,hA,nA,bP,Hz],styles:["[_nghost-%COMP%]     .duration-picker-form{display:flex;flex-direction:row;width:250px}[_nghost-%COMP%]     .duration-picker-form .mat-form-field{min-width:130px;padding-right:10px}[_nghost-%COMP%]     .duration-picker-form .mat-form-field .mat-form-field-flex{cursor:default}[_nghost-%COMP%]     .duration-picker-form .mat-form-field .mat-form-field-label{margin-top:-1.5em}[_nghost-%COMP%]     .duration-picker-form .mat-form-field.mat-focused .mat-form-field-label.mat-accent{margin-top:-0.7em}[_nghost-%COMP%]     .duration-picker-form .mat-form-field .mat-form-field-label:not(.mat-form-field-empty){margin-top:-0.7em}[_nghost-%COMP%]     .duration-picker-form .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]     .duration-picker-form .mat-select-arrow-wrapper{transform:none}[_nghost-%COMP%]     .mat-form-field-infix{padding:1px 0 7px}"],
changeDetection:0});var s_=function(){};s_.\u0275fac=function(a){return new (a||s_)};s_.\u0275mod=qd({type:s_});s_.\u0275inj=ad({imports:[aD,Dw,oA,kA,cP,MW]});var t_=function(a,b,c){this.dialogRef=a;this.data=b;this.documentationLinks=c};t_.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};t_.prototype.onNoClick=function(){this.dialogRef.close(!1)};t_.\u0275fac=function(a){return new (a||t_)(z(Rz),z(Tz),z(yL))};
t_.\u0275cmp=od({type:t_,selectors:[["b-field-state-change-confirmation-dialog"]],decls:22,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"],[1,"notice"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"div",1)(3,"p"),Q(4,
" The "),D(5,"strong"),Q(6),F(),Q(7," field will change state from "),D(8,"strong"),Q(9),F(),Q(10," to "),D(11,"strong"),Q(12),F(),Q(13,". "),F(),P(14,W3a,6,2,"p",2),D(15,"p"),Q(16,"Are you sure?"),F()(),D(17,"div",3)(18,"button",4),L("click",function(){return b.onNoClick()}),Q(19," Cancel "),F(),D(20,"button",5),Q(21," Confirm "),F()());a&2&&(w(1),S("Field State Change for ",b.data.fieldName,""),w(5),jg(b.data.fieldName),w(3),jg(b.data.oldFieldState),w(3),jg(b.data.newFieldState),w(2),C("ngIf",b.data.noteText),
w(6),C("mat-dialog-close",!0))},dependencies:[Ev,Ez,Vz,Wz,Xz,Yz],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});var roc=["fieldStateMenuButton"],soc=function(a){return{"mat-stroked-button":a}},u_=function(a){this.dialog=a;this.fieldName="";this.fieldState="INHERIT";this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new Yu;this.FieldState=BTb;this.defaultLabel="Default";this.menuLabel="Error";this.msgs={visibleName:"Visible",hiddenName:"Hidden",visibleDescription:"the field will always be in the main field section",hiddenDescription:"the field will always be in the hidden field section",
inheritDescription:"allow the parent component to determine whether the field is visible or hidden",becomesHiddenWarning:"Hiding this field will not result in any loss of data, but the field value will no longer be visible by  default for issues in this component and its subcomponents.",becomesInheritedWarning:"If a parent component hides this field in the future, the field will no longer be visible by default for issues in this component and its subcomponents."}};u_.prototype.ngOnInit=function(){this.updateMenuButton()};
u_.prototype.ngOnChanges=function(){this.updateMenuButton()};
var uoc=function(a,b){b!==a.fieldState&&(a.confirmationDialog?toc(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},toc=function(a,b){var c="DISABLED"===b||"INHERIT"===b&&!a.enabledOnParent,d="INHERIT"!==a.fieldState&&"INHERIT"===b,e=void 0;"DISABLED"!==a.fieldState&&("INHERIT"!==a.fieldState||a.enabledOnParent)&&c?e=a.msgs.becomesHiddenWarning:d&&(e=a.msgs.becomesInheritedWarning);Pz(a.dialog.open(t_,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:voc(a,a.fieldState),
newFieldState:voc(a,b),noteText:e}})).pipe(nf()).subscribe(function(f){f?(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};u_.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=voc(this,this.fieldState)};
var voc=function(a,b){switch(b){case "INHERIT":return a.defaultLabel;case "DISABLED":return a.msgs.hiddenName;case "ENABLED":return a.msgs.visibleName;default:$h(b,"Unknown FieldState.")}};u_.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};u_.\u0275fac=function(a){return new (a||u_)(z(Uz))};
u_.\u0275cmp=od({type:u_,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&zg(roc,5,ae);if(a&2){var c;yg(c=Bg())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},features:[Fd],decls:33,vars:18,consts:[["mat-button","",1,"field-state-menu-button","gmat-button","medium",3,"ngClass","disabled","matMenuTriggerFor"],
["fieldStateMenuButton",""],[1,"field-state-menu-button-inner"],[1,"field-state-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"field-state-dropdown-icon"],["fieldStateMenu","matMenu"],[1,"field-state-menu"],[1,"menu-row-container","default-container"],["mat-menu-item","",1,"default-button","field-state-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description","gmat-caption"],["mat-menu-item",
"",1,"field-state-option",3,"click"],[1,"menu-row-container"],[1,"state-info"]],template:function(a,b){a&1&&(D(0,"div")(1,"button",0,1)(3,"div",2),G(4,"span",3)(5,"b-icon",4),F()()(),D(6,"mat-menu",null,5)(8,"div",6)(9,"div",7)(10,"button",8),L("click",function(){return uoc(b,b.FieldState.INHERIT)}),G(11,"b-icon",9),D(12,"div",10),Q(13),F(),D(14,"div",11),Q(15),F()()(),G(16,"mat-divider"),D(17,"button",12),L("click",function(){return uoc(b,b.FieldState.DISABLED)}),D(18,"div",13)(19,"div",14),G(20,
"b-icon",9),D(21,"div",10),Q(22),F(),D(23,"div",11),Q(24),F()()()(),D(25,"button",12),L("click",function(){return uoc(b,b.FieldState.ENABLED)}),D(26,"div",13)(27,"div",14),G(28,"b-icon",9),D(29,"div",10),Q(30),F(),D(31,"div",11),Q(32),F()()()()()());if(a&2){var c=N(7);w(1);C("ngClass",og(16,soc,!b.disabled))("disabled",b.disabled)("matMenuTriggerFor",c);w(3);C("innerHTML",b.menuLabel,qe);w(6);Xf("b-menu-item-checked",b.fieldState===b.FieldState.INHERIT);w(3);S(" ",b.defaultLabel," ");w(2);S(" ",b.msgs.inheritDescription,
" ");w(2);Xf("b-menu-item-checked",b.fieldState===b.FieldState.DISABLED);w(5);S(" ",b.msgs.hiddenName," ");w(2);S(" ",b.msgs.hiddenDescription," ");w(1);Xf("b-menu-item-checked",b.fieldState===b.FieldState.ENABLED);w(5);S(" ",b.msgs.visibleName," ");w(2);S(" ",b.msgs.visibleDescription," ")}},dependencies:[Cv,Ez,dD,AB,yB,zB,bD],styles:[".field-state-menu[_ngcontent-%COMP%]{max-width:210px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{line-height:normal}.field-state-menu-button-inner[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.field-state-menu-button[disabled][_ngcontent-%COMP%]{border:none}.field-state-menu-button[disabled][_ngcontent-%COMP%]   .field-state-dropdown-icon[_ngcontent-%COMP%]{display:none}"]});var v_=function(){};v_.\u0275fac=function(a){return new (a||v_)};v_.\u0275mod=qd({type:v_});v_.\u0275inj=ad({imports:[aD,SB,Zz,iD,BB,hD,cJ]});var w_=function(a,b){this.dialogRef=b;this.issueId=a.issueId;this.issueTitle=a.issueTitle};w_.prototype.close=function(){this.dialogRef.close(!1)};w_.\u0275fac=function(a){return new (a||w_)(z(Tz),z(Rz))};
w_.\u0275cmp=od({type:w_,selectors:[["b-unsubscribe-dialog"]],decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"gmat-body-2"],[1,"gmat-body-1"],["target","_blank",3,"href"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","dialog-primary-action",3,"click"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Unsubscribe From Issue"),F(),D(2,"mat-dialog-content")(3,"div",1),Q(4," Are you sure you would like to unsubscribe from the following issue? "),
F(),G(5,"br"),D(6,"div",2)(7,"a",3)(8,"span"),Q(9),F()(),Q(10," - "),D(11,"span"),Q(12),F()(),G(13,"br"),D(14,"div",1),Q(15," By unsubscribing, you will no longer receive email updates about this issue. "),F()(),D(16,"mat-dialog-actions")(17,"button",4),L("click",function(){return b.close()}),Q(18," Cancel "),F(),D(19,"button",5),L("click",function(){b.dialogRef.close(!0)}),Q(20," Unsubscribe "),F()());a&2&&(w(7),gg("href","/issues/",b.issueId,"",re),w(2),S("b/",b.issueId,""),w(3),jg(b.issueTitle))},
dependencies:[Wz,Xz,Yz,Ez],encapsulation:2});var woc=function(a,b){return{small:a,medium:b}},xoc=function(a){return{black:a}},x_=function(a,b,c,d,e){this.activeSession=a;this.matDialogService=b;this.issueFridge=c;this.analytics=d;this.routeParams=e;this.iconOnly=!1;this.subscriptionChange=new Yu;this.showNotificationSettings=new Yu;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=ETb;this.bubblePosition=
[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:5},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-5}];this.subscriptions=new Map([["UNKNOWN_SUBSCRIPTION",{label:"Default",icon:"notifications_none_24px"}],["SUBSCRIBED_ALL_UPDATES",{label:"All Updates",icon:"notifications-active"}],["SUBSCRIBED_MAJOR_UPDATES",{label:"Major Updates",icon:"notifications-active"}],["SUBSCRIBED_CLOSURE_ONLY",{label:"Closure Only",icon:"notifications-active"}],["UNSUBSCRIBED",
{label:"Muted",icon:"notifications-off"}]])};x_.prototype.ngOnInit=function(){yoc(this)};x_.prototype.ngOnChanges=function(){this.updateMenuButton()};x_.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};x_.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var yoc=function(a){var b,c;Ne(function(d){if(1==d.nextAddress)return"true"!==a.routeParams.unsubscribe||a.subscription&&"UNSUBSCRIBED"===a.subscription?d.return():d.yield((0,B.firstValueFrom)(a.issueFridge.watch(a.issueId)),2);if(3!=d.nextAddress){b=d.yieldResult;if(!b)return d.return();a.matDialogService.closeAll();return d.yield((0,B.firstValueFrom)(Pz(a.matDialogService.open(w_,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3)}if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),
a.analytics.trackEvent(xp.EDIT_ISSUE,"unsubscribeUsingDialog");Se(d)})};Qh.Object.defineProperties(x_.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){null!=a&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});x_.\u0275fac=function(a){return new (a||x_)(z(Us),z(Uz),z(GH),z(zH),z(aO))};
x_.\u0275cmp=od({type:x_,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},features:[Fd],decls:63,vars:31,consts:[["mat-button","","matTooltip","Notification menu",1,"notification-menu-button","gmat-button",3,"ngClass","matMenuTriggerFor","disabled"],[1,"notification-menu-button-inner"],["size","small",1,"icon",3,"name","ngClass"],[4,"ngIf"],
["notificationMenu","matMenu"],[1,"notification-menu"],[1,"menu-row-container","default-container"],["mat-menu-item","",1,"default-button","notification-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description","gmat-caption"],[1,"default-divider",3,"vertical"],["mat-menu-item","","aria-label","Settings",1,"default-settings",3,"click"],["name","settings-outline","size","small",1,"item-icon"],[1,"menu-row-container"],
["mat-menu-item","","aria-label","All Updates. Receive emails for major and minor updates.","aria-describedby","all-updates-help",1,"notification-option",3,"click"],[1,"subscription-info"],["mat-menu-item","",1,"subscription-help","help-icon",3,"click","focus","blur"],[3,"panelTemplate","overlayPositions"],["allUpdates",""],["svgIcon","help-outline",1,"subscription-help","item-icon","small"],["all",""],["mat-menu-item","","aria-label","Major Updates. Receive emails for major updates only.","aria-describedby",
"major-updates-help",1,"notification-option",3,"click"],["majorUpdates",""],["major",""],["mat-menu-item","",1,"notification-option",3,"click"],[1,"notification-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"notification-dropdown-icon"],["id","all-updates-help",1,"subscription-help-bubble"],[1,"subscription-help-list"],["id","major-updates-help",1,"subscription-help-bubble"]],template:function(a,b){if(a&1){var c=r();D(0,"div")(1,"button",0)(2,"div",1);G(3,"b-icon",2);P(4,X3a,
3,1,"ng-container",3);F()()();D(5,"mat-menu",null,4)(7,"div",5)(8,"div",6)(9,"button",7);L("click",function(){return b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION)});G(10,"b-icon",8);D(11,"div",9);Q(12," Default ");F();D(13,"div",10);Q(14," receive emails based on your default settings. ");F()();G(15,"mat-divider",11);D(16,"button",12);L("click",function(h){return b.showNotificationSettings.emit(h)});G(17,"b-icon",13);F()();G(18,"mat-divider");D(19,"div",14)(20,"button",15);
L("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)});D(21,"div",16);G(22,"b-icon",8);D(23,"div",9);Q(24," All Updates ");F();D(25,"div",10);Q(26," receive emails for major and minor updates. ");F()()();D(27,"button",17);L("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)})("focus",function(){t(c);var h=N(29);return v(h.toggle(!0))})("blur",function(){t(c);var h=N(29);return v(h.toggle(!1))});D(28,"xap-bubble",
18,19);G(30,"mat-icon",20);P(31,Y3a,13,0,"ng-template",null,21,Eg);F()()();D(33,"div",14)(34,"button",22);L("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)});D(35,"div",16);G(36,"b-icon",8);D(37,"div",9);Q(38," Major Updates ");F();D(39,"div",10);Q(40," receive emails for major updates only. ");F()()();D(41,"button",17);L("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)})("focus",function(){t(c);
var h=N(43);return v(h.toggle(!0))})("blur",function(){t(c);var h=N(43);return v(h.toggle(!1))});D(42,"xap-bubble",18,23);G(44,"mat-icon",20);P(45,Z3a,15,0,"ng-template",null,24,Eg);F()()();D(47,"button",25);L("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY)});D(48,"div",14)(49,"div",16);G(50,"b-icon",8);D(51,"div",9);Q(52," Closure Only ");F();D(53,"div",10);Q(54," only receive emails when the issue is closed. ");F()()()();D(55,"button",25);L("click",
function(){return b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED)});D(56,"div",14)(57,"div",16);G(58,"b-icon",8);D(59,"div",9);Q(60," None ");F();D(61,"div",10);Q(62," unsubscribe from further email updates. ");F()()()()()()}if(a&2){var d=N(6),e=N(32),f=N(46);w(1);Xf("icon-only",b.iconOnly);C("ngClass",pg(26,woc,b.iconOnly,!b.iconOnly))("matMenuTriggerFor",d)("disabled",b.isAnonymous);Nf("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||
"UNKNOWN_SUBSCRIPTION").label);w(2);C("name",b.menuIcon)("ngClass",og(29,xoc,"notifications-off"===b.menuIcon));w(1);C("ngIf",!b.iconOnly);w(5);Xf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);w(6);C("vertical",!0);w(5);Xf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);w(7);Nf("aria-label","This includes emails about major updates and All title, hotlist, and status changes, Blocking, Blocked By, or Duplicate changes, Changes to Reporter, Verifier, and CCs, changes to Type, Found In, Targeted To, Verified In, In Prod, and Changes to custom fields marked as minor.");
w(1);C("panelTemplate",e)("overlayPositions",b.bubblePosition);w(6);Xf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);w(7);Nf("aria-label","This includes emails about New comments, Priority or Severity changes, Assignee changes, Component changes, Issue closure or reopening, and Changes to custom fields marked as major.");w(1);C("panelTemplate",f)("overlayPositions",b.bubblePosition);w(5);Xf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);
w(8);Xf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[Cv,Ev,qA,Ez,dD,AB,yB,zB,bD,WO,FB],styles:[".notification-menu[_ngcontent-%COMP%]{max-width:210px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{line-height:normal}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1px 40px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-button[_ngcontent-%COMP%]{grid-column:1}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-divider[_ngcontent-%COMP%]{grid-column:2;margin:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-settings[_ngcontent-%COMP%]{grid-column:3;height:100%;padding:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .help-icon[_ngcontent-%COMP%]{align-self:center;grid-column:3;height:100%;padding:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-help[_ngcontent-%COMP%]{align-self:center;grid-column:3}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-info[_ngcontent-%COMP%]{grid-column:1}.notification-menu-button-inner[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.notification-menu-button-inner[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:3px}.icon-only[_ngcontent-%COMP%]{padding:0 2px}.icon-only[_ngcontent-%COMP%]   .icon.black[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}  .subscription-help-bubble{max-width:300px}  .subscription-help-bubble ul.subscription-help-list{margin-top:.5em;list-style:disc}  .notification-menu .subscription-help .mat-icon{margin:0px}  .notification-menu .subscription-help .mat-icon:hover{color:#202124;color:var(--text-high-contrast)}"]});var y_=function(){};y_.\u0275fac=function(a){return new (a||y_)};y_.\u0275mod=qd({type:y_});y_.\u0275inj=ad({imports:[aD,SB,iD,BB,hD,cJ,hP,FC]});var z_=function(a,b){this.sloApi=a;this.cdr=b;this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new Yu;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},zoc=function(a,b){if(b){var c=a.requestIndex++;a.sloApi.search(b).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.dropdownChoices=d,a.cdr.detectChanges())})}else a.dropdownChoices=[],a.onSloSelect.emit(null),a.cdr.detectChanges()};
z_.prototype.displayFn=function(a){return(null==a?void 0:a.name)||(null==a?void 0:a.sloId)||""};z_.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.sloId;this.onSloSelect.emit(a);this.cdr.detectChanges()};
Qh.Object.defineProperties(z_.prototype,{boundId:{configurable:!0,enumerable:!0,get:function(){return this.internalBoundId},set:function(a){var b=this;(this.internalBoundId=a)&&"0"!==this.internalBoundId?this.sloApi.get(this.internalBoundId).then(function(c){b.dropdownChoices=c?[c]:[];b.selectedSlo=c}).catch(function(){b.selectedSlo={sloId:b.internalBoundId}}):(this.dropdownChoices=[],this.selectedSlo=null)}}});z_.\u0275fac=function(a){return new (a||z_)(z(vW),z(yD,2))};
z_.\u0275cmp=od({type:z_,selectors:[["slo-picker"]],inputs:{isDisabled:["bv2Disabled","isDisabled"],placeholder:["bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},features:[lg([yD])],decls:6,vars:6,consts:[[1,"bv2-slo-picker"],["matInput","","type","text","autocomplete","slo-name",1,"bv2-picker-input","form-control",3,"placeholder","ngModel","disabled","matAutocomplete","ngModelChange","click","input"],["searchInput",""],["panelWidth","574px",3,"displayWith","optionSelected"],
["auto","matAutocomplete"],["class","slo-search-result",3,"value",4,"ngFor","ngForOf"],[1,"slo-search-result",3,"value"]],template:function(a,b){if(a&1){var c=r();D(0,"div",0)(1,"input",1,2);L("ngModelChange",function(e){return b.selectedSlo=e})("click",function(){t(c);var e=N(2);return v(zoc(b,e.value))})("input",function(){t(c);var e=N(2);return v(zoc(b,e.value))});F();D(3,"mat-autocomplete",3,4);L("optionSelected",function(e){return b.updateSelectionOnChange(e)});P(5,$3a,2,2,"mat-option",5);F()()}if(a&
2){var d=N(4);w(1);C("placeholder",b.placeholder)("ngModel",b.selectedSlo)("disabled",b.isDisabled)("matAutocomplete",d);w(2);C("displayWith",b.displayFn);w(2);C("ngForOf",b.dropdownChoices)}},dependencies:[Dv,YJ,XJ,Hz,Tg,hw,ow],encapsulation:2});var A_=function(){};A_.\u0275fac=function(a){return new (a||A_)};A_.\u0275mod=qd({type:A_});A_.\u0275inj=ad({imports:[aD,ZJ,Dw]});var Aoc=function(a){return{"empty-list-field-indication":a}},B_=function(a){this.documentationLinks=a;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new Yu;this.validChange=new Yu;this.RetentionSelection=LTb};
B_.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};gq(this)};B_.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);gq(this)};
var gq=function(a){var b=a.validChange,c=b.emit,d;if(d=hq(a))d=a.hasRetentionSelection(a.model.piiRetentionSelection)&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!Boc(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||Coc(a));c.call(b,d)};B_.prototype.hasRetentionSelection=function(a){return a&&a!==this.RetentionSelection.UNSPECIFIED_RETENTION};
var hq=function(a){return a.hasRetentionSelection(a.model.retentionSelection)&&(a.model.retentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||!!a.model.retentionPeriodDays&&30<=a.model.retentionPeriodDays&&3650>=a.model.retentionPeriodDays)},b4a=function(a){return a?An(a):"[unset period]"},Coc=function(a){if(!a.model.piiRetentionPeriodDays||!a.model.spiiRetentionPeriodDays||30>a.model.piiRetentionPeriodDays||30>a.model.spiiRetentionPeriodDays)return!1;var b=a.model.retentionSelection,c=a.model.retentionPeriodDays,
d=a.model.piiRetentionPeriodDays;return a.model.spiiRetentionPeriodDays>d||b===a.RetentionSelection.BUGANIZER_DEFAULT&&3650<d||b===a.RetentionSelection.CUSTOM_PERIOD&&(null==c||d>c)?!1:!0},f4a=function(a){if(!hq(a)||Coc(a))return"";var b=a.model.retentionSelection,c=a.model.piiRetentionPeriodDays,d=a.model.spiiRetentionPeriodDays;if(!c||!d||30>c||30>d)return"must be at least 30 days";if(b===a.RetentionSelection.BUGANIZER_DEFAULT)var e=3650;else b===a.RetentionSelection.CUSTOM_PERIOD&&(e=a.model.retentionPeriodDays);
return e&&c>e?30===e?"must be 30 days":"must be between 30 days and "+b4a(e):"Restricted+ retention must not exceed Restricted retention."},Boc=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||60>a.model.retentionPeriodDays)},i4a=function(a){var b=a.model.piiRetentionSelection,c=a.model.piiRetentionPeriodDays,d=a.model.retentionSelection,e=a.model.retentionPeriodDays;d=b===a.RetentionSelection.INDEFINITE_RETENTION&&(d===a.RetentionSelection.INDEFINITE_RETENTION||
d===a.RetentionSelection.BUGANIZER_DEFAULT||d===a.RetentionSelection.CUSTOM_PERIOD&&!!e&&120<e);return b===a.RetentionSelection.CUSTOM_PERIOD&&!!c&&120<c||d};B_.\u0275fac=function(a){return new (a||B_)(z(yL))};
B_.\u0275cmp=od({type:B_,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled"},outputs:{modelChange:"modelChange",validChange:"validChange"},decls:30,vars:32,consts:[["aria-label","Retention settings form",1,"issue-retention-form",3,"ngClass","disabled","name","ngModel","ngModelChange"],[3,"value"],["aria-label","Custom retention period, must be between 30 days and 10 years",3,"value"],["class","duration-error",
4,"ngIf"],["class","custom-duration",4,"ngIf"],[3,"disabled","value"],["class","warning-box","id","indefinite-retention-warning-box",4,"ngIf"],["aria-label","PII Retention settings form",1,"pii-retention-form",3,"ngClass","disabled","name","ngModel","ngModelChange"],["target","_blank","aria-label","Learn more about restricted access",1,"keep-underline","keep-focus-ring",3,"rel"],[3,"aria-label","disabled","value"],["class","warning-box","id","indefinite-pii-retention-warning-box",4,"ngIf"],[1,"duration-error"],
[1,"custom-duration"],["ariaLabel","Custom duration",3,"disabled","durationDays","durationDaysChange"],[1,"duration-description"],["id","indefinite-retention-warning-box",1,"warning-box"],[1,"b-restricted-retention-duration-label"],["ariaLabel","Restricted retention duration",3,"disabled","durationDays","durationDaysChange"],[1,"warning-box"],["ariaLabel","Restricted+ retention duration",3,"disabled","durationDays","durationDaysChange"],["class","warning-box","id","custom-pii-retention-warning-box",
4,"ngIf"],["id","custom-pii-retention-warning-box",1,"warning-box"],["id","indefinite-pii-retention-warning-box",1,"warning-box"]],template:function(a,b){a&1&&(D(0,"mat-radio-group",0),L("ngModelChange",function(c){return b.updateSelectionOnChange(c)}),D(1,"p")(2,"b"),Q(3,"Issue Retention"),F()(),D(4,"mat-radio-button",1),Q(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),F(),D(6,"mat-radio-button",2),Q(7," Custom retention period "),P(8,a4a,2,0,"span",3),P(9,c4a,4,
3,"div",4),F(),D(10,"mat-radio-button",5),Q(11),P(12,d4a,13,0,"div",6),F()(),D(13,"mat-radio-group",7),L("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);gq(b)}),D(14,"p"),G(15,"br"),D(16,"b"),Q(17,"Restricted Comments/Attachments Retention "),F(),D(18,"a",8),Q(19,"Learn more "),F()(),D(20,"mat-radio-button",1),Q(21," Buganizer default retention period : 60 days "),P(22,e4a,2,0,"span",3),
F(),D(23,"mat-radio-button",9),Q(24," Custom retention period "),P(25,g4a,2,1,"span",3),P(26,j4a,16,7,"div",4),F(),D(27,"mat-radio-button",5),Q(28," Match Issue Retention "),P(29,k4a,3,0,"div",10),F()());a&2&&(C("ngClass",og(28,Aoc,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),w(4),C("value",b.RetentionSelection.BUGANIZER_DEFAULT),w(2),C("value",b.RetentionSelection.CUSTOM_PERIOD),
w(2),C("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!(b.model.retentionPeriodDays&&30<=b.model.retentionPeriodDays&&3650>=b.model.retentionPeriodDays)),w(1),C("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD),w(1),C("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),w(1),S(" Indefinite retention period ",b.isExternal?"(Internal components only)":""," "),w(1),C("ngIf",b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION),
w(1),C("ngClass",og(30,Aoc,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),w(5),C("rel",b.EXTERNAL_LINK_REL),Nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),re),w(2),C("value",b.RetentionSelection.BUGANIZER_DEFAULT),w(2),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&Boc(b)),w(1),C("aria-label","Custom Retention Period,"+
f4a(b))("disabled",!hq(b))("value",b.RetentionSelection.CUSTOM_PERIOD),w(2),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!Coc(b)),w(1),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD),w(1),C("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),w(2),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&i4a(b)))},dependencies:[Cv,Ev,hw,ow,wU,xU,r_],styles:[".mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:588px}.duration-error[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);font-weight:bold}.warning-box[_ngcontent-%COMP%]{white-space:normal}.b-restricted-retention-duration-label[_ngcontent-%COMP%]{display:inline-block;width:12em}b-duration-picker[_ngcontent-%COMP%]{display:inline-block}"],
changeDetection:0});var C_=function(){};C_.\u0275fac=function(a){return new (a||C_)};C_.\u0275mod=qd({type:C_});C_.\u0275inj=ad({imports:[aD,Dw,zV,s_]});var Doc=function(){this.type="component";this.includeChildren=!1},Eoc=function(){this.type="tracker"},Foc=function(){this.type="team";this.includeChildren=!1},Goc=function(){this.type="hotlist"},Hoc=function(){this.type="savedsearch"},Ioc=function(){this.type="customfield"};var Joc=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},Koc="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),Loc=Koc.concat("accesslevel archived assignee attachment blockedbyid blockingid canonicalid cc cccount collaborator collaboratorcount cl comment commentcount commenter created customfield deleted deletionreason deletiontime duplicatecount effortlabel foundin inprod is lastcommenter lastmodifier mention modified modifier mute p parentid postmortem priority reporter resolved s severity star status t targetedto title type verified verifiedin verifier votecount nearestslo".split(" ")),
Moc="cl deleted deletionreason deletiontime effortlabel nearestslo postmortem teamid".split(" "),Noc="(?:\\s|^)(-?)(customfield\\d+|"+Loc.join("|")+")(:|>|<|>=|<=|=)";var D_=function(a,b,c,d,e,f,h,k,q){Y.call(this);var u=this;this.userApi=a;this.trackerFridge=b;this.currentTracker=c;this.customFieldsApi=d;this.hotlistApi=e;this.savedSearchApi=f;this.componentActions=h;this.teamsService=k;this.activeSession=q;this.query="";this.requestIndex=0;this.producers=[{match:function(x){return Ooc(u,x)}},{updateHeader:function(x){return Poc(u,x)}},{updateHeader:function(x){return Qoc(u,x)}},{updateHeader:function(x){return Roc(u,x)}},{updateHeader:function(x){return Soc(u,
x)}},{updateHeader:function(x){return Toc(u,x)}},{updateHeader:function(x){return Uoc(u,x)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new B.Subject;this.refreshRequest$=new B.Subject;this.refreshRequest$.pipe(jf(250),Af(this.destroyed$)).subscribe(function(x){Voc(u,x.currentRequestIndex,x.currentSearchContext)});this.sessionIsInternal=q.isInternalSession();a=new Set(Loc);this.sessionIsInternal||a.delete("mention");if(!this.sessionIsInternal)for(b=l(Moc),c=
b.next();!c.done;c=b.next())a.delete(c.value);this.isTrackerSearchEnabled()||a.delete("trackerid");this.atoms=Object.freeze(a);this.atomsWithoutOp=Object.freeze(new Set(["customfield"]))};W(D_,Y);D_.\u0275dir=Y.\u0275dir;D_.prototype.isTrackerSearchEnabled=function(){return!this.currentTracker.inTracker};
var Voc=function(a,b,c){for(var d=!1,e=!1,f=[],h=l(a.producers),k=h.next();!k.done;k=h.next())k=k.value,k.match&&f.push(k.match(c).then(function(q){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,p(q))}).catch(function(q){return q})),k.updateHeader&&f.push(k.updateHeader(c).then(function(q){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=q)}).catch(function(q){return q}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},Ooc=
function(a,b){if(!b.value.val){var c=b.value.idx;if(c<b.query.length&&-1===b.query.charAt(c).search("\\s"))return Promise.reject(null)}if(b.label){if(b.label.customFieldId)return Woc(a,b);switch(b.label.val){case "archived":return Promise.resolve(kq(Xoc,b.value,!0));case "componentid":case "c":return Yoc(a,b);case "deleted":return Zoc(b);case "deletionreason":return Promise.resolve(kq($oc,b.value,!0));case "hotlistid":case "h":return apc(a,b);case "savedsearchid":return bpc(a,b);case "status":case "is":return Promise.resolve(kq(cpc,
b.value,!0));case "trackerid":return dpc(a,b);case "teamid":return epc(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(kq(fpc,b.value,!0));case "severity":case "s":return Promise.resolve(kq(gpc,b.value,!0));case "inprod":case "star":case "mute":return Zoc(b);case "accesslevel":return Promise.resolve(kq(hpc,b.value,!0));default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];for(var d=m4a(b.value.val),e=l(a.atoms),f=e.next();!f.done;f=
e.next())if(f=f.value,d.token!==f&&si(f,d.token)){var h=b.value.idx+(d.negated?1:0);h={type:"atom",startIdx:h,endIdx:h+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};h={trackId:"atom:"+f,name:f,completionCfg:h};"customfield"===f&&(h.name="customfield[id]:[value]");c.push(h)}c.sort(function(k,q){return oq(k.name,q.name)});return Promise.resolve(c)},Woc=function(a,b){return b.label&&b.label.customFieldId?a.customFieldsApi.get(b.label.customFieldId).then(function(c){if("ENUM"!==
c.type&&"REPEATED_ENUM"!==c.type||!c.allowedValue)return[];var d=c.allowedValue.map(function(e){return{trackId:"customfieldvalue:"+e,id:e,label:"Custom field "+c.name,name:e,completionCfg:{type:"customfieldvalue",completionValue:'"'+e+'"'}}});return kq(d,b.value,!1,!1)}):Promise.reject(null)};D_.prototype.matchType=function(a){return Promise.resolve(kq(ipc,a.value,!0))};
var Zoc=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(kq([{trackId:"booleanAtom:"+b+":true",label:b,name:"true",completionCfg:{enableShadowPlaceholder:!0,completionValue:"true",type:b}},{trackId:"booleanAtom:"+b+":false",label:b,name:"false",completionCfg:{enableShadowPlaceholder:!0,completionValue:"false",type:b}}],a.value,!0))},Yoc=function(a,b){var c=b.value.val;return!c||jq(c,!0)?Promise.reject(null):a.componentActions.search(c,!1).then(function(d){return a.processResponse(b,
d)})};
D_.prototype.processResponse=function(a,b){var c=a.value.val,d=[];b=l(b);for(var e=b.next(),f={};!e.done;f={paths$jscomp$45:f.paths$jscomp$45,startIdx$jscomp$2:f.startIdx$jscomp$2,endIdx$jscomp$2:f.endIdx$jscomp$2},e=b.next()){e=e.value;var h=e.componentId;f.startIdx$jscomp$2=a.value.idx;f.endIdx$jscomp$2=f.startIdx$jscomp$2+c.length;f.paths$jscomp$45=is(this.currentTracker,e.componentPathInfo);e={componentId:h,name:e.name,description:e.description,trackId:"component:"+h,accessLimit:e.accessLimit,trackerId:e.trackerId,
completionCfg:{type:"component",startIdx:f.startIdx$jscomp$2,endIdx:f.endIdx$jscomp$2,completionValue:""+h,matchingString:c},componentPath:f.paths$jscomp$45.componentPathId.map(function(k){return function(q,u){return{trackId:"subcomponent:"+q,id:""+q,name:String(k.paths$jscomp$45.componentPathName[u]),completionCfg:{type:"component",completionValue:String(q),startIdx:k.startIdx$jscomp$2,endIdx:k.endIdx$jscomp$2}}}}(f))};d.push(e)}return d};
var epc=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||jq(c,!0))return Promise.reject(null);var d=Rj();wI(a.teamsService,c).pipe(Af(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[];e=l(e);for(var q=e.next(),u={};!q.done;u={pathNames$jscomp$2:u.pathNames$jscomp$2},q=e.next())q=q.value,u.pathNames$jscomp$2=q.pathNames,q={trackId:"team:"+q.teamId,name:q.name,id:q.teamId,label:"Team "+q.teamId,pathIds:q.pathIds,pathNames:q.pathNames,description:q.description,completionCfg:{type:"team",
startIdx:f,endIdx:h,completionValue:String(q.teamId),matchingString:c},teamPath:q.pathIds.map(function(x){return function(y,E){return{trackId:"team:"+y,id:y,name:x.pathNames$jscomp$2[E],completionCfg:{type:"team",completionValue:String(y),startIdx:f,endIdx:h}}}}(u))},k.push(q);d.resolve(k)},function(){d.reject()});return d.promise},Poc=function(a,b){if(!b.label||"componentid"!==b.label.val&&"c"!==b.label.val)return Promise.reject(null);var c=new Doc;b=b.value.val;return jq(b,!0)?(gt(b,"+")&&(b=b.slice(0,
b.length-1),c.includeChildren=!0),a.componentActions.get(Number(b)).then(function(d){a.currentTracker.inTracker&&d.trackerId!==a.currentTracker.getTrackerId()||(c.component=d);return c})):Promise.resolve(c)},Soc=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||"trackerid"!==b.label.val)return Promise.reject(null);var c=new Eoc,d=Rj();b=b.value.val;jq(b)?a.trackerFridge.watchOne(b).pipe(Af(a.destroyed$)).subscribe(function(e){c.tracker=e;d.resolve(c)}):b&&d.resolve(c);return d.promise},Uoc=
function(a,b){if(!a.sessionIsInternal||!b.label||"teamid"!==b.label.val)return Promise.reject(null);var c=new Foc,d=Rj(),e=b.value.val;jq(e,!0)?(gt(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),wI(a.teamsService,e).pipe(Af(a.destroyed$)).subscribe(function(f){0<f.length?(f=f[0],c.team={pathNames:f.pathNames,name:f.name,description:f.description}):c.team={pathNames:[e],name:e,description:""};d.resolve(c)},function(){c.team={pathNames:[e],name:e,description:""};d.resolve(c)})):d.resolve(c);
return d.promise},Qoc=function(a,b){if(!b.label||"hotlistid"!==b.label.val&&"h"!==b.label.val)return Promise.reject(null);var c=new Goc;b=b.value.val;return jq(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},Roc=function(a,b){if(!b.label||"savedsearchid"!==b.label.val)return Promise.reject(null);var c=new Hoc;b=b.value.val;return jq(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},
Toc=function(a,b){if(b.label&&b.label.customFieldId)var c=b.label.customFieldId;else if(si(b.value.val,"customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&(c=b[1]),Mk("search-usage","customfield");else return Promise.reject(null);var d=new Ioc;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},dpc=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||jq(c,!0))return Promise.reject(null);var d=Rj();a.trackerFridge.watchMany({filter:c,
pageSize:5}).pipe(Af(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[];e=l(e.results);for(var q=e.next();!q.done;q=e.next())q=q.value,k.push({trackId:"trackerid:"+q.trackerId,name:q.name,trackerId:q.trackerId,label:"Tracker "+q.trackerId,completionCfg:{type:"tracker",startIdx:f,endIdx:h,completionValue:q.trackerId,matchingString:c}});d.resolve(k)});return d.promise},apc=function(a,b){return jq(b.value.val)?Promise.reject(null):a.userApi.getUserHotlists().then(function(c){c=
c.map(function(d){var e=d.hotlistId;return{hotlistId:e,name:d.name,trackId:"hotlist:"+e,completionCfg:{type:"hotlist",completionValue:""+e}}});return kq(c,b.value,!1,!0)})},bpc=function(a,b){return jq(b.value.val)?Promise.reject(null):a.userApi.getUserSavedSearches().then(function(c){c=c.map(function(d){var e=d.searchId;return{searchId:e,name:d.name,query:d.query,trackId:"savedsearch:"+e,completionCfg:{type:"savedsearch",completionValue:""+e}}});return kq(c,b.value,!1,!0)})};
D_.\u0275fac=function(a){return new (a||D_)(n(nH),n(iG),n(jG),n(ZG),n(mF),n(jI),n(EP),n(uI),n(Us))};D_.\u0275prov=$c({token:D_,factory:D_.\u0275fac,providedIn:"root"});
var cpc="accepted assigned closed duplicate fixed infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return lq({name:a,label:"Status",type:"status"})}),ipc="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue project feature milestone epic story task".split(" ").map(function(a){return lq({name:a,label:"Type",type:"type",trackIdPrefix:"bugType"})}),fpc=["p0","p1","p2","p3","p4"].map(function(a){return lq({name:a,
label:"Priority",type:"priority"})}),gpc=["s0","s1","s2","s3","s4"].map(function(a){return lq({name:a,label:"Severity",type:"severity"})}),Xoc=["all","true","false"].map(function(a){return lq({name:a,label:"Archived",type:"archived"})}),$oc=["abuse","pii","user_request","retention"].map(function(a){return lq({name:a,label:"Deletion Reason",type:"deletionreason",trackIdPrefix:"deletionReason"})}),hpc=[["limit_none","Default access"],["limit_view","Limited visibility"],["limit_append","Limited commenting"],
["limit_view_trusted","Limited visibility + Google"]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return lq({name:b,label:"Issue access level",type:"accesslevel",id:a})});var E_=function(a){this.cdr=a;this.optionsChange=new Yu};E_.prototype.ngOnInit=function(){n4a(this)};
var n4a=function(a){var b=null,c;for(c in a.options.propertyValues){var d=a.options.propertyValues[c].value;if(null===b)b=d;else if(b!=d){a.selectAllValue=null;return}}a.selectAllValue=b},o4a=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},jpc=function(a,b){if(b=void 0===b?null:b)b.preventDefault(),b.stopPropagation();a.selectAllValue=null===a.selectAllValue?!0:!a.selectAllValue;a.options.setAll(a.selectAllValue);a.optionsChange.emit(a.options);o4a(a)},kpc=function(a){var b=
[],c=!0,d;for(d in a.options.propertyValues){var e=a.options.propertyValues[d];e.value?b.push(e.displayString):c=!1}return c?a.selectAllText:b.join(", ")};E_.\u0275fac=function(a){return new (a||E_)(z(yD,2))};
E_.\u0275cmp=od({type:E_,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},features:[lg([yD])],decls:16,vars:12,consts:[["mat-stroked-button","",1,"gmat-button","bv2-appbar-menu",3,"matMenuTriggerFor"],[1,"flex-kids-x","flex-cross-axis-centered"],[1,"bv2-property-picker-summary-text"],["svgIcon","arrow-dropdown"],["menu","matMenu"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-selectall",
"bv2-property-picker-option-row",3,"click"],[3,"checked","indeterminate","change"],["mat-menu-item","","class","bv2-property-picker-options","role","menuitemcheckbox",4,"ngFor","ngForOf"],["class","bv2-property-picker-error-message",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-options"],["title","option",1,"bv2-property-picker-option-row",3,"click"],[3,"checked","change","click"],[1,"bv2-property-picker-error-message"]],template:function(a,b){a&1&&(D(0,"div")(1,"button",
0)(2,"div",1)(3,"span",2),Q(4),Q(5," \u00a0 "),F(),G(6,"mat-icon",3),F()(),D(7,"mat-menu",null,4)(9,"div",5),L("click",function(d){return jpc(b,d)}),D(10,"mat-checkbox",6),L("change",function(d){b.selectAllValue=d.checked;return jpc(b)}),Q(11),F()(),G(12,"mat-divider"),P(13,p4a,4,3,"div",7),T(14,"keyvalue"),F(),P(15,q4a,2,1,"div",8),F());if(a&2){var c=N(8);w(1);Xf("ng-invalid",!!b.errorString);C("matMenuTriggerFor",c);w(3);S(" ",kpc(b)," ");w(5);Nf("aria-checked",b.selectAllValue);w(1);C("checked",
!!b.selectAllValue)("indeterminate",null===b.selectAllValue);w(1);S(" ",b.selectAllText," ");w(2);C("ngForOf",V(14,10,b.options.propertyValues));w(2);C("ngIf",!!b.errorString)}},dependencies:[Dv,Ev,qA,PK,AB,yB,zB,dD,Ez,Pv],styles:["[_nghost-%COMP%]   .gmat-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var lpc=function(a,b){this.displayString=a;this.value=b},mpc=function(a){this.propertyValues=a},npc=function(a){for(var b=l(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},T4a=function(a){for(var b=l(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};mpc.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};var F_=function(){};F_.\u0275fac=function(a){return new (a||F_)};F_.\u0275mod=qd({type:F_});F_.\u0275inj=ad({imports:[aD,SK,BB,iD,SB]});var opc=function(a,b){this.name=a;this.secondsPerUnit=b},mq=new opc("minute",60),nq=new opc("hour",3600),y4a=new opc("day",86400),G_=function(){this.errorString=null;this.objectiveDurationChange=new Yu;this.objectiveBusinessDaysChange=new Yu;this.intervalUnit=y4a};G_.prototype.ngOnInit=function(){ppc(this)};G_.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.isFirstChange()})&&ppc(this)};
var t4a=function(a,b){b=b.name;1!==qi(a.intervalString)&&(b+="s");return b},x4a=function(a){return"BUSINESS"===a.dayType},ppc=function(a){!x4a(a)&&qpc(a,y4a)||qpc(a,nq)||qpc(a,mq);if(0!=a.objectiveBusinessDays||""!=a.businessDayString)a.businessDayString=""+a.objectiveBusinessDays},qpc=function(a,b){var c=a.objectiveDuration.seconds;return 0==c%b.secondsPerUnit?(c/=b.secondsPerUnit,0!=c||""!=a.intervalString?(a.intervalString=""+c,a.intervalUnit=b):(x4a(a)?[mq,nq]:[mq,nq,y4a]).includes(a.intervalUnit)||
(a.intervalUnit=b),!0):!1},r4a=function(a){a.errorString=a.validator(a.intervalString,a.businessDayString);v4a(a);w4a(a)},v4a=function(a){a.objectiveDuration.seconds=a.intervalUnit.secondsPerUnit*(qi(a.intervalString)||0);a.objectiveDurationChange.emit(a.objectiveDuration)},w4a=function(a){a.objectiveBusinessDays=qi(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};G_.\u0275fac=function(a){return new (a||G_)};
G_.\u0275cmp=od({type:G_,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},features:[Fd],decls:2,vars:2,consts:[["class","enabled bv2-slo-objective",4,"ngIf"],["class","disabled",4,"ngIf"],[1,"enabled","bv2-slo-objective"],["class","bv2-slo-objective-interval",
4,"ngIf"],[1,"bv2-slo-objective-interval"],["type","text",3,"ngModel","ngModelChange"],[1,"bv2-slo-objective-unit",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"bv2-slo-objective-unit"],[3,"value"],[1,"disabled"],["class","bv2-slo-objective-biz-day-text",4,"ngIf"],[4,"ngIf"],[1,"bv2-slo-objective-biz-day-text"]],template:function(a,b){a&1&&(P(0,z4a,6,6,"span",0),P(1,D4a,3,2,"span",1));a&2&&(C("ngIf",!b.isDisabled),w(1),C("ngIf",b.isDisabled))},dependencies:[Dv,
Ev,Tg,hw,ow,bP,Hz],styles:['[_nghost-%COMP%]{width:200px;line-height:29px}.bv2-slo-objective[_ngcontent-%COMP%]{display:flex}.bv2-slo-objective-interval[_ngcontent-%COMP%]{display:flex}.bv2-slo-objective-unit[_ngcontent-%COMP%]{padding-right:4px;padding-left:4px}[_nghost-%COMP%]     .mat-select-value{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--link);min-width:60px}input.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}/*# sourceMappingURL=slo_objective_selector.css.map */']});var H_=function(){this.typeStringToEnum=new Map([["BUG","BUG"],["FEATURE_REQUEST","FEATURE_REQUEST"],["CUSTOMER_ISSUE","CUSTOMER_ISSUE"],["INTERNAL_CLEANUP","INTERNAL_CLEANUP"],["PROCESS","PROCESS"],["VULNERABILITY","VULNERABILITY"],["PRIVACY_ISSUE","PRIVACY_ISSUE"],["PROJECT","PROJECT"],["FEATURE","FEATURE"],["MILESTONE","MILESTONE"],["EPIC","EPIC"],["STORY","STORY"],["TASK","TASK"]]);this.enumTypeToString=new Map([["BUG","BUG"],["FEATURE_REQUEST","FEATURE_REQUEST"],["CUSTOMER_ISSUE","CUSTOMER_ISSUE"],
["INTERNAL_CLEANUP","INTERNAL_CLEANUP"],["PROCESS","PROCESS"],["VULNERABILITY","VULNERABILITY"],["PRIVACY_ISSUE","PRIVACY_ISSUE"],["PROJECT","PROJECT"],["FEATURE","FEATURE"],["MILESTONE","MILESTONE"],["EPIC","EPIC"],["STORY","STORY"],["TASK","TASK"]]);this.priorityStringToEnum=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]);this.enumPriorityToString=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]);this.postmortemValuesToCanonical=new Map([["TRUE","ANY"],
["FALSE","NONE"],["ANY","ANY"],["NONE","NONE"]]);this.canonicalGroupQueryKeywordToQueryValue=new Map([["ANY","any"],["NONE","none"]])},upc=function(a,b){var c=new rpc,d=spc(b,"type",function(f){var h=f.toUpperCase(),k=new tpc;a.typeStringToEnum.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;var e=l(d.values);for(d=e.next();!d.done;d=e.next())c.types.push(a.typeStringToEnum.get(d.value));d=spc(b,"priority",function(f){var h=f.toUpperCase(),
k=new tpc;a.priorityStringToEnum.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;e=l(d.values);for(d=e.next();!d.done;d=e.next())c.priorities.push(a.priorityStringToEnum.get(d.value));b=spc(b,"postmortem",function(f){var h=f.toUpperCase(),k=new tpc;a.postmortemValuesToCanonical.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=l(b.values),d=b.next();!d.done;d=
b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},spc=function(a,b,c){var d=new vpc;if(a=(new RegExp(b+":(\\S+)")).exec(a))for(a=a[1],a.startsWith("(")&&a.endsWith(")")&&(a=a.substring(1,a.length-1)),a=a.split("|"),b=0;b<a.length;b++){var e=c(a[b]);if(e.error){d.error=e.error;break}d.values.push(e.value)}return d};H_.\u0275fac=function(a){return new (a||H_)(n(cD),n(Us))};H_.\u0275prov=$c({token:H_,factory:H_.\u0275fac,providedIn:"root"});
var rpc=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},vpc=function(){this.values=[];this.error=""},tpc=function(){this.error=this.value=""};var I_=function(){};I_.prototype.validate=function(a){for(var b={},c=l(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};I_.\u0275fac=function(a){return new (a||I_)};I_.\u0275dir=sd({type:I_,selectors:[["","customValidators",""]],inputs:{validators:["customValidators","validators"]},features:[lg([{provide:aw,useExisting:I_,multi:!0}])]});var J_=function(a,b,c){this.constants=a;this.sloParseService=b;this.confirmationDialogService=c;this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new Yu;this.onValidation=new Yu;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.metricChoices=["METRIC_UNSPECIFIED"].concat(Cic);this.dayTypes=["CALENDAR","BUSINESS"];Cic.map(function(d,e){return[d,e]});this.selectedMetric=
"METRIC_UNSPECIFIED";this.selectedDayType="CALENDAR";this.selectedMetric=this.metricChoices[0];this.selectedDayType="CALENDAR";this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.anyNoneDisplayValues=new Map([["ANY","Has postmortem"],["NONE","No postmortem"]]);this.canPerformActions=!0},o5a=function(a,b,c){U4a(a);a=l(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},r5a=function(a,b,c){c=u5a(a,b,c);var d=c.newOffset;
c.valid&&(U4a(a),za(a.collection,b),za(a.boundCollection,b.sloElement),a.collection.splice(d,0,b),a.boundCollection.splice(d,0,b.sloElement),wpc(a))},u5a=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:0<=b&&b<a.collection.length,newOffset:b}},U4a=function(a){a=l(a.collection);for(var b=a.next();!b.done;b=a.next())b=b.value,b.stopEditing(),b.canEdit=!0},xpc=function(a,b){var c=b.map(function(d){return new K_(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.canPerformActions=!a.openRow},
M4a=function(a){return"METRIC_UNSPECIFIED"===a?" - ":Dic.get(a)},$4a=function(a,b){return"TYPE_UNSPECIFIED"!==b&&a.constants.issueTypesDisplayNames.has(b)?a.constants.issueTypesDisplayNames.get(b):" - "},e5a=function(a,b){return"PRIORITY_UNSPECIFIED"!==b&&a.constants.issuePrioritiesDisplayNames.has(b)?a.constants.issuePrioritiesDisplayNames.get(b):" - "},V4a=function(a,b){U4a(a);za(a.collection,b);za(a.boundCollection,b.sloElement);wpc(a)},G4a=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",
content:hh("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];wpc(a)},onDismiss:function(){}});b.stopPropagation()},E4a=function(a,b){var c=new K_({metric:"METRIC_UNSPECIFIED",matcher:"",dayType:"DAY_TYPE_UNSPECIFIED",objective:{seconds:0,nanos:0},businessDays:0},a,!0);o5a(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);wpc(a)};
J_.prototype.onDrop=function(a){r5a(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var wpc=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
Qh.Object.defineProperties(J_.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){xpc(this,a)}},canPerformActions:{configurable:!0,enumerable:!0,set:function(a){this.canPerformActionsInternal=a;this.onValidation.emit(a)},get:function(){return this.canPerformActionsInternal}},isDisabled:{configurable:!0,enumerable:!0,set:function(a){this.isDisabledInternal=a;if(this.collection)for(var b=l(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});J_.\u0275fac=function(a){return new (a||J_)(z(cD),z(H_),z(zJ))};
J_.\u0275cmp=od({type:J_,selectors:[["slo-elements-picker"]],inputs:{collectionInput:["collection","collectionInput"],isDisabled:"isDisabled"},outputs:{onCollectionUpdate:"onCollectionUpdate",onValidation:"onValidation"},decls:29,vars:5,consts:[[1,"bv2-slo-elements-picker"],[1,"bv2-slo-elements-table-label","edit-field-header"],["href","http://g3doc/company/teams/buganizer/user-guide/guides/define-slo#creating-a-new-slo-rule"],["matTooltip","These ordered rules determine the objectives for each type of issue for this SLO",
1,"bv2-slo-elements-table-help-icon",3,"name","size"],["class","bv2-slo-elements-actionbar",4,"ngIf"],["cellspacing","0",1,"bv2-slo-elements-table"],[1,"header-row"],[1,"bv2-slo-elements-table-order-header"],[1,"bv2-slo-elements-table-type-header"],[1,"bv2-slo-elements-table-priority-header"],[1,"bv2-slo-elements-table-postmortem-header"],[1,"bv2-slo-elements-table-metric-header"],[1,"bv2-slo-elements-table-objective-header"],[1,"bv2-slo-elements-table-daytype-header"],[1,"bv2-slo-elements-table-actions-header"],
["cdkDropList","",3,"cdkDropListData","cdkDropListDisabled","cdkDropListDropped",4,"ngIf"],["class","bv2-slo-elements-table-empty-list-description",4,"ngIf"],[1,"bv2-slo-elements-actionbar"],[1,"slo-picker-actions"],[1,"slo-picker-icon-action-icon-container"],["class","hoverable","matTooltip","Add a new rule",3,"name","size","click",4,"ngIf"],["matTooltip","Clear all rules",1,"hoverable",3,"name","size","click"],["matTooltip","Add a new rule",1,"hoverable",3,"name","size","click"],["cdkDropList",
"",3,"cdkDropListData","cdkDropListDisabled","cdkDropListDropped"],["class","bv2-slo-element-row","cdkDrag","",3,"draggable",4,"ngFor","ngForOf"],["cdkDrag","",1,"bv2-slo-element-row"],["class","bv2-slo-element-row-counter editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-type-column bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-priority-column bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-postmortem-column bv2-editable-slo-element editable-row",
4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-metric bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-objective bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-daytype bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-action editable-row",4,"ngIf"],["class","bv2-slo-element-row-counter display-row",4,"ngIf"],["class","bv2-slo-element-type-column bv2-slo-element-picker-column display-row",
4,"ngIf"],["class","bv2-slo-element-priority-column bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-postmortem-column bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-metric bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-objective bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-daytype bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-action display-row",
4,"ngIf"],[1,"bv2-slo-element-row-counter","editable-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-type-column","bv2-editable-slo-element","editable-row"],[1,"bv2-type-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-priority-column","bv2-editable-slo-element","editable-row"],[1,"bv2-priority-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-postmortem-column",
"bv2-editable-slo-element","editable-row"],[1,"bv2-postmortem-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-metric","bv2-editable-slo-element","editable-row"],["appearance","outline"],["required","true",1,"bv2-enum-field","bv2-slo-elements-picker-metric-selector",3,"ngModel","customValidators","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"bv2-slo-element-picker-column","bv2-slo-element-objective","bv2-editable-slo-element",
"editable-row"],["required","",3,"dayType","objectiveDuration","objectiveBusinessDays","validator","isDisabled","objectiveDurationChange","objectiveBusinessDaysChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-daytype","bv2-editable-slo-element","editable-row"],["color","accent","appearance","outline"],[1,"bv2-enum-field","bv2-slo-elements-picker-daytype-selector",3,"ngModel","ngModelChange","selectionChange"],[1,"bv2-slo-element-action","editable-row"],["matTooltip","Finish editing",1,
"bv2-slo-element-action",3,"name","size","click"],["matTooltip","Remove row",1,"bv2-slo-element-action",3,"name","size","click"],[1,"bv2-slo-element-row-counter","display-row"],[1,"bv2-slo-element-type-column","bv2-slo-element-picker-column","display-row"],[4,"ngIf"],["class","bv2-property-display-chips",4,"ngIf"],[1,"bv2-property-display-chips"],["class","bv2-property-display-chip-container",4,"ngFor","ngForOf"],[1,"bv2-property-display-chip-container"],[1,"matcher-chip-content"],[1,"bv2-slo-element-priority-column",
"bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-postmortem-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-metric","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-objective","bv2-slo-element-picker-column","display-row"],["required","",3,"dayType","objectiveDuration","objectiveBusinessDays","isDisabled","objectiveDurationChange","objectiveBusinessDaysChange"],[1,"bv2-slo-element-daytype","bv2-slo-element-picker-column","display-row"],
[1,"bv2-slo-element-action","display-row"],["class","hoverable bv2-slo-element-action-edit","matTooltip","Edit this rule",3,"name","size","click",4,"ngIf"],["class","hoverable bv2-slo-element-action-more-settings","matTooltip","More options",3,"name","size","matMenuTriggerFor",4,"ngIf"],["settingsMenu","matMenu"],["mat-menu-item","","class","bv2-slo-element-action-more-settings-move-down",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-slo-element-action-more-settings-move-up",3,"click",4,"ngIf"],
["mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-below",3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-above",3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-remove",3,"click"],["matTooltip","Edit this rule",1,"hoverable","bv2-slo-element-action-edit",3,"name","size","click"],["matTooltip","More options",1,"hoverable","bv2-slo-element-action-more-settings",3,"name","size","matMenuTriggerFor"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down",
3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up",3,"click"],[1,"bv2-slo-elements-table-empty-list-description"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div")(2,"div")(3,"label",1),Q(4,"Rules"),F(),D(5,"a",2),G(6,"b-icon",3),F(),P(7,H4a,6,3,"span",4),F(),D(8,"table",5)(9,"thead")(10,"tr",6)(11,"th",7),Q(12,"Order"),F(),D(13,"th",8),Q(14,"Type"),F(),D(15,"th",9),Q(16,"Priority"),F(),D(17,"th",10),Q(18,"Postmortem"),F(),D(19,"th",11),Q(20,"Metric"),F(),D(21,"th",
12),Q(22,"Objective"),F(),D(23,"th",13),Q(24," Day Type "),F(),G(25,"th",14),F()(),P(26,x5a,2,3,"tbody",15),F(),D(27,"div"),P(28,y5a,2,0,"div",16),F()()());a&2&&(w(6),C("name","help-outline")("size","small"),w(1),C("ngIf",!b.isDisabled),w(19),C("ngIf",b.collection&&0!=b.collection.length),w(2),C("ngIf",!b.collection||0==b.collection.length))},dependencies:[Dv,Ev,I_,IR,HR,hw,zw,ow,bD,jA,AB,yB,zB,bP,Hz,FB,E_,G_],styles:['.bv2-slo-elements-picker[_ngcontent-%COMP%]{display:block}.bv2-slo-elements-picker[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]{width:1270px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   icon[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   icon[_ngcontent-%COMP%]{cursor:pointer}.bv2-slo-elements-picker[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:inherit}.bv2-slo-elements-picker[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-select-value-text, .cdk-drag-preview[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-select-value-text{padding-left:4px;text-align:left;width:8em}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);color:#5f6368;color:var(--muted);line-height:32px;text-align:center}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:.8125rem;padding-top:2px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:3px;display:inline-block;height:20px;margin-right:4px;white-space:nowrap}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%]{display:inline-block;line-height:16px;margin:2px 5px;max-width:550px;overflow:hidden;text-overflow:ellipsis}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%]{font-weight:bold;padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%]{display:inline-block;padding-bottom:4px;padding-left:4px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%]{display:inline-block;padding-right:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);counter-reset:rulenumber;width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]{counter-increment:rulenumber}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after{content:counter(rulenumber) ""}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:before, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:128px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:0px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field.ng-invalid[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field.ng-invalid[_ngcontent-%COMP%]{padding-top:3px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%]{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric.editable-row[_ngcontent-%COMP%]{padding-top:3px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector{float:left}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input{margin:auto;padding-right:4px;text-align:right;width:3em}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%]{padding-top:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype{text-align:left;padding-left:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field{width:111px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field{padding-top:3px;padding-bottom:0px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field.ng-invalid, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field.ng-invalid{padding-top:3px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%]{padding-top:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field{padding-right:10px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-wrapper{padding:0}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper{transform:none}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-infix, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-infix{padding:1px 0 7px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%]{border:0px;height:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%]{padding-left:16px;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:200px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%]{padding-left:16px;text-align:left;width:60px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]{height:18px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%]{background:none;border:none;box-shadow:none;line-height:initial;min-width:initial;padding:0;vertical-align:initial}.cdk-drag-preview[_ngcontent-%COMP%]{counter-increment:rulenumber;background-color:#fff;background-color:var(--surface-default);box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:table}.cdk-drag-preview[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after{content:counter(rulenumber) ""}.cdk-drag-preview.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:128px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field.ng-invalid[_ngcontent-%COMP%]{padding-top:3px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%]{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric.editable-row[_ngcontent-%COMP%]{padding-top:3px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector{float:left}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input{margin:auto;padding-right:4px;text-align:right;width:3em}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%]{padding-top:6px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype{text-align:left;padding-left:16px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field{width:111px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field{padding-top:3px;padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field.ng-invalid{padding-top:3px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%]{padding-top:6px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field{padding-right:10px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-wrapper{padding:0}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper{transform:none}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-infix{padding:1px 0 7px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]:after{content:""}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform 250ms cubic-bezier(0, 0, 0.2, 1)}/*# sourceMappingURL=slo-elements-picker.css.map */']});
var K_=function(a,b,c){var d=this;this.sloElement=a;this.controllerReference=b;this.isNewElement=void 0===c?!1:c;this.metricSelectorValid=this.postmortemPickerValid=this.priorityPickerValid=this.typePickerValid=this.isEditingInternal=!1;this.objectiveValid=!0;this.validatePriorityPicker=function(){var e=npc(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=null===e;return e};this.validateTypePicker=function(){var e=npc(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
null===e;return e};this.validatePostmortemPicker=function(){var e=npc(d.postmortemPickerValues)?null:"Postmortem can't be empty";d.postmortemPickerValid=null===e;return e};this.validateObjective=function(e,f){if("BUSINESS"!==d.selectedDayType){if(!e.match(/^\d+$/)||"0"===e)return d.objectiveValid=!1,"Objective must be a positive integer"}else{if(!e.match(/^\d*$/)||!f.match(/^\d*$/))return d.objectiveValid=!1,"Objective must be a positive integer";if(!(""!==e&&"0"!==e||""!==f&&"0"!==f))return d.objectiveValid=
!1,"A business day or time based duration must be specified."}d.objectiveValid=!0;return null};this.matcherText=a.matcher;this.selectedMetric=a.metric;this.selectedDayType=a.dayType||"CALENDAR";this.selectedObjectiveDuration=ypc(a.objective);this.selectedObjectiveBusinessDays=a.businessDays;this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return zpc(d,e)}};Apc(this);this.typePickerValues=Bpc(this.controllerReference.sloParseService.enumTypeToString.keys(),function(e){return 0===
d.parseResult.types.length||d.parseResult.types.includes(e)},function(e){return $4a(d.controllerReference,e)});this.priorityPickerValues=Bpc(this.controllerReference.sloParseService.enumPriorityToString.keys(),function(e){return 0===d.parseResult.priorities.length||d.parseResult.priorities.includes(e)},function(e){return e5a(d.controllerReference,e)});this.postmortemPickerValues=Bpc(this.controllerReference.anyNoneDisplayValues.keys(),function(e){return 0===d.parseResult.postmortemValues.length||
d.parseResult.postmortemValues.includes(e)},function(e){return d.controllerReference.anyNoneDisplayValues.get(e)});this.validateTypePicker();this.validatePriorityPicker();this.validatePostmortemPicker();zpc(this,this.selectedMetric)},ypc=function(a){return a?a:{seconds:86400,nanos:0}};K_.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};
var zpc=function(a,b){b="METRIC_UNSPECIFIED"!==b;return a.metricSelectorValid=b};
K_.prototype.stopEditing=function(){if(this.isEditingInternal&&(this.isValid()||this.isNewElement)){this.controllerReference.openRow=null;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.isEditingInternal=this.isNewElement=!1;this.canEdit=!0;Cpc(this);this.sloElement.metric=this.selectedMetric;this.sloElement.dayType=this.selectedDayType;this.sloElement.objective=this.selectedObjectiveDuration;this.sloElement.businessDays=this.selectedObjectiveBusinessDays;Apc(this)}};
var Cpc=function(a){var b=Dpc(a.typePickerValues),c=Dpc(a.priorityPickerValues),d=Dpc(a.postmortemPickerValues);b=Epc(b,function(f){return a.controllerReference.sloParseService.enumTypeToString.get(f)});c=Epc(c,function(f){return a.controllerReference.sloParseService.enumPriorityToString.get(f)});d=Epc(d,function(f){return a.controllerReference.sloParseService.canonicalGroupQueryKeywordToQueryValue.get(f)});var e=[];b&&e.push("type:"+b);c&&e.push("priority:"+c);d&&e.push("postmortem:"+d);a.matcherText=
e.join(" ");a.sloElement.matcher=a.matcherText},Dpc=function(a){var b=[],c=!0,d=!0,e;for(e in a.propertyValues)a.propertyValues[e].value?(b.push(e),d=!1):c=!1;return c||d?[]:b},Epc=function(a,b){if(0===a.length)return"";if(1===a.length)return b(a[0]);var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
K_.prototype.startEditing=function(){if(!this.isEditingInternal){this.controllerReference.canPerformActions=!1;this.controllerReference.openRow=this;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.canEdit=!1;this.isEditingInternal=!0;Apc(this)}};var Apc=function(a){a.parseResult=upc(a.controllerReference.sloParseService,a.matcherText)},Bpc=function(a,b,c){var d={};a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),h=c(e);d[""+e]=new lpc(h,f)}return new mpc(d)};var L_=function(){};L_.\u0275fac=function(a){return new (a||L_)};L_.\u0275mod=qd({type:L_});L_.\u0275inj=ad({imports:[aD,Dw,cP]});var M_=function(){};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275mod=qd({type:M_});M_.\u0275inj=ad({imports:[aD]});var N_=function(){};N_.\u0275fac=function(a){return new (a||N_)};N_.\u0275mod=qd({type:N_});N_.\u0275inj=ad({imports:[aD,M_,JR,Dw,hD,kA,BB,cP,FC,F_,L_]});var O_=function(a,b,c,d,e){Y.call(this);this.element=a;this.cdr=b;this.location=c;this.paths=d;this.hotkeys=e;this.focusedIndex=0;this.slos=[]};W(O_,Y);O_.\u0275dir=Y.\u0275dir;g=O_.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};g.selectPrevious=function(){0>this.focusedIndex-1||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.ngOnInit=function(){var a=this,b=rE(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next SLO",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous SLO",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View SLO detail",onPress:function(){var c=a.slos[a.focusedIndex];c&&a.editSlo(c);a.cdr.detectChanges()}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=null==(b=this.element.nativeElement.querySelector("table"))?void 0:null==(c=b.rows)?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.slos[a].name};g.editSlo=function(a){this.location.path(this.paths.editSlo(a.sloId))};
O_.\u0275fac=function(a){return new (a||O_)(z(ae),z(yD,2),z(wE),z(xE),z(qE))};
O_.\u0275cmp=od({type:O_,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},features:[lg([yD]),Jf],decls:16,vars:1,consts:[[1,"pop-grid","bv2-resource-list","bv2-slo-grid"],[1,"header-row"],[1,"focus-indicator"],[1,"bv2-columnheader-content"],[1,"pop-grid-default-th"],[1,"pop-grid-non-sort-header"],["class","bv2-resource-list-row","tabindex","0",3,"grid-focus","click","focus",4,"ngFor","ngForOf"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","slo-name","clickable"],
["tabindex","-1",1,"grid-link",3,"href","click"],[1,"bv2-resource-list-cell","slo-description","clickable"]],template:function(a,b){a&1&&(D(0,"table",0)(1,"thead")(2,"tr",1),G(3,"th",2),D(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," SLO name "),F()()()(),D(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),F()()()()()(),D(14,"tbody"),P(15,z5a,7,7,"tr",6),F()());a&2&&(w(15),C("ngForOf",b.slos))},dependencies:[Dv],styles:[".bv2-slo-grid[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary)}.bv2-slo-grid[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-transform:initial}"]});var P_=function(){};P_.\u0275fac=function(a){return new (a||P_)};P_.\u0275mod=qd({type:P_});P_.\u0275inj=ad({imports:[aD]});var Q_=function(a,b){this.log=a;this.dateFormatter=b},Gpc=function(a,b){var c=AIa(b.addMask.paths),d=AIa(b.removeMask.paths),e={author:b.author||null,timestamp:b.timestamp||null,diffs:[]},f=b.add;b=b.remove;for(var h=l(new Set([].concat(p(c),p(d)))),k=h.next();!k.done;k=h.next()){var q=k.value;k=Eic.get(q);if("name"===q){var u=uo(d,q,b.name);q=uo(c,q,f.name);e.diffs.push(vo(k,u,q))}else if("description"===q)u=uo(d,q,b.description),q=uo(c,q,f.description),e.diffs.push(vo(k,u,q));else if("parentId"===
q)u=uo(d,q,String(b.parentId)),q=uo(c,q,String(f.parentId)),e.diffs.push(vo(k,u,q));else if("elements"===q){var x=f.elements;u=BIa(d,q,b.elements.map(function(y){return Fpc(y)}));q=BIa(c,q,x.map(function(y){return Fpc(y)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:u,added:q}})}else a.log.error("Unsupported diff field.")}return e},Fpc=function(a){var b=a.matcher,c=Dic.get(a.metric),d=Q4a.get(a.dayType),e=[];0<a.businessDays&&e.push(a.businessDays+" day"+(1<a.businessDays?"s":""));
0<a.objective.seconds&&e.push(G2b(1E3*a.objective.seconds));a=e.join(", ");return'("'+b+'", '+c+") - "+(d+" days - "+a)};Q_.\u0275fac=function(a){return new (a||Q_)(n(dE),n(OL))};Q_.\u0275prov=$c({token:Q_,factory:Q_.\u0275fac,providedIn:"root"});var R_=function(){};R_.\u0275fac=function(a){return new (a||R_)};R_.\u0275mod=qd({type:R_});R_.\u0275inj=ad({imports:[aD,DL,SB,Zz]});var Jpc=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=l(Hpc);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a[c]){var d=a[c],e=void 0;Array.isArray(d)?e=d.map(function(f){return"string"===typeof f?ui(f):""}):e="string"===typeof d?ui(d):"";this.templateAttributes[c]=e}b=l(Ipc);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]&&(this.templateAttributes[c]=a[c]);if(a=a.customFields)for(a=Array.isArray(a)?a:[a],a=l(a),b=a.next();!b.done;b=a.next())c=b.value.split(":"),
b=c[0],c=c.slice(1).join(":"),Oi(c)||(this.templateCustomFields[b]=c)},Lpc=function(a){return 0!==Object.keys(a.templateCustomFields||{}).length||Kpc.some(function(b){return null!=a.templateAttributes[b]})},Qpc=function(a,b,c){null!=c&&(Mpc(a,c),Npc(a,b,c),Opc(b,c));c=l(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;Ppc[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},Npc=function(a,b,c){null==b.customField&&
(b.customField=[]);for(var d={},e=l(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e=l(Object.entries(a.templateCustomFields));var h=e.next();for(f={};!h.done;f={customFieldId$jscomp$23:f.customFieldId$jscomp$23},h=e.next()){var k=l(h.value);h=k.next().value;k=k.next().value;f.customFieldId$jscomp$23=qi(h);k={customFieldId:f.customFieldId$jscomp$23,value:k};h=a.getCustomFieldValue(k,c);null!=d[f.customFieldId$jscomp$23]?(k=b.customField.findIndex(function(q){return function(u){return u.customFieldId===
q.customFieldId$jscomp$23}}(f)),b.customField[k]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
Jpc.prototype.getCustomFieldValue=function(a,b){var c=new xl(a);if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=$ua(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=ava(a.value)||void 0;break;case "REPEATED_TEXT":d=a.value.split(",");c.repeatedTextValue={values:d};break;case "REPEATED_DATE":d=a.value.split(",").map(function(e){return $ua(e)}).filter(function(e){return null!==e});c.repeatedDateValue=
{values:d};break;case "REPEATED_ENUM":d=a.value.split(",");c.repeatedEnumValue={values:d};break;case "REPEATED_NUMERIC":d=a.value.split(",").map(function(e){return ava(e)}).filter(function(e){return null!==e});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};Jpc.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=b[a.customFieldId])?void 0:c.type)?d:""};
var Mpc=function(a,b){a.templateCustomFields=wc(a.templateCustomFields,function(c,d){return!!b[d]})},Opc=function(a,b){if(null!=a.customField){a=l(a.customField);for(var c=a.next(),d={};!c.done;d={allowedValues:d.allowedValues},c=a.next()){c=c.value;var e=b[c.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){d.allowedValues=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(c.repeatedEnumValue=c.repeatedEnumValue||{values:[]},c.repeatedEnumValue.values=c.repeatedEnumValue.values.filter(function(h){return function(k){return h.allowedValues.includes(k)}}(d)),
!c.repeatedEnumValue.values.length&&f&&(c.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):d.allowedValues.includes(c.enumValue)||(c.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},Hpc="title type priority severity assignee verifier reporter collaborators cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),Ipc=["inProd"],Kpc="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),S_={},Ppc=(S_.cc=function(a,b){a.ccUsers=
D5a(b,a.ccUsers||[])},S_.collaborators=function(a,b){a.collaboratorsUsers=D5a(b,a.collaboratorsUsers||[])},S_.title=function(a,b){"string"===typeof b&&(a.title=b)},S_.assignee=function(a,b){C5a(b,function(c){a.assigneeUser=c})},S_.reporter=function(a,b){C5a(b,function(c){a.reporterUser=c})},S_.verifier=function(a,b){C5a(b,function(c){a.verifierUser=c})},S_.hotlistIds=function(a,b){if(b=A5a(b)){a.hotlistId||(a.hotlistId=[]);b=l(b);for(var c=b.next();!c.done;c=b.next())a.hotlistId.push(c.value)}},S_.blockingIssueIds=
function(a,b){if(b=A5a(b))a.blockingIssueId=b.map(String)},S_.blockedByIssueIds=function(a,b){if(b=A5a(b))a.blockedByIssueId=b.map(String)},S_.foundIn=function(a,b){"string"===typeof b&&(a.foundInVersion=b.split(","))},S_.targetedTo=function(a,b){"string"===typeof b&&(a.targetedToVersion=b.split(","))},S_.inProd=function(a,b){a.inProd="true"===b},S_.priority=function(a,b){if(b=B5a(cUb,b))a.priority=tpa(b)},S_.severity=function(a,b){if(b=B5a(fUb,b))a.severity=vpa(b)},S_.type=function(a,b){if(b=B5a(eUb,
b))a.type=upa(b)},S_);var T_=function(a,b){this.issueRelationshipApi=a;this.issueApi=b};
T_.prototype.bulkEdit=function(a){var b=this,c,d,e,f,h,k,q,u,x,y,E,H,J;return Ne(function(O){switch(O.nextAddress){case 1:c=a.actions[0];d=String(c.value);e=a.issueIds;f=c.actionType;if("ADD"!==f&&"REMOVE"!==f)throw Error("re");h={};k=[];q=[];u=vra(e);x=l(u.reverse());y=x.next();case 2:if(y.done){O.jumpTo(4);break}E=y.value;Oe(O,5);return"ADD"===f?(H=E.map(function(R){return NH(new MH,Number(R))}),O.yield((0,B.firstValueFrom)(eZb(b.issueRelationshipApi,d,H)),8)):O.yield((0,B.firstValueFrom)(fZb(b.issueRelationshipApi,
d,E)),8);case 8:return O.yield(b.issueApi.batchGetIssues(E).then(function(R){return R.map(function(U){return h[U.issueId]=U})}),11);case 11:$s(O,3);break;case 5:J=Re(O);if(!sn(J))throw J;q.push(J);k.push.apply(k,p(E));case 3:y=x.next();O.jumpTo(2);break;case 4:return O.return({finishedIssues:h,notFinishedIssueIds:k,errors:q})}})};T_.\u0275fac=function(a){return new (a||T_)(n(bI),n(AF))};T_.\u0275prov=$c({token:T_,factory:T_.\u0275fac,providedIn:"root"});var U_=function(a,b){Y.call(this);this.routerEvents=a;this.bLocation=b;this.history=[]};W(U_,Y);U_.\u0275dir=Y.\u0275dir;U_.prototype.install=function(){var a=this;this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.history.push(a.bLocation.url());21<a.history.length&&a.history.shift()}))};U_.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};U_.prototype.hasPreviousPage=function(){return 1<this.history.length};
var V_=function(a){if(a.hasPreviousPage()){a.history.pop();var b=a.history.pop();b?a.bLocation.url(b):a.bLocation.url("/")}else a.bLocation.url("/")};U_.\u0275fac=function(a){return new (a||U_)(n(gE),n(wE))};U_.\u0275prov=$c({token:U_,factory:U_.\u0275fac,providedIn:"root"});var W_=function(a,b,c){this.bLocation=a;this.routeParams=b;this.domSafe=c},Rpc=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&gt(d,"id=")||gt(d,"bugId="))d+=c;AL(a.domSafe,d)}else{var e;a.bLocation.replaceUrl(null!=(e=d)?e:b)}};W_.\u0275fac=function(a){return new (a||W_)(n(wE),n(aO),n(zL))};W_.\u0275prov=$c({token:W_,factory:W_.\u0275fac,providedIn:"root"});var X_=function(a,b){Y.call(this);var c=this;this.routerEvents=a;this.documentVisibility=b;this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1;this.onNavStart=function(){c.ignoringNextNav||(IWb("appNavStart"),c.mostRecentlyMeasured="")};this.onNavSuccess=function(){c.ignoringNextNav?c.ignoringNextNav=!1:c.validNavigations++}};W(X_,Y);X_.\u0275dir=Y.\u0275dir;
X_.prototype.install=function(){var a=this;Ik()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(this.onNavStart)),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(this.onNavSuccess)),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){a.onNavStart();a.onNavSuccess()})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(cf(function(b){return"visible"!==b}),nf()).subscribe(function(){a.tabWasHidden=!0})))};
var Spc=function(a,b){IWb(b);if(b!==a.mostRecentlyMeasured){var c=1>=a.validNavigations?void 0:"appNavStart",d=c?"appNavStart-to-CF":"browserStart-to-CF",e=d+" -> "+b;a.mostRecentlyMeasured=b;if(("browserStart-to-CF"!==d||!a.tabWasHidden)&&Ik())if(null===b)console.warn("window.performance does not support endMark `null`");else try{window.performance.measure(e,c,b)}catch(f){console.warn("route_performance",f)}}};X_.\u0275fac=function(a){return new (a||X_)(n(gE),n(Y_))};
X_.\u0275prov=$c({token:X_,factory:X_.\u0275fac,providedIn:"root"});var Y_=function(a){var b=this;this.window=a;this.visibilityState$=(0,B.fromEvent)(this.window.document,"visibilityChange").pipe(yf(void 0),A(function(){return b.currentVisibility}))};Qh.Object.defineProperties(Y_.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});Y_.\u0275fac=function(a){return new (a||Y_)(n(qF))};
Y_.\u0275prov=$c({token:Y_,factory:Y_.\u0275fac,providedIn:"root"});var Tpc={provide:tXb,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},Upc={provide:tXb,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};var Z_=function(a){this.activeSession=a};Z_.prototype.intercept=function(a,b){var c=a.method;return"POST"===c||"PUT"===c||"DELETE"===c?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};Z_.\u0275fac=function(a){return new (a||Z_)(n(Us))};Z_.\u0275prov=$c({token:Z_,factory:Z_.\u0275fac,providedIn:"root"});var Vpc={provide:qx,useClass:Z_,multi:!0};var a0=function(a){this.http=a};W(a0,tD);g=a0.prototype;g.get=function(a){return this.request("get",a)};g.delete=function(a){return this.request("delete",a)};g.post=function(a){return this.request("post",a,a.body)};g.put=function(a){return this.request("put",a,a.body)};g.request=function(a,b,c){var d=b.options;d=void 0===d?{}:d;d={headers:d.headers||{},params:Object.assign({},d.params)};var e;c=null!=(e=null==c?void 0:c.toJSON())?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(A(E5a(b.responseConstructor)))};
a0.\u0275fac=function(a){return new (a||a0)(n(px))};a0.\u0275prov=$c({token:a0,factory:a0.\u0275fac,providedIn:"root"});var b0=function(a){this.jspbExecutor=a};W(b0,uD);b0.prototype.get=function(a){return(0,B.firstValueFrom)(this.jspbExecutor.get(a))};b0.prototype.delete=function(a){return(0,B.firstValueFrom)(this.jspbExecutor.delete(a))};b0.prototype.post=function(a){return(0,B.firstValueFrom)(this.jspbExecutor.post(a))};b0.prototype.put=function(a){return(0,B.firstValueFrom)(this.jspbExecutor.put(a))};
b0.\u0275fac=function(a){return new (a||b0)(n(a0))};b0.\u0275prov=$c({token:b0,factory:b0.\u0275fac,providedIn:"root"});var c0=function(){};c0.\u0275fac=function(a){return new (a||c0)};c0.\u0275mod=qd({type:c0});c0.\u0275inj=ad({providers:[{provide:nG,useClass:pG},{provide:I4b,useClass:TN},{provide:UN,useClass:VN},{provide:tYb,useClass:NG},{provide:uYb,useClass:MG},{provide:TG,useClass:VG},{provide:ZG,useClass:aH},{provide:WI,useClass:YI},{provide:AF,useClass:CF},{provide:LK,useClass:MK},{provide:nH,useClass:qH},{provide:oH,useClass:pH},{provide:tD,useClass:a0},{provide:uD,useClass:b0}],imports:[aD]});var Wpc=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1};g=Wpc.prototype;g.getId=function(){return this.lookupId_};g.setDisplayName=function(a){this.displayName_=a;return this};g.getDisplayName=function(){return this.displayName_};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
g.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};var d0=function(a){this.internalArray_=m(a)};W(d0,X);g=d0.prototype;g.getEnableClearcut=function(){return Ri(this,1,!1)};g.setEnableClearcut=function(a){return mj(this,1,a)};g.getClientId=function(){return Vi(this,2,0)};g.setClientId=function(a){return rj(this,2,a)};g.getSocialApplication=function(){return Vi(this,3,0)};g.getSocialApplicationOrUndefined=function(){return Xr(this,3)};g.getComponentFlow=function(){return Vi(this,4,0)};g.setComponentFlow=function(a){return rj(this,4,a)};
g.getInterfaceType=function(){return Vi(this,5,0)};g.setInterfaceType=function(a){return rj(this,5,a)};var e0=function(a){this.internalArray_=m(a)};W(e0,X);var Zq=function(){var a=Xq.getExperiments();return Ri(a,7,!1)};var f0=function(a){this.internalArray_=m(a)};W(f0,X);f0.prototype.getApplication=function(){return Vi(this,1,0)};f0.prototype.setApplication=function(a){return rj(this,1,a)};f0.prototype.getApplicationOrUndefined=function(){return Xr(this,1)};f0.prototype.getIsEnabled=function(){return Ri(this,2,!1)};var Xpc=function(a){this.internalArray_=m(a)};W(Xpc,X);g=Xpc.prototype;g.getClearcut=function(){return Fi(this,d0,1)};g.setClearcut=function(a){oj(this,d0,1,a)};g.hasClearcut=function(){return Zi(this,d0,1)};g.getExperiments=function(){return Fi(this,f0,2)};g.setExperiments=function(a){oj(this,f0,2,a)};g.hasExperiments=function(){return Zi(this,f0,2)};var Ypc=sc(Xpc);var Zpc;var $pc=function(){this.actionListeners=new Map};$pc.prototype.subscribe=function(a,b){this.actionListeners.has(a)?this.actionListeners.get(a).push(b):this.actionListeners.set(a,[b])};$pc.prototype.unsubscribe=function(a,b){if(this.actionListeners.has(a)){var c=this.actionListeners.get(a).filter(function(d){return d!==b});c.length?this.actionListeners.set(a,c):this.actionListeners.delete(a)}};
$pc.prototype.notify=function(a){var b=xd.apply(1,arguments);if(this.actionListeners.has(a)){var c=this.actionListeners.get(a);c=l(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{d.apply(null,b)}catch(e){}}}};var aqc=function(){this.actionEventDispatcher=new $pc};var bqc=function(){var a=Mb(Zpc||(Zpc=Ypc("[[true,49,740,4],[7,true]]")));this.injectorService=new aqc;a.hasClearcut()||a.setClearcut(new d0);a.hasExperiments()||a.setExperiments(new f0);this.internal=a};var J5a=function(a){this.root=a;this.length=0};g=J5a.prototype;g.getItems=function(){return Array.from(this.root.childNodes)};g.append=function(a){this.root.appendChild(a);++this.length};g.insert=function(a,b){if(0>a||a>this.length)throw new RangeError("te");if(a===this.length)this.append(b);else{var c=this.getItems();this.root.insertBefore(b,c[a]);++this.length}};g.remove=function(a){if(0>a||a>=this.length)throw new RangeError("te");var b=this.getItems();this.root.removeChild(b[a]);--this.length};
g.clear=function(){sPb(this.root);this.length=0};g.getRoot=function(){return this.root};var H5a=function(a){return Iq('<ul id="'+Lq(a.id)+'" peoplekit-id="'+Lq("rymPhb")+'" role="listbox" aria-multiselectable="true" class="'+Lq("peoplekitComponentsListImplList")+'"></ul>')};var I5a=uq.getInstance();var X5a=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(p(a));this.activeItems=new Set([]);this.hideContextMenu=function(){}};g=X5a.prototype;
g.remove=function(a,b){var c=-1;a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c=this.list.indexOf(d),this.list.splice(c,1),this.activeItems.delete(d),b||(c<this.spotlightIndex?--this.spotlightIndex:c===this.spotlightIndex&&this.reset());0<=c&&b&&(this.isActive=!1,this.goToIndex(c,0))};
g.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(p(b)));c?(cqc(this),dqc(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):0<=a&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};g.size=function(){return this.list.length};g.prev=function(a){var b=0===this.spotlightIndex&&1===a;!this.list.length||b?a=!1:(this.isActive?(b=this.spotlightIndex-1,b=0<=b?b:this.list.length+b):b=this.list.length-1,a=this.goToIndex(b,a));return a};
g.next=function(a){var b=this.spotlightIndex===this.list.length-1&&1===a;if(!this.list.length||b)a=!1;else{var c;this.isActive?c=(this.spotlightIndex+1)%this.list.length:c=0;a=this.goToIndex(c,a)}return a};g.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
g.goToIndex=function(a,b){this.hideContextMenu();if(!this.list.length||void 0===a||0>a)return!1;var c=this.isActive?this.spotlightIndex:-1;this.spotlightIndex=Math.max(Math.min(this.list.length-1,a),0);this.isActive&&this.list[c].unspotlight();this.isActive||(this.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:cqc(this);eqc(this);break;case 3:eqc(this);break;case 1:a=L5a(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=L5a(this.multiActivateAnchorIndex,c,this.spotlightIndex);
if(0<=c&&(a||b||this.multiActivateAnchorIndex===this.spotlightIndex))for(b=b?this.multiActivateAnchorIndex:this.spotlightIndex,c<b?(a=c,c=b-1):a=b+1;a<=c;a++)b=this.list[a],b.deactivate(),this.activeItems.delete(b);dqc(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};g.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};g.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
g.getItem=function(a){for(var b=l(this.list),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getRoot();if(d===a||d.contains(a))return c}};g.getIndexOf=function(a){return this.list.indexOf(a)};g.clear=function(){this.reset();this.list.length=0};g.reset=function(){this.hideContextMenu();cqc(this);var a=this.getSpotlitItem();a&&a.unspotlight();this.spotlightIndex=-1;this.isActive=!1};g.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
g.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(p(this.secondaryEventTargets));b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;null==(d=c.value)||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};g.onContextMenu=function(a,b){this.hideContextMenu();var c=a.event;if(c=c.target===c.currentTarget?this.getSpotlitItem():this.getItem(c.target))this.hideContextMenu=c.onContextMenu(a,b)};
var eqc=function(a){var b=a.list[a.spotlightIndex];a.activeItems.has(b)?(b.deactivate(),a.activeItems.delete(b)):(b.activate(),a.activeItems.add(b));a.multiActivateAnchorIndex=a.spotlightIndex},cqc=function(a){for(var b=l(a.activeItems),c=b.next();!c.done;c=b.next())c=c.value,c.deactivate(),c.unspotlight();a.activeItems.clear()},dqc=function(a,b,c){var d=Math.max(b,c)+1;for(b=Math.min(b,c);b<d;b++)c=a.list[b],c.activate(),a.activeItems.add(c)};var fqc=function(a){this.delegate=a};g=fqc.prototype;g.prev=function(a){a=this.delegate.prev(a);gqc(this);return a};g.next=function(a){a=this.delegate.next(a);gqc(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);gqc(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);gqc(this);return a};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};
g.getItem=function(a){return this.delegate.getItem(a)};g.getIndexOf=function(a){return this.delegate.getIndexOf(a)};g.clear=function(){this.delegate.clear()};g.reset=function(){this.delegate.reset()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};g.remove=function(a,b){this.delegate.remove(a,b)};g.insert=function(a,b,c){this.delegate.insert(a,b,c)};
var gqc=function(a){(a=a.delegate.getSpotlitItem())&&O5a(a.getRoot())};var n6a=function(a){this.root=a;this.length=0;a=this.root;if(void 0!==a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;this.marker=a};g=n6a.prototype;g.append=function(a){this.root.insertBefore(a,this.marker);++this.length};g.insert=function(a,b){if(0>a||a>this.length)throw new RangeError("te");a===this.length?this.append(b):(this.root.insertBefore(b,this.root.childNodes[a]),++this.length)};
g.remove=function(a){if(0>a||a>=this.length)throw new RangeError("te");this.removeItem(this.root.childNodes[a])};g.removeItem=function(a){try{this.root.removeChild(a),--this.length}catch(b){}};g.clear=function(){for(;this.root.firstChild&&this.root.firstChild!==this.marker;)this.root.removeChild(this.root.firstChild);this.length=0};g.getRoot=function(){return this.root};g.getItems=function(){return Array.from(this.root.childNodes)};var hqc=function(a,b,c,d){this.loggingToken=d;(new Wpc(a)).setDisplayName(b).forceDisplayNameOverride_=c};hqc.prototype.getLoggingToken=function(){return this.loggingToken};var iqc=function(){};iqc.prototype.getDisplayNameMatches=function(){return[]};iqc.prototype.getDisplayValueMatches=function(){return[]};iqc.prototype.getGivenNameMatches=function(){return[]};var jqc=new iqc;var P5a=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=P5a.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return this.targets_};g.getMemberList=function(){return[]};g.getTotalMemberCount=function(){return this.memberCount_};g.getPrimaryTarget=function(){throw Error("ve");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getMatchInfo=function(){return jqc};g.getExtendedData=function(){return null};var kqc=new Map([[1,1],[2,1],[3,1],[4,1],[5,2],[6,1],[7,1],[8,1],[9,3],[10,5],[11,6],[12,4],[13,4],[14,4],[15,4],[16,4],[17,1],[18,7],[19,7]]);var wr=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=wr.prototype;g.getUrl=function(){return this.url_};g.setUrl=function(a){this.url_=a||"";return this};g.getType=function(){return this.type_};g.setType=function(a){this.type_=a;return this};g.getSourceType=function(){return this.sourceType_};g.setSourceType=function(a){this.sourceType_=a||0;return this};g.getGlyph=function(){return this.glyph_};g.setGlyph=function(a){this.glyph_=a||"";return this};
var lqc=(new wr).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),mqc=new wr;var g0=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_="";this.name_=null;this.photo_=dr(this.id_)?mqc:lqc;this.tags_=[];this.sourceIds_=Y8a.includes(this.id_.getType())?[this.id_]:[];8===this.id_.getType()&&this.sourceIds_.push(V8a(this.id_.getOriginalValue()));this.isMe_=17===this.id_.getType();this.dataSource_=0;this.resultType_=kqc.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=this.originatingField_=
null};g=g0.prototype;g.getId=function(){return this.id_};g.getTargetType=function(){return this.id_.getType()};g.getValue=function(){return this.value_};g.setValue=function(a){this.value_=(a||"").trim();return this};g.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return a&&a.getValue()||"";case 1:case 2:case 6:case 7:return this.getValue();default:return""}};g.getName=function(){return this.name_};g.setName=function(a){this.name_=a;return this};
g.getDescription=function(){return this.description_};g.setDescription=function(a){this.description_=a||"";return this};g.getPhoto=function(){return this.photo_};g.setPhoto=function(a){a&&a.getUrl()&&1!==a.getType()?this.photo_=a:this.photo_=dr(this.id_)?mqc:lqc};g.getTagList=function(){return this.tags_};var c9a=function(a,b){a.tags_=b||[]};g=g0.prototype;g.getSourceIdList=function(){return this.sourceIds_};
g.getProfileId=function(){return this.getSourceIdList().filter(function(a){return 3===a.getType()}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};g.getContactId=function(){return this.getSourceIdList().filter(function(a){return 4===a.getType()}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};g.getLoggingToken=function(){return new Or};g.getIsMe=function(){return this.isMe_};var a9a=function(a,b){a.isMe_=b;return a};g=g0.prototype;
g.getIsPersonalResult=function(){return 1===this.dataSource_};g.getDataSource=function(){return this.dataSource_};g.setDataSource=function(a){this.dataSource_=a;return this};g.getResultType=function(){return this.resultType_};g.getFieldLoggingId=function(){return this.fieldLoggingId_};g.setFieldLoggingId=function(a){this.fieldLoggingId_=a||""};g.getPersonLoggingId=function(){return this.personLoggingId_};g.setPersonLoggingId=function(a){this.personLoggingId_=a||""};g.getOrgState=function(){return this.orgState_};
g.getOriginatingField=function(){return this.originatingField_};var N9a=function(a,b){a.originatingField_=b;return a},vr=function(a){return new g0(a)};g0.prototype.getExtendedData=function(){return this.extendedData_};var nqc=function(a){this.internalId=a;this.displayNameOverride="";this.forceDisplayNameOverride=!1;a=vr(this.internalId).setDataSource(3);this.internalResult=new dq(Q5a(0,[a]));this.internalSelectionToken=new hqc(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,null)};g=nqc.prototype;g.id=function(){return this.internalId};g.selectionToken=function(){return this.internalSelectionToken};g.targets=function(){return this.internalResult.getTargetList()};g.result=function(){return this.internalResult};
g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.getDisplayNameWithOverrideApplied=function(){return this.displayNameOverride};g.isPlaceholder=function(){return!0};var V5a=function(a,b){this.root=a;this.options=b};g=V5a.prototype;g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.unspotlight=function(){};g.getRoot=function(){return this.root};g.getSelection=function(){return new nqc(X8a(this.options.id))};g.toggleSelection=function(){};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};var U5a=function(a){var b=a.keyboardShortcut,c=a.densityClass,d=a.ariaLabel,e=a.id,f=a.iconUrl;a=a.label;Array.isArray(b);b='<div role="menuitem" id="'+Lq(e)+'" peoplekit-id="'+Lq("UhZROb")+'" class="'+Lq("peoplekitComponentsContextmenuitemImplMenuItem")+" "+Lq(c)+'"'+(d?' aria-label="'+Lq(d)+'"':"")+'><div class="'+Lq("peoplekitComponentsContextmenuitemImplRow")+'">'+(f?'<img class="'+Lq("peoplekitComponentsContextmenuitemImplIcon")+" "+Lq("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+
Lq(C$b(f))+'" draggable="false" alt=""/>':"")+'<div class="'+Lq("peoplekitComponentsContextmenuitemImplLabel")+" "+Lq("peoplekitComponentsContextmenuitemImplCenter")+'">'+Mq(a)+"</div>"+(0<PQ(b).length?'<div class="'+Lq("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+Lq("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">'+Mq(PQ(b).join("+"))+"</span></div>":"")+"</div></div>";return Iq(b)};var H8a=new Map([["pk-select",3],["pk-deselect",3],["pk-click",3],["pk-input",15]]);var R5a=new Map([[0,new Map([["jCCvxc","https://www.gstatic.com/people/peoplekit/icons/light_theme/content_copy_grey700.svg"],["RkeQbd","https://www.gstatic.com/people/peoplekit/icons/light_theme/phone_copy_grey700.svg"],["N1uSwe","https://www.gstatic.com/people/peoplekit/icons/light_theme/email_copy_grey700.svg"],["UkZFS","https://www.gstatic.com/people/peoplekit/icons/light_theme/content_cut_grey700.svg"],["YCRBfe","https://www.gstatic.com/people/peoplekit/icons/light_theme/change_name_grey700.svg"],
["l1309","https://www.gstatic.com/people/peoplekit/icons/light_theme/change_email_address_grey700.svg"],["xTCd3","https://www.gstatic.com/people/peoplekit/icons/light_theme/info_outline_grey700.svg"],["ENOWEf","https://www.gstatic.com/people/peoplekit/icons/light_theme/visibility_off_grey700.svg"]])],[1,new Map([["jCCvxc","https://www.gstatic.com/people/peoplekit/icons/dark_theme/content_copy_grey300.svg"],["RkeQbd","https://www.gstatic.com/people/peoplekit/icons/dark_theme/phone_copy_grey300.svg"],
["N1uSwe","https://www.gstatic.com/people/peoplekit/icons/dark_theme/email_copy_grey300.svg"],["UkZFS","https://www.gstatic.com/people/peoplekit/icons/dark_theme/content_cut_grey300.svg"],["YCRBfe","https://www.gstatic.com/people/peoplekit/icons/dark_theme/change_name_grey300.svg"],["l1309","https://www.gstatic.com/people/peoplekit/icons/dark_theme/change_email_address_grey300.svg"],["xTCd3","https://www.gstatic.com/people/peoplekit/icons/dark_theme/info_outline_grey300.svg"],["ENOWEf","https://www.gstatic.com/people/peoplekit/icons/dark_theme/visibility_off_grey200.svg"]])]]);var vq=function(a,b){this.ariaParent=a;this.delegate=b};g=vq.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),pE(this.ariaParent,a)):pE(this.ariaParent,null)};g.prev=function(a){a=this.delegate.prev(a);this.update();return a};g.next=function(a){a=this.delegate.next(a);this.update();return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};g.getItem=function(a){return this.delegate.getItem(a)};g.getIndexOf=function(a){return this.delegate.getIndexOf(a)};g.clear=function(){this.delegate.clear();this.update()};g.reset=function(){this.delegate.reset();this.update()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};
g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};g.remove=function(a,b){this.delegate.remove(a,b);this.update()};g.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};var h0=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};h0.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};h0.prototype.preventDefault=function(){this.event.preventDefault()};var a6a=function(a,b){this.input=this.navigatable=null;this.navigatePastBeginCallback=a.navigatePastBegin||function(){};this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.options=Object.assign({},{shouldReactToHomeEnd:!0},b);this.eventHandler=yq(this)};g=a6a.prototype;
g.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(new h0(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new h0(d))});this.eventHandler.listen(this.input,"blur",function(){return c.onBlur()})};g.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
g.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal))switch(a.event.keyCode){case 40:this.navigatable.next(0)||this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case 38:this.navigatable.prev(0)||this.navigatePastBeginCallback();a.stopPropagation();a.preventDefault();break;case 36:if(!this.options.shouldReactToHomeEnd)break;this.navigatable.goToIndex(0,0);a.stopPropagation();a.preventDefault();break;case 35:this.options.shouldReactToHomeEnd&&
(this.navigatable.goToIndex(this.navigatable.size()-1,0),a.stopPropagation(),a.preventDefault())}};g.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};g.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};g.reset=function(){this.navigatable&&this.navigatable.reset()};g.onBlur=function(){this.reset()};var oqc=Object.freeze(new Bq(NaN,NaN)),pqc=Object.freeze(new aR(NaN,NaN,NaN,NaN)),Fq=function(a,b){this.root=a;this.options=b;this.lastPosition=oqc;this.lastBounds=pqc;this.anchorUpdateTimer=new ZA(15);this.eventHandler=yq(this);this.attach()};Fq.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return qqc(a)})};Fq.prototype.isShown=function(){return"none"!=this.root.style.display};Fq.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};
Fq.prototype.show=function(a){this.anchor=a;this.lastPosition=oqc;this.lastBounds=pqc;eR(this.root,!0);qqc(this);this.anchorUpdateTimer.start()};
var qqc=function(a){var b;if(b=a.anchor){if(!(b=!a.lastPosition.equals(dR(a.anchor)))){b=a.lastBounds;var c=zq(a.root);b=!(b==c||b&&c&&b.left==c.left&&b.width==c.width&&b.top==c.top&&b.height==c.height)}b&&(c=a.anchor,b=zq(c),b=(c=Aq(c))?b.intersection(d6a(c)):!1)}if(b){c=a.anchor;b=a.root;var d=a.options,e=d.anchorCorner||9,f=d.popupCorner||8;d=void 0===d.moveAboveAnchorIfOffscreen?!0:d.moveAboveAnchorIfOffscreen;Eq(b,"","");b.style.height=cR("",!0);var h=h6a(c,e,b,f,d);c=h6a(c,e^1,b,f^1,d);h.height>=
c.height||!d?k6a(b,h):k6a(b,c);a.lastPosition=dR(a.anchor);a.lastBounds=zq(a.root)}};Fq.prototype.hide=function(){this.root.style.cssText="";eR(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=oqc;this.lastBounds=pqc};var rqc=new BA;rqc.altKey=!0;rqc.keyCode=39;(new BA).keyCode=13;var sqc=function(){yA.call(this)};W(sqc,yA);sqc.prototype.init=function(){};new sqc;var tqc=!rq&&!gaa(),uqc=function(a,b){if(/-[a-z]/.test(b))return null;if(tqc&&a.dataset){if(haa()&&!(b in a.dataset))return null;a=a.dataset[b];return void 0===a?null:a}return a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};var Hq=function(a,b,c,d,e){this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=l6a(this.root,{});this.navigatable=Y5a(c);this.navigationEventHandler=b6a({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},{});this.itemSelectedCallbacks=new Set;this.beforeShowCallbacks=new Set;this.afterHideCallbacks=new Set;this.contextMenuItemOptions=new Map;this.eventHandler=yq(this);this.eventHandler.listen(this.root,"mouseover",function(f){f.stopPropagation()});
this.eventHandler.listen(this.root,"mouseout",function(f){f.stopPropagation()});this.eventHandler.listen(this.root,"mouseenter",function(f){f.stopPropagation()});this.hide()};
Hq.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=W5a(a,this.appearanceConfig);this.container.append(c.getRoot());this.eventHandler.listen(c.getRoot(),"click",function(d){if(d.currentTarget){var e=d.currentTarget;e.dispatchEvent(Gq(e))}d.stopPropagation();vqc(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
Hq.prototype.show=function(){for(var a=l(this.beforeShowCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b();this.popup.show(this.anchor);this.navigationEventHandler.attach(this.root,this.navigatable);this.navigatable.next(0)};Hq.prototype.hide=function(){this.popup.hide();this.navigatable.reset();this.navigationEventHandler.detach();for(var a=l(this.afterHideCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b()};
Hq.prototype.onKeyDown=function(a){this.navigationEventHandler.onKeyDown(a);switch(a.event.keyCode){case 27:this.hide();a.stopPropagation();break;case 13:var b=this.navigatable.getSpotlitItem();if(b){var c=b.getRoot();c.dispatchEvent(Gq(c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);vqc(this,b);this.hide();a.stopPropagation();a.preventDefault()}}};
var wqc=function(a,b){a.itemSelectedCallbacks.add(b)},xqc=function(a,b){a.afterHideCallbacks.add(b)},vqc=function(a,b){a=l(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};Hq.prototype.dispose=function(){this.popup.dispose();this.container.clear();this.navigatable.clear();this.eventHandler.removeAll();this.itemSelectedCallbacks.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};var m6a=function(){return Iq('<div peoplekit-id="'+Lq("xl07Ob")+'" class="'+Lq("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};var q6a=function(a){var b=this;this.root=a;this.internalIsDisabled=!1;this.eventHandler=yq(this);this.eventHandler.listen(this.root,"click",function(c){var d;null==(d=b.onClick)||d.call(b,c)})};g=q6a.prototype;g.getRoot=function(){return this.root};g.enable=function(){this.root.classList.remove("isDisabled");this.root.setAttribute("aria-disabled","false");this.internalIsDisabled=!1};
g.disable=function(){this.root.classList.add("isDisabled");this.root.setAttribute("aria-disabled","true");this.internalIsDisabled=!0};g.isDisabled=function(){return this.internalIsDisabled};g.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0};var p6a=function(a){a=a.label;return Iq('<button class="'+Lq("peoplekitComponentsButtonLabelLabelButton")+'">'+Mq(a)+"</button>")};var L6a=function(a,b,c){var d=this;this.root=a;this.actionListeners=[];this.eventHandler=yq(this);this.actionButtons=new Map;this.actionButtons.set(0,b);this.actionButtons.set(1,c);b.onClick=function(){return d.onButtonClick(0)};c.onClick=function(){d.onButtonClick(1)};this.dialog=wq(this.root,"Sx9Kwc");this.startFocusableElement=wq(this.root,"tYwGbe");this.endFocusableElement=wq(this.root,"dYgZK");this.eventHandler.listen(this.root,"click",function(){return d.onScrimClick()});this.eventHandler.listen(this.dialog,
"click",function(e){return d.onDialogClick(e)});this.eventHandler.listen(this.dialog,"keydown",function(e){return d.onDialogKeyDown(e)});this.eventHandler.listen(this.startFocusableElement,"focus",function(){return d.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){return d.onEndFocusableElementFocus()});this.focusFirstFocusableElement()};g=L6a.prototype;g.subscribeToAction=function(a){this.actionListeners.push(a)};
g.dispatchAction=function(a){var b=this.actionButtons.get(a);if(b&&!b.isDisabled()){for(var c=l(this.actionListeners),d=c.next();!d.done;d=c.next())d=d.value,d(a);a=b.getRoot();a.dispatchEvent(Gq(a))}};g.getRoot=function(){return this.root};g.onDialogClick=function(a){a.stopPropagation()};g.onDialogKeyDown=function(a){27===a.keyCode&&(this.dispatchAction(0),a.stopPropagation())};g.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};g.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};
g.focusFirstFocusableElement=function(){var a=Z5a(this.dialog);a.length&&a[0].focus()};g.focusLastFocusableElement=function(){var a=Z5a(this.dialog);a.length&&a[a.length-1].focus()};g.onScrimClick=function(){this.dispatchAction(0)};g.onButtonClick=function(a){this.dispatchAction(a)};
g.dispose=function(){this.eventHandler.removeAll();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.actionListeners.length=0;for(var a=l(this.actionButtons.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.actionButtons.clear()};var K6a=function(a){var b=a.content;a=a.header;return Iq('<div peoplekit-id="'+Lq("GGAcbc")+'" class="'+Lq("peoplekitComponentsDialogImplScrim")+'" role="dialog" aria-modal="true"><div peoplekit-id="'+Lq("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+Lq("Sx9Kwc")+'" class="'+Lq("peoplekitComponentsDialogImplDialog")+'" tabindex="-1">'+(a?'<div class="'+Lq("peoplekitComponentsDialogImplHeader")+'">'+Mq(a)+"</div>":"")+'<div class="'+Lq("peoplekitComponentsDialogImplContent")+
'">'+Mq(b)+'</div><div class="'+Lq("peoplekitComponentsDialogImplActions")+'">'+Iq(yqc("IbE0S"))+Iq('<div class="'+Lq("peoplekitComponentsDialogImplActionDivider")+'"></div>')+Iq(yqc("McfNlf"))+'</div></div><div peoplekit-id="'+Lq("dYgZK")+'" tabindex="0" role="application"></div></div>')},yqc=function(a){return Iq('<div peoplekit-id="'+Lq(a)+'"></div>')};var v6a=function(a,b){var c=this;this.root=a;this.closeButton=b;this.actionListeners=[];this.eventHandler=yq(this);this.dialog=wq(this.root,"Sx9Kwc");this.startFocusableElement=wq(this.root,"tYwGbe");this.endFocusableElement=wq(this.root,"dYgZK");b.onClick=function(){c.dispatchAction(2)};this.eventHandler.listen(this.root,"click",function(){c.onScrimClick()});this.eventHandler.listen(this.dialog,"click",function(d){c.onDialogClick(d)});this.eventHandler.listen(this.dialog,"keydown",function(d){c.onDialogKeyDown(d)});
this.eventHandler.listen(this.startFocusableElement,"focus",function(){c.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){c.onEndFocusableElementFocus()});this.focusFirstFocusableElement()};g=v6a.prototype;g.subscribeToAction=function(a){this.actionListeners.push(a)};g.dispatchAction=function(a){if(!this.closeButton.isDisabled()&&2===a)for(var b=l(this.actionListeners),c=b.next();!c.done;c=b.next())c=c.value,c(a)};g.getRoot=function(){return this.root};
g.dispose=function(){this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.eventHandler.removeAll();this.actionListeners.length=0;this.closeButton.dispose()};g.onDialogClick=function(a){a.stopPropagation()};g.onDialogKeyDown=function(a){27===a.keyCode&&(this.dispatchAction(2),a.stopPropagation())};g.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};g.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};
g.focusFirstFocusableElement=function(){var a=Z5a(this.dialog);a.length&&a[0].focus()};g.focusLastFocusableElement=function(){var a=Z5a(this.dialog);a.length&&a[a.length-1].focus()};g.onScrimClick=function(){this.dispatchAction(2)};var u6a=function(a){var b=a.content;a=a.header;return Iq('<div peoplekit-id="'+Lq("GGAcbc")+'" class="'+Lq("peoplekitComponentsDialogInfoScrim")+'" role="dialog" aria-modal="true"><div peoplekit-id="'+Lq("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+Lq("Sx9Kwc")+'" class="'+Lq("peoplekitComponentsDialogInfoDialog")+'" tabindex="-1" role="dialog">'+(a?'<div class="'+Lq("peoplekitComponentsDialogInfoHeader")+'">'+Mq(a)+"</div>":"")+'<div class="'+Lq("peoplekitComponentsDialogInfoContent")+
'"><div class="'+Lq("peoplekitComponentsDialogInfoDescription")+'">'+Mq(b)+'</div></div><div class="'+Lq("peoplekitComponentsDialogInfoActions")+'">'+Iq('<div peoplekit-id="'+Lq("TvD9Pc")+'"></div>')+'</div></div><div peoplekit-id="'+Lq("dYgZK")+'" tabindex="0" role="application"></div></div>')},x6a=function(a){a=a.header;return Iq('<div class="'+Lq("peoplekitComponentsDialogInfoTextHeader")+'">'+Mq(a)+"</div>")},zqc=function(a){var b=a.description,c=a.learnMoreLinkUrl;a=a.learnMoreLinkText;return Iq('<div class="'+
Lq("peoplekitComponentsDialogInfoDescription")+'">'+Mq(b)+'  <a href="'+Lq(TQ(c))+'" target="_blank" class="'+Lq("peoplekitComponentsDialogInfoLearnMoreLink")+'" peoplekit-id="'+Lq("lh87ke")+'">'+Mq(a)+"</a></div>")};var s6a=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);var Aqc=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(lh[3-6]\\.(googleadsserving\\.cn|xn--9kr7l\\.com))|(photos\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/",
"i"),Bqc=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,Cqc=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,Dqc=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i;var Eqc=/\/\/lh[3-6]\./,Fqc=function(a,b,c,d){var e;(e=!a)||(e=String(a),e=!(Aqc.test(e)||Bqc.test(e)||Cqc.test(e)||Dqc.test(e)));if(e)return String(a||"");a=String(a);void 0===d&&(d=1);b=Math.ceil((b||0)*d);c=Math.ceil((c||0)*d);d=b==c;a=a.replace(Eqc,"//lh3.");return(new zN(a)).setSize(d?c:void 0).setWidth(d?void 0:b).setHeight(d?void 0:c).setCrop(!1).setKillAnimation(!1).setEsPortraitApprovedOnly(!1).setSmartCrop(!0).setCenterCrop().setOverlay(!1).setNoOverlay(!1).setRequestWebp().setQualityBucket().setImageFilter().setLooseFaceCrop().setForceMonogram().setRequestPng().setRequestJpeg().setRequestH264().setPad().build()};var C6a=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;Array.isArray(b);a=Iq;var h='<div class="'+Lq("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Lq(UQ(d))+"px; height: "+Lq(UQ(d))+'px"><div peoplekit-id="'+Lq("YLEF4c")+'" class="'+Lq("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Lq(UQ(d))+"px; height: "+Lq(UQ(d))+'px">';Array.isArray(b);1==PQ(b).length?(Array.isArray(b),b=Iq('<div class="'+Lq("peoplekitComponentsAvatarImplContainer")+
'">'+i0(b[0],c,d,e,f)+"</div>")):2==PQ(b).length?(Array.isArray(b),b=Iq('<div class="'+Lq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Lq("peoplekitComponentsAvatarImplColumn")+'">'+i0(b[0],c,d,e,f)+"</div>"+j0()+'<div class="'+Lq("peoplekitComponentsAvatarImplColumn")+'">'+i0(b[1],c,d,e,f)+"</div></div>")):3==PQ(b).length?(Array.isArray(b),b=Iq('<div class="'+Lq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Lq("peoplekitComponentsAvatarImplColumn")+'">'+i0(b[0],c,d,e,f)+
"</div>"+j0()+'<div class="'+Lq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Lq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[1],c,Math.round(.5*d),e,f)+"</div>"+j0()+'<div class="'+Lq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[2],c,Math.round(.5*d),e,f)+"</div></div></div>")):(Array.isArray(b),b=Iq('<div class="'+Lq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Lq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Lq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[0],
c,Math.round(.5*d),e,f)+"</div>"+j0()+'<div class="'+Lq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[2],c,Math.round(.5*d),e,f)+"</div></div>"+j0()+'<div class="'+Lq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Lq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[1],c,Math.round(.5*d),e,f)+"</div>"+j0()+'<div class="'+Lq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[3],c,Math.round(.5*d),e,f)+"</div></div></div>"));b=Iq(b);return a(h+b+'</div><div peoplekit-id="'+Lq("Btuy5e")+'" class="'+
Lq("peoplekitComponentsAvatarImplAvatarBadge")+'">'+Iq('<img class="'+Lq("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Lq("m6fZne")+'" draggable="false" alt="">')+"</div></div>")},i0=function(a,b,c,d,e){var f=TQ(Fqc(a,c,c,e));f=p$b(f);a=TQ(Fqc(a,d,d,e));a=p$b(a);b=TQ(Fqc(b,c,c,e));b=p$b(b);f='<div peoplekit-id="'+Lq("IHgMKc")+'" class="'+Lq("peoplekitComponentsAvatarImplImageRoot")+'"><img peoplekit-id="'+Lq("HiaYvf")+'" class="'+Lq("peoplekitComponentsAvatarImplImage")+'" style="width: '+
Lq(UQ(c))+"px; height: "+Lq(UQ(c))+'px;" data-preload-src="'+Lq(a)+'" data-src="'+Lq(f)+'" data-backup-src="'+Lq(b)+'" draggable="false" alt="">';c=Iq('<svg xmlns="http://www.w3.org/2000/svg" height="'+Lq(c)+'px" viewBox="0 0 24 24" width="'+Lq(c)+'px" class="'+Lq("peoplekitComponentsAvatarImplDefaultAvatarImage")+'"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2l-5.5 9h11L12 2zm0 3.84L13.93 9h-3.87L12 5.84zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM3 21.5h8v-8H3v8zm2-6h4v4H5v-4z"/></svg>');
return Iq(f+c+"</div>")},j0=function(){return Iq('<div class="'+Lq("peoplekitComponentsAvatarImplDivider")+'"></div>')};var Gqc=new Map([[0,"light_theme"],[1,"dark_theme"]]);var Hqc=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),Iqc=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),E6a=function(a,b){this.appearance=b;this.root=a;Jqc(this)};g=E6a.prototype;
g.setBadge=function(a){var b=wq(this.root,"Btuy5e");if(0===a.badgeType)b.classList.remove("visible");else{var c=Hqc.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(Gqc.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=Iqc.get(a.badgeType)||"";d=wq(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};g.getAllIds=function(){return[]};g.updateWaldo=function(){};g.updateHubAvailabilityDot=function(){};
g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};
var Jqc=function(a){a=l(Array.from(a.root.querySelectorAll('[peoplekit-id="IHgMKc"]')));for(var b=a.next(),c={};!b.done;c={img$jscomp$10:c.img$jscomp$10,src$jscomp$66:c.src$jscomp$66,imageRoot:c.imageRoot,backupSrc:c.backupSrc},b=a.next())c.imageRoot=b.value,c.img$jscomp$10=wq(c.imageRoot,"HiaYvf"),b=uqc(c.img$jscomp$10,"preloadSrc"),c.src$jscomp$66=uqc(c.img$jscomp$10,"src"),c.backupSrc=uqc(c.img$jscomp$10,"backupSrc"),B6a(c.src$jscomp$66)?c.img$jscomp$10.src=c.src$jscomp$66:B6a(b)?(c.img$jscomp$10.src=
b,Mp(function(d){return function(){d.img$jscomp$10.src=d.src$jscomp$66}}(c),0)):(c.imageRoot.classList.add("isLoading"),c.img$jscomp$10.onload=function(d){return function(){d.imageRoot.classList.remove("isLoading")}}(c),c.img$jscomp$10.onerror=function(d){return function(){d.img$jscomp$10.getAttribute("src")===d.backupSrc?(d.img$jscomp$10.onerror=null,d.imageRoot.classList.remove("isLoading"),d.imageRoot.classList.add("isNotLoaded")):d.img$jscomp$10.src=d.backupSrc}}(c),c.img$jscomp$10.src=c.src$jscomp$66)};var Jq=function(){this.theme=this.density=0};Jq.prototype.getDensity=function(){return this.density};Jq.prototype.setDensity=function(a){this.density=a};Jq.prototype.getTheme=function(){return this.theme};Jq.prototype.setTheme=function(a){this.theme=a};var Oq=function(a){this.dialog=a};Oq.prototype.subscribeToAction=function(a){this.dialog.subscribeToAction(a)};Oq.prototype.dispatchAction=function(a){this.dialog.dispatchAction(a)};Oq.prototype.getRoot=function(){return this.dialog.getRoot()};Oq.prototype.dispose=function(){this.dialog.dispose()};var k0=function(a){this.delegate=a};g=k0.prototype;g.getAllIds=function(){return this.delegate.getAllIds()};g.toggleSelection=function(){this.delegate.toggleSelection()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.spotlight=function(){this.delegate.spotlight()};g.unspotlight=function(){this.delegate.unspotlight()};g.getRoot=function(){return this.delegate.getRoot()};g.getSelection=function(){return this.delegate.getSelection()};
g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};g.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};g.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};g.addTag=function(a){this.delegate.addTag(a)};
g.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};g.dispose=function(){this.delegate.dispose()};var $q=function(a,b,c,d,e){this.delegate=a;var f=this;this.appearanceConfig=b;this.clientConfig=c;this.result=d;this.ariaParent=e;this.groupMembers=this.result.getMemberList();this.dispatcher=this.clientConfig.injectorService.actionEventDispatcher;this.contextMenuContainer=wq(a.getRoot(),"QL45qe");this.eventHandler=yq(this);this.eventHandler.listen(document,"click",function(h){f.contextMenuContainer.contains(h.target)||l0(f)});this.eventHandler.listen(document,"keydown",function(h){if(f.contextMenu)f.contextMenu.onKeyDown(new h0(h))})};
W($q,k0);$q.prototype.onKeyDown=function(a){if(this.contextMenu)this.contextMenu.onKeyDown(a);else k0.prototype.onKeyDown.call(this,a)};
$q.prototype.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.activate();this.contextMenu&&l0(this);this.contextMenu=o6a(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(S5a(a));wqc(this.contextMenu,function(d){switch(d.id){case "ENOWEf":2>c.groupMembers.length?Kqc(c):Lqc(c);break;default:throw Error("xe`"+d.id);}l0(c)});xqc(this.contextMenu,function(){l0(c);b()});this.contextMenu.show();
return function(){l0(c)}};$q.prototype.dispose=function(){this.eventHandler.removeAll();k0.prototype.dispose.call(this)};
var Kqc=function(a){Mqc(a);a.dispatcher.notify(8);a.hideConfirmationDialog=M6a(a.getRoot().ownerDocument.body,a.getSelection(),a.appearanceConfig,0);a.hideConfirmationDialog.subscribeToAction(function(b){1===b&&(b=a.getAllIds(),1===a.groupMembers.length&&(b=[a.groupMembers[0].getPrimaryTarget().getId()]),a.dispatcher.notify(1,b));Mqc(a)})},Mqc=function(a){var b;null==(b=a.hideConfirmationDialog)||b.dispose();a.hideConfirmationDialog=void 0;a.dispatcher.notify(9,a.getRoot())},Lqc=function(a){Nqc(a);
a.dispatcher.notify(8);a.hideGroupErrorDialog=z6a(a.getRoot().ownerDocument.body,a.appearanceConfig);a.hideGroupErrorDialog.subscribeToAction(function(){Nqc(a)})},Nqc=function(a){var b;null==(b=a.hideGroupErrorDialog)||b.dispose();a.hideGroupErrorDialog=void 0;a.dispatcher.notify(9,a.getRoot())},l0=function(a){var b;null==(b=a.contextMenu)||b.dispose();a.contextMenu=void 0;a.dispatcher.notify(7,a.getRoot())};var c7a=function(a){a=a.memberCount;return(new NL("{MEMBER_COUNT_1,plural,=0{No members}=1{1 member}other{{MEMBER_COUNT_2} members}}")).format_({MEMBER_COUNT_1:a,MEMBER_COUNT_2:""+a},!0)},b7a=function(a){a=a.memberNames;Array.isArray(a);return PQ(a).join(", ")};var Tq=function(a){this.internalArray_=m(a)};W(Tq,X);Tq.prototype.getRequestType=function(){return Vi(this,1,0)};Tq.prototype.setRequestType=function(a){return rj(this,1,a)};var Oqc=function(){var a=new Tq,b=new e0;this.experimentFlags_=oj(a,e0,107,b)};Oqc.prototype.getExperimentFlags=function(){return this.experimentFlags_};Oqc.prototype.getExperimentIds=function(){return[]};var l8a=function(a,b){this.cache=b;this.overriddenExperiments=Fi(a,e0,3)||new e0};l8a.prototype.getExperiments=function(){var a,b=(null==(a=this.cache.getExperimentFlags())?void 0:Fi(a,e0,107))||new e0;a=this.overriddenExperiments;Qi(a,3)&&mj(b,3,Ri(a,3,!1));Qi(a,4)&&mj(b,4,Ri(a,4,!0));return b};l8a.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};var Pqc=function(a){this.internalArray_=m(a)};W(Pqc,X);g=Pqc.prototype;g.getCacheStaleSec=function(){return hi(this,4,14400)};g.getCacheExpiredSec=function(){return hi(this,5,1209600)};g.getRpcTimeoutSec=function(){return hi(this,7,60)};g.getApiKey=function(){return Hi(this,8,"")};g.setApiKey=function(a){return qj(this,8,a)};g.getEnableClearcut=function(){return Ri(this,13,!0)};g.setEnableClearcut=function(a){return mj(this,13,a)};var j8a=sc(Pqc);var i8a;var Qqc=function(){};Qqc.prototype.getExperimentFlags=function(){return new Tq};Qqc.prototype.getExperimentIds=function(){return[]};var mr=function(){};mr.prototype.prefetch=function(){};mr.prototype.loadExperiments=function(){return new Qqc};var m0=function(a){this.internalArray_=m(a)};W(m0,X);m0.prototype.getVersion=function(){return dj(this,1)};m0.prototype.setVersion=function(a){return xj(this,1,a)};m0.prototype.getVersionOrUndefined=function(){return zt(this,1)};var n0=function(a){this.internalArray_=m(a)};W(n0,X);g=n0.prototype;g.getApplication=function(){return Vi(this,1,0)};g.setApplication=function(a){return rj(this,1,a)};g.getApplicationOrUndefined=function(){return Xr(this,1)};g.getVersion=function(){return dj(this,2)};g.setVersion=function(a){return xj(this,2,a)};g.getVersionOrUndefined=function(){return zt(this,2)};var Rqc=function(a){this.internalArray_=m(a)};W(Rqc,X);g=Rqc.prototype;g.getRequestType=function(){return Vi(this,1,0)};g.setRequestType=function(a){return rj(this,1,a)};g.getProfileId=function(){return Hi(this,2)};g.getProfileId_legacyNullable=function(){return Ej(this,2)};g.setProfileId=function(a){return qj(this,2,a)};g.hasProfileId=function(){return Ii(this,2)};g.getCaller=function(){return Fi(this,m0,3)};g.setCaller=function(a){return oj(this,m0,3,a)};
g.getInstanceId=function(){return Hi(this,4)};g.setInstanceId=function(a){return qj(this,4,a)};g.clearInstanceId=function(){st(this,4)};g.hasInstanceId=function(){return Ii(this,4)};g.getInstanceIdOrUndefined=function(){return At(this,4)};g.getClient=function(){return Fi(this,n0,5)};g.setClient=function(a){return oj(this,n0,5,a)};g.hasClient=function(){return Zi(this,n0,5)};var Qq=function(a){this.internalArray_=m(a)};W(Qq,X);Qq.prototype.getErrorType=function(){return Vi(this,2,1)};Qq.prototype.setErrorType=function(a){return rj(this,2,a)};Qq.prototype.getErrorMessage=function(){return Hi(this,3)};Qq.prototype.setErrorMessage=function(a){qj(this,3,a)};var Sq=function(a){this.internalArray_=m(a)};W(Sq,X);g=Sq.prototype;g.getExperimentFlags=function(){return Fi(this,Tq,1)};g.setExperimentFlags=function(a){return oj(this,Tq,1,a)};g.hasExperimentFlags=function(){return Zi(this,Tq,1)};g.getError=function(){return Fi(this,Qq,2)};g.setError=function(a){oj(this,Qq,2,a)};g.hasError=function(){return Zi(this,Qq,2)};g.getSource=function(){return Vi(this,3,0)};g.setSource=function(a){return rj(this,3,a)};g.hasSource=function(){return Ti(this,3)};
g.getSourceOrUndefined=function(){return Xr(this,3)};g.getInstanceId=function(){return Hi(this,4)};g.setInstanceId=function(a){return qj(this,4,a)};g.clearInstanceId=function(){st(this,4)};g.hasInstanceId=function(){return Ii(this,4)};g.getInstanceIdOrUndefined=function(){return At(this,4)};g.getExperimentIdsList=function(){return ji(this,5)};g.setExperimentIdsList=function(a){return ac(this,5,a,tb)};g.getExperimentIds=function(){return vt(this,5)};
g.setExperimentIds=function(a){dc(this,5,a,tb(void 0),ji)};Sq.repeatedFields_=[5];var o0=function(a,b){this.client_=a;this.runtime_=b;O6a();this.apiKey_=a.getApiKey();this.apiRoot_=Hi(this.client_,10)||TJa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};o0.prototype.getClient=function(){return this.client_};o0.prototype.getApiKey=function(){return this.apiKey_};var p0=function(a){this.internalArray_=m(a)};W(p0,X);g=p0.prototype;g.getExperimentFlags=function(){return Fi(this,Tq,1)};g.setExperimentFlags=function(a){return oj(this,Tq,1,a)};g.hasExperimentFlags=function(){return Zi(this,Tq,1)};g.getObfuscatedGaiaId=function(){return Ej(this,2)};g.getObfuscatedGaiaId_legacyNullable=function(){return Ej(this,2)};g.setObfuscatedGaiaId=function(a){qj(this,2,a)};g.getExperimentIdsList=function(){return ji(this,3)};
g.setExperimentIdsList=function(a){return ac(this,3,a,tb)};g.getExperimentIds=function(){return vt(this,3)};g.setExperimentIds=function(a){dc(this,3,a,tb(void 0),ji)};var Sqc=tc(p0);p0.repeatedFields_=[3];var Tqc=function(a){var b=void 0;b=void 0===b?Date.now:b;this.clientConfig_=a;this.now_=b},Uqc=function(a,b,c){a=a.now_()-1E3*c;return b>a};Tqc.prototype.getCacheState=function(a){var b=hi(this.clientConfig_.getClient(),3,1800);if(Uqc(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(Uqc(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return Uqc(this,a,b)?3:4};var Rq=function(a,b){b=Error.call(this,void 0===b?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=a};W(Rq,Error);var Vqc=function(a,b){b=void 0===b?null:b;var c=P6a(a);a=a.getProfileId()||b;return c&&a?JSON.stringify([c,a]):null},Wqc=new Rq(6);var Xqc=function(){};var q0=function(){};ft(q0,Xqc);q0.prototype.getCount=function(){for(var a=0,b=l(this),c=b.next();!c.done;c=b.next())a++;return a};q0.prototype[Symbol.iterator]=function(){return eXb(this.__iterator__(!0)).toEs6()};q0.prototype.clear=function(){var a=Array.from(this);a=l(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};var Yqc=function(a){this.storage_=a};ft(Yqc,q0);g=Yqc.prototype;g.set=function(a,b){try{this.storage_.setItem(a,b)}catch(c){if(0==this.storage_.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.storage_.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.storage_.removeItem(a)};g.getCount=function(){return this.storage_.length};
g.__iterator__=function(a){var b=0,c=this.storage_,d=new CE;d.next=function(){if(b>=c.length)return dXb;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}};return d};g.clear=function(){this.storage_.clear()};g.key=function(a){return this.storage_.key(a)};var R6a=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.storage_=a};ft(R6a,Yqc);var r0=function(a,b){this.mechanism_=a;this.prefix_=b+"::"};ft(r0,q0);r0.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};r0.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};r0.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
r0.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new CE;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.prefix_.length)!=c.prefix_;){e=b.next();if(e.done)return e;e=e.value}return{value:a?e.slice(c.prefix_.length):c.mechanism_.get(e),done:!1}};return d};var Vq=function(a,b){var c=void 0,d=void 0;b=void 0===b?new R6a:b;c=void 0===c?kRb:c;d=void 0===d?hRb:d;this.clientConfig_=a;this.transformer_=new Tqc(this.clientConfig_);this.localStorage_=b;this.serializeJson_=c;this.isValidJson_=d;this.prefix_="PeopleStackExperiments";this.storage_=new r0(this.localStorage_,this.prefix_)};
Vq.prototype.set=function(a,b){var c=Vqc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw Wqc;a={keyPath:c,experiments:b.serialize(),lastUpdated:Date.now(),instanceId:a.getInstanceId()};this.storage_.set(c,this.serializeJson_(a));return c};
Vq.prototype.get=function(a){a=Vqc(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;if((a=a&&this.isValidJson_(a)?JSON.parse(a):null)&&4!==this.transformer_.getCacheState(a.lastUpdated)){var b=this.transformer_;a={keyPath:a.keyPath,experiments:Sqc(a.experiments),lastUpdated:new Date(a.lastUpdated),state:b.getCacheState(a.lastUpdated),instanceId:a.instanceId}}else a=null;return a};Vq.prototype.delete=function(a){this.storage_.remove(a);return!0};
Vq.prototype.clean=function(){for(var a=this.localStorage_.getCount(),b=0;b<a;b++){var c=this.localStorage_.key(b);if(c&&c.includes(this.prefix_)){var d=(d=this.localStorage_.get(c))&&this.isValidJson_(d)?JSON.parse(d):null;d=this.transformer_.getCacheState(d.lastUpdated)}else d=0;4===d&&this.localStorage_.remove(c)}};var Wq=function(a){var b=void 0;b=void 0===b?new Map:b;this.clientConfig_=a;this.transformer_=new Tqc(this.clientConfig_);this.cache_=b};Wq.prototype.set=function(a,b){var c=Vqc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw Wqc;this.cache_.set(c,{keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()});return c};
Wq.prototype.get=function(a){a=Vqc(a);if(!a)return null;a=this.cache_.get(a);if(!a)return null;var b=this.transformer_.getCacheState(a.lastUpdated.getTime());if(4===b)return null;a.state=b;return a};Wq.prototype.delete=function(a){this.cache_.delete(a);return!0};Wq.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){4===a.transformer_.getCacheState(b.lastUpdated.getTime())&&a.cache_.delete(c)})};var Zqc=function(){};g=Zqc.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};var $qc=function(a){this.internalArray_=m(a)};W($qc,X);g=$qc.prototype;g.getCaller=function(){return Fi(this,m0,1)};g.setCaller=function(a){return oj(this,m0,1,a)};g.getClient=function(){return Fi(this,n0,2)};g.setClient=function(a){return oj(this,n0,2,a)};g.hasClient=function(){return Zi(this,n0,2)};var arc=function(a){this.internalArray_=m(a)};W(arc,X);g=arc.prototype;g.getRequestType=function(){return Vi(this,1,0)};g.setRequestType=function(a){return rj(this,1,a)};g.setProperties=function(a){return oj(this,$qc,3,a)};g.getInstanceId=function(){return Hi(this,4)};g.setInstanceId=function(a){return qj(this,4,a)};g.clearInstanceId=function(){st(this,4)};g.hasInstanceId=function(){return Ii(this,4)};g.getInstanceIdOrUndefined=function(){return At(this,4)};var brc=new UB("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",arc,p0,function(a){return a.serialize()},Sqc);var crc=function(a){this.client_=new zC({format:"jspb"});this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};crc.prototype.getExperimentFlags=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},brc)};var s0=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new Zqc};s0.prototype.getMetric=function(){return this.metric_};s0.prototype.send=function(a){var b=this,c;return Ne(function(d){var e=(new $qc).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new arc).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
s0.prototype.close=function(){};s0.prototype.processResponse=function(a){return a};var drc=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var erc=function(a,b){this.config_=a;this.request_=b;this.resolver_=new drc;this.rpcPromise_=null;this.state_=0};g=erc.prototype;g.resultPromise=function(){return this.resolver_.promise};g.isPending=function(){return 1===this.state_};g.cancel=function(){switch(this.state_){case 1:this.rpcPromise_.cancel();break;case 0:this.state_=2,this.rpcPromise_=OPb(new YA),this.resolver_.reject(1)}};
g.send=function(){var a=this;if(0!==this.state_)return this.resultPromise();var b=SJa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);this.rpcPromise_=YPb(RPb([b,gQb(1E3*this.config_.timeoutSec,"TIMEOUT")]),function(){a.state_=2}).then(function(c){return a.onResponse_(c)},function(c){return a.onError_(c)});return this.resultPromise()};
g.onResponse_=function(a){if(a&&"TIMEOUT"!==a){try{var b=this.request_.processResponse(a)}catch(c){this.onError_(c,2);return}this.resolver_.resolve(b);this.request_.close(0)}else this.onError_(a)};
g.onError_=function(a,b){b=void 0===b?0:b;if("TIMEOUT"===a)var c=4;else a instanceof YA?c=1:a&&"object"===typeof a?(c=a.code||2,2===c&&(c=Jo("result.error.code",a)||a.status,c=Number(c),c=z8b.has(c)?z8b.get(c):200<=c&&300>c?0:400<=c&&500>c?9:500<=c&&600>c?13:2,2!==c||b||(b=(a.message||"").startsWith("Rpc failed due to xhr error.")?3:0))):c=2;!this.config_.authErrorHandler||16!==c&&7!==c||this.config_.authErrorHandler();this.resolver_.reject(c);this.request_.close(c,b)};var frc=Symbol("ye"),grc=function(){};grc.prototype.intercept=function(a,b){return b(a).then(function(c){var d=c.getMetadata();if(d){d=Number(d["content-length"])||0;var e=c.responseMessage_;e&&isFinite(d)&&(e[frc]=d)}return c})};var t0=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};t0.prototype.getMetric=function(){return this.metric_};t0.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
t0.prototype.processResponse=function(a){this.metric_.stop("network");this.metric_.start("processed");try{return this.request_.processResponse(a)}catch(b){throw this.metric_.logError(b&&b.message||"processResponse",b),b;}finally{this.metric_.stop("processed"),this.contentLength_=a&&a[frc]||0}};t0.prototype.close=function(a,b){b=void 0===b?0:b;this.request_.close(a,b);this.metric_.stop("total");this.metric_.status(a,b,this.contentLength_)};var hrc=function(a){this.config_=a;this.pendingRpcs_=new Set},u0=function(a,b){b=new t0(b);b=new erc(a.config_,b);a.pendingRpcs_.add(b);irc(a,b);return b.resultPromise()},irc=function(a,b){Ne(function(c){if(1==c.nextAddress)return Oe(c,2,3),c.yield(b.send(),3);if(2!=c.nextAddress)return Pe(c),a.pendingRpcs_.delete(b),Qe(c,0);Re(c);return c.jumpTo(3)})};var T6a=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new hrc(a);this.rpcClient_=new crc(this.clientConfig_.apiRoot_)},krc=function(a,b){var c,d,e,f;return Ne(function(h){switch(h.nextAddress){case 1:var k=jrc(b);if(c=a.inflightRequests_.get(k)||null)return h.return(c);d=new s0(b,a.rpcClient_);Oe(h,2,3);e=u0(a.dispatcher_,d);k=jrc(b);a.inflightRequests_.set(k,e);
return h.yield(e,5);case 5:return f=h.yieldResult,h.return(f);case 3:Pe(h);k=jrc(b);a.inflightRequests_.delete(k);Qe(h,0);break;case 2:throw Re(h),Error("ze");}})},jrc=function(a){a=P6a(a);if(!a)throw Wqc;return a};var lrc=function(a){this.internalArray_=m(a)};W(lrc,X);g=lrc.prototype;g.getInstanceId=function(){return Hi(this,1)};g.setInstanceId=function(a){return qj(this,1,a)};g.clearInstanceId=function(){st(this,1)};g.hasInstanceId=function(){return Ii(this,1)};g.getInstanceIdOrUndefined=function(){return At(this,1)};g.getRequestId=function(){return Hi(this,2)};g.getRequestType=function(){return Vi(this,4,0)};g.setRequestType=function(a){return rj(this,4,a)};g.getSourceType=function(){return Vi(this,6,0)};
g.setSourceType=function(a){return rj(this,6,a)};g.getClient=function(){return Vi(this,7,0)};g.setClient=function(a){return rj(this,7,a)};g.hasClient=function(){return Ti(this,7)};g.getErrorType=function(){return Vi(this,8,0)};g.setErrorType=function(a){return rj(this,8,a)};var U6a=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=Tr(new Ur,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(560219052).setEnableClearcut(b.getEnableClearcut())};g=U6a.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){throw Error("Wa");};g.createStatusMetric=function(){throw Error("Wa");};g.createErrorMetric=function(){throw Error("Wa");};
g.createLatencyMetric=function(a,b){a=b.source();b=Math.round(1E3*b.duration());xj(a,3,b);return a};var v0=function(a,b){this.metrics_=a;this.state_=new lQ(b);this.label_="total";this.source=b};v0.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};v0.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};var V6a=function(a,b){this.worker_=a;this.metrics_=pr(b)},mrc=function(a,b){var c=new lrc,d=O6a();c=qj(c,2,d).setRequestType(a.getRequestType());return rj(c,5,b).setClient(a.getClient().getApplicationOrUndefined())};
V6a.prototype.updateExperimentsCache=function(a,b){b=void 0===b?2:b;var c=this,d,e,f,h;return Ne(function(k){if(1==k.nextAddress)return d=mrc(a,b),e=new v0(c.metrics_,d),e.start(),k.yield(c.worker_.updateExperimentsCache(a,b),2);f=k.yieldResult;d.setSourceType(f.getSourceOrUndefined());d.setInstanceId(f.getInstanceIdOrUndefined());(h=f.getError())&&d.setErrorType(h.getErrorType());e.stop();return k.return(f)})};
V6a.prototype.getCachedExperiments=function(a,b){b=void 0===b?0:b;var c=mrc(a,b),d=new v0(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);c.setSourceType(a.getSourceOrUndefined());c.setInstanceId(a.getInstanceIdOrUndefined());(b=a.getError())&&c.setErrorType(b.getErrorType());d.stop();return a};var nrc=function(a){this.timer=a;this.count=0},X6a=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;this.refreshRateMs_=1E3*hi(this.clientConfig_.getClient(),11,14400);this.eventHandler_=new xq(this)};X6a.prototype.updateExperimentsCache=function(a,b){try{return orc(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(Uq(c))}};X6a.prototype.getCachedExperiments=function(a,b){try{return orc(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return Uq(c)}};
var orc=function(a,b){var c=P6a(b);if(!c)throw new Rq(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new ZA(a.refreshRateMs_);a.eventHandler_.listen(d,"tick",function(){if(a.worker_){b.clearInstanceId();a.worker_.updateExperimentsCache(b,1);var e=a.refreshers_.get(c);e.count++;var f=hi(a.clientConfig_.getClient(),12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new nrc(d))}a.refreshers_.get(c)};var prc=function(){},W6a=function(a,b){this.cache_=a;this.loader_=b};
W6a.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return Ne(function(k){if(1==k.nextAddress){e=d=null;try{d=qrc(c,a)}catch(y){e=y}if(d&&3!==d.state)return k.return(c.getCachedExperiments(a,b));Oe(k,3);return k.yield(rrc(c,a),5)}if(3!=k.nextAddress){f=k.yieldResult;var q=k.return,u=e;u=void 0===u?null:u;var x=(new Sq).setExperimentFlags(f.getExperimentFlags()).setExperimentIdsList(f.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceIdOrUndefined());u&&x.setError(Q6a(u));
return q.call(k,x)}h=Re(k);return k.return(Uq(h))})};W6a.prototype.getCachedExperiments=function(a){try{var b=qrc(this,a);if(b){var c=(new Sq).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);1!==b.state&&rrc(this,a).catch(prc);return c}rrc(this,a).catch(prc);return Uq()}catch(d){return Uq(d)}};
var qrc=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof Rq)throw d;throw new Rq(3);}},rrc=function(a,b){var c,d;return Ne(function(e){if(1==e.nextAddress)return Oe(e,2),b.hasInstanceId()||b.setInstanceId(O6a()),e.yield(krc(a.loader_,b),4);if(2!=e.nextAddress)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=Re(e);if(d instanceof Rq)throw d;throw new Rq(2);})};var S6a;var src=function(a){this.clientConfig_=a;this.worker_=Y6a(this.clientConfig_)};src.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};var nr=function(){this.peopleApiEnv_=4};nr.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};nr.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};var trc=function(a,b){this.client_=a;this.request_=b;this.response_=null};trc.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};trc.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList()};var k8a=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=560219052};k8a.prototype.prefetch=function(a){var b=new o0(this.clientConfig_,new nr);a=urc(this,a,"");Y6a(b).updateExperimentsCache(a,2)};k8a.prototype.loadExperiments=function(a,b,c){var d=new o0(this.clientConfig_,b),e=urc(this,a,c);Y6a(d).updateExperimentsCache(e,2);b=new src(new o0(this.clientConfig_,b));a=urc(this,a,c);return new trc(b,a)};
var urc=function(a,b,c){var d=(new m0).setVersion(a.version_);b=(new n0).setApplication(b);return(new Rqc).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};var Xq=new l8a(new f0,new Oqc);var a7a=uq.getInstance();var e7a=uq.getInstance();var vrc=new Az(pM.WEEKDAY_MONTH_DAY_MEDIUM),wrc=new Az(7);new Az(pM.WEEKDAY_MONTH_DAY_MEDIUM);var xrc=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);var yrc=function(a){var b=a.iconUrl,c=a.altText,d=a.persistentText;a=a.styleClass;return Iq('<div class="'+Lq("peoplekitComponentsTagTag")+" "+(a?Lq(a):"")+'" peoplekit-id="'+Lq("mQXP")+'">'+(b?'<img class="'+Lq("peoplekitComponentsTagIcon")+'" src="'+Lq(C$b(b))+'" alt="'+Lq(c)+'"><div'+(d?"":' class="'+Lq("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Lq("peoplekitComponentsTagText")+'">'+Mq(c)+"</div></div>":'<div class="'+Lq("peoplekitComponentsTagText")+'">'+Mq(c)+"</div>")+"</div>")};var g7a=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;zrc(this,{tags:d});F5a(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){zrc(h,k)})};g=g7a.prototype;g.getAllIds=function(){return[]};g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.unspotlight=function(){};
g.getRoot=function(){return this.root};g.getSelection=function(){throw Error("Be");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=wq(this.root,"Z306Oe");if(this.isOutOfOffice=4===a.getCurrentStatus()){if(4!==a.getCurrentStatus())throw Error("Ae");var c=null!=c?c:a.getCurrentStatusEndTime();a=new Date(Date.now());c=a.getYear()===c.getYear()&&a.getMonth()===c.getMonth()&&a.getDate()===c.getDate()?"Out of office - back at "+wrc.format(c):"Out of office - back on "+vrc.format(c);TA(b,String(c));this.root.classList.add("isOutOfOffice")}else TA(b,
""),this.root.classList.remove("isOutOfOffice")}};g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:xrc.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=wq(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=To(yrc,Object.assign({},a,{styleClass:c}));b.appendChild(a)};
g.setMetaIcon=function(a){var b=Array.from(this.root.querySelectorAll('[peoplekit-id="SC3Htd"]'))[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var zrc=function(a,b){for(var c=l(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};g7a.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};g7a.prototype.dispose=function(){};var A7a=function(a,b,c,d,e){this.delegate=h7a(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=new nqc(Cr)};W(A7a,k0);A7a.prototype.getAllIds=function(){return[this.id]};A7a.prototype.getSelection=function(){return this.selection};var Arc=function(a,b,c,d,e,f,h,k){d=void 0===d?"":d;e=void 0===e?!1:e;return Iq('<div role="option" class="'+Lq("peoplekitComponentsResultlistitemResultListItem")+" "+Lq(d)+'" id="'+Lq(a)+'" peoplekit-id="'+Lq(a)+'" aria-disabled="'+Lq(e)+'" aria-selected="false"><div class="'+Lq("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Lq("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Lq(b)+'" data-name="'+Lq(Nq(c))+'">'+Mq(f)+'</div><div class="'+Lq("peoplekitComponentsResultlistitemCenter")+
'">'+Mq(h)+'</div><div class="'+Lq("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+Lq("QChpEe")+'">'+Mq(k)+'</div></div><div peoplekit-id="'+Lq("Z306Oe")+'" class="'+Lq("peoplekitComponentsResultlistitemOutOfOffice")+'"></div><div peoplekit-id="'+Lq("QL45qe")+'"></div></div>')},Brc=function(a,b,c,d){return Iq('<div class="'+Lq("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Lq("peoplekitComponentsResultlistitemLabel")+" "+Lq("peoplekitComponentsResultlistitemLabelRow")+
'"><div class="'+Lq("peoplekitComponentsResultlistitemLabelText")+'" data-hovercard-id="'+Lq(b)+'" data-name="'+Lq(Nq(a))+'" translate="no">'+Mq(Nq(a))+'</div><div peoplekit-id="'+Lq("x00ATb")+'" class="'+Lq("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(c?'<div class="'+Lq("peoplekitComponentsResultlistitemSublabel")+" "+Lq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Lq("peoplekitComponentsResultlistitemSublabelText")+'" data-hovercard-id="'+Lq(b)+'" data-name="'+Lq(Nq(a))+
'"'+(d?"":' translate="no"')+">"+Mq(Nq(c))+"</div></div>":"")+"</div>")},Crc=function(a){return Iq('<div class="'+Lq("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+Lq("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Lq("d6MZcd")+'"></div>'+(a?Mq(a):"")+"</div>")},Drc=function(){var a=Iq,b='<div class="'+Lq("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Lq("peoplekitComponentsResultlistitemWhiteCheck")+'">';var c=Iq('<svg viewBox="0 0 24 24" class="'+
(Lq("peoplekitComponentsResultlistitemWhiteCheckSvg")+'"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'));return a(Crc(QQ(b+c+"</div></div>")))},Erc=function(){return Iq('<img class="'+Lq("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Lq("SC3Htd")+'" alt="" src=""/>')};var z7a=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.disableReason,f=a.allowSublabelTranslation;return Iq(Arc(a.id,b,c,"isDisabled "+a.densityClass,!0,QQ(""+Crc()),QQ(""+Brc(c,b,d,f)),QQ('<div class="'+Lq("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'+Mq(e)+"</div>")))};var br=function(a){this.delegate=a;var b=this;this.eventHandler=yq(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};W(br,k0);br.prototype.onClick=function(){this.toggleSelection()};var i7a=function(a,b){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=!1;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("Ce");this.target=a;a=this.target.getLoggingToken();b=this.target.getId();this.internalSelectionToken=new hqc(b,this.displayNameOverride,this.forceDisplayNameOverride,a)};g=i7a.prototype;g.id=function(){return this.target.getId()};g.selectionToken=function(){return this.internalSelectionToken};g.targets=function(){return[this.target]};
g.result=function(){return this.internalResult};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.getDisplayNameWithOverrideApplied=function(){return this.forceDisplayNameOverride?this.displayNameOverride:this.displayNameOverride||this.internalResult.getDisplayName()};g.isPlaceholder=function(){return!1};var w0=function(a,b,c,d,e,f){this.delegate=h7a(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=new nqc(Cr)};W(w0,k0);w0.prototype.getAllIds=function(){return[this.id]};w0.prototype.toggleSelection=function(){for(var a=l(this.result.getMemberList()),b=a.next();!b.done;b=a.next())b=j7a(b.value),this.selectionsState.select(b);this.root.dispatchEvent($5a("pk-select",this.root))};w0.prototype.getSelection=function(){return this.selection};var Frc=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Iq(Arc(a.id,b,c,a.densityClass,void 0,QQ(""+Crc()),QQ(""+Brc(c,b,d,e)),QQ(""+Erc())))};var cr=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&Grc(this,this.getSelection());this.onDeselectionCallback=function(d){d.id().equals(c.id)&&(c.getRoot().classList.remove("isSelected"),c.getRoot().setAttribute("aria-selected","false"))};this.onSelectionCallback=function(d){Grc(c,d)};Hrc(this.selectionsState,this.onDeselectionCallback);Irc(this.selectionsState,this.onSelectionCallback)};W(cr,k0);
cr.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=$5a("pk-deselect",a)}else a=this.getRoot(),a=$5a("pk-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var Grc=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};cr.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};var ar=function(a,b,c,d,e,f,h){this.delegate=h7a(a,b,d,e,f,[2]);this.selectionsState=c;this.clientConfig=h;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||j7a(b,b.getDisplayName())};W(ar,k0);ar.prototype.onContextMenu=function(a,b){Ri(this.clientConfig.internal,7,!1)&&Zq()&&a.preventDefault();return k0.prototype.onContextMenu.call(this,a,b)};ar.prototype.getAllIds=function(){return[this.id]};ar.prototype.getSelection=function(){return this.selection};var x7a=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Iq(Arc(a.id,b,c,a.densityClass,void 0,QQ(""+Drc()),QQ(""+Brc(c,b,d,e)),QQ(""+Erc())))};var x0=function(a,b,c,d,e,f,h){this.delegate=h7a(a,b,d,e,f,[]);this.selectionsState=c;this.clientConfig=h;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||j7a(b)};W(x0,k0);x0.prototype.onContextMenu=function(a,b){Ri(this.clientConfig.internal,7,!1)&&Zq()&&a.preventDefault();return k0.prototype.onContextMenu.call(this,a,b)};x0.prototype.getAllIds=function(){return[this.id]};x0.prototype.getSelection=function(){return this.selection};var Jrc=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Iq(Arc(a.id,b,c,a.densityClass,void 0,QQ(""+Drc()),QQ(""+Brc(c,b,d,e)),QQ(""+Erc())))};var Krc=function(a){return"To unhide this suggestion, press "+a.shortcutKey+" + Enter.  "};var p7a=function(a,b,c,d,e,f){var h=this;this.root=a;this.enabledIcon=b;this.disabledIcon=c;this.tooltip=d;this.disableDomNavigation=e;this.internalIsDisabled=!1;this.eventHandler=yq(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var q;null==(q=h.onClick)||q.call(h,k)});this.disableDomNavigation?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){h.activate()}),this.eventHandler.listen(this.root,"blur",function(){h.deactivate()}))};g=p7a.prototype;
g.getRoot=function(){return this.root};g.enable=function(){this.root.disabled=!1;var a=this.root.querySelector("img");a&&(a.src=this.enabledIcon);this.internalIsDisabled=!1};g.disable=function(){this.root.disabled=!0;var a=this.root.querySelector("img");a&&this.disabledIcon&&(a.src=this.disabledIcon);this.internalIsDisabled=!0};g.isDisabled=function(){return this.internalIsDisabled};
g.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0;if(this.tooltip){var a=this.tooltip;a.anchor&&(Lrc(a),a.eventHandler.removeAll(),a.isDisplayedInternal=!1,a.anchor=void 0,a.showTimeout=void 0,a.hideTimeout=void 0)}};g.activate=function(){this.root.classList.add("isFocused");this.tooltip&&Mrc(this.tooltip)};g.deactivate=function(){this.root.classList.remove("isFocused");this.tooltip&&Lrc(this.tooltip)};g.isActive=function(){return this.root.classList.contains("isFocused")};var Nrc=0;var l7a=function(a){var b=a.icon,c=a.ariaLabel,d="";c=(a=a.tooltipLabel?"tt-c"+Nrc++:"")?' data-tooltip-id="'+Lq(a)+'" aria-labelledby="'+Lq(a)+'"':c?' aria-label="'+Lq(c)+'"':"";d+='<button class="'+Lq("peoplekitComponentsButtonIconIconButton")+'"'+c+">"+Iq('<span><img src="'+Lq(C$b(b))+'" draggable="false" aria-hidden="true" alt="" class="'+Lq("peoplekitComponentsButtonIconAdaptableIcon")+'"/></span>')+"</button>";return Iq(d)};var Orc=["mouseover","focusin","touchstart"],Prc=["mouseleave","blur","touchend","click"],n7a=function(a,b,c){this.tooltip=a;this.showDelay=void 0===b?500:b;this.hideDelay=void 0===c?300:c;this.isDisplayedInternal=!1;this.eventHandler=yq(this);this.tooltipService=l6a(this.tooltip,{anchorCorner:3,popupCorner:2})},o7a=function(a,b){if(a.anchor)throw Error("De");a.anchor=b;for(var c=l(Orc),d=c.next();!d.done;d=c.next())a.eventHandler.listen(b,d.value,function(){Qrc(a)});Rrc(a)},Mrc=function(a){if(!a.anchor)throw Error("Ee");
a.isDisplayedInternal||(a.tooltipService.show(a.anchor),window.clearTimeout(a.showTimeout),a.showTimeout=void 0,a.isDisplayedInternal=!0)},Lrc=function(a){a.isDisplayedInternal&&(a.tooltipService.hide(),window.clearTimeout(a.hideTimeout),a.hideTimeout=void 0,a.isDisplayedInternal=!1)};n7a.prototype.getRoot=function(){return this.tooltip};
var Qrc=function(a){void 0===a.showTimeout&&(window.clearTimeout(a.hideTimeout),a.hideTimeout=void 0,a.showTimeout=window.setTimeout(function(){Mrc(a)},a.showDelay))},Src=function(a){void 0===a.hideTimeout&&(window.clearTimeout(a.showTimeout),a.showTimeout=void 0,a.hideTimeout=window.setTimeout(function(){Lrc(a)},a.hideDelay))},Rrc=function(a){if(a.anchor){for(var b=l(Prc),c=b.next();!c.done;c=b.next())a.eventHandler.listen(a.anchor,c.value,function(){Src(a)});a.eventHandler.listen(window,"touchmove",
function(){Src(a)});a.eventHandler.listen(window,"focus",function(d){d.target!==a.anchor&&Src(a)});a.eventHandler.listen(window,"blur",function(d){d.target===window&&Lrc(a)})}};var m7a=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes,f=Iq;a='<div id="'+Lq(a.id)+'" peoplekit-id="'+Lq("suEOdc")+'" class="'+Lq("peoplekitComponentsTooltipImplTooltip")+(d?" "+Lq(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+Lq(c)+'"':"");e?(OQ(e,i$b)?e=e.getContent():(e=String(e),e=G$b.test(e)?e:"zSoyz"),OQ(e,i$b)&&(e=e.getContent()),e=(e&&!e.startsWith(" ")?" ":"")+e):e="";return f(a+e+">"+Mq(b)+"</div>")};var r7a=function(a,b,c){this.delegate=a;var d=this;this.secondaryActionConfig=c;for(var e=wq(a.getRoot(),"QChpEe");e.firstChild;)e.removeChild(e.firstChild);this.secondaryActionButton=q7a(e,Object.assign({},{density:b.getDensity()},c));this.buttonRoot=this.secondaryActionButton.getRoot();this.buttonRoot.style.display="none";this.buttonRoot.id=a.getRoot().id+"-2ab";c.disableDomNavigation&&nE(this.buttonRoot,"menuitem");sq(this.buttonRoot,163534,["impression","pk-click"]);this.secondaryActionButton.onClick=
function(f){var h;null==(h=c.onClick)||h.call(c,f);d.buttonRoot.dispatchEvent(Gq(d.buttonRoot))};this.eventHandler=yq(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};W(r7a,k0);g=r7a.prototype;g.activate=function(){this.getRoot().classList.add("isActive");this.displaySecondaryActionButton()};
g.deactivate=function(){this.getRoot().classList.remove("isActive");this.secondaryActionButton.deactivate();this.hideSecondaryActionButton()};
g.onKeyDown=function(a){var b=13===a.event.keyCode,c=b&&a.event.platformModifierKey;if(this.secondaryActionConfig.disableDomNavigation){var d=9===a.event.keyCode;!d||a.event.shiftKey||this.secondaryActionButton.isActive()?d&&this.secondaryActionButton.isActive()&&(this.secondaryActionButton.deactivate(),oE(this.buttonRoot,"hidden","true"),a.stopPropagation(),a.preventDefault()):(this.secondaryActionButton.activate(),oE(this.buttonRoot,"hidden","false"),a.stopPropagation(),a.preventDefault())}if(c||
b&&this.secondaryActionButton.isActive())this.buttonRoot.click(),a.stopPropagation(),a.preventDefault()};g.dispose=function(){this.eventHandler.removeAll();this.secondaryActionButton.dispose();k0.prototype.dispose.call(this)};g.displaySecondaryActionButton=function(){this.buttonRoot.style.display=""};g.hideSecondaryActionButton=function(){this.getRoot().classList.contains("isActive")||(this.buttonRoot.style.display="none")};var Trc={LIGHT_THEME:"https://www.gstatic.com/people/peoplekit/icons/light_theme/visibility_grey700.svg",DARK_THEME:"https://www.gstatic.com/people/peoplekit/icons/dark_theme/visibility_grey300.svg"},Urc=Krc({shortcutKey:"Ctrl"}),Vrc=Krc({shortcutKey:"\u2318"}),u7a=function(a,b,c,d){var e=0===b.getTheme()?Trc.LIGHT_THEME:Trc.DARK_THEME,f=laa()?Vrc:Urc;k0.call(this,s7a(a,b,{icon:e,tooltipLabel:"Unhide suggestion",ariaLabel:f,onClick:function(k){h.onButtonClick(k)},disableDomNavigation:!0},d));var h=
this;this.appearanceConfig=b;this.clientConfig=c;this.dispatcher=this.clientConfig.injectorService.actionEventDispatcher};W(u7a,k0);u7a.prototype.onButtonClick=function(a){Wrc(this);a.stopPropagation()};
var Wrc=function(a){a.unhideConfirmationDialog&&Xrc(a);a.dispatcher.notify(8);a.unhideConfirmationDialog=M6a(a.getRoot().ownerDocument.body,a.getSelection(),a.appearanceConfig,1);a.unhideConfirmationDialog.subscribeToAction(function(b){1===b&&a.dispatcher.notify(4,a.getAllIds());Xrc(a)})},Xrc=function(a){var b;null==(b=a.unhideConfirmationDialog)||b.dispose();a.unhideConfirmationDialog=void 0;a.dispatcher.notify(9,a.getRoot())};var Yrc=function(a){this.internalArray_=m(a)};W(Yrc,X);g=Yrc.prototype;g.getIdCase=function(){return Bl(this,y0)};g.getProfileId=function(){return Hi(this,Dl(this,y0,1))};g.setProfileId=function(a){return Jl(this,1,y0,a)};g.hasProfileId=function(){return null!=aq(this,1,y0)};g.getEmail=function(){return Hi(this,Dl(this,y0,2))};g.setEmail=function(a){return Jl(this,2,y0,a)};g.hasEmail=function(){return null!=aq(this,2,y0)};g.getPhone=function(){return Hi(this,Dl(this,y0,3))};
g.setPhone=function(a){return Jl(this,3,y0,a)};g.hasPhone=function(){return null!=aq(this,3,y0)};var y0=[1,2,3],Zrc=function(a){if(null!=a)return uc(a),{profileId:rc(aq(a,1,y0)),email:rc(aq(a,2,y0)),phone:rc(aq(a,3,y0))}};var Gr=function(a){this.internalArray_=m(a)};W(Gr,X);Gr.prototype.getHideType=function(){return Mr(this,1)};Gr.prototype.getHiddenKeysList=function(){return Ji(this,Yrc,3)};Gr.repeatedFields_=[3];var $rc=function(a){if(null!=a)return uc(a),{hideType:rc(Mr(a,1)),hiddenKeysList:qc(a.getHiddenKeysList(),Zrc),familyStatus:rc(Mr(a,2)),birthdayStatus:rc(Mr(a,4))}};var u9a=pc(417869137,{peopleStackPersonData:0},Gr,$rc);var t7a=function(){};t7a.prototype.filterResult=function(a){var b,c;return 1===(null==(b=a.getExtendedData())?void 0:null==(c=b.getExtension(u9a))?void 0:c.getHideType())?a:null};t7a.prototype.reset=function(){};var C7a=new Map([[1,y7a()],[4,y7a()],[5,B7a(1)],[6,B7a(2)],[2,function(a){var b=a.result;var c=a.selectionsState;var d=a.resultConfig,e=a.appearanceConfig,f=a.clientConfig,h=a.resultCustomization,k=f7a(b,d,h,a.isRightToLeft,Ri(f.internal,6,!1),Pq(e.getDensity())),q=To(Jrc,k);sq(q,25285,["impression","pk-select","pk-deselect"],[k7a(b.getPrimaryTarget().getLoggingToken())]);var u=wq(q,"d6MZcd"),x=N6a(e.getDensity()),y;h=null!=(y=h.backupAvatarUrl)?y:"";e=Kq(u,k.photos,x,x,e,h);b=new x0(q,b,c,d,k.tags,
e,f);c=new br(new cr(b,c));return w7a(v7a(c,a),a)}],[3,function(a){var b=a.result;var c=a.selectionsState,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomization,h=f7a(b,d,f,a.isRightToLeft,Ri(a.clientConfig.internal,6,!1),Pq(e.getDensity())),k=To(Frc,h);sq(k,25285,["impression","pk-select","pk-deselect"],[k7a(b.getPrimaryTarget().getLoggingToken())]);var q=wq(k,"d6MZcd"),u=N6a(e.getDensity()),x;f=null!=(x=f.backupAvatarUrl)?x:"";e=Kq(q,h.photos,u,u,e,f);b=new br(new w0(k,b,c,d,h.tags,e));return v7a(b,
a)}]]);var N7a=function(a,b,c,d,e,f,h,k){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.clientConfig=d;this.selectionsState=e;this.interactions=h;this.ariaParent=k;this.results=[];this.intelligentCollection=f.create();this.navigatable=new fqc(new X5a(this.results))};g=N7a.prototype;g.register=function(a){this.results.push(a);this.navigatable.insert(this.navigatable.size(),[a],!1);this.intelligentCollection.append([a])};
g.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=D7a(c.value,b,this.selectionsState,this.resultConfig,this.appearanceConfig,this.clientConfig,fR(this.list.getRoot()),this.interactions,this.ariaParent),this.list.append(c.getRoot()),this.register(c)};g.clear=function(){this.list.clear();this.navigatable.clear();this.intelligentCollection.clear();for(var a=l(this.results),b=a.next();!b.done;b=a.next())b.value.dispose();this.results.length=0};g.reset=function(){this.navigatable.reset()};
g.getNavigatable=function(){return this.navigatable};g.getResultListItems=function(){return this.results};var z0=function(a){this.delegate=a};g=z0.prototype;g.getHeader=function(){return this.delegate.getHeader()};g.getActionItems=function(){return this.delegate.getActionItems()};g.dispose=function(){this.delegate.dispose()};g.getRoot=function(){return this.delegate.getRoot()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.spotlight=function(){this.delegate.spotlight()};g.unspotlight=function(){this.delegate.unspotlight()};g.getSelection=function(){return this.delegate.getSelection()};
g.toggleSelection=function(){this.delegate.toggleSelection()};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};var asc=function(a){var b=a.id,c=a.groupName;a=a.classes;return Iq('<div class="'+Lq("peoplekitComponentsGroupingHeaderCollapsibleChevronContainer")+" "+(a?" "+Lq(a):"")+'" peoplekit-id="'+Lq("wgPSWd")+'" id="'+Lq(b)+'" aria-expanded="false" role="menuitem" aria-label="'+Lq("To expand "+c+" group, press enter")+'"><svg class="'+Lq("peoplekitComponentsGroupingHeaderCollapsibleChevron")+'" viewBox="0 0 24 24" height="24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg></div>')},
bsc=function(a){return"To "+a.action+" "+a.groupName+" group, press enter"};var fr=function(a,b,c){this.delegate=a;var d=this;this.isCollapsed=b;this.interactionListener=c;this.eventHandler=yq(this);this.chevron=To(asc,{id:qq(uq.getInstance()),groupName:this.getHeader(),classes:"TdcT2c"});this.groupingHeaderActionItems=a.getActionItems().slice();this.groupingHeaderActionItems.push({focus:function(){d.chevron.classList.add("isSpotlit")},unfocus:function(){d.chevron.classList.remove("isSpotlit")},onKeyDown:function(e){13===e.event.keyCode&&(d.toggleView(),e.stopPropagation())}});
this.eventHandler.listen(this.getRoot(),"click",this.toggleView);wq(this.getRoot(),"QChpEe").appendChild(this.chevron);b||(this.chevron.classList.toggle("rotate"),oE(this.chevron,"expanded",!0),BWb(this.chevron,bsc({groupName:this.getHeader(),action:"collapse"})))};W(fr,z0);fr.prototype.getActionItems=function(){return this.groupingHeaderActionItems};fr.prototype.dispose=function(){this.eventHandler.removeAll();z0.prototype.dispose.call(this)};
fr.prototype.toggleView=function(){this.isCollapsed=!this.isCollapsed;this.chevron.classList.toggle("rotate");this.interactionListener(this.isCollapsed);var a=this.isCollapsed?"expand":"collapse";oE(this.chevron,"expanded",!this.isCollapsed);BWb(this.chevron,bsc({groupName:this.getHeader(),action:a}))};var csc=function(a){var b=a.id,c=a.ariaLabel;a=a.classes;return Iq('<div class="'+Lq("peoplekitComponentsGroupingHeaderInfoInfoIconContainer")+" "+(a?" "+Lq(a):"")+'" peoplekit-id="'+Lq("CLghmc")+'" id="'+Lq(b)+'" aria-label="'+Lq(c)+'"><svg class="'+Lq("peoplekitComponentsGroupingHeaderInfoInfoIcon")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg></div>')};var esc=function(a,b,c,d){this.delegate=a;var e=this;this.infoGroupConfig=b;this.appearanceConfig=c;this.infoGroupingHeaderVeIds=d;this.infoIcon=To(csc,{id:qq(uq.getInstance()),ariaLabel:"For more information about "+this.getHeader()+", press enter.",classes:"TdcT2c"});wq(this.getRoot(),"xiK4Cd").appendChild(this.infoIcon);void 0!==this.infoGroupingHeaderVeIds.infoIconVeId&&sq(this.infoIcon,this.infoGroupingHeaderVeIds.infoIconVeId,["impression","pk-click"]);this.eventHandler=yq(this);this.eventHandler.listen(this.infoIcon,
"click",function(){dsc(e)});this.groupingHeaderActionItems=a.getActionItems().slice();this.groupingHeaderActionItems.push({focus:function(){e.infoIcon.classList.add("isSpotlit")},unfocus:function(){e.infoIcon.classList.remove("isSpotlit")},onKeyDown:function(f){13===f.event.keyCode&&(dsc(e),f.stopPropagation(),f.preventDefault())}})};W(esc,z0);
var dsc=function(a){a.infoIcon.dispatchEvent(Gq(a.infoIcon));var b=x6a({header:a.infoGroupConfig.infoDialogHeader}),c=zqc({description:a.infoGroupConfig.learnMoreMessage,learnMoreLinkUrl:a.infoGroupConfig.learnMoreUrl,learnMoreLinkText:a.infoGroupConfig.learnMoreLinkText}),d=a.getRoot().ownerDocument.activeElement,e=a.getRoot().closest('[class~="aU4VQc"]'),f=w6a(e,c,a.appearanceConfig,b),h=wq(f.getRoot(),"lh87ke");void 0!==a.infoGroupingHeaderVeIds.learnMoreLinkVeId&&sq(h,a.infoGroupingHeaderVeIds.learnMoreLinkVeId,
["impression","pk-click"]);a.eventHandler.listen(h,"click",function(){h.dispatchEvent(Gq(h))});f.subscribeToAction(function(k){2===k&&(f.dispose(),d&&d.focus())})};esc.prototype.getActionItems=function(){return this.groupingHeaderActionItems};esc.prototype.dispose=function(){this.eventHandler.removeAll();z0.prototype.dispose.call(this)};var F7a=function(a,b){this.root=a;this.header=b};g=F7a.prototype;g.getHeader=function(){return this.header};g.getActionItems=function(){return[]};g.dispose=function(){};g.getRoot=function(){return this.root};g.activate=function(){};g.deactivate=function(){};g.spotlight=function(){};g.unspotlight=function(){};g.getSelection=function(){throw Error("Be");};g.toggleSelection=function(){};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};var E7a=function(a){var b=Iq;var c=a.id;a=a.header;c=Iq('<div class="'+Lq("peoplekitComponentsGroupingHeaderGroupingHeader")+'" id="'+Lq(c)+'" peoplekit-id="'+Lq("XLuqBd")+'" role="menu"><div class="'+Lq("peoplekitComponentsGroupingHeaderGroupingHeaderRow")+'"><div class="'+Lq("peoplekitComponentsGroupingHeaderHeader")+'">'+Mq(a)+'</div><div class="'+Lq("peoplekitComponentsGroupingHeaderAction")+'"><div class="'+Lq("peoplekitComponentsGroupingHeaderActionRow")+'"><div class="'+Lq("peoplekitComponentsGroupingHeaderLeft")+
'" peoplekit-id="'+Lq("xiK4Cd")+'"></div><div class="'+Lq("peoplekitComponentsGroupingHeaderRight")+'" peoplekit-id="'+Lq("QChpEe")+'"></div></div></div></div></div>');return b(c)};var A0=function(a){this.delegate=a};W(A0,z0);A0.prototype.spotlight=function(){var a=this.getActionItems();a.length&&(this.activeActionItemIndex=0,a[this.activeActionItemIndex].focus())};A0.prototype.unspotlight=function(){void 0!==this.activeActionItemIndex&&(this.getActionItems()[this.activeActionItemIndex].unfocus(),this.activeActionItemIndex=void 0)};
A0.prototype.onKeyDown=function(a){if(void 0!==this.activeActionItemIndex){var b=this.getActionItems(),c=b[this.activeActionItemIndex];c.onKeyDown(a);if(!a.hasStoppedPropagationInternal)switch(a.event.keyCode){case 9:c.unfocus(),this.activeActionItemIndex=(this.activeActionItemIndex+1)%b.length,b[this.activeActionItemIndex].focus(),a.stopPropagation(),a.preventDefault()}}};var B0=function(a){this.delegate=a};g=B0.prototype;g.append=function(a){this.delegate.append(a)};g.isInteractive=function(){return this.delegate.isInteractive()};g.getGroupName=function(){return this.delegate.getGroupName()};g.getHeader=function(){return this.delegate.getHeader()};g.getItems=function(){return this.delegate.getItems()};g.getRoot=function(){return this.delegate.getRoot()};g.dispose=function(){this.delegate.dispose()};var ir=function(a,b){this.delegate=a;var c=this;this.listContainer=wq(this.getRoot(),"tjneg");a=a.getHeader();if(!a)throw Error("Ge");this.collapsibleHeader=H7a(a,b.isInitiallyCollapsed,function(d){c.interactionListener(d)});wq(this.collapsibleHeader.getRoot(),"wgPSWd").setAttribute("aria-controls",this.listContainer.id);b.isInitiallyCollapsed&&this.listContainer.classList.add("collapsed")};W(ir,B0);ir.prototype.isInteractive=function(){return!0};ir.prototype.getHeader=function(){return this.collapsibleHeader};
ir.prototype.dispose=function(){this.collapsibleHeader.dispose();B0.prototype.dispose.call(this)};ir.prototype.interactionListener=function(a){a?(this.listContainer.classList.add("collapsed"),this.listContainer.style.height=""):(this.listContainer.classList.remove("collapsed"),this.listContainer.style.height=this.listContainer.scrollHeight+"px")};var hr=function(a,b,c){this.delegate=a;a=a.getHeader();if(!a)throw Error("He");var d={};1===b.infoType&&(d={infoIconVeId:185198,learnMoreLinkVeId:185199});this.infoHeader=new esc(a,b,c,d)};W(hr,B0);hr.prototype.isInteractive=function(){return!0};hr.prototype.getHeader=function(){return this.infoHeader};hr.prototype.dispose=function(){this.infoHeader.dispose();B0.prototype.dispose.call(this)};var gr=function(a,b){this.delegate=a;this.groupName=b;this.header=G7a(b);wq(a.getRoot(),"Bm3u4d").appendChild(this.header.getRoot())};W(gr,B0);gr.prototype.getGroupName=function(){return this.groupName};gr.prototype.getHeader=function(){return this.header};gr.prototype.dispose=function(){this.header.dispose();B0.prototype.dispose.call(this)};var fsc=function(a){this.root=a;this.items=[];this.list=K5a(wq(a,"tjneg"))};g=fsc.prototype;g.append=function(a){this.items.push(a);this.list.append(a.getRoot())};g.isInteractive=function(){return!1};g.getGroupName=function(){return""};g.getHeader=function(){};g.getItems=function(){return this.items};g.getRoot=function(){return this.root};g.dispose=function(){for(var a=l(this.items),b=a.next();!b.done;b=a.next())b.value.dispose();this.list.clear();this.items=[]};var gsc=function(a,b,c){this.delegate=a;var d=this;this.resultListGroupConfig=b;this.navigatable=c;this.listContainer=wq(this.getRoot(),"tjneg");var e,f;this.isCollapsed=null!=(f=null==(e=this.resultListGroupConfig.collapsibleGroupConfig)?void 0:e.isInitiallyCollapsed)?f:!1;(this.header=a.getHeader())&&this.header.getActionItems().length&&(this.header=new A0(this.header),this.navigatable.insert(this.navigatable.size(),[this.header],!1));this.mutationObserver=new MutationObserver(function(h){d.onMutation(h)});
this.mutationObserver.observe(this.listContainer,{attributes:!0})};W(gsc,B0);g=gsc.prototype;g.append=function(a){this.isCollapsed||this.navigatable.insert(this.navigatable.size(),[a],!1);B0.prototype.append.call(this,a)};g.getHeader=function(){return this.header};g.dispose=function(){this.mutationObserver.disconnect();B0.prototype.dispose.call(this)};g.getItems=function(){return this.isCollapsed?[]:B0.prototype.getItems.call(this)};
g.onMutation=function(a){if(this.header){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,"attributes"===b.type&&"class"===b.attributeName&&(b.target.classList.contains("collapsed")?(this.navigatable.remove(this.getItems(),!1),this.isCollapsed=!0):(this.isCollapsed=!1,b=this.navigatable.getIndexOf(this.header),this.navigatable.insert(b+1,this.getItems(),!1),O5a(this.getRoot())))}};var hsc=function(a){var b=a.listId;return Iq('<div id="'+Lq(a.id)+'" peoplekit-id="'+Lq("E9WxSb")+'" role="group"><div peoplekit-id="'+Lq("Bm3u4d")+'"></div><div id="'+Lq(b)+'" role="region" class="'+Lq("peoplekitComponentsResultListGroupListContainer")+'" peoplekit-id="'+Lq("tjneg")+'"></div></div>')};var S7a=function(a,b,c,d,e,f,h,k){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.clientConfig=d;this.selectionsState=e;this.interactions=f;this.grouping=h;this.ariaParent=k;this.groups=new Map;this.navigatable=new fqc(new X5a([]));this.list.getRoot().removeAttribute("role")};g=S7a.prototype;
g.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=this.grouping.getGroupId(d);var e=this.groups.get(c);d=D7a(d,b,this.selectionsState,this.resultConfig,this.appearanceConfig,this.clientConfig,fR(this.list.getRoot()),this.interactions,this.ariaParent);if(c&&!e){e=this.grouping;var f=this.navigatable,h=this.appearanceConfig,k=[I7a,K7a,L7a],q=qq(uq.getInstance()),u=qq(uq.getInstance());u=To(hsc,{id:q,listId:u});q=J7a();u=new fsc(u);k=l(k);for(var x=k.next();!x.done;x=
k.next())x=x.value,u=x(u,e,c,h);e=new gsc(u,q,f);this.groups.set(c,e);this.list.append(e.getRoot())}e.append(d)}};g.clear=function(){this.list.clear();this.navigatable.clear();for(var a=l(this.groups.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.groups.clear()};g.reset=function(a){this.navigatable.reset();this.grouping.reset(a)};g.getNavigatable=function(){return this.navigatable};
g.getResultListItems=function(){for(var a=[],b=l(this.groups.values()),c=b.next();!c.done;c=b.next())a.push.apply(a,p(c.value.getItems()));return a};var P7a=function(a,b,c){this.delegate=a;this.list=b;this.grouping=c;this.renderedGroups=new Set};g=P7a.prototype;g.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.grouping.getGroupId(c);if(d&&!this.renderedGroups.has(d)){var e=this.grouping.getGroupName(d);if(e&&(e=G7a(e),this.list.append(e.getRoot()),e.getActionItems().length)){var f=this.getNavigatable();f.insert(f.size(),[e],!1)}this.renderedGroups.add(d)}this.delegate.append([c],b)}};
g.clear=function(){this.renderedGroups.clear();this.delegate.clear()};g.reset=function(a){this.grouping.reset(a);this.renderedGroups.clear();this.delegate.reset(a)};g.getNavigatable=function(){return this.delegate.getNavigatable()};g.getResultListItems=function(){return this.delegate.getResultListItems()};var Q7a=function(a,b){this.delegate=a;this.interactions=b};g=Q7a.prototype;g.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.delegate.append([c],b),this.interactions.display(c)};g.clear=function(){this.delegate.clear()};g.reset=function(a){this.delegate.reset(a)};g.getNavigatable=function(){return this.delegate.getNavigatable()};g.getResultListItems=function(){return this.delegate.getResultListItems()};var M7a=function(a){a=a.header;return Iq('<div peoplekit-id="'+Lq("aittld")+'">'+(0<PQ(a).length?'<div class="'+Lq("peoplekitUiResultlistHeader")+'">'+Mq(a)+"</div>":"")+'<div peoplekit-id="'+Lq("tjneg")+'"></div></div>')};var u8a=function(a){this.label=a};u8a.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return 2!==b.getDataSource()})?"non_directory":"directory"};u8a.prototype.getGroupName=function(a){switch(a){case "directory":return this.label;case "non_directory":return"";default:return a}};var J7a=function(){throw Error("Ie");};u8a.prototype.reset=function(){};var v8a=function(a){this.label=a};v8a.prototype.getGroupId=function(a){return 7!==a.getResultType()?"suggestions":"non_suggestions"};v8a.prototype.getGroupName=function(a){switch(a){case "suggestions":return this.label;case "non_suggestions":return"";default:return a}};v8a.prototype.reset=function(){};var C0=function(a){this.delegate=a};g=C0.prototype;g.search=function(a,b,c,d){this.delegate.search(a,b,c,d)};g.attach=function(){this.delegate.attach()};g.detach=function(){this.delegate.detach()};g.isShown=function(){return this.delegate.isShown()};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.dispose=function(){this.delegate.dispose()};g.getNavigatable=function(){return this.delegate.getNavigatable()};g.getRoot=function(){return this.delegate.getRoot()};var qr=function(a,b,c,d,e,f){this.delegate=a;var h=this;this.peopleStore=b;this.clientConfig=d;this.autocompleteConfig=e;this.navigationInput=f;this.navigatable=this.getNavigatable();this.previouslyActiveElement=null;this.hideListener=function(k){return isc(h,k)};this.unhideListener=function(k){return jsc(h,k)};this.onContextMenuDisposedListener=function(k){if(h.navigationInput!==document.activeElement){var q;null==(q=h.navigatable.getItem(k))||q.deactivate();h.navigatable.reset()}};this.saveActiveElement=
function(){h.previouslyActiveElement=document.activeElement};this.onDialogDisposedListener=function(k){h.navigationInput===h.previouslyActiveElement&&(k=h.navigatable.getItem(k))&&h.navigatable.goToItem(k,0);var q;null==(q=h.previouslyActiveElement)||q.focus();h.previouslyActiveElement=null};this.hide=c.getHide();this.dispatcher=this.clientConfig.injectorService.actionEventDispatcher;this.dispatcher.subscribe(1,this.hideListener);this.dispatcher.subscribe(4,this.unhideListener);this.dispatcher.subscribe(7,
this.onContextMenuDisposedListener);this.dispatcher.subscribe(8,this.saveActiveElement);this.dispatcher.subscribe(9,this.onDialogDisposedListener)};W(qr,C0);qr.prototype.search=function(a,b,c,d){this.currentSearchState={query:a,anchor:b,showSuggestions:c,listener:d};C0.prototype.search.call(this,a,b,c,d)};
qr.prototype.dispose=function(){this.dispatcher.unsubscribe(1,this.hideListener);this.dispatcher.unsubscribe(4,this.unhideListener);this.dispatcher.unsubscribe(7,this.onContextMenuDisposedListener);this.dispatcher.unsubscribe(8,this.saveActiveElement);this.dispatcher.unsubscribe(9,this.onDialogDisposedListener);C0.prototype.dispose.call(this)};
var isc=function(a,b){return Ne(function(c){switch(c.nextAddress){case 1:return Oe(c,2),c.yield(a.hide.hideResults(b),4);case 4:return c.yield(a.refreshResults(),5);case 5:$s(c,0);break;case 2:Re(c),ksc(a),Se(c)}})},jsc=function(a,b){return Ne(function(c){switch(c.nextAddress){case 1:return Oe(c,2),c.yield(a.hide.unhideResults(b),4);case 4:return c.yield(a.refreshResults(),5);case 5:$s(c,0);break;case 2:Re(c),lsc(a),Se(c)}})};
qr.prototype.refreshResults=function(){var a=this;return Ne(function(b){if(1==b.nextAddress)return a.getRoot().classList.add("isLoading"),a.peopleStore.flushCache(2),b.yield(a.peopleStore.warmUpCache(),2);a.currentSearchState?C0.prototype.search.call(a,a.currentSearchState.query,a.currentSearchState.anchor,a.currentSearchState.showSuggestions,a.currentSearchState.listener):a.getRoot().classList.remove("isLoading");Se(b)})};
var ksc=function(a){a.hideErrorDialog=y6a(a.getRoot(),a.autocompleteConfig);a.hideErrorDialog.subscribeToAction(function(){var b;null==(b=a.hideErrorDialog)||b.dispose()})},lsc=function(a){a.unhideErrorDialog=A6a(a.getRoot(),a.autocompleteConfig);a.unhideErrorDialog.subscribeToAction(function(){var b;null==(b=a.unhideErrorDialog)||b.dispose()})};var D0=function(a,b){vq.call(this,a,b)};W(D0,vq);D0.prototype.onKeyDown=function(a){if(9===a.event.keyCode){var b=this.getSpotlitItem();if(b){b=b.getRoot();var c=this.ariaParent;var d=AWb(c,"activedescendant");c=KA(c).getElementById(d);(d=b.querySelector('[id="'+(b.id+'-2ab"]')))?pE(this.ariaParent,c===d?b:d):U7a(b)&&(b=Array.from(b.querySelectorAll('[class~="TdcT2c"]')),c=c?b.indexOf(c):-1,-1!==c&&pE(this.ariaParent,b[(c+1)%b.length]))}}vq.prototype.onKeyDown.call(this,a)};
D0.prototype.next=function(a){a=vq.prototype.next.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),U7a(b)&&msc(this,b));return a};D0.prototype.prev=function(a){a=vq.prototype.prev.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),U7a(b)&&msc(this,b));return a};var msc=function(a,b){(b=b.querySelector('[class~="TdcT2c"]'))&&pE(a.ariaParent,b)};var B8a=function(a,b,c,d,e,f,h,k){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.noResultsMessage=h;this.clientConfig=k;this.attached=!1;this.resultsLoadingCompleteListeners=[];this.navigatable=new D0(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=b6a({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},{shouldReactToHomeEnd:!1});this.eventHandler=
yq(this);pq(this.root,0)};g=B8a.prototype;g.search=function(a,b,c,d){var e=this;this.resultList.reset(a);this.resultList.clear();this.root.classList.remove("noResults");this.root.classList.add("isLoading");pq(this.root,1);if(a){var f=nsc(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=nsc(this.health);h.start();this.session.suggest(function(k){e.update(k,d,h,!1)})}};
g.attach=function(){var a=this;this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(b){b.preventDefault();b.stopPropagation()}),Ri(this.clientConfig.internal,9,!1)&&Zq()&&this.eventHandler.listen(this.root,"contextmenu",function(b){var c=a.navigatable.getItem(b.target);c&&(a.navigatable.getSpotlitItem()!==c&&a.navigatable.goToItem(c,0),a.navigatable.onContextMenu(new h0(b),function(){}))}))};
g.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();pq(this.root,0)};g.isShown=function(){return!0};g.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
g.update=function(a,b,c,d){var e=a.getResults();a=a.getMetadata();this.root.classList.remove("isLoading");var f=a.getQuery();this.resultList.append(e,{query:f});e=this.resultList.getResultListItems();this.attach();var h=!1;0<e.length||this.navigatable.size()?(h=!0,this.root.classList.remove("noResults")):a.getIsLastCallback()&&(h=this.noResultsMessage.update({query:f}),this.root.classList.add("noResults"));b({count:e.length,hasContent:h});Ri(this.clientConfig.internal,7,!1)&&Zq()&&document.activeElement!==
this.navigationInput||(d&&this.config.getAutoActivateFirstSearchResult()||!d&&this.config.getAutoActivateFirstSuggestion())&&!this.navigatable.getSpotlitItem()&&(e.length?this.navigatable.goToItem(e[0],0):this.navigatable.size()&&this.navigatable.goToIndex(0,0));if(a.getIsLastCallback())for(pq(this.root,0===a.getCode()?2:3,a.getCode()),b={query:f,resultCount:e.length},d=l(this.resultsLoadingCompleteListeners),a=d.next();!a.done;a=d.next())a=a.value,a(b);else pq(this.root,4);c.stop()};
g.onKeyDown=function(a){var b=9===a.event.keyCode&&!a.event.shiftKey;if(13===a.event.keyCode||b&&this.config.getUseTabForResultSelection()){if(b=this.navigatable.getActiveItems(),b.length){b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}}else 40!==a.event.keyCode||this.navigatable.getSpotlitItem()||(b=this.resultList.getResultListItems(),b.length&&(this.navigatable.goToItem(b[0],0),a.preventDefault(),a.stopPropagation()))};
g.getNavigatable=function(){return this.navigatable};g.getRoot=function(){return this.root};var t8a=function(){var a=Iq,b='<div class="'+Lq("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Lq("yDHfq")+'"><div class="'+Lq("peoplekitComponentsAutocompleteInlineListContainer")+'">';var c=QQ('<div peoplekit-id="'+Lq("tjneg")+'"></div>');c=Iq('<div tabindex="-1" class="'+Lq("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+Lq("I8ejUe")+'">'+Mq(c)+"</div>");b=b+c+'</div><div class="'+Lq("peoplekitComponentsAutocompleteInlineCircularProgress")+'">';c='<div class="'+
Lq("peoplekitComponentsCircularprogressCircularProgress")+(" "+Lq("isActive"))+'" data-loadingmessage="'+Lq("Loading...")+'" data-active="true"><div class="'+Lq("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Lq("vyyg5")+'">'+Mq("Loading...")+'</div><div class="'+Lq("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Lq("peoplekitComponentsCircularprogressColorOne")+
" "+Lq("exportColorOne")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+Lq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressRight")+
'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div></div><div class="'+Lq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Lq("peoplekitComponentsCircularprogressColorTwo")+" "+Lq("exportColorTwo")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+
Lq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div></div><div class="'+Lq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Lq("peoplekitComponentsCircularprogressColorThree")+
" "+Lq("exportColorThree")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+Lq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressRight")+
'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div></div><div class="'+Lq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Lq("peoplekitComponentsCircularprogressColorFour")+" "+Lq("exportColorFour")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+
Lq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div><div class="'+Lq("peoplekitComponentsCircularprogressCircleClipper")+" "+Lq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Lq("peoplekitComponentsCircularprogressCircle")+" "+Lq("exportCircle")+'"></div></div></div></div></div>';c=Iq(c);return a(b+c+"</div></div>")},w8a=function(){return Iq('<div class="'+Lq("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};var y8a=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Lq("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Lq(a)+'"':"")+'><p class="'+Lq("peoplekitComponentsNoResultsMessageHeader")+'">';a=b?a+Mq(b):a+"No results";a+="</p>";if((c instanceof NQ?c.getContent():c)||(d instanceof NQ?d.getContent():d))a+='<p class="'+Lq("peoplekitComponentsNoResultsMessageExplanation")+'">'+(c?Mq(c)+(d?" ":""):""),d&&(a+=
'<a jsname="'+Lq("viORvd")+'" class="'+Lq("peoplekitComponentsNoResultsMessageLearnMoreLink")+'" target="_blank" href="'+Lq(TQ(d))+'">',a=e?a+Mq(e):a+"Learn more",a+="</a>"),a+="</p>";return Iq(a+"</div>")};var x8a=function(a,b){this.parent=a;this.config=b};x8a.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=To(y8a,a);this.parent.appendChild(this.root);return!0};var A8a=function(){};A8a.prototype.update=function(){return!1};var z8a=function(){};z8a.prototype.update=function(){return!0};var C8a=function(a,b,c,d,e){var f=this;this.root=a;this.navigationInput=b;this.inlineAutocomplete=c;this.selectionsState=d;this.config=e;this.lastShowTime=0;this.popup=l6a(this.root,{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=yq(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.hide()};this.attach()};
g=C8a.prototype;g.search=function(a,b,c,d){var e=this;this.hide();this.inlineAutocomplete.search(a,b,c,function(f){e.anchor=b;e.update(f);d(f)})};g.attach=function(){var a=this;Irc(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);this.eventHandler.listen(this.root,"mouseover",function(b){100>Date.now()-a.lastShowTime&&(b.preventDefault(),b.stopPropagation())})};g.onSelect=function(){this.hide()};
g.onKeyDown=function(a){this.isShown()&&27===a.event.keyCode&&(this.hide(),a.preventDefault(),a.stopPropagation())};g.detach=function(){this.hide()};g.isShown=function(){return this.popup.isShown()};g.dispose=function(){this.detach();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.eventHandler.removeAll();this.inlineAutocomplete.dispose();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
g.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};g.getRoot=function(){return this.root};g.update=function(a){a.hasContent&&this.show()};
g.show=function(){this.navigationInput.setAttribute("aria-expanded","true");this.lastShowTime=Date.now();var a=this.navigationInput.clientWidth;a:{var b=this.config.getDensity();switch(b){case 0:b=300;break a;case 1:b=300;break a;case 2:b=240;break a;default:throw Error("ue`"+b);}}a:{var c=this.config.getDensity();switch(c){case 0:c=420;break a;case 1:c=420;break a;case 2:c=320;break a;default:throw Error("ue`"+c);}}this.root.style.width=cR(Math.max(Math.min(c,a),b),!0);a:switch(a=this.config.getDensity(),
a){case 0:a=Number("64");break a;case 1:a=Number("52");break a;case 2:a=Number("44");break a;default:throw Error("ue`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.root.style.minHeight=a+"px";this.popup.show(this.anchor)};g.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};var s8a=function(){return Iq('<div class="'+Lq("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Lq("noeiCf")+'" style="display: none;"></div>')};var osc=function(){this.batches=new Map};osc.prototype.add=function(a,b){var c=b.sort().join("-");this.batches.has(c)||this.batches.set(c,{ids:[],features:b});this.batches.get(c).ids.push(a)};var V7a=function(a,b){this.service=a;this.resolveComponents=b};
V7a.prototype.update=function(a){var b=this;a=l([].concat(p(a.batches.values())));for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(d.features.length){c=this.service.for(d.ids);d=l(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){psc(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){psc(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var psc=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=l(a.resolveComponents(e)),h=f.next();!h.done;h=f.next())c(e,d,h.value)}};var qsc=new Set([1,3,20]),rsc=function(a){var b=this;this.idToComponent=new Map;this.updater=W7a(a,function(c){return b.resolveComponents(c)})};g=rsc.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return qsc.has(h.getType())})});a=[];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=l(c.getAllIds()),e=d.next();!e.done;e=d.next())e=e.value,a.push(e),e=String(e),this.idToComponent.has(e)||this.idToComponent.set(e,[]),this.idToComponent.get(e).push(c)}this.refresh(a)};
g.remove=function(a){a=l(a);for(var b=a.next(),c={};!b.done;c={component$jscomp$87:c.component$jscomp$87},b=a.next()){c.component$jscomp$87=b.value;b=l(c.component$jscomp$87.getAllIds());for(var d=b.next();!d.done;d=b.next()){d=String(d.value);var e=this.idToComponent.get(d);e&&this.idToComponent.set(d,e.filter(function(f){return function(h){return h!==f.component$jscomp$87}}(c)))}}};g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};
g.refresh=function(a){var b=new osc;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=l(d);for(var e=d.next();!e.done;e=d.next())b.add(c,e.value.getSupportedIntelligenceFeatures())}this.updater.update(b)};g.clear=function(){this.idToComponent.clear()};var E0=function(){};E0.prototype.append=function(){};E0.prototype.remove=function(){};E0.prototype.refresh=function(){};E0.prototype.clear=function(){};var r8a=function(a){this.peopleIntelligence=a};r8a.prototype.create=function(){return this.peopleIntelligence?new rsc(this.peopleIntelligence):new E0};var ssc=function(){this.label="";this.type=0};g=ssc.prototype;g.getAutocompleteGroupingType=function(){return this.type};g.setAutocompleteGroupingType=function(a){this.type=a};g.getAutocompleteGroupingLabel=function(){return this.label};g.setAutocompleteGroupingLabel=function(a){this.label=a};g.getAutocompleteCustomGrouping=function(){return this.customGrouping};var F0=function(){this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};F0.prototype.getAllowResultDeselection=function(){return!1};F0.prototype.getWarnForExternalSelections=function(){return!1};F0.prototype.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};F0.prototype.getResultCustomizationCallback=function(){return this.resultCustomizationCallback};var tsc=function(a){this.header="";this.showSuggestions=!1;this.autoActivateFirstSuggestion=!0;this.maxResultsBeforeScroll=7;this.moveAutocompleteAboveAnchorIfOffscreen=!0;this.entryPoint=0;this.noResultsMessage=null;this.autoActivateFirstSearchResult=!0;this.environmentConfig=a;this.grouping=new ssc;this.result=new F0;this.appearance=new Jq};g=tsc.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.header};
g.setAutocompleteHeader=function(a){this.header=a};g.getShowSuggestions=function(){return this.showSuggestions};g.setShowSuggestions=function(a){this.showSuggestions=a};g.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};
g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};g.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};g.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};g.getAutoActivateFirstSearchResult=function(){return this.autoActivateFirstSearchResult};g.setAutoActivateFirstSearchResult=function(a){this.autoActivateFirstSearchResult=a};g.setEntryPoint=function(a){this.entryPoint=a};
g.getEntryPoint=function(){return this.entryPoint};g.getNoResultsMessage=function(){return this.noResultsMessage};g.setNoResultsMessage=function(a){this.noResultsMessage=a};g.getUseTabForResultSelection=function(){return!0};g.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};
g.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};g.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};
g.getResultCustomizationCallback=function(){return this.result.getResultCustomizationCallback()};g.getDensity=function(){return this.appearance.getDensity()};g.setDensity=function(a){this.appearance.setDensity(a)};g.getTheme=function(){return this.appearance.getTheme()};g.setTheme=function(a){this.appearance.setTheme(a)};var usc=function(a){this.environmentConfig=a;this.autocomplete=new tsc(a)};g=usc.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};g.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};g.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};g.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
g.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
g.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};g.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};g.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};g.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};g.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};g.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};
g.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};g.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};g.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};g.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};
g.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};g.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};
g.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};g.getDensity=function(){return this.autocomplete.getDensity()};g.setDensity=function(a){this.autocomplete.setDensity(a)};g.getTheme=function(){return this.autocomplete.getTheme()};g.setTheme=function(a){this.autocomplete.setTheme(a)};var vsc=Object.freeze(new Map([[5,1]]));var G0=function(){this.entryPoint_=0};G0.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};G0.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};G0.prototype.serialize=function(){return[this.entryPoint_].toString()};var wsc=Object.freeze(new G0);var H0=function(){this.originator_=0};H0.prototype.setOriginator=function(a){this.originator_=a;return this};H0.prototype.getOriginator=function(){return this.originator_};var n8a=function(a,b,c){var d=this;this.reporter=a.getReporter((new G0).setPeoplekitEntryPoint(c));Irc(b,function(e,f,h){d.select(e,h)},0);Hrc(b,function(e,f,h){d.deselect(e,h)},0);xsc(b,function(e,f,h,k){d.replace(e,k)})};g=n8a.prototype;g.display=function(a){this.reporter.reportDisplay(X7a(a.getTargetList()))};g.select=function(a,b){if(!a.isPlaceholder())switch(b){case 1:case 12:case 5:this.reporter.reportSelect(jr([a]),(new H0).setOriginator(vsc.get(b)||0));break;case 6:this.reporter.reportExternalSelect(jr([a]))}};
g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(jr([a]))}};g.dismiss=function(a){this.reporter.reportDismiss(jr(a))};g.save=function(a){this.reporter.reportSave(jr(a))};g.send=function(a){this.reporter.reportSend(jr(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};var ysc=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};ysc.prototype.call=function(a){var b=this;if(!this.isBatchingInternal){var c=Date.now(),d=c-this.lastBatchTime;this.lastBatchTime=c;this.isBatchingInternal=!0;this.timerId=Mp(function(){b.isBatchingInternal=!1;a()},100<d?0:100)}};ysc.prototype.cancel=function(){Np(this.timerId);this.isBatchingInternal=!1};var I8a=function(a,b,c,d,e,f){var h=this;this.root=a;this.autocomplete=b;this.selectionsState=c;this.interactions=d;this.tracker=e;this.config=f;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new ysc;Irc(this.selectionsState,function(){zsc(h)})};g=I8a.prototype;g.search=function(a,b){this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){0<d.count&&!c&&(c=!0)})};g.isShown=function(){return this.autocomplete.isShown()};
g.report=function(a,b){b=void 0===b?[]:b;b=b.length?b:this.selectionsState.asArray();var c=this.interactions;switch(a){case 1:c.reporter.reportProceed(jr(b));break;case 2:c.dismiss(b);break;case 3:c.save(b);break;case 4:c.send(b);break;case 5:c.reporter.reportSecondaryAction(jr(b))}};g.cancel=function(){this.autocomplete.detach()};
g.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.autocomplete.dispose()};var Wmc=function(a,b){a.selectionChangedListeners.push(b)},zsc=function(a){a.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.asArray(),c=l(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};var m8a=function(a){a=a||{};a=a.classes;return Iq('<div peoplekit-id="'+Lq("nVhUhf")+'"'+(a?' class="'+Lq(a)+'"':"")+"></div>")};var I0=function(a){this.internalArray_=m(a)};W(I0,X);g=I0.prototype;g.getClientId=function(){return Vi(this,1,0)};g.setClientId=function(a){return rj(this,1,a)};g.getEntryPoint=function(){return Vi(this,5,0)};g.setEntryPoint=function(a){return rj(this,5,a)};g.getSocialClient=function(){return Fi(this,$P,2)};g.setSocialClient=function(a){return oj(this,$P,2,a)};g.setVersionName=function(a){return qj(this,3,a)};g.getBaselineCl=function(){return dj(this,4)};
g.setBaselineCl=function(a){return xj(this,4,a)};g.hasBaselineCl=function(){return cj(this,4)};g.getBaselineClOrUndefined=function(){return zt(this,4)};g.getComponentFlow=function(){return Vi(this,7,0)};g.setComponentFlow=function(a){return rj(this,7,a)};var J0=function(a){this.internalArray_=m(a)};W(J0,X);var Asc=function(a){this.internalArray_=m(a)};W(Asc,X);g=Asc.prototype;g.getLabel=function(){return Vi(this,1,0)};g.setLabel=function(a){return rj(this,1,a)};g.hasLabel=function(){return Ti(this,1)};g.getValue=function(){return dj(this,2,1)};g.setValue=function(a){return xj(this,2,a)};g.hasValue=function(){return cj(this,2)};var K0=function(a){this.internalArray_=m(a)};W(K0,X);K0.prototype.getLabel=function(){return Hi(this,1)};K0.prototype.setLabel=function(a){return qj(this,1,a)};K0.prototype.hasLabel=function(){return Ii(this,1)};K0.prototype.getCause=function(){return Hi(this,2)};var L0=function(a){this.internalArray_=m(a)};W(L0,X);g=L0.prototype;g.getLabel=function(){return Vi(this,1,0)};g.setLabel=function(a){return rj(this,1,a)};g.hasLabel=function(){return Ti(this,1)};g.setLatencyUsec=function(a){xj(this,2,a)};g.getCacheStatus=function(){return Vi(this,3,0)};g.setCacheStatus=function(a){return rj(this,3,a)};var M0=function(a){this.internalArray_=m(a)};W(M0,X);M0.prototype.getInterfaceType=function(){return Vi(this,1,0)};M0.prototype.setInterfaceType=function(a){return rj(this,1,a)};var Bsc=function(a){this.internalArray_=m(a)};W(Bsc,X);g=Bsc.prototype;g.getCount=function(){return Fi(this,Asc,3)};g.setCount=function(a){return oj(this,Asc,3,a)};g.getLatency=function(){return Fi(this,L0,4)};g.setLatency=function(a){return oj(this,L0,4,a)};g.getError=function(){return Fi(this,K0,5)};g.setError=function(a){oj(this,K0,5,a)};g.hasError=function(){return Zi(this,K0,5)};var Csc=function(a){this.internalArray_=m(a)};W(Csc,X);Csc.prototype.setElementIndex=function(a){nj(this,2,a)};Csc.repeatedFields_=[3];var N0=function(a){this.internalArray_=m(a)};W(N0,X);N0.prototype.getClientInterface=function(){return Fi(this,I0,3)};N0.prototype.setClientInterface=function(a){return oj(this,I0,3,a)};N0.prototype.getMetadata=function(){return Fi(this,J0,4)};N0.prototype.setMetadata=function(a){oj(this,J0,4,a)};var o8a=function(a,b){this.entryPoint=b;this.logContext=s$a(Tr(new Ur,"PeopleKit").setLogSource(624).setApplication(a.getSocialApplicationOrUndefined()).setEnvironment(0).setVersion("1.0").setBaselineCl(560219052).setEnableClearcut(a.getEnableClearcut()),Xq.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=o8a.prototype;g.getLogContext=function(){return this.logContext};g.createCountMetric=function(){throw Error("Wa");};
g.createStatusMetric=function(){throw Error("Wa");};g.createLatencyMetric=function(a,b){b=b.source();a=(new N0).setClientInterface((new I0).setClientId(this.clientId).setSocialClient(a.getSocialClient()).setVersionName(this.getLogContext().getVersionOrUndefined()).setBaselineCl(this.getLogContext().getBaselineClOrUndefined()).setComponentFlow(this.componentFlow).setEntryPoint(this.entryPoint));return oj(a,Bsc,2,b)};g.createErrorMetric=function(){throw Error("Wa");};var Dsc=function(a,b){this.count=0;this.metrics=a;this.label="total";a=new Bsc;a=rj(a,1,4);var c=new M0;b=rj(c,2,2).setInterfaceType(b);this.dataEntry=oj(a,M0,2,b).setLatency((new L0).setLabel(8));this.state=new lQ(this.dataEntry)};Dsc.prototype.start=function(){this.count=0;this.metrics.start(this.state,this.label)};
Dsc.prototype.stop=function(a){a=void 0===a?function(){}:a;this.metrics.stop(this.state,this.label);var b=mQ(this.state,this.label),c;null==(c=this.dataEntry.getLatency())||c.setLatencyUsec(b);a(b);var d;null!=(d=Fi(this.dataEntry,M0,2))&&nj(d,3,this.count);this.metrics.latency(this.state);++this.count};var q8a=function(a,b){this.metrics=a;this.userInterfaceType=b};var p8a=function(a){this.trackers=a},nsc=function(a){a=a.trackers;return new Dsc(a.metrics,a.userInterfaceType)};var O0=function(){this.itemsByPriority=[]};O0.prototype.add=function(a,b){this.itemsByPriority[b]||(this.itemsByPriority[b]=new Set);this.itemsByPriority[b].add(a)};O0.prototype.remove=function(a){for(var b=l(this.itemsByPriority),c=b.next();!c.done;c=b.next())(c=c.value)&&c.delete(a)};O0.prototype.asArray=function(){return this.itemsByPriority.flatMap(function(a){return[].concat(p(a))})};var or=function(){this.selectionCallbacks=new O0;this.deselectionCallbacks=new O0;this.selectionReplacedCallbacks=new O0;this.selectionAttemptedCallbacks=new O0;this.selectionsState=[]};
or.prototype.select=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?0:c;var d=String(a.id());if(this.selectionsState.find(function(e){return d===String(e.id())}))return kr(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;0<=b?(this.selectionsState.splice(b,0,a),kr(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),kr(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
or.prototype.deselect=function(a,b){b=void 0===b?0:b;var c=String(a.id()),d=this.selectionsState.findIndex(function(e){return c===String(e.id())});0>d||(this.selectionsState.splice(d,1),kr(a,d,b,this.deselectionCallbacks.asArray()))};or.prototype.toggle=function(a,b){b=void 0===b?0:b;var c=String(a.id());if(0>this.selectionsState.findIndex(function(d){return c===String(d.id())}))return this.select(a,-1,b),!0;this.deselect(a,b);return!1};
var Irc=function(a,b,c){a.selectionCallbacks.add(b,void 0===c?2:c)},Hrc=function(a,b,c){a.deselectionCallbacks.add(b,void 0===c?2:c)},xsc=function(a,b){a.selectionReplacedCallbacks.add(b,0)};g=or.prototype;g.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};g.at=function(a){return this.selectionsState[a]};
g.replace=function(a,b,c){c=void 0===c?0:c;var d=String(a),e=this.selectionsState.findIndex(function(f){return d===String(f.id())});if(0>e||!a.equals(b.id())&&this.get(b.id()))return!1;this.selectionsState[e]=b;Y7a(b,e,a,c,this.selectionReplacedCallbacks.asArray());return!0};g.pop=function(a){a=void 0===a?0:a;var b=this.selectionsState.pop();if(b)return kr(b,this.selectionsState.length,a,this.deselectionCallbacks.asArray()),b};
g.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};g.asArray=function(){return this.selectionsState.slice()};g.size=function(){return this.selectionsState.length};g.clear=function(){for(;0<this.selectionsState.length;)this.deselect(this.selectionsState[0])};for(var Esc={CLICK:{string:"click",xid:"cOuCgd"},GENERIC_CLICK:{string:"generic_click",xid:"szJgjc"},IMPRESSION:{string:"impression",xid:"xr6bB"},HOVER:{string:"hover",xid:"ZmdkE"},KEYPRESS:{string:"keypress",xid:"Kr2w4b"},KEYBOARD_ENTER:{string:"keyboard_enter",xid:"SYhH9d"},VIS:{string:"vis",xid:"HkgBsf"}},Z7a=c8a(Esc),Fsc=new Map,Gsc=l(Object.keys(Esc)),Hsc=Gsc.next();!Hsc.done;Hsc=Gsc.next()){var Isc=Hsc.value;Fsc.set(Esc[Isc].xid,Esc[Isc].string)}
var a8a=c8a({TRACK:{string:"track",xid:"u014N"},INDEX:{string:"index",xid:"cQYSPc"},MUTABLE:{string:"mutable",xid:"dYFj7e"},COMPONENT_ID:{string:"cid",xid:"cOuyq"},TEST_CODE:{string:"tc",xid:"DM6Eze"}});var P0=function(a,b){this.visualElementID_=a;this.xidTagComponents_=b||!1;this.tracks_=new Set;this.index_=null;this.testCodes_=[];this.componentID_=void 0;this.retain_cached_impression_=this.mutable_=!1;this.attribute_=null;this.metadataHandlers_=[]},Q0=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):0!=a.tracks_.size};g=P0.prototype;g.getIndex=function(){return this.index_};g.setComponentID=function(a){this.componentID_=a};g.getComponentID=function(){return this.componentID_};
g.isMutable=function(){return this.mutable_};g.setAttribute=function(a){this.attribute_=a;return this};g.getAttribute=function(){return this.attribute_};var Jsc=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};P0.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?$7a(a):a};P0.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?b8a(a):a};var Ksc=function(a){P0.call(this,a)};W(Ksc,P0);var R0=function(a){this.internalArray_=m(a)};W(R0,X);var Lsc=function(a){if(null!=a)return uc(a),{timeUsec:rc(Wm(a,1)),serverIp:rc(bba(Mr(a,2))),processId:rc(bba(Mr(a,3)))}},Msc=[0,EFb,HFb,HFb];var S0=function(a){this.internalArray_=m(a)};W(S0,X);S0.prototype.getBase=function(){return Fi(this,R0,1)};S0.prototype.setBase=function(a){return oj(this,R0,1,a)};var Nsc=function(a){if(null!=a)return uc(a),{base:Lsc(a.getBase()),clientCounter:rc(Wm(a,2))}},Osc=[0,JFb,Msc,EFb];var T0=function(a){this.internalArray_=m(a)};W(T0,X);T0.prototype.getBase=function(){return vt(this,1)};T0.prototype.setBase=function(a){return dc(this,1,a,tb(void 0),ji)};T0.prototype.getOffset=function(){return hi(this,2,0)};T0.prototype.setOffset=function(a){nj(this,2,a)};T0.repeatedFields_=[1];var Psc=[0,FFb,Et];var U0=function(a){this.internalArray_=m(a)};W(U0,X);U0.prototype.setVeIndex=function(a){nj(this,1,a)};U0.prototype.setElementIndex=function(a){nj(this,5,a)};U0.prototype.getResultIndex=function(){return hi(this,6,-1)};U0.prototype.setResultIndex=function(a){nj(this,6,a)};
var Qsc=[0,Et,Et,Et,3,Et,Et,Et,Et,IFb,Et,GFb,JFb,Osc,Et,JFb,Psc],Rsc=function(a){return function(b){var c=new tFb;bca(b.internalArray_,c,mc(a));nc(c,c.encoder_.end());b=new Uint8Array(c.totalLength_);for(var d=c.blocks_,e=d.length,f=0,h=0;h<e;h++){var k=d[h];b.set(k,f);f+=k.length}c.blocks_=[b];return b}}(Qsc);var V0=function(a,b){this.el_=a;this.veTag_=b;this.loggedImpression_=!1;this.rootImpressionEventID=this.impressionEventID=void 0;this.neverShown=this.hidden=!0;this.serverVed_=this.parent_=this.traversalOrder_=void 0};V0.prototype.getTag=function(){return this.veTag_};V0.prototype.getElement=function(){return this.el_};var Tsc=function(a){var b=Ssc++;a.traversalOrder_=b};V0.prototype.setParent=function(a){this.parent_=a};V0.prototype.getParent=function(){return this.parent_};
var Usc=function(a){if(a.impressionEventID){var b=new U0;b.setVeIndex(a.traversalOrder_);nj(b,2,a.getTag().visualElementID_);oj(b,S0,13,a.impressionEventID);a=Rsc(b);return"0"+La(a,4)}};var D8a=function(a){this.internalArray_=m(a)};W(D8a,X);g=D8a.prototype;g.getClientId=function(){return Vi(this,1,0)};g.setClientId=function(a){return rj(this,1,a)};g.getEntryPoint=function(){return Vi(this,2,0)};g.setEntryPoint=function(a){return rj(this,2,a)};g.getApplication=function(){return Vi(this,3,0)};g.setApplication=function(a){return rj(this,3,a)};g.getApplicationOrUndefined=function(){return Xr(this,3)};g.setVersionName=function(a){return qj(this,4,a)};
g.getBaselineCl=function(){return dj(this,5)};g.setBaselineCl=function(a){return xj(this,5,a)};g.hasBaselineCl=function(){return cj(this,5)};g.getBaselineClOrUndefined=function(){return zt(this,5)};g.getMetadata=function(){return Fi(this,J0,6)};g.setMetadata=function(a){oj(this,J0,6,a)};var E8a=function(a){this.context_=a};E8a.prototype.createNewTag=function(a){return new Ksc(a)};E8a.prototype.addEventMetadata=function(a){WQb(a,this.context_.serialize())};var Vsc=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};var Wsc=function(a){this.userAction=a};var W0=function(){};W0.prototype.impressionEvent=function(){return[]};W0.prototype.interactionEvent=function(){return[]};W0.prototype.visibilityEvent=function(){return[]};var Y0=function(){if(!X0){var a=X0=new R0,b=1E3*Date.now();xj(a,1,b);rj(X0,2,aba());rj(X0,3,aba())}a=(new S0).setBase(X0);b=++Xsc;return xj(a,2,b)},Xsc=0,X0=void 0;var Z0=function(a){this.internalArray_=m(a,1)};W(Z0,X);var a1=function(a){this.internalArray_=m(a)};W(a1,X);var b1=function(a){this.internalArray_=m(a)};W(b1,X);b1.prototype.getEvent=function(){return Fl(this,R0,1,Ysc)};b1.prototype.setVed=function(a){return Jl(this,5,c1,a)};var Ysc=[1,3,4],c1=[2,5];var d1=function(a){this.internalArray_=m(a,7)};W(d1,X);g=d1.prototype;g.getTarget=function(){return Fi(this,b1,1)};g.setTarget=function(a){return oj(this,b1,1,a)};g.getType=function(){return Vi(this,2,0)};g.setType=function(a){return rj(this,2,a)};g.hasType=function(){return Ti(this,2)};var e1=function(a){this.internalArray_=m(a)};W(e1,X);e1.repeatedFields_=[1];var f1=function(a){this.internalArray_=m(a)};W(f1,X);f1.prototype.getOffset=function(){return hi(this,2,0)};f1.prototype.setOffset=function(a){nj(this,2,a)};f1.repeatedFields_=[1];var Zsc=function(a){this.internalArray_=m(a)};W(Zsc,X);Zsc.prototype.getEventId=function(){return Fl(this,R0,1,$sc)};Zsc.prototype.setEventId=function(a){Ll(this,1,$sc,a)};var $sc=[1,2],atc=[3,6];var btc=function(a){this.internalArray_=m(a)};W(btc,X);var g1=function(a){this.internalArray_=m(a,233)};W(g1,X);g1.prototype.setUiType=function(a){return nj(this,1,a)};g1.prototype.setElementIndex=function(a){nj(this,3,a)};var ctc=function(a,b){ac(a,4,b,tb)};g1.prototype.getResultIndex=function(){return tt(this,7)};g1.prototype.setResultIndex=function(a){nj(this,7,a)};g1.prototype.setVisible=function(a){return rj(this,6,a)};var dtc={};g1.repeatedFields_=[4];
var etc=function(a){if(null!=a){uc(a);var b=rc(tt(a,1)),c=hi(a,3,-1),d=rc(ji(a,4)),e=rc(Ej(a,5)),f=rc(tt(a,7));var h=Fi(a,Zsc,11);if(null!=h){uc(h);var k=Lsc(h.getEventId());var q=Nsc(Fl(h,S0,2,$sc)),u=hi(h,Dl(h,atc,3),-1);h=Fl(h,f1,6,atc);null!=h?(uc(h),h={identifierBaseList:rc(ji(h,1)),offset:hi(h,2,0)}):h=void 0;k={eventId:k,clientEventId:q,featureIndex:u,featureOffsetIdentifier:h}}else k=void 0;q=Vi(a,6,0);u=rc(Ej(a,17));h=Ri(a,130,!1);var x=hi(a,149,-1);var y=Fi(a,btc,232);if(null!=y){uc(y);
y=Fi(y,b1,1);if(null!=y){uc(y);var E=Lsc(y.getEvent()),H=Nsc(Fl(y,S0,3,Ysc)),J=rc(aq(y,4,Ysc));var O=Fl(y,U0,2,c1);if(null!=O){uc(O);var R=hi(O,1,-1),U=hi(O,11,-1);var Z=Fi(O,T0,15);null!=Z?(uc(Z),Z={baseList:rc(ji(Z,1)),offset:hi(Z,2,0)}):Z=void 0;O={veIndex:R,nonArchivalVeIndex:U,veOffsetIdentifier:Z,veType:rc(tt(O,2)),odelaySeLinker:rc(tt(O,8)),elementIndex:hi(O,5,-1),resultIndex:hi(O,6,-1),pageStart:rc(tt(O,7)),resultGroupElementIndex:hi(O,9,-1),doNotLogUrl:Ri(O,10,!1),resultFprint:rc(ZVa(O,12)),
veEventId:Nsc(Fi(O,S0,13)),youtubeVeCounter:hi(O,14,-1)}}else O=void 0;y={event:E,clientEvent:H,ei:J,rootVe:O,ved:rc(aq(y,5,c1))}}else y=void 0;y={reference:y}}else y=void 0;b={uiType:b,elementIndex:c,containsElementsList:d,targetUrl:e,resultIndex:f,featureTreeRef:k,visible:q,language:u,doNotLogUrls:h,adImpressionIndex:x,dataElement:y};kca(a,b,dtc);return b}};var h1=function(a){this.internalArray_=m(a,17)};W(h1,X);g=h1.prototype;g.setVed=function(a){return qj(this,11,a)};g.setUiType=function(a){return nj(this,1,a)};g.setVeIndex=function(a){nj(this,2,a)};g.getResultIndex=function(){return hi(this,7,-1)};g.setResultIndex=function(a){nj(this,7,a)};g.setElementIndex=function(a){nj(this,8,a)};var ftc=function(a,b){om(a,14,b)};h1.repeatedFields_=[14];var i1=function(a){this.internalArray_=m(a)};W(i1,X);i1.prototype.getEventId=function(){return Fi(this,S0,1)};i1.prototype.setEventId=function(a){oj(this,S0,1,a)};i1.repeatedFields_=[2];var gtc=function(){};gtc.prototype.createNewTag=function(a){return new P0(a)};gtc.prototype.addEventMetadata=function(){};var j1=function(a){this.internalArray_=m(a)};W(j1,X);var htc=function(a,b){om(a,1,b)};j1.prototype.addPath=function(a,b){return Wp(this,1,g1,a,b)};j1.prototype.setPath=function(a,b){return rt(this,1,g1,a,b)};j1.repeatedFields_=[1];var itc=pc(100,{coreGraftMetadata:0},j1,function(a){if(null!=a)return uc(a),{pathList:qc(Ji(a,g1,1),etc)}});var k1=function(a){this.internalArray_=m(a)};W(k1,X);var jtc=function(a){var b=Date.now().toString();wj(a,1,b)};var l1=function(a){this.internalArray_=m(a)};W(l1,X);l1.prototype.getTimestamp=function(){return Fi(this,k1,1)};l1.prototype.setTimestamp=function(a){return oj(this,k1,1,a)};l1.prototype.hasTimestamp=function(){return Zi(this,k1,1)};var ktc=function(a){if(null!=a)return uc(a),a=a.getTimestamp(),null!=a?(uc(a),a={clientWallClockTimestamp:rc(Zp(a,1))}):a=void 0,{timestamp:a}};var ltc=pc(126,{coreInteractionMetadata:0},l1,ktc);var mtc=pc(618,{coreVeMetadata:0},l1,ktc);dtc[618]=mtc;var ntc=function(a){this.internalArray_=m(a)};W(ntc,X);var otc=pc(273,{attentionData:0},ntc,function(a){if(null!=a)return uc(a),{isTracked:rc(Er(a,1))}});dtc[273]=otc;var rr=function(a,b,c,d){this.enableAncestryLogging_=void 0===a?!0:a;this.enableAncestryLoggingForGrafts_=void 0===c?!1:c;this.enableBatching_=void 0===b?!1:b;this.enableAttentionLogging_=void 0===d?!1:d};W(rr,W0);rr.prototype.impressionEvent=function(a,b){for(var c=[],d=[],e=0;e<a.length;++e)a[e].keys().next().value.impressionEventID?d.push(a[e]):c.push(a[e]);a=ptc(this,c,b);b=this.enableBatching_?qtc(this,d,b):rtc(this,d,b);return a.concat(b)};
rr.prototype.interactionEvent=function(a,b){var c=new iB,d=new i1,e=Y0();d.setEventId(e);e=new h1;a.serverVed_?e.setVed(a.serverVed_):e.setUiType(a.getTag().visualElementID_).setVeIndex(a.traversalOrder_);ftc(nj(e,3,b.userAction),this.getAncestry_(a));this.setTimestamp(e);b=new a1;oj(b,S0,1,a.impressionEventID);oj(d,S0,3,a.impressionEventID);oj(d,h1,4,e);oj(d,a1,9,b);jB(c,d.serialize());return[c]};
rr.prototype.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],h=f.getElement(),k=f.rootImpressionEventID,q=d.get(k);q=q?q:[];var u=new j1;this.enableAncestryLoggingForGrafts_&&htc(u,this.getAncestry_(f));if(f.neverShown||Q0(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new d1;h.setType(1);var x=stc(f);h.setTarget(x);x=h;var y=Date.now();xj(x,4,y);this.enableAncestryLoggingForGrafts_&&Fr(h,itc,u);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||h||
(h=new d1,h.setType(2),x=stc(f),h.setTarget(x),x=h,y=Date.now(),xj(x,4,y),this.enableAncestryLoggingForGrafts_&&Fr(h,itc,u),q.push(h),f.hidden=!0);d.set(k,q)}a=l(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new e1,om(e,1,f),f=new i1,k=Y0(),q=new a1,oj(q,S0,1,b),f.setEventId(k),oj(f,S0,3,b),oj(f,e1,7,e),oj(f,a1,9,q),b=new iB,jB(b,f.serialize()),c.push(b));return c};
rr.prototype.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return"true"==a.getAttribute("ve-visible");if(a instanceof HTMLElement&&(0>=a.offsetWidth||0>=a.offsetHeight))return!1;a=a.getBoundingClientRect();return(b=hac(b,new aR(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};
var ptc=function(a,b,c){for(var d=[],e={},f=b.length-1;0<=f;e={impressionEventID:e.impressionEventID,clientVeProto$jscomp$7:e.clientVeProto$jscomp$7,testCodes$jscomp$1:e.testCodes$jscomp$1},f--){e.clientVeProto$jscomp$7=new i1;e.testCodes$jscomp$1=[];e.impressionEventID=Y0();e.clientVeProto$jscomp$7.setEventId(e.impressionEventID);var h=new a1;oj(h,S0,1,e.impressionEventID);oj(e.clientVeProto$jscomp$7,a1,9,h);if(h=TQb(window.location.href,"ved"))h=(new h1).setVed(h),oj(e.clientVeProto$jscomp$7,h1,
4,h);b[f].forEach(function(k){return function(q,u){u.impressionEventID=k.impressionEventID;u.rootImpressionEventID=k.impressionEventID;var x=this.getVisualElementLiteProto_(u);q.length&&ctc(x,q);q=u.getElement();this.isVisible_(q,c)?(u.neverShown=!1,u.hidden=!1):x.setVisible(1);this.enableAttentionLogging_&&Q0(u.getTag(),"hover")&&void 0!==u.traversalOrder_&&(q.setAttribute("data-hveid",Number(u.traversalOrder_)),0===Ji(k.clientVeProto$jscomp$7,g1,2).length&&Usc(u)&&(q.setAttribute("decode-data-ved",
"1"),q.setAttribute("data-ved",Usc(u)+"")));this.setTimestamp(x);Wp(k.clientVeProto$jscomp$7,2,g1,x);k.testCodes$jscomp$1=k.testCodes$jscomp$1.concat(u.getTag().testCodes_)}}(e),a);h=new iB;jB(h,e.clientVeProto$jscomp$7.serialize());ac(h,20,e.testCodes$jscomp$1,tb);d.push(h)}return d},qtc=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;0<=f;f--){var h=b[f],k=h.keys().next().value.rootImpressionEventID,q=e.get(k)||[];q.push(h);e.set(k,q)}e.forEach(function(u,x){var y=0,E=[],H=new i1,J=[],O=Y0();
H.setEventId(O);oj(H,S0,3,x);var R=new a1;oj(R,S0,1,x);oj(H,a1,9,R);for(R=0;R<u.length;R++)for(var U=u[R],Z=U.keys(),na=Z.next().value,oa=U.get(na),wa={},Da=0;Da<oa.length;wa={startingOffset:wa.startingOffset,cloneTreeRootIndex:wa.cloneTreeRootIndex},++Da){var Ga=na;wa.cloneTreeRootIndex=0;wa.startingOffset=oa[Da];var Ub=U.size;Da!=oa.length-1&&(Ub=oa[Da+1]);for(var Vb=wa.startingOffset;Vb<Ub;++Vb){var $a=Z.next().value;Vb==wa.startingOffset&&(Ga=$a,wa.cloneTreeRootIndex=y);$a.impressionEventID=O;
$a.rootImpressionEventID=x;$a.traversalOrder_=y;var ja=U.get($a),ya=this.getVisualElementLiteProto_($a);ja.length&&ctc(ya,ja.map(function(Ha){return function(ab){return ab-Ha.startingOffset+Ha.cloneTreeRootIndex}}(wa)));ja=$a.getElement();this.isVisible_(ja,c)?($a.neverShown=!1,$a.hidden=!1):ya.setVisible(1);this.setTimestamp(ya);Wp(H,2,g1,ya);J=J.concat($a.getTag().testCodes_);y++}Ub=new d1;Ub.setType(3);Vb=stc(na);Ub.setTarget(Vb);Vb=new b1;$a=new U0;ya=new j1;$a.setVeIndex(Ga.traversalOrder_);
nj($a,2,Ga.getTag().visualElementID_);Ll(Vb,2,c1,$a);oj(Ub,b1,3,Vb);this.enableAncestryLoggingForGrafts_&&(htc(ya,this.getAncestry_(Ga)),Fr(Ub,itc,ya));E.push(Ub)}E.length&&(u=new e1,om(u,1,E),oj(H,e1,7,u));E=new iB;jB(E,H.serialize());ac(E,20,J,tb);d.push(E)},a);return d},rtc=function(a,b,c){for(var d=[],e=b.length-1;0<=e;e--)for(var f=b[e],h=f.keys(),k=h.next().value,q=f.get(k),u={},x=0;x<q.length;u={startingOffset$jscomp$1:u.startingOffset$jscomp$1},++x){u.startingOffset$jscomp$1=q[x];var y=f.size;
x!=q.length-1&&(y=q[x+1]);var E=new i1,H=[],J=Y0(),O=new a1;oj(O,S0,1,k.impressionEventID);E.setEventId(J);oj(E,S0,3,k.impressionEventID);rj(E,5,3);oj(E,a1,9,O);O=new h1;k.serverVed_?O.setVed(k.serverVed_):O.setUiType(k.getTag().visualElementID_).setVeIndex(k.traversalOrder_);ftc(O,a.getAncestry_(k));oj(E,h1,4,O);for(O=u.startingOffset$jscomp$1;O<y;++O){var R=h.next().value;R.impressionEventID=J;R.rootImpressionEventID=k.rootImpressionEventID;void 0!=R.traversalOrder_&&(R.traversalOrder_-=u.startingOffset$jscomp$1);
var U=f.get(R),Z=a.getVisualElementLiteProto_(R);U.length&&ctc(Z,U.map(function(na){return function(oa){return oa-na.startingOffset$jscomp$1}}(u)));U=R.getElement();a.isVisible_(U,c)?(R.neverShown=!1,R.hidden=!1):Z.setVisible(1);a.enableAttentionLogging_&&Q0(R.getTag(),"hover")&&void 0!==R.traversalOrder_&&(U.setAttribute("data-hveid",Number(R.traversalOrder_)),0===Ji(E,g1,2).length&&Usc(R)&&(U.setAttribute("decode-data-ved","1"),U.setAttribute("data-ved",Usc(R)+"")));a.setTimestamp(Z);Wp(E,2,g1,
Z);H=H.concat(R.getTag().testCodes_)}y=new iB;jB(y,E.serialize());ac(y,20,H,tb);d.push(y)}return d};rr.prototype.getAncestry_=function(a){if(!this.enableAncestryLogging_)return[];for(var b=[],c=new Set;a&&!c.has(a);){var d=this.getVisualElementLiteProto_(a);b.unshift(d);c.add(a);a=a.getParent()}return b};
rr.prototype.getVisualElementLiteProto_=function(a){var b=(new g1).setUiType(a.getTag().visualElementID_);null!=a.getTag().getIndex()&&b.setElementIndex(a.getTag().getIndex());Jsc(a.getTag(),b);this.enableAttentionLogging_&&Q0(a.getTag(),"hover")&&(a=new ntc,mj(a,1,!0),Fr(b,otc,a));return b};var stc=function(a){var b=new b1;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new U0;Ll(b,3,Ysc,a.impressionEventID);c.setVeIndex(a.traversalOrder_);nj(c,2,a.getTag().visualElementID_);Ll(b,2,c1,c)}return b};
rr.prototype.setTimestamp=function(a){if(a instanceof h1&&(!Fi(a,Z0,15)||!Fi(a,Z0,15).getExtension(ltc))){var b=new l1,c=new k1,d=Fi(a,Z0,15);d||(d=new Z0);jtc(c);b.setTimestamp(c);Fr(d,ltc,b);oj(a,Z0,15,d)}a instanceof g1&&(b=new l1,c=new k1,jtc(c),b.setTimestamp(c),Fr(a,mtc,b))};var ttc=1;(function(){for(var a=["ms","moz","webkit","o"],b=0;b<a.length&&!window.requestAnimationFrame;++b)window.requestAnimationFrame=window[a[b]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[a[b]+"CancelAnimationFrame"]||window[a[b]+"CancelRequestAnimationFrame"];if(!window.requestAnimationFrame){var c=0;window.requestAnimationFrame=function(d){var e=(new Date).getTime(),f=Math.max(0,16-(e-c));c=e+f;return window.setTimeout(function(){d(e+f)},f)};window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(d){clearTimeout(d)})}})();var utc=function(){},vtc=[[],[]],wtc=0,m1=new Set,xtc=null,ytc=0,ztc=0,Atc=0,n1=0,Btc=0,Ctc=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.window_=window;this.context_=a;this.state_ctor_=utc};g=Ctc.prototype;g.measure=function(a){this.measure_=a;return this};g.mutate=function(a){this.mutate_=a;return this};g.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
g.window=function(a){this.window_=a;return this};g.build=function(){return Dtc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,window:this.window_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var Dtc=function(a,b){var c=Btc++,d=Math.max(a.measure?a.measure.length:0,a.mutate?a.mutate.length:0),e={id:c,measureFn:a.measure,mutateFn:a.mutate,context:b,args:[]},f=e;return function(){var h=0!==f.phase;h&&(f=Object.assign({phase:0},e));b||(f.context=this);f.args=Array.prototype.slice.call(arguments);d>arguments.length&&f.args.push(new a.stateCtor);h&&(h=wtc,!a.runInCurrentFrameIfPossible||0==n1||a.measure&&1!=n1||(h=(h+1)%2),vtc[h].push(f));return Etc(a.window)}},Ftc=function(a,b){var c={};n1=
1;for(var d=0;d<a.length;++d){var e=a[d];e.args[e.args.length-1]&&(e.args[e.args.length-1].now=b);if(e.measureFn){e.phase=1;try{e.measureFn.apply(e.context,e.args)}catch(f){c[d]=!0,ea(f)}}}n1=2;for(d=0;d<a.length;++d)if(e=a[d],e.args[e.args.length-1]&&(e.args[e.args.length-1].now=b),!c[d]&&e.mutateFn){e.phase=2;try{e.mutateFn.apply(e.context,e.args)}catch(f){ea(f)}}0<ytc&&1<b&&(a=b-ytc,500>a&&(ttc++,100<a&&ztc++,Atc<a&&(Atc=a)));ytc=m1.size&&1<b?b:0},Etc=function(a){if(!m1.has(a)){m1.size||(xtc=new drc);
m1.add(a);var b=xtc.resolve;a.requestAnimationFrame(function(c){m1.clear();var d=vtc[wtc];wtc=(wtc+1)%2;try{Ftc(d,c)}finally{n1=0,d.length=0}b()})}return xtc.promise};var Gtc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},o1=function(a,b){var c=b.LSWHIf||null;if(c&&(c.getTag().getComponentID()||a.componentID_)&&c.getTag().getComponentID()!=a.componentID_)return null;var d;!(d=c&&!c.getTag().isMutable())&&(d=c&&c.getTag().isMutable())&&(d=b.getAttribute("jslog"),d=!(!d||Oi(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=Htc(a,d);if(!d||(d.getComponentID()||a.componentID_)&&
d.getComponentID()!=a.componentID_)return null;a=new V0(b,d);c&&c.getTag().retain_cached_impression_&&c.loggedImpression_&&(a.loggedImpression_=!0);if(c=a.getElement().getAttribute("data-ved")){a.serverVed_=c;if(!c||"0"!=c.charAt(0)&&"2"!=c.charAt(0))var e=null;else{c=c.substring(1);try{b:{if(kFb.length){var f=kFb.pop();f.setOptions();f.decoder_.init(c,void 0,void 0,void 0);var h=f}else h=new jFb(c);try{var k=new U0,q=k.internalArray_;Yba(Qsc)(q,h);Ib&&delete q[Ib];var u=k;break b}finally{h.free()}u=
void 0}e=Fi(u,S0,13)}catch(x){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},Htc=function(a,b){if(Oi(b))return null;var c=b.split(";"),d=Number(c[0].trim());if(isNaN(d))return null;d=a.tagPopulator_.createNewTag(d);for(var e=1;e<c.length;e++){var f=c[e].trim();if(!Oi(f)){var h=JGb(f);if(2>h.length)return null;f=h[0].trim();h=h[1].trim();if(Oi(f)||Oi(h))return null;switch(f){case a.maybeXidPartLabel_("track"):f=h.split(",");for(h=0;h<f.length;++h){var k=f[h].trim();
if(a.expectXidTagComponents_){if(!d.xidTagComponents_)throw Error("Le");if(!Fsc.has(k))throw Error("Me`"+k);d.tracks_.add(k)}else d.tracks_.add(d.maybeXidEventLabel_(k))}break;case a.maybeXidPartLabel_("index"):d.index_=Number(h);break;case a.maybeXidPartLabel_("tc"):f=h.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(h);break;case a.maybeXidPartLabel_("mutable"):"true"==h?d.mutable_=!0:"rci"==h&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};
Gtc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?b8a(a):a};Gtc.prototype.setComponentID=function(a){this.componentID_=a};Gtc.prototype.getComponentID=function(){return this.componentID_};var Itc=function(a,b){this.visualElementProvider_=a;this.traverseShadowDom_=void 0===b?!1:b},Ktc=function(a,b){return Jtc(a,b).filter(function(c){return null!=o1(this.visualElementProvider_,c)},a)},Ltc=function(a,b){var c=a.visualElementProvider_;a=[];for(var d=void 0,e={},f=0;f<b.length;e={parent$jscomp$184:e.parent$jscomp$184},++f){var h=o1(c,b[f]);void 0==h.traversalOrder_&&void 0==h.serverVed_&&(e.parent$jscomp$184=void 0,f8a(b[f],function(k){return function(q){q=o1(c,q);return null!=q?(k.parent$jscomp$184=
q,!0):!1}}(e),!1),e.parent$jscomp$184?d&&d.has(e.parent$jscomp$184)||(d=new Map,a.unshift(d),d.set(e.parent$jscomp$184,[]),Ssc=1):(d=new Map,a.unshift(d),Ssc=0),Tsc(h),h.setParent(e.parent$jscomp$184),d.set(h,[]),e.parent$jscomp$184&&d.get(e.parent$jscomp$184).push(h.traversalOrder_))}return a},Mtc=function(a,b){var c=a.visualElementProvider_;return b.map(function(d){return o1(c,d)})},Jtc=function(a,b){if(a.traverseShadowDom_){var c=[];a=[];for(c.push.apply(c,b.querySelectorAll("*"));0<c.length;){var d=
c.shift();d.getAttribute("jslog")&&a.push(d);d.shadowRoot&&c.unshift.apply(c,d.shadowRoot.querySelectorAll("*"))}}else a=[].slice.call(b.querySelectorAll("[jslog]"));a.unshift(b);return a},Ssc=0;var Ntc=function(a,b){AA.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};W(Ntc,AA);var Otc=function(a){Po.call(this);this.domHelper_=a||So();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Qo(this.domHelper_.document_,this.eventType_,dt(this.handleChange_,this))};ft(Otc,Po);g=Otc.prototype;g.getBrowserEventType_=No(function(){var a=!!this.getHiddenPropertyName_(),b="hidden"!=this.getHiddenPropertyName_();if(a){var c;b?c=(((jt?"Webkit":it?"Moz":rq?"ms":null)||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});
g.getHiddenPropertyName_=No(function(){return gac("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=No(function(){return gac("visibilityState",this.domHelper_.document_)});g.handleChange_=function(){var a=this.getHiddenPropertyName_()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new Ntc(!!this.domHelper_.document_[this.getHiddenPropertyName_()],a);this.dispatchEvent(a)};g.disposeInternal=function(){HA(this.eventKey_);Otc.superClass_.disposeInternal.call(this)};var p1=function(a,b,c,d,e,f,h){var k=this,q=void 0===d?{}:d,u=void 0===q.backgroundJobDeferrer?void 0:q.backgroundJobDeferrer;d=void 0===q.expectXidTagComponents?!1:q.expectXidTagComponents;q=void 0===q.traverseShadowDom?!1:q.traverseShadowDom;xq.call(this);this.eventBuilder_=a;this.expectXidTagComponents_=d;this.metadataHandler_=b||new gtc;this.visualElementProvider_=new Gtc(this.metadataHandler_,this.expectXidTagComponents_);this.transport_=c;this.eventToActionMap_={click:3};this.eventToTracksLabelMap_=
{click:this.maybeXidEventLabel_("generic_click")};this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.pageVisibilityMonitor_=new Otc;this.logImpressionsTask_=(new Ctc(this)).measure(u?function(){return u().then(k.handleImpressions_.bind(k))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();this.logImpressionsThrottle_=new nkc(this.logImpressionsTask_,500,this);this.traverser_=h||new Itc(this.visualElementProvider_,q);this.listeners_=[];this.impressionListeners_=
[];this.eventBuilder_ instanceof W0&&(this.eventHandler_=this.eventBuilder_);this.zwiebackId_=e;this.windowProvider_=f};ft(p1,xq);p1.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};p1.prototype.logImpressions=function(){this.domHelper_&&this.logImpressionsThrottle_.fire()};
var Qtc=function(a,b,c,d){var e=Ptc(d),f=a.getIndex(c);var h=new Csc;h=rj(h,4,b);h=nj(h,1,c.getTag().visualElementID_);e=ac(h,3,e,tb);null!=f&&e.setElementIndex(f);f=new Vsc;f.ve_metadata=a.getMetadata(c,d);f.global_metadata=a.invariantData_;f.client_info=a.appInfo_;c=WQb(new iB,e.serialize());c=ac(c,20,f.testCodes,tb);a.transport_&&oB(a.transport_,c);if(null!=b)for(b=new Wsc(b),c=0;c<a.listeners_.length;c++)a.listeners_[c](b)};p1.prototype.log=function(a){this.transport_&&oB(this.transport_,a)};
var Rtc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};p1.prototype.getIndex=function(a){return a.getTag().getIndex()};var Ptc=function(a){return a.map(function(b){return b.getTag().visualElementID_})};p1.prototype.getMetadata=function(a,b){var c=new g1;Jsc(a.getTag(),c);for(a=0;a<b.length;++a)Jsc(b[a].getTag(),c);return c};
var Stc=function(a,b,c){var d,e=a.visualElementProvider_,f=a.eventToTracksLabelMap_[b];f8a(c,function(h){if(!SA(h))return!1;h=o1(e,h);var k;if(k=null!=h)if(k=h.getTag(),this.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Le");if(!Fsc.has(f))throw Error("Me`"+f);k=k.tracks_.has(f)}else k=Q0(k,f);return k?(d=h,!0):!1}.bind(a),!0);return d};
p1.prototype.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;f8a(a,function(d){if(!SA(d))return!1;d=o1(c,d);null!=d&&b.push(d);return!1},!1);return b};
p1.prototype.handleImpressions_=function(){var a=this.pageVisibilityMonitor_;if(!a.domHelper_.document_[a.getHiddenPropertyName_()]&&this.root_){if(a=!!(window.performance&&window.performance.mark&&window.performance.measure&&window.performance.clearMeasures&&window.performance.clearMarks))window.performance.clearMeasures("ZVwBtb"),window.performance.clearMarks("KtiTlc"),window.performance.mark("KtiTlc");var b=Ktc(this.traverser_,this.root_);if(this.eventHandler_){var c=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):
this.domHelper_.getViewportSize();c=new aR(0,0,c.width,c.height);var d=Ltc(this.traverser_,b);if(d.length){d=this.eventHandler_.impressionEvent(d,c);for(var e=0;e<d.length;++e)this.metadataHandler_.addEventMetadata(d[e]),qj(d[e],28,this.zwiebackId_),this.transport_&&oB(this.transport_,d[e])}b=Mtc(this.traverser_,b);b=this.eventHandler_.visibilityEvent(b,c);if(b.length)for(c=0;c<b.length;++c)this.metadataHandler_.addEventMetadata(b[c]),this.zwiebackId_&&qj(b[c],28,this.zwiebackId_),this.transport_&&
oB(this.transport_,b[c]);Rtc(this)}else{c=[];d=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();d=new aR(0,0,d.width,d.height);for(e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=o1(this.visualElementProvider_,f))&&Q0(f.getTag(),"impression")&&c.push(f)}for(b=0;b<c.length;b++)d=c[b],d.loggedImpression_||(e=this.getAncestry_(d.getElement()),Qtc(this,void 0,d,e),Rtc(this),d.loggedImpression_=!0)}a&&window.performance.measure("ZVwBtb",
"KtiTlc")}};p1.prototype.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return"true"==a.getAttribute("ve-visible");a=a.getBoundingClientRect();return(b=hac(b,new aR(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};p1.prototype.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?$7a(a):a};var sr=function(a,b,c,d,e,f,h,k,q,u,x,y){e=void 0===e?!1:e;q=void 0===q?!1:q;k||(b=new Oo(b,c),d&&(b.destinationUrl=d),f&&(b.backgroundJobDeferrer=f),k=b.build());p1.call(this,a,h||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:q},u,x,y);this.clearcut_=k;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0};ft(sr,p1);sr.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};
sr.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};sr.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};var G8a=function(){};G8a.prototype.start=function(){};G8a.prototype.stop=function(){};var Ttc=function(a){this.tracker=a};var Utc=function(a,b){this.root=a;this.handler=b;this.eventHandler=new xq(this)};
Utc.prototype.observe=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(c){b.onMutation(c)}),this.observer.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,a,function(c){var d=b.handler.tracker,e=c.type,f=d.eventToActionMap_[e];if(f&&(e=Stc(d,e,c.target)))if(d.eventHandler_)for(f=d.eventHandler_.interactionEvent(e,new Wsc(f)),e=0;e<f.length;++e)d.metadataHandler_.addEventMetadata(f[e]),d.zwiebackId_&&qj(f[e],28,d.zwiebackId_),d.transport_&&
oB(d.transport_,f[e]);else{var h=d.getAncestry_(e.getElement());Qtc(d,f,e,h)}c.stopPropagation()}))};Utc.prototype.dispose=function(){var a;null==(a=this.observer)||a.disconnect();this.eventHandler.removeAll()};Utc.prototype.onMutation=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,"childList"===b.type){b=l(b.addedNodes);for(var c=b.next();!c.done;c=b.next())c=c.value,c instanceof Element&&(c.querySelectorAll("[jsLog]").length||c.getAttribute("jsLog"))&&this.handler.tracker.logImpressions()}};var F8a=function(a,b){this.root=a;this.tracker=b;this.observer=new Utc(this.root,new Ttc(this.tracker))};
F8a.prototype.start=function(a){this.tracker.setComponentID("peopleweb");var b=this.tracker,c=this.root;b.domHelper_=new JA;b.root_=c||b.domHelper_.document_.body;c=b.domHelper_.document_;"interactive"!=c.readyState&&"complete"!=c.readyState||b.logImpressions();b.listenOnce(c,"load",b.logImpressions,!1);b.listenOnce(c,"DOMContentLoaded",b.logImpressions,!1);b.listen(b.pageVisibilityMonitor_,"visibilitychange",b.logImpressions,!1);b.listen(c,"scroll",b.logImpressions,!0);b=l(a);for(c=b.next();!c.done;c=
b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;var e=this.tracker;e.eventToActionMap_[c]=d;e.eventToTracksLabelMap_[c]=e.maybeXidEventLabel_(c)}this.observer.observe([].concat(p(a.keys())))};F8a.prototype.stop=function(){this.observer.dispose();this.tracker.dispose()};var as=function(a){this.internalArray_=m(a)};W(as,X);var q1=function(a,b){return mj(a,1,b)};as.prototype.getProvenance=function(){return Vi(this,2,0)};as.prototype.setProvenance=function(a){return rj(this,2,a)};as.prototype.getCode=function(){return Vi(this,3,0)};as.prototype.setCode=function(a){return rj(this,3,a)};var r1=function(a){this.internalArray_=m(a)};W(r1,X);r1.prototype.getSource=function(){return Fi(this,as,1)};r1.prototype.setSource=function(a){return oj(this,as,1,a)};r1.prototype.hasSource=function(){return Zi(this,as,1)};var s1=function(a,b){return rj(a,2,b)},t1=function(a,b){return rj(a,3,b)};var Vtc=function(){this.filter_=null};Vtc.prototype.getFilter=function(){return this.filter_};Vtc.prototype.setFilter=function(a){this.filter_=a;return this};var Wtc=function(a){this.internalArray_=m(a)};W(Wtc,X);g=Wtc.prototype;g.getEnd=function(){return hi(this,2,0)};g.setEnd=function(a){return nj(this,2,a)};g.getTotalItems=function(){return hi(this,3,0)};g.setTotalItems=function(a){return nj(this,3,a)};g.getCode=function(){return Vi(this,4,2)};g.setCode=function(a){return rj(this,4,a)};g.getCacheState=function(){return Fi(this,r1,5)};g.setCacheState=function(a){return oj(this,r1,5,a)};g.hasCacheState=function(){return Zi(this,r1,5)};var Xtc=function(a,b){this.results_=a;this.metadata_=b};Xtc.prototype.getResults=function(){return this.results_};Xtc.prototype.getMetadata=function(){return this.metadata_};var Ytc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=Ytc.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getOriginator=function(){return this.originator_};g.setOriginator=function(a){this.originator_=a;return this};
g.clone=function(){var a=(new Ytc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope());a.useOriginalDisplayValue_=this.useOriginalDisplayValue_;return a};var Ztc=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new r1};g=Ztc.prototype;g.getIsFirstCallback=function(){return this.isFirstCallback_};g.getIsLastCallback=function(){return this.isLastCallback_};g.getCode=function(){return this.code_};g.getCacheState=function(){return this.cacheState_};g.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};g.setIsLastCallback=function(a){this.isLastCallback_=a;return this};
g.setCallbackNumber=function(){return this};g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};var $tc=function(a,b){this.results_=a;this.metadata_=b};$tc.prototype.getResults=function(){return this.results_};$tc.prototype.getMetadata=function(){return this.metadata_};var u1=function(a){this.internalArray_=m(a)};W(u1,X);g=u1.prototype;g.getQuery=function(){return Hi(this,1,"")};g.setQuery=function(a){return qj(this,1,a)};g.clearQuery=function(){st(this,1)};g.hasQuery=function(){return Ii(this,1)};g.getIsFirstCallback=function(){return Ri(this,2,!1)};g.setIsFirstCallback=function(a){return mj(this,2,a)};g.getIsLastCallback=function(){return Ri(this,3,!1)};g.setIsLastCallback=function(a){return mj(this,3,a)};g.setCallbackNumber=function(a){return nj(this,4,a)};
g.getNextPageToken=function(){return Hi(this,5,"")};g.getCode=function(){return Vi(this,6,2)};g.setCode=function(a){return rj(this,6,a)};g.getCacheState=function(){return Fi(this,r1,7)};g.setCacheState=function(a){return oj(this,r1,7,a)};g.hasCacheState=function(){return Zi(this,r1,7)};var v1=function(a,b){this.results_=a;this.metadata_=b};v1.prototype.getResults=function(){return this.results_};v1.prototype.getMetadata=function(){return this.metadata_};var auc={create:function(a,b,c,d,e){e=void 0===e?new lr:e;return h8a(a,b,c,d,new bqc,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=void 0===e?{}:e;return h8a(a,b,c,d,new bqc,e)},createConfig:function(a){var b;void 0===a?b=new s8b(vQ.apiEnv,new t8b(vQ.userProfileId)):b=a;return new usc(b)}};var Sr=function(a){this.internalArray_=m(a)};W(Sr,X);g=Sr.prototype;g.getTimestamp=function(){return dj(this,1)};g.setTimestamp=function(a){return xj(this,1,a)};g.hasTimestamp=function(){return cj(this,1)};g.getAffinityVersion=function(){return hi(this,2)};g.setAffinityVersion=function(a){nj(this,2,a)};g.getAffinityVersionOrUndefined=function(){return yt(this,2)};g.getTotalItems=function(){return hi(this,3)};g.setTotalItems=function(a){return nj(this,3,a)};
g.getNextPageToken=function(){return Hi(this,4)};g.getCode=function(){return Vi(this,6,0)};g.setCode=function(a){return rj(this,6,a)};var w1=function(){this.bits_=[]};g=w1.prototype;g.and=function(a){for(var b=new w1,c=l(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};g.or=function(a){for(var b=new w1,c=l(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=l(a);for(d=a.next();!d.done;d=a.next())b.bits_[d.value]=!0;return b};g.get=function(a){return!!this.bits_[a]};g.set=function(a){this.bits_[a]=!0};g.setAll=function(a){var b=a;for(a+=NaN;b<a;b++)this.bits_[b]=!0};
g.clear=function(a){this.bits_[a]=!1};w1.prototype[Symbol.iterator]=function(){var a=this,b=-1;return{next:function(){a:{for(var c=b+1,d=a.bits_.length;c<d;c++)if(a.bits_[c]){b=c;break a}b=-1}return 0>b?{done:!0}:{value:b,done:!1}}}};var L8a=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),N8a=/^[<"']|[>"']$/g,J8a=RegExp("[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+","gi"),buc=/[^a-z0-9]+/gi,M8a=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};var cuc=function(a,b){this.key=a;this.terms=O8a(b)};var x1=function(a,b,c){b=void 0===b?"":b;c=void 0===c?new w1:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_="\u2026"===b};x1.prototype.cloneNode=function(a){for(var b=[],c=l(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new x1(b)};
x1.prototype.getMatches=function(a){for(var b=[],c=l(this.prefix_?this.matchIndices_:Q8a(this.items_.length)),d=c.next();!d.done&&(d=a.loadOrSkip(this.items_[d.value].key),null==d||(b.push(d),!a.isDone()));d=c.next());return b};
x1.prototype.search=function(a){var b=this;return a.length?a.map(function(c){for(var d=b,e=0;e<c.length;e++){var f=c.charAt(e),h=d;if(!h.isExpanded_){for(var k=l(h.prefix_?h.matchIndices_:Q8a(h.items_.length)),q=k.next();!q.done;q=k.next()){var u=h;q=q.value;for(var x=u.prefix_+"\ufdc7",y=l(u.items_[q].terms),E=y.next();!E.done;E=y.next())E=E.value,E.length<=u.prefix_.length||E<u.prefix_||E>x||(E=E.charAt(u.prefix_.length),u.childNodes_[E]||(u.childNodes_[E]=new x1(u.items_,u.prefix_+E)),u.childNodes_[E].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||y1;if(d===y1)break}return d}).reduce(function(c,d){return c.and(d)}):this};var duc=function(a){a.isExpanded_=!1;for(var b=l(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&duc(c)};x1.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new x1(this.items_,"\u2026",a)};x1.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new x1(this.items_,"\u2026",a)};var y1=new x1([]);
y1.isExpanded_=!0;var z1=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};z1.prototype.getExpiry=function(){return this.expiry_};z1.prototype.getValue=function(){return this.value_};z1.prototype.isExpired=function(){return this.expiry_<Date.now()};z1.prototype.isStale=function(){return this.stale_<Date.now()};var euc=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=euc.prototype;g.size=function(){return this.items_.size};g.clear=function(){this.items_.clear()};g.has=function(a){return this.items_.has(a)};g.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
g.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=l(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};g.delete=function(a){return this.items_.delete(a)};g.compact=function(){for(var a=0,b=l(this.items_),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var fuc=function(){var a=new euc(function(){return 1E3<a.size()});return a};var guc=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new euc(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=guc.prototype;g.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};g.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};g.has=function(a){return!!this.get(a)};g.size=function(){return this.delegate_.size()};g.clear=function(){this.delegate_.clear()};
g.delete=function(a){return this.delegate_.delete(a)};g.compact=function(){return this.delegate_.compact()};var A1=function(a,b){return new guc(a,function(c){var d=Date.now()+b;return new z1(d,c,d)})};var B1=function(a){this.internalArray_=m(a)};W(B1,X);g=B1.prototype;g.getCacheSize=function(){return hi(this,3,500)};g.setCacheSize=function(a){nj(this,3,a)};g.hasCacheSize=function(){return Si(this,3)};g.getCacheStaleSec=function(){return El(this,4,86400)};g.getCacheExpiredSec=function(){return El(this,5,1209600)};g.getRpcTimeoutSec=function(){return El(this,12,60)};g.getSuggestFormat=function(){return Vi(this,15,1)};g.getSearchFormat=function(){return Vi(this,16,1)};B1.repeatedFields_=[24,25];var S8a=new Set([10,11]);var huc=function(a){this.interleaveGroups_=Ri(a,33,!1)},C1=function(a,b,c){return b.filter(function(d){return 8!==d.provenance}).sort(function(d,e){a:{var f=a.interleaveGroups_;switch(c){case 2:d=T8a(d,e,f,!0);break a;default:d=U8a(d,e,f)}}return d}).map(function(d){return String(d.id)})};var iuc=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new huc(e);this.indexes_=A1(hi(e,8,250),1E3*El(e,9,3600));this.maxResults_=hi(e,2,10)};g=iuc.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d;return Ne(function(e){switch(e.nextAddress){case 1:c=q1(new as,!0).setProvenance(7).setCode(0);if(b.canSkipFetch_(a))return e.return(q1(c,!1));Oe(e,2);return e.yield(b.adapter_.search(a.getPrefix(),b.maxResults_),4);case 4:d=e.yieldResult;$s(e,3);break;case 2:return Re(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new Sr),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.canSkipFetch_=function(a){return a.isSuggestQuery()?!0:3===a.queryScope()?!1:this.indexes_.has(a.getPrefix())?!0:!1};g.index=function(a,b){for(var c=C1(this.ranker_,b,1),d=l(b),e=d.next();!e.done;e=d.next())this.targetFactory_.processItem(e.value);d=3===a.queryScope();this.storage_.storeItems(1,b,d);b=D1(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)};g.search=function(a){return a.isSuggestQuery()||!this.indexes_.has(a.getPrefix())?[]:this.indexes_.get(a.getPrefix()).search([]).getMatches(a.getCollector())};var juc=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};juc.prototype.getStageType=function(){return 2};juc.prototype.index_=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.indexer_.storeItems(a,b)};
juc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,u,x;return Ne(function(y){switch(y.nextAddress){case 1:return c=new Map,d=q1(new as,!0).setProvenance(7).setCode(0),e=3===a.queryScope(),f=kuc(a),Oe(y,2),y.yield(b.adapter_.lookup(f),4);case 4:h=y.yieldResult;$s(y,3);break;case 2:return Re(y),d.setCode(13),a.notify(c,[],d),y.return();case 3:b.index_(h,e);k=l(f);for(q=k.next();!q.done;q=k.next())u=q.value,(x=b.indexer_.load(u,a.getFormat(),a.getOptions().useOriginalDisplayValue_))&&c.set(u,
x);a.notify(c,[],d);Se(y)}})};var luc=function(a,b){this.metrics_=a;this.state_=new lQ(b);this.source=b;this.label_="total"};luc.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};luc.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};var muc=function(a,b){this.metrics_=a;this.state_=new lQ(b);this.source=b};muc.prototype.increment=function(a){this.metrics_.count(this.state_,void 0===a?1:a)};var nuc=function(a,b){this.metrics_=a;this.state_=new lQ(b);this.source=b};nuc.prototype.report=function(){this.metrics_.error(this.state_)};var Jr=function(a){this.internalArray_=m(a)};W(Jr,X);Jr.prototype.hasNoChanges=function(){return Qi(this,12)};var Ir=function(a){this.internalArray_=m(a)};W(Ir,X);Ir.prototype.getEventType=function(){return Vi(this,1,0)};Ir.prototype.setEventType=function(a){return rj(this,1,a)};var Kr=function(a,b){return rj(a,2,b)},y9a=function(a,b){return rj(a,3,b)};g=Ir.prototype;g.getErrorType=function(){return Vi(this,6,0)};g.setErrorType=function(a){return rj(this,6,a)};g.getIdType=function(){return Vi(this,8,0)};g.setIdType=function(a){rj(this,8,a)};g.getResultIndex=function(){return hi(this,9,0)};
g.setResultIndex=function(a){nj(this,9,a)};g.getToken=function(){return Hi(this,10,"")};g.setToken=function(a){return qj(this,10,a)};g.getCacheState=function(){return Fi(this,r1,11)};g.setCacheState=function(a){return oj(this,r1,11,a)};g.hasCacheState=function(){return Zi(this,r1,11)};g.getQueryLength=function(){return hi(this,14)};g.setQueryLength=function(a){return nj(this,14,a)};g.hasQueryLength=function(){return Si(this,14)};g.getItemCount=function(){return hi(this,15)};
g.setItemCount=function(a){return nj(this,15,a)};g.hasItemCount=function(){return Si(this,15)};g.getLookupInfo=function(){return Fi(this,Jr,16)};g.setLookupInfo=function(a){return oj(this,Jr,16,a)};g.hasLookupInfo=function(){return Zi(this,Jr,16)};g.getQueryScope=function(){return Vi(this,17,0)};g.setQueryScope=function(a){return rj(this,17,a)};g.hasQueryScope=function(){return Ti(this,17)};var ouc=function(a,b){this.delegate_=a;this.trackers_=b};ouc.prototype.search=function(a){var b=this,c,d;return Ne(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(66),c.start(),Oe(e,2,3),e.yield(b.delegate_.search(a),5);case 5:return e.return(e.yieldResult);case 3:Pe(e);c.stop();Qe(e,0);break;case 2:throw d=Re(e),b.trackers_.error(36,11).report(),d;}})};
ouc.prototype.lookup=function(a){var b=this,c,d;return Ne(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(67),c.start(),Oe(e,2,3),e.yield(b.delegate_.lookup(a),5);case 5:return e.return(e.yieldResult);case 3:Pe(e);c.stop();Qe(e,0);break;case 2:throw d=Re(e),b.trackers_.error(37,11).report(),d;}})};var puc=function(a,b){this.delegate_=a;this.trackers_=b};puc.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
puc.prototype.warmUpCache=function(){var a=this,b,c;return Ne(function(d){switch(d.nextAddress){case 1:return b=a.trackers_.latency(65),b.start(),Oe(d,2,3),d.yield(a.delegate_.warmUpCache(),5);case 5:return d.return(d.yieldResult);case 3:Pe(d);b.stop();Qe(d,0);break;case 2:throw c=Re(d),a.trackers_.error(35,11).report(),c;}})};puc.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};var quc=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new huc(e);this.index_=y1};g=quc.prototype;g.getCacheType=function(){switch(this.adapter_.getPosition()){case 1:return 2;case 2:return 3;default:return 0}};g.flush=function(){this.index_=y1};
g.fetch=function(a){var b=this,c,d;return Ne(function(e){switch(e.nextAddress){case 1:c=q1(new as,!0).setProvenance(7).setCode(0);if(b.index_!=y1&&!b.adapter_.needsWarmUp())return e.return(q1(c,!1));Oe(e,2);return e.yield(b.adapter_.warmUpCache(),4);case 4:d=e.yieldResult;$s(e,3);break;case 2:return Re(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new Sr),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.index=function(a,b){a=C1(this.ranker_,b,1);for(var c=l(b),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.storage_.storeItems(1,b);this.index_=D1(this.trieFactory_,a)};g.search=function(a){var b=this;this.adapter_.needsWarmUp()&&Promise.resolve().then(function(){return b.fetch(a)});return this.index_.search(a.getTerms()).getMatches(a.getCollector())};var E1=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};E1.prototype.getErrorType=function(){return this.errorType_};var F1=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=F1.prototype;g.getCacheType=function(){return this.delegate_.getCacheType()};g.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};g.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
g.index=function(a,b,c){var d=this.trackers_.latency(this.indexingLabel_);d.start();try{this.delegate_.index(a,b,c)}catch(e){throw this.trackers_.error(this.errorLabel_,10).report(),e;}finally{d.stop()}};g.search=function(a){var b=this.trackers_.latency(this.searchLabel_);b.start();try{return this.delegate_.search(a)}catch(c){throw this.trackers_.error(this.errorLabel_,13).report(),c;}finally{b.stop()}};var ruc=function(){},suc=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=void 0,e=[],f=l(c.getTargetList()),h=f.next();!h.done;h=f.next())h=Z8a(c,h.value,7),e.push(String(h.id)),h.coalescedKeys=e,d||(d=h),b.push(h);d&&dr(d.id)&&(e=void 0,d.totalMemberCount=null!=(e=c.getTotalMemberCountOrUndefined())?e:void 0,d.memberKeys=c.getMemberList().map(function(k){for(var q=l(k.getTargetList()).next();!q.done;)return k=Z8a(k,q.value,8),b.push(k),String(k.id)}))}return b},
tuc=function(a){a=a.getResultList();return suc(a)};var uuc=function(a,b){this.provider_=a;this.itemFactory_=b};uuc.prototype.search=function(a,b){var c=this,d;return Ne(function(e){if(1==e.nextAddress)return 1>b?e.return([]):e.yield(c.provider_.search((new Omc).setQuery(a).setMaxResults(b)),2);d=e.yieldResult;return e.return(tuc(d))})};uuc.prototype.lookup=function(a){var b=this,c;return Ne(function(d){if(1==d.nextAddress)return a.length?d.yield(b.provider_.lookup(a),2):d.return([]);c=d.yieldResult;return d.return(tuc(c))})};var vuc=function(a,b){this.provider_=a;this.itemFactory_=b};vuc.prototype.getPosition=function(){return this.provider_.getPosition()};vuc.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};vuc.prototype.warmUpCache=function(){var a=this,b;return Ne(function(c){if(1==c.nextAddress)return c.yield(a.provider_.warmUpCache(),2);b=c.yieldResult;return c.return(tuc(b))})};var wuc=new E1(68,69,38);var xuc=function(){};xuc.prototype.processItem=function(){};var yuc=new xuc;var zuc=function(){this.iconUrl_=this.altText_=""},d9a=function(a){var b=new zuc;b.altText_=a||"";return b};zuc.prototype.getIconUrl=function(){return this.iconUrl_};zuc.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};var Auc=function(a){this.delegate_=a};Auc.prototype.processItem=function(a){a.target=e9a(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};var Buc=function(){};
Buc.prototype.configure=function(a){var b=a.clientConfig,c=a.trackers,d=a.storage,e=a.indexer,f=a.trieFactory,h=a.prefixCaches;a=a.lookupStages;var k=b.runtimeConfig_.customDataConfig_;if(k){b=b.getClient();var q=new ruc;var u=void 0===u?yuc:u;u=new Auc(u);for(var x=[],y=l(k.staticDataProviders_.reverse()),E=y.next();!E.done;E=y.next()){var H=E=E.value;H=new puc(H,c);H=new F1(new quc(new vuc(H,q),u,f,d,b),c,wuc);switch(E.getPosition()){case 1:x.push(H);break;case 2:h.push(H);break;default:throw Error("Ne");
}}x.length&&h.splice.apply(h,[0,0].concat(p(x)));k=l(k.dynamicDataProviders_);for(x=k.next();!x.done;x=k.next())y=x=x.value,y=new ouc(y,c),y=new iuc(new uuc(y,q),u,f,d,b),y=new F1(y,c,wuc),h.push(y),x=new ouc(x,c),a.push(new juc(new uuc(x,q),u,e))}};var G1=function(a){this.internalArray_=m(a)};W(G1,X);g=G1.prototype;g.getEnableClearcut=function(){return Ri(this,1,!1)};g.setEnableClearcut=function(a){return mj(this,1,a)};g.getSocialApplication=function(){return Vi(this,2,0)};g.getSocialApplicationOrUndefined=function(){return Xr(this,2)};g.setEventSources=function(a){rt(this,5,Wr,a)};G1.repeatedFields_=[5,6];var H1=function(a){this.internalArray_=m(a)};W(H1,X);H1.prototype.getApplication=function(){return Vi(this,1,0)};H1.prototype.setApplication=function(a){return rj(this,1,a)};H1.prototype.getApplicationOrUndefined=function(){return Xr(this,1)};H1.prototype.getIsEnabled=function(){return Ri(this,2,!1)};var I1=function(a){this.internalArray_=m(a)};W(I1,X);I1.prototype.getApiKey=function(){return Hi(this,1,"")};I1.prototype.setApiKey=function(a){return qj(this,1,a)};var J1=function(a){this.internalArray_=m(a)};W(J1,X);g=J1.prototype;g.getClientId=function(){return Hi(this,1,"CLIENT_UNSPECIFIED")};g.setClientId=function(a){return qj(this,1,a)};g.getAffinityType=function(){return Hi(this,4,"AFFINITY_TYPE_UNKNOWN")};g.setAffinityType=function(a){return qj(this,4,a)};g.getContainerType=function(){return CFb(this,7)};J1.repeatedFields_=[7,8];var Cuc=function(a){this.internalArray_=m(a)};W(Cuc,X);g=Cuc.prototype;g.getClient=function(){return Fi(this,B1,1)};g.setClient=function(a){return oj(this,B1,1,a)};g.hasClient=function(){return Zi(this,B1,1)};g.getGapi=function(){return Fi(this,I1,2)};g.getPeopleApi=function(){return Fi(this,J1,3)};g.getClearcut=function(){return Fi(this,G1,4)};g.setClearcut=function(a){oj(this,G1,4,a)};g.hasClearcut=function(){return Zi(this,G1,4)};g.getExperiments=function(){return Fi(this,H1,5)};
g.setExperiments=function(a){oj(this,H1,5,a)};g.hasExperiments=function(){return Zi(this,H1,5)};var Duc=sc(Cuc);var Euc;var K1=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new Umc;a=this.getPeopleApi();kj(a,7).length||ac(a,7,[2,8,1,7,10,11],rb);ii(a,8).length||yj(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=l(ii(a,8));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":cc(a,8,yb(c+".metadata.verified"))}};K1.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new B1);return this.delegate_.getClient()};
K1.prototype.getGapi=function(){if(!Zi(this.delegate_,I1,2)){var a=this.delegate_,b=new I1;oj(a,I1,2,b)}return this.delegate_.getGapi()};K1.prototype.getPeopleApi=function(){if(!Zi(this.delegate_,J1,3)){var a=this.delegate_,b=new J1;oj(a,J1,3,b)}return this.delegate_.getPeopleApi()};K1.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new G1);return this.delegate_.getClearcut()};
var Fuc=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new H1);return a.delegate_.getExperiments()};K1.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var Guc=function(a){a=a.getClient();return hi(a,6,500)?Math.min(Math.round(hi(a,6,500)/4),500):500};var Huc;var Vr=null;var Iuc=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Iuc.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||(a.orgState_=0)};var L1=function(a){this.internalArray_=m(a)};W(L1,X);L1.prototype.getDescription=function(){return Ej(this,6)};L1.prototype.setDescription=function(a){return qj(this,6,a)};L1.prototype.hasDescription=function(){return Ii(this,6)};var Juc=function(a){this.internalArray_=m(a)};W(Juc,X);var Dr=function(a){this.internalArray_=m(a,5)};W(Dr,X);Dr.prototype.getIsPlaceholder=function(){return Ri(this,2)};Dr.prototype.setIsPlaceholder=function(a){mj(this,2,a)};Dr.prototype.getContactId=function(){return dj(this,4)};Dr.prototype.setContactId=function(a){xj(this,4,a)};
var Kuc={},Luc=function(a){if(null!=a){uc(a);var b=Fi(a,L1,1);if(null!=b){uc(b);var c=rc(Mr(b,4)),d=rc(Mr(b,1)),e=rc(Wm(b,2)),f=rc(Ej(b,3)),h=rc(Ej(b,5)),k=rc(Ej(b,6)),q=rc(Mr(b,7));var u=Fi(b,NFb,8);if(null!=u){uc(u);var x=Fl(u,LFb,1,OFb);null!=x?(uc(x),x={}):x=void 0;u=Fl(u,MFb,2,OFb);null!=u?(uc(u),u=u.getCustomerId(),null!=u?(uc(u),u={customerId:rc(Ej(u,1))}):u=void 0,u={customerId:u}):u=void 0;x={consumerInfo:x,customerInfo:u}}else x=void 0;u=Fi(b,Ft,9);null!=u?(uc(u),u={valueList:qc(u.getValueList(),
QFb)}):u=void 0;b={entityType:c,presence:d,memberCount:e,avatarUrl:f,developerName:h,description:k,dndState:q,organizationInfo:x,segmentedMembershipCounts:u,isMembershipVisibleToCaller:rc(Er(b,10))}}else b=void 0;c=rc(Er(a,2));d=Fi(a,Juc,3);null!=d?(uc(d),d={actorId:rc(Ej(d,1)),subtitle:rc(Ej(d,2))}):d=void 0;b={dynamiteExtendedData:b,isPlaceholder:c,paisaExtendedData:d,contactId:rc(Wm(a,4))};kca(a,b,Kuc);return b}};var t9a=pc(417869898,{clientSpecificData:0},Dr,Luc);var Muc=function(a){this.internalArray_=m(a)};W(Muc,X);var Nuc=function(a){this.internalArray_=m(a)};W(Nuc,X);var Ouc=function(a){this.internalArray_=m(a)};W(Ouc,X);Ouc.prototype.getCode=function(){return Hi(this,1)};Ouc.prototype.setCode=function(a){return qj(this,1,a)};var M1=function(a){this.internalArray_=m(a)};W(M1,X);M1.prototype.getPhoneNumber=function(){return Fi(this,Nuc,1)};M1.prototype.getType=function(){return Hi(this,3)};M1.prototype.setType=function(a){return qj(this,3,a)};M1.prototype.hasType=function(){return Ii(this,3)};var Puc=function(a){this.internalArray_=m(a)};W(Puc,X);var Hr=function(a){this.internalArray_=m(a)};W(Hr,X);
var Quc=function(a){if(null!=a){uc(a);var b=rc(Mr(a,1));a=Fi(a,Puc,2);if(null!=a){uc(a);a=Fi(a,M1,1);if(null!=a){uc(a);var c=a.getPhoneNumber();if(null!=c){uc(c);var d=rc(Ej(c,1));c=Fi(c,Muc,2);null!=c?(uc(c),c={nationalNumber:rc(Ej(c,1)),internationalNumber:rc(Ej(c,2)),countryCode:rc(tt(c,3)),regionCode:rc(Ej(c,4)),isValid:rc(Er(c,5)),validationResult:rc(Mr(c,6))}):c=void 0;d={e164:d,i18nData:c}}else d=void 0;c=Fi(a,Ouc,2);null!=c?(uc(c),c={code:rc(Ej(c,1)),countryCode:rc(Ej(c,2))}):c=void 0;a={phoneNumber:d,
shortCode:c,type:rc(Ej(a,3)),formattedType:rc(Ej(a,4))}}else a=void 0;a={structuredPhone:a}}else a=void 0;return{grammaticalGender:b,phoneExtendedData:a}}};var w9a=pc(417866180,{peopleStackFieldData:0},Hr,Quc);var Ruc=function(a){a=null==a?"":String(a);for(var b=0,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a.codePointAt(c);return b},q9a=function(a){if(!a)return 0;a=Array.from(a).map(Ruc);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};var f9a=new Map([["CONTACT_GROUP",9],["FAMILY",11],["MEDIA_COLLECTION",10],["CHAT",12],["GROUP_DM",12],["ROOM",13],["DYNAMITE_ROOM",13],["DYNAMITE_NAMED_ROOM",13],["DYNAMITE_UNNAMED_ROOM",14],["DYNAMITE_CLASSIC_NAMED_ROOM",15],["DYNAMITE_CLASSIC_UNNAMED_ROOM",16]]);var N1=function(a){this.internalArray_=m(a)};W(N1,X);g=N1.prototype;g.getLoggingId=function(){return bq(this,1)};g.setLoggingId=function(a){rj(this,1,hc(a))};g.getValue=function(){return $p(this,2)};g.getValue_legacyNullable=function(){return $p(this,2)};g.setValue=function(a){return rj(this,2,nb(a))};g.hasValue=function(){return null!=$p(this,2)};var Suc=function(a){if(null!=a)return uc(a),{loggingId:mca(a.getLoggingId()),value:rc($p(a,2))}};var O1=function(a){this.internalArray_=m(a)};W(O1,X);g=O1.prototype;g.getValue=function(){return Ej(this,1)};g.getValue_legacyNullable=function(){return Ej(this,1)};g.setValue=function(a){return qj(this,1,a)};g.hasValue=function(){return Ii(this,1)};g.getGivenName=function(){return Ej(this,2)};g.setGivenName=function(a){return qj(this,2,a)};g.hasGivenName=function(){return Ii(this,2)};g.getFamilyName=function(){return Ej(this,3)};g.setFamilyName=function(a){return qj(this,3,a)};
g.hasFamilyName=function(){return Ii(this,3)};g.getSourceType=function(){return Mr(this,4)};g.setSourceType=function(a){return rj(this,4,a)};var P1=function(a){this.internalArray_=m(a)};W(P1,X);g=P1.prototype;g.getUrl=function(){return Ej(this,1)};g.setUrl=function(a){return qj(this,1,a)};g.hasUrl=function(){return Ii(this,1)};g.getType=function(){return Mr(this,2)};g.setType=function(a){return rj(this,2,a)};g.hasType=function(){return Ti(this,2)};g.getGlyph=function(){return Ej(this,3)};g.setGlyph=function(a){return qj(this,3,a)};var Q1=function(a){this.internalArray_=m(a)};W(Q1,X);g=Q1.prototype;g.getPhoto=function(){return Fi(this,P1,1)};g.setPhoto=function(a){oj(this,P1,1,a)};g.hasPhoto=function(){return Zi(this,P1,1)};g.getName=function(){return Fi(this,O1,2)};g.setName=function(a){return oj(this,O1,2,a)};g.hasName=function(){return Zi(this,O1,2)};g.getAffinity=function(){return Fi(this,N1,3)};g.hasAffinity=function(){return Zi(this,N1,3)};g.getPrimary=function(){return Er(this,4)};
var Tuc=function(a){if(null!=a){uc(a);var b=a.getPhoto();null!=b?(uc(b),b={url:rc(Ej(b,1)),type:rc(Mr(b,2)),glyph:rc(Ej(b,3))}):b=void 0;var c=a.getName();null!=c?(uc(c),c={value:rc(Ej(c,1)),givenName:rc(Ej(c,2)),familyName:rc(Ej(c,3)),sourceType:rc(Mr(c,4))}):c=void 0;return{photo:b,name:c,affinity:Suc(a.getAffinity()),primary:rc(Er(a,4))}}};var R1=function(a){this.internalArray_=m(a)};W(R1,X);R1.prototype.getStatus=function(){return Mr(this,2)};R1.prototype.setStatus=function(a){return rj(this,2,a)};R1.prototype.hasStatus=function(){return Ti(this,2)};var Uuc=function(a){if(null!=a)return uc(a),{expirationTimestampSeconds:rc(Wm(a,1)),status:rc(Mr(a,2)),configurationName:rc(Ej(a,3))}};var S1=function(a){this.internalArray_=m(a)};W(S1,X);var H9a=function(a){this.internalArray_=m(a)};W(H9a,X);H9a.prototype.getState=function(){return Mr(this,2)};var Vuc=function(a){if(null!=a)return uc(a),{contextType:rc(Mr(a,1)),state:rc(Mr(a,2))}};var T1=function(a){this.internalArray_=m(a)};W(T1,X);T1.prototype.getApplication=function(){return Vi(this,1,0)};T1.prototype.setApplication=function(a){return rj(this,1,a)};T1.prototype.getApplicationOrUndefined=function(){return Xr(this,1)};T1.repeatedFields_=[2];var U1=function(a){this.internalArray_=m(a)};W(U1,X);U1.prototype.getValue=function(){return Ej(this,1)};U1.prototype.getValue_legacyNullable=function(){return Ej(this,1)};U1.prototype.setValue=function(a){return qj(this,1,a)};U1.prototype.hasValue=function(){return Ii(this,1)};U1.repeatedFields_=[2];var yr=function(a){this.internalArray_=m(a)};W(yr,X);g=yr.prototype;g.getProfileId=function(){return Ej(this,1)};g.getProfileId_legacyNullable=function(){return Ej(this,1)};g.setProfileId=function(a){return qj(this,1,a)};g.hasProfileId=function(){return Ii(this,1)};g.getEmail=function(){return aq(this,2,Br)};g.getEmail_legacyNullable=function(){return aq(this,2,Br)};g.setEmail=function(a){return Jl(this,2,Br,a)};g.hasEmail=function(){return null!=aq(this,2,Br)};
g.getPhone=function(){return aq(this,3,Br)};g.getPhone_legacyNullable=function(){return aq(this,3,Br)};g.setPhone=function(a){return Jl(this,3,Br,a)};g.hasPhone=function(){return null!=aq(this,3,Br)};var Br=[2,3];var V1=function(a){this.internalArray_=m(a)};W(V1,X);V1.prototype.getDisplayValue=function(){return Ej(this,1)};V1.prototype.getOriginalValue=function(){return Ej(this,3)};var Wuc=function(a){this.internalArray_=m(a)};W(Wuc,X);var k9a=function(a){this.internalArray_=m(a)};W(k9a,X);g=k9a.prototype;g.getIdCase=function(){return Bl(this,W1)};g.getProfileId=function(){return aq(this,1,W1)};g.getProfileId_legacyNullable=function(){return aq(this,1,W1)};g.setProfileId=function(a){return Jl(this,1,W1,a)};g.hasProfileId=function(){return null!=aq(this,1,W1)};g.getContactId=function(){return aq(this,2,W1)};g.setContactId=function(a){Jl(this,2,W1,a)};
var W1=[1,2],Xuc=function(a){if(null!=a)return uc(a),{profileId:rc(aq(a,1,W1)),contactId:rc(aq(a,2,W1))}};var X1=function(a){this.internalArray_=m(a)};W(X1,X);g=X1.prototype;g.getValueCase=function(){return Bl(this,zr)};g.getDisplayInfo=function(){return Fi(this,Q1,1)};g.hasDisplayInfo=function(){return Zi(this,Q1,1)};g.getEmail=function(){return Fl(this,U1,2,zr)};g.setEmail=function(a){return Ll(this,2,zr,a)};g.hasEmail=function(){return Tl(this,U1,2,zr)};g.getPhone=function(){return Fl(this,V1,3,zr)};g.setPhone=function(a){return Ll(this,3,zr,a)};g.hasPhone=function(){return Tl(this,V1,3,zr)};
g.getIsSelf=function(){return Er(this,6)};g.getTypeLabel=function(){return Ej(this,10)};X1.repeatedFields_=[5];
var zr=[2,3,4],Yuc=function(a){if(null!=a){uc(a);var b=Tuc(a.getDisplayInfo());var c=a.getEmail();if(null!=c){uc(c);var d=rc(Ej(c,1));var e=qc(Ji(c,R1,2),Uuc);var f=Fi(c,S1,3);null!=f?(uc(f),f={smtpServerSupportsTls:rc(Er(f,1)),usesConfusingCharacters:rc(Er(f,2))}):f=void 0;c=Fi(c,T1,4);null!=c?(uc(c),c={application:Vi(c,1,0),stateStatusList:qc(Ji(c,H9a,2),Vuc)}):c=void 0;d={value:d,certificatesList:e,securityInfo:f,internalExternal:c}}else d=void 0;e=a.getPhone();null!=e?(uc(e),e={displayValue:rc(Ej(e,
1)),canonicalValue:rc(Ej(e,2)),originalValue:rc(Ej(e,3))}):e=void 0;c=Fl(a,yr,4,zr);null!=c?(uc(c),c={profileId:rc(Ej(c,1)),email:rc(aq(c,2,Br)),phone:rc(aq(c,3,Br)),clientData:rc(Ej(c,4))}):c=void 0;f=qc(Ji(a,k9a,5),Xuc);var h=rc(Er(a,6)),k=rc(Er(a,7)),q=rc(Er(a,8)),u=Quc(Fi(a,Hr,9)),x=rc(Ej(a,10)),y=rc(Er(a,11));a=Fi(a,Wuc,12);null!=a?(uc(a),a={directUserMemberCount:rc(Wm(a,1)),directGroupMemberCount:rc(Wm(a,2))}):a=void 0;return{displayInfo:b,email:d,phone:e,inAppTarget:c,sourceIdsList:f,isSelf:h,
isGoogleGroup:k,isPersonal:q,peopleStackFieldExtendedData:u,typeLabel:x,isBlocked:y,rosterDetails:a}}};var Y1=function(a){this.internalArray_=m(a)};W(Y1,X);g=Y1.prototype;g.getDisplayInfo=function(){return Fi(this,Q1,1)};g.hasDisplayInfo=function(){return Zi(this,Q1,1)};g.getMembersList=function(){return Ji(this,X1,2)};g.setMembersList=function(a){om(this,2,a)};g.getLabelId=function(){return Ej(this,3)};Y1.repeatedFields_=[2];var Z1=function(a){this.internalArray_=m(a)};W(Z1,X);Z1.prototype.getHideType=function(){return Mr(this,1)};Z1.prototype.getHiddenKeysList=function(){return Ji(this,Yrc,3)};Z1.repeatedFields_=[3];var Zuc=function(a){this.internalArray_=m(a)};W(Zuc,X);Zuc.prototype.getRelation=function(){return Mr(this,1)};Zuc.prototype.setRelation=function(a){rj(this,1,a)};var a2=function(a){this.internalArray_=m(a)};W(a2,X);a2.prototype.getAffinity=function(){return Fi(this,N1,2)};a2.prototype.hasAffinity=function(){return Zi(this,N1,2)};a2.repeatedFields_=[1];
var $uc=function(a){if(null!=a){uc(a);var b=Suc(a.getAffinity()),c=qc(Ji(a,X1,1),Yuc),d=Luc(Fi(a,Dr,3));var e=Fi(a,Z1,4);null!=e?(uc(e),e={hideType:rc(Mr(e,1)),hiddenKeysList:qc(e.getHiddenKeysList(),Zrc),familyStatus:rc(Mr(e,2))}):e=void 0;var f=$rc(Fi(a,Gr,5));a=Fi(a,Zuc,6);null!=a?(uc(a),a={relation:rc(Mr(a,1))}):a=void 0;return{affinity:b,contactMethodsList:c,clientSpecificData:d,peopleStackExtendedData:e,peopleStackPersonExtendedData:f,groupMemberInfo:a}}};var b2=function(a){this.internalArray_=m(a)};W(b2,X);b2.prototype.getOwnersList=function(){return Ji(this,a2,2)};b2.prototype.setOwnersList=function(a){return om(this,2,a)};b2.repeatedFields_=[2];var P9a=function(a){this.internalArray_=m(a)};W(P9a,X);P9a.prototype.getIdCase=function(){return Bl(this,Q9a)};var Q9a=[1],avc=function(a){if(null!=a)return uc(a),{rosterEmail:rc(aq(a,1,Q9a))}};var bvc=function(a){this.internalArray_=m(a)};W(bvc,X);var c2=function(a){this.internalArray_=m(a)};W(c2,X);g=c2.prototype;g.getDisplayInfo=function(){return Fi(this,Q1,1)};g.hasDisplayInfo=function(){return Zi(this,Q1,1)};g.getMembersList=function(){return Ji(this,a2,2)};g.setMembersList=function(a){om(this,2,a)};g.getGroupId=function(){return Ej(this,4)};g.setGroupId=function(a){qj(this,4,a)};g.hasGroupId=function(){return Ii(this,4)};c2.repeatedFields_=[2,6];var d2=function(a){this.internalArray_=m(a)};W(d2,X);d2.prototype.getGroup=function(){return Fl(this,c2,2,e2)};d2.prototype.setGroup=function(a){Ll(this,2,e2,a)};
var e2=[1,2,3],cvc=function(a){if(null!=a){uc(a);var b=$uc(Fl(a,a2,1,e2));var c=a.getGroup();if(null!=c){uc(c);var d=Tuc(c.getDisplayInfo()),e=qc(c.getMembersList(),$uc),f=rc(tt(c,3)),h=rc(Ej(c,4)),k=rc(Ej(c,5)),q=qc(Ji(c,P9a,6),avc);var u=Fi(c,bvc,7);null!=u?(uc(u),u={endtimeUtc:SFb(Fi(u,gj,1))}):u=void 0;var x=Fi(c,b2,8);null!=x?(uc(x),x={creator:$uc(Fi(x,a2,1)),ownersList:qc(x.getOwnersList(),$uc)}):x=void 0;c={displayInfo:d,membersList:e,fullGroupSize:f,groupId:h,groupType:k,groupAlternateIdList:q,
groupEndtime:u,groupAdministration:x,createdAtUtc:SFb(Fi(c,gj,9))}}else c=void 0;a=Fl(a,Y1,3,e2);null!=a?(uc(a),a={displayInfo:Tuc(a.getDisplayInfo()),membersList:qc(a.getMembersList(),Yuc),labelId:rc(Ej(a,3))}):a=void 0;return{person:b,group:c,contactLabel:a}}};var Lr=function(a){this.internalArray_=m(a)};W(Lr,X);g=Lr.prototype;g.getIdCase=function(){return Bl(this,f2)};g.getEmail=function(){return aq(this,1,f2)};g.getEmail_legacyNullable=function(){return aq(this,1,f2)};g.setEmail=function(a){return Jl(this,1,f2,a)};g.hasEmail=function(){return null!=aq(this,1,f2)};g.getPhone=function(){return aq(this,2,f2)};g.getPhone_legacyNullable=function(){return aq(this,2,f2)};g.setPhone=function(a){return Jl(this,2,f2,a)};
g.hasPhone=function(){return null!=aq(this,2,f2)};g.getProfileId=function(){return aq(this,3,f2)};g.getProfileId_legacyNullable=function(){return aq(this,3,f2)};g.setProfileId=function(a){return Jl(this,3,f2,a)};g.hasProfileId=function(){return null!=aq(this,3,f2)};var f2=[1,2,3];var dvc=function(a){this.internalArray_=m(a)};W(dvc,X);var evc=function(a){if(null!=a)return uc(a),{featureType:Vi(a,1,0),weight:El(a,2,0),exponent:El(a,3,1)}};var g2=function(a){this.internalArray_=m(a)};W(g2,X);g=g2.prototype;g.getAffinityVersion=function(){return tt(this,1)};g.setAffinityVersion=function(a){nj(this,1,a)};g.getAffinityVersionOrUndefined=function(){return yt(this,1)};g.getAffinityType=function(){return Ej(this,4)};g.setAffinityType=function(a){return qj(this,4,a)};g2.repeatedFields_=[3];var h2=function(a){this.internalArray_=m(a)};W(h2,X);var fvc=tc(h2);h2.repeatedFields_=[1];var gvc=function(a){this.internalArray_=m(a)};W(gvc,X);gvc.prototype.getId=function(){return Fi(this,Lr,1)};gvc.prototype.setId=function(a){return oj(this,Lr,1,a)};var hvc=[2,3];var ivc=function(a){this.internalArray_=m(a)};W(ivc,X);var jvc=tc(ivc);ivc.repeatedFields_=[1];var kvc=function(a){this.leanResponseProcessorConfig_=a},lvc=function(a,b,c,d){d=void 0===d?!1:d;for(var e=[],f=v9a(b),h=[],k=l(Ji(b,X1,1)),q=k.next();!q.done;q=k.next()){q=q.value;var u=j9a(q);if(u.equals(Cr)){if(!a.leanResponseProcessorConfig_.allowEmptyTargets&&!d)continue;var x=r9a(q);if(!x)continue;u=X8a(x)}h.push(String(u));var y=x=void 0;u={id:u,containerIds:l9a(q),coalescedKeys:h,isMe:!!q.getIsSelf(),dataSource:m9a(b,q),provenance:c,isPrimary:p9a(null!=(x=q.getDisplayInfo())?x:null),itemAffinity:o9a(b),
fieldAffinity:n9a(null!=(y=q.getDisplayInfo())?y:null),contactMethod:q,person:b};f&&(u.resultExtendedData=f);if(q=x9a(q))u.targetExtendedData=q;e.push(u)}e.length&&e.every(function(E){return!E.isPrimary})&&(e[0].isPrimary=!0);return e},mvc=function(a,b,c){var d=ur(g9a(Ej(b,5)),b.getGroupId()||""),e=b.getMembersList().map(function(q){return lvc(a,q,8,!0)}),f=e.filter(function(q){return q&&q.length}).map(function(q){return String(q[0].id)}),h,k;d=[{id:d,containerIds:[d],memberKeys:f,totalMemberCount:null!=
(h=yt(b,3))?h:void 0,provenance:c,isPrimary:!0,itemAffinity:n9a(null!=(k=b.getDisplayInfo())?k:null),fieldAffinity:-Infinity,group:b}];b=l(e);for(c=b.next();!c.done;c=b.next())d.push.apply(d,p(c.value));return d},nvc=function(a,b){var c=o8b(a.getLabelId()||""),d=a.getMembersList().map(function(h){if(h.hasEmail()&&h.getEmail().getValue()){var k,q;var u={id:xr(h.getEmail().getValue()),containerIds:l9a(h),contactMethod:h,provenance:8,isMe:!1,dataSource:1,isPrimary:p9a(null!=(k=h.getDisplayInfo())?k:
null),itemAffinity:-Infinity,fieldAffinity:n9a(null!=(q=h.getDisplayInfo())?q:null)};if(h=x9a(h))u.targetExtendedData=h}else u=null;return u}).filter(Boolean),e=d.map(function(h){return String(h.id)}),f;return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:n9a(null!=(f=a.getDisplayInfo())?f:null),fieldAffinity:-Infinity,isMe:!1,contactLabel:a}].concat(p(d))},ovc=function(a,b,c){switch(Bl(b,e2)){case 1:return lvc(a,Fl(b,a2,1,e2),c);
case 2:return mvc(a,b.getGroup(),c);case 3:return nvc(Fl(b,Y1,3,e2),c);default:return[]}},pvc=function(a,b,c){return Ji(b,d2,1).flatMap(function(d){return ovc(a,d,c)})};var A9a=new Map([[0,1],[1,2],[2,3],[3,4]]);var qvc=function(a){this.internalArray_=m(a)};W(qvc,X);g=qvc.prototype;g.getLabel=function(){return Mr(this,1)};g.setLabel=function(a){return rj(this,1,a)};g.hasLabel=function(){return Ti(this,1)};g.getItemCount=function(){return tt(this,2)};g.setItemCount=function(a){return nj(this,2,a)};g.hasItemCount=function(){return Si(this,2)};g.getLookupInfo=function(){return Fi(this,Jr,3)};g.setLookupInfo=function(a){return oj(this,Jr,3,a)};g.hasLookupInfo=function(){return Zi(this,Jr,3)};
g.getQueryLength=function(){return tt(this,4)};g.setQueryLength=function(a){return nj(this,4,a)};g.hasQueryLength=function(){return Si(this,4)};g.getQueryScope=function(){return Vi(this,5,0)};g.setQueryScope=function(a){return rj(this,5,a)};g.hasQueryScope=function(){return Ti(this,5)};var rvc=function(a){this.internalArray_=m(a)};W(rvc,X);g=rvc.prototype;g.getLabel=function(){return Mr(this,1)};g.setLabel=function(a){return rj(this,1,a)};g.hasLabel=function(){return Ti(this,1)};g.getStatus=function(){return Mr(this,2)};g.setStatus=function(a){return rj(this,2,a)};g.hasStatus=function(){return Ti(this,2)};g.setLatencyUsec=function(a){xj(this,3,a)};g.getResultIndex=function(){return tt(this,4)};g.setResultIndex=function(a){nj(this,4,a)};
g.getDataSource=function(){return Mr(this,7)};g.setDataSource=function(a){return rj(this,7,a)};g.hasDataSource=function(){return Ti(this,7)};g.getItemCount=function(){return tt(this,8)};g.setItemCount=function(a){return nj(this,8,a)};g.hasItemCount=function(){return Si(this,8)};g.getLookupInfo=function(){return Fi(this,Jr,10)};g.setLookupInfo=function(a){return oj(this,Jr,10,a)};g.hasLookupInfo=function(){return Zi(this,Jr,10)};g.setStatusCode=function(a){rj(this,11,a)};
g.getQueryLength=function(){return tt(this,13)};g.setQueryLength=function(a){return nj(this,13,a)};g.hasQueryLength=function(){return Si(this,13)};g.getQueryScope=function(){return Vi(this,14,0)};g.setQueryScope=function(a){return rj(this,14,a)};g.hasQueryScope=function(){return Ti(this,14)};var svc=function(a){this.internalArray_=m(a)};W(svc,X);var i2=function(a){this.internalArray_=m(a)};W(i2,X);g=i2.prototype;g.getDataSource=function(){return Mr(this,3)};g.setDataSource=function(a){return rj(this,3,a)};g.hasDataSource=function(){return Ti(this,3)};g.getType=function(){return Mr(this,4)};g.setType=function(a){return rj(this,4,a)};g.hasType=function(){return Ti(this,4)};g.getValue=function(){return dj(this,2,1)};g.setValue=function(a){return xj(this,2,a)};g.hasValue=function(){return cj(this,2)};g.getLabel=function(){return Ej(this,1)};
g.setLabel=function(a){return qj(this,1,a)};g.hasLabel=function(){return Ii(this,1)};var j2=function(a){this.internalArray_=m(a)};W(j2,X);g=j2.prototype;g.setStatusCode=function(a){rj(this,5,a)};g.getLabel=function(){return Ej(this,1)};g.setLabel=function(a){return qj(this,1,a)};g.hasLabel=function(){return Ii(this,1)};g.getCause=function(){return Ej(this,2)};g.getType=function(){return Mr(this,3)};g.setType=function(a){return rj(this,3,a)};g.hasType=function(){return Ti(this,3)};var k2=function(a){this.internalArray_=m(a)};W(k2,X);g=k2.prototype;g.getType=function(){return Mr(this,3)};g.setType=function(a){return rj(this,3,a)};g.hasType=function(){return Ti(this,3)};g.setLatencyUsec=function(a){xj(this,2,a)};g.getLabel=function(){return Ej(this,1)};g.setLabel=function(a){return qj(this,1,a)};g.hasLabel=function(){return Ii(this,1)};var l2=function(a){this.internalArray_=m(a)};W(l2,X);l2.prototype.getLabel=function(){return Mr(this,1)};l2.prototype.setLabel=function(a){return rj(this,1,a)};l2.prototype.hasLabel=function(){return Ti(this,1)};var tvc=function(a){this.internalArray_=m(a)};W(tvc,X);g=tvc.prototype;g.getLabel=function(){return Mr(this,1)};g.setLabel=function(a){return rj(this,1,a)};g.hasLabel=function(){return Ti(this,1)};g.getStatus=function(){return Mr(this,2)};g.setStatus=function(a){return rj(this,2,a)};g.hasStatus=function(){return Ti(this,2)};g.setLatencyUsec=function(a){xj(this,3,a)};g.getErrorCode=function(){return Wm(this,4)};g.hasErrorCode=function(){return cj(this,4)};g.setStatusCode=function(a){rj(this,7,a)};
g.setBlockedUsec=function(a){return xj(this,8,a)};var m2=function(a){this.internalArray_=m(a)};W(m2,X);g=m2.prototype;g.getClientInterface=function(){return Fi(this,aQ,1)};g.setClientInterface=function(a){return oj(this,aQ,1,a)};g.getEventType=function(){return Mr(this,3)};g.getEventType_legacyNullable=function(){return Mr(this,3)};g.setEventType=function(a){return rj(this,3,a)};g.getCacheStatus=function(){return Fi(this,svc,12)};g.setCacheStatus=function(a){return oj(this,svc,12,a)};g.getCount=function(){return Fi(this,i2,4)};
g.setCount=function(a){return oj(this,i2,4,a)};g.getLatency=function(){return Fi(this,k2,5)};g.setLatency=function(a){return oj(this,k2,5,a)};g.getError=function(){return Fi(this,j2,6)};g.setError=function(a){oj(this,j2,6,a)};g.hasError=function(){return Zi(this,j2,6)};g.setRpcRequest=function(a){return oj(this,l2,7,a)};g.setRpcResponse=function(a){return oj(this,tvc,8,a)};g.setApiCall=function(a){return oj(this,qvc,9,a)};g.setApiResult=function(a){return oj(this,rvc,10,a)};var n2=function(a){this.internalArray_=m(a)};W(n2,X);n2.prototype.setDevice=function(a){return rj(this,1,a)};var uvc=function(a){this.internalArray_=m(a)};W(uvc,X);g=uvc.prototype;g.getAffinityType=function(){return Mr(this,1)};g.setAffinityType=function(a){return rj(this,1,a)};g.getQuery=function(){return Ej(this,2)};g.setQuery=function(a){return qj(this,2,a)};g.clearQuery=function(){st(this,2)};g.hasQuery=function(){return Ii(this,2)};g.setClientInformation=function(a){oj(this,n2,3,a)};g.setMaxResults=function(a){return nj(this,4,a)};var vvc=new UB("/peoplestack.PeopleStackAutocompleteService/Autocomplete",uvc,h2,function(a){return a.serialize()},fvc);var wvc=function(a){this.internalArray_=m(a)};W(wvc,X);g=wvc.prototype;g.getAffinityType=function(){return Mr(this,1)};g.setAffinityType=function(a){return rj(this,1,a)};g.setClientInformation=function(a){oj(this,n2,2,a)};g.getName=function(){return Ej(this,3)};g.setName=function(a){return qj(this,3,a)};g.hasName=function(){return Ii(this,3)};g.getNameOrUndefined=function(){return At(this,3)};var o2=function(a){this.internalArray_=m(a)};W(o2,X);o2.prototype.getGroup=function(){return Fi(this,c2,1)};o2.prototype.setGroup=function(a){oj(this,c2,1,a)};var xvc=new UB("/peoplestack.PeopleStackAutocompleteService/CreateGroup",wvc,o2,function(a){return a.serialize()},tc(o2));var p2=function(a){this.internalArray_=m(a)};W(p2,X);g=p2.prototype;g.getAffinityType=function(){return Mr(this,1)};g.setAffinityType=function(a){return rj(this,1,a)};g.setClientInformation=function(a){oj(this,n2,2,a)};g.setIdsList=function(a){om(this,3,a)};g.setIds=function(a){return rt(this,3,Lr,a)};p2.repeatedFields_=[3];var yvc=new UB("/peoplestack.PeopleStackAutocompleteService/Lookup",p2,ivc,function(a){return a.serialize()},jvc);var q2=function(a){this.internalArray_=m(a)};W(q2,X);q2.prototype.getAffinityType=function(){return Mr(this,1)};q2.prototype.setAffinityType=function(a){return rj(this,1,a)};q2.prototype.setClientInformation=function(a){oj(this,n2,2,a)};var zvc=function(a){this.internalArray_=m(a)};W(zvc,X);var Avc=new UB("/peoplestack.PeopleStackAutocompleteService/Warmup",q2,zvc,function(a){return a.serialize()},tc(zvc));var Bvc=function(a){var b={unaryInterceptors:[new grc]};b=b||{};b.format="jspb";this.client_=new zC(b);this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};Bvc.prototype.autocomplete=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},vvc)};Bvc.prototype.lookup=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},yvc)};
Bvc.prototype.createGroup=function(a,b){return RB(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},xvc)};var r2=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;e?a=z9a(e):(a=new Ir,y9a(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=Vi(c.getPeopleApi(),5,0);this.searchMaxResults_=hi(c.getClient(),2,10);this.cacheSize_=c.getClient().getCacheSize()};r2.prototype.getMetric=function(){return new Cvc(this.trackers_.metrics_,this.sourceInfo_)};
r2.prototype.send=function(a){var b=new uvc;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new n2).setDevice(1));this.query_.length?b.setMaxResults(this.searchMaxResults_):b.setMaxResults(this.cacheSize_);return this.grpcClient_.autocomplete(b,a)};r2.prototype.processResponse=function(a){var b=pvc(this.leanResponseProcessor_,a,this.provenance_),c=new Sr;Zi(a,g2,2)&&c.setAffinityVersion(Fi(a,g2,2).getAffinityVersion());return{data:b,metadata:c}};r2.prototype.close=function(){};var s2=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;a=new Ir;y9a(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=Vi(c.getPeopleApi(),5,0)};s2.prototype.getMetric=function(){return new Cvc(this.trackers_.metrics_,this.sourceInfo_)};
s2.prototype.send=function(a){var b=this,c=new p2;c.setAffinityType(this.affinity_).setClientInformation((new n2).setDevice(1));c.setIdsList(this.keys_.map(function(d){return G9a(b.type_,d)}).filter(function(d){return!!d}));return this.grpcClient_.lookup(c,a)};
s2.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=l(Ji(a,gvc,1));for(var e=a.next();!e.done;e=a.next())if(e=e.value,Tl(e,d2,2,hvc)){var f=ovc(b,Fl(e,d2,2,hvc),c);switch(e.getId().getIdCase()){case 1:d.set(e.getId().getEmail_legacyNullable(),f);break;case 2:d.set(e.getId().getPhone_legacyNullable(),f);break;case 3:d.set(e.getId().getProfileId_legacyNullable(),f)}}return{data:d,metadata:new Sr}};s2.prototype.close=function(){};var Dvc=function(a){this.internalArray_=m(a)};W(Dvc,X);var Evc=pc(342338249,{leanOfflineData:0},Dvc,function(a){if(null!=a){uc(a);var b=Fi(a,h2,1);null!=b?(uc(b),a=qc(Ji(b,d2,1),cvc),b=Fi(b,g2,2),null!=b?(uc(b),b={affinityVersion:rc(tt(b,1)),affinityThreshold:rc($p(b,2)),featureList:qc(Ji(b,dvc,3),evc),affinityType:rc(Ej(b,4))}):b=void 0,a={resultsList:a,affinityResponseContext:b}):a=void 0;return{leanAutocomplete:a}}});var Fvc=function(){};Fvc.prototype.write=function(a,b){var c=new Dvc;b=oj(c,h2,1,b);Fr(a,Evc,b)};Fvc.prototype.read=function(a){return(a=a.getExtension(Evc))?Fi(a,h2,1):null};var t2=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=z9a("");this.trackers_=c;this.affinity_=Vi(b.getPeopleApi(),5,0)};t2.prototype.getMetric=function(){return new Cvc(this.trackers_.metrics_,this.sourceInfo_)};t2.prototype.send=function(a){var b=new q2;b.setAffinityType(this.affinity_).setClientInformation((new n2).setDevice(1));var c=this.grpcClient_;return RB(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},Avc)};
t2.prototype.processResponse=function(){return{data:[],metadata:new Sr}};t2.prototype.close=function(){};var Gvc=new nSb;var u2=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};u2.prototype.send=function(a){var b=this;return Ne(function(c){return b.runtimeConfig_.isOffline_()?c.return(Gvc):c.return(b.delegate_.send(a))})};u2.prototype.getMetric=function(){return this.delegate_.getMetric()};u2.prototype.processResponse=function(a){return a===Gvc?this.offlineResponse_:this.delegate_.processResponse(a)};u2.prototype.close=function(a){this.delegate_.close(a)};
var Hvc={data:[],metadata:mj(new Sr,5,!0).setCode(14)},Ivc={data:new Map,metadata:mj(new Sr,5,!0).setCode(14)};mj(new Sr,5,!0).setCode(14);mj(new Sr,5,!0).setCode(14);mj(new Sr,5,!0).setCode(14);var Jvc=function(a){this.internalArray_=m(a)};W(Jvc,X);g=Jvc.prototype;g.getTimestamp=function(){return dj(this,1)};g.setTimestamp=function(a){return xj(this,1,a)};g.hasTimestamp=function(){return cj(this,1)};g.getOwner=function(){return Hi(this,2)};g.setOwner=function(a){return qj(this,2,a)};var Kvc=pc(342656659,{metadata:0},Jvc,function(a){if(null!=a)return uc(a),{timestamp:rc(Wm(a,1)),owner:rc(Ej(a,2))}});var v2=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null};v2.prototype.store_=function(a,b){var c=new Qmc;Fr(c,Kvc,(new Jvc).setTimestamp(b).setOwner(String(this.owner_)));this.offlineDataTransformer_.write(c,a);this.offlineStorage_.store(c)};
var Lvc=function(a){var b,c;return Ne(function(d){if(1==d.nextAddress)return Oe(d,2),d.yield(a.offlineStorage_.fetch(),4);if(2!=d.nextAddress){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Kvc);c=a.offlineMetadata_?q8b(a.offlineMetadata_.getOwner()):Cr;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):d.return(null)}Re(d);return d.return(null)})};
v2.prototype.send=function(a){var b=this,c,d,e,f,h;return Ne(function(k){switch(k.nextAddress){case 1:return Oe(k,2),k.yield(b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Gvc){k.jumpTo(5);break}return k.yield(Lvc(b),6);case 6:return e=k.yieldResult,k.return(e||Gvc);case 5:return setTimeout(function(){b.store_(c,d)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=Re(k),k.yield(Lvc(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};
v2.prototype.getMetric=function(){return this.delegate_.getMetric()};v2.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(this.offlineMetadata_.getTimestamp());return a};v2.prototype.close=function(a){this.delegate_.close(a)};var Mvc=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;b={apiKey:b.runtimeConfig_.getApiKey()||(7===b.runtimeConfig_.getPeopleApiEnv()?Hi(b.getGapi(),2,""):b.getGapi().getApiKey()),timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new hrc(b);b=TJa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new Bvc(b);this.offlineDataTransformer_=
new Fvc;a=Ri(a.getClient(),22,!1);this.leanResponseProcessor_=new kvc({allowEmptyTargets:a})};g=Mvc.prototype;
g.loadRankedItems=function(){var a=new r2(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new u2(a,this.config_.runtimeConfig_,Hvc);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=xr(e),b=hi(b.getPeopleApi(),14,5E3),a=new v2(a,d,c,e,b))}return u0(this.dispatcher_,a)};
g.warmUpServer=function(){var a=new t2(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new u2(a,this.config_.runtimeConfig_,Hvc);return u0(this.dispatcher_,a)};g.loadAutocompleteItems=function(a){a=a.getPrefix();a=new r2(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a);a=new u2(a,this.config_.runtimeConfig_,Hvc);return u0(this.dispatcher_,a)};
g.loadLookupItems=function(a,b){a=new s2(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new u2(a,this.config_.runtimeConfig_,Ivc);return u0(this.dispatcher_,a)};g.loadContactItems=function(){};var I9a=new Map([[1,1],[2,2]]);var L9a=new Map([[3,3],[1,2],[2,1]]),Nvc=new Map([[2,1],[4,2],[3,3],[1,4]]),Ovc=function(a){this.delegate_=a};
Ovc.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=b.getValue()||"";c=vr(a.id).setValue(c);if(Ji(b,R1,2).length||Zi(b,S1,3)){var d=1;if(Ji(b,R1,2).length){var e=Ji(b,R1,2)[0];Wm(e,1);d=Nvc.get(e.getStatus())||d}Zi(b,S1,3)&&Fi(b,S1,3);4===(void 0===d?1:d)&&Date.now()}Zi(b,T1,4)&&(b=J9a(Fi(b,T1,4)),c.orgState_=b);Er(a.contactMethod,7)&&(c.resultType_=2);b=c;break;case 3:b=a.contactMethod.getPhone();
b=b.getOriginalValue()||b.getDisplayValue()||Ej(b,2)||"";b=vr(a.id).setValue(b);break;case 4:b=Fl(a.contactMethod,yr,4,zr);b=O9a(a,b);break;default:b=vr(a.id||Cr)}b.setDataSource(a.dataSource||0);a.containerIds&&(b.sourceIds_=a.containerIds||[]);a9a(b,!!a.isMe);a.person&&a.person.hasAffinity()&&b.setPersonLoggingId(K9a(lca(bq(a.person.getAffinity(),1))||""));a.contactMethod.hasDisplayInfo()&&M9a(b,a.contactMethod.getDisplayInfo());Ii(a.contactMethod,10)&&c9a(b,[d9a(a.contactMethod.getTypeLabel())]);
a.targetExtendedData&&(b.extendedData_=a.targetExtendedData);a.target=b}else a.group?R9a(a,a.group.getDisplayInfo()):a.contactLabel&&R9a(a,a.contactLabel.getDisplayInfo());this.delegate_.processItem(a);a.contactMethod&&delete a.contactMethod;a.person&&delete a.person;a.group&&delete a.group;a.contactLabel&&delete a.contactLabel};var Cvc=function(a,b){this.metrics_=a;this.state_=new lQ(b)};g=Cvc.prototype;g.start=function(a){this.metrics_.start(this.state_,a)};g.stop=function(a){this.metrics_.stop(this.state_,a)};g.count=function(){this.metrics_.count(this.state_)};g.latency=function(){this.metrics_.latency(this.state_)};g.error=function(){this.metrics_.error(this.state_)};
g.status=function(a,b,c){b=void 0===b?0:b;c=void 0===c?0:c;if(b){var d=this.state_.source();rj(d,13,b)}c&&(b=this.state_.source(),nj(b,12,c));this.metrics_.status(this.state_,a)};g.logError=function(a,b){this.metrics_.logError(a,b)};var w2=function(a){this.metrics_=a};w2.prototype.error=function(a,b){var c=this.metrics_,d=new Ir;a=d.setEventType(3).setErrorType(a);rj(a,7,b);return new nuc(c,d)};w2.prototype.latency=function(a){var b=this.metrics_,c=new Ir,d=c.setEventType(2);rj(d,5,a);return new v0(b,c)};w2.prototype.count=function(a){var b=this.metrics_,c=new Ir,d=c.setEventType(1);rj(d,4,a);return new muc(b,c)};w2.prototype.api=function(a){return new luc(this.metrics_,a)};var Pvc=function(a,b){this.ranker_=new huc(a.getClient());this.loader_=new Mvc(a,b);b=yuc;b=void 0===b?yuc:b;this.targetFactory_=new Iuc(a,new Ovc(b))};var Qvc=function(){this.cacheConfigurators_=[];this.grpcClient_=null};var S9a=function(a){this.delegate_=a};W(S9a,BY);var Rvc=function(a){this.keys_=new Set(a)};Rvc.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};Rvc.prototype.isDone=function(){return!this.keys_.size};var Svc=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new Rvc(a)};Svc.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};Svc.prototype.isDone=function(){return this.delegate_.isDone()};var Tvc=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};var Uvc=new as,Vvc=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=A1(hi(c,31,5),1E3*El(c,32,3600))};g=Vvc.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return Ne(function(h){if(1==h.nextAddress){c=a.getBoostKey();if(!c.cacheKey||b.indexes_.get(c.cacheKey))return h.return(Uvc);d=c.ids.map(function(k){if(n8b.includes(q8b(k).getType()))return k;var q=x2(b.itemResolver_,k);return q?String(q.id):k});e=new Svc(d);return h.yield(Wvc(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=h.yieldResult;b.indexes_.set(c.cacheKey,f);return h.return(Uvc)})};
g.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return(this.indexes_.get(b.cacheKey)||y1).search(a.getTerms()).getMatches(a.getCollector()).map(T9a)};g.index=function(){};var Xvc=new E1(60,61,34);var Yvc=function(){};Yvc.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();Ri(a,30,!1)&&(b=new Vvc(b,d,a),c=new F1(b,c,Xvc),e.unshift(c))};var Zvc=function(){return Date.now()},$vc=function(a,b,c){this.staleMillis_=1E3*a;this.expiredMillis_=1E3*b;this.nowFn_=c;this.timestamp_=0};g=$vc.prototype;g.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};g.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};g.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};g.getTimestamp=function(){return this.timestamp_};g.setTimestamp=function(a){this.timestamp_=a};
g.markAsFresh=function(){this.timestamp_=this.nowFn_()};g.markAsStale=function(){var a=this.nowFn_()-this.staleMillis_;a<this.timestamp_&&(this.timestamp_=a)};var V9a=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),U9a=new Map([[1,7],[2,5]]);var awc=function(a,b){this.delegate_=a;this.extendedData_=b};W(awc,BY);awc.prototype.getExtendedData=function(){return this.extendedData_};var bwc=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=er(this.group_.getId())?this.members_.length:c;this.resultType_=kqc.get(this.group_.getTargetType())||0};g=bwc.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return[this.group_]};g.getMemberList=function(){return this.members_};g.getTotalMemberCount=function(){return this.totalMemberCount_};g.getPrimaryTarget=function(){throw Error("ve");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getMatchInfo=function(){return jqc};g.getExtendedData=function(){return null};var X9a=function(a,b){this.delegate_=a;this.loggingToken_=b};W(X9a,Jmc);X9a.prototype.getLoggingToken=function(){return this.loggingToken_};var cwc=function(a){this.itemResolver_=a};cwc.prototype.create=function(a,b){var c=this,d=q8b(a);a=x2(this.itemResolver_,a);if(!a)return null;if(dr(d))return d=(a.memberKeys||[]).map(function(h){return c.create(h,b)}).filter(Boolean),this.createGroup(a,d,b);var e,f=2===b&&1<(null==(e=a.coalescedKeys)?void 0:e.length)?a.coalescedKeys.map(function(h){return x2(c.itemResolver_,h)}).filter(Boolean):[a];return dwc(f,d,b)};
var dwc=function(a,b,c){var d=[],e=0,f=null,h=null;a=l(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var q=k.target,u=q.getId().equals(b);if(!e||u)e=q.getResultType();q=Y9a(q,k.provenance,c);u?(h=void 0,f=null!=(h=k.totalMemberCount)?h:null,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=Q5a(e,d,f);return h?new awc(b,h):b};
cwc.prototype.createGroup=function(a,b,c){c=Y9a(a.target,a.provenance,c);var d,e=null!=(d=a.totalMemberCount)?d:null;b=new dq(new bwc(c,null!=b?b:[],null!=e?e:null));return(a=a.resultExtendedData)?new awc(b,a):b};var Z9a=[1,2,3,4,5,6,9,7,8],ewc=function(a,b){this.targetFactory_=a;this.resultFactory_=new cwc(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=void 0===d?Zvc:d;this.expiry_=new $vc(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=A1(hi(b,6,500),1E3*hi(b,7,43200));this.idTypes_=new Set(kj(b,25))};ewc.prototype.load=function(a,b){var c;return null!=(c=this.resultFactory_.create(a,b))?c:null};
var x2=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};g=ewc.prototype;g.getExpiry=function(){return this.expiry_};g.getAffinityVersion=function(){return this.affinityVersion_};g.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(a.getTimestamp()):this.expiry_.markAsFresh();this.lruStorage_.compact()};g.markAsStale=function(){this.expiry_.markAsStale()};
g.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};g.storeItems=function(a,b,c,d){c=void 0===c?!1:c;if(d=void 0===d?"":d){var e=b.findIndex(function(h){return String(h.id)===d});if(0<e){var f=b[e];b.splice(e,1);b.unshift(f)}}c&&b.reverse();b=l(b);for(e=b.next();!e.done;e=b.next())this.store_(a,e.value,c,d)};
g.store_=function(a,b,c,d){if(!this.idTypes_.size||!n8b.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),h=(b.containerIds||[]).map(String),k=fwc(this,a,f);gwc(this,a,f,b,c)&&(k(f,b),e=!0);h=l(h);for(var q=h.next();!q.done;q=h.next())q=q.value,gwc(this,a,q,b,c)&&(k(q,b),e=!0);b.isMe&&(h=String(p8b),gwc(this,a,h,b,c)&&(k(h,b),e=!0));d&&f!==d&&gwc(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var gwc=function(a,b,c,d,e){var f=x2(a,c);if(!f)return!0;1===b&&a.lruStorage_.has(c)&&(b=a.lruStorage_.get(c),a.ttlStorage_.set(c,b),a.lruStorage_.delete(c));return e&&(f.id.equals(d.id)||String(f.id)!==c)?!0:f.id.equals(d.id)?a$a(d)&&!a$a(f)||hwc(a,f)<hwc(a,d)||$9a(d)<$9a(f)||18===d.id.getType()&&18===f.id.getType()?!0:!1:String(d.id)===c},hwc=function(a,b){b.target||a.targetFactory_.processItem(b);a=b.target;b=0;if(a.getPhoto())switch(a.getPhoto().getType()){case 3:b|=2;break;case 2:b|=1}a.getName()&&
a.getName().getDisplayName()&&(b|=4);return b},fwc=function(a,b,c){return a.ttlStorage_.has(c)||1===b?function(d,e){return a.ttlStorage_.set(d,e)}:function(d,e){return a.lruStorage_.set(d,e)}};var iwc=function(a){this.qos=a};iwc.prototype.getIndex=function(){return String(this.qos)};var jwc=new iwc(1),kwc=new iwc(2);var lwc=function(a,b){this.loader_=a;this.storage_=b;this.contacts_=[];this.totalItems_=0;this.pendingRequest_=null;this.requestId_=0;this.nextPageToken_="";this.isCompleted_=!1},nwc=function(a){if(a.isCompleted_)return Promise.resolve(q1(new as,!1).setProvenance(5).setCode(0));a.pendingRequest_||(a.pendingRequest_=(new Promise(function(b,c){mwc(a,a.requestId_,function(d){a.isCompleted_=!0;b(d)},function(d){c(d)})})).finally(function(){a.pendingRequest_=null}));return a.pendingRequest_};
lwc.prototype.flush=function(){this.requestId_++;this.contacts_=[];this.totalItems_=0;this.nextPageToken_="";this.pendingRequest_=null;this.isCompleted_=!1};
var mwc=function(a,b,c,d){a.loader_.loadContactItems(a.nextPageToken_,kwc).then(function(e){if(b!==a.requestId_)d(q1(new as,!0).setProvenance(5).setCode(1));else{var f=e.metadata;a.totalItems_=f.getTotalItems();a.nextPageToken_=f.getNextPageToken();Array.prototype.push.apply(a.contacts_,e.ids);a.storage_.storeItems(1,e.data);a.nextPageToken_?mwc(a,b,c,d):(a.totalItems_=a.contacts_.length,c(q1(new as,!0).setProvenance(5).setCode(0)))}},function(e){e=isFinite(e)?e:13;d(q1(new as,!0).setProvenance(5).setCode(e))})};
lwc.prototype.list=function(a,b,c,d,e){var f=this,h=e.getFilter();h&&h.reset("");var k=function(){return{results:f.contacts_.slice(a,b).map(function(q){return f.storage_.load(String(q),c)}).filter(function(q){return q&&(!h||h.filterResult(q))}),begin:a,end:b,totalItems:f.totalItems_}};this.contacts_.length>=b?d(k(),q1(new as,!1).setProvenance(5).setCode(0)):nwc(this).then(function(q){d(k(),q)},function(q){q instanceof as||(q=(new as).setCode(13));d({results:[],begin:a,end:b,totalItems:0},q)})};var b$a=function(a,b){this.delegate_=a;this.displayValue_=b};W(b$a,Jmc);b$a.prototype.getDisplayValue=function(){return this.displayValue_};var d$a=function(){};d$a.prototype.createFromQuery=function(a){var b=a.getPrefix();if(0!==a.getCollector().resultCount()||!a.isEmailAddress())return null;b=vr(xr(b)).setValue(b).setDataSource(3);b=Q5a(b.getResultType(),[b],null);return(a=a.getResultFilter())?a.filterResult(b):b};d$a.prototype.createFromLookupId=function(a){if(1!==a.getType()||!g8b(a.getValue()))return null;a=vr(a).setValue(a.getOriginalValue()).setDataSource(3);return Q5a(a.getResultType(),[a],null)};var owc=function(){};owc.prototype.createFromQuery=function(){return null};owc.prototype.createFromLookupId=function(){return null};var e$a=new owc;var pwc=function(a,b,c,d,e){this.format=b;this.listener=c;this.options=d;this.callbackNumber=0;this.hasErrorCode=!1;this.remainingIds=new Map(a.map(function(f){return[String(f),f]}));this.notNotifiedIds=new Map(a.map(function(f){return[String(f),f]}));this.placeholderFactory=f$a(e.getClient())};g=pwc.prototype;g.isCancelled=function(){return!1};g.getFormat=function(){return this.format};g.getOptions=function(){return this.options};g.queryScope=function(){return this.options.getQueryScope()};
g.getResultFilter=function(){return this.options.getFilter()};g.isDone=function(){return 0===this.remainingIds.size};var kuc=function(a){return Array.from(a.remainingIds.values())};pwc.prototype.hasError=function(){return this.hasErrorCode};
pwc.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||g$a(c.getCode())){var d=new Map,e=this.getResultFilter();a=l(a);for(var f=a.next();!f.done;f=a.next()){var h=l(f.value);f=h.next().value;h=h.next().value;this.notNotifiedIds.delete(String(f));if(h=e?e.filterResult(h):h)d.set(f,h),this.remainingIds.delete(String(f))}a=[];b=l(b);for(f=b.next();!f.done;f=b.next())f=f.value,this.notNotifiedIds.delete(String(f)),this.remainingIds.delete(String(f)),(h=this.placeholderFactory.createFromLookupId(f))&&
e&&(h=e.filterResult(h)),h?d.set(f,h):a.push(f);d=c$a(d,this.options);g$a(c.getCode())&&(this.hasErrorCode=!0);e=(new Ztc).setCallbackNumber(this.callbackNumber).setIsFirstCallback(0===this.callbackNumber).setIsLastCallback(this.isDone()).setCode(c.getCode());e.notFoundIdList_=a;d=new $tc(d,e);this.callbackNumber++;this.listener(d,c)}};var qwc=function(a,b,c){this.stages=a;this.indexer=b;this.clientConfig=c};qwc.prototype.flush=function(){this.indexer.flush()};
qwc.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,u,x;return Ne(function(y){switch(y.nextAddress){case 1:null==(f=d.getFilter())||f.reset(""),h=new pwc(a,b,c,d,e.clientConfig),k=new Set,1!==h.queryScope()&&2!==h.queryScope()||k.add(2),3===h.queryScope()&&k.add(1),q=l(e.stages),u=q.next();case 2:if(u.done){y.jumpTo(4);break}x=u.value;if(h.isDone()||h.isCancelled()){y.jumpTo(4);break}if(k.has(x.getStageType())){y.jumpTo(3);break}return y.yield(x.lookup(h),3);case 3:u=q.next();y.jumpTo(2);break;
case 4:if(!h.isDone()){if(0===h.queryScope()&&!h.hasError()){var E=e.indexer,H=Array.from(h.notNotifiedIds.values());H=l(H);for(var J=H.next();!J.done;J=H.next())J=String(J.value),E.notFoundIds.set(J,J)}h.notify(new Map,kuc(h),q1((new as).setProvenance(10),!1).setCode(0))}e.indexer.compact();return y.return()}})};var rwc=function(a,b){this.storage=a;a=b.getClient();this.notFoundIds=A1(hi(a,10,500),1E3*El(a,11,600))};g=rwc.prototype;g.compact=function(){this.notFoundIds.compact()};g.flush=function(){this.notFoundIds.clear()};g.store=function(a,b,c,d){if(!Ri(c,5))for(mj(c,5,!0),b=l(b),c=b.next();!c.done;c=b.next()){var e=l(c.value);c=e.next().value;e=e.next().value;c=String(ur(a,String(c)));this.storeItems(e,d,c)}};g.storeItems=function(a,b,c){this.storage.storeItems(2,a,b,c)};
g.load=function(a,b,c){b=this.storage.load(String(a),b);c&&b&&(b=rXa(a).filterResult(b));return b};var swc={ids:[],cacheKey:"",primingTimeoutMillis:0};var twc=function(){};twc.prototype.loadOrSkip=function(){return null};twc.prototype.resultCount=function(){return 0};twc.prototype.isDone=function(){return!0};var uwc=new twc;var vwc=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=uwc;this.boostKey_=swc;this.listener_=function(){}};g=vwc.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.format_};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return!0};g.isCancelled=function(){return!0};
g.isSuggestQuery=function(){return!0};g.isEmailAddress=function(){return!1};g.queryScope=function(){return 0};g.getResultFilter=function(){return null};var wwc=new vwc;var xwc=function(){this.fetchDone_=Promise.resolve((new as).setCode(0))};g=xwc.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};var ywc=new xwc;var zwc=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return 1===b.getCacheType()})||ywc;this.prefetched_=a.filter(function(b){return 2===b.getCacheType()||1===b.getCacheType()});this.lazyLoaded_=a.filter(function(b){return 3===b.getCacheType()})};
zwc.prototype.prefetch=function(a){var b=this,c,d,e,f,h;return Ne(function(k){if(1==k.nextAddress)return k.yield(b.primary_.fetch(a),2);if(3!=k.nextAddress){c=k.yieldResult;if(0!==c.getCode())return k.return(c);d=l(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();h=b.prefetched_.filter(function(q){return q!==b.primary_}).map(function(q){q.flush();return q.fetch(a)});return h.length?k.yield(Promise.all(h),3):k.jumpTo(3)}return k.return(c)})};
zwc.prototype.warmUpSession=function(a){var b=this;if(1===a.queryScope())return Promise.resolve([(new as).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});2!==a.queryScope()&&c.push.apply(c,p(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var Awc=function(a){var b=[a.primary_].concat(p(a.prefetched_.filter(function(d){return d!==a.primary_})),p(a.lazyLoaded_)).reverse();b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Bwc=function(a,b){var c=[];a=l(a.prefetched_);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(b.isDone()||b.isCancelled())break;c.push.apply(c,p(d.search(b)))}return c},Dwc=function(a,b,c){var d,e,f,h;return Ne(function(k){if(1==k.nextAddress){if(2===b.queryScope())return k.return();d=a.lazyLoaded_[a.lazyLoaded_.length-
1];e=l(a.lazyLoaded_);f=e.next()}if(3!=k.nextAddress){if(f.done)return k.jumpTo(0);h=f.value;return b.isDone()||b.isCancelled()?k.return():k.yield(Cwc(h,b,c,d===h),3)}f=e.next();return k.jumpTo(2)})},Cwc=function(a,b,c,d){var e,f;return Ne(function(h){if(1==h.nextAddress)return 1===b.queryScope()?(e=q1((new as).setProvenance(6).setCode(0),!1),h.jumpTo(2)):h.yield(a.fetch(b),3);2!=h.nextAddress&&(e=h.yieldResult);if(b.isCancelled())return h.return();f=a.search(b);c(f,e,d);Se(h)})};var Ewc=function(a,b,c,d,e,f){this.clientInfo_=a.getClient();this.trackers_=b;this.storage_=f;this.lookupCache_=d;this.listCache_=e;this.prefixSearch_=c;this.sessionWarming_=this.cacheWarming_=null};g=Ewc.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
g.warmUpCache=function(){y2(this,wwc);return this.cacheWarming_&&this.storage_.getExpiry().isExpired()?this.cacheWarming_:Promise.resolve(t1(s1((new r1).setSource(q1(new as,!1).setProvenance(1).setCode(0)),z2(this)),z2(this)))};g.flushCache=function(a){switch(a){case 2:return Fwc(this),Promise.resolve(new r1);case 1:return this.storage_.markAsStale(),Promise.resolve(new r1);default:return this.warmUpCache()}};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return Ne(function(k){switch(k.nextAddress){case 1:c=s1(new r1,z2(b));y2(b,a);if(!b.cacheWarming_){k.jumpTo(2);break}return k.yield(b.cacheWarming_,2);case 2:return Oe(k,4,5),b.sessionWarming_||(b.sessionWarming_=b.prefixSearch_.warmUpSession(a)),k.yield(b.sessionWarming_,7);case 7:return d=k.yieldResult,e=d.find(function(q){return 2===q.getProvenance()})||(new as).setProvenance(2).setCode(0),k.return(t1(c.setSource(e),z2(b)));case 5:Pe(k);b.sessionWarming_=
null;Qe(k,0);break;case 4:return f=Re(k),h=f instanceof as?f:(new as).setProvenance(2).setCode(13),k.return(Promise.reject(t1(c.setSource(h),z2(b))))}})};
g.search=function(a){var b=this,c,d,e,f,h;return Ne(function(k){switch(k.nextAddress){case 1:Gwc(b);Oe(k,2);d=z2(b);y2(b,a);if(!a.isSuggestQuery()){k.jumpTo(4);break}if(!b.cacheWarming_){k.jumpTo(5);break}e=b.storage_.getExpiry().isExpired();if(!e){k.jumpTo(5);break}return k.yield(b.cacheWarming_,7);case 7:c=k.yieldResult;case 5:if(!b.sessionWarming_){k.jumpTo(4);break}return k.yield(b.sessionWarming_,4);case 4:return c||(c=t1(s1((new r1).setSource(q1(new as,!1).setProvenance(1).setCode(0)),d),z2(b)),
y2(b,a)),k.yield(Hwc(b,a,c),10);case 10:$s(k,0);break;case 2:f=Re(k);if(a.isCancelled())return k.return();f instanceof r1?c=f:(h=f instanceof as?f:(new as).setCode(13),t1(c.setSource(h),z2(b)));a.getListener()(new v1([],(new u1).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));Se(k)}})};
var Hwc=function(a,b,c){var d,e,f,h;return Ne(function(k){if(1==k.nextAddress){if(b.isCancelled())return k.return();d=Bwc(a.prefixSearch_,b);e=(new u1).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new v1(d,e));if(e.getIsLastCallback())return k.return();f=!1;return k.yield(Dwc(a.prefixSearch_,b,function(q,u,x){u=(new u1).setIsLastCallback(x).setQuery(b.getPrefix()).setCode(u.getCode()).setCacheState(t1(s1((new r1).setSource(u),
Xr(c,2)),z2(a)));b.getListener()(new v1(q,u));u.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(h=(new u1).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(t1(s1((new r1).setSource((new as).setProvenance(10).setCode(0)),Xr(c,2)),z2(a))),b.getListener()(new v1([],h)));Se(k)})};
Ewc.prototype.lookup=function(a,b,c){var d=this;Gwc(this);y2(this,wwc);var e=s1(new r1,z2(this));this.lookupCache_.lookup(a,Vi(this.clientInfo_,17,1),function(f,h){e.setSource(h);t1(e,z2(d));f.getMetadata().setCacheState(e);b(f)},c)};
Ewc.prototype.list=function(a,b,c,d){var e=this;y2(this,wwc);var f=s1(new r1,z2(this));this.listCache_.list(a,b,Vi(this.clientInfo_,18,1),function(h,k){var q=h.results;var u=new Wtc;u=nj(u,1,h.begin);c(new Xtc(q,u.setEnd(h.end).setTotalItems(h.totalItems).setCode(k.getCode()).setCacheState(t1(f.setSource(k),z2(e)))))},d)};
var y2=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&Fwc(a),!a.cacheWarming_)){var c=z2(a);a.cacheWarming_=new Promise(function(d,e){var f,h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:return f=s1(new r1,c),Oe(u,2,3),u.yield(a.prefixSearch_.prefetch(b),5);case 5:h=u.yieldResult,t1(f,z2(a)).setSource(h),d(f);case 3:Pe(u);a.cacheWarming_=null;Qe(u,0);break;case 2:k=Re(u),q=k instanceof as?k:(new as).setCode(13),
t1(f,z2(a)).setSource(q),e(f),u.jumpTo(3)}})})}},z2=function(a){return a.storage_.getExpiry().getStatus()},Fwc=function(a){Awc(a.prefixSearch_);a.lookupCache_.flush();a.listCache_.flush();a.storage_.flush()},Gwc=function(a){var b=1===z2(a)?1:2;a.trackers_.count(b).increment()};var Iwc=function(a){this.itemResolver_=a},Jwc=function(a,b,c){c=void 0===c?[]:c;var d=b.target,e=d.getName();e&&(c.push(e.getDisplayName()),c.push(e.getGivenName()),c.push(e.getFamilyName()));if(e=d.getDisplayValue())switch(d.getTargetType()){case 2:case 7:var f=c.push,h=f.apply,k=e.split(buc).filter(Boolean),q=k.length-1;if(0<q){var u=k.join("-"),x=k.join(".");k.push(u);for(k.push(x);0<q;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(L8a,""));"+"===e[0]&&k.push("+"+k[0]);h.call(f,c,p(k));break;default:c.push(e)}if(!c.length&&
b.memberKeys&&b.memberKeys.length&&10!==d.getTargetType())for(b=l(b.memberKeys),d=b.next();!d.done;d=b.next())(d=x2(a.itemResolver_,d.value))&&Jwc(a,d,c);return c};var Kwc=new Ytc,Lwc=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new Iwc(a);this.trieRoots_=new Map},Wvc=function(a,b,c,d){var e=(a.trieRoots_.get(c)||y1).cloneNode(b);if(b.isDone())return a.trackers_.count(120).increment(),Promise.resolve(e);var f=a.trackers_.latency(95);f.start();var h=new Promise(function(k){var q=Tvc(b).map(q8b);a.lookupCache_.lookup(q,c,function(u){var x=Array.from(u.getResults().keys(),String);x=Mwc(a,x);Array.prototype.push.apply(e.items_,
x);duc(e);u.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},Kwc)});return i$a(h,e,d)},D1=function(a,b){a=Mwc(a,b);return new x1(a)},Mwc=function(a,b){var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=x2(a.itemResolver_,d);e&&(e=Jwc(a.indexer_,e),c.push(new cuc(d,e)))}return c};var Nwc=function(){this.queryId_=0};Nwc.prototype.getQueryId=function(){return this.queryId_};var Owc=function(a){this.delegate=a};g=Owc.prototype;g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.warmUpCache=function(){return this.delegate.warmUpCache()};g.flushCache=function(a){return this.delegate.flushCache(a)};g.warmUpSession=function(a){var b=this;return Ne(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return Ne(function(c){return c.return(b.delegate.search(a))})};
g.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};g.list=function(a,b,c,d){this.delegate.list(a,b,c,d)};var Pwc=function(){this.delegate=Lmc};Pwc.prototype.filterResult=function(a){return this.delegate.filterResult(a)};Pwc.prototype.reset=function(a){this.delegate.reset(a)};var Qwc=function(a,b){a.delegate=null!=b?b:Lmc};var Rwc=function(a){this.delegate=a};g=Rwc.prototype;g.getPrefix=function(){return this.delegate.getPrefix()};g.getTerms=function(){return this.delegate.getTerms()};g.getFormat=function(){return this.delegate.getFormat()};g.getCollector=function(){return this.delegate.getCollector()};g.getBoostKey=function(){return this.delegate.getBoostKey()};g.getListener=function(){return this.delegate.getListener()};g.isDone=function(){return this.delegate.isDone()};g.isCancelled=function(){return this.delegate.isCancelled()};
g.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};g.isEmailAddress=function(){return this.delegate.isEmailAddress()};g.queryScope=function(){return this.delegate.queryScope()};g.getResultFilter=function(){return this.delegate.getResultFilter()};var A2=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};A2.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};A2.prototype.resultCount=function(){return this.count_};A2.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};var Swc=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();0<c.limit&&(d=new A2(d,c.limit));this.collector=d;this.listener=function(h){var k=h.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(h)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?tXa.apply(null,p(d)):null;var f;this.scope=null!=(f=c.scope)?f:a.queryScope()};W(Swc,Rwc);g=Swc.prototype;g.getCollector=function(){return this.collector};
g.getListener=function(){return this.listener};g.isDone=function(){return this.collector.isDone()};g.getResultFilter=function(){return this.resultFilter};g.queryScope=function(){return this.scope};var Twc=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};W(Twc,Owc);
Twc.prototype.search=function(a){var b=this,c,d,e,f,h,k;return Ne(function(q){switch(q.nextAddress){case 1:c=new Set,a.isSuggestQuery()?c.add(2):c.add(1),a.isEmailAddress()||c.add(3),d=b.slots.filter(function(u){return!c.has(u.visibility)}),e=d.map(function(u,x){return new Swc(a,b.originalFilter,u,x===d.length-1)}),f=l(e),h=f.next();case 2:if(h.done){q.jumpTo(4);break}k=h.value;if(a.isCancelled()||a.isDone()){q.jumpTo(4);break}Qwc(b.filterInterceptor,k.getResultFilter());return q.yield(b.delegate.search(k),
3);case 3:h=f.next();q.jumpTo(2);break;case 4:return q.return()}})};var B2=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=O8a([b]);this.id_=xr(b);this.listener_=function(e){var f=e.getResults().map(function(h){if(d.id_.equals(h.getPrimaryTarget().getId())&&h.getDisplayName()!==c){var k=(new b9a).setDisplayName(c),q=h.getPrimaryTarget();h=nXa(h,new Kmc(q,k))}return h});e=new v1(f,e.getMetadata());a.getListener()(e)}};W(B2,Rwc);B2.prototype.getPrefix=function(){return this.query_};B2.prototype.getTerms=function(){return this.terms_};
B2.prototype.getListener=function(){return this.listener_};var Uwc=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new Nwc;this.clientInfo_=c};g=Uwc.prototype;g.warmUpSession=function(a){a=Vwc(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=Vwc(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=Vwc(this.queryFactory_,a,this.querySession_,c,b);Ri(this.clientInfo_,28,!1)&&(b=a.getPrefix(),b.includes("<")&&(c=e8b(b),c.isValid()||(c=e8b(b+">")),a=c.isValid()&&c.getName()?new B2(a,c.getAddress(),c.getName()):a));this.cache_.search(a)};g.cancel=function(){++this.querySession_.queryId_};g.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
g.getReporter=function(){throw Error("Wa");};g.getSessionState=function(){throw Error("Wa");};g.getHide=function(){throw Error("Wa");};var Wwc=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=Ri(c,34,!1)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new Pwc;e.setFilter(q);e=new Twc(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};g=Wwc.prototype;g.warmUpCache=function(){return this.cache_.warmUpCache()};g.flushCache=function(a){this.cache_.flushCache(a)};g.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};
g.list=function(a,b,c,d){this.cache_.list(a,b,c,d)};g.beginSession=function(a){a=this.getSessionCache_(a);return new Uwc(a,this.queryFactory_,this.clientInfo_)};var Xwc=function(a,b,c,d,e,f,h){this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=h;this.listener_=j$a(this,f);this.isEmailAddress_=null};g=Xwc.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.delegate_.getFormat()};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return this.collector_.isDone()};
g.isCancelled=function(){return this.delegate_.isCancelled()};g.isSuggestQuery=function(){return!this.prefix_};g.isEmailAddress=function(){null===this.isEmailAddress_&&(this.isEmailAddress_=g8b(this.prefix_));return this.isEmailAddress_};g.queryScope=function(){return this.delegate_.queryScope()};g.getResultFilter=function(){return this.filter_};var Ywc=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};Ywc.prototype.getFormat=function(){return this.format_};Ywc.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};Ywc.prototype.queryScope=function(){return this.queryScope_};var C2=function(){this.foundKeys_=new Set};W(C2,CY);C2.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};C2.prototype.has=function(a){return this.foundKeys_.has(a)};C2.prototype.add=function(a){this.foundKeys_.add(a)};C2.prototype.reset=function(){this.foundKeys_.clear()};var Zwc=function(a){this.delegate_=a;this.filter_=new C2};Zwc.prototype.loadOrSkip=function(a){if(this.filter_.has(a))return null;a=this.delegate_.loadOrSkip(a);if(!a)return null;a=this.filter_.filterResult(a);if(!a)return null;for(var b=l(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};Zwc.prototype.resultCount=function(){return this.delegate_.resultCount()};Zwc.prototype.isDone=function(){return this.delegate_.isDone()};var $wc=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};$wc.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};$wc.prototype.resultCount=function(){return this.delegate_.resultCount()};$wc.prototype.isDone=function(){return this.delegate_.isDone()};var axc=function(a,b){this.storage_=a;this.format_=b};axc.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};axc.prototype.resultCount=function(){return 0};axc.prototype.isDone=function(){return!1};var bxc=[198,230,306,307,338,339],cxc=function(a){this.matchers_=a.map(function(b){return new RegExp("(?:^|[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+|\\b)"+Wn(b),"g")})},k$a=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=tr(M8a(b)).replace(N8a,"").toUpperCase().toLowerCase(),e=d.indexOf("@");a=l(a.matchers_);for(var f=a.next();!f.done;f=a.next()){f=f.value;f.lastIndex=
0;for(var h=f.exec(d);h;h=f.exec(d)){h=h.index;if(0<=e&&h>e)break;c.push([h,f.lastIndex])}}c.sort(function(k,q){return k[0]-q[0]});for(e=c.length-1;0<e;e--)a=c[e-1],f=c[e],a[1]>=f[0]&&(a[1]=f[1],c.splice(e,1));if(c.length&&d.length!==b.length){d=[];e=[];for(a=0;a<b.length;a++)f=b.codePointAt(a),65535<f||768<=f&&879>=f?(d.push(a),a++):bxc.includes(f)&&e.push(a);b=l(c);for(a=b.next();!a.done;a=b.next()){a=a.value;f=l(d);for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&a[0]++,h<a[1]&&a[1]++;f=l(e);
for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&a[0]--,h<a[1]&&a[1]--}}return c};var Rr=function(a,b){this.start_=a;this.end_=b};Rr.prototype.getStart=function(){return this.start_};Rr.prototype.getEnd=function(){return this.end_};var l$a=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};l$a.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};l$a.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};l$a.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};var D2=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new D2(c,b)});this.matchInfo_=null};W(D2,BY);D2.prototype.getMemberList=function(){return this.memberList_};D2.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=(null==(a=this.getDelegate().getPrimaryTarget().getName())?void 0:a.getGivenName())||"";this.matchInfo_=m$a(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};var dxc=function(a,b){this.delegate_=a;this.matcher_=new cxc(b)};dxc.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new D2(a,this.matcher_):null};dxc.prototype.resultCount=function(){return this.delegate_.resultCount()};dxc.prototype.isDone=function(){return this.delegate_.isDone()};var exc=/\s+/g,fxc=function(a,b){this.clientInfo_=a;this.storage_=b},Vwc=function(a,b,c,d,e){var f=O8a([b]);b=(b||"").replace(exc," ").trim();var h=!f.length;var k=a.clientInfo_;k=h?d.getSuggestFormat()||k.getSuggestFormat():d.getSearchFormat()||k.getSearchFormat();h=h?hi(a.clientInfo_,1,10):hi(a.clientInfo_,2,10);var q=d.boostIds_;var u=d.primingTimeoutMillis_;if(q.length){q=q.map(String);var x=q9a(q)+":"+q.length;u={ids:q,cacheKey:x,primingTimeoutMillis:u}}else u=swc;q=d.getFilter();a=new axc(a.storage_,
k);q&&(a=new $wc(a,q,b));a=new Zwc(a);a=new A2(a,h);a=f.length?new dxc(a,f):a;d=d.getQueryScope();c=new Ywc(k,c,d);return new Xwc(c,b,f,a,u,e,q)};var gxc=function(a){this.fetcher=a};gxc.prototype.getStageType=function(){return 2};gxc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,u,x;return Ne(function(y){switch(y.nextAddress){case 1:c=o$a(kuc(a)),d=l(c),e=d.next();case 2:if(e.done){y.jumpTo(4);break}f=e.value;h=l(f);k=h.next().value;q=h.next().value;u=k;x=q;if(!u){y.jumpTo(3);break}return y.yield(b.fetcher.fetch(x,u,a.getFormat(),function(E,H){a.notify(E,[],H)},a.getOptions()),3);case 3:e=d.next();y.jumpTo(2);break;case 4:return y.return()}})};var hxc=function(a,b){this.delegate=a;this.maxLookupChunkSize=Guc(b)};hxc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:var x=f.maxLookupChunkSize;if(a.length)if(a.length<=x)x=[a];else{for(var y=[],E=0;E<a.length;E+=x){var H=a.slice(E,E+x);H.length&&y.push(H)}x=y}else x=[];h=l(x);k=h.next();case 2:if(k.done){u.jumpTo(4);break}q=k.value;return u.yield(f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();u.jumpTo(2);break;case 4:return u.return()}})};var ixc=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
ixc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,u,x,y,E,H,J,O,R;return Ne(function(U){switch(U.nextAddress){case 1:return h=3===b?4:3,k=q1((new as).setProvenance(h),!0).setCode(0),Oe(U,2),U.yield(f.loader.loadLookupItems(b,a.map(function(Z){return Z.getOriginalValue()}),kwc),4);case 4:q=U.yieldResult;q.metadata.getCode()&&k.setCode(q.metadata.getCode());u=3===e.getQueryScope();try{f.indexer.store(b,q.data,q.metadata,u)}catch(Z){f.trackers.error(21,10).report(),k.setCode(13)}$s(U,3);break;
case 2:x=Re(U),y=Number(x),k.setCode(isFinite(y)&&y?y:13);case 3:E=new Map;H=l(a);for(J=H.next();!J.done;J=H.next())O=J.value,(R=f.indexer.load(O,c,e.useOriginalDisplayValue_))&&E.set(O,R);d(E,k);return U.return()}})};var jxc=function(a){this.indexer=a};jxc.prototype.getStageType=function(){return 1};jxc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return Ne(function(q){c=new Map;d=[];e=l(kuc(a));for(f=e.next();!f.done;f=e.next())if(h=f.value,k=b.indexer.load(h,a.getFormat(),a.getOptions().useOriginalDisplayValue_))c.set(h,k);else{var u=b.indexer;(r8b(h)?u.notFoundIds.get(String(h)):1)&&d.push(h)}a.notify(c,d,q1((new as).setProvenance(6),!1).setCode(0));return q.return()})};var kxc=RegExp("^[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+$","i"),lxc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.placeholderFactory_=f$a(e);this.indexes_=A1(hi(e,8,250),1E3*El(e,9,3600));this.notFound_=A1(hi(e,10,500),1E3*El(e,11,600))};g=lxc.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear();this.notFound_.clear()};
g.fetch=function(a){var b=this,c,d,e;return Ne(function(f){switch(f.nextAddress){case 1:c=q1(new as,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer(jwc).catch(function(){}),f.return(c);if(b.canSkipFetch_(a))return f.return(q1(c,!1));Oe(f,2);return f.yield(b.loader_.loadAutocompleteItems(a,kwc),4);case 4:d=f.yieldResult;$s(f,3);break;case 2:return e=Re(f),f.return(c.setCode(isFinite(e)?e:13));case 3:try{b.index(a,d.data,d.metadata)}catch(h){return f.return(c.setCode(13))}return f.return(c)}})};
g.search=function(a){return a.isSuggestQuery()?[]:this.indexes_.has(a.getPrefix())?this.indexes_.get(a.getPrefix()).search([]).getMatches(a.getCollector()):(a=this.placeholderFactory_.createFromQuery(a))?[a]:[]};g.index=function(a,b,c){if(!Ri(c,5))if(mj(c,5,!0),b.length){c=C1(this.ranker_,b,1);var d=3===a.queryScope();this.storage_.storeItems(1,b,d);b=D1(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};
g.canSkipFetch_=function(a){if(3===a.queryScope())return!1;var b=a.getPrefix();if(this.indexes_.has(b)||this.notFound_.has(b))return!0;if(a.isEmailAddress())return!1;for(a=b.length-1;0<a;a--){var c=b.substr(0,a);if(c.match(kxc))break;if(this.notFound_.has(c))return!0}return!1};var mxc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.coalescedSortOrder_=e;this.indexes_=new Map;this.trieFactory_.trieRoots_=this.indexes_};g=mxc.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return Ne(function(h){switch(h.nextAddress){case 1:return c=q1(new as,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?kwc:jwc,Oe(h,2),h.yield(b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;$s(h,3);break;case 2:return f=Re(h),h.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return h.return(c)}})};
g.search=function(a){return a.isSuggestQuery()||a.getTerms().length?(this.indexes_.get(a.getFormat())||y1).search(a.getTerms()).getMatches(a.getCollector()):[]};g.index=function(a,b,c){if(!Ri(c,5)){mj(c,5,!0);a=1!==this.coalescedSortOrder_?C1(this.ranker_,b,this.coalescedSortOrder_):null;var d=C1(this.ranker_,b,1);this.storage_.flush();this.storage_.storeItems(1,b);this.storage_.markAsFresh(c);b=D1(this.trieFactory_,d);c=a?D1(this.trieFactory_,a):b;this.indexes_.set(1,b);this.indexes_.set(2,c)}};var nxc=new E1(27,32,33),oxc=new E1(24,23,20);var pxc=function(){};pxc.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,h=a.prefixCaches,k=a.lookupStages,q=a.loaderFactory.ranker_,u=a.clientConfig.getClient();if(0<u.getCacheSize()){var x=Vi(u,19,1);x=new mxc(e,q,f,c,x);x=new F1(x,b,oxc);h.push(x);k.push(new jxc(d))}0<hi(u,2,10)&&(c=new lxc(e,q,f,c,u),b=new F1(c,b,nxc),h.push(b));h=new ixc(a.trackers,a.loader,a.indexer);h=new hxc(h,a.clientConfig);k.push(new gxc(h))};var qxc=function(a){this.delegate=a};g=qxc.prototype;g.warmUpSession=function(a){return this.delegate.warmUpSession(a)};g.suggest=function(a,b){this.delegate.suggest(a,b)};g.search=function(a,b,c){this.delegate.search(a,b,c)};g.cancel=function(){this.delegate.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.getReporter=function(a){return this.delegate.getReporter(a)};
g.getSessionState=function(){return this.delegate.getSessionState()};g.getHide=function(){return this.delegate.getHide()};var rxc=function(a){this.delegate=a};g=rxc.prototype;g.warmUpCache=function(){return this.delegate.warmUpCache()};g.flushCache=function(a){this.delegate.flushCache(a)};g.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};g.list=function(a,b,c,d){this.delegate.list(a,b,c,d)};g.beginSession=function(a){return this.delegate.beginSession(a)};var sxc=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};sxc.prototype.getId=function(){return this.id_};sxc.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var txc=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};g=txc.prototype;g.getIds=function(){return this.ids_};g.getIdType=function(){return this.idType_};g.getOptions=function(){return this.options_};
g.getKeys=function(){var a=this;return this.getIds().map(function(b){return new sxc(a.getIdType(),b,a.getOptions())})};g.setIds=function(a){this.ids_=a;return this};g.setIdType=function(a){this.idType_=a};g.setOptions=function(a){this.options_=a};g.clone=function(){var a=this.getIdType(),b=this.getIds(),c=this.getOptions();return new txc(a,b,c)};var E2=function(a,b){this.ids_=new Set(b.getIds());this.parameters_=b.clone();this.loader_=a;this.resolver_=new drc;this.isSent_=!1};E2.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(this.parameters_.setIds(a)).then(this.resolver_.resolve,this.resolver_.reject)}};E2.prototype.promise=function(){return this.resolver_.promise};
E2.prototype.merge=function(a,b){var c;(c=this.isSent_)||(c=this.parameters_,c=!(a.getIdType()===c.getIdType()&&a.getOptions()===c.getOptions()));if(c||a.getIds().length+this.ids_.size>b)return!1;a=l(a.getIds());for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};var uxc=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=Guc(c);this.lastRequestCreationTime_=0};
uxc.prototype.load=function(a){var b=this;this.batchedRequest_&&(this.batchedRequest_.merge(a,this.maxRequestSize_)?this.tracker_.count(89).increment():(this.batchedRequest_.send(),this.batchedRequest_=null));if(!this.batchedRequest_){this.tracker_.count(90).increment();var c=this.batchedRequest_=new E2(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;Mp(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},30<d?0:30)}return this.batchedRequest_.promise()};var vxc=function(a,b){this.delegate_=a;this.inflightRequests_=fuc();this.tracker_=b};
vxc.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=l(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getIndex();this.inflightRequests_.has(h)?c.add(this.inflightRequests_.get(h)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=a.clone().setIds(d);var q=new E2(this.delegate_,k);q.send();c.add(q);a=l(k.getKeys());for(f=a.next();!f.done;f=a.next())this.inflightRequests_.set(f.value.getIndex(),
q);q.promise().catch(function(){}).finally(function(){for(var u=l(k.getKeys()),x=u.next();!x.done;x=u.next())b.inflightRequests_.delete(x.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(u){return u.promise()})).then(function(u){return q?q.promise().then(function(x){return p$a(u,x.metadata)}):p$a(u)})};var wxc=function(a){this.peopleLoader_=a};wxc.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.getIds(),a.getOptions())};var xxc=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};xxc.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new wxc(this.peopleLoader_);b=new uxc(b,this.tracker_,this.clientConfig_);b=new vxc(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};var yxc=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new xxc(this.delegate_,this.trackers_,c)},zxc=function(a,b,c,d){var e,f;return Ne(function(h){if(1==h.nextAddress){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),h.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);h.catchAddress_=0;h.finallyAddress_=2;return h.yield(f,4)}if(2!=h.nextAddress)return h.return(h.yieldResult);Pe(h);a.searchRequests_.delete(e);
return Qe(h,0)})};g=yxc.prototype;g.loadRankedItems=function(a){var b=this;return zxc(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};g.warmUpServer=function(a){var b=this;return zxc(this,82,"",function(){return b.delegate_.warmUpServer(a)})};g.loadAutocompleteItems=function(a,b){var c=this;return zxc(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};g.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new txc(a,b,c))};
g.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};var Axc=function(){return Date.now()},Bxc=function(a,b,c){this.delegate_=a;this.nowFn_=c;this.cacheFlushRateMillis_=1E3*El(b.getClient(),14,300);this.serverWarmupRateMillis_=1E3*El(b.getClient(),13,60);this.lastServerWarmup_=this.lastCacheFlush_=0};g=Bxc.prototype;g.loadRankedItems=function(a){var b=a.qos;var c=this.nowFn_();1===b&&this.lastCacheFlush_+this.cacheFlushRateMillis_>c?b=!0:(this.lastCacheFlush_=c,b=!1);return b?Promise.reject(1):this.delegate_.loadRankedItems(a)};
g.warmUpServer=function(a){var b=a.qos;var c=this.nowFn_();1===b&&this.lastServerWarmup_+this.serverWarmupRateMillis_>c?b=!0:(this.lastServerWarmup_=c,b=!1);return b?Promise.reject(1):this.delegate_.warmUpServer(a)};g.loadAutocompleteItems=function(a,b){return this.delegate_.loadAutocompleteItems(a,b)};g.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};g.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};var Cxc=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};g=Cxc.prototype;g.suggest=function(a){a=void 0===a?this.listener_:a;this.delegate_.suggest(a,this.options_)};g.search=function(a,b){b=void 0===b?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};g.cancel=function(){this.delegate_.cancel();return this};g.getReporter=function(a){a=void 0===a?wsc:a;return this.delegate_.getReporter(a)};g.getHide=function(){return this.delegate_.getHide()};var Dxc=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=er(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};W(Dxc,BY);Dxc.prototype.getMemberList=function(){return this.members_};Dxc.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};var Exc=function(a){this.filter_=a};Exc.prototype.filterResult=function(a){var b=this;if(!er(a.getPrimaryTarget().getId()))return a;var c=a.getMemberList().map(function(d){return b.filter_.filterResult(d)}).filter(Boolean);return 0===c.length?null:a.getMemberList().every(function(d,e){return d===c[e]})?a:new dq(new Dxc(a,c))};Exc.prototype.reset=function(a){this.filter_.reset(a)};var q$a=function(a){this.filter_=tXa(a,new Exc(a))};q$a.prototype.filterResult=function(a){return this.filter_.filterResult(a)};
q$a.prototype.reset=function(a){this.filter_.reset(a)};var Fxc=function(a){this.delegate_=a};g=Fxc.prototype;g.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof r1&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};g.flushCache=function(a){this.delegate_.flushCache(a)};g.lookup=function(a,b,c){c=void 0===c?new Ytc:c;c.setFilter(r$a(c.getFilter()));this.delegate_.lookup(a,b,c);return this};
g.list=function(a,b,c,d){d=void 0===d?new Vtc:d;d.setFilter(r$a(d.getFilter()));this.delegate_.list(a,b,c,d);return this};g.beginSession=function(a,b){b=void 0===b?new lr:b;b=b.clone();b.setFilter(r$a(b.getFilter()));var c=this.delegate_.beginSession(b);return new Cxc(c,a,b)};var Gxc=new Map([[2,0],[0,1],[1,3],[3,10],[4,7],[5,9],[7,5],[16,5],[8,11],[9,2],[10,4],[11,2],[12,2],[13,11],[14,11],[15,11]]),Hxc=new Map([[2,13],[3,6]]),Ixc=new Map([[2,0],[0,1],[1,2],[3,3],[4,3],[5,2],[7,3],[16,3],[8,3],[9,3],[10,3],[11,3],[12,3],[13,3],[14,3],[15,3]]);var Jxc=new Map([[1,1],[2,3],[3,5]]),Kxc=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[10,20]]),Lxc=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[10,20]]),Mxc=function(a,b){this.logContext_=t$a(a,b)};g=Mxc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source(),e=new m2;switch(d.getEventType()){case 1:d=e.setCount;b=Vi(b.source(),4,0);var f=new i2;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=e.setRpcRequest;b=Vi(b.source(),3,0);d=new l2;d.setLabel(b);c.call(e,d);e.setEventType(4);break;case 6:case 7:c=e.setApiCall;b=b.source();d=Vi(b,2,0);f=new qvc;b.hasItemCount()&&f.setItemCount(b.getItemCount());b.hasQueryLength()&&f.setQueryLength(b.getQueryLength());b.hasLookupInfo()&&
f.setLookupInfo(b.getLookupInfo());b.hasQueryScope()&&f.setQueryScope(b.getQueryScope());f.setLabel(d);c.call(e,f);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=new m2;switch(d.getEventType()){case 4:case 5:d=e.setRpcResponse;var f=b.source(),h=Vi(f,3,0);var k=Vi(f,13,0)||0;k=Hxc.get(k)||Gxc.get(c)||0;var q=mQ(b,"blocked"),u=mQ(b,"network"),x=mQ(b,"processed");b=new tvc;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(u);xj(b,9,x);b.setStatusCode(c);hi(f,12,0)&&(c=hi(f,12,0),xj(b,6,c));d.call(e,b);e.setEventType(5);break;case 6:case 7:d=e.setApiResult;h=b.source();k=Vi(h,2,0);f=new rvc;
f.setLabel(k);f.setStatusCode(c);h.hasItemCount()&&f.setItemCount(h.getItemCount());h.hasQueryLength()&&f.setQueryLength(h.getQueryLength());h.hasLookupInfo()&&f.setLookupInfo(h.getLookupInfo());h.hasQueryScope()&&f.setQueryScope(h.getQueryScope());0===c&&(b=mQ(b,"total"),f.setLatencyUsec(b));c=Ixc.get(c)||0;f.setStatus(c);c=h.getResultIndex();f.setResultIndex(c);if(b=h.getCacheState())c=Jxc.get(Mr(b,2))||0,rj(f,5,c),c=Jxc.get(Mr(b,3))||0,rj(f,6,c),c=f.setDataSource,h=b.getSource(),b=!Ri(h,1),h=h.getProvenance(),
b=(b?Lxc.get(h):Kxc.get(h))||0,c.call(f,b);d.call(e,f);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};
g.createLatencyMetric=function(a,b){var c=b.source();if(2!==c.getEventType())return null;var d=new m2;d.setClientInterface(a);a=d.setLatency;var e=Vi(b.source(),5,0);if(37===e||38===e||40===e){e=Vi(b.source(),5,0);var f=mQ(b,"LATENCY_A");b=mQ(b,"LATENCY_B");b=null!=f&&null!=b?f-b:NaN;f=new k2;f.setType(e);isFinite(b)&&f.setLatencyUsec(b);e=f}else b=mQ(b,"total"),f=new k2,f.setType(e),f.setLatencyUsec(b),e=f;a.call(d,e);d.setEventType(c.getEventType());return d};
g.createErrorMetric=function(a,b){var c=b.source();if(3!==c.getEventType())return null;var d=new m2;d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=Vi(e,7,0);var f=new j2;f.setType(b);rj(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};var Nxc=function(a,b){this.delegate_=a;this.trackers_=b};g=Nxc.prototype;g.reportDisplay=function(a){this.delegate_.reportDisplay(a)};g.reportSelect=function(a,b){b=void 0===b?new H0:b;this.delegate_.reportSelect(a,b)};g.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};g.reportDeselect=function(a){this.delegate_.reportDeselect(a)};g.reportProceed=function(a){this.delegate_.reportProceed(a)};g.reportDismiss=function(){this.delegate_.reportDismiss();Oxc(this)};
g.reportSave=function(a){this.delegate_.reportSave(a);Oxc(this)};g.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);Oxc(this)};g.reportSend=function(a){this.delegate_.reportSend(a);Oxc(this)};var Oxc=function(a){a=a.trackers_;var b=a.api,c=new Ir;Kr(c.setEventType(6),3);b.call(a,c).call()};var F2=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};W(F2,qxc);
F2.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=this.trackers_.api(F9a(b.getQueryScope()));f.call();this.delegate_.suggest(function(h){var k=h.getMetadata(),q=k.getCacheState();f.source.setCacheState(q);f.source.setItemCount(h.getResults().length);f.result(q.getSource().getCode());k.getIsFirstCallback()&&(d&&0===k.getCode()&&c.trackers_.error(22,19).report(),d=!0);k.getIsLastCallback()&&(e&&0===k.getCode()&&c.trackers_.error(22,20).report(),e=!0);k=c.trackers_.latency(90);k.start();
try{a(h)}catch(u){throw c.trackers_.error(22,11).report(),u;}finally{k.stop()}},b)}catch(h){throw this.trackers_.error(22,1).report(),h;}};
F2.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,h=this.trackers_.api(E9a(a,c.getQueryScope()));h.call();this.delegate_.search(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().length);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e&&0===q.getCode()&&d.trackers_.error(23,19).report(),e=!0);q.getIsLastCallback()&&(f&&0===q.getCode()&&d.trackers_.error(23,20).report(),f=!0);q=d.trackers_.latency(91);q.start();
try{b(k)}catch(x){throw d.trackers_.error(23,11).report(),x;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};F2.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new Nxc(a,this.trackers_)};var Pxc=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=a.api;var c=new Ir;Kr(c.setEventType(6),1);b.call(a,c).call()};W(Pxc,rxc);g=Pxc.prototype;
g.warmUpCache=function(){var a=this,b=this.trackers_.api(D9a());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof r1?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new r1).setSource((new as).setCode(2)));return Promise.reject(c)})};
g.flushCache=function(a){var b=this.trackers_,c=b.api;switch(a){case 2:var d=12;break;case 1:d=4;break;default:d=10}var e=new Ir;Kr(e.setEventType(6),d);b=c.call(b,e);b.call();try{this.delegate_.flushCache(a),b.result(0)}catch(f){throw this.trackers_.error(17,1).report(),f;}};
g.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,h=this.trackers_.api(B9a(a,c.getQueryScope()));h.call();this.delegate_.lookup(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().size);for(var x=0,y=0,E=0,H=l(k.getResults().keys()),J=H.next();!J.done;J=H.next()){var O=J.value;k8b.includes(O.getType())?x++:l8b.includes(O.getType())?y++:m8b.includes(O.getType())&&E++}var R=0;H=O=0;var U=l(q.notFoundIdList_);for(J=U.next();!J.done;J=
U.next())J=J.value,k8b.includes(J.getType())?R++:l8b.includes(J.getType())?O++:m8b.includes(J.getType())&&H++;J=h.source.getLookupInfo();x=nj(J,2,x);y=nj(x,1,y);E=nj(y,3,E);E=nj(E,5,R);E=nj(E,4,O);nj(E,6,H);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e&&0===q.getCode()&&d.trackers_.error(8,19).report(),e=!0);q.getIsLastCallback()&&(f&&0===q.getCode()&&d.trackers_.error(8,20).report(),f=!0);q=d.trackers_.latency(89);q.start();try{b(k)}catch(Z){throw d.trackers_.error(8,11).report(),
Z;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};g.list=function(a,b,c,d){var e=this;try{var f=this.trackers_.api(C9a());f.call();this.delegate_.list(a,b,function(h){var k=h.getMetadata().getCacheState();f.source.setCacheState(k);f.result(k.getSource().getCode());try{c(h)}catch(q){throw e.trackers_.error(27,11).report(),q;}},d)}catch(h){throw this.trackers_.error(27,1).report(),h;}};
g.beginSession=function(a){var b=this.trackers_,c=b.api,d=new Ir;Kr(d.setEventType(6),2);c.call(b,d).call();a=this.delegate_.beginSession(a);return new F2(a,this.trackers_)};var Qxc=function(a,b){this.clearcut_=a;this.logEventFactory_=b};Qxc.prototype.report=function(a){var b=wQ(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=l(a);for(b=a.next();!b.done;b=a.next())xQ(this.clearcut_,b.value)};var Rxc=function(a){this.clearcut_=a};Rxc.prototype.report=function(a){this.clearcut_.report(a);return this};var Sxc=function(a){this.writer_=a},Uxc=function(a,b,c){var d=new sQ,e=a.writer_,f=d.getMetadata()||new rQ;d.setMetadata(f);var h=Yq(b)||new Pr;a=Fi(b,Qr,1)||new Qr;e.metadataStateWriter_.write(f,h,(Ri(a,9,!0)?hi(h,2,0):hi(h,1,0))||0,Txc(b));e.contactInfoWriter_.write(d,a,c,h.getProvenance()||0);b=Fi(d,pQ,4)||new pQ;oj(d,pQ,4,b);Fi(d,pQ,4).setType(Xr(a,7));d.setLoggingId(At(a,2));return d};var Vxc=function(){};
Vxc.prototype.create=function(a,b,c){var d=new P7b;d.setQueryId(dj(b,3,0));d.setSelectionId(dj(b,4,0));var e=dj(b,5,0);xj(d,3,e);d.setInstanceId(b.getInstanceId());d.setAffinityVersion(b.getAffinityVersionOrUndefined());e=new Q7b;oj(e,P7b,3,d);7!==c&&b.hasQuery()&&(d=b.getQuery(),2===c&&e.setQuery(d),e.setQueryLength(d.length));var f=new R7b;d=YJa(El(b,9,0)-El(b,8,0));nj(f,2,d);d=new tQ;oj(d,Q7b,1,e);oj(d,R7b,6,f);e=new O7b;if(f=dj(b,6,0)){xj(e,3,1E3*f);var h=1E3*(Date.now()-f);xj(e,2,h)}mj(e,1,!!f);
oj(d,O7b,3,e);d.setAffinityVersion(b.getAffinityVersionOrUndefined());b=new S7b;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};var Wxc=function(){};Wxc.prototype.extractPersonEventSource=function(a){return Un(u$a(a),4)};Wxc.prototype.extractFieldEventSource=function(a){return Un(u$a(a),3)};var Xxc=function(){};Xxc.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new Wr;return(a.getQuery()||"").length?Mr(b,2):Mr(b,4)};Xxc.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new Wr;return(a.getQuery()||"").length?Mr(b,1):Mr(b,3)};var Yxc=function(){};Yxc.prototype.extractPersonEventSource=function(a){return Un(v$a(a),4)};Yxc.prototype.extractFieldEventSource=function(a){return Un(v$a(a),3)};var Zxc=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};var $xc=new Map([[1,11],[2,12],[0,0]]),ayc=function(){};ayc.prototype.write=function(a,b,c){var d=new nQ;nj(d,1,c);c=new oQ;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());oj(a,oQ,8,c);b=[$xc.get(b.getContext())];ac(a,3,b,rb)};var byc=new Map([[1,5],[2,4],[3,6],[7,13]]),cyc=function(){};cyc.prototype.write=function(a,b,c,d){var e=new nQ;nj(e,1,c);a.setPosition(e);c=byc.get(b.getProvenance())||0;d||1===Vi(b,4,0)?c=3:2===Vi(b,4,0)&&(c=10);ac(a,3,[c],rb)};var dyc=new Set([9,1,2]),eyc=function(){};eyc.prototype.write=function(a,b,c,d){if(8===c||10===c||9===c||2===c&&dyc.has(d))c=new pQ,1!==Mr(b,7)&&7!==Mr(b,7)||c.setEmail(At(b,3)),2!==Mr(b,7)&&5!==Mr(b,7)||c.setPhone(At(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),oj(a,pQ,4,c),c=new qQ,c.setName(b.getNameOrUndefined()),b=a.getMetadata()||new rQ,oj(b,qQ,2,c),a.setMetadata(b)};var fyc=function(a){var b=new eyc;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Txc=function(a){var b;return(null==(b=Fi(a,Qr,1))?0:b.getIsPlaceholder())?!0:!1};var Zr=function(a){this.internalArray_=m(a)};W(Zr,X);g=Zr.prototype;g.getEventType=function(){return Vi(this,1,0)};g.getEventType_legacyNullable=function(){return Mr(this,1)};g.setEventType=function(a){return rj(this,1,a)};g.getSessionState=function(){return Fi(this,AY,2)};g.setSessionState=function(a){oj(this,AY,2,a)};g.hasSessionState=function(){return Zi(this,AY,2)};g.setEventSources=function(a){oj(this,Wr,4,a)};Zr.repeatedFields_=[3];var gyc=new Set([8]),hyc=function(){this.defaultEntityFactory_=new Sxc(new fyc(new cyc));this.contextualEntityFactory_=new Sxc(new fyc(new ayc));this.extensionFactory_=new Vxc;this.defaultEventSourceExtractor_=new Xxc;this.additionEventSourceExtractor_=new Wxc;this.replacementEventSourceExtractor_=new Yxc};
hyc.prototype.create=function(a,b){var c=b.getSessionState()||new AY,d=b.getEventType_legacyNullable();b=Ji(b,Or,3);var e=w$a(b,y$a);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(p(w$a(f,x$a).values())):[];b=b?[].concat(p(w$a(b,x$a).values())):[];e=e?[].concat(p(w$a(e,x$a).values())):[];f=new Zxc(f,b,e);b=[];var h=l(f.defaultTokenGroups_);for(e=h.next();!e.done;e=h.next())b.push.apply(b,p(iyc(this,a,d,e.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));h=l(f.additionTokenGroups_);
for(e=h.next();!e.done;e=h.next())b.push.apply(b,p(iyc(this,a,d,e.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));f=l(f.replacementTokenGroups_);for(e=f.next();!e.done;e=f.next())b.push.apply(b,p(iyc(this,a,d,e.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var iyc=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=d.map(function(x){var y=new sQ,E=h.writer_,H=y.getMetadata()||new rQ;y.setMetadata(H);var J=Yq(x)||new Pr,O=Fi(x,Qr,1)||new Qr;E.metadataStateWriter_.write(H,J,hi(J,2,0)||0,Txc(x));E.contactInfoWriter_.write(y,O,c,J.getProvenance()||0);y.setLoggingId(At(O,1));x=Fi(y,pQ,4)||new pQ;oj(y,pQ,4,x);x.setType(Xr(O,8));return y});k.push(jyc(a,b,c,f.extractPersonEventSource(e),q,e));q=[];d=l(d);for(var u=d.next();!u.done;u=d.next())u=
u.value,Zi(u,Qr,1)&&gyc.has(Un(Fi(u,Qr,1),7))||q.push(Uxc(h,u,c));q.length&&k.push(jyc(a,b,c,f.extractFieldEventSource(e),q,e));return k},jyc=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);om(a,2,e);return a};var kyc=function(a,b){this.logContext_=s$a(Tr(new Ur,"PeopleStore.BigBug").setLogSource(Vi(a.getClearcut(),3,41)).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(560219052).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(p(a.runtimeConfig_.getExperiments().getExperimentIdsList()),p(Vr?Vr.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);this.eventsFactory_=
new hyc};kyc.prototype.getLogContext=function(){return this.logContext_};var lyc=function(a){this.clientConfig_=a;this.reportingCache_=new Map};lyc.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new kyc(this.clientConfig_,a),a=new Rxc(new Qxc(x8b(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};var myc=function(a,b){this.reporting_=a;this.sharedSessionState_=b};g=myc.prototype;g.reportDisplay=function(a){G2(this,$r(a,1))};g.reportSelect=function(a,b){b=void 0===b?new H0:b;if(0!==b.getOriginator())for(var c=l(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!Zi(d,Pr,2)){var e=new Pr;oj(d,Pr,2,e)}d=Yq(d);rj(d,4,b.getOriginator())}b=dj(this.sharedSessionState_,4,0)+1;xj(this.sharedSessionState_,4,b);G2(this,$r(a,2,this.sharedSessionState_))};
g.reportExternalSelect=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!Zi(c,Pr,2)){var d=new Pr;oj(c,Pr,2,d)}c=Yq(c);rj(c,4,2)}b=dj(this.sharedSessionState_,4,0)+1;xj(this.sharedSessionState_,4,b);G2(this,$r(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){G2(this,$r(a,17,this.sharedSessionState_))};g.reportProceed=function(a){G2(this,$r(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new Zr;a=a.clone();b.setSessionState(a);b.setEventType(7);b.setEventSources(a.getSources());G2(this,[b])};g.reportSave=function(a){G2(this,$r(a,9,this.sharedSessionState_))};g.reportSecondaryAction=function(a){G2(this,$r(a,19,this.sharedSessionState_))};g.reportSend=function(a){G2(this,$r(a,8,this.sharedSessionState_,!0))};var G2=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};var H2=function(a,b,c){this.delegate_=this.delegate=a;this.sharedSessionState_=c;xj(this.sharedSessionState_,5,Math.floor(9007199254740991*Math.random()));this.reportingFactory_=b};W(H2,qxc);H2.prototype.suggest=function(a,b){var c=this;Hmc(this.sharedSessionState_,dj(this.sharedSessionState_,3,0)+1);var d=this.sharedSessionState_.clone();d.setQuery("");Imc(d);var e=0;this.delegate_.suggest(function(f){e=nyc(c,f.getResults(),A$a(f),d,e);a(f)},b)};
H2.prototype.search=function(a,b,c){var d=this;Hmc(this.sharedSessionState_,dj(this.sharedSessionState_,3,0)+1);var e=this.sharedSessionState_.clone();e.setQuery(a);Imc(e);var f=0;this.delegate_.search(a,function(h){f=nyc(d,h.getResults(),A$a(h),e,f);b(h)},c)};H2.prototype.getReporter=function(a){return new myc(this.reportingFactory_.create(a),this.sharedSessionState_)};H2.prototype.getSessionState=function(){return this.sharedSessionState_};
var nyc=function(a,b,c,d,e){var f=L7b();rj(d,9,nb(f));f=a.delegate_.getLastUpdatedTimestamp();xj(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=l(b);for(f=a.next();!f.done;f=a.next()){b=0;f=l(f.value.getTargetList());for(var h=f.next();!h.done;h=f.next()){h=h.value.getLoggingToken();var k=Yq(h)||new Pr;7!==k.getProvenance()&&k.setProvenance(c.getProvenance());nj(k,2,e);nj(k,1,b);oj(h,Pr,2,k);h.setSessionState(d);b++}e++}return e};var oyc=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=O6a();this.clearcutConfig_=c};W(oyc,rxc);
oyc.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,h=d.getMetadata();h.getCacheState()&&(h=h.getCacheState(),h.hasSource()&&(f=h.getSource()));f=f||new as;h=c.getOriginator();e=l(e);for(var k=e.next();!k.done;k=e.next()){k=l(k.value.getTargetList());for(var q=k.next();!q.done;q=k.next()){q=q.value.getLoggingToken();var u=Yq(q)||new Pr;7!==u.getProvenance()&&u.setProvenance(f.getProvenance());rj(u,4,h);oj(q,Pr,2,u)}}b(d)},c)};
oyc.prototype.beginSession=function(a){var b=new AY,c=pyc(this,a);oj(b,Wr,10,c);c=qyc(this,a);oj(b,Yr,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new H2(a,this.reportingFactory_,b)};
var pyc=function(a,b){a=Ji(a.clearcutConfig_,Wr,5);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new Wr},qyc=function(a,b){a=Ji(a.clearcutConfig_,Yr,6);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new Yr};var ryc={create:function(a){var b=Mb(Euc||(Euc=Duc('[[15,15],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s","ANVavNKl4mkR3DMa8R68PqYrNFuTUEjFCzfJB_o"],["BUGANIZER","BUGANIZER",null,"ISSUE_TRACKER_AFFINITY",47,null,null,["person.name","person.photo","person.email","person.metadata"]],[null,740,null,null,[[180,181,178,179]]],[7,true]]')));a=new K1(b,a);a.runtimeConfig_.getExperiments().getProfileId()?Fuc(a).getIsEnabled()?(b=Mb(Huc||(Huc=j8a('[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'))),
b=new k8a(b,1)):b=new mr:b=new mr;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;Vr=b.loadExperiments(Fuc(a).getApplication(),(new nr).setPeopleApiEnv(d.getPeopleApiEnv()),c);b=new Qvc;b.cacheConfigurators_.push(new Buc);c=b;c=void 0===c?new Qvc:c;b=a.getClearcut();b=new Mxc(b,a.runtimeConfig_);b=pr(b);b=new w2(b);d=new Pvc(a,b);var e=c;c=a.getClient();c=new ewc(d.targetFactory_,c);var f=void 0===f?Axc:f;f=new Bxc(d.loader_,a,f);f=new yxc(f,b,a);var h=[new pxc,
new Yvc].concat(p(e.cacheConfigurators_)),k=[],q=[],u=new rwc(c,a);e=new qwc(q,u,a);d={clientConfig:a,trackers:b,storage:c,indexer:u,loader:f,loaderFactory:d,trieFactory:new Lwc(c,e,b),prefixCaches:k,lookupStages:q};h=l(h);for(q=h.next();!q.done;q=h.next())q.value.configure(d);d=new zwc(k);f=new Ewc(a,b,d,e,new lwc(f,c),c);d=a.getClient();c=new fxc(d,c);d=a.getClient();f=new Wwc(f,c,d);c=new lyc(a);a=a.getClearcut();f=new oyc(f,c,a);f=new Pxc(f,b);return new Fxc(f)}};var I2=function(a,b){var c=this;this.fridge=a;this.userAccess=b;this.currentComponentId="";this.providedComponentId$=new B.ReplaySubject(1);this.accessCheckIsThinking$=new B.BehaviorSubject(!0);this.component$=this.providedComponentId$.pipe(zf(function(d){return c.fridge.watchOne(d)}));this.userIsComponentReader$=this.providedComponentId$.pipe(zf(function(d){d!==c.currentComponentId&&(c.accessCheckIsThinking$.next(!0),c.currentComponentId=d);return uG(c.userAccess,"reader","components/"+d).then(function(e){return e},
function(){return!1}).finally(function(){c.accessCheckIsThinking$.next(!1)})}));this.isReady$=(0,B.combineLatest)([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return!d&&!e}),yf(!1));this.manageComponentLink=""};I2.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};I2.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};
I2.\u0275fac=function(a){return new (a||I2)(z(OG),z(sG))};
I2.\u0275cmp=od({type:I2,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},features:[Fd],decls:6,vars:7,consts:[[3,"isReady"],[3,"href",4,"ngIf","ngIfElse"],["notComponentReader",""],[3,"href"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),T(1,"async"),P(2,B$a,3,4,"a",1),T(3,"async"),P(4,C$a,2,1,"ng-template",null,2,Eg),F());if(a&2){var c=N(5);C("isReady",V(1,3,b.isReady$));w(2);C("ngIf",V(3,5,b.userIsComponentReader$))("ngIfElse",c)}},dependencies:[Ev,aU,Kv],
encapsulation:2});var J2=function(a){this.documentationLinks=a;this.showIssueMetadataContainer=!1};
Qh.Object.defineProperties(J2.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(null==a)this.showIssueMetadataContainer=!1;else if(this.showIssueMetadataContainer=!0,this.issueId=a.issueId,this.issueLastModified=zn(a.modifiedTime),a.teamId&&0!==a.teamId&&(this.issueTeamId=String(a.teamId)),a=a.issueState)this.issueType=STb[a.type],this.issueStatus=Uk[a.status],this.issuePriority=a.priority,this.issueSeverity=RTb[a.severity],this.issueComponentId=String(a.componentId),this.accessLimitLevel=
HTa(a.accessLimitLevel)}}});J2.\u0275fac=function(a){return new (a||J2)(z(yL))};
J2.\u0275cmp=od({type:J2,selectors:[["b-access-denied-metadata"]],inputs:{issueMetadata:"issueMetadata"},decls:4,vars:1,consts:[[1,"b-access-denied"],[1,"heading-l","margin-bottom"],["class","carded margin-top",4,"ngIf"],[1,"carded","margin-top"],[3,"issuePriority"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"],[4,"ngIf"],[3,"componentId"],[3,"teamId"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"h3",1),Q(2," Access is denied to this issue "),F(),P(3,F$a,40,13,
"ol",2),F());a&2&&(w(3),C("ngIf",b.showIssueMetadataContainer))},dependencies:[Ev,I2,eU,xR,Nv],styles:[".b-access-denied[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}ol[_ngcontent-%COMP%]{box-sizing:border-box;max-width:400px;min-width:300px;padding-right:8px;word-break:break-word}li[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px;line-height:21px}li[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}label[_ngcontent-%COMP%]{min-width:120px;font-weight:bold;color:#5f6368;color:var(--text-muted);margin-right:8px;font-size:.8125rem}"],
changeDetection:0});var K2=function(){};K2.\u0275fac=function(a){return new (a||K2)};K2.\u0275mod=qd({type:K2});K2.\u0275inj=ad({imports:[aD,wV]});var L2=function(){};L2.\u0275fac=function(a){return new (a||L2)};L2.\u0275mod=qd({type:L2});L2.\u0275inj=ad({imports:[aD,K2,sV,yR]});var syc=Symbol("Oe"),M2=function(a){this.ruleConfigService=a};
M2.prototype.build=function(a){if(a.customField)var b="DATE"===a.customField.type?new N2(a,O2(this.ruleConfigService)):"ENUM"===a.customField.type?new P2(a,O2(this.ruleConfigService)):"REPEATED_ENUM"===a.customField.type?new tyc(a,O2(this.ruleConfigService)):"NUMERIC"===a.customField.type?new Q2(a,O2(this.ruleConfigService)):new R2(a,O2(this.ruleConfigService));else b=a.label.field,b=O2(this.ruleConfigService)[b],b=new (b&&b.ruleCtor||S2)(a,O2(this.ruleConfigService));b[syc](a);return b};
var qbb=function(a,b,c){return a.build({label:{field:b,customFieldId:c&&c.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:c})};M2.\u0275fac=function(a){return new (a||M2)(n(T2))};M2.\u0275prov=$c({token:M2,factory:M2.\u0275fac,providedIn:"root"});
var uyc=["OR","AND","NAND"],vyc=["OR","NAND"],wyc="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),xyc=["AND","OR","NAND"],yyc=["OR","LT","GT","LE","GE"],S2=function(a,b){this.ruleConfigLookup=b;this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};S2.prototype[syc]=function(a){this.initType(a);this.initValues(a)};
S2.prototype.initType=function(a){if(a.type)switch(a.operator){case "LT":this.type=a.negated?"GE":"LT";break;case "GT":this.type=a.negated?"LE":"GT";break;case "LE":this.type=a.negated?"GT":"LE";break;case "GE":this.type=a.negated?"LT":"GE";break;default:this.type="OR"===a.type?a.negated?"NOR":"OR":"AND"===a.type?a.negated?"NAND":"AND":a.negated?"NAND":"OR"}else this.type=this.getLegalTypes()[0]};S2.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var zyc=function(a){var b="NAND"===a.type||"NOR"===a.type||"NDURATION"===a.type||"NRANGE"===a.type,c="EQ";if("AND"===a.type||"NAND"===a.type)var d="AND";else if("OR"===a.type||"NOR"===a.type)d="OR";else if(d="NIL","LE"===a.type||"LT"===a.type||"GE"===a.type||"GT"===a.type)c=a.type;b&&("AND"===d?d="OR":"OR"===d&&(d="AND"));return{operator:c,joinType:d,negated:b}};
S2.prototype.toString=function(){var a=zyc(this),b=this.valuesToStrings().filter(function(e){return e}),c={GT:">",LT:"<",GE:">=",LE:"<=",EQ:":"};if(1===b.length)b=b[0];else if(1<b.length)b="("+b.join("AND"===a.joinType?" ":" | ")+")";else return"";var d=Ayc(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var Ayc=function(a){var b=a.label.field,c=a.ruleConfigLookup[b];return c&&(c=c.queryLabel,null!=c)?c:oi(b).toLowerCase()+(a.label.customFieldId||"")};S2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};
S2.prototype.getWidgetType=function(){return"default"};S2.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};S2.prototype.getLegalTypes=function(){return uyc};var Byc=[],U2=function(a,b){S2.call(this,a,b);this.enumValues={}};W(U2,S2);g=U2.prototype;g.getLegalTypes=function(){return vyc};g.getWidgetType=function(){return"enum"};
g.initValues=function(a){this.enumValues={};for(var b=l(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=l(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[G$a(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys(wc(this.enumValues,function(a){return a}))};g.getOptions=function(){return Byc};var Cyc=taa().map(function(a){return{id:"p"+a,label:"P"+a}}),Dyc=function(a,b){U2.call(this,a,b)};W(Dyc,U2);
Dyc.prototype.getOptions=function(){return Cyc};var Eyc=taa().map(function(a){return{id:"s"+a,label:"S"+a}}),Fyc=function(a,b){U2.call(this,a,b)};W(Fyc,U2);Fyc.prototype.getOptions=function(){return Eyc};
var Gyc=[{id:"bug"},{id:"customer_issue",label:"customer issue"},{id:"feature_request",label:"feature request"},{id:"internal_cleanup",label:"internal cleanup"},{id:"process"},{id:"vulnerability"},{id:"privacy_issue",label:"privacy issue"},{id:"project"},{id:"feature"},{id:"milestone"},{id:"epic"},{id:"story"},{id:"task"}],Hyc=function(a,b){U2.call(this,a,b)};W(Hyc,U2);Hyc.prototype.getOptions=function(){return Gyc};
var Iyc=[{id:"open"},{id:"new",group:"open"},{id:"assigned",group:"open"},{id:"accepted",group:"open"},{id:"closed"},{id:"fixed"},{id:"verified"},{id:"duplicate"},{id:"infeasible"},{id:"intended_behavior",label:"intended behavior"},{id:"not_reproducible",label:"not reproducible"},{id:"obsolete"}],Jyc=function(a,b){U2.call(this,a,b)};W(Jyc,U2);Jyc.prototype.getOptions=function(){return Iyc};
var Kyc=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],Lyc=function(a,b){U2.call(this,a,b)};W(Lyc,U2);Lyc.prototype.getOptions=function(){return Kyc};var Myc=[{id:"limit_none",label:"default access"},{id:"limit_view",label:"limited visibility"},{id:"limit_append",label:"limited commenting"},{id:"limit_view_trusted",label:"limited visibility + Google"}],Nyc=function(a,b){U2.call(this,a,b)};W(Nyc,U2);Nyc.prototype.getOptions=function(){return Myc};
var P2=function(a,b){U2.call(this,a,b);this.allowedValues=[]};W(P2,U2);P2.prototype[syc]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:G$a(b)}});U2.prototype[syc].call(this,a)};P2.prototype.valuesToStrings=function(){return Object.keys(wc(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};P2.prototype.getOptions=function(){return this.allowedValues};
var tyc=function(a,b){S2.call(this,a,b);this.allowedValues=[];var c,d;this.allowedValues=null!=(d=null==(c=a.customField)?void 0:c.allowedValue)?d:[]};W(tyc,S2);tyc.prototype.getWidgetType=function(){return"repeated-enum"};tyc.prototype.getOptions=function(){return this.allowedValues};var hs=function(a,b){S2.call(this,a,b);this.csv=""};W(hs,S2);hs.prototype.getWidgetType=function(){return"csv"};hs.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};
hs.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};var V2=function(a,b){hs.call(this,a,b)};W(V2,hs);V2.prototype.getWidgetType=function(){return"id"};V2.prototype.valuesToStrings=function(){return hs.prototype.valuesToStrings.call(this).map(function(a){return"none"===a.toLowerCase()?"none":"any"===a.toLowerCase()?"any":String(qi(a))})};var Oyc=function(a,b){hs.call(this,a,b)};W(Oyc,V2);Oyc.prototype.getLegalTypes=function(){return vyc};
var W2=function(a,b){hs.call(this,a,b)};W(W2,hs);W2.prototype.getWidgetType=function(){return"user"};var X2=function(a,b){hs.call(this,a,b)};W(X2,W2);X2.prototype.getLegalTypes=function(){return vyc};var N2=function(a,b){S2.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};W(N2,S2);var Wab=function(a){return a&&"string"===typeof a?a:""};
N2.prototype.initType=function(a){S2.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&("RANGE"===b.type?this.type=a.negated?"NRANGE":"RANGE":gt(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};N2.prototype.getWidgetType=function(){return"date"};
N2.prototype.initValues=function(a){if(a.values){var b=a.values[0].simpleValues[0].value;if("DURATION"===this.type||"NDURATION"===this.type)this.duration=b.slice(0,b.length-1);else if(this.dateFrom=Pyc(b),"RANGE"===this.type||"NRANGE"===this.type)this.dateTo=Pyc(a.values[0].simpleValues[1].value)}};
N2.prototype.valuesToStrings=function(){if("DURATION"===this.type||"NDURATION"===this.type){var a=qi(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if("RANGE"===this.type||"NRANGE"===this.type){a=this.dateFrom&&Qyc(this.dateFrom)||(new pi).toIsoString(!0);var b=this.dateTo&&Qyc(this.dateTo)||(new pi).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&Qyc(this.dateFrom)||(new pi).toIsoString(!0)]};
var Ryc=function(a){var b=String(a.getMonth()+1),c=String(a.getDate());return b+"/"+c+"/"+String(a.getFullYear())},Pyc=function(a){var b=new Bn(2E3);a=ui(a);var c=-1==a.indexOf("T")?" ":"T";a=a.split(c);var d=a[0].match(ANb);if(d){var e=Number(d[2]),f=Number(d[3]),h=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));h?(b.setDate(1),b.setMonth(0),b.add(new zz("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new zz("d",(4>=d?1-d:8-d)+(Number(k)+7*(Number(c)-
1))-1))):(e&&(b.setDate(1),b.setMonth(e-1)),f&&b.setDate(f));c=!0}else c=!1;if(c&&!(c=2>a.length)){c=a[1];a=c.match(CNb);if(a)if(c=c.substring(0,c.length-a[0].length),"Z"===a[0])var q=0;else q=60*Number(a[2])+Number(a[3]),q*="-"==a[1]?1:-1;if(h=c.match(BNb)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(h[1]);e=Number(h[2])||0;f=Number(h[3])||0;var u=h[4]?1E3*Number(h[4]):0;(h=0<=a&&100>a)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,u);h&&(a-=126227808E5);b.setTime(a+6E4*q)}else b.setHours(Number(h[1])),
b.setMinutes(Number(h[2])||0),b.setSeconds(Number(h[3])||0),b.setMilliseconds(h[4]?1E3*Number(h[4]):0);c=!0}else c=!1}return Ryc(c?b:null)},Qyc=function(a){a=a.split("/").map(Number);return(new pi(a[2],a[0]-1,a[1])).toIsoString(!0)};N2.prototype.getLegalTypes=function(){return wyc};var Y2=function(a,b){S2.call(this,a,b)};W(Y2,S2);Y2.prototype.getWidgetType=function(){return"bool"};
Y2.prototype.initType=function(a){var b="OR"===a.type||""===a.type;a.values&&(b="true"===a.values[0].simpleValues[0].value.toLowerCase());a.negated&&(b=!b);this.type=b?"OR":"NAND"};Y2.prototype.toString=function(){return Ayc(this)+":"+("OR"===this.type)};Y2.prototype.getLegalTypes=function(){return vyc};var Z2=function(a,b){S2.call(this,a,b)};W(Z2,S2);Z2.prototype.getWidgetType=function(){return"boolwithall"};
Z2.prototype.initType=function(a){-1===this.getLegalTypes().indexOf(a.type)?this.type=this.getLegalTypes()[0]:this.type=a.type;if(a.values)switch(a.values[0].simpleValues[0].value){case "true":this.type="OR";break;case "false":this.type="NAND";break;case "all":this.type="AND"}a.negated&&"AND"!==this.type&&(this.type="OR"===this.type?"NAND":"OR")};Z2.prototype.toString=function(){var a=Ayc(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
Z2.prototype.getLegalTypes=function(){return xyc};var R2=function(a,b){S2.call(this,a,b)};W(R2,S2);R2.prototype.getWidgetType=function(){return"text"};R2.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){b=b.simpleValues[0];var c=b.value;"QUOTED_TEXT"===b.type&&(c=c.slice(1,c.length-1));return{value:c}})};R2.prototype.valuesToStrings=function(){return this.values.map(function(a){return-1<a.value.indexOf(" ")?'"'+a.value+'"':a.value})};
var a3=function(a,b){S2.call(this,a,b)};W(a3,S2);a3.prototype.getWidgetType=function(){return"component"};a3.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};gt(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};a3.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var Syc=function(a,b){S2.call(this,a,b)};W(Syc,S2);Syc.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};gt(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};Syc.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var Tyc=function(a,b){S2.call(this,a,b)};W(Tyc,S2);Tyc.prototype.getWidgetType=function(){return"tracker"};
var Uyc=function(a,b){S2.call(this,a,b)};W(Uyc,Syc);Uyc.prototype.getWidgetType=function(){return"team"};var Vyc=function(a,b){S2.call(this,a,b)};W(Vyc,S2);Vyc.prototype.getWidgetType=function(){return"hotlist"};var Wyc=function(a,b){S2.call(this,a,b)};W(Wyc,S2);Wyc.prototype.getWidgetType=function(){return"savedsearch"};var Q2=function(a,b){hs.call(this,a,b)};W(Q2,hs);Q2.prototype.getWidgetType=function(){return"number"};Q2.prototype.getLegalTypes=function(){return yyc};
var Xyc=function(a,b){N2.call(this,a,b)};W(Xyc,N2);Xyc.prototype.initType=function(a){N2.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var b3={},Yyc=(b3.ATTACHMENT={ruleCtor:R2,name:"Attachment name"},b3.COMMENT={ruleCtor:R2},b3.TITLE={ruleCtor:R2},b3.ASSIGNEE={ruleCtor:X2},b3.MODIFIER={ruleCtor:W2},b3.REPORTER={ruleCtor:X2},b3.VERIFIER={ruleCtor:X2},b3.CC={ruleCtor:W2},b3.COLLABORATOR={ruleCtor:W2},b3.COMPONENT_ID={ruleCtor:a3,name:"Component"},b3.TRACKER_ID={ruleCtor:Tyc,name:"Tracker"},b3.TYPE={ruleCtor:Hyc},b3.STATUS={ruleCtor:Jyc},b3.PRIORITY={ruleCtor:Dyc},b3.SEVERITY={ruleCtor:Fyc},b3.BLOCKED_BY_ID={ruleCtor:V2},b3.BLOCKING_ID=
{ruleCtor:V2},b3.PARENT_ID={ruleCtor:V2},b3.CANONICAL_ID={ruleCtor:Oyc},b3.ID={ruleCtor:Oyc},b3.FOUND_IN={ruleCtor:hs},b3.TARGETED_TO={ruleCtor:hs},b3.VERIFIED_IN={ruleCtor:hs},b3.CL={ruleCtor:hs,name:"Changelists"},b3.MODIFIED={ruleCtor:N2},b3.RESOLVED={ruleCtor:Xyc},b3.CREATED={ruleCtor:N2},b3.VERIFIED={ruleCtor:Xyc},b3.DELETION_TIME={ruleCtor:N2,name:"Deletion time"},b3.SAVED_SEARCH_ID={ruleCtor:Wyc,name:"Saved search"},b3.HOTLIST_ID={ruleCtor:Vyc,name:"Hotlist"},b3.STAR={ruleCtor:Y2,name:"Starred"},
b3.MUTE={ruleCtor:Y2,name:"Muted"},b3.IN_PROD={ruleCtor:Y2,name:"In production"},b3.CC_COUNT={ruleCtor:Q2},b3.COLLABORATOR_COUNT={ruleCtor:Q2},b3.DUPLICATE_COUNT={ruleCtor:Q2},b3.VOTE_COUNT={ruleCtor:Q2},b3.COMMENT_COUNT={ruleCtor:Q2},b3.LAST_MODIFIER={ruleCtor:X2,name:"Last Modified By"},b3.COMMENTER={ruleCtor:W2},b3.LAST_COMMENTER={ruleCtor:X2},b3.ARCHIVED={ruleCtor:Z2},b3.IS_DELETED={ruleCtor:Y2,name:"Deleted",queryLabel:"deleted"},b3.DELETION_REASON={ruleCtor:Lyc,name:"Deletion reason"},b3.ACCESS_LEVEL=
{ruleCtor:Nyc,name:"Issue access level"},b3._TEXT_={ruleCtor:R2,queryLabel:"",name:"All fields"},b3),Zyc=Object.assign({},Yyc,{EFFORT_LABEL:{ruleCtor:hs},MENTION:{ruleCtor:W2},MIN_SLO_TARGET:{ruleCtor:N2,name:"Nearest SLO",queryLabel:"nearestslo"},POSTMORTEM:{ruleCtor:hs,name:"Postmortems"},TEAM_ID:{ruleCtor:Uyc,name:"Team"}}),T2=function(a){this.activeSession=a},O2=function(a){return a.activeSession.isExternalSession()?Yyc:Zyc};T2.\u0275fac=function(a){return new (a||T2)(n(Us))};
T2.\u0275prov=$c({token:T2,factory:T2.\u0275fac,providedIn:"root"});var c3=function(a){this.internalArray_=m(a)};W(c3,X);g=c3.prototype;g.getField=function(){return Vi(this,1,0)};g.setField=function(a){rj(this,1,a)};g.getCustomFieldId=function(){return Yi(this,2)};g.setCustomFieldId=function(a){wj(this,2,a)};g.hasCustomFieldId=function(){return Xi(this,2)};var M$a=function(a){this.internalArray_=m(a)};W(M$a,X);g=M$a.prototype;g.getType=function(){return Vi(this,1,0)};g.setType=function(a){return rj(this,1,a)};g.hasType=function(){return Ti(this,1)};g.getValue=function(){return Hi(this,2)};g.setValue=function(a){return qj(this,2,a)};g.hasValue=function(){return Ii(this,2)};var d3=function(a){this.internalArray_=m(a)};W(d3,X);g=d3.prototype;g.getType=function(){return Vi(this,1,0)};g.setType=function(a){return rj(this,1,a)};g.hasType=function(){return Ti(this,1)};g.getValuesList=function(){return Ji(this,d3,2)};g.setValuesList=function(a){om(this,2,a)};g.setValues=function(a,b){rt(this,2,d3,a,b)};d3.repeatedFields_=[2,3];var U$a=function(a){this.internalArray_=m(a)};W(U$a,X);g=U$a.prototype;g.getType=function(){return Vi(this,1,0)};g.setType=function(a){return rj(this,1,a)};g.hasType=function(){return Ti(this,1)};g.getValuesList=function(){return Ji(this,d3,2)};g.setValuesList=function(a){om(this,2,a)};g.setValues=function(a,b){rt(this,2,d3,a,b)};g.getLabel=function(){return Fi(this,c3,4)};g.setLabel=function(a){return oj(this,c3,4,a)};g.hasLabel=function(){return Zi(this,c3,4)};U$a.repeatedFields_=[2];var bs=function(a){this.internalArray_=m(a,0,bs.messageId)};W(bs,X);bs.prototype.getType=function(){return Vi(this,1,0)};bs.prototype.setType=function(a){return rj(this,1,a)};bs.prototype.hasType=function(){return Ti(this,1)};bs.repeatedFields_=[2];bs.messageId="b.QueryBuilderResponse";var R$a=function(a){this.internalArray_=m(a,0,R$a.messageId)};W(R$a,X);R$a.messageId="b.SyntaxErrorResponse";var e3=function(a){this.internalArray_=m(a,0,e3.messageId)};W(e3,X);e3.prototype.getKindCase=function(){return Bl(this,S$a)};var S$a=[1,2];e3.messageId="b.QueryBuilderResponseOrError";var f3=function(a){this.executor=a},$yc=function(a,b){b=un(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:e3}).then(V$a).then(function(c){var d;null!=(d=c.syntaxErrorResponse)?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(H$a)});return c})};f3.\u0275fac=function(a){return new (a||f3)(n(uD))};f3.\u0275prov=$c({token:f3,factory:f3.\u0275fac,providedIn:"root"});var g3=function(){var a=this;this.allowedValues=[];this.disabled=!1;this.onValueSelect=new Yu;this.searchQuery$=new B.Subject;this.suggestedValues$=this.searchQuery$.pipe(jf(300),mf(),A(function(b){var c=b.toLowerCase();return a.allowedValues.filter(function(d){return ka(d.toLowerCase(),c)})}))};g3.prototype.ngAfterViewInit=function(){};g3.prototype.updateSelectionOnChange=function(a){this.onValueSelect.emit(a.option.value)};g3.prototype.search=function(a){this.searchQuery$.next(a)};
g3.\u0275fac=function(a){return new (a||g3)};
g3.\u0275cmp=od({type:g3,selectors:[["b-custom-repeated-enum-picker"]],viewQuery:function(a,b){a&1&&zg(XJ,7);if(a&2){var c;yg(c=Bg())&&(b.autocompleteTrigger=c.first)}},inputs:{customFieldTitle:"customFieldTitle",selectedValue:"selectedValue",allowedValues:"allowedValues",disabled:"disabled"},outputs:{onValueSelect:"onValueSelect"},decls:6,vars:8,consts:[["id","custom-repeated-enum-picker","type","text","autocomplete","off","aria-label","Custom repeated enum field selection",3,"placeholder","ngModel",
"disabled","matAutocomplete","click","input"],["customRepeatedEnumPicker",""],[3,"optionSelected"],["auto","matAutocomplete"],["class","custom-repeated-enum-search-result",3,"value",4,"ngFor","ngForOf"],[1,"custom-repeated-enum-search-result",3,"value"],[1,"custom-repeated-enum-suggestion"]],template:function(a,b){if(a&1){var c=r();D(0,"input",0,1);L("click",function(){t(c);var e=N(1);return v(b.search(e.value))})("input",function(){t(c);var e=N(1);return v(b.search(e.value))});F();D(2,"mat-autocomplete",
2,3);L("optionSelected",function(e){return b.updateSelectionOnChange(e)});P(4,W$a,3,2,"mat-option",4);T(5,"async");F()}if(a&2){var d=N(3);C("placeholder",b.customFieldTitle?"Select "+b.customFieldTitle:"")("ngModel",b.selectedValue)("disabled",b.disabled)("matAutocomplete",d);Nf("aria-disabled",b.disabled);w(4);C("ngForOf",V(5,6,b.suggestedValues$))}},dependencies:[Dv,YJ,XJ,Hz,Tg,hw,ow,Kv],styles:[".custom-repeated-enum-search-result.mat-option[_ngcontent-%COMP%]{line-height:normal;height:auto;padding:0 8px}.custom-repeated-enum-search-result.mat-option.mat-active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.custom-repeated-enum-search-result[_ngcontent-%COMP%]   .custom-repeated-enum-suggestion[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;padding:4px 0;overflow-wrap:break-word;white-space:pre-wrap}"],
changeDetection:0});var h3=function(a){var b=this;this.teamsService=a;this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new Yu;this.onEmptyQuery=new Yu;this.searchQuery$=new B.Subject;this.teamSuggestions$=this.searchQuery$.pipe(jf(300),mf(),zf(function(c){return wI(b.teamsService,c)}),A(function(c){return c.map(function(d){return new Y$a(d.pathIds,d.pathNames,d.description)})}))};h3.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};
h3.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};h3.prototype.displayFn=function(a){return a?a.name:""};h3.prototype.ngAfterViewInit=function(){};h3.\u0275fac=function(a){return new (a||h3)(z(uI))};
h3.\u0275cmp=od({type:h3,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&zg(XJ,7);if(a&2){var c;yg(c=Bg())&&(b.autocompleteTrigger=c.first)}},inputs:{teamSelected:"teamSelected",placeholder:"placeholder",panelWidth:"panelWidth",disabled:"disabled"},outputs:{onTeamSelect:"onTeamSelect",onEmptyQuery:"onEmptyQuery"},decls:7,vars:10,consts:[[1,"team-id-select"],["id","team-id","matInput","","type","text","autocomplete","off","aria-label","Team selection",3,"placeholder","ngModel","disabled",
"matAutocomplete","click","input"],["searchInput",""],[3,"panelWidth","displayWith","optionSelected"],["auto","matAutocomplete"],["class","team-search-result",3,"value",4,"ngFor","ngForOf"],[1,"team-search-result",3,"value"],[4,"ngFor","ngForOf"],[1,"description",3,"matTooltip"],[1,"path-names",3,"matTooltip","click"],["class","path-names-separator",4,"ngIf"],[1,"path-names-separator"]],template:function(a,b){if(a&1){var c=r();D(0,"div",0)(1,"input",1,2);L("click",function(){t(c);var e=N(2);return v(b.search(e.value))})("input",
function(){t(c);var e=N(2);return v(b.search(e.value))});F();D(3,"mat-autocomplete",3,4);L("optionSelected",function(e){return b.updateSelectionOnChange(e)});P(5,aab,6,8,"mat-option",5);T(6,"async");F()()}if(a&2){var d=N(4);w(1);hg("placeholder",b.placeholder);C("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",d);Nf("aria-disabled",b.disabled);w(2);C("panelWidth",b.panelWidth)("displayWith",b.displayFn);w(2);C("ngForOf",V(6,8,b.teamSuggestions$))}},dependencies:[Dv,Ev,YJ,XJ,Hz,FB,
Tg,hw,ow,Kv,Rv],styles:["input[type=text][_ngcontent-%COMP%]{width:100%}.team-search-result[_ngcontent-%COMP%]{line-height:16px;border:1px solid;border-color:#dadce0;border-color:var(--divider);.path-names-separator-color:#202124;.path-names-separator-color:var(--text);.path-names-separator-font-size:.8125rem;.path-names-separator-font-weight:500}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;font-weight:500;overflow-wrap:break-word;white-space:pre-wrap}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]:first-of-type{margin-left:0}.team-search-result[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-size:.75rem;color:#5f6368;color:var(--muted);overflow:hidden;text-overflow:ellipsis}"],
changeDetection:0});var Y$a=function(a,b,c){this.pathIds=a;this.pathNames=b;this.id=a[a.length-1];this.name=b[b.length-1];this.description=c||"";this.teamPath=b.map(function(d,e){return new azc(a.slice(0,e+1),b.slice(0,e+1))})},azc=function(a,b){this.pathIds=a;this.pathNames=b;this.name=0<b.length?b[b.length-1]:"";this.pathNameText=b.join(" > ")};var i3=function(a){var b=this;this.trackerFridge=a;this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new Yu;this.searchQuery$=new B.Subject;this.trackerSuggestions$=this.searchQuery$.pipe(jf(300),mf(),zf(function(c){return b.trackerFridge.watchMany({filter:c,pageSize:5})}),A(function(c){return c.results}));this.displayFn=function(c){return c?c.name:""}};i3.prototype.ngAfterViewInit=function(){};i3.prototype.updateSelectionOnChange=function(a){this.onTrackerSelect.emit(a.option.value)};
i3.prototype.search=function(a){this.searchQuery$.next(a)};i3.\u0275fac=function(a){return new (a||i3)(z(iG))};
i3.\u0275cmp=od({type:i3,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&zg(XJ,7);if(a&2){var c;yg(c=Bg())&&(b.autocompleteTrigger=c.first)}},inputs:{selectedTracker:"selectedTracker",placeholder:"placeholder",disabled:"disabled"},outputs:{onTrackerSelect:"onTrackerSelect"},decls:6,vars:9,consts:[["id","tracker-id","type","text","autocomplete","off","aria-label","Tracker selection",3,"placeholder","ngModel","disabled","matAutocomplete","click","input"],["trackerSearchInput",""],[3,"displayWith",
"optionSelected"],["auto","matAutocomplete"],["class","tracker-search-result",3,"value",4,"ngFor","ngForOf"],[1,"tracker-search-result",3,"value"],[1,"tracker-name"]],template:function(a,b){if(a&1){var c=r();D(0,"input",0,1);L("click",function(){t(c);var e=N(1);return v(b.search(e.value))})("input",function(){t(c);var e=N(1);return v(b.search(e.value))});F();D(2,"mat-autocomplete",2,3);L("optionSelected",function(e){return b.updateSelectionOnChange(e)});P(4,bab,3,2,"mat-option",4);T(5,"async");F()}if(a&
2){var d=N(3);C("placeholder",b.placeholder)("ngModel",b.selectedTracker)("disabled",b.disabled)("matAutocomplete",d);Nf("aria-disabled",b.disabled);w(2);C("displayWith",b.displayFn);w(2);C("ngForOf",V(5,7,b.trackerSuggestions$))}},dependencies:[Dv,YJ,XJ,Hz,Tg,hw,ow,Kv],styles:[".tracker-search-result.mat-option[_ngcontent-%COMP%]{line-height:normal;height:auto;padding:0 8px}.tracker-search-result.mat-option.mat-active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.tracker-search-result[_ngcontent-%COMP%]   .tracker-name[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;padding:4px 0;overflow-wrap:break-word;white-space:pre-wrap}"],
changeDetection:0});var j3=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O){Y.call(this);this.analytics=a;this.userApi=b;this.customFieldsApi=c;this.savedSearchApi=d;this.hotlistApi=e;this.trackerFridge=f;this.issueSearchResources=h;this.activeSession=k;this.elementRef=q;this.errorHandler=u;this.componentActions=x;this.teamsService=y;this.searchRuleConfigService=E;this.searchRuleFactory=H;this.cdr=J;this.currentTracker=O;this.isTrackerSearchEnabled=!1;this.availableLabels=[];this.expressions=[];this.components={};this.trackers=
{};this.teams={};this.hotlists={};this.savedSearches={};this.customFields={};this.userHotlists=[];this.userSavedSearches=[];this.trackerUnderEdit=this.teamUnderEdit=this.componentUnderEdit=this.chipUnderEdit=null;this.trackByIndex=function(R){return R};this.sessionIsInternal=this.activeSession.isInternalSession();this.typeLabels=bzc;this.globalTypeLabels=czc;this.state="INIT"};W(j3,Y);j3.\u0275dir=Y.\u0275dir;
var dzc=function(a){var b=[];vc(O2(a.searchRuleConfigService),function(c,d){"SAVED_SEARCH_ID"===d||"TRACKER_ID"===d&&!a.isTrackerSearchEnabled||"TEAM_ID"===d&&!a.sessionIsInternal||(c.name?b.push([d,c.name]):b.push([d,EBa(d)]))},a);b.sort(function(c,d){return raa(c[1],d[1])});b.push(["SAVED_SEARCH_ID","Saved search"]);b.push(["CUSTOM_FIELD","Custom field"]);return b};j3.prototype.schedule=function(a){this.subscriptions.add(B.asyncScheduler.schedule(a))};j3.prototype.ngOnInit=function(){this.cdr.detectChanges()};
j3.prototype.ngOnChanges=function(a){a.isTrackerSearchEnabled&&(this.availableLabels=dzc(this))};
var gzc=function(a,b){a.reset();b?ezc(a,b):(a.expressions=fzc.map(function(c){return qbb(a.searchRuleFactory,c)}),a.state="SUCCESS");a.userApi.getUserSavedSearches().then(function(c){a.userSavedSearches=c;c=l(a.userSavedSearches);for(var d=c.next();!d.done;d=c.next())d=d.value,a.savedSearches[d.searchId]=d;a.cdr.detectChanges()});a.userApi.getUserHotlists().then(function(c){a.userHotlists=c;c=l(a.userHotlists);for(var d=c.next();!d.done;d=c.next())d=d.value,a.hotlists[d.hotlistId]=d;a.cdr.detectChanges()});
a.cdr.detectChanges()},ezc=function(a,b){$yc(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",a.analytics.trackEvent("adv-search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return hzc(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=l(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state="NOT_REPRESENTABLE",
a.analytics.trackEvent("adv-search","adv-search-not-rep-error");a.cdr.detectChanges()})}).catch(function(c){a.state="SERVER_ERROR";a.errorHandler.errorHandler(null,c);a.cdr.detectChanges()})},hzc=function(a,b){b.label&&"TRACKER_ID"===b.label.field&&!a.isTrackerSearchEnabled&&(b.label.field="_TEXT_");b.label&&"TEAM_ID"===b.label.field&&!a.sessionIsInternal&&(b.label.field="_TEXT_");return b.label&&"CUSTOM_FIELD"===b.label.field&&void 0!==b.label.customFieldId?izc(a,b.label.customFieldId).then(function(c){b.customField=
c;return jzc(a,b)}):Promise.resolve(jzc(a,b))},izc=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},jzc=function(a,b){b="ERR"===b.type?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;kzc(a,b);return b},kzc=function(a,b){switch(b.label.field){case "COMPONENT_ID":var c=l(b.values);for(b=c.next();!b.done;b=c.next())b=fl(b.value.value),a.components[b]||a.fetchComponent(b);break;case "TRACKER_ID":if(a.isTrackerSearchEnabled)for(c=
l(b.values),b=c.next();!b.done;b=c.next())b=b.value.value,a.trackers[b]||lzc(a,b);break;case "TEAM_ID":if(a.sessionIsInternal)for(c=l(b.values),b=c.next();!b.done;b=c.next())b=b.value.value,a.teams[b]||mzc(a,b);break;case "SAVED_SEARCH_ID":c=l(b.values);for(b=c.next();!b.done;b=c.next())b=b.value,a.savedSearches[b.value]||a.savedSearchApi.get(b.value).then(function(d){a.savedSearches[d.searchId]=d});break;case "HOTLIST_ID":for(c=l(b.values),b=c.next();!b.done;b=c.next())b=b.value,a.hotlists[b.value]||
a.hotlistApi.get(b.value).then(function(d){a.hotlists[d.hotlistId]=d})}};j3.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.currentTracker.inTracker&&c.trackerId!==b.currentTracker.getTrackerId()||(b.components[a]=c)})};
var lzc=function(a,b){a.trackerFridge.watch(b).pipe(Af(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},mzc=function(a,b){wI(a.teamsService,b).pipe(gf(function(){return(0,B.of)([])}),Af(a.destroyed$)).subscribe(function(c){0<c.length?(c=c[0],a.teams[b]={id:c.teamId,pathNames:c.pathNames,name:c.name,description:c.description}):a.teams[b]={id:b,pathNames:[b],name:b,description:""}})},nzc=function(a){var b="AND"===a.expressionType?" ":" | ";return vEb(a.expressions.map(function(c){return c.label?
c.toString():""}),cGb).join(b)};j3.prototype.getState=function(){return this.state};j3.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var tbb=function(a,b){var c=a.expressions[b],d=c.label;"CUSTOM_FIELD"===d.field?c.isPendingCustomField=!0:(a.expressions[b]=qbb(a.searchRuleFactory,d.field),rbb(a,a.expressions[b]));a.cdr.detectChanges()},rbb=function(a,b){var c=b.getWidgetType();"component"===c||"savedsearch"===c||"hotlist"===c||"text"===c||"team"===c||"tracker"===c||"repeatedenum"===c?es(a,b):"date"===c&&(b.dateFrom||(b.dateFrom=Ryc(new pi)),b.dateTo||(b.dateTo=Ryc(new pi)))};
j3.prototype.removeExpression=function(a){za(this.expressions,a);this.cdr.detectChanges()};
var es=function(a,b){var c={value:""};b.values.push(c);"COMPONENT_ID"===b.label.field?yab(a,c):"TRACKER_ID"===b.label.field?Fab(a,c):"TEAM_ID"===b.label.field?Mab(a,c):"CUSTOM_FIELD"===b.label.field?hab(a,c):gs(a,c);a.cdr.detectChanges()},ds=function(a,b,c){za(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()},gs=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},yab=function(a,b){gs(a,b);a.componentUnderEdit=b.value?li(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},
hab=function(a,b){gs(a,b);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-adv-search-custom-repeated-enum-chip input").focus()})},Fab=function(a,b){gs(a,b);a.trackerUnderEdit=b.value?li(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},Mab=function(a,b){gs(a,b);a.teamUnderEdit=b.value?li(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},
cs=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},Oab=function(a,b){a.analytics.trackEvent(xp.SEARCH,"builder-autocomplete-select","team",isNaN(Number(b.id))?0:Number(b.id));a.chipUnderEdit.value=b.id;a.teams[b.id]=b;a.teamUnderEdit=null;cs(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
j3.prototype.getTypeLabel=function(a,b){var c,d;return(null==(c=this.typeLabels[a.label.field])?void 0:c[b])||(null==(d=this.typeLabels[a.getWidgetType()])?void 0:d[b])||this.typeLabels.DEFAULT[b]};j3.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||String(a):""};j3.prototype.getComponentPath=function(a){if(!a)return"";var b=is(this.currentTracker,a.componentPathInfo);return b&&b.componentPathName?b.componentPathName.join(" > "):a.name};
var czc={AND:"Match all (AND)",OR:"Match any (OR)"},bzc={DEFAULT:{AND:"All of",OR:"Any of",NOR:"Not all of",NAND:"None of",LT:"Before",GT:"After",LE:"On or before",GE:"On or after",DURATION:"Within (days)",NDURATION:"Not within (days)",RANGE:"Between",NRANGE:"Not between"},bool:{OR:"Is true",NAND:"Is false"},boolwithall:{OR:"Is true",NAND:"Is false",AND:"Include all"},text:{OR:"Matches any",NAND:"Doesn't match",AND:"Matches all"},date:{OR:"On"},number:{LT:"Less than",GT:"Greater than",LE:"Less or equal",
GE:"Greater or equal"}},fzc=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];j3.\u0275fac=function(a){return new (a||j3)(z(zH),z(nH),z(ZG),z(jI),z(mF),z(iG),z(f3),z(Us),z(ae),z(XF),z(EP),z(uI),z(T2),z(M2),z(yD,2),z(jG))};
j3.\u0275cmp=od({type:j3,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},features:[lg([yD]),Jf,Fd],decls:1,vars:1,consts:[["class","bv2-adv-search",4,"ngIf"],[1,"bv2-adv-search"],[1,"bv2-adv-search-title"],["appearance","outline",4,"ngIf"],["class","bv2-adv-search-rule",4,"ngFor","ngForOf","ngForTrackBy"],[1,"bv2-adv-search-rule","bv2-adv-search-rule-new"],["mat-stroked-button","","type","button",1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",
3,"matMenuTriggerFor"],[1,"mat-select-panel"],["newExpressionMenu","matMenu"],["mat-menu-item","","type","button",3,"click",4,"ngFor","ngForOf"],["appearance","outline"],[1,"bv2-adv-search-join-type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"bv2-adv-search-rule"],[1,"bv2-adv-search-rule-title"],[1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",3,"ngModel","ngModelChange","selectionChange"],["aria-label","Delete search rule",1,"bv2-remove-icon","keep-focus-ring",
"bv2-adv-search-rule-delete-btn",3,"click"],["class","bv2-adv-search-rule-content",4,"ngIf"],["class","bv2-adv-search-custom-field-label",4,"ngIf"],["class","bv2-adv-search-custom-field-selection",4,"ngIf"],[1,"bv2-adv-search-rule-op","bv2-adv-search-rule-jfk-select",3,"ngModel","ngModelChange"],[1,"bv2-adv-search-rule-content"],["class","bv2-adv-search-chip-container",4,"ngIf"],["class","bv2-adv-search-enum-rule",4,"ngIf"],[4,"ngIf"],[1,"bv2-adv-search-chip-container"],[4,"ngFor","ngForOf"],["mat-stroked-button",
"","class","bv2-adv-search-chip-add-btn",3,"click",4,"ngIf"],["class","bv2-adv-search-chip bv2-adv-search-custom-repeated-enum-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-custom-repeated-enum-chip"],["class","bv2-adv-search-chip-content bv2-adv-search-chip-content-btn",3,"title","click",4,"ngIf"],["class","bv2-adv-search-chip-content",4,"ngIf"],["aria-label","Remove the value",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-btn",
3,"title","click"],[1,"bv2-adv-search-chip-content-text"],[1,"bv2-adv-search-chip-content"],[1,"bv2-search-custom-repeated-enum-picker",3,"customFieldTitle","selectedValue","allowedValues","onValueSelect"],["mat-stroked-button","",1,"bv2-adv-search-chip-add-btn",3,"click"],[1,"bv2-adv-search-enum-rule"],["class","bv2-adv-search-enum-item",4,"ngFor","ngForOf"],[1,"bv2-adv-search-enum-item"],[3,"checked","change"],["type","text","aria-label","Add one or more user names, separated by comma","placeholder",
"One or more user names, comma-separated",3,"ngModel","bContactAutocomplete","ngModelChange"],["type","text","aria-label","Add one or more values, separated by comma","placeholder","One or more values, comma-separated",3,"ngModel","ngModelChange"],["type","text","placeholder","One or more IDs, comma-separated - e.g., 1,2,3",3,"ngModel","ngModelChange"],["type","text","aria-label","Add the condition",3,"ngModel","ngModelChange"],["class","bv2-adv-search-chip bv2-adv-search-chip-text",4,"ngFor","ngForOf"],
[1,"bv2-adv-search-chip","bv2-adv-search-chip-text"],["aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],["class","bv2-adv-search-chip bv2-adv-search-component-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-component-chip"],["role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"title","click"],[3,"svgIcon"],[1,"bv2-search-component-picker",3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["class",
"bv2-adv-search-chip bv2-adv-search-tracker-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-tracker-chip"],[1,"bv2-search-tracker-picker",3,"selectedTracker","onTrackerSelect"],["class","bv2-adv-search-chip bv2-adv-search-team-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-team-chip"],["role","switch","aria-label","Include subteams",1,"unstyled-button",3,"title","click"],[1,"bv2-search-team-picker",3,"teamSelected","onTeamSelect"],[3,"boundValue","isRequired","boundValueChange"],
["type","text","maxlength","3",1,"bv2-duration-field",3,"ngModel","ngModelChange"],["class","bv2-adv-search-chip bv2-adv-search-bookmark-item-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-bookmark-item-chip"],["appearance","outline","class","bv2-adv-search-bookmark-item-form-field",4,"ngIf"],["appearance","outline",1,"bv2-adv-search-bookmark-item-form-field"],["placeholder","Select hotlist",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModel","ngModelChange",
"selectionChange"],["placeholder","Select search",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModel","ngModelChange","selectionChange"],[1,"bv2-adv-search-custom-field-label"],[1,"bv2-adv-search-custom-field-selection"],[3,"fieldSelected"],["mat-menu-item","","type","button",3,"click"]],template:function(a,b){a&1&&P(0,wbb,11,6,"div",0);a&2&&C("ngIf","SUCCESS"===b.getState())},dependencies:[Dv,Ev,qA,mR,WR,Tg,hw,Aw,ow,fW,Ez,jA,AB,yB,zB,bP,Hz,PK,h3,i3,TR,g3,Pv,KI],styles:['[_nghost-%COMP%]     .mat-form-field-infix{width:unset;min-width:105px;border:0}[_nghost-%COMP%]     .mat-select-value{max-width:unset;color:#5f6368;color:var(--muted);font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;letter-spacing:0.0107142857em;font-variant-ligatures:none}[_nghost-%COMP%]     mat-select .mat-select-arrow-wrapper{transform:unset}[_nghost-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0;padding:0}[_nghost-%COMP%]     .bv2-custom-field-picker{width:unset}.mat-form-field[_ngcontent-%COMP%]{margin-right:5px;text-align:center}.bv2-adv-search-rule-type[_ngcontent-%COMP%]{min-width:105px}.bv2-adv-search-title[_ngcontent-%COMP%]{font-weight:bold;padding-left:8px;margin-right:5px;display:inline-block;min-width:254px}.bv2-adv-search-bookmark-item-chip[_ngcontent-%COMP%]{align-items:baseline}.bv2-adv-search-bookmark-item-form-field[_ngcontent-%COMP%]{text-align:left;width:100%}div.bv2-adv-search-enum-item[_ngcontent-%COMP%]{max-width:170px;min-width:170px}']});var k3=function(){};k3.\u0275fac=function(a){return new (a||k3)};k3.\u0275mod=qd({type:k3});k3.\u0275inj=ad({imports:[aD,ZJ,Dw]});var l3=function(){};l3.\u0275fac=function(a){return new (a||l3)};l3.\u0275mod=qd({type:l3});l3.\u0275inj=ad({imports:[aD,ZJ,SK,FC,Dw]});var m3=function(){};m3.\u0275fac=function(a){return new (a||m3)};m3.\u0275mod=qd({type:m3});m3.\u0275inj=ad({imports:[aD,ZJ,SK,FC,Dw]});var n3=function(){};n3.\u0275fac=function(a){return new (a||n3)};n3.\u0275mod=qd({type:n3});n3.\u0275inj=ad({imports:[aD,nR,YR,Dw,lW,SB,kA,oA,BB,cP,SK,RI,l3,m3,VR,k3]});var ozc=function(a){this.internalArray_=m(a)};W(ozc,X);g=ozc.prototype;g.getExperimentId=function(){return hi(this,1)};g.getState=function(){return Vi(this,2,0)};g.getTitle=function(){return Hi(this,4)};g.setTitle=function(a){return qj(this,4,a)};g.getDescription=function(){return Hi(this,5)};g.setDescription=function(a){return qj(this,5,a)};g.hasDescription=function(){return Ii(this,5)};var o3=function(a){this.internalArray_=m(a,0,o3.messageId)};W(o3,X);o3.repeatedFields_=[1];o3.messageId="b.ListBeapFeaturesResponse";var p3=function(a){this.executor=a};p3.prototype.fetch=function(){return this.executor.get({url:"action/experiments",responseConstructor:o3}).pipe(A(function(a){var b;return(null!=(b=Ji(a,ozc,1))?b:[]).map(zbb)}))};p3.\u0275fac=function(a){return new (a||p3)(n(tD))};p3.\u0275prov=$c({token:p3,factory:p3.\u0275fac,providedIn:"root"});var q3=function(a){hG.call(this,{freshUntil:Infinity,ancientAfter:Infinity});this.beapApi=a;this.recordType="beapFeature";this.idForRecord=function(b){return""+b.experimentId}};W(q3,hG);q3.prototype.fetchAll=function(){return this.beapApi.fetch().pipe(A(function(a){return{results:a}}))};q3.\u0275fac=function(a){return new (a||q3)(n(p3))};q3.\u0275prov=$c({token:q3,factory:q3.\u0275fac,providedIn:"root"});var r3=function(a){this.beapFridge=a};r3.prototype.getFeature=function(a){return pzc(this,"ALL").pipe(A(function(b){return b.find(function(c){return c.experimentId===a})}))};var pzc=function(a,b){b=void 0===b?"ALL":b;var c="ALL"===b,d="TEAM_FOOD"===b?"USER_GROUP_BUGANIZER_TEAM":"USER_GROUP_TRUSTED_TESTER";return a.beapFridge.watchMany({}).pipe(A(function(e){return e.results.filter(function(f){return c?!0:f.userGroup===d})}))};r3.prototype.refresh=function(){this.beapFridge.pokeMany({})};
r3.\u0275fac=function(a){return new (a||r3)(n(q3))};r3.\u0275prov=$c({token:r3,factory:r3.\u0275fac,providedIn:"root"});var s3=function(){};s3.\u0275fac=function(a){return new (a||s3)};
s3.\u0275cmp=od({type:s3,selectors:[["b-feature-stage-label"]],inputs:{featureStage:"featureStage"},decls:3,vars:3,consts:[[3,"ngSwitch"],["class","badged teamfood",4,"ngSwitchCase"],["class","badged early-access",4,"ngSwitchCase"],[1,"badged","teamfood"],[1,"badged","early-access"]],template:function(a,b){a&1&&(I(0,0),P(1,Abb,1,0,"div",1),P(2,Bbb,1,0,"div",2),K());a&2&&(C("ngSwitch",b.featureStage),w(1),C("ngSwitchCase","TEAM_FOOD"),w(1),C("ngSwitchCase","EARLY_ACCESS"))},dependencies:[Fv,Gv],styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});var t3=function(a){var b=this;this.beapService=a;this.experimentId$=new B.ReplaySubject(1);this.featureState$=this.experimentId$.pipe(zf(function(c){return b.beapService.getFeature(c)}));this.featureStage$=this.featureState$.pipe(A(function(c){if(!c)return"UNKNOWN";c=c.userGroup;return"USER_GROUP_BUGANIZER_TEAM"===c?"TEAM_FOOD":"USER_GROUP_TRUSTED_TESTER"===c?"EARLY_ACCESS":"UNKNOWN"}))};t3.prototype.ngOnChanges=function(){this.experimentId$.next(this.experimentId)};t3.prototype.ngOnInit=function(){};
t3.\u0275fac=function(a){return new (a||t3)(z(r3))};t3.\u0275cmp=od({type:t3,selectors:[["b-app-beap-state-indicator"]],inputs:{experimentId:"experimentId"},features:[Fd],decls:2,vars:3,consts:[[3,"featureStage"]],template:function(a,b){a&1&&(G(0,"b-feature-stage-label",0),T(1,"async"));if(a&2){var c;C("featureStage",null!==(c=V(1,1,b.featureStage$))&&void 0!==c?c:void 0)}},dependencies:[s3,Kv],encapsulation:2});var u3=function(){};u3.\u0275fac=function(a){return new (a||u3)};u3.\u0275mod=qd({type:u3});u3.\u0275inj=ad({imports:[aD]});var v3=function(){};v3.\u0275fac=function(a){return new (a||v3)};v3.\u0275mod=qd({type:v3});v3.\u0275inj=ad({imports:[aD,u3]});var w3=function(a){this.domSafe=a;this.buttonLabel="";this.alertMode=this.menuMode=!1},Cbb=function(a){kp(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};w3.\u0275fac=function(a){return new (a||w3)(z(zL))};
w3.\u0275cmp=od({type:w3,selectors:[["b-whats-new-button"]],inputs:{buttonLabel:"buttonLabel",menuMode:"menuMode",alertMode:"alertMode"},decls:2,vars:2,consts:[["mat-icon-button","","class","gmat-button","aria-label","Open release notes in a new tab",3,"matTooltip","click",4,"ngIf"],["mat-menu-item","","aria-label","Open release notes in a new tab",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Open release notes in a new tab",1,"gmat-button",3,"matTooltip","click"],[3,"svgIcon"],["mat-menu-item",
"","aria-label","Open release notes in a new tab",3,"click"]],template:function(a,b){a&1&&(P(0,Dbb,3,3,"button",0),P(1,Ebb,2,1,"button",1));a&2&&(C("ngIf",!b.menuMode),w(1),C("ngIf",b.menuMode))},dependencies:[Ev,qA,Ez,yB,FB],styles:["[_nghost-%COMP%] { display: flex; }"]});var x3=function(a,b,c){Y.call(this);this.session=a;this.appsEvents=b;this.prefsManager=c;this.density="COMFORTABLE";this.enableWhatsNewDialog=$C(a,"enableWhatsNewDialog");this.enableBeap=$C(a,"enableBeap")};W(x3,Y);x3.\u0275dir=Y.\u0275dir;g=x3.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(b){if(null==b?0:b.themePreferences)a.density=b.themePreferences.density})};g.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};
g.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};g.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};g.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};g.showSettings=function(a){this.appsEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey})};x3.\u0275fac=function(a){return new (a||x3)(z(Us),z(DF),z(iE))};
x3.\u0275cmp=od({type:x3,selectors:[["b-app-settings-menu"]],features:[Jf],decls:28,vars:13,consts:[["mat-icon-button","","matTooltip","Settings","aria-label","Settings",1,"gmat-button",3,"disabled","matMenuTriggerFor"],["svgIcon","settings-outline",1,"icon-m"],["settingsMenu","matMenu"],[1,"b-menu-header"],["mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to comfortable",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],["mat-menu-item","","role",
"menuitemcheckbox","aria-label","set display density to cozy",3,"click"],["mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to compact",3,"click"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"internalOnly"],["mat-menu-item","","href","/settings/early-access",4,"ngIf"],[4,"ngIf"],["mat-menu-item","","href","/settings/early-access"],["featureStage","TEAM_FOOD","matTooltip","Teamfood"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,b){a&
1&&(D(0,"button",0),G(1,"mat-icon",1),F(),D(2,"mat-menu",null,2)(4,"div",3),Q(5,"Display Density"),F(),D(6,"button",4),L("click",function(){return b.setDensity("COMFORTABLE")}),D(7,"span",5),G(8,"mat-icon",6),F(),Q(9," Comfortable "),F(),D(10,"button",7),L("click",function(){return b.setDensity("COZY")}),D(11,"span",5),G(12,"mat-icon",6),F(),Q(13," Cozy "),F(),D(14,"button",8),L("click",function(){return b.setDensity("COMPACT")}),D(15,"span",5),G(16,"mat-icon",6),F(),Q(17," Compact "),F(),G(18,"mat-divider"),
D(19,"button",9),L("click",function(d){return b.browseComponents(d)}),Q(20,"Browse components"),F(),D(21,"button",9),L("click",function(d){return b.manageHotlists(d)}),Q(22,"Manage hotlists"),F(),P(23,Fbb,2,0,"button",10),D(24,"button",9),L("click",function(d){return b.showSettings(d)}),Q(25,"Settings"),F(),P(26,Gbb,3,0,"a",11),P(27,Hbb,3,1,"ng-container",12),F());if(a&2){var c=N(3);C("disabled",b.session.isAnonymous())("matMenuTriggerFor",c);w(6);Xf("b-menu-item-checked","COMFORTABLE"===b.density);
Nf("aria-checked","COMFORTABLE"===b.density);w(4);Xf("b-menu-item-checked","COZY"===b.density);Nf("aria-checked","COZY"===b.density);w(4);Xf("b-menu-item-checked","COMPACT"===b.density);Nf("aria-checked","COMPACT"===b.density);w(12);C("ngIf",b.enableBeap);w(1);C("ngIf",b.enableWhatsNewDialog)}},dependencies:[Ev,qA,AB,yB,zB,Ez,dD,FB,w3,xL,s3],encapsulation:2,changeDetection:0});var y3=function(a){this.theme=a;this.isDark=!1;this.iconName="brightness-4"};y3.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();qzc(this)};var qzc=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"brightness-4"};y3.\u0275fac=function(a){return new (a||y3)(z(YK))};
y3.\u0275cmp=od({type:y3,selectors:[["theme-change-btn"]],decls:2,vars:1,consts:[["mat-icon-button","","matTooltip","Change theme","aria-label","Change the application's visual theme",3,"click"],[3,"svgIcon"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&IRb(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());q1b(c,!c.clientDarkmodeSubject.getValue());qzc(b)}),
G(1,"mat-icon",1),F());a&2&&(w(1),C("svgIcon",b.iconName))},dependencies:[qA,Ez,FB],encapsulation:2});var z3=function(a,b,c,d){this.session=a;this.userFeedback=b;this.domSafe=c;this.docLinks=d;this.enableWhatsNewDialog=$C(a,"enableWhatsNewDialog");this.majorReleaseNotesUpdated=$C(a,"majorReleaseNotesUpdated")};z3.prototype.openFeedbackDialog=function(){this.userFeedback.startFeedback()};z3.\u0275fac=function(a){return new (a||z3)(z(Us),z($K),z(zL),z(yL))};
z3.\u0275cmp=od({type:z3,selectors:[["b-app-actions"]],decls:6,vars:1,consts:[["id","whatsNewButton",3,"alertMode",4,"ngIf"],["mat-icon-button","","class","gmat-button feedback-button","matTooltip","Send feedback","aria-label","send feedback",3,"click",4,"internalOnly"],["mat-icon-button","","matTooltip","Help","aria-label","help",1,"gmat-button",3,"click"],["svgIcon","help-outline"],["id","whatsNewButton",3,"alertMode"],["mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",
1,"gmat-button","feedback-button",3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(G(0,"theme-change-btn"),P(1,Ibb,1,1,"b-whats-new-button",0),P(2,Jbb,2,0,"button",1),D(3,"button",2),L("click",function(){var c=b.domSafe,d=c.openInNewTab;var e=b.docLinks;e=e.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide":e.baseDocumentationUrl;d.call(c,e)}),G(4,"mat-icon",3),F(),G(5,"b-app-settings-menu"));a&2&&(w(1),C("ngIf",b.enableWhatsNewDialog))},
dependencies:[Ev,qA,Ez,FB,w3,xL,y3,x3],styles:["[_nghost-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap;color:#5f6368;color:var(--icon)}.new-feature-link[_ngcontent-%COMP%]{color:#3c4043;color:var(--c800)}/*# sourceMappingURL=app_actions.css.map */"],changeDetection:0});var A3=function(a,b){this.currentTracker=a;this.appSearchState=b;this.isTrackerExpanded=!1};A3.\u0275fac=function(a){return new (a||A3)(z(jG),z(mK))};
A3.\u0275cmp=od({type:A3,selectors:[["tracker-switcher"]],inputs:{associatedTrackers:"associatedTrackers"},decls:7,vars:3,consts:[["mat-icon-button","","matTooltip","Tracker menu",1,"tracker-menu-button",3,"matMenuTriggerFor","menuOpened","menuClosed"],["svgIcon","arrow-dropdown"],["xPosition","before"],["trackerMenu","matMenu"],[1,"tracker-menu-label"],["mat-menu-item","","role","menuitemcheckbox",3,"value","click",4,"ngFor","ngForOf"],["mat-menu-item","","role","menuitemcheckbox",3,"value","click"],
["alt","Tracker Logo Image",1,"tracker-menu-item-logo",3,"src"],[1,"tracker-menu-item-name"]],template:function(a,b){a&1&&(D(0,"button",0),L("menuOpened",function(){return b.isTrackerExpanded=!0})("menuClosed",function(){return b.isTrackerExpanded=!1}),G(1,"mat-icon",1),F(),D(2,"mat-menu",2,3)(4,"span",4),Q(5,"Select a tracker"),F(),P(6,Kbb,4,4,"button",5),F());if(a&2){var c=N(3);C("matMenuTriggerFor",c);Nf("aria-label",b.isTrackerExpanded?"Expanded tracker menu":"Collapsed tracker menu");w(6);C("ngForOf",
b.associatedTrackers)}},dependencies:[Dv,qA,Ez,AB,yB,zB,FB],styles:[".tracker-menu-button[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx)}mat-icon[_ngcontent-%COMP%]{line-height:0}.tracker-menu-label[_ngcontent-%COMP%]{display:inline-block;padding:8px}.mat-menu-item[_ngcontent-%COMP%]{max-width:none;height:auto;overflow:visible;padding:8px 25px}.mat-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin:0px}.tracker-menu-item-logo[_ngcontent-%COMP%]{height:40px;vertical-align:middle;width:40px;margin-right:12px}.tracker-menu-item-name[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx);font-size:.8125rem;white-space:nowrap}/*# sourceMappingURL=tracker_switcher.css.map */"],
changeDetection:0});var Mbb=function(a){return[a]},Nbb=function(){return[]},B3=function(a){this.activeSession=a;this.clickMenu=new Yu;this.showMenu=!1;this.clickLogo=new Yu;this.chips=[]};B3.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};B3.\u0275fac=function(a){return new (a||B3)(z(Us))};
B3.\u0275cmp=od({type:B3,selectors:[["app-logo"]],inputs:{imgSrc:"imgSrc",imgSrcDark:"imgSrcDark",href:"href",name:"name",chips:"chips"},outputs:{clickMenu:"clickMenu",clickLogo:"clickLogo"},ngContentSelectors:["*"],decls:8,vars:6,consts:[["mat-icon-button","","class","menu","aria-label","Expand/Collapse Navigation",3,"click",4,"ngIf"],[3,"click"],["alt","",1,"logo","light",3,"src"],["alt","",1,"logo","dark",3,"src"],["class","b-chip",3,"ngClass",4,"ngFor","ngForOf"],["mat-icon-button","","aria-label",
"Expand/Collapse Navigation",1,"menu",3,"click"],["svgIcon","menu-18px"],[1,"b-chip",3,"ngClass"]],template:function(a,b){a&1&&(eg(),P(0,Lbb,2,0,"button",0),D(1,"a",1),L("click",function(){return b.clickLogo.emit()}),G(2,"img",2)(3,"img",3),D(4,"h1"),Q(5),F()(),fg(6),P(7,Obb,2,5,"output",4));a&2&&(C("ngIf",b.showMenu),w(1),Nf("href",b.href?b.href:void 0,re),w(1),C("src",b.imgSrc,re),w(1),C("src",b.imgSrcDark||b.imgSrc,re),w(2),jg(b.name),w(2),C("ngForOf",b.chips))},dependencies:[Cv,Dv,Ev,qA,Ez],styles:['[_nghost-%COMP%]{box-sizing:border-box;height:48px;padding:0 16px;min-width:300px}[_nghost-%COMP%], a[_ngcontent-%COMP%]{display:flex;align-items:center}.menu[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx);margin-right:12px}.logo[_ngcontent-%COMP%]{width:30px;height:30px;padding:3px;margin-right:12px}h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;color:#3c4043;color:var(--gfx);font-size:1.375rem;font-weight:normal;display:inline-block;margin:0;padding:0;margin-right:8px;white-space:nowrap}.dark-mode   [_nghost-%COMP%]     .logo{filter:brightness(1.1) contrast(1.3)}.logo.dark[_ngcontent-%COMP%]{display:none}.dark-mode   [_nghost-%COMP%]     .logo.light{display:none}.dark-mode   [_nghost-%COMP%]     .logo.dark{display:inline-block}/*# sourceMappingURL=app_logo.css.map */'],
changeDetection:0});var rzc=function(){return[]},C3=function(a){this.events=a;this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};C3.prototype.ngOnInit=function(){var a="QA"===this.environmentType?"INTERNAL"===this.frontendAccessMode||"PARTNER"===this.frontendAccessMode?"QA":"sandbox":"NIGHTLY"===this.environmentType?"nightly":"DEV"===this.environmentType?"dev":"";a&&this.chips.push({name:a,color:"purple"})};
C3.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};C3.prototype.getAppName=function(){if(this.tracker)return this.tracker.name;switch(this.frontendAccessMode){case "INTERNAL":return"Buganizer";case "PARTNER":return"Partner IssueTracker";case "PUBLIC":return"IssueTracker";default:$h(this.frontendAccessMode,"unknown frontend access mode.")}};
Qh.Object.defineProperties(C3.prototype,{useNewLogo:{configurable:!0,enumerable:!0,get:function(){return"INTERNAL"===this.frontendAccessMode}},imgSrc:{configurable:!0,enumerable:!0,get:function(){var a=this.useNewLogo?"https://www.gstatic.com/buganizer/img/v3/logo_light.svg":"https://www.gstatic.com/buganizer/img/v0/logo.svg",b,c;return(null==(b=this.tracker)?void 0:null==(c=b.branding)?void 0:c.logoUrl)||a}},imgSrcDark:{configurable:!0,enumerable:!0,get:function(){var a,b;return(null==(a=this.tracker)?
void 0:null==(b=a.branding)?void 0:b.logoUrl)||"https://www.gstatic.com/buganizer/img/v3/logo_dark.svg"}}});C3.\u0275fac=function(a){return new (a||C3)(z(DF))};
C3.\u0275cmp=od({type:C3,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",associatedTrackers:"associatedTrackers",href:"href"},features:[Fd],decls:2,vars:7,consts:[[3,"name","href","chips","imgSrc","imgSrcDark","clickMenu"],[3,"associatedTrackers",4,"ngIf"],[3,"associatedTrackers"]],template:function(a,b){a&1&&(D(0,"app-logo",0),L("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),P(1,Pbb,1,1,"tracker-switcher",
1),F());if(a&2){var c;C("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark);w(1);C("ngIf",0<(null!==(c=b.associatedTrackers)&&void 0!==c?c:ng(6,rzc)).length)}},dependencies:[Ev,B3,A3],encapsulation:2,changeDetection:0});var D3=function(){this.isActive=!1;this.optionClicked=new Yu};D3.prototype.ngOnInit=function(){};D3.prototype.onClick=function(){this.optionClicked.emit(this.index)};D3.\u0275fac=function(a){return new (a||D3)};
D3.\u0275cmp=od({type:D3,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&L("click",function(){return b.onClick()});a&2&&Xf("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(eg(),D(0,"div",0),fg(1),F())},styles:["[_nghost-%COMP%]{cursor:pointer;display:flex;position:relative}.active[_nghost-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}[_nghost-%COMP%]:hover:not(.active){background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden;padding:8px 16px 8px 36px;text-overflow:ellipsis}.mat-ripple[_ngcontent-%COMP%]{pointer-events:none;position:absolute;height:100%;width:100%}/*# sourceMappingURL=app_search_auto_complete_option.css.map */"],
changeDetection:0});var E3=function(a,b,c){this.ref=a;this.hostElement=b;this.currentTracker=c;this.items=[];this.header=null;this.itemSelected=new Yu;this.activeItemChanged=new Yu;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component team tracker".split(" ")};E3.prototype.ngOnChanges=function(a){a.items&&(0<this.items.length?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};E3.prototype.ngAfterViewInit=function(){};
var pcb=function(a){var b=M(3);xcb(a);b.itemSelected.emit(a)};E3.prototype.setNextItemActive=function(){0<this.items.length&&null!=this.activeItemIndex&&(this.activeItemIndex=(this.activeItemIndex+1)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),szc(this))};
E3.prototype.setPreviousItemActive=function(){0<this.items.length&&null!=this.activeItemIndex&&(this.activeItemIndex=(this.activeItemIndex-1+this.items.length)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),szc(this))};var tzc=function(a){null!=a.activeItemIndex&&a.itemSelected.emit(a.items[a.activeItemIndex])};E3.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var uzc=function(a){if(null!=a.activeItemIndex&&a.itemElements){var b,c;return null!=(c=null==(b=a.itemElements.get(a.activeItemIndex))?void 0:b.nativeElement.id)?c:void 0}},szc=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&N5a(b.nativeElement,a.hostElement.nativeElement)},xcb=function(a){Mk(xp.SEARCH,"autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};E3.\u0275fac=function(a){return new (a||E3)(z(yD,2),z(ae),z(jG))};
E3.\u0275cmp=od({type:E3,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&zg(D3,5,ae);if(a&2){var c;yg(c=Bg())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},features:[lg([yD]),Fd],decls:3,vars:2,consts:[["class","header gmat-caption",4,"ngIf"],"role;listbox;aria-label;Search autocomplete list;id;b-search-box-autocomplete".split(";"),["role","option",3,"index","isActive","optionClicked",
4,"ngFor","ngForOf"],[1,"header","gmat-caption"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["noHotlistSelected",""],["noSavedSearchSelected",""],["noComponentSelected",""],[1,"margin-s-right"],[3,"accessLevel"],[3,"trackerId"],["noTrackerSelected",""],["noTeamSelected",""],["noSelectedCustomField",""],["role","option",3,"index","isActive","optionClicked"],[1,"monospaced","item-description"],[1,"item-description"],[4,"ngFor","ngForOf"],["role","button",3,"title","click"]],template:function(a,b){a&1&&(P(0,jcb,
7,6,"div",0),D(1,"div",1),P(2,ycb,9,11,"b-app-search-auto-complete-option",2),F());a&2&&(C("ngIf",b.header&&b.header.type),w(2),C("ngForOf",b.items))},dependencies:[Dv,Ev,XO,HP,D3,Lv],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;max-height:inherit;overflow-y:auto}.header[_ngcontent-%COMP%]{padding:4px 16px 4px 36px}.item-description[_ngcontent-%COMP%]{display:block;margin-top:5px}span[role=button][_ngcontent-%COMP%]{cursor:pointer}span[role=button][_ngcontent-%COMP%]:hover{text-decoration:underline}/*# sourceMappingURL=app_search_auto_complete_list.css.map */"],
changeDetection:0});var vzc=["box"],wzc=["initialFocus"],xzc=["finalFocus"],F3=function(a,b,c){this.documentationLinks=a;this.appSearchState=b;this.activeSession=c;this.placeholder="";this.isSearchDisabled=!1;this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new Yu;this.onAdvancedSearchClose=new Yu;this.onAdvancedSearchSubmit=new Yu;this.onSaveSearch=new Yu;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/guides/search-editor";
this.destroyed$=new B.Subject;this.currentQuery$=this.appSearchState.queryState$.pipe(A(function(d){return d.query}));this.autoCompleteItemSelected$=new B.Subject;this.isAnonymous=this.activeSession.isAnonymous()};
F3.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(Cf(this.currentQuery$),Af(this.destroyed$)).subscribe(function(b){b=l(b);var c=b.next().value;b=b.next().value;c=c.completionCfg;var d=b.slice(0,c.startIdx);b=b.slice(c.endIdx);a.appSearchState.queryState$.next({query:d+c.completionValue+b,cursorPosition:null!=c.cursorIdx?c.cursorIdx:null==c.startIdx?c.completionValue.length:c.startIdx+c.completionValue.length,setViaInteraction:!1});a.inputBox.nativeElement.focus()})};
F3.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(cf(function(b){return!b.setViaInteraction}),Af(this.destroyed$)).subscribe(function(b){var c=b.cursorPosition;a.inputBox.nativeElement.value=b.query;null!=c&&(b=a.inputBox.nativeElement,M$b(b)&&(b.selectionStart=c,b.selectionEnd=c))})};F3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var yzc=function(a){a.appSearchState.searchTriggered$.next("keyboard")},zzc=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();a.appSearchState.queryState$.next({query:b,cursorPosition:a.getCursorPosition(),setViaInteraction:!0})};
F3.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!G3(this))return;Azc(this);break;case "ArrowUp":if(!G3(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!G3(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!G3(this)){zzc(this,this.inputBox.nativeElement.value);return}tzc(this.acList);break;case "ArrowLeft":zzc(this,this.inputBox.nativeElement.value);return;case "Enter":G3(this)?null!=this.acList.activeItemIndex?tzc(this.acList):
yzc(this):yzc(this);break;default:return}a.preventDefault();a.stopPropagation()};F3.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();Bzc(this)};F3.prototype.getCursorPosition=function(){var a=N$b(this.inputBox.nativeElement,!0)[0];if(a===N$b(this.inputBox.nativeElement,!1)[1])return a};
var Azc=function(a){"auto_complete"===a.dropdownStatus&&(a.dropdownStatus="closed")},Bzc=function(a){"advanced_search"===a.dropdownStatus&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},G3=function(a){return"auto_complete"===a.dropdownStatus&&0<a.autoCompleteItems.length},Czc=function(a){return"auto_complete"===a.dropdownStatus&&null!=a.autoCompleteHeader},Dzc=function(a){return"advanced_search"===a.dropdownStatus};
F3.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",Bzc(this))};var Ezc=function(a,b){b.shiftKey&&"Tab"===b.key&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},Acb=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};F3.\u0275fac=function(a){return new (a||F3)(z(yL),z(mK),z(Us))};
F3.\u0275cmp=od({type:F3,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(zg(E3,7),zg(vzc,5),zg(wzc,7,ae),zg(xzc,7));if(a&2){var c;yg(c=Bg())&&(b.acList=c.first);yg(c=Bg())&&(b.inputBox=c.first);yg(c=Bg())&&(b.advancedSearchInitialFocus=c.first);yg(c=Bg())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",isSearchDisabled:"isSearchDisabled",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",
onAdvancedSearchClose:"onAdvancedSearchClose",onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},ngContentSelectors:["*"],decls:24,vars:19,consts:[[1,"search-form-container","keep-focus-ring",3,"clickOutside"],[1,"search-box-container"],["mat-icon-button","","aria-label","Search","matTooltip","Search",3,"click"],["svgIcon","search",1,"icon-m"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","6","aria-label",
"Search issues","role","combobox","aria-autocomplete","list","aria-haspopup","true","aria-owns","b-search-box-autocomplete",1,"search-box",3,"placeholder","keydown","input","click","focus"],["box",""],["mat-icon-button","","aria-label","Show search options","matTooltip","Show search options",3,"click"],["svgIcon","arrow-dropdown",1,"icon-m"],["role","search",1,"search-dropdown"],[3,"items","header","itemSelected"],[1,"advanced-search"],["align","right",1,"advanced-search-header"],["mat-icon-button",
"","aria-label","Close advanced search","matTooltip","Close advanced search",1,"gmat-button",3,"disabled","keydown","click"],["initialFocus",""],["svgIcon","close",1,"icon-s"],["cdkScrollable","",1,"advanced-search-content"],[1,"advanced-search-footer"],["mat-flat-button","",1,"gmat-button","medium",3,"disabled","click"],["target","_blank",1,"keep-underline","search-help-link"],["svgIcon","pop-out",1,"icon-xs"],["class","save-search-container",4,"ngIf"],[1,"save-search-container"],["type","text",
"aria-label","Enter the name for saving this search.","placeholder","Save search as",3,"ngModel","ngModelChange","keydown.Tab","keydown.enter"],["finalFocus",""],["mat-icon-button","","aria-label","Save search","matTooltip","Save search",1,"gmat-button",3,"disabled","click"],["svgIcon","saved-search-18px",1,"icon-s"]],template:function(a,b){if(a&1){var c=r();eg();D(0,"div",0);L("clickOutside",function(){Azc(b)});D(1,"div",1)(2,"button",2);L("click",function(){return yzc(b)});G(3,"mat-icon",3);F();
D(4,"textarea",4,5);L("keydown",function(d){return b.handleKeydown(d)})("input",function(){t(c);var d=N(5);return v(zzc(b,d.value))})("click",function(){t(c);var d=N(5);return v(zzc(b,d.value))})("focus",function(){b.dropdownStatus="auto_complete"});F();D(6,"button",6);L("click",function(){b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit()});G(7,"mat-icon",7);F()();D(8,"aside",8)(9,"b-app-search-auto-complete-list",9);L("itemSelected",function(d){return b.autoCompleteItemSelected$.next(d)});
F();D(10,"div",10)(11,"div",11)(12,"button",12,13);L("keydown",function(d){return Ezc(b,d)})("click",function(){return Bzc(b)});G(14,"mat-icon",14);F()();D(15,"div",15);fg(16);F();D(17,"div",16)(18,"button",17);L("click",function(){return b.submitAdvancedSearch()});Q(19," Search ");F();D(20,"a",18);Q(21,"Search help ");G(22,"mat-icon",19);F();P(23,Bcb,5,2,"div",20);F()()()()}a&2&&(Xf("dropdown-opened",G3(b)||Czc(b)||Dzc(b)),w(1),Xf("hidden",Dzc(b)),w(3),C("placeholder",b.placeholder),Nf("aria-activedescendant",
uzc(b.acList))("aria-expanded",G3(b)||Czc(b)),w(4),Xf("advanced-search-open",Dzc(b)),w(1),Xf("hidden",!(G3(b)||Czc(b))),C("items",b.autoCompleteItems)("header",b.autoCompleteHeader),w(1),Xf("hidden",!Dzc(b)),w(2),C("disabled",b.isSearchDisabled),w(6),C("disabled",b.isSearchDisabled),w(2),Nf("href",b.searchHelpLink,re),w(3),C("ngIf",!b.isAnonymous))},dependencies:[Ev,qA,Ay,Ez,FB,Tg,hw,ow,yM,aA,E3],styles:['[_nghost-%COMP%]{display:flex;align-items:center;flex-grow:1;position:relative;min-width:320px;height:40px}.search-form-container[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#f1f3f4;background-color:var(--main-search-bg);border-radius:8px;max-width:800px;min-width:320px;overflow:hidden;top:0;transition:all .1s ease-in-out;transition-property:box-shadow,height,max-height,overflow;width:100%}@media(forced-colors: active){.search-form-container[_ngcontent-%COMP%]{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}.search-box-container[_ngcontent-%COMP%]{display:flex;flex-grow:1;width:calc(100% - 8px * 2);min-height:40px;height:auto}.search-dropdown[_ngcontent-%COMP%]{max-height:0;overflow:hidden;top:40px;width:100%;transition:max-height .2s ease-in-out}.search-form-container.dropdown-opened[_ngcontent-%COMP%]   .search-dropdown[_ngcontent-%COMP%]{max-height:600px;padding-bottom:6px}.search-dropdown[_ngcontent-%COMP%]{padding-bottom:0}.search-form-container[_ngcontent-%COMP%]:focus-within, .search-form-container.dropdown-opened[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);background-color:#fff;background-color:var(--surface-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   textarea[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   input[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:not(:focus-within):not(.dropdown-opened)   textarea[_ngcontent-%COMP%]{height:auto !important;overflow:hidden}.mat-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px}.search-box-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.search-box-container[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{margin-top:8px}textarea[_ngcontent-%COMP%]{border:0;background-color:initial;outline:none;resize:none;padding:0;cursor:auto;color:#202124;color:var(--text-high-contrast);margin:10px 0;margin-left:5px;height:20px;line-height:20px;width:100%;overflow:auto}textarea[_ngcontent-%COMP%]:focus{border:0;padding:0;outline:none}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:rgba(0,0,0,0);border-radius:10px;border:0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:vertical{margin:5px 0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:horizontal{margin:0 5px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:rgba(0,0,0,.2)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.4)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:rgba(0,0,0,.5)}.advanced-search[_ngcontent-%COMP%]{padding:6px 6px 0 6px}.advanced-search-content[_ngcontent-%COMP%]{overflow:auto;max-height:532px}.advanced-search-footer[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:6px}.search-help-link[_ngcontent-%COMP%]{margin-left:10px}.save-search-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:2px;padding:0 5px}.save-search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;outline:none}[_nghost-%COMP%]     .bv2-adv-search-rule{background-color:#fff;background-color:var(--surface-default);display:flex;border-radius:10px;width:initial}[_nghost-%COMP%]     .bv2-adv-search-rule-title{display:flex}[_nghost-%COMP%]     .bv2-adv-search-rule-content{flex-grow:1;padding-right:25px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-enum-item{min-width:130px;max-width:130px}[_nghost-%COMP%]     .bv2-adv-search-chip-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);outline:0}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select{border-radius:5px;letter-spacing:0;min-width:105px;padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select .goog-flat-menu-button-dropdown{border:0;height:initial;margin-top:initial;position:relative;right:initial;top:initial;width:initial}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled){border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#3c4043;color:var(--gfx);padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):hover, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):active, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):not(.mdc-ripple-upgraded):focus{padding-right:24px;border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default);box-shadow:none}[_nghost-%COMP%]     .goog-flat-menu-button.goog-flat-menu-button-open.jfk-select{background-color:#fff;background-color:var(--surface-default)}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override), [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);height:28px;margin:0;padding-left:10px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override):focus, [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override):focus{border-color:#3c4043;border-color:var(--gfx);outline:0}[_nghost-%COMP%]     .bv2-adv-search-chip-add-btn{margin-right:20px}[_nghost-%COMP%]     .bv2-adv-search-chip{display:inline-flex;align-items:center;border:none;background-color:#fff;background-color:var(--surface-default);height:32px;width:100%;margin-bottom:10px}[_nghost-%COMP%]     .bv2-adv-search-chip-container{display:flex;flex-direction:column;width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content{width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content input[type=text]:not(.override){width:calc(100% - 10px)}[_nghost-%COMP%]     .bv2-adv-search-chip-content .bv2-adv-search-chip-delete-btn{margin-left:10px}[_nghost-%COMP%]     .bv2-adv-search-chip-content-selectable .goog-flat-menu-button{height:32px;margin:0;width:100%;text-align:left}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn{display:inline-flex;align-items:center;font-family:"Google Sans",Roboto,Arial,sans-serif;height:32px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;box-sizing:border-box;color:#3c4043;color:var(--gfx)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:hover, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:active, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:focus{border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:after{margin-left:auto;content:"";width:16px;height:16px;background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/edit.svg") 0 -2px;margin-right:5px;opacity:.6}[_nghost-%COMP%]     .bv2-adv-search-chip-content-text{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1rem;padding-left:12px;vertical-align:middle}/*# sourceMappingURL=app_search_box.css.map */'],
changeDetection:0});var H3=function(a){this.currentTracker=a;this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new Yu;this.searchBoxOnAdvancedSearchClose=new Yu;this.searchBoxOnAdvancedSearchSubmit=new Yu;this.searchBoxOnSaveSearch=new Yu},Fzc=function(){setTimeout(function(){var a;null==(a=document.getElementById("skiplink-navigation-target").querySelectorAll('div[role="tab"],a[href],button:not([tabindex="-1"],input')[0])||
a.focus()})};H3.\u0275fac=function(a){return new (a||H3)(z(jG))};
H3.\u0275cmp=od({type:H3,selectors:[["b-app-top-bar"]],inputs:{logoEnvironmentType:"logoEnvironmentType",logoFrontendAccessMode:"logoFrontendAccessMode",isSearchDisabled:"isSearchDisabled",searchBoxPlaceholder:"searchBoxPlaceholder",searchBoxAutoCompleteItems:"searchBoxAutoCompleteItems",searchBoxAutoCompleteHeader:"searchBoxAutoCompleteHeader"},outputs:{searchBoxOnAdvancedSearchOpen:"searchBoxOnAdvancedSearchOpen",searchBoxOnAdvancedSearchClose:"searchBoxOnAdvancedSearchClose",searchBoxOnAdvancedSearchSubmit:"searchBoxOnAdvancedSearchSubmit",
searchBoxOnSaveSearch:"searchBoxOnSaveSearch"},ngContentSelectors:["*"],decls:9,vars:12,consts:[[3,"environmentType","frontendAccessMode","tracker","associatedTrackers"],[1,"skip-navigation-wrapper"],["mat-button","","color","primary","aria-label","Skip to main content",1,"skip-to-main-content-link",3,"click","keydown.enter"],[3,"placeholder","autoCompleteItems","autoCompleteHeader","isSearchDisabled","onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch"]],template:function(a,
b){a&1&&(eg(),G(0,"b-app-logo",0),T(1,"async"),T(2,"async"),D(3,"div",1)(4,"button",2),L("click",function(){return Fzc()})("keydown.enter",function(){return Fzc()}),Q(5," Skip Navigation "),F()(),D(6,"b-app-search-box",3),L("onAdvancedSearchOpen",function(){return b.searchBoxOnAdvancedSearchOpen.emit()})("onAdvancedSearchClose",function(){return b.searchBoxOnAdvancedSearchClose.emit()})("onAdvancedSearchSubmit",function(){return b.searchBoxOnAdvancedSearchSubmit.emit()})("onSaveSearch",function(c){return b.searchBoxOnSaveSearch.emit(c)}),
fg(7),F(),G(8,"b-app-actions"));a&2&&(C("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",V(1,8,b.currentTracker.tracker$))("associatedTrackers",V(2,10,b.currentTracker.associatedTrackers$)),w(6),C("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader)("isSearchDisabled",b.isSearchDisabled))},dependencies:[Ez,C3,z3,F3,Kv],styles:["[_nghost-%COMP%]{display:flex;align-items:center}b-app-search-box[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:center}div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]{position:absolute;background-color:#e8f0fe;background-color:var(--selected-bg-muted);clip:rect(1px, 1px, 1px, 1px);overflow:hidden;transform:translateX(-50%)}div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:active, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus-visible, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus-within{transform:translate(-50%, -50%);position:absolute;clip:auto;overflow:visible;z-index:1}/*# sourceMappingURL=app_top_bar.css.map */"],
changeDetection:0});var I3=function(){};I3.\u0275fac=function(a){return new (a||I3)};I3.\u0275mod=qd({type:I3});I3.\u0275inj=ad({imports:[aD,Zz,SB,zK]});var J3=function(){};J3.\u0275fac=function(a){return new (a||J3)};J3.\u0275mod=qd({type:J3});J3.\u0275inj=ad({imports:[aD,SB,BB,FC]});var K3=function(){};K3.\u0275fac=function(a){return new (a||K3)};K3.\u0275mod=qd({type:K3});K3.\u0275inj=ad({imports:[aD,SB,BB,FC]});var L3=function(){};L3.\u0275fac=function(a){return new (a||L3)};L3.\u0275mod=qd({type:L3});L3.\u0275inj=ad({imports:[aD,SB,FC]});var M3=function(){};M3.\u0275fac=function(a){return new (a||M3)};M3.\u0275mod=qd({type:M3});M3.\u0275inj=ad({providers:[YK]});var N3=function(){};N3.\u0275fac=function(a){return new (a||N3)};N3.\u0275mod=qd({type:N3});N3.\u0275inj=ad({imports:[aD,SB,FC,M3]});var O3=function(){};O3.\u0275fac=function(a){return new (a||O3)};O3.\u0275mod=qd({type:O3});O3.\u0275inj=ad({imports:[aD,BB,SB,iD,FC,Fy,Dw,zM,K3,CL,L3,iP,cA,u3,N3,I3,J3,LP]});var P3=function(){};P3.\u0275fac=function(a){return new (a||P3)};P3.\u0275mod=qd({type:P3});P3.\u0275inj=ad({imports:[aD,SB,Zz]});var Q3=function(){};Q3.\u0275fac=function(a){return new (a||Q3)};Q3.\u0275mod=qd({type:Q3});Q3.\u0275inj=ad({imports:[aD,Dw,SB,oA,kA,Zz,VR]});var R3=function(){this.cardTitle="";this.dropdownOptions=[];this.inheritedDisabled=this.isInherited=this.showInheritedToggle=this.showDeleteButton=this.showRequiredToggle=this.isSaveButtonDisabled=this.disabled=this.selected=!1;this.inheritedDisabledTooltipText="";this.placeholderForCardTitle="Enter the card title (Required)";this.ariaLabelForCardTitle="Card title";this.dropdownSelectionChanged=new Yu;this.selectedChange=new Yu;this.cardTitleChange=new Yu;this.onSaveButtonClicked=new Yu;this.onCancelButtonClicked=
new Yu;this.isInheritedChange=new Yu;this.isExpanded=!1};R3.prototype.expand=function(){this.isExpanded=!0};R3.prototype.collapse=function(){this.isExpanded=!1};R3.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};R3.prototype.onCancel=function(){this.collapse();this.onCancelButtonClicked.emit()};R3.\u0275fac=function(a){return new (a||R3)};
R3.\u0275cmp=od({type:R3,selectors:[["b-collapsible-card"]],inputs:{cardTitle:"cardTitle",dropdownOptions:"dropdownOptions",selectedOption:"selectedOption",selected:"selected",disabled:"disabled",isSaveButtonDisabled:"isSaveButtonDisabled",showRequiredToggle:"showRequiredToggle",showDeleteButton:"showDeleteButton",showInheritedToggle:"showInheritedToggle",isInherited:"isInherited",inheritedDisabled:"inheritedDisabled",inheritedDisabledTooltipText:"inheritedDisabledTooltipText",placeholderForCardTitle:"placeholderForCardTitle",
ariaLabelForCardTitle:"ariaLabelForCardTitle"},outputs:{dropdownSelectionChanged:"dropdownSelectionChanged",selectedChange:"selectedChange",cardTitleChange:"cardTitleChange",onSaveButtonClicked:"onSaveButtonClicked",onCancelButtonClicked:"onCancelButtonClicked",isInheritedChange:"isInheritedChange"},ngContentSelectors:["*"],decls:11,vars:14,consts:[[1,"carded"],[1,"flex-kids-x","flex-cross-axis-centered","card-header"],[1,"collapsible-card-checkbox",3,"disabled","checked","aria-label","change"],[4,
"ngIf","ngIfElse"],["mat-icon-button","",3,"ngClass","click"],["svgIcon","chevron-left",4,"ngIf"],["svgIcon","arrow-down",4,"ngIf"],["expandedCardHeader",""],["class","expanded-card-container",4,"ngIf"],["class","expanded-card-actions",4,"ngIf"],[1,"card-title","heading-s"],["svgIcon","chevron-left"],["svgIcon","arrow-down"],["appearance","fill",1,"card-title"],["matInput","","type","text","required","","aria-required","true","maxlength","40","autocomplete","off",1,"heading-s",3,"placeholder","disabled",
"ngModel","ngModelChange"],["class","type-dropdown","appearance","outline",4,"ngIf"],["appearance","outline",1,"type-dropdown"],[3,"disabled","value","valueChange","selectionChange"],[4,"ngIf"],["class","ee-config-option",3,"value",4,"ngFor","ngForOf"],[1,"icon-s",3,"svgIcon"],[1,"ee-config-option",3,"value"],["class","icon-s",3,"svgIcon",4,"ngIf"],[1,"expanded-card-container"],[1,"expanded-card-actions"],["mat-raised-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-button",
"","color","primary",1,"gmat-button","cancel-button",3,"disabled","click"],["mat-icon-button","","aria-label","Delete","class","delete-button",3,"disabled",4,"ngIf"],[3,"vertical",4,"ngIf"],["labelPosition","before",3,"disabled",4,"ngIf"],["class","inherited-toggle","labelPosition","before",3,"checked","disabled","matTooltip","matTooltipDisabled","change",4,"ngIf"],["mat-icon-button","","aria-label","Delete",1,"delete-button",3,"disabled"],["svgIcon","delete",1,"icon-m"],[3,"vertical"],["labelPosition",
"before",3,"disabled"],["labelPosition","before",1,"inherited-toggle",3,"checked","disabled","matTooltip","matTooltipDisabled","change"]],template:function(a,b){a&1&&(eg(),D(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),L("change",function(d){b.selected=d.checked;b.expand();b.selectedChange.emit(b.selected)}),F(),P(3,Ccb,3,3,"ng-container",3),D(4,"button",4),L("click",function(){b.isExpanded?b.collapse():b.expand()}),P(5,Dcb,1,0,"mat-icon",5),P(6,Ecb,1,0,"mat-icon",6),F(),P(7,Jcb,3,7,"ng-template",null,
7,Eg),F(),P(9,Kcb,2,0,"div",8),P(10,Pcb,9,6,"div",9),F());if(a&2){var c=N(8);Nf("aria-expanded",b.isExpanded);w(2);Xf("expanded-checkbox",b.isExpanded);C("disabled",b.disabled)("checked",b.selected)("aria-label",b.cardTitle);w(1);C("ngIf",!b.isExpanded)("ngIfElse",c);w(1);C("ngClass",b.isExpanded?"collapse-toggle":"expand-toggle");Nf("aria-label",b.isExpanded?"Collapse editor":"Expand editor");w(1);C("ngIf",b.isExpanded);w(1);C("ngIf",!b.isExpanded);w(3);C("ngIf",b.isExpanded);w(1);C("ngIf",b.isExpanded)}},
dependencies:[Cv,Dv,Ev,qA,Tg,hw,zw,Aw,ow,PK,Ez,PP,jA,hA,bP,aP,Hz,dD,nA,FB],styles:['.card-title[_ngcontent-%COMP%]{margin-left:10px;width:440px}.expand-toggle[_ngcontent-%COMP%]{margin-left:auto}.collapse-toggle[_ngcontent-%COMP%]{align-self:baseline}.expanded-card-container[_ngcontent-%COMP%]{padding:18px}.expanded-card-actions[_ngcontent-%COMP%]{display:flex;align-items:center;border-top:1px solid;border-top-color:#9aa0a6;border-top-color:var(--c500);padding-top:16px}.expanded-card-actions[_ngcontent-%COMP%]   .cancel-button[_ngcontent-%COMP%]{width:80px;margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   .delete-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-slide-toggle[_ngcontent-%COMP%]{margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{height:40px}.expanded-card-actions[_ngcontent-%COMP%]   .inherited-toggle[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .mat-select-value, .ee-config-option[_ngcontent-%COMP%]{font-family:"Google Sans Display",Roboto,Arial,sans-serif;font-weight:500;color:#5f6368;color:var(--text-muted)}.type-dropdown[_ngcontent-%COMP%]{margin-left:auto;margin-right:8px}mat-select-trigger[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:10px}mat-select-trigger[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.expanded-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{margin-top:-10px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}']});var S3=function(){};S3.\u0275fac=function(a){return new (a||S3)};S3.\u0275mod=qd({type:S3});S3.\u0275inj=ad({imports:[aD,Dw,SK,SB,QP,cP,iD,oA,FC]});var T3=function(a){this.internalArray_=m(a,0,T3.messageId)};W(T3,X);g=T3.prototype;g.getFieldId=function(){return Fi(this,zl,1)};g.setFieldId=function(a){return oj(this,zl,1,a)};g.getStateOnIssues=function(){return Vi(this,2,0)};g.setStateOnIssues=function(a){return rj(this,2,a)};g.getEnabledOnIssues=function(){return Ri(this,3)};g.setEnabledOnIssues=function(a){return mj(this,3,a)};T3.messageId="b.FieldConfig";var U3=function(a){this.internalArray_=m(a,0,U3.messageId)};W(U3,X);U3.prototype.setFieldId=function(a){return rt(this,1,zl,a)};U3.repeatedFields_=[1];U3.messageId="b.ReorderFieldsRequest";var V3=function(a){this.executor=a};V3.prototype.updateCustomFieldState=function(a,b,c){var d={customFieldId:b};c=(new T3).setFieldId(gva(d)).setStateOnIssues(sva[c]).setEnabledOnIssues(!1);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:c,responseConstructor:T3}).pipe(A(Qcb))};V3.prototype.reorder=function(a,b){b=b.map(gva);var c=new U3;b=om(c,1,b);return this.executor.post({url:"action/components/"+a+"/reorder",body:b,responseConstructor:null})};
V3.\u0275fac=function(a){return new (a||V3)(n(tD))};V3.\u0275prov=$c({token:V3,factory:V3.\u0275fac,providedIn:"root"});var Gzc=["SILENT","MINOR","MAJOR"];var Hzc=["fieldStateMenu"],Ucb=function(a){return{type:a}},W3=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);var y=this;this.customFieldsApi=a;this.checkBeforeExit=b;this.butterBar=c;this.analytics=d;this.routeParams=e;this.componentActions=f;this.fieldConfigService=h;this.documentationLinks=k;this.paths=q;this.confirmationDialog=u;this.appEvents=x;this.FieldType=Zac;this.ListFieldType=Nbc;this.getSingleEditFieldType=rLa;this.getListFieldType=TMa;this.typeChoices=["TEXT","DATE","ENUM","NUMERIC"];this.secondaryTypes=
["Single","Multiple"];this.componentIdsToNames={};this.isLoading=!1;this.editableField=null;this.allowedValues=[];this.originalEditableFieldValue=null;this.msgFieldStateTip="Whether the field is visible in this component";this.significanceChoices=Gzc;this.componentId=qi(this.routeParams.componentId);this.subscriptions.add(VW(b,function(){return y.hasUnsavedChanges()},!0))};W(W3,Y);W3.\u0275dir=Y.\u0275dir;W3.prototype.ngOnInit=function(){this.loadCustomFields()};
W3.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=this.parentComponent.componentPathInfo.allCustomField,c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
W3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||djc())this.editableField=li(this.customFields[a]),this.originalEditableFieldValue=li(this.editableField),this.serverError=null,this.setType(this.editableField.type),Ycb(this,this.editableField.allowedValue)};
var jdb=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:hh("Deleting a custom field is permanent and will remove display of this custom field on all issues in this component and child components. However, data will remain in the system and may be visible through other means (ex: extracts or direct API calls). If you have sensitive data concerns, please file a support request to have the data deleted from affected issues. Are you sure you want to delete this field definition?"),onConfirm:function(){a.doDelete(c)}})};
W3.prototype.doDelete=function(a){var b=this;WF(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId);b.analytics.trackEvent("customField","delete");WF(b.butterBar,"Deleted field: "+a.name,2E3);b.loadCustomFields()})};
W3.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields();a.analytics.trackEvent("customField",d)},c=function(e){a.serverError=tn(e);a.isLoading=!1};["REPEATED_ENUM","ENUM"].includes(this.editableField.type)?this.editableField.allowedValue=this.allowedValues.map(function(e){return e.value}):this.editableField.allowedValue=null;if(this.editableField.customFieldId){var d="update";this.customFieldsApi.update(this.componentId,
this.editableField.customFieldId,this.editableField).then(b).catch(c)}else d="create",this.editableField.componentId=this.componentId,this.customFieldsApi.create(this.componentId,this.editableField).then(b).catch(c)};
W3.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId,a.customFieldId,b).pipe(Af(d.destroyed$)).subscribe(function(){a:{switch(b){case "INHERIT":var h="Inherit ("+(d.fieldsEnabledOnParentComponent.get(a.customFieldId)?"Enabled":"Disabled")+")";break a;case "DISABLED":h="Disabled";break a;case "ENABLED":h="Enabled";break a}h=void 0}d.analytics.trackEvent("customField","updateFieldConfig",h);d.componentActions.getUncached(d.componentId).then(function(){return d.loadCustomFields(!0)}).then(function(){setTimeout(function(){var k,
q;null==(k=d.fieldStateMenus)||null==(q=k.get(c))||q.focus()})}).then(function(){e(void 0)})},function(h){d.serverError=tn(h);d.isLoading=!1;f(h)})})};W3.prototype.cancel=function(){this.originalEditableFieldValue=this.editableField=null};
var adb=function(a,b){var c=a.editableField.type,d="TEXT"===c&&mi(b)?b:void 0,e="DATE"===c&&b&&Zua(b)?b:void 0,f="ENUM"===c&&mi(b)?b:void 0,h="NUMERIC"===c&&Jpa(b)?b:void 0,k="REPEATED_TEXT"===c&&ni(b)?{values:b}:void 0,q;if(q="REPEATED_DATE"===c)q=Array.isArray(b)&&b.every(Zua);q=q?{values:b}:void 0;var u="REPEATED_ENUM"===c&&ni(b)?{values:b}:void 0;b="REPEATED_NUMERIC"===c&&Kpa(b)?{values:b}:void 0;a.editableField.typedDefaultValue=new xl({customFieldId:a.editableField.customFieldId,textValue:d,
dateValue:e,enumValue:f,numericValue:h,repeatedTextValue:k,repeatedDateValue:q,repeatedEnumValue:u,repeatedNumericValue:b})};
W3.prototype.setType=function(a,b){var c=this.editableField.type;if(void 0===b?0:b)switch(a){case "TEXT":this.editableField.type="REPEATED_TEXT";break;case "DATE":this.editableField.type="REPEATED_DATE";break;case "ENUM":this.editableField.type="REPEATED_ENUM";break;case "NUMERIC":this.editableField.type="REPEATED_NUMERIC"}else this.editableField.type=a;a!=c&&(this.editableField.typedDefaultValue=null)};
var Ycb=function(a,b){b=null===b?null:b.map(function(c){return c.toString()});a.editableField.allowedValue=b;a.allowedValues=b?b.map(function(c){return{value:c,displayText:c}}):[]};W3.prototype.hasUnsavedChanges=function(){return this.editableField&&!ki(this.editableField,this.originalEditableFieldValue)?!0:!1};
W3.prototype.loadCustomFields=function(a){var b=this;a=void 0===a?!1:a;a||(this.isLoading=!0);return this.componentActions.get(this.componentId).then(function(c){var d,e=(null==(d=c.componentPathInfo)?void 0:d.allCustomField)||[];d=[];b.componentIdsToNames={};var f,h=(null==(f=c.componentPathInfo)?void 0:f.componentPathId)||[];for(f=0;f<h.length;f++)d.push(c.componentPathInfo.componentPathName[f]),b.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=d.join(" > ");b.editableField=null;b.originalEditableFieldValue=
null;a||(b.isLoading=!1);c=function(k,q){return oq(k.name,q.name)};b.customFields=e.filter(function(k){return b.componentId===k.componentId}).sort(c);b.inheritedCustomFields=e.filter(function(k){return b.componentId!==k.componentId}).sort(c);b.appEvents.customFieldsModified.next(e)})};var pdb=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};W3.prototype.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var bdb=function(a){var b,c;return null==(b=a.editableField)?void 0:null==(c=b.typedDefaultValue)?void 0:c.getValue()};W3.prototype.getListFieldValues=function(){var a,b,c,d;return null!=(d=null==(c=null==(a=this.editableField)?void 0:null==(b=a.typedDefaultValue)?void 0:b.getValue())?void 0:c.values)?d:null};W3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
W3.\u0275fac=function(a){return new (a||W3)(z(ZG),z(UW),z(VF),z(zH),z(aO),z(EP),z(V3),z(yL),z(xE),z(zJ),z(DF))};
W3.\u0275cmp=od({type:W3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&zg(Hzc,5);if(a&2){var c;yg(c=Bg())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},features:[Jf,Fd],decls:4,vars:3,consts:[[1,"edit-resource-panel","edit-component-field-parent"],["class","edit-custom-field-panel",4,"ngIf"],["class","custom-fields-loader",4,"ngIf"],[4,"ngIf"],[1,"edit-custom-field-panel"],["class","bv2-validation-error-banner",
4,"ngIf"],["name","editForm",1,"edit-custom-field-form"],[1,"edit-field"],["for","field-name",1,"help-label"],["name","fieldName","type","text","required","","id","field-name",3,"bFocus","ngModel","disabled","ngModelChange"],["for","field-description",1,"help-label"],["name","fieldDescription","id","field-description",3,"ngModel","disabled","ngModelChange"],[1,"edit-custom-field-table"],[1,"field-label-with-help","bv2-component-custom-field-label"],["id","field-type-label",1,"help-label",3,"onedevHovercardTrigger"],
["typeHelp",""],["role","dialog","aria-label","Type help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["mat-button","","mat-stroked-button","","aria-labelledby","field-type-label",1,"bv2-enum-field","gmat-button",3,"matMenuTriggerFor","disabled"],["name","arrow-dropdown","size","small"],["enumMenu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",4,"ngFor","ngForOf"],["secondaryMenu","matMenu"],["matMenuContent",""],["class","edit-field",4,"ngIf"],
["class","bv2-component-custom-field-label","id","field-default-label",4,"ngIf"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable","valueChange",4,"ngIf"],["class","bv2-component-custom-field-label","id","field-repeated-default-label",4,"ngIf"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate","valuesChange",
4,"ngIf"],["id","field-required-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-required-label",3,"name","type","tooltip","value","valueChange"],["id","field-significance-label","tabindex","0","aria-label","Field Significance - Press alt+right arrow to learn more.",1,"help-label",3,"onedevHovercardTrigger"],["significanceHelp",""],[1,"onedev-hovercard-content"],["aria-label","See email settings for more details.","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],
["mat-button","","mat-stroked-button","","type","button","aria-labelledby","field-significance-label",1,"keep-focus-ring","bv2-enum-field","gmat-button",3,"matMenuTriggerFor"],["significanceMenu","matMenu"],["mat-menu-item","","type","button",3,"click",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary","type","button",3,"disabled","click"],["mat-stroked-button","","type","button",3,"click"],[1,"bv2-validation-error-banner"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],
["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],["id","field-enums-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-enums-label",3,"defaultLineCount","type","values","listFieldDisabled","preventDuplicates","isDefaultOrAllowedValues","truncate","valuesChange"],["id","field-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate",
"clearable","valueChange"],["id","field-repeated-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate","valuesChange"],["mat-menu-item","","type","button",3,"click"],[1,"custom-fields-loader"],[3,"large"],[1,"custom-fields-table"],[3,"ngClass",4,"ngFor","ngForOf"],["class","edit-button-row",4,"ngIf"],[3,"ngClass"],[3,"customFieldValue"],
["class","action-buttons",4,"ngIf"],[1,"action-buttons"],["mat-stroked-button","",3,"click"],["colspan","9",1,"custom-fields-inherited-parent"],["colspan","9"],[1,"ancestor-component-note"],[1,"header-label"],[3,"onedevHovercardTrigger","href","click"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"fieldName","fieldState","enabledOnParent","disabled","matTooltip","fieldStateChange",4,"ngIf"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],[3,"fieldName","fieldState","enabledOnParent",
"disabled","matTooltip","fieldStateChange"],["fieldStateMenu",""],["routerLink","./","fragment","fieldOrdering",1,"keep-underline"],[1,"edit-button-row"],["mat-raised-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,gdb,68,32,"div",1),P(2,hdb,2,1,"div",2),P(3,vdb,26,7,"div",3),F());a&2&&(w(1),C("ngIf",b.editableField&&!b.isLoading),w(1),C("ngIf",b.isLoading),w(1),C("ngIf",!b.isLoading))},dependencies:[Cv,Dv,Ev,pw,Tg,hw,iw,zw,ow,mw,KR,qR,bD,u_,PJ,QJ,UJ,RJ,YO,FB,
AB,yB,zB,xB,Ez,LW,ZR,MJ,YD,HI,GI,JI],styles:["button[_ngcontent-%COMP%]{margin-right:3px}button.bv2-enum-field[_ngcontent-%COMP%]{padding:0px 12px;margin-bottom:32px;height:32px;line-height:32px}b-spinner[_ngcontent-%COMP%]{position:absolute}"]});var X3=function(){};X3.\u0275fac=function(a){return new (a||X3)};X3.\u0275mod=qd({type:X3});X3.\u0275inj=ad({imports:[aD,Dw,LR,rR,hD,v_,CK,jP,FC,BB,SB,cP,MW,$R,RI,AK,bE]});var Y3=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new Yu;this.addRow=new Yu;this.optionsChange=new Yu};Y3.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};Y3.prototype.drop=function(a){ap(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};Y3.\u0275fac=function(a){return new (a||Y3)};
Y3.\u0275cmp=od({type:Y3,selectors:[["b-config-grid"]],inputs:{options:"options",disabled:"disabled"},outputs:{removeAtIndex:"removeAtIndex",addRow:"addRow",optionsChange:"optionsChange"},decls:11,vars:7,consts:[[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"padded-sides","heading-xs","config-title-container","flex-kids-x"],["aria-label","Average days. All estimated effort types map to an average number of days.",1,"config-title"],["svgIcon",
"help-outline","tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],["cdkDropList","",1,"options-container",3,"cdkDropListDropped"],["cdkDrag","",4,"ngFor","ngForOf"],["mat-button","","class","gmat-button add-row-button",3,"click",4,"ngIf"],["cdkDrag",""],[1,"flex-kids-x","flex-cross-axis-centered","option-row"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[3,"appearance"],["matInput","","aria-label",
"Dropdown value","autocomplete","off","maxlength","40",1,"input-text",3,"value","placeholder","disabled","change"],["displayInput","matInput"],["matInput","","aria-label","Average days","autocomplete","off","type","number",1,"input-text",3,"value","placeholder","disabled","change"],["valueInput","matInput"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["svgIcon","close",1,"icon-s","delete-icon"],["mat-button","",1,"gmat-button","add-row-button",3,"click"]],template:function(a,
b){a&1&&(D(0,"div",0)(1,"div",1)(2,"span",2),Q(3," Dropdown value "),F()(),D(4,"div",3)(5,"span",4),Q(6," Average days "),F(),G(7,"mat-icon",5),F()(),D(8,"div",6),L("cdkDropListDropped",function(c){return b.drop(c)}),P(9,xdb,12,13,"div",7),F(),P(10,ydb,2,0,"button",8));a&2&&(w(2),Xf("muted",b.disabled),w(3),Xf("muted",b.disabled),w(2),C("matTooltip","All estimated effort types map to an average number of days."),w(2),C("ngForOf",b.options),w(1),C("ngIf",!b.disabled))},dependencies:[Dv,Ev,qA,jA,nA,
Ez,FB,IR,HR,BR],styles:[".delete-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.add-row-button[_ngcontent-%COMP%]{font-size:1rem;color:#5f6368;color:var(--text-muted);font-style:normal;font-weight:400;font-family:Roboto,Arial,sans-serif}.options-container[_ngcontent-%COMP%]{margin-left:-32px}.option-row[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.option-row[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:move;visibility:hidden;margin-top:8px;margin-left:8px}.option-row[_ngcontent-%COMP%]:hover   .drag-handle[_ngcontent-%COMP%]{visibility:visible;color:#dadce0;color:var(--c300)}\n/*# sourceMappingURL=config_grid.css.map */"]});var Z3=function(){this.disabled=!1;this.valueChange=new Yu};Z3.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};Z3.\u0275fac=function(a){return new (a||Z3)};
Z3.\u0275cmp=od({type:Z3,selectors:[["b-numeric-config"]],inputs:{disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},decls:14,vars:8,consts:[[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"type-m","margin-y","disabled-time-val"],[1,"config-title-container","flex-kids-x"],["id","config-label","aria-label","Average days. All estimated effort types map to an average number of days.",1,"config-title"],["svgIcon","help-outline",
"tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],[3,"appearance"],["matInput","","type","number","aria-labelledby","config-label",1,"input-text",3,"disabled","value","change"],["timeInput","matInput"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"span",2),Q(3," Time "),F(),D(4,"span",3),Q(5,"1"),F()(),D(6,"div",1)(7,"div",4)(8,"span",5),Q(9," Average days "),F(),G(10,"mat-icon",6),F(),D(11,"mat-form-field",
7)(12,"input",8,9),L("change",function(d){return b.onValueChange(d)}),F()()()());if(a&2){var c=N(13);w(2);Xf("muted",b.disabled);w(6);Xf("muted",b.disabled);w(2);C("matTooltip","All estimated effort types map to an average number of days.");w(1);C("appearance",c.focused?"standard":"none");w(1);C("disabled",b.disabled)("value",b.value)}},dependencies:[qA,jA,nA,FB],styles:[".disabled-time-val[_ngcontent-%COMP%]{color:#bdc1c6;color:var(--text-disabled);font-size:1rem;line-height:24px;font-weight:400;width:168px}\n/*# sourceMappingURL=numeric_config.css.map */"]});var b4=function(a){this.activeSession=a;this.disabled=!1;this.updateEffortSpec=new Yu;this.configurationOptions=[Izc,Jzc,a4];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=UTb;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=$C(this.activeSession,"enableAggregationRules")};
b4.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&this.effortSpec.numericSpec&&(this.originalSelectedEffortConfig=a4)};b4.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=li(this.effortSpec),this.setValues(this.effortSpec))};
b4.prototype.setValues=function(a){if(a.numericSpec){this.selectedEffortConfig=a4;var b,c,d;this.numericSpecMultiplier=null!=(d=null==(b=this.effortSpec)?void 0:null==(c=b.numericSpec)?void 0:c.multiplier)?d:1}if(a.enumSpec){this.selectedEffortConfig=void 0;var e,f;this.enumSpecOptions=(null!=(f=null==(e=a.enumSpec)?void 0:e.options)?f:[]).map(function(k){return{label:k.label,value:k.value}})}var h;this.inherit=null!=(h=a.inherit)?h:!1;this.name=""===a.name?"Estimated effort":a.name||"";if(a.enumSpec||
a.numericSpec)this.estimatedEffortFieldEnabled=!0;void 0!==a.aggregationType&&a.aggregationType!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=a.aggregationType)};
var Kzc=function(a){var b,c,d;if((null==(b=a.effortSpec)?0:b.enumSpec)&&!a.selectedEffortConfig||(null==(c=a.selectedEffortConfig)?void 0:c.displayText)===Izc.displayText||(null==(d=a.selectedEffortConfig)?void 0:d.displayText)===Jzc.displayText)return"enum";var e;return(null==(e=a.selectedEffortConfig)?void 0:e.displayText)===a4.displayText?"numeric":"empty"};b4.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};
b4.prototype.isSaveButtonDisabled=function(){var a;if(!(a=this.disabled||void 0===this.selectedEffortConfig&&void 0===this.effortSpec&&this.estimatedEffortFieldEnabled&&!this.inherit||""===this.name)){a:{a=l(this.enumSpecOptions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,!b.label||null===b.value){a=!1;break a}a=!0}a=!a}return a};var Lzc=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};b4.\u0275fac=function(a){return new (a||b4)(z(Us))};
b4.\u0275cmp=od({type:b4,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},features:[Fd],decls:8,vars:14,consts:[["placeholderForCardTitle","Enter the estimated effort field title (required)","ariaLabelForCardTitle","Estimated effort field title",3,"cardTitle","dropdownOptions","selectedOption","disabled","selected","isSaveButtonDisabled","showInheritedToggle","isInherited",
"inheritedDisabled","cardTitleChange","dropdownSelectionChanged","onSaveButtonClicked","selectedChange","onCancelButtonClicked","isInheritedChange"],[1,"content",3,"ngSwitch"],[4,"ngSwitchCase"],["class","margin-top",4,"ngIf"],["enumConfig",""],[4,"ngTemplateOutlet"],[3,"disabled","value","valueChange"],[1,"margin-top"],["id","aggregation-rule-label",1,"aggregation-rule-label","config-label","heading-xs","margined"],"mat-icon-button;;matTooltip;Learn more about the aggregation rules;href;http://go/wtdm-home#aggregation;target;_blank".split(";"),
["svgIcon","help-outline",1,"icon-s","gfx-muted"],["appearance","outline",1,"static-label","margined"],["aria-labelledby","aggregation-rule-label","panelClass","multi-line-select",3,"value","disabled","valueChange"],[1,"multi-line",3,"value"],[1,"title"],[1,"help-text"],[3,"options","disabled","optionsChange","addRow","removeAtIndex"]],template:function(a,b){a&1&&(D(0,"b-collapsible-card",0),L("cardTitleChange",function(c){return b.name=c})("dropdownSelectionChanged",function(c){b.selectedEffortConfig=
c;c.displayText===Izc.displayText?(b.enumSpecOptions=[].concat(p(Mzc)),b.name="Story points"):c.displayText===Jzc.displayText?(b.enumSpecOptions=[].concat(p(Nzc)),b.name="T-shirt sizes"):c.displayText===a4.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0})("onSaveButtonClicked",function(){if(b.estimatedEffortFieldEnabled){var c={name:b.name,inherit:b.inherit};b.enableAggregationRules&&(c.aggregationType=b.selectedAggregationRule);b.originalEffortSpec&&0!==b.originalEffortSpec.customFieldId&&
(c.customFieldId=b.originalEffortSpec.customFieldId);var d;if((null==(d=b.selectedEffortConfig)?void 0:d.displayText)===a4.displayText)c.numericSpec={multiplier:b.numericSpecMultiplier};else if(0<b.enumSpecOptions.length){d=[];for(var e=l(b.enumSpecOptions),f=e.next();!f.done;f=e.next())f=f.value,f.label&&null!==f.value&&d.push({label:f.label,value:f.value});c.enumSpec={options:d}}b.updateEffortSpec.emit(c)}else b.updateEffortSpec.emit({name:"",inherit:!1})})("selectedChange",function(c){b.estimatedEffortFieldEnabled=
c;b.estimatedEffortFieldEnabled||Lzc(b)})("onCancelButtonClicked",function(){b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,Lzc(b))})("isInheritedChange",function(c){(c=c.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:{name:"Estimated effort"}),b.effortSpec=b.parentEffortSpec,b.effortSpec||Lzc(b)):b.effortSpec&&(b.setValues({}),Lzc(b));b.inherit=c}),D(1,"div",1),P(2,Adb,2,
1,"ng-container",2),P(3,Bdb,2,2,"ng-container",2),P(4,Cdb,1,0,"ng-container",2),F(),P(5,Ddb,23,13,"div",3),F(),P(6,Edb,1,2,"ng-template",null,4,Eg));a&2&&(C("cardTitle",b.name)("dropdownOptions",b.configurationOptions)("selectedOption",b.selectedEffortConfig)("disabled",b.disabled||b.inherit)("selected",b.estimatedEffortFieldEnabled)("isSaveButtonDisabled",b.isSaveButtonDisabled())("showInheritedToggle",!0)("isInherited",b.inherit)("inheritedDisabled",b.disabled),w(1),C("ngSwitch",Kzc(b)),w(1),C("ngSwitchCase",
"enum"),w(1),C("ngSwitchCase","numeric"),w(1),C("ngSwitchCase","empty"),w(1),C("ngIf",b.enableAggregationRules&&b.estimatedEffortFieldEnabled))},dependencies:function(){return[Ev,Jv,Fv,Gv,qA,jA,Fz,R3,FB,bP,aP,Hz,Y3,Z3,c4]},styles:["[_nghost-%COMP%]     .content .config-title-container{width:168px}[_nghost-%COMP%]     .content .config-title-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .content mat-form-field{height:34px;width:168px}[_nghost-%COMP%]     .content mat-form-field .mat-form-field-flex{padding-top:1px}[_nghost-%COMP%]     .content mat-form-field .mat-form-field-infix{padding:0 0 .5em}[_nghost-%COMP%]     .content .input-text{font-weight:400;font-size:1rem}.aggregation-rule-label[_ngcontent-%COMP%]{margin-right:2px}[_nghost-%COMP%]     mat-select .mat-select-arrow-wrapper{-webkit-transform:translateX(0);transform:translateX(0);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}\n/*# sourceMappingURL=estimated_effort_config.css.map */"]});
var Mzc=[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"5",value:5},{label:"8",value:8},{label:"13",value:13},{label:"21",value:21},{label:"34",value:34}],Nzc=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],Izc={displayText:"Story points",icon:"story-point-24px"},Jzc={displayText:"T-shirt sizes",icon:"t-shirt-24px"},a4={displayText:"Time",icon:"time-24px"},c4=function(){};
c4.prototype.transform=function(a){switch(a){case "MAX":return"Max Point";default:return"Simple Sum"}};c4.\u0275fac=function(a){return new (a||c4)};c4.\u0275pipe=td({name:"aggregationRuleText",type:c4,pure:!0});var d4=function(){this.disabled=!1;this.updateComponent=new Yu};d4.\u0275fac=function(a){return new (a||d4)};
d4.\u0275cmp=od({type:d4,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"effortSpec","parentEffortSpec","disabled","updateEffortSpec"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),Q(2,"Once activated, standard fields appear in the right panel of all issues."),F(),D(3,"b-estimated-effort-config",
2),L("updateEffortSpec",function(c){b.updateComponent.emit(c)}),F()());a&2&&(w(3),C("effortSpec",b.effortSpec)("parentEffortSpec",b.parentEffortSpec)("disabled",b.disabled))},dependencies:[b4],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});var e4=function(){};e4.\u0275fac=function(a){return new (a||e4)};e4.\u0275mod=qd({type:e4});e4.\u0275inj=ad({imports:[aD,oA,SB,SK,S3,FC,cP,JR]});var f4=function(){};f4.\u0275fac=function(a){return new (a||f4)};f4.\u0275mod=qd({type:f4});f4.\u0275inj=ad({imports:[aD,S3,e4]});var g4=function(a){var b=this;this.teamsService=a;this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new Yu;this.inherit=!1;this.selectedTeam$=new B.Subject;this.teamIdChanged$=new B.ReplaySubject(1);this.placeholder$=this.teamIdChanged$.pipe(A(function(c){return"0"===c?!b.isAdmin||!b.isTopLevel&&b.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),yf(""));this.teamFromId$=this.teamIdChanged$.pipe(zf(function(c){return"0"===
c?(0,B.of)(new Y$a([c],[""],"")):vI(b.teamsService,c).pipe(A(function(d){return new Y$a([],d.collapsedPathNames,d.description)}))}));this.displayedTeam$=(0,B.merge)(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(zf(function(c){return"0"===c?(0,B.of)("MISSING"):b.teamsService.getTeam(c).pipe(A(function(d){return!d||d.deleted?"DELETED":"VALID"}))}))};
g4.prototype.updateSelectionOnChange=function(a){Mk(xp.MANAGE_COMPONENT,"autocomplete-select","team",isNaN(Number(a.id))?0:Number(a.id));this.selectedTeam$.next(a);this.model.id=a.id;this.modelChange.emit(this.model);Ozc(this)};var Ozc=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};g4.prototype.ngOnInit=function(){Object.assign({},this.model);Ozc(this)};var Idb=function(a){return a.model.id&&"0"!==a.model.id};
g4.prototype.getMomaTeamLink=function(){return Idb(this)?"https://moma.corp.google.com/team/"+this.model.id:null};g4.\u0275fac=function(a){return new (a||g4)(z(uI))};
g4.\u0275cmp=od({type:g4,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},decls:13,vars:13,consts:[[4,"ngIf"],["class","edit-field",4,"ngIf"],[1,"edit-field","component-team-id-select"],["for","component-team-id"],["id","component-team-id","panelWidth","479px",3,"placeholder","disabled","teamSelected","onTeamSelect","onEmptyQuery"],
[4,"ngIf","ngIfElse"],["externalLink",""],["class","team-warning",4,"ngIf"],[1,"team-warning"],[3,"warningType","messageOnly"],[1,"edit-field"],[3,"disabled","checked","change"],["mat-icon-button","","class","gmat-button small","aria-label","Go to Team page.","matTooltip","Go to Team page.",3,"routerLink","target","click",4,"ngIf"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"gmat-button","small",3,"routerLink","target","click"],["svgIcon","pop-out",1,"icon-s"],
["mat-icon-button","","class","gmat-button small","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",3,"click",4,"ngIf"],["mat-icon-button","","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"gmat-button","small",3,"click"]],template:function(a,b){a&1&&(D(0,"div"),P(1,Gdb,2,1,"ng-container",0),T(2,"async"),P(3,Hdb,3,2,"div",1),D(4,"div",2)(5,"label",3),Q(6,"Team selection"),F(),D(7,"b-team-picker",4),L("onTeamSelect",
function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model);Ozc(b)}),T(8,"async"),T(9,"async"),F(),P(10,Kdb,2,1,"ng-container",5),F()(),P(11,Mdb,1,1,"ng-template",null,6,Eg));if(a&2){var c=N(12);w(1);C("ngIf",V(2,7,b.warningType$));w(2);C("ngIf",!b.isTopLevel);w(4);C("placeholder",V(8,9,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",V(9,11,b.displayedTeam$));w(3);C("ngIf",b.useInternalLink)("ngIfElse",c)}},
dependencies:[Ev,qA,PK,FB,h3,LY,Fz,YD,Kv],styles:[".component-team-id-select[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:95px}.component-team-id-select[_ngcontent-%COMP%]   #component-team-id[_ngcontent-%COMP%]{display:inline-block;width:479px}.team-warning[_ngcontent-%COMP%]{width:240px}"],changeDetection:0});var h4=function(){};h4.\u0275fac=function(a){return new (a||h4)};h4.\u0275mod=qd({type:h4});h4.\u0275inj=ad({imports:[aD,ZJ,SK,FC,l3,YZ,Dw,SB,bE]});var i4=function(){};i4.\u0275fac=function(a){return new (a||i4)};i4.\u0275mod=qd({type:i4});i4.\u0275inj=ad({imports:[aD,Dw,SB,oA,kA,Zz]});var j4=function(a,b,c){this.data=a;this.dialogRef=b;this.liveAnnouncer=c;this.originalFields=[];this.fields=[];this.fieldOrdering="FIELD_ORDERING_UNSPECIFIED";this.grabbed=this.hasChanges=!1;this.originalFields=a.fields.concat();this.fields=a.fields.concat();this.fieldOrdering=a.orderingCustomized},Pzc=function(a){a.fields.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};j4.prototype.drop=function(a){ap(this.fields,a.previousIndex,a.currentIndex);this.detectChanges()};
var Ndb=function(a,b){return 0<b?(ap(a.fields,b,b-1),a.detectChanges(),!0):!1},Odb=function(a,b){return b<a.fields.length-1?(ap(a.fields,b,b+1),a.detectChanges(),!0):!1};j4.prototype.trackByFn=function(){return-1};j4.prototype.onFocus=function(a){this.liveAnnouncer.announce(this.fields[a].name+" focused at position "+(a+1)+" of "+this.fields.length+". Press space to grab the item.")};
j4.prototype.onKeyDown=function(a,b){switch(a.key){case " ":a.preventDefault();Qzc(this,b);break;case "Tab":this.grabbed&&Qzc(this,b);break;case "ArrowUp":Rzc(this,a);break;case "ArrowDown":Rzc(this,a)}};
var Qzc=function(a,b){a.grabbed?(a.grabbed=!1,a.grabbedIndex=void 0,a.liveAnnouncer.announce(a.fields[b].name+" dropped at position "+(b+1)+" of "+a.fields.length+".")):(a.grabbed=!0,a.grabbedIndex=b,a.liveAnnouncer.announce(a.fields[b].name+" grabbed at position "+(b+1)+" of "+a.fields.length+". Press up and down arrow to move the item."))},Rzc=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&void 0!==a.grabbedIndex){if("ArrowUp"===b.key){if(Ndb(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else Odb(a,a.grabbedIndex)&&(d=c.nextElementSibling,a.grabbedIndex++);d&&(d.focus(),a.liveAnnouncer.announce(a.fields[a.grabbedIndex].name+" moved to position "+(a.grabbedIndex+1)+" of "+a.fields.length+". Press space to drop the item."))}}};j4.prototype.detectChanges=function(){this.hasChanges=!ki(this.fields,this.originalFields)};j4.\u0275fac=function(a){return new (a||j4)(z(Tz),z(Rz),z(Zx))};
j4.\u0275cmp=od({type:j4,selectors:[["b-field-reorder-dialog"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],["mat-dialog-title","",1,"margin-none"],["mat-icon-button","","aria-label","Sorts the fields alphabetically","matTooltip","Sort alphabetically",3,"click"],["svgIcon","sort_by_alpha_24px"],["mat-dialog-content",""],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","","tabindex","0",3,"keydown","focus",4,"ngFor","ngForOf","ngForTrackBy"],
["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action","save",3,"disabled","click"],["cdkDrag","","tabindex","0",3,"keydown","focus"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[1,"arrows"],["mat-icon-button","","aria-label","Move the field up",3,"click"],["svgIcon","arrow-up"],["mat-icon-button","","aria-label","Move the field down",3,"click"],["svgIcon",
"arrow-down"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"h1",2),Q(3," Reorder custom fields "),F(),D(4,"button",3),L("click",function(){return Pzc(b)}),G(5,"mat-icon",4),F()()(),D(6,"div",5)(7,"ol",6),L("cdkDropListDropped",function(c){return b.drop(c)}),P(8,Pdb,9,7,"li",7),F()(),D(9,"div",8)(10,"button",9),L("click",function(){return b.dialogRef.close()}),Q(11," Cancel "),F(),D(12,"button",10),L("click",function(){return b.dialogRef.close(b.fields)}),Q(13," Save "),F()());a&2&&(w(8),
C("ngForOf",b.fields)("ngForTrackBy",b.trackByFn),w(4),C("disabled","CUSTOMIZED"===b.fieldOrdering&&!b.hasChanges))},dependencies:[Dv,qA,Ez,Wz,Xz,Yz,IR,HR,BR,FB],styles:["ol[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);font-size:.8125rem;padding:10px;display:flex;align-items:center}li[_ngcontent-%COMP%]   .arrows[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:5px;opacity:.2}li[_ngcontent-%COMP%]   .arrows[_ngcontent-%COMP%]{margin-left:auto}li[aria-grabbed=true][_ngcontent-%COMP%]:focus   span[_ngcontent-%COMP%]{font-style:italic}li[_ngcontent-%COMP%]:focus{border-radius:3px;box-shadow:0 0 0 3px rgba(0,0,0,.1)}li[_ngcontent-%COMP%]:focus   .drag-handle[_ngcontent-%COMP%]{opacity:1}li[_ngcontent-%COMP%]:focus   .arrows[_ngcontent-%COMP%]{visibility:visible}li[_ngcontent-%COMP%]:focus   .arrows.invisible[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]:hover   .drag-handle[_ngcontent-%COMP%]{opacity:1}li[_ngcontent-%COMP%]:hover   .arrows[_ngcontent-%COMP%]{visibility:visible}li[_ngcontent-%COMP%]:hover   .arrows.invisible[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]:last-of-type{border-bottom:none;margin-bottom:3px}li[_ngcontent-%COMP%]:first-of-type{margin-top:3px}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.3}.cdk-drag-preview[_ngcontent-%COMP%]{opacity:.3;border-bottom:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform 250ms cubic-bezier(0, 0, 0.2, 1)}"]});var k4=function(a,b,c,d,e){this.matDialog=a;this.confirmationDialog=b;this.fieldConfigService=c;this.analytics=d;this.butterBar=e;this.fields=[];this.isAdmin=!1;this.onReload=new Yu;this.displayedColumn=["index","name","type","required","customFieldId"]},ceb=function(a){return Pz(a.matDialog.open(j4,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&Szc(a,b)})},deb=function(a){a.confirmationDialog.open({title:"Reset ordering?",content:hh("Resetting the ordering of the custom fields will return them to the position defined by its parent component. This action may also reset the ordering of fields in all other sub-components."),
onConfirm:function(){a.reset()}})},Szc=function(a,b){a.analytics.trackEvent(xp.FIELD_ORDERING,"reorderFields");var c=b.map(function(d){return{customFieldId:d.customFieldId}});a.componentId?(WF(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){WF(a.butterBar,"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){a.butterBar.showWarning("Saving ordering failed, please refresh the page.",5E3)})):a.butterBar.showWarning("Saving ordering failed due to the undefined component id.")};
k4.prototype.reset=function(){var a=this;this.analytics.trackEvent(xp.FIELD_ORDERING,"resetFields");this.componentId?(WF(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:null}).subscribe(function(){WF(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){a.butterBar.showWarning("Reset failed.")})):this.butterBar.showWarning("Reset failed due to the undefined component id.")};
k4.\u0275fac=function(a){return new (a||k4)(z(Uz),z(zJ),z(V3),z(zH),z(VF))};
k4.\u0275cmp=od({type:k4,selectors:[["b-field-reorder"]],inputs:{fields:"fields",componentId:"componentId",fieldOrdering:"fieldOrdering",isAdmin:"isAdmin"},outputs:{onReload:"onReload"},decls:22,vars:5,consts:[[1,"field-reorder-panel"],[1,"field-order-table"],["mat-table","",3,"dataSource"],["matColumnDef","index"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","required"],["matColumnDef","customFieldId"],
["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-data-row",4,"ngIf"],["class","edit-button-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"no-data-row"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button","medium",3,"disabled","click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"table",2),I(3,3),P(4,Qdb,2,0,"th",4),P(5,Rdb,2,1,"td",5),K(),I(6,6),P(7,Sdb,2,0,"th",
4),P(8,Tdb,2,1,"td",5),K(),I(9,7),P(10,Udb,2,0,"th",4),P(11,Vdb,3,3,"td",5),K(),I(12,8),P(13,Wdb,2,0,"th",4),P(14,Xdb,2,1,"td",5),K(),I(15,9),P(16,Ydb,2,0,"th",4),P(17,Zdb,2,1,"td",5),K(),P(18,$db,1,0,"tr",10),P(19,aeb,1,0,"tr",11),F(),P(20,beb,2,0,"div",12),F(),P(21,eeb,6,2,"div",13),F());a&2&&(w(2),C("dataSource",b.fields),w(16),C("matHeaderRowDef",b.displayedColumn),w(1),C("matRowDefColumns",b.displayedColumn),w(1),C("ngIf",0===b.fields.length),w(1),C("ngIf",b.isAdmin))},dependencies:[Ev,Ez,mV,
$U,fV,bV,ZU,hV,cV,eV,iV,kV,PO],styles:["th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:8px;text-align:left;font-size:.8125rem;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}th[_ngcontent-%COMP%]{font-weight:bold;color:#202124;color:var(--text-high-contrast)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type{padding-left:8px}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type{padding-right:8px}.no-data-row[_ngcontent-%COMP%]{padding:12px}button[_ngcontent-%COMP%]{margin-right:12px}"]});var l4=function(){};l4.\u0275fac=function(a){return new (a||l4)};l4.\u0275mod=qd({type:l4});l4.\u0275inj=ad({providers:[zJ],imports:[aD,SB,Zz]});var m4=function(){};m4.\u0275fac=function(a){return new (a||m4)};m4.\u0275mod=qd({type:m4});m4.\u0275inj=ad({imports:[aD,SB,cJ,Zz,AV,JR,FC,hD,l4,RO]});var n4=function(a){this.analytics=a;this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},geb=function(a,b){switch(a.packageName){case "wiki":return"https://wiki.corp.google.com/twiki/bin/view/"+encodeURIComponent(a.filename);default:var c="https://cs.corp.google.com/"+encodeURIComponent(a.packageName)+"/"+a.filename+"?q="+Tzc+a.issueId+Uzc;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
n4.prototype.trackClick=function(a){this.analytics.trackEvent("codeMentions","clickCodeSearchLink",a)};n4.\u0275fac=function(a){return new (a||n4)(z(zH))};
n4.\u0275cmp=od({type:n4,selectors:[["b-file-mention"]],inputs:{issueId:"issueId",packageName:"packageName",filename:"filename",lineNumbers:"lineNumbers",changeNumber:"changeNumber"},decls:5,vars:4,consts:[[1,"bv2-file-mention"],["target","_blank",1,"bv2-file-mention-filename",3,"href","click"],[4,"ngIf"],[1,"bv2-file-mention-line-number-list"],["class","bv2-file-mention-line-number",4,"ngFor","ngForOf"],[1,"bv2-file-mention-line-number"],["target","_blank",3,"href","click"]],template:function(a,
b){a&1&&(D(0,"div",0)(1,"a",1),L("click",function(){return b.trackClick("fileName")}),Q(2),F(),P(3,feb,2,1,"span",2),P(4,ieb,5,1,"span",2),F());a&2&&(w(1),C("href",geb(b,b.lineNumbers),re),w(1),S(" ",b.filename," "),w(1),C("ngIf",!(10>=b.lineNumbers.length&&"wiki"!=b.packageName)),w(1),C("ngIf",10>=b.lineNumbers.length&&"wiki"!=b.packageName))},dependencies:[Dv,Ev],encapsulation:2});
var Tzc=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),Uzc=encodeURIComponent("(\\b|$)");var o4=function(){};o4.\u0275fac=function(a){return new (a||o4)};o4.\u0275mod=qd({type:o4});o4.\u0275inj=ad({imports:[aD]});var Vzc=function(){return{width:400}},Wzc=function(){return[]},p4=function(a,b,c,d,e,f,h,k,q){var u=this;this.bLocation=c;this.paths=d;this.analytics=e;this.currentTracker=h;this.componentActions=k;this.cdr=q;this.includeArchived$=new B.BehaviorSubject(!1);this.rootComponent$=this.currentTracker.tracker$.pipe(zf(function(x){return x?u.componentActions.get(Number(x.componentId)):(0,B.of)(void 0)}));this.topLevelComponents$=(0,B.combineLatest)([this.rootComponent$,this.includeArchived$]).pipe(zf(function(x){var y=
l(x);x=y.next().value;y=y.next().value;var E;return u.componentActions.getChildren(null!=(E=null==x?void 0:x.parentComponentId)?E:0,y,jYb(u.currentTracker))}));this.createComponentPath=ys.COMPONENT_CREATE;a.setTitle("Browse Components");b.componentId&&leb(this,Number(b.componentId),(0,B.firstValueFrom)(this.topLevelComponents$));this.isInternalSession=f.isInternalSession()};p4.prototype.viewComponent=function(a,b){b=void 0===b?null:b;a&&(b&&this.analytics.trackEvent("listComponents",b),this.bLocation.url(this.paths.manageComponent(a.componentId)))};
var leb=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=paa(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-1),f={0:c},h=l(e),k=h.next();!k.done;k=h.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return yo(f).then(function(q){for(var u=q[0],x=0,y=l(e),E=y.next(),H={};!E.done;H={parentId$jscomp$16:H.parentId$jscomp$16},E=y.next()){H.parentId$jscomp$16=E.value;E=void 0;var J=null!=(E=u.find(function(O){return function(R){return R.componentId===
O.parentId$jscomp$16}}(H)))?E:null;J&&(J.children=q[H.parentId$jscomp$16],J.showChildren=!0,u=J.children,x=J.componentId)}d.archived&&!a.includeArchived&&(b=x);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};Qh.Object.defineProperties(p4.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});p4.\u0275fac=function(a){return new (a||p4)(z(lG),z(aO),z(wE),z(xE),z(zH),z(Us),z(jG),z(EP),z(yD,2))};
p4.\u0275cmp=od({type:p4,selectors:[["b-list-components-page"]],features:[lg([yD])],decls:16,vars:15,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["mat-button","","class","gmat-button",3,"href",4,"ngIf"],["mat-button","","panelClass","overflow-visible-inline-dialog-panel",1,"gmat-button",3,"xapInlineDialogClick","overlaySize"],["componentPickerTemplate",""],["id","bv2-issue-showarchived-button",4,"ngIf"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],[1,"top-tree",
3,"components","includeArchived","init"],["mat-button","",1,"gmat-button",3,"href"],[1,"component-picker-dialog"],["ariaLabel","Choose a component to navigate to that component.",3,"includeArchived","placeholder","shouldFocus","isRequired","selectedComponentChange"],["id","bv2-issue-showarchived-button"],["label","Show archived",3,"model","tooltip","modelChange"],[1,"bv2-view-loading"],["size","small"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Browse Components"),F(),D(2,"div",1)(3,"div",2),
P(4,jeb,2,1,"a",3),D(5,"button",4),Q(6," Search Components "),F(),P(7,keb,4,6,"ng-template",null,5,Eg),P(9,meb,3,4,"div",6),F()(),D(10,"div",7),P(11,neb,2,0,"div",8),T(12,"async"),D(13,"component-tree-list",9),L("init",function(h){return b.componentTree=h}),T(14,"async"),T(15,"async"),F()());if(a&2){var c=N(8),d,e,f;w(4);C("ngIf",b.isInternalSession);w(1);C("xapInlineDialogClick",c)("overlaySize",ng(13,Vzc));w(4);C("ngIf",b.isInternalSession);w(2);C("ngIf",!(null!==(d=V(12,7,b.topLevelComponents$))&&
void 0!==d&&d));w(2);C("components",null!==(e=V(14,9,b.topLevelComponents$))&&void 0!==e?e:ng(14,Wzc))("includeArchived",null!==(f=V(15,11,b.includeArchived$))&&void 0!==f?f:!1)}},dependencies:[Ev,MJ,cK,bK,fK,RP,Ez,Fz,JP,TR,Kv],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});var q4=function(){};q4.\u0275fac=function(a){return new (a||q4)};q4.\u0275mod=qd({type:q4});q4.\u0275inj=ad({imports:[aD,AK,yK,DK,FK,ZJ,SP,SB,MP,VR]});var r4=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};r4.\u0275fac=function(a){return new (a||r4)};
r4.\u0275cmp=od({type:r4,selectors:[["b-package-mentions-listing"]],inputs:{issueId:"issueId",packageMentionSet:"packageMentionSet",displayPackageName:"displayPackageName"},decls:4,vars:2,consts:[[1,"bv2-package-mention-set"],["class","bv2-package-mention-set-package-name",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"bv2-package-mention-set-package-name"],[3,"issueId","packageName","filename","lineNumbers","changeNumber"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,oeb,2,1,"p",1),D(2,"ul"),P(3,peb,2,5,
"li",2),F()());a&2&&(w(1),C("ngIf",b.displayPackageName),w(2),C("ngForOf",b.packageMentionSet.fileMentionSet))},dependencies:[Dv,Ev,n4],encapsulation:2});var s4=function(){};s4.\u0275fac=function(a){return new (a||s4)};s4.\u0275mod=qd({type:s4});s4.\u0275inj=ad({imports:[aD,o4]});var t4=function(){};t4.\u0275fac=function(a){return new (a||t4)};t4.\u0275mod=qd({type:t4});t4.\u0275inj=ad({imports:[aD,Dw,SB,Zz,oA,nR,kA]});var u4=function(a,b){this.documentationLinks=a;this.dateFormatter=b;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=KTb;this.label="Restricted";this.contentType="item"};u4.prototype.getRetentionPeriod=function(){return this.retentionState&&this.retentionState.retentionPeriod?An(Math.floor(1E3*this.retentionState.retentionPeriod.seconds/864E5)):""};
var reb=function(a){var b=new Date(864E13);return a.retentionState&&a.retentionState.scheduledDeletionTime?new Date(zn(a.retentionState.scheduledDeletionTime)||b):b},Xzc=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?12096E5>zn(a.retentionState.scheduledDeletionTime)-Date.now():!1};u4.\u0275fac=function(a){return new (a||u4)(z(yL),z(OL))};
u4.\u0275cmp=od({type:u4,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},decls:11,vars:5,consts:[[1,"bubble",3,"panelTemplate"],["bubble",""],["tabindex","0","aria-label","Display retention information","aria-haspopup","dialog","role","button",1,"chip","nowrap",3,"focus","blur"],[1,"icon-s",3,"svgIcon"],["popup",""],["infiniteRetention",""],["hasExpiredText",""],[1,"popup"],["target","_blank",3,"rel"],[3,"ngSwitch",
4,"ngIf"],[3,"ngSwitch"],[4,"ngIf","ngIfElse"],[3,"ngSwitchCase"]],template:function(a,b){if(a&1){var c=r();D(0,"xap-bubble",0,1)(2,"div",2);L("focus",function(){t(c);var e=N(1);return v(e.toggle(!0))})("blur",function(){t(c);var e=N(1);return v(e.toggle(!1))});G(3,"mat-icon",3);Q(4);F();P(5,web,8,4,"ng-template",null,4,Eg);P(7,xeb,3,1,"ng-template",null,5,Eg);P(9,yeb,8,5,"ng-template",null,6,Eg);F()}if(a&2){var d=N(6);C("panelTemplate",d);w(2);Xf("warning",Xzc(b));w(1);C("svgIcon",Xzc(b)?"delete-alert":
"delete-clock");w(1);S(" ",b.label," ")}},dependencies:[Ev,Fv,Gv,qA,WO,Nv],styles:[".chip[_ngcontent-%COMP%]{display:inline-block;border-radius:1em;font-size:.8125rem;font-weight:400;line-height:1.8em;padding:0 .6em;margin:0 .6em;background-color:#e8eaed;background-color:var(--chip-bg);color:#202124;color:var(--text-high-contrast)}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:text-top}.chip.warning[_ngcontent-%COMP%]{background-color:#fcad70;background-color:var(--expiring-bg);color:rgba(0,0,0,.7);color:var(--expiring-text)}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:1.5em !important}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}/*# sourceMappingURL=restricted_chip.css.map */"],
changeDetection:0});var v4=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};v4.prototype.onNoClick=function(){this.dialogRef.close(!1)};v4.\u0275fac=function(a){return new (a||v4)(z(Rz),z(yL),z(Tz))};
v4.\u0275cmp=od({type:v4,selectors:[["b-restricted-confirmation-dialog"]],decls:12,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about restricted access",3,"rel"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","restricted-confirmation-dialog-cancel",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action","restricted-confirmation-dialog-confirm",3,"mat-dialog-close"]],
template:function(a,b){a&1&&(D(0,"h1",0),Q(1),F(),D(2,"div",1)(3,"p"),Q(4),D(5,"a",2),Q(6," Learn More "),F()()(),D(7,"div",3)(8,"button",4),L("click",function(){return b.onNoClick()}),Q(9," Cancel "),F(),D(10,"button",5),Q(11," Confirm "),F()());a&2&&(w(1),jg(b.data.title),w(3),S(" ",b.data.content," "),w(1),C("rel",b.EXTERNAL_LINK_REL),Nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),re),w(5),C("mat-dialog-close",!0))},dependencies:[Ez,Vz,Wz,Xz,Yz],encapsulation:2});var w4=function(a,b){this.dialog=a;this.documentationLinks=b;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new Yu};
w4.prototype.openDialog=function(){var a=this;Pz(this.dialog.open(v4,{width:"500px",data:{title:"Access Restricted Content",content:"You are about to access a comment marked as restricted.\n                    Access will be logged and audited. You must delete any\n                    data used locally when finished with business use."}})).subscribe(function(b){b&&a.onConfirm.emit()})};w4.\u0275fac=function(a){return new (a||w4)(z(Uz),z(yL))};
w4.\u0275cmp=od({type:w4,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},decls:5,vars:3,consts:[["mat-stroked-button","","color","primary",1,"gmat-button","small","restricted-comment-load",3,"disabled","click"],["target","_blank","aria-label","Learn more about restricted access",3,"rel"]],template:function(a,b){a&1&&(D(0,"span")(1,"button",0),L("click",function(){return b.openDialog()}),Q(2," Show Restricted Content "),F(),D(3,"a",1),Q(4,
" Learn More "),F()());a&2&&(w(1),C("disabled",b.disabled),w(2),C("rel",b.EXTERNAL_LINK_REL),Nf("href",b.documentationLinks.getRestrictedAccessHelpLink(),re))},dependencies:[Ez],styles:[".mat-stroked-button[_ngcontent-%COMP%]{margin-right:1em}/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});var x4=function(){};x4.\u0275fac=function(a){return new (a||x4)};x4.\u0275mod=qd({type:x4});x4.\u0275inj=ad({imports:[aD,BB,SB,Zz,iD,kA,ZL,FC,AV,zV,SK,Dw,hP]});var y4=function(){};y4.prototype.ngOnInit=function(){};y4.\u0275fac=function(a){return new (a||y4)};
y4.\u0275cmp=od({type:y4,selectors:[["b-tracker-account-menu-hack"]],decls:5,vars:2,consts:[["aria-label","Open account menu",1,"tracker-account-hack-button",3,"matMenuTriggerFor"],["xPosition","before"],["accountHackMenu","matMenu"],[3,"href"]],template:function(a){a&1&&(G(0,"button",0),D(1,"mat-menu",1,2)(3,"a",3),Q(4,"Sign out or switch accounts"),F()());if(a&2){var b=N(2);C("matMenuTriggerFor",b);w(3);C("href","https://accounts.google.com/SignOutOptions?hl=en&continue="+encodeURIComponent(window.location.href),
re)}},dependencies:[AB,zB],styles:[".tracker-account-hack-button[_ngcontent-%COMP%]{z-index:9999;top:0;right:0;position:absolute;width:48px;height:48px;padding:0;margin:0;border:none;cursor:pointer;background:none;outline:none}a[_ngcontent-%COMP%]{padding:8px}"]});var z4=function(){Y.apply(this,arguments);this.trackerCheckboxValues={}};W(z4,Y);z4.\u0275dir=Y.\u0275dir;z4.prototype.ngOnChanges=function(a){if(a.currentTrackerId){this.trackerCheckboxValues={};var b;a=l(null!=(b=this.availableTrackers)?b:[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.currentTrackerId===b.trackerId?this.trackerCheckboxValues[b.trackerId]=!0:this.trackerCheckboxValues[b.trackerId]=!1}};var Yzc=function(a){return Object.keys(wc(a.trackerCheckboxValues,function(b){return b}))};
z4.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(z4)))(b||z4)}}();
z4.\u0275cmp=od({type:z4,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},features:[Jf,Fd],decls:8,vars:4,consts:[[1,"bv2-tracker-search"],[1,"bv2-adv-search-rule","bv2-adv-tracker-search-rule"],[1,"bv2-adv-tracker-search-rule-title"],["class","bv2-adv-tracker-search-rule-error",4,"ngIf"],[1,"bv2-adv-search-enum-rule"],["class","bv2-adv-search-enum-item",4,"ngFor","ngForOf"],[1,"bv2-adv-tracker-search-rule-error"],[1,"bv2-adv-search-enum-item"],
["gmat-checkbox","",3,"checked","change"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),Q(4,"Select a tracker"),F(),P(5,zeb,2,0,"span",3),F(),D(6,"div",4),P(7,Aeb,3,2,"div",5),F()()());a&2&&(Xf("hidden",!(b.availableTrackers&&1<b.availableTrackers.length)),w(5),C("ngIf",0===Yzc(b).length),w(2),C("ngForOf",b.availableTrackers))},dependencies:[Dv,Ev,PK],styles:[".bv2-adv-tracker-search-rule[_ngcontent-%COMP%]{margin-top:0px;margin-bottom:10px;flex-direction:column}.bv2-adv-tracker-search-rule-title[_ngcontent-%COMP%]{font-weight:bold;margin-bottom:8px}.bv2-adv-tracker-search-rule-error[_ngcontent-%COMP%]{font-weight:normal;margin-left:8px;color:#d93025}"]});var A4=function(a,b,c,d,e,f){Y.call(this);var h=this;this.analytics=b;this.location=c;this.prefsManager=e;this.domSafe=f;this.prefsManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(k){h.prefs=k});a.topBarEvents.browseComponents.pipe(Af(this.destroyed$)).subscribe(function(k){k=k.newTab;Zzc(h,d.listComponents(),k)});a.topBarEvents.manageHotlists.pipe(Af(this.destroyed$)).subscribe(function(k){Zzc(h,d.listHotlists(),k.newTab)});a.topBarEvents.manageSlos.pipe(Af(this.destroyed$)).subscribe(function(k){k=
k.newTab;Zzc(h,d.listSlos(),k)});a.topBarEvents.setDensity.pipe(Af(this.destroyed$)).subscribe(function(k){h.setDensity(k)});a.topBarEvents.openSettings.pipe(Af(this.destroyed$)).subscribe(function(k){var q=k.newTab;Zzc(h,d.settings(k.settingsTabName),q)})};W(A4,Y);A4.\u0275dir=Y.\u0275dir;var Zzc=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.url(b)};
A4.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(nf(),Af(this.destroyed$)).subscribe(),this.analytics.trackEvent("preferences","setDisplayDensity",a))};A4.\u0275fac=function(a){return new (a||A4)(n(DF),n(zH),n(wE),n(xE),n(iE),n(zL))};A4.\u0275prov=$c({token:A4,factory:A4.\u0275fac,providedIn:"root"});var B4=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);var y=this;this.activeSession=a;this.currentTracker=b;this.searchAcData=c;this.savedSearchApi=d;this.butterBar=e;this.bLocation=f;this.paths=h;this.analytics=k;this.appEvents=u;this.appSearchState=x;this.items=[];this.acHeader=null;this.currentQuery="";this.enableTrackersAccountHack=$C(this.activeSession,"enableTrackersAccountHack");this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType();
this.searchAcData.acRefreshed$.pipe(Af(this.destroyed$)).subscribe(function(){y.items=y.searchAcData.items;y.acHeader=y.searchAcData.acHeader})};W(B4,Y);B4.\u0275dir=Y.\u0275dir;var $zc=function(a,b){if(b)return"Search "+b.name+" Issues";switch(a.frontendAccessMode){case "INTERNAL":return"Search Buganizer";case "PARTNER":return"Search Partner IssueTracker";case "PUBLIC":return"Search IssueTracker";default:return"Search"}};
B4.prototype.ngOnInit=function(){var a=this;this.appSearchState.queryState$.pipe(Af(this.destroyed$)).subscribe(function(c){var d=a.searchAcData,e=c.cursorPosition;d.query=c.query;d.cursorIdx=e;if(null==d.cursorIdx)d.currentSearchContext=null;else{var f=d.query,h=d.cursorIdx;if(0>h||h>f.length)throw Error("qe");e=new Joc(f,h);if(f){var k=f.slice(0,h);for(var q=!1,u=-1,x=-1;-1<(u=k.indexOf('"',u+1));)q=!q,x=u;k=q?x:-1;if(-1<k)e.value={val:f.slice(k,h),idx:k};else if(k=f.slice(0,h),q=f.slice(h),u=q.search("\\s"),
q=-1<u?q.slice(0,u):q,(k=l4a(k+q,Noc))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},si(k.val,"customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){q=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(q);h=Math.max(h-q,0);u=k;if("("===f.charAt(0)){b:{u=[];x=/[()]/g;for(var y;null!=(y=x.exec(f));){var E=u[u.length-1];if(E&&E!==y[0]){if(u.pop(),!u.length){u=y.index>=
h;break b}}else u.push(y[0])}u=!0}u=u?2:0}else u=Koc.includes(u.val)&&-1===f.search("^\\d")?1:0;switch(u){case 2:f=Koc.includes(k.val)?iq(f,h,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):iq(f,h,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(f.val)&&(f.val="",f.idx=h);e.value=f;break;case 1:e.value=iq(f,h,"[()|]","[()|,\\s]");break;case 0:e.value=iq(f,h,"[\\s()|]");-1<f.slice(0,h).search("[\\s()|]")&&(k=null);break;default:$h(u,"unknown ValueType.")}e.value.idx+=q;e.label=k}else e.value=iq(f,
h,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,h=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:h,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(A(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(Cf(b),Af(this.destroyed$)).subscribe(function(c){c=l(c);var d=c.next().value;c=c.next().value;var e=a.appSearchState;d=void 0===d?"":d;var f=VDa(c),h=f.filters,k=f.text,q=f.complexSyntax,
u=f.resourceIds;f=[h,k,u].reduce(WDa);h=[h?"filters":void 0,k?"text":void 0,u?"ids":void 0].filter(Boolean).join("-");q?e.track(d,"complex"):h?e.track(d,h,f):e.track(d,"UNHANDLED");d=sa(e.searchHandlerStack);void 0===d?e.$log.warn("No search function installed."):d(c)})};B4.prototype.ngAfterViewInit=function(){gzc(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var aAc=function(a){if(a.advancedSearchCtrl)return"SUCCESS"!==a.advancedSearchCtrl.getState()?a.currentQuery:nzc(a.advancedSearchCtrl).trim()};
g=B4.prototype;g.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(aAc(this)!==this.currentQuery||"SUCCESS"!==this.advancedSearchCtrl.getState())&&gzc(this.advancedSearchCtrl,this.currentQuery)};g.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next(null!=(b=null==(a=this.trackerSearchCtrl)?void 0:Yzc(a))?b:[]);this.advancedSearchCtrl&&(a=aAc(this),void 0!==a&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}))};
g.submitAdvancedSearch=function(){var a,b;this.appSearchState.selectedTrackerIds$.next(null!=(b=null==(a=this.trackerSearchCtrl)?void 0:Yzc(a))?b:[]);this.advancedSearchCtrl&&(a=aAc(this),void 0!==a&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next("ui-builder")))};
g.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=aAc(this);void 0!==c&&(WF(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;WF(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.url(b.paths.viewSavedSearch(d));b.analytics.trackEvent("savedSearches","create")}).catch(function(d){b.butterBar.showWarning(tn(d))}))}};
g.isSearchDisabled=function(){return this.inTracker()&&0===Yzc(this.trackerSearchCtrl).length};g.inTracker=function(){return!!this.trackerSearchCtrl};B4.\u0275fac=function(a){return new (a||B4)(z(Us),z(jG),z(D_),z(jI),z(VF),z(wE),z(xE),z(zH),z(A4),z(DF),z(mK))};
B4.\u0275cmp=od({type:B4,selectors:[["b-top-bar-outlet"]],viewQuery:function(a,b){a&1&&(zg(j3,5),zg(z4,5));if(a&2){var c;yg(c=Bg())&&(b.advancedSearchCtrl=c.first);yg(c=Bg())&&(b.trackerSearchCtrl=c.first)}},features:[Jf],decls:11,vars:20,consts:[[3,"logoFrontendAccessMode","logoEnvironmentType","searchBoxPlaceholder","searchBoxAutoCompleteItems","searchBoxAutoCompleteHeader","isSearchDisabled","searchBoxOnAdvancedSearchOpen","searchBoxOnAdvancedSearchClose","searchBoxOnAdvancedSearchSubmit","searchBoxOnSaveSearch"],
[3,"currentTrackerId","availableTrackers",4,"ngIf"],[3,"isTrackerSearchEnabled"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-validation-error-banner",4,"ngIf"],[4,"ngIf"],[3,"currentTrackerId","availableTrackers"],[1,"bv2-view-loading"],[1,"bv2-validation-error-banner"],["class","warning-container",4,"ngIf"],[1,"warning-container"],["svgIcon","alert"]],template:function(a,b){a&1&&(D(0,"b-app-top-bar",0),L("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",
function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",function(d){return b.saveSearch(d)}),T(1,"async"),P(2,Beb,3,6,"b-tracker-search",1),T(3,"async"),G(4,"b-advanced-search",2),T(5,"async"),P(6,Ceb,4,0,"div",3),P(7,Feb,3,2,"div",4),P(8,Geb,2,0,"div",4),F(),P(9,Heb,1,0,"b-tracker-account-menu-hack",5),T(10,"async"));if(a&2){var c;C("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",
$zc(b,V(1,12,b.currentTracker.tracker$)))("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader)("isSearchDisabled",b.isSearchDisabled());w(2);C("ngIf",null!==(c=V(3,14,b.currentTracker.inTracker$))&&void 0!==c?c:!1);w(2);C("isTrackerSearchEnabled",!V(5,16,b.currentTracker.inTracker$));w(2);C("ngIf","INIT"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState()));w(1);C("ngIf","NOT_REPRESENTABLE"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())||
"SYNTAX_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState()));w(1);C("ngIf","SERVER_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState()));w(1);C("ngIf",b.enableTrackersAccountHack&&!b.activeSession.isAnonymous()&&V(10,18,b.currentTracker.inTracker$))}},dependencies:[Ev,qA,j3,z4,H3,MJ,y4,Kv],styles:["b-app-top-bar[_ngcontent-%COMP%]{position:relative;z-index:900}.warning-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.warning-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx);height:30px;width:30px;flex-shrink:0}.warning-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:inline-block;margin-left:12px}"]});var C4=function(){};C4.\u0275fac=function(a){return new (a||C4)};C4.\u0275mod=qd({type:C4});C4.\u0275inj=ad({imports:[aD,SK]});var D4=function(){};D4.\u0275fac=function(a){return new (a||D4)};D4.\u0275mod=qd({type:D4});D4.\u0275inj=ad({imports:[aD,n3,C4,O3,AK,BB]});var E4=function(a,b){this.dialogRef=a;this.data=b;this.userToDisplay=vi;this.updateDiffs=b.updateDiffs};E4.prototype.close=function(){this.dialogRef.close()};E4.\u0275fac=function(a){return new (a||E4)(z(Rz),z(Tz))};
E4.\u0275cmp=od({type:E4,selectors:[["b-update-history-modal"]],decls:6,vars:1,consts:[["mat-dialog-content","",1,"update-history-modal"],["tabindex","0",1,"update-history-list"],["class","bv2-event",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"click"],[1,"bv2-event"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user-name",3,"email"],[1,"bv2-event-info"],["mode","datetime",3,"timestamp"],
[1,"bv2-event-details"],["class","bv2-diff-detail",4,"ngFor","ngForOf"],[1,"bv2-diff-detail"],[4,"ngIf"],[1,"bv2-diff-arrow"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"ul",1),P(2,Qeb,10,4,"li",2),F()(),D(3,"div",3)(4,"button",4),L("click",function(){return b.close()}),Q(5," Close "),F()());a&2&&(w(2),C("ngForOf",b.updateDiffs))},dependencies:[Dv,Ev,Ez,Xz,Yz,vO,tO,PL],styles:[".update-history-modal[_ngcontent-%COMP%]{word-break:break-word}.update-history-modal[_ngcontent-%COMP%]   .update-history-list[_ngcontent-%COMP%]{max-height:500px;overflow-y:auto;padding:0}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]{padding:0 0 10px}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:last-child{border-bottom:none}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:auto}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   .bv2-diff-detail[_ngcontent-%COMP%]{margin-right:0}h4[_ngcontent-%COMP%]{margin:0;margin-bottom:8px;font-weight:normal}"]});var F4=function(){};F4.\u0275fac=function(a){return new (a||F4)};F4.\u0275mod=qd({type:F4});F4.\u0275inj=ad({imports:[aD,SB,Zz,NO,kM]});var G4=function(a,b){Y.call(this);this.$window=a;this.currentTracker=b;this.faviconUrl=this.defaultFaviconUrl=ph("https://www.gstatic.com/buganizer/img/v4/favicon.png")};W(G4,Y);G4.\u0275dir=Y.\u0275dir;
var bAc=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=null==b?void 0:b.href;a.faviconUrl=c?ph(c):a.defaultFaviconUrl;a.currentTracker.tracker$.pipe(A(function(d){var e;if(null==d?0:null==(e=d.branding)?0:e.logoUrl){var f;d=ph(null==d?void 0:null==(f=d.branding)?void 0:f.logoUrl)}else d=a.faviconUrl;return d}),Af(a.destroyed$)).subscribe(function(d){if(b&&b.href!==d.toString())a:{if(d instanceof Vt)b.href=di(d).toString();else{if(-1===qTb.indexOf("icon"))throw Error("Mb`icon");
d=Lma(d);if(void 0===d)break a;b.href=d}b.rel="icon"}})};G4.\u0275fac=function(a){return new (a||G4)(n(qF),n(jG))};G4.\u0275prov=$c({token:G4,factory:G4.\u0275fac,providedIn:"root"});var cAc=/^\s*[^:/?#]+:/i,dAc=/^#/i,H4=function(a){var b=this;this.bLocation=a;this.linkClickHandler=function(c){if(!(c.ctrlKey||c.metaKey||c.shiftKey||2===c.which||2===c.button||c.defaultPrevented)){var d;a:{for(d=c.target;d;){if("A"===d.tagName)break a;d=d.parentElement}d=void 0}if(d&&(!d.hasAttribute("target")||"_self"===d.getAttribute("target"))&&(d=d.getAttribute("href"))&&!cAc.test(d))if(dAc.test(d)){b.bLocation.hash(d.substring(1));var e;null==(e=document.getElementById(d.substring(1)))||e.scrollIntoView();
c.stopPropagation();c.preventDefault()}else c.preventDefault(),b.bLocation.url(d)}}};H4.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};H4.\u0275fac=function(a){return new (a||H4)(n(wE))};H4.\u0275prov=$c({token:H4,factory:H4.\u0275fac,providedIn:"root"});var eAc=[],fAc=!1,I4=function(a,b,c,d,e,f,h,k){Y.call(this);this.hatsService=a;this.iconRegistry=b;this.session=c;this.appHistory=d;this.routePerformance=e;this.linkClickHandler=f;this.issueLru=h;this.faviconService=k};W(I4,Y);I4.\u0275dir=Y.\u0275dir;I4.prototype.tearDown=function(){Y.prototype.ngOnDestroy.call(this);document.removeEventListener("click",this.linkClickHandler.linkClickHandler)};I4.\u0275fac=function(a){return new (a||I4)(n(LV),n(pA),n(Us),n(U_),n(X_),n(H4),n(pK),n(G4))};
I4.\u0275prov=$c({token:I4,factory:I4.\u0275fac,providedIn:"root"});
var gAc={provide:GHb,useFactory:function(a){return function(){Ck("app initializer starting");fAc||(a.iconRegistry._addSvgIconSetConfig("",new DOb(K6b)),fAc=!0);if(a.session.isInternalSession()){Nhc(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(nf(),Af(a.destroyed$)).subscribe();for(var b=l(eAc),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;$C(a.session,c.flagName)&&Nhc(a.hatsService,d).pipe(nf(),Af(a.destroyed$)).subscribe()}}a.appHistory.install();a.routePerformance.install();
a.linkClickHandler.install();b=a.issueLru;YDa(b.viewed,J0b());YDa(b.edited,H0b());b.appEvents.issueViewed.pipe(Af(b.stop$)).subscribe(b.addViewed);b.appEvents.issueEdited.pipe(Af(b.stop$)).subscribe(b.addEdited);bAc(a.faviconService)}},deps:[I4],multi:!0};var J4=function(a,b){this.paths=a;this.bLocation=b};J4.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=this.paths.editIssue(a.issueId)+(b?"#"+b:"");this.bLocation.url(a)};J4.\u0275fac=function(a){return new (a||J4)(n(xE),n(wE))};J4.\u0275prov=$c({token:J4,factory:J4.\u0275fac,providedIn:"root"});var hAc={provide:US,useExisting:J4};var iAc=function(){var a;switch(null==(a=self.location)?void 0:a.hostname){case "cider.corp.google.com":case "cider-v.corp.google.com":case "critique.corp.google.com":return 1;case "cider-staging.corp.google.com":case "cider-v-staging.corp.google.com":case "critique-staging.corp.google.com":return 2;case "cider-test.corp.google.com":case "cider-v-test.corp.google.com":case "critique-qa.corp.google.com":return 3;default:return 4}}();var K4=function(a){yA.call(this);this.errorHandlerFn_=a};ft(K4,yA);K4.prototype.wrap=function(a){return jAc(this,a)};var L4=function(a,b){return(b?"__wrapper_":"__protected_")+Ia(a)+"__"},jAc=function(a,b){var c=L4(a,!0);b[c]||((b[c]=kAc(a,b))[L4(a,!1)]=b);return b[c]},kAc=function(a,b){var c=function(){if(a.isDisposed())return b.apply(this,arguments);try{return b.apply(this,arguments)}catch(d){a.handleError_(d)}};c[L4(a,!1)]=b;return c};
K4.prototype.handleError_=function(a){if(!(a&&"object"===typeof a&&"string"===typeof a.message&&0==a.message.indexOf("Error in protected function: ")||"string"===typeof a&&0==a.indexOf("Error in protected function: ")))throw this.errorHandlerFn_(a),new lAc(a);};
var mAc=function(a,b){var c=da.window||da.globalThis,d=c[b];if(!d)throw Error("Pe`"+b);c[b]=function(e,f){"string"===typeof e&&(e=et(eEb,e));e&&(arguments[0]=e=jAc(a,e));if(d.apply)return d.apply(this,arguments);var h=e;if(2<arguments.length){var k=Array.prototype.slice.call(arguments,2);h=function(){e.apply(this,k)}}return d(h,f)};c[b][L4(a,!1)]=d};
K4.prototype.disposeInternal=function(){var a=da.window||da.globalThis;var b=a.setTimeout;b=b[L4(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[L4(this,!1)]||b;a.setInterval=b;K4.superClass_.disposeInternal.call(this)};var lAc=function(a){aa.call(this,"Error in protected function: "+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&"string"===typeof a&&(this.stack=a)};ft(lAc,aa);var M4=function(a,b,c){Po.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=nAc;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new K4(dt(this.handleException,this));mAc(this.errorHandler_,"setTimeout");mAc(this.errorHandler_,"setInterval");a=this.errorHandler_;b=da.window||da.globalThis;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&mAc(a,
e)}a=this.errorHandler_;QOb=!0;b=dt(a.wrap,a);for(c=0;c<OOb.length;c++)OOb[c](b);POb.push(a)}};ft(M4,Po);var oAc=function(a,b){AA.call(this,"F");this.error=a;this.context=b};ft(oAc,AA);var nAc=function(a,b,c,d){if(d instanceof Map){var e={};d=l(d);for(var f=d.next();!f.done;f=d.next()){var h=l(f.value);f=h.next().value;h=h.next().value;e[f]=h}}else e=d;go(a,null,b,c,e)};
M4.prototype.handleException=function(a,b){a=a.error||a;b=b?Ac(b):{};a instanceof Error&&Bc(b,a.__closure__error__context__984382||{});var c=cLb(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(k){}var d=c.message.substring(0,1900);if(!(a instanceof aa)||a.reportErrorToServer){a=c.stack;try{var e=bB(this.handlerUrl_,"script",c.fileName,"error",d,"line",c.lineNumber);xc(this.additionalArguments_)||(e=eua(e,this.additionalArguments_));d={};d.trace=a;if(b)for(var f in b)d["context."+
f]=b[f];var h=QQb(d);this.xhrSender_(e,"POST",h,this.extraHeaders_)}catch(k){}}try{this.dispatchEvent(new oAc(c,b))}catch(k){}};M4.prototype.disposeInternal=function(){Zh(this.errorHandler_);M4.superClass_.disposeInternal.call(this)};var N4=function(){this.jsBuild="560541170";this.buildLabel="buganizer.frontend_20230827.14_p0"};N4.\u0275fac=function(a){return new (a||N4)};N4.\u0275prov=$c({token:N4,factory:N4.\u0275fac,providedIn:"root"});var O4=function(){};O4.prototype.reportingEnabled=function(){return 4!==iAc};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275prov=$c({token:O4,factory:O4.\u0275fac,providedIn:"root"});
var P4=function(a,b){var c=this;this.appContext=b;this.context={};this.reportingExtensions=[];this.jsDebugErrorReporter=new M4("/jserror",function(d,e){e.js_build=a.jsBuild;e.buildLabel=a.buildLabel;e["build-label"]=a.buildLabel;d=l(c.reportingExtensions);for(var f=d.next();!f.done;f=d.next())f.value.enhanceContext(e)},!0)};
P4.prototype.reportError=function(a){console.error("ErrorReporter: ",(null==a?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""));this.jsDebugErrorReporter.handleException(a);a=l(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};P4.\u0275fac=function(a){return new (a||P4)(n(N4),n(O4))};P4.\u0275prov=$c({token:P4,factory:P4.\u0275fac,providedIn:"root"});var Q4=function(a){this._console=console;this.reporter=a};W(Q4,ve);Q4.prototype.handleError=function(a){this.reporter.reportError(a)};Q4.\u0275fac=function(a){return new (a||Q4)(n(P4))};Q4.\u0275prov=$c({token:Q4,factory:Q4.\u0275fac,providedIn:"root"});var R4=function(a){this.activeSession=a};W(R4,O4);R4.prototype.reportingEnabled=function(){return $C(this.activeSession,"reportErrors")};R4.\u0275fac=function(a){return new (a||R4)(n(Us))};R4.\u0275prov=$c({token:R4,factory:R4.\u0275fac,providedIn:"root"});
var pAc={provide:ve,useClass:Q4},qAc={provide:O4,useClass:R4},rAc={provide:N4,useValue:{jsBuild:"560541170",buildLabel:"buganizer.frontend_20230827.14_p0"}};var S4=function(){};S4.\u0275fac=function(a){return new (a||S4)};S4.\u0275cmp=od({type:S4,selectors:[["b-empty"]],decls:0,vars:0,template:function(){},encapsulation:2});var T4=function(){};T4.\u0275fac=function(a){return new (a||T4)};T4.\u0275mod=qd({type:T4});T4.\u0275inj=ad({});var U4=function(){};W(U4,SD);U4.prototype.store=function(){};U4.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&ki(a.params,b.params)};U4.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(U4)))(b||U4)}}();U4.\u0275prov=$c({token:U4,factory:U4.\u0275fac,providedIn:"root"});var V4=function(a){this.router=a};
V4.prototype.canActivate=function(a,b){if(b.url.includes("#ISSUE_HistoryHeader")){var c=l(b.url.split("#ISSUE_HistoryHeader"));a=c.next().value;c=c.next().value;return XD(this.router,[a],{fragment:c&&!isNaN(Number(c))?"comment"+c:void 0})}if(a.queryParamMap.has("showInsights")&&"1"===a.queryParamMap.get("showInsights")){b=l(b.url.split("?")).next().value;var d={};return XD(this.router,[b],{queryParams:Object.assign({},kua(a.queryParamMap),(d.showInsights="deployments",d)),fragment:null!=(c=a.fragment)?
c:void 0})}return"/mission-control"===b.url||"/dash"===b.url?XD(this.router,["home"]):!0};V4.\u0275fac=function(a){return new (a||V4)(n(WD))};V4.\u0275prov=$c({token:V4,factory:V4.\u0275fac,providedIn:"root"});var sAc=/^(\d+)$/,W4=function(a){this.butterBar=a;this.paramNamesToCheck=new Set(Object.values(uUb))};W4.prototype.validate=function(a){for(var b=l(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=fl(d);if(!sAc.test(d)||isNaN(e)||!Number.isInteger(e))return this.butterBar.showWarning("The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};W4.\u0275fac=function(a){return new (a||W4)(n(VF))};
W4.\u0275prov=$c({token:W4,factory:W4.\u0275fac,providedIn:"root"});var X4=function(a){this.routeParamsValidator=a};X4.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};X4.\u0275fac=function(a){return new (a||X4)(n(W4))};X4.\u0275prov=$c({token:X4,factory:X4.\u0275fac,providedIn:"root"});var Y4=function(a,b){this.activeSession=a;this.router=b};Y4.prototype.canActivate=function(){return this.activeSession.isInternalSession()?!0:XD(this.router,["issues"])};Y4.\u0275fac=function(a){return new (a||Y4)(n(Us),n(WD))};Y4.\u0275prov=$c({token:Y4,factory:Y4.\u0275fac,providedIn:"root"});var Z4=function(a,b){this.currentTracker=a;this.router=b};Z4.prototype.canActivate=function(){return this.currentTracker.inTracker?XD(this.router,["issues"]):!0};Z4.\u0275fac=function(a){return new (a||Z4)(n(jG),n(WD))};Z4.\u0275prov=$c({token:Z4,factory:Z4.\u0275fac,providedIn:"root"});var a5=function(a,b){this.router=a;this.activeSession=b};a5.prototype.canActivate=function(){var a=$C(this.activeSession,"enableHomepageVariantA");return XD(this.router,[Reb(a)])};a5.\u0275fac=function(a){return new (a||a5)(n(WD),n(Us))};a5.\u0275prov=$c({token:a5,factory:a5.\u0275fac,providedIn:"root"});var tAc={USER:"USER",DEVELOPER:"DEVELOPER",CONTRIBUTOR:"CONTRIBUTOR"},uAc={INPUT:"INPUT",TEXT:"TEXT",SELECT:"SELECT"},vAc=new Ad("CustomQuestionsConfig");var b5=function(){this.persona="USER";this.categoryChange=new Yu;var a={};this.options=(a.USER=[{title:"UI",description:"Problems with the user interface (e.g. tabs, context menus, etc...)",value:"UI",componentId:422198},{title:"Network / Downloading",description:"Problems with accessing remote content",value:"NETWORK_DOWNLOADING",componentId:421924},{title:"Audio / Video",description:"Problems playing back sound or movies",value:"AUDIO_VIDEO",componentId:421886},{title:"Content",description:"Problems with webpages not working correctly",
value:"CONTENT"},{title:"Apps",description:"Issues with Webstore apps",value:"APPS",componentId:422083},{title:"Extensions / Themes",description:"Issues with Webstore extensions and themes",value:"EXTENSIONS_THEMES",componentId:422130},{title:"Webstore",description:"Problems with the Chrome Webstore itself",value:"WEBSTORE",componentId:422443},{title:"Sync",description:"Problems syncing data to a Google account",value:"SYNC",componentId:422168},{title:"Enterprise",description:"Policy configuration and deployment issues",
value:"ENTERPRISE",componentId:421726},{title:"Installation",description:"Problem installing Chrome",value:"INSTALLATION",componentId:421863},{title:"Crashes",description:'The browser closes abruptly or I see "Aw, Snap!" pages',value:"CRASHES"},{title:"Security",description:"Problems with the browser security",value:"SECURITY"},{title:"Other",description:"Something not listed here",value:"OTHER"}],a.DEVELOPER=[{title:"API",description:"Problems with a browser API",value:"API"},{title:"JavaScript",
description:"Problems with the JavaScript interpreter",value:"JAVASCRIPT",componentId:421442},{title:"Developer Tools",description:"Problems with the Developer tool chain/inspector",value:"DEV_TOOLS",componentId:422123}],a.CONTRIBUTOR=[],a)};b5.\u0275fac=function(a){return new (a||b5)};
b5.\u0275cmp=od({type:b5,selectors:[["wizard-category-select"]],inputs:{persona:"persona",category:"category"},outputs:{categoryChange:"categoryChange"},decls:5,vars:3,consts:[["appearance","outline","aria-label","Which of the following describes your issue?"],["panelClass","oversized",3,"value","valueChange"],["class","multiline",3,"value",4,"ngFor","ngForOf"],[1,"multiline",3,"value"],[1,"description"]],template:function(a,b){a&1&&(D(0,"mat-form-field",0)(1,"mat-select",1),L("valueChange",function(d){b.category=
d;b.categoryChange.emit(b.category)}),D(2,"mat-select-trigger"),Q(3),F(),P(4,Seb,5,3,"mat-option",2),F()());if(a&2){var c;w(1);C("value",b.category);w(2);S(" ",null!==(c=null==b.category?null:b.category.title)&&void 0!==c?c:""," ");w(1);C("ngForOf",b.options[b.persona])}},dependencies:[Dv,jA,bP,aP,Hz],styles:[".mat-select-panel.oversized{max-height:500px;max-width:800px}mat-option.multiline[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:400;line-height:1.5em;height:5em}mat-option.multiline[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#9aa0a6;color:var(--c500)}mat-form-field[_ngcontent-%COMP%]{min-width:300px}\n/*# sourceMappingURL=category_select.css.map */"]});var js=function(a){return{question:a}},c5=function(a){this.config=a;this.CustomQuestionType=uAc;this.responses=new Yu;this.model=Object.assign({},a)};c5.prototype.ngOnInit=function(){};var cfb=function(a){var b=a.model[a.category].filter(function(c){return!!c.response});a.responses.emit(b)};c5.\u0275fac=function(a){return new (a||c5)(z(vAc))};
c5.\u0275cmp=od({type:c5,selectors:[["wizard-custom-questions"]],inputs:{category:"category"},outputs:{responses:"responses"},decls:9,vars:1,consts:[[4,"ngFor","ngForOf"],["customQuestion",""],["input",""],["text",""],["select",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"innerHtml"],["appearance","outline"],["matInput","",3,"ngModel","ngModelChange"],[1,"textarea"],["required","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet",
"ngTemplateOutletContext",4,"ngIf"],[3,"value"]],template:function(a,b){a&1&&(P(0,Teb,2,4,"ng-container",0),P(1,Xeb,4,4,"ng-template",null,1,Eg),P(3,Yeb,3,3,"ng-template",null,2,Eg),P(5,Zeb,4,3,"ng-template",null,3,Eg),P(7,dfb,5,5,"ng-template",null,4,Eg));a&2&&C("ngForOf",b.model[b.category])},dependencies:[Dv,Ev,Jv,Fv,Gv,Tg,hw,ow,jA,nA,bP,Hz],styles:['[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400}[_nghost-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;font-weight:100;margin:0}[_nghost-%COMP%]   h4.required[_ngcontent-%COMP%]:after{content:" *";color:#ea4335;color:var(--bad)}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]{min-width:90%}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}[_nghost-%COMP%]   textarea[_ngcontent-%COMP%]{min-height:4rem;padding:4px 1px 1px 7px}[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin:4px 0}[_nghost-%COMP%]   mat-form-field.inline[_ngcontent-%COMP%]{margin:4px 8px}mat-form-field[_ngcontent-%COMP%]{min-width:500px}\n/*# sourceMappingURL=custom_questions.css.map */']});var d5=function(){this.Persona=tAc;this.persona="USER";this.personaChange=new Yu};d5.\u0275fac=function(a){return new (a||d5)};
d5.\u0275cmp=od({type:d5,selectors:[["wizard-persona-picker"]],inputs:{persona:"persona"},outputs:{personaChange:"personaChange"},decls:14,vars:4,consts:[["aria-label","Select your following role",3,"ngModel","ngModelChange"],[3,"value"],[1,"subtext"]],template:function(a,b){a&1&&(D(0,"div")(1,"mat-radio-group",0),L("ngModelChange",function(c){b.persona=c;b.personaChange.emit(b.persona)}),D(2,"mat-radio-button",1),Q(3," End User "),D(4,"div",2),Q(5," I am trying to use a website. "),F()(),D(6,"mat-radio-button",
1),Q(7," Web Developer "),D(8,"div",2),Q(9," I am trying to build something on a website. "),F()(),D(10,"mat-radio-button",1),Q(11," Chromium Contributor "),D(12,"div",2),Q(13," I know about a problem in specific tests or code. "),F()()()());a&2&&(w(1),C("ngModel",b.persona),w(1),C("value",b.Persona.USER),w(4),C("value",b.Persona.DEVELOPER),w(4),C("value",b.Persona.CONTRIBUTOR))},dependencies:[hw,ow,wU,xU],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     .mat-radio-container{top:-30px}mat-radio-group[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}mat-radio-button[_ngcontent-%COMP%]{border-bottom:2px solid;border-bottom-color:#dadce0;border-bottom-color:var(--c300);font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400;margin-right:60px;max-width:270px;height:90px;padding:24px 12px}mat-radio-button[_ngcontent-%COMP%]   .subtext[_ngcontent-%COMP%]{font-size:.9rem;line-height:1.2rem;min-height:48px;margin-top:12px;text-wrap:wrap}\n/*# sourceMappingURL=persona_picker.css.map */"]});var e5=function(a){this._elementRef=a};e5.prototype.focus=function(){this._elementRef.nativeElement.focus()};e5.\u0275fac=function(a){return new (a||e5)(z(ae))};e5.\u0275dir=sd({type:e5,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var f5=function(a){this.template=a};f5.\u0275fac=function(a){return new (a||f5)(z(vg))};f5.\u0275dir=sd({type:f5,selectors:[["","cdkStepLabel",""]]});var wAc=0,xAc=new Ad("STEPPER_GLOBAL_OPTIONS"),g5=function(a,b){this._stepper=a;this.interacted=!1;this.interactedStream=new Yu;this._editable=!0;this._optional=!1;this._customError=this._completedOverride=null;this._stepperOptions=b?b:{};this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType};g=g5.prototype;g._getDefaultCompleted=function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted};
g._getDefaultError=function(){return this.stepControl&&this.stepControl.invalid&&this.interacted};g.select=function(){this._stepper.selected=this};g.reset=function(){this.interacted=!1;null!=this._completedOverride&&(this._completedOverride=!1);null!=this._customError&&(this._customError=!1);this.stepControl&&this.stepControl.reset()};g.ngOnChanges=function(){this._stepper._stateChanged()};g._markAsInteracted=function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))};
g._showError=function(){var a;return null!=(a=this._stepperOptions.showError)?a:null!=this._customError};
Qh.Object.defineProperties(g5.prototype,{editable:{configurable:!0,enumerable:!0,get:function(){return this._editable},set:function(a){this._editable=ah(a)}},optional:{configurable:!0,enumerable:!0,get:function(){return this._optional},set:function(a){this._optional=ah(a)}},completed:{configurable:!0,enumerable:!0,get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(a){this._completedOverride=ah(a)}},hasError:{configurable:!0,enumerable:!0,
get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(a){this._customError=ah(a)}}});g5.\u0275fac=function(a){return new (a||g5)(z(fd(function(){return h5})),z(xAc,8))};
g5.\u0275cmp=od({type:g5,selectors:[["cdk-step"]],contentQueries:function(a,b,c){a&1&&Ag(c,f5,5);if(a&2){var d;yg(d=Bg())&&(b.stepLabel=d.first)}},viewQuery:function(a,b){a&1&&zg(vg,7);if(a&2){var c;yg(c=Bg())&&(b.content=c.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},
exportAs:["cdkStep"],features:[Fd],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),P(0,efb,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var h5=function(a,b,c){this._dir=a;this._changeDetectorRef=b;this._elementRef=c;this._destroyed=new B.Subject;this.steps=new Cg;this._sortedHeaders=new Cg;this._linear=!1;this._selectedIndex=0;this.selectionChange=new Yu;this.selectedIndexChange=new Yu;this._orientation="horizontal";this._groupId=wAc++};g=h5.prototype;
g.ngAfterContentInit=function(){var a=this;this._steps.changes.pipe(yf(this._steps),Af(this._destroyed)).subscribe(function(b){a.steps.reset(b.filter(function(c){return c._stepper===a}));xg(a.steps)})};
g.ngAfterViewInit=function(){var a=this;this._stepHeader.changes.pipe(yf(this._stepHeader),Af(this._destroyed)).subscribe(function(b){a._sortedHeaders.reset(b.toArray().sort(function(c,d){return c._elementRef.nativeElement.compareDocumentPosition(d._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}));xg(a._sortedHeaders)});this._keyManager=jy(ly(iy(new oy(this._sortedHeaders))),"vertical"===this._orientation);(this._dir?this._dir.change:(0,B.of)()).pipe(yf(this._layoutDirection()),
Af(this._destroyed)).subscribe(function(b){return ky(a._keyManager,b)});my(this._keyManager,this._selectedIndex);this.steps.changes.subscribe(function(){a.selected||(a._selectedIndex=Math.max(a._selectedIndex-1,0))});this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)};g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this.steps.destroy();this._sortedHeaders.destroy();this._destroyed.next();this._destroyed.complete()};
g.next=function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)};g.previous=function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)};g.reset=function(){this._updateSelectedItemIndex(0);this.steps.forEach(function(a){return a.reset()});this._stateChanged()};g._getStepLabelId=function(a){return"cdk-step-label-"+this._groupId+"-"+a};g._getStepContentId=function(a){return"cdk-step-content-"+this._groupId+"-"+a};g._stateChanged=function(){this._changeDetectorRef.markForCheck()};
g._getAnimationDirection=function(a){a-=this._selectedIndex;return 0>a?"rtl"===this._layoutDirection()?"next":"previous":0<a?"rtl"===this._layoutDirection()?"previous":"next":"current"};g._getIndicatorType=function(a,b){b=void 0===b?"number":b;var c=this.steps.toArray()[a];a=this._isCurrentStep(a);return c._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(c,a):this._getGuidelineLogic(c,a,b)};
g._getDefaultIndicatorLogic=function(a,b){return a._showError()&&a.hasError&&!b?"error":!a.completed||b?"number":a.editable?"edit":"done"};g._getGuidelineLogic=function(a,b,c){c=void 0===c?"number":c;return a._showError()&&a.hasError&&!b?"error":a.completed&&!b?"done":a.completed&&b?c:a.editable&&b?"edit":c};g._isCurrentStep=function(a){return this._selectedIndex===a};g._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex};
g._updateSelectedItemIndex=function(a){var b=this.steps.toArray();this.selectionChange.emit({selectedIndex:a,previouslySelectedIndex:this._selectedIndex,selectedStep:b[a],previouslySelectedStep:b[this._selectedIndex]});this._containsFocus()?this._keyManager.setActiveItem(a):my(this._keyManager,a);this._selectedIndex=a;this.selectedIndexChange.emit(this._selectedIndex);this._stateChanged()};
g._onKeydown=function(a){var b=eh(a),c=a.keyCode,d=this._keyManager;if(null==d.activeItemIndex||b||32!==c&&13!==c)sMb(d,"keyboard").onKeydown(a);else this.selectedIndex=d.activeItemIndex,a.preventDefault()};g._anyControlsInvalidOrPending=function(a){return this._linear&&0<=a?this.steps.toArray().slice(0,a).some(function(b){var c=b.stepControl;return(c?c.invalid||c.pending||!b.interacted:!b.completed)&&!b.optional&&!b._completedOverride}):!1};
g._layoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=Zg();return a===b||a.contains(b)};g._isValidIndex=function(a){return-1<a&&(!this.steps||a<this.steps.length)};
Qh.Object.defineProperties(h5.prototype,{linear:{configurable:!0,enumerable:!0,get:function(){return this._linear},set:function(a){this._linear=ah(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=dh(a);if(this.steps&&this._steps){this._isValidIndex(a);var b;null==(b=this.selected)||b._markAsInteracted();this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(a)}else this._selectedIndex=
a}},selected:{configurable:!0,enumerable:!0,get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(a){this.selectedIndex=a&&this.steps?this.steps.toArray().indexOf(a):-1}},orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation=a;this._keyManager&&jy(this._keyManager,"vertical"===a)}}});h5.\u0275fac=function(a){return new (a||h5)(z(py,8),z(xv),z(ae))};
h5.\u0275dir=sd({type:h5,selectors:[["","cdkStepper",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,g5,5),Ag(c,e5,5));if(a&2){var d;yg(d=Bg())&&(b._steps=d);yg(d=Bg())&&(b._stepHeader=d)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});var i5=function(a){this._stepper=a;this.type="submit"};i5.\u0275fac=function(a){return new (a||i5)(z(h5))};i5.\u0275dir=sd({type:i5,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(a,b){a&1&&L("click",function(){return b._stepper.next()});a&2&&cg("type",b.type)},inputs:{type:"type"}});var j5=function(a){this._stepper=a;this.type="button"};j5.\u0275fac=function(a){return new (a||j5)(z(h5))};
j5.\u0275dir=sd({type:j5,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(a,b){a&1&&L("click",function(){return b._stepper.previous()});a&2&&cg("type",b.type)},inputs:{type:"type"}});var k5=function(){};k5.\u0275fac=function(a){return new (a||k5)};k5.\u0275mod=qd({type:k5});k5.\u0275inj=ad({imports:[qy]});var l5=function(){i5.apply(this,arguments)};W(l5,i5);l5.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(l5)))(b||l5)}}();l5.\u0275dir=sd({type:l5,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,b){a&2&&cg("type",b.type)},inputs:{type:"type"},features:[Jf]});var m5=function(){j5.apply(this,arguments)};W(m5,j5);m5.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(m5)))(b||m5)}}();
m5.\u0275dir=sd({type:m5,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,b){a&2&&cg("type",b.type)},inputs:{type:"type"},features:[Jf]});var n5=function(a){this.templateRef=a};n5.\u0275fac=function(a){return new (a||n5)(z(vg))};n5.\u0275dir=sd({type:n5,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var o5=function(a){this._template=a};o5.\u0275fac=function(a){return new (a||o5)(z(vg))};o5.\u0275dir=sd({type:o5,selectors:[["ng-template","matStepContent",""]]});var p5=function(){f5.apply(this,arguments)};W(p5,f5);p5.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(p5)))(b||p5)}}();p5.\u0275dir=sd({type:p5,selectors:[["","matStepLabel",""]],features:[Jf]});var q5=function(){this.changes=new B.Subject;this.optionalLabel="Optional";this.completedLabel="Completed";this.editableLabel="Editable"};q5.\u0275fac=function(a){return new (a||q5)};q5.\u0275prov=$c({token:q5,factory:q5.\u0275fac,providedIn:"root"});var yAc={provide:q5,deps:[[new au,new bu,q5]],useFactory:function(a){return a||new q5}};var zAc=function(a){this._elementRef=a};W(zAc,e5);zAc.\u0275dir=e5.\u0275dir;zAc.\u0275fac=e5.\u0275fac;var AAc=Rh(zAc,"primary"),r5=function(a,b,c,d){var e=AAc.call(this,c)||this;e._intl=a;e._focusMonitor=b;e._intlSubscription=a.changes.subscribe(function(){return d.markForCheck()});return e};W(r5,AAc);g=r5.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._intlSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._elementRef)};
g.focus=function(a,b){a?Pw(this._focusMonitor,this._elementRef,a,b):this._elementRef.nativeElement.focus(b)};g._stringLabel=function(){return this.label instanceof p5?null:this.label};g._templateLabel=function(){return this.label instanceof p5?this.label:null};g._getHostElement=function(){return this._elementRef.nativeElement};g._getIconContext=function(){return{index:this.index,active:this.active,optional:this.optional}};
g._getDefaultTextForState=function(a){return"number"==a?""+(this.index+1):"edit"==a?"create":"error"==a?"warning":a};r5.\u0275fac=function(a){return new (a||r5)(z(q5),z(Ow),z(ae),z(xv))};
r5.\u0275cmp=od({type:r5,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[Jf],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,
"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],
[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(a,b){a&1&&(G(0,"div",0),D(1,"div")(2,"div",1),P(3,ffb,1,2,"ng-container",2),P(4,kfb,5,4,"ng-container",3),F()(),D(5,"div",4),P(6,lfb,2,1,"div",5),P(7,mfb,2,1,"div",5),P(8,nfb,2,1,"div",6),P(9,ofb,2,1,"div",7),F());a&2&&(C("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disableRipple),w(1),$f("mat-step-icon-state-",b.state," mat-step-icon"),Xf("mat-step-icon-selected",b.selected),w(1),C("ngSwitch",
!(!b.iconOverrides||!b.iconOverrides[b.state])),w(1),C("ngSwitchCase",!0),w(2),Xf("mat-step-label-active",b.active)("mat-step-label-selected",b.selected)("mat-step-label-error","error"==b.state),w(1),C("ngIf",b._templateLabel()),w(1),C("ngIf",b._stringLabel()),w(1),C("ngIf",b.optional&&"error"!=b.state),w(1),C("ngIf","error"==b.state))},dependencies:[Ev,Jv,Fv,Gv,Hv,qA,cz],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}\n'],
encapsulation:2,changeDetection:0});var BAc=qh("horizontalStepTransition",[th("previous",sh({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),th("current",sh({transform:"none",visibility:"inherit"})),th("next",sh({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),uh("* => *",Zma([rh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),wh("@*",vh())]),{params:{animationDuration:"500ms"}})]),CAc=qh("verticalStepTransition",[th("previous",sh({height:"0px",visibility:"hidden"})),th("next",sh({height:"0px",visibility:"hidden"})),
th("current",sh({height:"*",visibility:"inherit"})),uh("* <=> current",Zma([rh("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),wh("@*",vh())]),{params:{animationDuration:"225ms"}})]);var sfb=function(a,b){return{step:a,i:b}},vfb=function(a){return{animationDuration:a}},ufb=function(a,b){return{value:a,params:b}},s5=function(a,b,c,d){g5.call(this,a,d);this._errorStateMatcher=b;this._viewContainerRef=c;this._isSelected=B.Subscription.EMPTY;this.stepLabel=void 0};W(s5,g5);
s5.prototype.ngAfterContentInit=function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe(zf(function(){return a._stepper.selectionChange.pipe(A(function(b){return b.selectedStep===a}),yf(a._stepper.selected===a))})).subscribe(function(b){b&&a._lazyContent&&!a._portal&&(a._portal=new Tw(a._lazyContent._template,a._viewContainerRef))})};s5.prototype.ngOnDestroy=function(){this._isSelected.unsubscribe()};
s5.prototype.isErrorState=function(a,b){var c=!!(a&&a.invalid&&this.interacted);return this._errorStateMatcher.isErrorState(a,b)||c};s5.\u0275fac=function(a){return new (a||s5)(z(fd(function(){return t5})),z(Zy,4),z(wg),z(xAc,8))};
s5.\u0275cmp=od({type:s5,selectors:[["mat-step"]],contentQueries:function(a,b,c){a&1&&(Ag(c,p5,5),Ag(c,o5,5));if(a&2){var d;yg(d=Bg())&&(b.stepLabel=d.first);yg(d=Bg())&&(b._lazyContent=d.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[lg([{provide:Zy,useExisting:s5},{provide:g5,useExisting:s5}]),Jf],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a){a&1&&(eg(),P(0,qfb,2,1,"ng-template"))},dependencies:[Xw],encapsulation:2,changeDetection:0});
var t5=function(a,b,c){h5.call(this,a,b,c);this._steps=this._stepHeader=void 0;this.steps=new Cg;this.animationDone=new Yu;this.labelPosition="end";this.headerPosition="top";this._iconOverrides={};this._animationDone=new B.Subject;this._animationDuration="";this.orientation="mat-vertical-stepper"===c.nativeElement.nodeName.toLowerCase()?"vertical":"horizontal"};W(t5,h5);t5.\u0275dir=h5.\u0275dir;
t5.prototype.ngAfterContentInit=function(){var a=this;h5.prototype.ngAfterContentInit.call(this);this._icons.forEach(function(b){return a._iconOverrides[b.name]=b.templateRef});this.steps.changes.pipe(Af(this._destroyed)).subscribe(function(){a._stateChanged()});this._animationDone.pipe(mf(function(b,c){return b.fromState===c.fromState&&b.toState===c.toState}),Af(this._destroyed)).subscribe(function(b){"current"===b.toState&&a.animationDone.emit()})};
t5.prototype._stepIsNavigable=function(a,b){return b.completed||this.selectedIndex===a||!this.linear};t5.prototype._getAnimationDuration=function(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"};Qh.Object.defineProperties(t5.prototype,{animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a)?a+"ms":a}}});
t5.\u0275fac=function(a){return new (a||t5)(z(py,8),z(xv),z(ae))};
t5.\u0275cmp=od({type:t5,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,s5,5),Ag(c,n5,5));if(a&2){var d;yg(d=Bg())&&(b._steps=d);yg(d=Bg())&&(b._icons=d)}},viewQuery:function(a,b){a&1&&zg(r5,5);if(a&2){var c;yg(c=Bg())&&(b._stepHeader=c)}},hostAttrs:["role","tablist","ngSkipHydration",""],hostVars:11,hostBindings:function(a,b){a&2&&(Nf("aria-orientation",b.orientation),Xf("mat-stepper-horizontal","horizontal"===
b.orientation)("mat-stepper-vertical","vertical"===b.orientation)("mat-stepper-label-position-end","horizontal"===b.orientation&&"end"==b.labelPosition)("mat-stepper-label-position-bottom","horizontal"===b.orientation&&"bottom"==b.labelPosition)("mat-stepper-header-position-bottom","bottom"===b.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},
exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[lg([{provide:h5,useExisting:t5}]),Jf],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",
4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage",
"iconOverrides","disableRipple","color","click","keydown"]],template:function(a,b){a&1&&(I(0,0),P(1,xfb,5,2,"div",1),P(2,zfb,2,1,"ng-container",2),K(),P(3,Afb,1,23,"ng-template",null,3,Eg));a&2&&(C("ngSwitch",b.orientation),w(1),C("ngSwitchCase","horizontal"),w(1),C("ngSwitchCase","vertical"))},dependencies:[Dv,Ev,Jv,Fv,Gv,r5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],
encapsulation:2,data:{animation:[BAc,CAc]},changeDetection:0});var DAc=["*",[["mat-card-footer"]]],EAc=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u5=function(){};u5.\u0275fac=function(a){return new (a||u5)};u5.\u0275dir=sd({type:u5,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var v5=function(a){this._animationMode=a};
v5.\u0275fac=function(a){return new (a||v5)(z(iu,8))};
v5.\u0275cmp=od({type:v5,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:3,hostBindings:function(a,b){a&2&&(Nf("mat-id-collision",null),Xf("_mat-animation-noopable","NoopAnimations"===b._animationMode))},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(a){a&1&&(eg(DAc),fg(0),fg(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,
changeDetection:0});var w5=function(){};w5.\u0275fac=function(a){return new (a||w5)};
w5.\u0275cmp=od({type:w5,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],hostVars:1,hostBindings:function(a){a&2&&Nf("mat-id-collision",null)},ngContentSelectors:["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"],decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(a){a&1&&(eg(EAc),fg(0),D(1,"div",0),fg(2,1),F(),fg(3,2))},encapsulation:2,changeDetection:0});var FAc=["summary"],GAc=["reproSteps"],HAc=["description"],IAc=function(a){return{nonEmptyValidator:a}},JAc=function(a,b){return{reproStepsValidator:a,nonEmptyValidator:b}},KAc=[Di("chrome-security@google.com")],x5=function(a,b,c,d,e,f,h,k){this.activeSession=a;this.analytics=b;this.butterBar=c;this.currentUser=d;this.issueApi=e;this.paths=f;this.redirectUrl=h;this.userAccess=k;this.Persona=tAc;var q;a=window.navigator.platform;b=window.navigator.userAgent;c=["Win32","Win64","Windows","WinCE"];d=
["iPhone","iPad","iPod"];a=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(a)?"Mac OS":d.includes(a)?"iOS":c.includes(a)?"Windows":/Android/.test(b)?"Android":/Linux/.test(a)?"Linux":/\bCrOS\b/.test(b)?"Chrome OS":"Unknown/Other";b=window.navigator.userAgent.match(/chrome\/(\d|\.)+/i)||[];if(0<b.length){var u;b=null==(u=b[0])?void 0:u.split("/")[1]}else b=void 0;this.model={persona:"USER",category:void 0,os:a,channel:"Not sure",version:null!=(q=b)?q:"",summary:"",reproSteps:"1. \n2. \n3. ",description:"",
regression:"N/A",comments:"",customQuestionResponses:[]};this.ackDupes=!1;this.uploads=[];this.enableRecaptcha=$C(this.activeSession,"enableRecaptcha");this.recaptchaResponse="";this.existingIssuesLink="/issues?q=componentid:402888"+encodeURIComponent("+")},Bfb=function(a,b){switch(b){case 0:return!!a.model.category&&a.ackDupes;case 1:var c,d,e;return!(null==(c=a.summaryControl)||!c.valid)&&!(null==(d=a.reproStepsControl)||!d.valid)&&!(null==(e=a.descriptionControl)||!e.valid);default:$h(b)}};g=x5.prototype;
g.nonEmptyValidator=function(a){return 0===(null==a?void 0:a.trim().length)?!1:!0};g.reproStepsValidator=function(a){return"1. \n2. \n3. "===a?!1:!0};g.isCaptchaValid=function(){return!this.enableRecaptcha||""!==this.recaptchaResponse};g.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};g.addUpload=function(a){this.uploads.push(a)};g.removeUpload=function(a){za(this.uploads,a)};
g.getAttachments=function(){for(var a=[],b=l(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,2===c.state&&c.blobRef&&a.push(li(c.blobRef));return a};
g.submit=function(){var a=this,b,c,d,e,f;return Ne(function(h){switch(h.nextAddress){case 1:var k=a.model,q=a.currentUser.user,u=null,x=null,y;"SECURITY"===(null==(y=k.category)?void 0:y.value)&&(u="LIMIT_VIEW",x=KAc);var E;y=(null==(E=k.category)?void 0:E.componentId)||402888;E=k.summary;var H=[{customFieldId:199900,textValue:k.os},{customFieldId:199877,textValue:k.version},{customFieldId:199876,textValue:k.channel},{customFieldId:199878,textValue:k.regression}],J;k="\n# Steps to reproduce the problem\n"+
k.reproSteps+"\n\n# Problem Description\n"+k.description+"\n\n"+(0<k.comments.length?"\n# Additional Comments\n"+k.comments:"")+"\n\n# Summary\n"+k.summary+"\n\n"+Nfb(k.customQuestionResponses)+"\n\n# Additional Data\nCategory: "+(null==(J=k.category)?void 0:J.title);k=k.replace(/^\n/,"");b={componentId:y,type:"BUG",status:"NEW",priority:"P2",severity:"S2",title:E,customField:H,comment:k.replace(/\n{3,}/g,"\n\n"),formattingMode:"MARKDOWN",inProd:!0,isArchived:!1,reporterUser:q,issueAccessLimitLevel:u,
collaboratorsUsers:x,ccUsers:[q],authorUser:null,createdTimeMicros:null,version:null,assigneeUser:null,verifierUser:null,attachmentId:null,duplicateOfIssueId:null,blockedByIssueId:null,blockingIssueId:null,changelist:null,postmortems:null,foundInVersion:null,targetedToVersion:null,verifiedInVersion:null,hotlistId:null,retention:null,isDeleted:null,deletionReason:null,significanceOverride:null,duplicateIssueId:null,sloStartTime:null,sloEndTime:null,sloSnoozeType:null};WF(a.butterBar,"Saving...",0);
Oe(h,2);return h.yield(a.issueApi.createIssueWithWizard({snapshot:b,attachments:a.getAttachments(),recaptchaToken:a.enableRecaptcha?a.recaptchaResponse:void 0}),4);case 4:c=h.yieldResult;d=c.issueId;if(!d)throw Error("Qe");a.butterBar.dismiss();a.analytics.trackEvent(xp.CREATE_ISSUE,"fileAndRedirect","wizard",!0);return h.yield(uG(a.userAccess,"reader","issues/"+d),5);case 5:(e=h.yieldResult)?Rpc(a.redirectUrl,a.paths.editIssue(d),String(d)):(WF(a.butterBar,"New issue created: "+d+" (view access not granted)",
0),Rpc(a.redirectUrl,a.paths.listIssues()));$s(h,0);break;case 2:f=Re(h),WF(a.butterBar,"Failed to create issue: "+f),Se(h)}})};x5.\u0275fac=function(a){return new (a||x5)(z(Us),z(zH),z(VF),z(WK),z(AF),z(xE),z(W_),z(sG))};
x5.\u0275cmp=od({type:x5,selectors:[["chrome-wizard"]],viewQuery:function(a,b){a&1&&(zg(FAc,5),zg(GAc,5),zg(HAc,5),zg(rS,5));if(a&2){var c;yg(c=Bg())&&(b.summaryControl=c.first);yg(c=Bg())&&(b.reproStepsControl=c.first);yg(c=Bg())&&(b.descriptionControl=c.first);yg(c=Bg())&&(b.attachmentUploader=c.first)}},decls:117,vars:37,consts:[["headerPosition","bottom","animationDuration","0","aria-label","Issue filing form","linear","",1,"bv2-view",3,"disableRipple"],["aria-label","Report an issue with Chromium",
3,"completed"],[1,"required"],[3,"persona","personaChange"],[4,"ngIf","ngIfElse"],["contributor",""],[3,"completed","aria-label"],[1,"inline-block"],["appearance","outline","aria-label","Operating system",1,"inline"],[3,"ngModel","ngModelChange"],["value","Android"],["value","Chrome OS"],["value","iOS"],["value","Linux"],["value","Mac OS"],["value","Windows"],["value","Unknown/Other"],[1,"inline-block","channel"],["appearance","outline","aria-label","Chrome Channel",1,"inline"],["value","Not sure"],
["value","Stable"],["value","Beta"],["value","Dev"],["value","Canary"],[1,"inline"],["matInput","","aria-label","Chrome version",3,"ngModel","ngModelChange"],[1,"textarea"],["matInput","","required","","maxlength","100","name","summary","aria-label","One line summary",3,"ngModel","customValidators","ngModelChange"],["summary","ngModel"],[4,"ngIf"],["matInput","","required","","maxlength","5000","name","reproSteps","aria-label","Steps to reproduce problem",3,"ngModel","customValidators","ngModelChange"],
["reproSteps","ngModel"],["matInput","","required","","maxlength","5000","name","description","aria-label","Describe the problem",3,"ngModel","customValidators","ngModelChange"],["description","ngModel"],["appearance","outline","aria-label","Did this work before?"],["value","N/A"],["value","Yes"],["value","No"],[1,"actions-container"],["mat-stroked-button","","matStepperPrevious",""],["svgIcon","chevron-left"],["mat-raised-button","","color","primary","matStepperNext","",3,"disabled"],["svgIcon",
"chevron-right"],["aria-label","Extra information about the issue"],[3,"category","responses",4,"ngIf"],["matInput","","aria-label","Additional comments",3,"ngModel","ngModelChange"],[3,"uploads","onUploadCancel"],[1,"attachment-selector"],[3,"includeTextLabel","onSelect"],["class","wizard-recaptcha",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],[3,"persona","category","categoryChange"],[1,
"dupes"],[1,"ack-dupes",3,"ngModel","ngModelChange"],[3,"href"],[3,"category","responses"],[1,"wizard-recaptcha"],[3,"onUpdate"]],template:function(a,b){a&1&&(D(0,"mat-stepper",0)(1,"mat-step",1)(2,"h2"),Q(3,"Report an issue with Chromium"),F(),D(4,"h3"),Q(5," We want you to enter the best possible issue report so that the project team members can act on it effectively. The following steps will help route your issue to the correct people. "),F(),G(6,"br"),D(7,"h4",2),Q(8,"Please select your following role:"),
F(),D(9,"wizard-persona-picker",3),L("personaChange",function(h){b.model.category=void 0;b.model.persona=h}),F(),P(10,Cfb,17,5,"ng-container",4),P(11,Dfb,10,1,"ng-template",null,5,Eg),F(),D(13,"mat-step",6)(14,"h2"),Q(15),F(),D(16,"h3"),Q(17,"Please confirm that the following version information is correct."),F(),D(18,"h4",7),Q(19,"Operating System:"),F(),D(20,"mat-form-field",8)(21,"mat-select",9),L("ngModelChange",function(h){return b.model.os=h}),D(22,"mat-option",10),Q(23,"Android"),F(),D(24,
"mat-option",11),Q(25,"Chrome OS"),F(),D(26,"mat-option",12),Q(27,"iOS"),F(),D(28,"mat-option",13),Q(29,"Linux"),F(),D(30,"mat-option",14),Q(31,"Mac OS"),F(),D(32,"mat-option",15),Q(33,"Windows"),F(),D(34,"mat-option",16),Q(35,"Unknown/Other"),F()()(),D(36,"h4",17),Q(37,"Channel:"),F(),D(38,"mat-form-field",18)(39,"mat-select",9),L("ngModelChange",function(h){return b.model.channel=h}),D(40,"mat-option",19),Q(41,"Not sure"),F(),D(42,"mat-option",20),Q(43,"Stable"),F(),D(44,"mat-option",21),Q(45,"Beta"),
F(),D(46,"mat-option",22),Q(47,"Dev"),F(),D(48,"mat-option",23),Q(49,"Canary"),F()()(),G(50,"br"),D(51,"h4",7),Q(52,"Chrome version:"),F(),D(53,"mat-form-field",24)(54,"input",25),L("ngModelChange",function(h){return b.model.version=h}),F()(),D(55,"h4",2),Q(56,"Please enter a one line summary (100 character limit)"),F(),D(57,"mat-form-field",26)(58,"textarea",27,28),L("ngModelChange",function(h){return b.model.summary=h}),Q(60,"      "),F(),P(61,Efb,2,0,"mat-error",29),F(),D(62,"h4",2),Q(63,"Steps to reproduce problem (5000 character limit)"),
F(),D(64,"mat-form-field",26)(65,"textarea",30,31),L("ngModelChange",function(h){return b.model.reproSteps=h}),Q(67,"      "),F(),P(68,Ffb,2,0,"mat-error",29),F(),D(69,"h4",2),Q(70,"Please describe the problem (5000 character limit)"),F(),D(71,"mat-form-field",26)(72,"textarea",32,33),L("ngModelChange",function(h){return b.model.description=h}),Q(74,"      "),F(),P(75,Gfb,2,0,"mat-error",29),F(),D(76,"h4"),Q(77,"Did this work before?"),F(),D(78,"mat-form-field",34)(79,"mat-select",9),L("ngModelChange",
function(h){return b.model.regression=h}),D(80,"mat-option",35),Q(81,"Not applicable or don't know"),F(),D(82,"mat-option",36),Q(83,"Yes - This is a regression"),F(),D(84,"mat-option",37),Q(85,"No - I think it never worked"),F()()(),D(86,"div",38)(87,"button",39),G(88,"mat-icon",40),Q(89," Back "),F(),D(90,"button",41),Q(91," Next "),G(92,"mat-icon",42),F()()(),D(93,"mat-step",43)(94,"h2"),Q(95,"Extra information about the issue"),F(),P(96,Hfb,1,1,"wizard-custom-questions",44),D(97,"h4"),Q(98,"Additional comments"),
F(),D(99,"mat-form-field",26)(100,"textarea",45),L("ngModelChange",function(h){return b.model.comments=h}),F()(),D(101,"h4"),Q(102,"Upload any relevant screenshots"),F(),D(103,"b-attachment-uploader",46),L("onUploadCancel",function(h){return b.removeUpload(h)}),F(),D(104,"div",47)(105,"b-attachment-selector",48),L("onSelect",function(h){return b.uploadFile(h)}),F(),Q(106," You can include multiple attachments. "),F(),P(107,Ifb,2,0,"div",49),D(108,"div",38)(109,"button",39),G(110,"mat-icon",40),Q(111,
" Back "),F(),D(112,"button",50),L("click",function(){return b.submit()}),Q(113," Submit "),F()()(),P(114,Jfb,0,0,"ng-template",51),P(115,Kfb,0,0,"ng-template",52),P(116,Lfb,0,0,"ng-template",53),F());if(a&2){var c=N(12),d=N(59),e=N(66),f=N(73);Xf("hide-dots",b.model.persona===b.Persona.CONTRIBUTOR);C("disableRipple",!0);w(1);C("completed",Bfb(b,0));w(8);C("persona",b.model.persona);w(1);C("ngIf",b.model.persona!==b.Persona.CONTRIBUTOR)("ngIfElse",c);w(3);gg("aria-label","Details for problems with ",
null==b.model.category?null:b.model.category.title,"");C("completed",Bfb(b,1));w(2);S("Details for problems with ",null==b.model.category?null:b.model.category.title,"");w(6);C("ngModel",b.model.os);w(18);C("ngModel",b.model.channel);w(15);C("ngModel",b.model.version);w(4);C("ngModel",b.model.summary)("customValidators",og(30,IAc,b.nonEmptyValidator));w(3);C("ngIf",d.invalid&&(d.dirty||d.touched));w(4);C("ngModel",b.model.reproSteps)("customValidators",pg(32,JAc,b.reproStepsValidator,b.nonEmptyValidator));
w(3);C("ngIf",e.invalid&&(e.dirty||e.touched));w(4);C("ngModel",b.model.description)("customValidators",og(35,IAc,b.nonEmptyValidator));w(3);C("ngIf",f.invalid&&(f.dirty||f.touched));w(4);C("ngModel",b.model.regression);w(11);C("disabled",!Bfb(b,1));w(6);C("ngIf",b.model.category);w(4);C("ngModel",b.model.comments);w(3);C("uploads",b.uploads);w(2);C("includeTextLabel",!0);w(2);C("ngIf",b.enableRecaptcha);w(5);C("disabled",!b.isCaptchaValid())}},dependencies:[nS,rS,Ev,qA,I_,Tg,hw,zw,Aw,ow,Ez,v5,w5,
u5,PK,fA,jA,nA,bP,Hz,s5,t5,l5,m5,n5,PT,b5,c5,d5],styles:['[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400}[_nghost-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;font-weight:100;margin:0}[_nghost-%COMP%]   h4.required[_ngcontent-%COMP%]:after{content:" *";color:#ea4335;color:var(--bad)}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]{min-width:90%}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}[_nghost-%COMP%]   textarea[_ngcontent-%COMP%]{min-height:4rem;padding:4px 1px 1px 7px}[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin:4px 0}[_nghost-%COMP%]   mat-form-field.inline[_ngcontent-%COMP%]{margin:4px 8px}[_nghost-%COMP%]     .mat-radio-container{margin-right:4px}[_nghost-%COMP%]     .mat-step-header .mat-step-label{display:none}[_nghost-%COMP%]     mat-stepper.hide-dots .mat-horizontal-stepper-header-container{display:none}[_nghost-%COMP%]     .mat-step-header.cdk-program-focused, [_nghost-%COMP%]     .mat-step-header:hover{background-color:unset}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container{max-width:10%;margin-left:40%;-webkit-transform:scale(.35);transform:scale(.35)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-step-icon{background-color:#dadce0;background-color:var(--c300)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-step-icon-selected{background-color:#1a73e8;background-color:var(--primary-c600)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-stepper-horizontal-line{display:none}[_nghost-%COMP%]     mat-checkbox label{text-wrap:wrap}wizard-persona-picker[_ngcontent-%COMP%]{margin-bottom:30px}mat-card[_ngcontent-%COMP%]{background-color:#fef7e0;background-color:var(--yellow-c50);margin-bottom:8px}.actions-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:8px 12px 4px 0}.actions-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{margin-left:auto}mat-card-header[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;margin-bottom:10px}.dupes[_ngcontent-%COMP%]{max-width:85%}mat-stepper[_ngcontent-%COMP%]{max-width:1060px}h4.channel[_ngcontent-%COMP%]{margin-left:12px}.bv2-view[_ngcontent-%COMP%]{top:0}b-attachment-selector[_ngcontent-%COMP%]{padding:4px}.attachment-selector[_ngcontent-%COMP%]{margin:12px 0}.wizard-recaptcha[_ngcontent-%COMP%]{margin:15px 0}p[_ngcontent-%COMP%]{margin:8px 0}\n/*# sourceMappingURL=chrome_wizard.css.map */']});var y5=function(a,b,c,d,e){var f=this;this.userResources=a;this.history=b;this.router=c;this.currentTracker=d;this.activeSession=e;this.viewIssues=Tk;this.createIssue=gua;this.componentSettings=hua;this.trackerId=this.currentTracker.getTrackerId();this.includeArchived=!1;this.isThinking=!0;this.isInternalSession=this.activeSession.isInternalSession();this.placeholder$=this.currentTracker.inTracker$.pipe(A(function(h){return h||f.activeSession.isExternalSession()?"Find components by name or id":"Find components by name, team, or id"}));
this.recentComponents$=this.userResources.getRecentComponents().then(function(h){return h.filter(function(k){return f.filterTrackerComponents(k)})}).finally(function(){f.isThinking=!1})};y5.prototype.back=function(){V_(this.history)};y5.prototype.filterTrackerComponents=function(a){return xn(this.trackerId)||a.trackerId===this.trackerId};y5.\u0275fac=function(a){return new (a||y5)(z(nH),z(U_),z(WD),z(jG),z(Us))};
y5.\u0275cmp=od({type:y5,selectors:[["components-screen-wrapper"]],decls:24,vars:12,consts:[[1,"flex-kids-y","pos-fill","bg-off-main","overflow","overflow-on-print-media"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-appbar-right"],["mat-button","","routerLink","/components/new","class","gmat-button medium",4,"ngIf"],["label","Show archived","tooltip","Toggle whether to show 'archived' Components",
1,"margin-x",3,"model","modelChange"],[1,"padded"],[3,"includeArchived","placeholder","ariaLabel","selectedComponentChange"],[1,"margin-top"],[1,"pos-rel","carded","bg-main"],[4,"ngIf"],[1,"muted","margin-s-top","margin-left"],["routerLink","/components/all",1,"muted","hover-link"],["mat-button","","routerLink","/components/new",1,"gmat-button","medium"],["class","muted",4,"ngIf"],[1,"unstyled-list","reverse-padded-sides","recent-components"],[4,"ngFor","ngForOf"],[1,"muted"],["href","https://developers.google.com/issue-tracker/concepts/components#recent-components",
"target","_blank"],[1,"flex-kids-x","clickable-row","padded",3,"routerLinkObj"],[1,"flex-1",3,"onedevHovercardTrigger"],[1,"type-l","normal-link"],[1,"margin-s-left",3,"accessLevel","labelOnlyMode"],[1,"margin-s-left",3,"trackerId","showHovercard"],[1,"muted","line-clamp-2"],[1,"right"],["mat-button","","type","button",1,"gmat-button","medium",3,"routerLinkObj"],["card",""],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""]],template:function(a,b){a&1&&(D(0,"article",
0)(1,"header",1)(2,"div",2)(3,"button",3),L("click",function(){return b.back()}),G(4,"mat-icon",4),F(),D(5,"h2"),Q(6,"Components"),F()(),D(7,"div",5),P(8,Ofb,2,0,"a",6),D(9,"b-slide-toggle",7),L("modelChange",function(e){return b.includeArchived=e}),F()()(),D(10,"section",8)(11,"h3"),Q(12,"Search"),F(),D(13,"b-team-component-picker",9),L("selectedComponentChange",function(e){null!=e&&ws(b.router,hua(e.componentId).path)}),T(14,"async"),T(15,"async"),F(),D(16,"h3",10),Q(17,"Recent Components"),F(),
D(18,"div",11),P(19,Sfb,4,2,"ng-container",12),T(20,"async"),F(),D(21,"p",13)(22,"a",14),Q(23,"See all Components"),F()()()());if(a&2){var c,d;w(8);C("ngIf",b.isInternalSession);w(1);C("model",b.includeArchived);w(4);C("includeArchived",b.includeArchived)("placeholder",null!==(c=V(14,6,b.placeholder$))&&void 0!==c?c:"")("ariaLabel",null!==(d=V(15,8,b.placeholder$))&&void 0!==d?d:"");w(6);C("ngIf",V(20,10,b.recentComponents$))}},dependencies:[Ez,Fz,FB,Dv,Ev,qA,YD,tP,TR,hX,PJ,QJ,UJ,RJ,RP,XO,HP,Kv],
encapsulation:2});var z5=function(){};z5.\u0275fac=function(a){return new (a||z5)};z5.\u0275mod=qd({type:z5});z5.\u0275inj=ad({imports:[aD,SB,bE,uP]});var LAc=["bookmarkGroupName"],MAc=function(a){return{"bv2-edit-resource-readonly":a}},A5=function(a,b,c,d,e,f,h,k,q,u){Y.call(this);var x=this;this.location=a;this.appHistory=b;this.snackBar=c;this.bookmarkGroupsApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=u;this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new lw({name:new nw("",cw),description:new nw("")});h.setTitle("Create Bookmark Group");this.subscriptions.add(VW(q,function(){return!(!x.name()&&!x.description())},
!1))};W(A5,Y);A5.\u0275dir=Y.\u0275dir;g=A5.prototype;g.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving bookmark group...","dismiss",{duration:0}),this.isSaving=!0,this.bookmarkGroupsApi.create({name:this.name(),description:this.description()}).then(function(b){a.isSaving=!1;a.snackBar.open('Bookmark group "'+b.name+'" saved.',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:b.bookmarkGroupId});a.analytics.trackEvent("sidebarHotlists","createdBookmarkGroup");a.location.replaceUrl(a.paths.editBookmarkGroup(b.bookmarkGroupId));
a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,b)}))};g.validate=function(){if(""===this.name())return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){V_(this.appHistory)};g.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};g.name=function(){var a,b=null==(a=this.bookmarkGroupUnderEdit.get("name"))?void 0:a.value;return b?b:""};
g.description=function(){var a,b=null==(a=this.bookmarkGroupUnderEdit.get("description"))?void 0:a.value;return b?b:""};A5.\u0275fac=function(a){return new (a||A5)(z(wE),z(U_),z(SF),z(wJ),z(xE),z(zH),z(lG),z(XF),z(UW),z(DF))};
A5.\u0275cmp=od({type:A5,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&zg(LAc,5);if(a&2){var c;yg(c=Bg())&&(b.bookmarkGroupName=c.first)}},features:[Jf],decls:27,vars:11,consts:[[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","bookmark-group-name",1,"required"],
["type","text","autofocus","autofocus","id","bookmark-group-name","required","","aria-required","true","formControlName","name",3,"disabled"],["bookmarkGroupName",""],["for","bookmark-group-description"],["id","bookmark-group-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-stroked-button","","color","primary",1,"gmat-button",3,"click"]],template:function(a,
b){a&1&&(D(0,"div",0)(1,"div",1)(2,"button",2),L("click",function(){return b.back()}),G(3,"mat-icon",3),F(),D(4,"h2"),Q(5,"Create a new bookmark group"),F()()(),D(6,"div",4)(7,"div",5)(8,"form",6),G(9,"b-error-banner",7),D(10,"div",8)(11,"label",9),Q(12,"Name"),F(),G(13,"input",10,11),F(),D(15,"div",8)(16,"label",12),Q(17,"Description"),F(),D(18,"textarea",13),Q(19,"        "),F()(),D(20,"p",14),Q(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. "),
F(),D(22,"div",15)(23,"button",16),L("click",function(){return b.save()}),Q(24," Save "),F(),D(25,"button",17),L("click",function(){return b.revertChanges()}),Q(26," Revert changes "),F()()()()());a&2&&(w(8),C("formGroup",b.bookmarkGroupUnderEdit),w(1),C("error",b.error),w(1),C("ngClass",og(7,MAc,b.isSaving)),w(3),C("disabled",b.isSaving),w(2),C("ngClass",og(9,MAc,b.isSaving)),w(3),C("disabled",b.isSaving),w(5),C("disabled",b.isSaving))},dependencies:[Cv,qA,Ez,FB,pw,Tg,hw,iw,zw,vw,ww,pZ],encapsulation:2});var NAc=["form"],B5=function(a,b,c,d,e,f,h,k,q,u){Y.call(this);this.butterBar=a;this.paths=b;this.analytics=c;this.appHistory=d;this.bLocation=e;this.activeSession=f;this.documentationLinks=h;this.componentActions=u;this.parentComponentInternal=null;this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=this.isSaving=!1;this.component={componentId:0,parentComponentId:0,name:"",description:"",archived:!1,accessLimit:{accessLevel:"ACCESS_LEVEL_UNSPECIFIED"},emailAlias:"dummyemail@google.com",
componentPathInfo:{componentPathId:null,componentPathName:null,allCustomField:null},commentEditState:"DISABLED",defaultTemplateId:0,slo:{inherit:!0,source:"BUGSCOPE",id:"0"},bugscopeSloId:"0",spamProtection:"NO_PROTECTIONS"};this.sessionIsExternal=f.isExternalSession();k.parentId&&this.loadParentComponent(qi(k.parentId));q.setTitle("Create component")};W(B5,Y);B5.\u0275dir=Y.\u0275dir;g=B5.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate()&&(WF(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){WF(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());a.analytics.trackEvent("component","create");a.commentEditsEnabled?a.analytics.trackEvent("component","comment edits enabled",
"create"):a.analytics.trackEvent("component","comment edits disabled","create");setTimeout(function(){a.isSaving=!1;a.bLocation.replaceUrl(a.paths.manageComponent(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){a.butterBar.showWarning(tn(b),0);a.isSaving=!1}))};g.back=function(){V_(this.appHistory)};
g.validate=function(){if(this.createComponentForm.form.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.componentIsValid){if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid."}return!1};g.loadParentComponent=function(a){var b=this;this.componentActions.getUncached(a,!0).then(function(c){b.parentComponent=c})};
g.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};g.onComponentSelect=function(a){this.parentComponent=a;OAc(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;OAc(this)};
var OAc=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled="ENABLED"===a.component.commentEditState):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};Qh.Object.defineProperties(B5.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;OAc(this)}}});
B5.\u0275fac=function(a){return new (a||B5)(z(VF),z(xE),z(zH),z(U_),z(wE),z(Us),z(yL),z(aO),z(lG),z(EP))};
B5.\u0275cmp=od({type:B5,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&zg(NAc,5);if(a&2){var c;yg(c=Bg())&&(b.createComponentForm=c.first)}},features:[Jf],decls:55,vars:31,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","b-aria-label","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"edit-resource-panel"],["novalidate","",1,"create-component-form"],["form","ngForm"],[3,
"error"],[1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","id","component-name","placeholder","Component name","name","componentName","aria-label","Component name",3,"bFocus","ngModel","disabled","required","ngModelChange"],["for","component-description"],["id","component-description","placeholder","Component description","name","componentDescription","aria-label","Component description",3,"ngModel","disabled","ngModelChange"],["for","parent-component",
1,"required"],["id","parent-component","ariaLabel","Parent component",3,"selectedComponent","placeholder","isRequired","checkAdminAccess","selectedComponentChange","accessCheckComplete"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabel","Editable comments",3,"checked","change"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["for","retention-settings",1,"required"],
["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["id","retention-settings"],[3,"issueRetentionDisabled","isExternal","initialModel","modelChange","validChange"],[1,"advanced-settings-info"],[1,"bv2-component-button-bar"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"b-button",2),L("onAction",function(){return b.back()}),G(3,"b-icon",3),F()()(),D(4,"div",4)(5,"h2",5),Q(6,"Create component"),
F(),D(7,"div",6)(8,"form",7,8),G(10,"b-error-banner",9),D(11,"div",10)(12,"label",11)(13,"span",12),Q(14,"Name"),F()(),D(15,"input",13),L("ngModelChange",function(c){return b.component.name=c}),F()(),D(16,"div",10)(17,"label",14)(18,"span",12),Q(19,"Description"),F()(),D(20,"textarea",15),L("ngModelChange",function(c){return b.component.description=c}),Q(21,"        "),F()(),D(22,"div",10)(23,"label",16)(24,"span",12),Q(25,"Parent Component"),F()(),D(26,"b-team-component-picker",17),L("selectedComponentChange",
function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)})("accessCheckComplete",function(c){return b.accessCheckComplete(c)}),F()(),D(27,"div",18)(28,"div",19)(29,"mat-checkbox",20),L("change",function(c){return b.setCommentEditState(c.checked)}),F()(),D(30,"div")(31,"strong",21),Q(32,"Editable Comments"),F(),D(33,"div",22),Q(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. "),P(35,Ufb,2,1,"a",23),F()()(),
D(36,"div",10)(37,"label",24)(38,"span",12),Q(39,"Retention Settings"),F()(),D(40,"div",21)(41,"p"),Q(42,"Please choose a period of time to retain the data stored in this component."),G(43,"br"),D(44,"a",25),Q(45," Learn more "),F()()(),D(46,"div",26)(47,"b-retention-settings-form",27),L("modelChange",function(c){return b.component.retentionSettings=c})("validChange",function(c){return b.retentionIsValid=c}),F()()(),D(48,"p",28),Q(49," Advanced settings such as custom field and access controls may be defined once the component is created. "),
F(),D(50,"div",29)(51,"b-button",30),L("onAction",function(){return b.create()}),Q(52," Save "),F(),D(53,"b-button",31),L("onAction",function(){return b.back()}),Q(54," Discard "),F()()()()());a&2&&(w(8),Xf("show-errors",b.error),w(2),C("error",b.error),w(1),Xf("bv2-edit-resource-readonly",b.isSaving),w(4),C("bFocus",!0)("ngModel",b.component.name)("disabled",b.isSaving)("required",!0),w(1),Xf("bv2-edit-resource-readonly",b.isSaving),w(4),C("ngModel",b.component.description)("disabled",b.isSaving),
w(2),Xf("bv2-edit-resource-readonly",b.isSaving),w(4),C("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),w(1),Xf("bv2-edit-resource-readonly",b.isSaving),w(2),C("checked",b.commentEditsEnabled),w(6),C("ngIf",!b.sessionIsExternal),w(9),C("href",Ks(),re),w(2),Xf("bv2-edit-resource-readonly",b.isSaving),w(1),C("issueRetentionDisabled",b.isSaving)("isExternal",op(b.parentComponent))("initialModel",b.component.retentionSettings),w(4),C("disabled",
b.isSaving||!b.componentIsValid),w(2),C("disabled",b.isSaving))},dependencies:[bJ,Ev,pZ,LW,pw,Tg,hw,iw,zw,ow,mw,bD,PK,B_,TR],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});var PAc=["hotlistName"],QAc=function(a){return{"bv2-edit-resource-readonly":a}},C5=function(a,b,c,d,e,f,h,k,q,u){Y.call(this);var x=this;this.location=a;this.appHistory=b;this.snackBar=c;this.hotlistApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=u;this.error="";this.isSaving=!1;this.hotlistUnderEdit=new lw({name:new nw("",cw),description:new nw("")});h.setTitle("Create Hotlist");this.subscriptions.add(VW(q,function(){return!(!x.name()&&!x.description())},!1))};W(C5,Y);
C5.\u0275dir=Y.\u0275dir;g=C5.prototype;g.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving hotlist...","dismiss",{duration:0}),this.isSaving=!0,this.hotlistApi.createHotlist(this.name(),this.description()).then(function(b){a.isSaving=!1;a.snackBar.open('Hotlist "'+b.name+'" saved.',"dismiss",{duration:6E3});a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId});a.analytics.trackEvent("hotlist","create");a.location.replaceUrl(a.paths.editHotlist(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,
b)}))};g.validate=function(){if(""===this.name())return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){V_(this.appHistory)};g.revertChanges=function(){this.hotlistUnderEdit.reset()};g.name=function(){var a,b=null==(a=this.hotlistUnderEdit.get("name"))?void 0:a.value;return b?b:""};g.description=function(){var a,b=null==(a=this.hotlistUnderEdit.get("description"))?void 0:a.value;return b?b:""};
C5.\u0275fac=function(a){return new (a||C5)(z(wE),z(U_),z(SF),z(mF),z(xE),z(zH),z(lG),z(XF),z(UW),z(DF))};
C5.\u0275cmp=od({type:C5,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&zg(PAc,5);if(a&2){var c;yg(c=Bg())&&(b.hotlistName=c.first)}},features:[Jf],decls:27,vars:11,consts:[[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","hotlist-name",1,"required"],["type","text",
"autofocus","autofocus","id","hotlist-name","required","","aria-required","true","formControlName","name",3,"disabled"],["hotlistName",""],["for","hotlist-description"],["id","hotlist-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-stroked-button","","color","primary",1,"gmat-button",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"button",
2),L("click",function(){return b.back()}),G(3,"mat-icon",3),F(),D(4,"h2"),Q(5,"Create a new hotlist"),F()()(),D(6,"div",4)(7,"div",5)(8,"form",6),G(9,"b-error-banner",7),D(10,"div",8)(11,"label",9),Q(12,"Name"),F(),G(13,"input",10,11),F(),D(15,"div",8)(16,"label",12),Q(17,"Description"),F(),D(18,"textarea",13),Q(19,"        "),F()(),D(20,"p",14),Q(21," Advanced settings such as access controls may be defined once the hotlist is created. "),F(),D(22,"div",15)(23,"button",16),L("click",function(){return b.save()}),
Q(24," Save "),F(),D(25,"button",17),L("click",function(){return b.revertChanges()}),Q(26," Revert changes "),F()()()()());a&2&&(w(8),C("formGroup",b.hotlistUnderEdit),w(1),C("error",b.error),w(1),C("ngClass",og(7,QAc,b.isSaving)),w(3),C("disabled",b.isSaving),w(2),C("ngClass",og(9,QAc,b.isSaving)),w(3),C("disabled",b.isSaving),w(5),C("disabled",b.isSaving))},dependencies:[Cv,qA,Ez,FB,pw,Tg,hw,iw,zw,vw,ww,pZ],encapsulation:2});var D5=function(a,b,c){this.analytics=a;this.activeSession=b;this.hatsService=c;this.enableDupSearchControl=$C(this.activeSession,"enableDupSearchControl");this.enableDupSearchA=$C(this.activeSession,"enableDupSearchA");this.enableDupSearchB=$C(this.activeSession,"enableDupSearchB");this.enableDupSearchC=$C(this.activeSession,"enableDupSearchC");this.enableSimilarIssues=this.activeSession.isInternalSession()&&(this.enableDupSearchControl||this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC)};
D5.prototype.triggerSimilarIssuesSurvey=function(){return Nhc(this.hatsService,"HFPx18aEL0g6pPHSLo10YtkWxxH9",RAc(this)).pipe(A(function(){}))};D5.prototype.trackTitleHoverOver=function(){this.analytics.trackEvent(xp.MAGIC_BOX,"titleHoverOver",this.getGroupName())};D5.prototype.trackTitleClick=function(){this.analytics.trackEvent(xp.MAGIC_BOX,"titleClick",this.getGroupName())};
var RAc=function(a){var b={},c={};a.enableDupSearchControl&&(b.experimentIds=["44573608"]);a.enableDupSearchA&&(b.experimentIds=["44573610"]);a.enableDupSearchB&&(b.experimentIds=["44573612"]);a.enableDupSearchC&&(b.experimentIds=["44573614"]);c.groupName=a.getGroupName();b.customData=c;return b};D5.prototype.getGroupName=function(){return this.enableDupSearchControl?"BaseVariant":this.enableDupSearchA?"VariantA":this.enableDupSearchB?"VariantB":this.enableDupSearchC?"VariantC":"Control"};
D5.\u0275fac=function(a){return new (a||D5)(n(zH),n(Us),n(LV))};D5.\u0275prov=$c({token:D5,factory:D5.\u0275fac,providedIn:"root"});var E5=function(a,b,c){this.paths=a;this.relatedIssuesService=b;this.experimentSupport=c;this.enableDupSearchControl=this.experimentSupport.enableDupSearchControl;this.enableDupSearchA=this.experimentSupport.enableDupSearchA;this.enableDupSearchB=this.experimentSupport.enableDupSearchB;this.enableDupSearchC=this.experimentSupport.enableDupSearchC},SAc=function(a,b,c){var d;return!!c.title||!!c.comment||!!c.priority||!!c.type||0<(null!=(d=c.hotlistId)?d:[]).length||a.hasCustomFieldValue(b)};
E5.prototype.hasCustomFieldValue=function(a){return a.customField?0<a.customField.map(function(b){return new xl(b)}).filter(function(b){return!b.isEmpty()}).length:!1};
E5.prototype.searchAsync=function(a,b,c){var d=this;return(0,B.defer)(function(){return d.relatedIssuesService.get({query:a,nonParallelRequest:!0,sort:"modified_time:desc",count:b,page:null!=c?c:1}).then(function(e){var f,h;return{issues:(null!=(f=e.issueDigests)?f:[]).map(function(k){return{id:k.issueId,title:k.title,href:d.paths.editIssue(k.issueId)}}),numTotalResults:null!=(h=e.numTotalResults)?h:0,viewAllHref:d.paths.listIssues({q:a,s:"modified_time:desc"})}}).catch(function(){return{issues:[],
numTotalResults:0}})})};
E5.prototype.fetchIssues=function(a){if(this.enableDupSearchControl||this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC){var b=a.componentId;var c=a.customFieldMap,d=a.issue;if(SAc(this,c,d)){var e=Wfb(d.title||"");e=0<e.length?"title:("+e.join(" ")+")":"";var f=$k(d.componentId);e=(f?"componentid:"+f:"")+(e?" "+e:"");if(this.enableDupSearchControl)b=e;else if(f=Wfb($k(d.comment)||""),f=0<f.length?"comment:("+f.join(" ")+")":"",e+=f?" "+f:"",this.enableDupSearchA)b=e;else{f=$k(d.type);
var h=$k(d.priority);e=e+(" "+(h?"priority:"+h:""))+(" "+(f?"type:"+f:""));this.enableDupSearchB?b=e:(f=$k(d.hotlistId),f=!f||1>(null==f?void 0:f.length)?"":"hotlistid:("+(f.join(" | ")+")"),e=e+(" "+f)+(" "+TAc(this,c,$k(d.customField))),b=this.enableDupSearchC?e:UAc(b))}}else b=UAc(b);return this.searchAsync(b,a.count,a.page)}return this.searchAsync(UAc(a.componentId),a.count,a.page)};
var UAc=function(a){return"componentid:"+a+" status:open"},TAc=function(a,b,c){return!c||1>(null==c?void 0:c.length)?"":c.map(function(d){return new xl(d)}).filter(function(d){return!d.isEmpty()}).map(function(d){return VAc(a,b,d)}).join(" ")},VAc=function(a,b,c){if(c.isEmpty())return"";var d="customfield"+c.customFieldId+":";switch(a.getCustomFieldType(b,c)){case "TEXT":var e='"'+c.textValue+'"';break;case "DATE":e=WAc(c.dateValue);break;case "ENUM":e='"'+c.enumValue+'"';break;case "NUMERIC":e=""+
c.numericValue;break;case "REPEATED_TEXT":e='("'+c.repeatedTextValue.values.join('" | "')+'")';break;case "REPEATED_DATE":e="("+c.repeatedDateValue.values.map(function(f){return WAc(f)}).join(" | ")+")";break;case "REPEATED_ENUM":e='("'+c.repeatedEnumValue.values.join('" | "')+'")';break;case "REPEATED_NUMERIC":e="("+c.repeatedNumericValue.values.join(" | ")+")"}return e?d+e:""},WAc=function(a){return a?a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2):""};
E5.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=a[b.customFieldId])?void 0:c.type)?d:""};E5.\u0275fac=function(a){return new (a||E5)(n(xE),n(HV),n(D5))};E5.\u0275prov=$c({token:E5,factory:E5.\u0275fac,providedIn:"root"});var Vfb=RegExp("\\w+","g");var F5=function(a,b,c,d){Y.call(this);this.cdr=a;this.analytics=b;this.relatedIssueFetcher=c;this.experimentSupport=d;this.refreshMagicBox=!1;this.refreshMagicBoxChange=new Yu;this.hideHeader=this.showInline=!1;this.issueTitle="";this.issue={};this.customFieldMap={};this.numIssues=5;this.headerChange=new Yu;this.showSuggestedDupes=!1;this.enableSimilarIssues=this.experimentSupport.enableSimilarIssues;this.isRefreshing=!1;this.page=1;this.endIndex=this.startIndex=this.numPages=this.numTotalResults=
0;this.magicBoxIssues=[];this.isInitiallyLoading=!0;this.currentIssueData$=new B.Subject;this.CATEGORIES=xp};W(F5,Y);F5.\u0275dir=Y.\u0275dir;g=F5.prototype;g.ngOnInit=function(){var a=this;this.fetchIssues();this.currentIssueData$.pipe(jf(750),mf(ki),Af(this.destroyed$)).subscribe(function(){a.refresh()})};
g.ngOnChanges=function(a){if(!Object.values(a).some(function(c){return c.isFirstChange()})){var b=!1;a.componentId&&(this.showInline&&(this.showInline=!1),b=!0);a.showInline&&(b=!0);this.enableSimilarIssues&&a.issue&&(this.showSuggestedDupes=SAc(this.relatedIssueFetcher,this.customFieldMap,this.issue),this.headerChange.emit(this.getHeader()),this.currentIssueData$.next({title:this.issue.title,component:this.issue.componentId}));b&&this.refresh()}};
g.refresh=function(){this.isRefreshing=!0;this.page=1;this.magicBoxIssues=[];this.fetchIssues()};
g.fetchIssues=function(a){var b=this;a&&(this.page=a);this.componentId&&(this.isRefreshing=!0,this.relatedIssueFetcher.fetchIssues({issue:this.issue,customFieldMap:this.customFieldMap,count:this.numIssues,page:this.page,componentId:this.componentId}).pipe(Af(this.destroyed$)).subscribe(function(c){var d=c.issues;1===b.page&&(b.magicBoxIssues=[]);b.magicBoxIssues=b.enableSimilarIssues?[].concat(p(b.magicBoxIssues),p(d)):d;d=b.numIssues;b.numTotalResults=c.numTotalResults;b.numPages=Math.ceil(b.numTotalResults/
d);b.startIndex=0===b.numTotalResults?0:((null!=a?a:1)-1)*d+1;b.endIndex=Math.min(b.startIndex+d-1,b.numTotalResults);b.viewAllHref=c.viewAllHref;b.totalText=b.getTotalText(b.numTotalResults,null!=a?a:1,d,1===a);b.isInitiallyLoading=!1;b.isRefreshing=!1;b.cdr.detectChanges()}))};g.getHeader=function(){return this.showSuggestedDupes?"Similar Issues":"Recent Issues"};g.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};g.triggerSimilarIssuesSurvey=function(){this.experimentSupport.triggerSimilarIssuesSurvey().pipe(Af(this.destroyed$)).subscribe()};
g.trackTitleHoverOver=function(){this.experimentSupport.trackTitleHoverOver()};g.trackTitleClick=function(){this.experimentSupport.trackTitleClick()};g.getGroupName=function(){return this.experimentSupport.getGroupName()};F5.\u0275fac=function(a){return new (a||F5)(z(yD,2),z(zH),z(E5),z(D5))};
F5.\u0275cmp=od({type:F5,selectors:[["b-magic-box"]],inputs:{componentId:"componentId",refreshMagicBox:"refreshMagicBox",showInline:"showInline",hideHeader:"hideHeader",issueTitle:"issueTitle",issue:"issue",customFieldMap:"customFieldMap",numIssues:"numIssues"},outputs:{refreshMagicBoxChange:"refreshMagicBoxChange",headerChange:"headerChange"},features:[lg([HV,yD]),Jf,Fd],decls:3,vars:1,consts:[["class","bv2-magic-box",4,"ngIf"],["afterLoaded",""],[1,"bv2-magic-box"],[4,"ngIf","ngIfElse"],[4,"ngIf"],
["class","magic-box-text",4,"ngIf"],["class","magic-box-more",4,"ngIf"],["class","magic-box-load",4,"ngIf"],["class","magic-box-all",4,"ngIf"],["class","magic-box-pager",4,"ngIf"],["class","unstyled feedback-button","type","button","matTooltip","Send feedback for the suggested similar issues",3,"click",4,"ngIf"],[1,"magic-box-pager"],["class","magic-box-pagenums",4,"ngIf"],["format","icon","size","large","tooltip","Previous page","b-aria-label","Previous page",1,"left","compact",3,"disabled","onAction"],
["name","arrow-left","size","large"],["format","icon","size","large","tooltip","Next page","b-aria-label","Next page",1,"right","compact",3,"disabled","onAction"],["name","arrow-right","size","large"],[1,"magic-box-pagenums"],["type","button","matTooltip","Send feedback for the suggested similar issues",1,"unstyled","feedback-button",3,"click"],["svgIcon","feedback-outline",1,"icon-s","gfx-muted"],[1,"magic-box-text"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["issueHovercard","onedevHovercard"],
[3,"onedevIsHovercardReady","issueId","location","init",4,"onedevHovercardLazyBody"],["target","_blank",1,"magic-box-title",3,"href","onedevHovercardTrigger","click"],[3,"onedevIsHovercardReady","issueId","location","init"],["cardBody",""],[1,"magic-box-more"],["target","_blank",3,"href"],[1,"magic-box-load"],["mat-button","",1,"gmat-button",3,"click"],["svgIcon","arrow-down"],[1,"magic-box-all"],["mat-button","",1,"gmat-button","primary","hovercard-action",3,"click"],["svgIcon","pop-out"]],template:function(a,
b){a&1&&(P(0,Yfb,2,2,"div",0),P(1,mgb,9,8,"ng-template",null,1,Eg));a&2&&C("ngIf",b.componentId)},dependencies:[bJ,bD,MJ,Cv,Dv,Ev,qA,EV,PJ,QJ,UJ,RJ,Ez],styles:[".bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:28px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-clickable[_ngcontent-%COMP%]{cursor:pointer}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item[_ngcontent-%COMP%]{padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);color:#5f6368;color:var(--text-muted);padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]{display:none}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]{position:absolute;right:10px;top:5px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%]{float:left;margin-right:10px;margin-top:5px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{min-width:34px;padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]{position:absolute;right:10px;top:12px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .magic-box-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-bottom:15px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%]{border-bottom:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-load[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding-left:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-all[_ngcontent-%COMP%]{float:right}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-all[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:3px}.jfk-bubble[_ngcontent-%COMP%]{left:12px;margin:0;padding:15px 20px 15px 15px}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]{display:block}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   .magic-box-header[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin:0}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   .magic-box-scroll[_ngcontent-%COMP%]{max-height:200px;overflow-y:scroll}.d-cozy[_ngcontent-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:24px}.d-compact[_ngcontent-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:20px}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:disc}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%]{margin-top:8px}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);padding:0}/*# sourceMappingURL=magic-box.css.map */"]});var XAc=["popOver"],ogb=function(a){return{$implicit:a}},wgb=function(a){return{editingValue:a}},G5=function(a){this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.fitPopoverToViewport=!1;this.valueChange=new Yu;this.editorOpen=new Yu;this.required=this.editing=this.headerFocused=!1;this.editingValue=new nw("",{nonNullable:!0});this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=
!0};W(G5,hM);g=G5.prototype;g.ngOnInit=function(){};g.valueChanged=function(){return this.editingValue.value!==this.value};g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value),this.popOver.open(),this.editorOpen.emit({isOpen:!0}))};g.stopEditing=function(a){this.editing=!1;0===a&&(this.onChange(this.editingValue.value),this.value=this.editingValue.value,this.valueChange.emit(this.value));this.editorOpen.emit({isOpen:!1,closeAction:a})};
g.writeValue=function(a){null!=a&&(this.val=a,this.editing||this.editingValue.setValue(a))};g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};Qh.Object.defineProperties(G5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});
G5.\u0275fac=function(a){return new (a||G5)(Ud("required"))};
G5.\u0275cmp=od({type:G5,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&zg(XAc,7);if(a&2){var c;yg(c=Bg())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",editorTemplate:"editorTemplate",hasBackdrop:"hasBackdrop",fitPopoverToViewport:"fitPopoverToViewport"},
outputs:{valueChange:"valueChange",editorOpen:"editorOpen"},features:[lg([{provide:Uv,useExisting:fd(function(){return G5}),multi:!0},{provide:hM,useExisting:fd(function(){return G5}),multi:!0}]),Jf],decls:11,vars:9,consts:[[3,"click","focus","blur"],["anchor",""],[4,"ngIf","ngIfElse"],["standardValueDisplay",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"centered",4,"ngIf"],[3,"anchor","editorTemplate","newlineWithEnterKey","hasBackdrop","fitToViewport","closedWithAction"],
["popOver","onedevPopOverEditPanel"],["inputTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],[4,"ngIf"],[1,"textarea-wrapper"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",
3,"formControl","cdkAutosizeMaxRows",4,"ngIf","ngIfElse"],["singleLineTemplate",""],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","cdkAutosizeMaxRows"],["spellcheck","false","autocomplete","off",3,"formControl"]],template:function(a,b){a&1&&(D(0,"button",0,1),L("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),D(2,"span"),P(3,pgb,2,4,"ng-container",
2),P(4,qgb,1,1,"ng-template",null,3,Eg),F(),P(6,rgb,2,2,"svg",4),F(),D(7,"onedev-pop-over-edit-panel",5,6),L("closedWithAction",function(f){return b.stopEditing(f)}),F(),P(9,ygb,2,2,"ng-template",null,7,Eg));if(a&2){var c=N(1),d=N(5),e=N(10);Nf("aria-labelledby",b.labelledById);w(3);C("ngIf",b.valueTemplate)("ngIfElse",d);w(3);C("ngIf",!b.disabled);w(1);C("anchor",c)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)("fitToViewport",b.fitPopoverToViewport)}},
dependencies:[Ev,Jv,Tg,hw,aA,xY,uw],styles:["button[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start;text-align:left;white-space:pre-line}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor;margin-top:1px}.edit-icon.centered[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;margin-top:0}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px;-moz-box-sizing:content-box;box-sizing:content-box;width:calc(100% - 10px)}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}"]});var YAc=qh("indicatorRotate",[th("collapsed, void",sh({transform:"rotate(0deg)"})),th("expanded",sh({transform:"rotate(180deg)"})),uh("expanded <=> collapsed, void => collapsed",rh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),ZAc=qh("bodyExpansion",[th("collapsed, void",sh({height:"0px",visibility:"hidden"})),th("expanded",sh({height:"*",visibility:""})),uh("expanded <=> collapsed, void => collapsed",rh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]);var $Ac=new Ad("CdkAccordion");var aBc=0,H5=function(a,b,c){var d=this;this.accordion=a;this._changeDetectorRef=b;this._expansionDispatcher=c;this._openCloseAllSubscription=B.Subscription.EMPTY;this.closed=new Yu;this.opened=new Yu;this.destroyed=new Yu;this.expandedChange=new Yu;this.id="cdk-accordion-child-"+aBc++;this._disabled=this._expanded=!1;this._removeUniqueSelectionListener=function(){};this._removeUniqueSelectionListener=c.listen(function(e,f){d.accordion&&!d.accordion.multi&&d.accordion.id===f&&d.id!==e&&(d.expanded=
!1)});this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())};g=H5.prototype;g.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};g.toggle=function(){this.disabled||(this.expanded=!this.expanded)};g.close=function(){this.disabled||(this.expanded=!1)};g.open=function(){this.disabled||(this.expanded=!0)};
g._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
Qh.Object.defineProperties(H5.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(a){a=ah(a);this._expanded!==a&&(this._expanded=a,this.expandedChange.emit(a),a?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=ah(a)}}});
H5.\u0275fac=function(a){return new (a||H5)(z($Ac,12),z(xv),z(Cy))};H5.\u0275dir=sd({type:H5,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[lg([{provide:$Ac,useValue:void 0}])]});var I5=function(){};I5.\u0275fac=function(a){return new (a||I5)};I5.\u0275mod=qd({type:I5});I5.\u0275inj=ad({});var bBc=new Ad("MAT_ACCORDION");var cBc=new Ad("MAT_EXPANSION_PANEL");var J5=function(a,b){this._template=a;this._expansionPanel=b};J5.\u0275fac=function(a){return new (a||J5)(z(vg),z(cBc,8))};J5.\u0275dir=sd({type:J5,selectors:[["ng-template","matExpansionPanelContent",""]]});var dBc=["body"],eBc=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],fBc=0,gBc=new Ad("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),K5=function(a,b,c,d,e,f,h){H5.call(this,a,b,c);var k=this;this._viewContainerRef=d;this._animationMode=f;this._hideToggle=!1;this.afterExpand=new Yu;this.afterCollapse=new Yu;this._inputChanges=new B.Subject;this._headerId="mat-expansion-panel-header-"+fBc++;this._bodyAnimationDone=new B.Subject;this.accordion=a;this._document=e;this._bodyAnimationDone.pipe(mf(function(q,
u){return q.fromState===u.fromState&&q.toState===u.toState})).subscribe(function(q){"void"!==q.fromState&&("expanded"===q.toState?k.afterExpand.emit():"collapsed"===q.toState&&k.afterCollapse.emit())});h&&(this.hideToggle=h.hideToggle)};W(K5,H5);K5.\u0275dir=H5.\u0275dir;g=K5.prototype;g._hasSpacing=function(){return this.accordion?this.expanded&&"default"===this.accordion.displayMode:!1};g._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};
g.toggle=function(){this.expanded=!this.expanded};g.close=function(){this.expanded=!1};g.open=function(){this.expanded=!0};g.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(yf(null),cf(function(){return a.expanded&&!a._portal}),nf()).subscribe(function(){a._portal=new Tw(a._lazyContent._template,a._viewContainerRef)})};g.ngOnChanges=function(a){this._inputChanges.next(a)};
g.ngOnDestroy=function(){H5.prototype.ngOnDestroy.call(this);this._bodyAnimationDone.complete();this._inputChanges.complete()};g._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
Qh.Object.defineProperties(K5.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=ah(a)}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});K5.\u0275fac=function(a){return new (a||K5)(z(bBc,12),z(xv),z(Cy),z(wg),z(Oh),z(iu,8),z(gBc,8))};
K5.\u0275cmp=od({type:K5,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&Ag(c,J5,5);if(a&2){var d;yg(d=Bg())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&zg(dBc,5);if(a&2){var c;yg(c=Bg())&&(b._body=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(a,b){a&2&&Xf("mat-expanded",b.expanded)("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",
hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[lg([{provide:bBc,useValue:void 0},{provide:cBc,useExisting:K5}]),Jf,Fd],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],
template:function(a,b){a&1&&(eg(eBc),fg(0),D(1,"div",0,1),L("@bodyExpansion.done",function(c){return b._bodyAnimationDone.next(c)}),D(3,"div",2),fg(4,1),P(5,zgb,0,0,"ng-template",3),F(),fg(6,2),F());a&2&&(w(1),C("@bodyExpansion",b._getExpandedState())("id",b.id),Nf("aria-labelledby",b._headerId),w(4),C("cdkPortalOutlet",b._portal))},dependencies:[Xw],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],
encapsulation:2,data:{animation:[ZAc]},changeDetection:0});var hBc=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],iBc=Vh(function(){}),L5=function(a,b,c,d,e,f,h){var k=iBc.call(this)||this;k.panel=a;k._element=b;k._focusMonitor=c;k._changeDetectorRef=d;k._animationMode=f;k._parentChangeSubscription=B.Subscription.EMPTY;var q=a.accordion?a.accordion._stateChanges.pipe(cf(function(u){return!(!u.hideToggle&&!u.togglePosition)})):B.EMPTY;k.tabIndex=parseInt(h||"")||0;k._parentChangeSubscription=(0,B.merge)(a.opened,a.closed,q,a._inputChanges.pipe(cf(function(u){return!!(u.hideToggle||
u.disabled||u.togglePosition)}))).subscribe(function(){return k._changeDetectorRef.markForCheck()});a.closed.pipe(cf(function(){return a._containsFocus()})).subscribe(function(){return Pw(c,b,"program")});e&&(k.expandedHeight=e.expandedHeight,k.collapsedHeight=e.collapsedHeight);return k};W(L5,iBc);g=L5.prototype;g._toggle=function(){this.disabled||this.panel.toggle()};g._isExpanded=function(){return this.panel.expanded};g._getExpandedState=function(){return this.panel._getExpandedState()};
g._getPanelId=function(){return this.panel.id};g._getTogglePosition=function(){return this.panel.togglePosition};g._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};g._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};g._keydown=function(a){switch(a.keyCode){case 32:case 13:eh(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};
g.focus=function(a,b){a?Pw(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};g.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};Qh.Object.defineProperties(L5.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});
L5.\u0275fac=function(a){return new (a||L5)(z(K5,1),z(ae),z(Ow),z(xv),z(gBc,8),z(iu,8),Ud("tabindex"))};
L5.\u0275cmp=od({type:L5,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&L("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(Nf("id",b.panel._headerId)("tabindex",b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),Wf("height",b._getHeaderHeight()),Xf("mat-expanded",b.panel.expanded)("mat-expansion-toggle-indicator-after",
"after"===b.panel.togglePosition)("mat-expansion-toggle-indicator-before","before"===b.panel.togglePosition)("_mat-animation-noopable","NoopAnimations"===b._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Jf],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(a,b){a&1&&(eg(hBc),
D(0,"span",0),fg(1),fg(2,1),fg(3,2),F(),P(4,Agb,1,1,"span",1));a&2&&(Xf("mat-content-hide-toggle",!b._showToggle()),w(4),C("ngIf",b._showToggle()))},dependencies:[Ev],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],
encapsulation:2,data:{animation:[YAc]},changeDetection:0});var M5=function(){};M5.\u0275fac=function(a){return new (a||M5)};M5.\u0275dir=sd({type:M5,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var N5=function(){};N5.\u0275fac=function(a){return new (a||N5)};N5.\u0275mod=qd({type:N5});N5.\u0275inj=ad({imports:[Sv,Ty,I5,Yw]});var jBc=["descriptionConfirmDialog"],Cgb=function(a,b){return{partner:a,"public":b}},Ghb=function(a){return{required:a}},Nhb=function(a){return{"bv2-upload-ongoing":a}},kBc=function(a){return{submitted:a}},lBc=new Ad("titleBannedWordsChecker"),mBc=new Ad("descriptionBannedWordsChecker"),O5=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,$a,ja,ya,Ha,ab,Ra,Jc,Ua,mb,Qa,Ab,db,Gb){Y.call(this);var Lb=this;this.ngZone=a;this.$log=b;this.reloadService=c;this.paths=d;this.redirectUrl=
e;this.userAccess=f;this.accessPolicy=h;this.bLocation=k;this.appHistory=q;this.issueTemplate=u;this.issueTypeDialog=x;this.componentActions=y;this.activeSession=E;this.draftStore=H;this.pageTitle=J;this.analytics=O;this.issueApi=R;this.userApi=U;this.hotlistApi=Z;this.butterBar=na;this.errorHandler=oa;this.matDialogService=wa;this.appEvents=Da;this.userPreferencesManager=Vb;this.cdr=ya;this.confirmationDialogService=Ha;this.issueRelationshipsFridge=ab;this.issueFridge=Ra;this.componentFridge=Jc;
this.clearcut=Ua;this.currentTracker=mb;this.jspbPrincipalTypes=Qa;this.trackerFridge=Ab;this.titleBannedWordsChecker=db;this.descriptionBannedWordsChecker=Gb;this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=
this.activeSession.isExternalSession();this.enableRecaptcha=$C(this.activeSession,"enableRecaptcha");this.hotlistMap={};this.hotlists=[];this.templateTitle=this.templateComment="";this.appliedTemplate=null;this.componentPickerTouched=this.isLoadingComponent=!1;this.availablePredefinedTemplates=[];this.preferredTemplateId=this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.showRecentIssuesInline=!0;this.isNavigatingAway=this.isSaving=this.submitRequested=!1;this.selectedHotlists=
[];this.componentHasExpandedAccessEnabled=this.canViewIssuesInComponent=this.canEditIssuesInComponent=this.createAclLoading=this.canCreateNewIssuesInComponent=this.newIssueStarted=!1;this.customFieldMap={};this.customFieldAllowedValuesMap={};this.verifierText=this.reporterText=this.assigneeText=null;this.ccsText=[];this.collaboratorsText=[];this.collaboratorGroupsText=[];this.magicBoxHeader="Recent Issues";this.selectedComponent=null;this.selectedAccessLimitLevel="LIMIT_NONE";this.useCodefont=!1;
this.selectedHotlistIds=[[]];this.isFormatInRoute=!1;this.isCollaboratorsValid=this.isChildIssueIdsValid=this.isParentIssueIdsValid=this.isBlockingIssueIdValid=this.isBlockedByIssueIdValid=!0;this.invalidCollaboratorsInput=[];this.startTime=new Date;this.recaptchaResponse="";this.toIssueSeverity=vpa;this.FieldType=Zac;this.initialized=!1;this.trackerComponent$=this.currentTracker.tracker$.pipe(zf(function(Rb){return Rb?Lb.componentFridge.watch(Number(Rb.componentId)).pipe(yf(void 0)):(0,B.of)(void 0)}));
this.trackerId$=new B.BehaviorSubject("");this.tracker$=this.trackerId$.pipe(zf(function(Rb){return xn(Rb)?(0,B.of)(void 0):Lb.trackerFridge.watch(Rb)}));this.trackerCollaboratorGroups=[];this.selectedCollaboratorGroups=new Set;this.getSingleEditFieldType=rLa;this.getListFieldType=TMa;this.fetchUserHotlists();this.subscriptions.add(this.tracker$.subscribe(function(Rb){Lb.updateCollaboratorGroups(Rb)}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){Lb.fetchUserHotlists()}));
this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){Lb.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){Lb.fetchUserHotlists()}));this.enableCreateIssueWithTemplate=$C(E,"enableCreateIssueWithTemplate");this.enableQuickAddCollaborators=$C(E,"enableQuickAddCollaborators");this.frontendIsInternalOrPartner=E.isInternalSession()||$Tb(E);this.priorityChoices=ja.priorities.map(function(Rb){return{value:Rb,displayText:Rb}});this.severityChoices=
ja.severities.map(function(Rb){return{value:Rb,displayText:Rb}});this.issueTypeChoices=ja.editIssueTypes.map(function(Rb){return{value:Rb,displayText:wpa(Rb),altText:ja.issueTypesShortDescriptions.get(Rb)}});this.urlTemplate=new Jpc(Ga,b);this.piiWarningMessage=E.isInternalSession()?"Please be sure you don't include sensitive information/data (PII, SPII, and other sensitive user data) in unrestricted issues (either in text or through attachments). If you do need to include sensitive information, please be sure to link to a secure doc (e.g. a drive file with proper sharing settings) and share only with those that have a business need for access. Please see http://go/buganizerpuppy.":
void 0;this.descriptionBoxId="bv2-description";this.componentAutocomplete=Ga.componentAutocomplete;this.componentRequestedInUrl=Ga.component;this.templateIssueRequestedInUrl=Ga.template_issue;Ga.template&&(a=Number(Ga.template))&&(this.preferredTemplateId=a);if(a=Ga.parentIssueId)this.parentIssueIds=Array.isArray(a)?a:[a];if(a=Ga.childrenIssueIds)this.childrenIssueIds=Array.isArray(a)?a:[a];if(a=Ga.afterIssueId)this.afterIssueId=Array.isArray(a)?a[0]:a;this.issue=li(Thb);Rhb(this.issue,this);this.audience=
"EXTERNAL_AUDIENCE";Ga.description?this.comment=new $N(Ga.description,!0):(a=this.draftStore.$window.sessionStorage.getItem(no("0"))||"",this.comment=new $N(a));this.comment.formattingMode=nBc(this);a=oBc(Ga);this.isFormatInRoute=null!=a;a&&(this.comment.formattingMode=a);this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.subscriptions.add(Vb.preferences$.subscribe(function(Rb){var Cc;Lb.useCodefont=null!=(Cc=Rb.useCodefont)?Cc:Lb.useCodefont}));this.hasAdvancedFieldsInUrlTemplate=
Lpc(this.urlTemplate)||!!this.parentIssueIds||!!this.childrenIssueIds;this.subscriptions.add(rE(Ub,{title:"Create Issue Page",hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var Rb;null==(Rb=Lb.hotlistPicker)||Rb.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){Lb.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,pBc(this,Number(this.componentRequestedInUrl))):this.componentAutocomplete?qBc(this,this.componentAutocomplete):
(Qpc(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&(this.newIssueStarted=!0,rBc(this));this.originalIssueCopy=li(this.issue);Ga.description&&(this.originalIssueCopy.comment=this.comment.value,this.issue.comment=this.comment.value);this.isFormatInRoute&&(this.issue.formattingMode=this.comment.formattingMode,this.originalIssueCopy.formattingMode=this.issue.formattingMode);this.pageTitle.setTitle("New issue");this.createRestrictedResourcesComponentWhitelist=
E.getCreateRestrictedSubresourcesComponentWhitelist();this.subscriptions.add(VW($a,function(){return Lb.hasUnsavedChanges()},!1))};W(O5,Y);O5.\u0275dir=Y.\u0275dir;O5.prototype.isCaptchaValid=function(){return!this.enableRecaptcha||""!==this.recaptchaResponse};var Ohb=function(a){return a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent||!a.isCaptchaValid()||!1};O5.prototype.ngOnDestroy=function(){Y.prototype.ngOnDestroy.call(this);sBc(this)};
O5.prototype.ngOnInit=function(){var a=this;this.initialized=!0;this.subscriptions.add(this.trackerComponent$.subscribe(function(b){b&&(a.selectedComponent||a.componentRequestedInUrl||a.templateIssueRequestedInUrl||a.preferredTemplateId||tBc(a,b))}))};O5.prototype.unloadPageHandler=function(){sBc(this)};var P5=function(a){a.initialized&&a.ngZone.run(function(){a.cdr.detectChanges()})};O5.prototype.back=function(){V_(this.appHistory)};
O5.prototype.onAccessLimitLevelSelected=function(a){this.selectedAccessLimitLevel=a};
var tBc=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,uBc(a),a.audience=op(a.selectedComponent)?"EXTERNAL_AUDIENCE":"INTERNAL_AUDIENCE",a.trackerId$.next(a.selectedComponent.trackerId||""),a.createRestrictedResourcesComponentWhitelist.includes(a.selectedComponent.componentId)?a.judgementForNewContent={severity:"PII",judgementReason:"None Specified"}:
a.judgementForNewContent=void 0):(yc(a.issue,"componentId"),a.audience="EXTERNAL_AUDIENCE");a.submitRequested=!1;vBc(a);a.selectedComponentProcessedPromise=Promise.all([wBc(a),xBc(a)]).then(function(){});return a.selectedComponentProcessedPromise},yBc=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},Fgb=function(a){return OQa(a.selectedComponent)?"External Google partners may be able to see this issue.":
pp(a.selectedComponent)?"Public users may be able to see this issue.":""};O5.prototype.getCollaboratorGroupsString=function(){return 0===this.collaboratorGroupsText.length?"":1<this.collaboratorGroupsText.length?this.collaboratorGroupsText.length+" groups selected":this.collaboratorGroupsText[0]};O5.prototype.updateCollaboratorGroups=function(a){a&&a.collaboratorGroups&&(this.trackerCollaboratorGroups=wi(a.collaboratorGroups),this.separateCollaboratorGroups())};
O5.prototype.separateCollaboratorGroups=function(){for(var a=[],b=new Set(this.trackerCollaboratorGroups),c=l(this.collaboratorsText),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)?this.selectedCollaboratorGroups.add(d):a.push(d);this.collaboratorsText=a;this.collaboratorGroupsText=[].concat(p(this.selectedCollaboratorGroups));if(0<this.collaboratorGroupsText.length&&!pp(this.selectedComponent)){var e;null==(e=this.advancedFieldsZippy)||e.open()}};
var rBc=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?a.butterBar.showWarning("Invalid template_issue specified"):(a.availableExistingIssueTemplate=new zBc(b,"issue","Issue "+b,!1),a.selectedTemplate=a.availableExistingIssueTemplate)},wBc=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(a.selectedTemplate=null);return a.selectedComponent?a.issueTemplate.templatesApi.query(a.selectedComponent.componentId).then(function(b){a.availablePredefinedTemplates=
b.map(function(e){var f=e.name;Oi(Ni(f))&&(f=e.default?"(default template)":"(unnamed template)");return new zBc(e.templateId,"predefined",f,e.default)});if(a.preferredTemplateId&&!a.selectedTemplate){var c=a.preferredTemplateId;if(b=a.availablePredefinedTemplates.find(function(e){return e.id===c}))a.selectedTemplate=b,a.preferredTemplateId=null}if(!a.selectedTemplate){b=l(a.availablePredefinedTemplates);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.isDefault){a.selectedTemplate=d;break}}0<
a.availablePredefinedTemplates.length&&!a.selectedTemplate&&(a.selectedTemplate=a.availablePredefinedTemplates[0]);P5(a)}).catch(function(){a.butterBar.showWarning("Unable to load templates for this component")}):Promise.resolve(void 0)},xBc=function(a){if(!a.selectedComponent)return a.canCreateNewIssuesInComponent=!1,a.canEditIssuesInComponent=!1,Promise.resolve(void 0);var b=a.selectedComponent.componentId,c="components/"+b+"/issueDefaults";a.createAclLoading=!0;a.canCreateNewIssuesInComponent=
!1;a.canEditIssuesInComponent=!1;a.canViewIssuesInComponent=!1;a.componentHasExpandedAccessEnabled=!1;var d=uG(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;P5(a)}),e=uG(a.userAccess,"writer",c).then(function(f){a.canEditIssuesInComponent=f;P5(a)});c=uG(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;P5(a)});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=f;P5(a)});return Promise.all([d,
e,c,b]).then(function(){ABc(a);P5(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})};
O5.prototype.getIssueTemplate=function(){var a=this;if(this.selectedTemplate){var b=function(c){var d=Object.assign(li(Thb),c.snapshot);a.selectedComponent&&(d.componentId=a.selectedComponent.componentId);var e=li(d);yBc(a);Shb(a,a.issue);var f=li(a.issue);if(a.appliedTemplate)for(var h=l(Object.keys(a.appliedTemplate)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a.appliedTemplate[k];if(Array.isArray(q)&&Array.isArray(f[k])){q=l(q);for(var u=q.next();!u.done;u=q.next())Fpa(f[k],u.value)}else ki(q,
f[k])&&delete f[k]}a.appliedTemplate=e;Uhb(d,f);f=e.comment||"";a.comment.value!==a.templateComment&&(N4b(a.comment)||""===f||a.comment.value===f||(a.templateComment=f,BBc(a,a.comment.value)),d.comment=a.comment.value,d.formattingMode=e.formattingMode);a.templateComment=f;var x;a.templateCommentFormattingMode=null!=(x=e.formattingMode)?x:void 0;a.templateTitle=e.title||"";d.reporterUser=Di(a.userEmail);a.selectedAccessLimitLevel=d.issueAccessLimitLevel||"LIMIT_NONE";a.issue=d;Rhb(a.issue,a);ABc(a);
yBc(a);Shb(a,a.issue);a.comment.value=a.issue.comment||"";a.issue.comment&&a.issue.formattingMode&&(a.comment.formattingMode=a.issue.formattingMode);Qpc(a.urlTemplate,a.issue,a.customFieldMap);Rhb(a.issue,a);a.originalIssueCopy=li(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=li(a.issue.hotlistId);P5(a)});CBc(a);a.selectedCollaboratorGroups.clear();a.separateCollaboratorGroups();return a.selectedComponent?null:c.snapshot.componentId};
"predefined"===this.selectedTemplate.type&&this.selectedComponent?this.issueTemplate.templatesApi.getIssueTemplate(this.selectedComponent.componentId,this.selectedTemplate.id).then(b).then(function(){P5(a)}):"issue"===this.selectedTemplate.type&&(wYb(this.issueTemplate,String(this.selectedTemplate.id)).then(function(c){if(a.currentTracker.inTracker&&a.currentTracker.getTrackerId()!==c.trackerId)throw Error("Re");return b(c)}).then(function(c){c&&(pBc(a,c),P5(a))}).catch(function(c){a.butterBar.showWarning(c.message)}),
(0,B.firstValueFrom)(this.issueFridge.watch(String(this.selectedTemplate.id))).then(function(c){var d;null!=(d=a.parentIssueIds)&&d.length||(a.parentIssueIds=null==c?void 0:c.parentIssueIds)}));this.selectedTemplate.id!==this.preferredTemplateId&&this.analytics.trackEvent(xp.CREATE_ISSUE,"changeTemplate");vBc(this)}};
O5.prototype.isValid=function(){return!(0!==Hgb(this).length||0!==Igb(this).length)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!Ogb(this.comment)&&!0};
var Hgb=function(a){var b=a.issue;a=a.canEditIssuesInComponent?["componentId","priority","type","title"]:["componentId","title"];a=a.filter(function(c){return!b[c]});return a.map(function(c){return"componentId"===c?"component":c})},Igb=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&(new xl(b)).isEmpty()}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},DBc=function(a){return 0===a.collaboratorsText.length?Promise.resolve(!0):
xUb(a.jspbPrincipalTypes,a.collaboratorsText,!1).then(function(b){a.invalidCollaboratorsInput=Object.entries(b).filter(function(c){c=l(c);c.next();c=c.next().value;return"USER"!==(null==c?void 0:c.principalType)}).map(function(c){return l(c).next().value});return 0===a.invalidCollaboratorsInput.length}).catch(function(b){a.butterBar.showWarning(b.message);return!1})},shb=function(a,b){return b.split(a.ISSUE_ID_LIST_DELIMITER).map(function(c){return c.trim()}).map(function(c){return c.startsWith("b/")?
c.slice(2):c}).filter(Boolean)},ghb=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},ks=function(a){return a?a.join(", "):""},CBc=function(a){if(pca(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;null==(b=a.advancedFieldsZippy)||b.open()}};g=O5.prototype;g.getCustomFieldType=function(a){var b,c;return null!=(c=null==(b=this.customFieldMap[a.customFieldId])?void 0:b.type)?c:""};
g.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};g.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};g.getCustomFieldValue=function(a){return(new xl(a)).getValue()};g.getDateValue=function(a){return a};
g.setCustomFieldValue=function(a,b){var c=this.getCustomFieldType(a),d=this.issue.customField.map(function(e){if(e.customFieldId===a.customFieldId)switch(c){case "TEXT":e.textValue=b;break;case "DATE":e.dateValue=b;break;case "ENUM":e.enumValue=b;break;case "NUMERIC":e.numericValue=b;break;case "REPEATED_TEXT":e.repeatedTextValue={values:b};break;case "REPEATED_DATE":e.repeatedDateValue={values:b};break;case "REPEATED_ENUM":e.repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":e.repeatedNumericValue=
{values:b}}return e});this.analytics.trackEvent(xp.CREATE_ISSUE,"changeCustomField",c);this.issue=Object.assign({},this.issue,{customField:d})};g.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};g.getListFieldValues=function(a){var b,c;return null!=(c=null==(b=(new xl(a)).getValue())?void 0:b.values)?c:null};
g.saveCommentDraft=function(){this.descriptionBannedWordsChecker.reset();var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.setDraft("0",a);this.issue=Object.assign({},this.issue,{comment:a})};
g.handleHotlistPickerSave=function(a){var b=[];a=l(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;(d=d.next().value)&&b.push(Number(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();this.analytics.trackEvent(xp.CREATE_ISSUE,"changeHotlists")};g.removeHotlist=function(a){var b;za(null!=(b=this.issue.hotlistId)?b:null,a);this.updateSelectedHotlists()};
g.setTitle=function(a){this.titleBannedWordsChecker.reset();this.issue=Object.assign({},this.issue,{title:a})};g.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:tpa(a)});var b;this.analytics.trackEvent(xp.CREATE_ISSUE,"changePriority",null!=(b=this.issue.priority)?b:void 0)};
var ls=function(a,b){a.selectedCollaboratorGroups.has(b)?a.selectedCollaboratorGroups.delete(b):a.selectedCollaboratorGroups.add(b);a.collaboratorGroupsText=[].concat(p(a.selectedCollaboratorGroups))},bhb=function(a,b){a.issue=Object.assign({},a.issue,{type:upa(b)});var c;a.analytics.trackEvent(xp.CREATE_ISSUE,"changeType",null!=(c=a.issue.type)?c:void 0)};
O5.prototype.updateSelectedHotlists=function(){var a=this;this.selectedHotlistIds=[this.issue.hotlistId];this.selectedHotlists=this.hotlists.filter(function(b){return a.issue.hotlistId.includes(b.hotlistId)});Ka(this.selectedHotlists,function(b,c){return oq(b.name,c.name)})};
var EBc=function(a,b){var c,d,e,f,h,k,q,u,x,y,E;return Ne(function(H){switch(H.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){H.jumpTo(2);break}e=[];return 1===d.length?H.yield(a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):H.yield(oZb(a.issueRelationshipsFridge,c,d),5);case 5:h=H.yieldResult;e=h.notAdded;f=h.errors;H.jumpTo(4);break;case 6:k=H.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&a.butterBar.showWarning("Unable to add "+
e+" as parent(s). "+f);case 2:q=a.childrenIssueIds;if(null==(u=q)||!u.length){H.jumpTo(7);break}return H.yield(a.issueRelationshipsFridge.assignParentToIssues(c,q.map(function(J){return{issueId:J}})),8);case 8:x=H.yieldResult,y=x.notAdded,E=x.errors,y.length&&a.butterBar.showWarning("Unable to add "+y+" as children. "+E);case 7:return H.return(b)}})},FBc=function(a,b){var c=a.activeSession.getUserEmail(),d;a=(null==(d=b.assigneeUser)?void 0:d.emailAddress)===c;var e;d=(null==(e=b.verifierUser)?void 0:
e.emailAddress)===c;var f;e=!(null==(f=b.collaboratorsUsers)||!f.some(function(k){return k.emailAddress===c}));var h;b=!(null==(h=b.ccUsers)||!h.some(function(k){return k.emailAddress===c}));return!a&&!d&&!e&&!b},GBc=function(a,b,c,d){a.confirmationDialogService.open({title:b,content:Uo(c),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}})},HBc=function(a,b){return new Promise(function(c){a.canEditIssuesInComponent||c(!0);var d;if(d="LIMIT_VIEW"===b.issueAccessLimitLevel){var e;d=!(null==(e=
b.assigneeUser)||!e.emailAddress);var f;e=!(null==(f=b.verifierUser)||!f.emailAddress);var h;f=!(null==(h=b.collaboratorsUsers)||!h.length);var k;h=!(null==(k=b.ccUsers)||!k.length);d=!d&&!e&&!f&&!h}d?GBc(a,"Issue will be orphaned","No one will be able to access this issue due to the Issue Access Limit that you have set, and the lack of any listed user on the issue. We strongly recommend maintaining at least one user with access. Are you sure you still want to proceed?",c):"LIMIT_VIEW"===b.issueAccessLimitLevel&&
FBc(a,b)?GBc(a,"You will lose access","You will not be able to access this issue because you are not listed on the issue and have set a restrictive Issue Access Level. Are you sure you want to proceed?",c):c(!0)})},Lhb=function(a,b,c){var d,e,f,h,k,q,u,x,y,E,H,J,O,R;return Ne(function(U){switch(U.nextAddress){case 1:return U.yield(DBc(a),2);case 2:a.isCollaboratorsValid=U.yieldResult;d=a.issue;a.submitRequested=!0;if(!a.isValid()){if(e=document.querySelector(".bv2-view"))e.scrollTop=0;return U.return()}d.issueAccessLimitLevel=
a.selectedAccessLimitLevel;d.issueAccessLimitLevel&&"LIMIT_NONE"!==d.issueAccessLimitLevel&&a.analytics.trackEvent(xp.ISSUE_ACCESS_LIMITS,"create","create_issue:"+d.issueAccessLimitLevel);d.comment=a.comment.value;d.formattingMode=a.comment.formattingMode;f={snapshot:d,attachments:a.comment.getAttachments()};a.enableRecaptcha&&(f.recaptchaToken=a.recaptchaResponse);a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(f.templateId=a.selectedTemplate.id);a.judgementForNewContent&&"NONE_DETECTED"!==
a.judgementForNewContent.severity&&(f.contentJudgement=a.judgementForNewContent);a.canEditIssuesInComponent||(h={title:f.snapshot.title,componentId:f.snapshot.componentId,comment:f.snapshot.comment,formattingMode:f.snapshot.formattingMode,cc:!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||a.enableCreateIssueWithTemplate?[]:[a.userEmail]},f.snapshot=h);f.snapshot=wc(f.snapshot,function(Z){return"string"!==typeof Z||!Oi(Z)});f.snapshot.customField&&(f.snapshot.customField=f.snapshot.customField.filter(function(Z){return!(new xl(Z)).isEmpty()}));
Shb(a,f.snapshot);0<a.collaboratorGroupsText.length&&(f.snapshot.collaboratorsUsers=$pa(a.collaboratorGroupsText).concat(f.snapshot.collaboratorsUsers||[]));f.snapshot.assigneeUser&&(f.snapshot.status="ASSIGNED");k=function(){a.isSaving=!0;a.newIssueStarted=!1;WF(a.butterBar,"Creating...",0);a.issueApi.createIssue(f).then(function(Z){return EBc(a,Z)}).then(function(Z){a.draftStore.$window.sessionStorage.removeItem(no("0"));a.originalIssueCopy=li(a.issue);a.analytics.trackEvent(xp.CREATE_ISSUE,"create",
"MARKDOWN"===a.comment.formattingMode?"markdown":"non markdown");IBc(a);0<a.collaboratorGroupsText.length&&a.analytics.trackEvent(xp.QUICK_ADD_COLLABORATORS,"create","create_issue:"+Z.issueId);if(c){var na;a.analytics.trackEvent(xp.CREATE_ISSUE,"fileAndRedirect","component",null!=(na=d.componentId)?na:void 0);a.butterBar.dismiss();a.isNavigatingAway=!0;a.isSaving=!1;uG(a.userAccess,"reader","issues/"+Z.issueId).then(function(Da){a.componentPickerTouched=!1;Da?Rpc(a.redirectUrl,a.paths.editIssue(Z.issueId),
String(Z.issueId)):(WF(a.butterBar,"New issue created: "+Z.issueId+" (view access not granted)",0),Rpc(a.redirectUrl,a.paths.listIssues()));P5(a)}).catch(function(Da){a.errorHandler.errorHandler(null,Da);a.isNavigatingAway=!1})}else{a.componentPickerTouched=!1;var oa;a.analytics.trackEvent(xp.CREATE_ISSUE,"fileAndNew","component",null!=(oa=d.componentId)?oa:void 0);na={};SXb(a.butterBar,jh(["New issue created: ",kh("a",(na.href=a.paths.editIssue(Z.issueId),na),String(Z.issueId))]),0);d.title=a.templateTitle;
a.comment=new $N(a.templateComment);(d.comment=a.templateComment)&&a.templateCommentFormattingMode&&(a.comment.formattingMode=a.templateCommentFormattingMode,d.formattingMode=a.templateCommentFormattingMode);a.isSaving=!1;a.submitRequested=!1;var wa;na=l(null!=(wa=a.magicBoxes)?wa:[]);for(wa=na.next();!wa.done;wa=na.next())wa.value.refresh();a.newIssueStarted=!0;a.originalIssueCopy=li(a.issue)}P5(a)}).catch(function(Z){403===Z.status&&sn(Z)?YF(a.errorHandler,tn(Z)):a.errorHandler.errorHandler(null,
Z);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1}).finally(function(){a.titleBannedWordsChecker.reset();a.descriptionBannedWordsChecker.reset()})};return U.yield(JBc(a),3);case 3:return(q=U.yieldResult)?U.yield(KBc(a),4):U.return();case 4:return(u=U.yieldResult)?U.yield(HBc(a,f.snapshot),5):U.return();case 5:return(x=U.yieldResult)?U.yield(a.titleBannedWordsChecker.check(null!=(y=a.issue.title)?y:"",LBc(a),f.snapshot.componentId),6):U.return();case 6:return E=U.yieldResult,U.yield(a.descriptionBannedWordsChecker.check(null!=
(H=a.issue.comment)?H:"",LBc(a),f.snapshot.componentId),7);case 7:J=U.yieldResult;if(!E||!J)return null==(O=b)||O.preventDefault(),null==(R=b)||R.stopPropagation(),U.return();k();Se(U)}})},LBc=function(a){return!!a.selectedComponent&&!!a.selectedComponent.accessLimit&&"EXTERNAL_PUBLIC"===a.selectedComponent.accessLimit.accessLevel},JBc=function(a){var b=Rj();!a.canEditIssuesInComponent&&!a.frontendIsInternalOrPartner&&a.selectedComponent&&a.selectedComponent.accessLimit&&"INTERNAL"!==a.selectedComponent.accessLimit.accessLevel?
a.confirmationDialogService.open({title:"",content:hh("Submitting this bug report means your email address will be shared with the team that works on this product.",{preserveNewlines:!0}),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},KBc=function(a){var b=Rj();!a.canEditIssuesInComponent||"VULNERABILITY"!==a.issue.type&&"PRIVACY_ISSUE"!==a.issue.type?b.resolve(!0):ON(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});
return b.promise},qBc=function(a,b){a.isLoadingComponent=!0;a.componentActions.search(b).then(function(c){1===c.length?(tBc(a,c[0]),P5(a),a.newIssueStarted=!0):a.selectedComponent=c[0]}).catch(function(){a.butterBar.showWarning("Unable to load components from the provided query.")}).finally(function(){a.isLoadingComponent=!1})},pBc=function(a,b){a.isLoadingComponent=!0;a.componentActions.getUncached(b).then(function(c){if(a.currentTracker.inTracker&&a.currentTracker.getTrackerId()!==c.trackerId)throw Error("Se");
tBc(a,c);P5(a)}).catch(function(){a.butterBar.showWarning("Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};O5.prototype.hasUnsavedChanges=function(){var a=Vhb(this.issue),b=Vhb(this.originalIssueCopy);return!ki(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var Xgb=function(a){a.showRecentIssuesInline=!a.showRecentIssuesInline;a.analytics.trackEvent(xp.CREATE_ISSUE,"toggleRecentIssuesInline",a.showRecentIssuesInline.toString())},BBc=function(a,b){Pz(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(qf()).subscribe(function(c){c?(a.comment.value=a.templateComment,a.issue.comment=a.templateComment,(a.originalIssueCopy.comment=a.templateComment)&&a.templateCommentFormattingMode&&(a.comment.formattingMode=a.templateCommentFormattingMode,
a.issue.formattingMode=a.templateCommentFormattingMode,a.originalIssueCopy.formattingMode=a.templateCommentFormattingMode)):(a.originalIssueCopy.comment=a.templateComment,a.templateComment="")})},vBc=function(a){a.selectedComponent&&a.bLocation.search("component",a.selectedComponent.componentId);a.selectedTemplate&&("predefined"===a.selectedTemplate.type?(a.bLocation.search("template",a.selectedTemplate.id),a.bLocation.search("template_issue",null)):"issue"===a.selectedTemplate.type&&(a.bLocation.search("template_issue",
a.selectedTemplate.id),a.bLocation.search("template",null)))},Dgb=function(a){return a.sessionIsExternal?!1:OQa(a.selectedComponent)},Egb=function(a){return ZC(a.activeSession)?!1:pp(a.selectedComponent)},uBc=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){for(var b=a.selectedComponent.componentPathInfo.allCustomField,c={},d=l(b),e=d.next();!e.done;e=d.next())e=e.value,c[e.customFieldId]=e;a.customFieldMap=c;a.customFieldAllowedValuesMap=
Whb(b);MBc(a)}},MBc=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(e){return a.customFieldMap[e.customFieldId]&&a.customFieldMap[e.customFieldId].enabledOnIssues});for(var b=a.issue.customField.map(function(e){return e.customFieldId}),c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,!b.includes(d.customFieldId)&&d.enabledOnIssues&&a.issue.customField.push(d.typedDefaultValue||new xl({customFieldId:d.customFieldId}));a.originalIssueCopy.customField=
a.issue.customField}},ABc=function(a){if(a.canViewIssuesInComponent||a.componentHasExpandedAccessEnabled)void 0!==a.ccsText?a.ccsText.includes(a.userEmail)||(a.ccsText=[a.userEmail].concat(p(a.ccsText))):a.ccsText=[a.userEmail]};g=O5.prototype;g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);P5(a)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};g.createHotlist=function(a){var b=this;this.analytics.trackEvent("baseIssue","createHotlist");WF(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){WF(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);P5(b)}).catch(a.errorCallback)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId;return this.hotlistMap[c]?Promise.resolve(this.hotlistMap[c]):this.hotlistApi.get(c).then(function(d){b.addHotlist(d);a.successCallback(d);P5(b);return d},function(){var d=b.hotlistMap[c];yc(b.hotlistMap,c);za(b.hotlists,d);a.errorCallback()})};g.loadHotlists=function(a){var b=this;a=a.map(function(c){return b.loadHotlist({hotlistId:c,successCallback:function(){},errorCallback:function(){}})});return Promise.all(a).then(function(){P5(b)})};
var oBc=function(a){var b;switch((null==(b=a.format)?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},nBc=function(a){var b;return Ki(null==(b=jE(a.userPreferencesManager).textDisplayPreferences)?void 0:b.lastPublishMode)||"PLAIN"};
O5.prototype.showNewContentJudgementDialog=function(){var a=this,b,c,d=null!=(c=null==(b=this.judgementForNewContent)?void 0:b.severity)?c:"NONE_DETECTED";this.showContentJudgementDialog({severity:d,contentJudgement:void 0,hasAclToCreate:!0}).pipe(Af(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};O5.prototype.showContentJudgementDialog=function(a){return Pz(this.matDialogService.open(vX,{panelClass:"no-jitter",width:"500px",data:a}))};
var sBc=function(a){a.componentPickerTouched&&(a.analytics.trackEvent(xp.CREATE_ISSUE,"exit-after-component-picker-interaction","new-ui"),a.componentPickerTouched=!1);a.analytics.trackEvent(xp.CREATE_ISSUE,"creation-abandon","new-ui")},IBc=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(0<b){var c=Math.min(b,108E5);OYb("createIssue",c,"new-ui");a.analytics.trackEvent(xp.CREATE_ISSUE,"createIssue","time-to-create-new-ui",c);uH(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=
new Date};Qh.Object.defineProperties(O5.prototype,{selectedTemplate:{configurable:!0,enumerable:!0,get:function(){return this.selectedTemplateInternal},set:function(a){var b=this;if(this.selectedTemplateInternal!==a){this.selectedTemplateInternal=a;var c;null==(c=this.selectedComponentProcessedPromise)||c.then(function(){b.getIssueTemplate()})}}}});
O5.\u0275fac=function(a){return new (a||O5)(z(Df),z(dE),z(xJ),z(xE),z(W_),z(sG),z(nG),z(wE),z(U_),z(WG),z(NN),z(EP),z(Us),z(MN),z(lG),z(zH),z(AF),z(nH),z(mF),z(VF),z(XF),z(Uz),z(DF),z(aO),z(qE),z(iE),z(UW),z(cD),z(yD,2),z(zJ),z(dI),z(GH),z(OG),z(tH),z(jG),z(xD),z(iG),z(lBc),z(mBc))};
O5.\u0275cmp=od({type:O5,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(zg(XT,5),zg(OT,5),zg(jBc,5),zg(K5,5),zg(F5,5));if(a&2){var c;yg(c=Bg())&&(b.hotlistPicker=c.first);yg(c=Bg())&&(b.commentBox=c.first);yg(c=Bg())&&(b.descriptionConfirmDialog=c.first);yg(c=Bg())&&(b.advancedFieldsZippy=c.first);yg(c=Bg())&&(b.magicBoxes=c)}},hostBindings:function(a,b){a&1&&L("unload",function(){return b.unloadPageHandler()},!1,ce)},features:[lg([yD,{provide:lBc,useClass:TW},{provide:mBc,useClass:TW}]),
Jf],decls:30,vars:17,consts:[[1,"a11y-only"],[1,"kd-appbar","bv2-create-issue-scroll-header"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate",4,"ngIf"],["cdkScrollable","",1,"bv2-view"],[1,"bv2-new-issue-main-content"],["novalidate","","name","createIssueForm",3,"ngClass"],["class","bv2-create-component-external-warning",3,"ngClass",
4,"ngIf"],["class","bv2-validation-error-banner","role","alert",4,"ngIf"],["class","bv2-create-issue-hotlists",4,"ngIf"],[1,"bv2-create-issue-row"],[1,"bv2-create-field"],[1,"bv2-top-field-label"],["for","bv2-component",1,"required"],[1,"bv2-create-issue-component"],[3,"selectedComponent","shouldFocus","isRequired","selectedComponentChange","touched"],["class","bv2-create-field bv2-right-button",4,"ngIf"],["class","bv2-validation-error-banner",4,"ngIf"],[4,"ngIf"],[1,"bv2-new-issue-right-sidebar"],
[3,"componentId","issueTitle","issue","customFieldMap","headerChange"],["descriptionConfirmDialog",""],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate"],[1,"bv2-create-component-external-warning",3,"ngClass"],[3,"name","size"],[3,"href"],["role","alert",1,"bv2-validation-error-banner"],["class","bv2-validation-error",4,"ngIf"],[1,"bv2-validation-error"],[1,"bv2-create-issue-hotlists"],["class","bv2-hotlist-chips",4,"ngFor","ngForOf"],[1,"bv2-hotlist-chips"],[3,"hotlist","removeHotlist"],
[1,"bv2-create-field","bv2-right-button"],["for","bv2-template-chooser"],["mat-button","","color","primary","id","bv2-template-chooser","aria-label","Template","type","button",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["templateMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"bv2-validation-error-banner"],["class","bv2-recent-issues-inline-container",4,"ngIf"],["for",
"bv2-title",1,"required"],[1,"bv2-create-issue-title"],["type","text","name","title","aria-label","Issue Title","id","bv2-title","name","title","required","","aria-required","true","autocomplete","off",3,"ngModel","bFocus","ngModelChange"],["class","banned-words-warning break-word",4,"ngIf"],["class","bv2-create-field bv2-create-issue-assignee",4,"ngIf"],["class","bv2-create-field bv2-create-issue-collaborators",4,"ngIf"],["class","bv2-create-field bv2-create-issue-cc",4,"ngIf"],[1,"bv2-create-issue-details"],
["for","bv2-description"],[3,"supportsPreview","comment","disabled","judgementForNewContent","componentId","placeholder","idForAriaLabel","audience","showRestrictionOptions","ngClass","warn","commentChange","onChange","onSubmit","onRestrict"],["class","banned-words-warning break-word","warning","",4,"ngIf"],["additionalToolbarItems","",3,"initialValue","change"],["class","bv2-create-issue-row access-level-row",4,"ngIf"],[1,"float-clear"],[1,"bv2-create-issue-zippy"],["class","mat-elevation-z0",4,
"ngIf"],["class","create-issue-recaptcha",4,"ngIf"],[1,"bv2-issue-create-button-bar"],["format","fill","id","bv2-issue-create-button",3,"disabled","color","onAction"],["format","fill","id","bv2-issue-create-start-button",3,"disabled","color","onAction"],["format","hairline","id","bv2-issue-discard-button",3,"disabled","onAction"],[1,"bv2-recent-issues-inline-container"],[1,"bv2-recent-issues-toggle-container"],["tabindex","0",1,"bv2-recent-issues-toggle",3,"click","keydown.enter","keydown.space"],
["class","bv2-recent-issues-inline",4,"ngIf"],[1,"bv2-recent-issues-inline"],[3,"componentId","hideHeader","showInline","issueTitle","issue","customFieldMap","headerChange"],[1,"banned-words-warning","break-word"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],["for","bv2-priority",1,"required"],["mat-button","","type","button","color","primary",3,"matMenuTriggerFor"],["priorityMenu","matMenu"],
["mat-menu-item","","type","button",3,"click"],["mat-menu-item","","type","button",3,"click",4,"ngFor","ngForOf"],["for","bv2-type",1,"required"],["typeMenu","matMenu"],["mat-menu-item","","type","button",3,"title","click",4,"ngFor","ngForOf"],["mat-menu-item","","type","button",3,"title","click"],[1,"bv2-create-field","bv2-create-issue-assignee"],["for","bv2-assignee"],[1,"overflow-hidden"],["id","bv2-assignee","type","text","name","assignee","autocomplete","off",1,"bv2-create-issue-textfield",3,
"ngModel","bContactAutocomplete","ngModelChange"],[1,"bv2-create-field","bv2-create-issue-collaborators"],["for","bv2-collaborators"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","matTooltipPosition","above","svgIcon","help-outline","tabindex","0",1,"collaborators-tooltip-icon"],["id","bv2-collaborators","type","text","name","collaborators","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModel",
"bContactAutocomplete","ngModelChange"],[1,"bv2-create-field","bv2-create-issue-cc"],["for","bv2-cc"],["id","bv2-cc","type","text","name","cc","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModel","bContactAutocomplete","ngModelChange"],["warning","",1,"banned-words-warning","break-word"],[1,"bv2-create-issue-row","access-level-row"],["for","bv2-access-limits","title","Set access level of this issue"],["id","bv2-access-limits",3,"disabled","implicitAccessEnabled","defaultAccessLimitLevel",
"updatedAccessLimitLevel"],["class","bv2-create-field",4,"ngIf"],["for","bv2-collaborator-groups","title","Set collaborator groups on the issue"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s","valign-middle","collaborator-group-help-icon",3,"matTooltip"],["mat-stroked-button","","dropdown-menu-button","","type","button",1,"gmat-button","small","collaborator-groups-button",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],[1,"multiple-check-box-menu"],["collaboratorsGroupsMenu",
"matMenu"],["mat-menu-item","",3,"keydown.enter","keydown.space",4,"ngFor","ngForOf"],["mat-menu-item","",3,"keydown.enter","keydown.space"],["gmat-checkbox","",3,"checked","change","click"],[1,"mat-elevation-z0"],["role","heading","aria-level","3"],[1,"required-text"],[1,"bv2-new-issue-metadata"],["aria-label","Set severity",1,"bv2-create-adv-field"],["for","bv2-severity","title","Set severity, which reflects how much the issue affects the use of the product"],["mat-button","","type","button","color",
"primary","id","bv2-severity",3,"matMenuTriggerFor"],["severityMenu","matMenu"],[1,"bv2-create-adv-field"],["for","bv2-found-in","title","Set version(s) of the product affected by this issue (comma-separated list)"],["id","bv2-found-in","name","foundIn","type","text","autocomplete","off",3,"ngModel","ngModelChange"],["aria-label","Set in prod",1,"bv2-create-adv-field"],["for","bv2-in-prod","title","Set if this issue occurs in production"],["id","bv2-in-prod","name","inProd","aria-label","Set in prod",
3,"ngModel","ngModelChange"],["for","bv2-reporter","title","Set the reporter of this issue."],["id","bv2-reporter","name","reporter","type","text","autocomplete","off",3,"ngModel","bContactAutocomplete","ngModelChange"],["for","bv2-verifier","title","Set the verifier of this issue."],["id","bv2-verifier","name","verifier","type","text","autocomplete","off",3,"ngModel","bContactAutocomplete","ngModelChange"],["for","bv2-targeted-to","title","Set the version(s) of the product in which the issue should be fixed (comma-separated list)"],
["id","bv2-targeted-to","name","targetedTo","type","text","autocomplete","off",3,"ngModel","ngModelChange"],["for","bv2-blocked-by","title","Set issue(s) blocking this issue (comma-separated list)"],["id","bv2-blocked-by","name","blockedByInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["for","bv2-blocking","title","Set issue(s) blocked by this issue (comma-separated list)"],["id","bv2-blocking","name","blockingInputField","type","text","autocomplete",
"off","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["class","bv2-create-adv-field",4,"ngIf"],["class","bv2-create-adv-field",4,"ngFor","ngForOf"],["for","bv2-parents","title","Set parent issue(s) of this issue (comma-separated list)"],["id","bv2-parents","name","parentsInputField","type","text","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["for","bv2-children","title","Set children issue(s) of this issue (comma-separated list)"],["id","bv2-children","name","childrenInputField","type",
"text","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["id","bv2-access-limits",3,"disabled","defaultAccessLimitLevel","implicitAccessEnabled","updatedAccessLimitLevel"],["mat-menu-item","",3,"keydown.enter","keydown.space","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"keydown.enter","keydown.space","click"],[3,"id","ngClass","title"],[3,"id","value","valueChange",4,"ngIf"],[3,"value","options","includeEmptyOption","valueChange",4,"ngIf"],[3,"id","value","valueChange"],[3,"boundValue",
"isRequired","bv2Id","bv2AriaLabelledby","boundValueChange"],[3,"value","options","includeEmptyOption","valueChange"],["name","customInput","tabindex","0",3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange"],[1,"create-issue-recaptcha"],[3,"onUpdate"],["mat-dialog-title",""],[1,"bv2-create-issue-default-description"],["mat-button","",3,"mat-dialog-close"],["mat-button","","mat-dialog-close",""]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Create issue"),F(),D(2,"div",1)(3,
"div",2)(4,"button",3),L("click",function(){return b.back()}),G(5,"mat-icon",4),F(),D(6,"h2"),Q(7,"Create Issue"),F(),P(8,Bgb,1,2,"b-hotlist-picker",5),F()(),D(9,"div",6)(10,"div")(11,"div",7)(12,"form",8),P(13,Ggb,6,8,"div",9),P(14,Pgb,4,3,"div",10),P(15,Rgb,2,1,"div",11),D(16,"div",12)(17,"div",13)(18,"div",14)(19,"label",15),Q(20,"Component"),F()(),D(21,"div",16)(22,"b-team-component-picker",17),L("selectedComponentChange",function(d){return tBc(b,null!==d&&void 0!==d?d:null)})("touched",function(){return b.componentPickerTouched=
!0}),F()()(),P(23,Ugb,11,5,"div",18),F(),P(24,Vgb,3,0,"div",19),P(25,Phb,40,37,"div",20),F()(),D(26,"div",21)(27,"b-magic-box",22),L("headerChange",function(d){return b.magicBoxHeader=d}),F()()()(),P(28,Qhb,11,2,"ng-template",null,23,Eg));if(a&2){var c;w(8);C("ngIf",b.canEditIssuesInComponent);w(4);C("ngClass",og(15,kBc,b.submitRequested));w(1);C("ngIf",Dgb(b)||Egb(b));w(1);C("ngIf",b.submitRequested&&!b.isValid());w(1);C("ngIf",0<b.selectedHotlists.length);w(7);C("selectedComponent",b.selectedComponent)("shouldFocus",
!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);w(1);C("ngIf",0<b.availablePredefinedTemplates.length||null!=b.availableExistingIssueTemplate);w(1);C("ngIf",!b.isLoadingComponent&&(null!=b.componentRequestedInUrl||null!=b.selectedComponent)&&!b.canCreateNewIssuesInComponent&&!b.createAclLoading&&b.selectedComponent);w(1);C("ngIf",b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent);w(2);C("componentId",null!==(c=b.issue.componentId)&&void 0!==c?c:
void 0)("issueTitle",b.issue.title)("issue",b.issue)("customFieldMap",b.customFieldMap)}},dependencies:[bJ,OT,iT,mR,iM,yY,fA,LW,pw,Tg,hw,iw,zw,Bw,ow,mw,hW,XT,bD,fW,KR,F5,Ez,PK,Vz,Wz,Xz,Yz,K5,L5,M5,Ay,AB,yB,zB,PP,FB,G5,TR,Cv,Dv,Ev,qA,PT,iW,GI],styles:[".bv2-create-issue-row[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500}mat-icon.collaborator-group-help-icon[_ngcontent-%COMP%]{padding-left:3px}button.gmat-button.small.collaborator-groups-button[_ngcontent-%COMP%]{color:#202124;color:var(--text-default);min-width:160px;margin-top:5px}button.gmat-button.small.collaborator-groups-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{float:right;padding-top:5px}button.gmat-button.small.collaborator-groups-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;float:left;width:130px}.bv2-create-issue-row.access-level-row[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content}.feedback-button[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto}.feedback-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.feedback-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bv2-top-field-label[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.create-issue-recaptcha[_ngcontent-%COMP%]{float:right;margin:0 15px 15px 0}.mat-menu-item[_ngcontent-%COMP%]:active, .mat-menu-item[_ngcontent-%COMP%]:focus, .mat-menu-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}[_nghost-%COMP%]   .collaborators-tooltip-icon[_ngcontent-%COMP%]{height:18px}[_nghost-%COMP%]   .collaborators-tooltip-icon[_ngcontent-%COMP%]     svg{height:90%;margin-top:1px}[_nghost-%COMP%]   input.invalid[_ngcontent-%COMP%]{border-color:var(--bad-high-contrast)!important;border-width:2px!important}[_nghost-%COMP%]     .bv2-issue-create-button-bar b-button .gmat-button.mat-flat-button.mat-warn{background-color:#c5221f;background-color:var(--bad-gfx)}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var Thb={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},zBc=function(a,b,c,d){this.id=a;this.type=b;this.name=c;this.isDefault=d};var NBc=["form"],Q5=function(a,b,c,d,e,f,h,k){this.bLocation=a;this.sloApi=b;this.errorHandler=c;this.paths=d;this.analytics=e;this.butterBar=f;this.appHistory=k;this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error="";this.sloUnderEdit={sloId:"0",parentId:"0",name:"",description:"",version:0,elements:[],effectiveElements:[],alertState:"OFF",isArchived:!1};h.setTitle("Create SLO")};g=Q5.prototype;g.ngAfterViewInit=function(){};
g.save=function(){var a=this;if(!this.validate())return Promise.reject("Correct the errors in the form");WF(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){WF(a.butterBar,"SLO "+b.name+" saved.",2E3);a.analytics.trackEvent("SLO","create");a.bLocation.replaceUrl(a.paths.editSlo(b.sloId))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};g.back=function(){V_(this.appHistory)};
g.revertChanges=function(){this.sloUnderEdit.name="";this.sloUnderEdit.description="";this.sloUnderEdit.elements=[]};g.updateCollection=function(a){this.sloUnderEdit.elements=a};g.validate=function(){if(this.createSloForm.invalid||!this.elementPickerIsValid)return this.error="Error: You must fill out all required fields and ensure the rules are valid.",!1;this.error="";return!0};Q5.\u0275fac=function(a){return new (a||Q5)(z(wE),z(vW),z(XF),z(xE),z(zH),z(VF),z(lG),z(U_))};
Q5.\u0275cmp=od({type:Q5,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&zg(NBc,5);if(a&2){var c;yg(c=Bg())&&(b.createSloForm=c.first)}},decls:30,vars:17,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"vertical-centered"],[1,"edit-resource-panel"],["name","createSloForm"],["form","ngForm"],[3,"error"],[1,"edit-field"],
["for","slo-name",1,"required"],["type","text","id","slo-name","name","name",3,"required","bFocus","ngModel","disabled","ngModelChange"],["for","slo-description"],["id","slo-description","name","description",3,"ngModel","disabled","ngModelChange"],[3,"isDisabled","collection","onCollectionUpdate","onValidation"],[1,"advanced-settings-info"],[1,"edit-button-row"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",
1)(2,"b-button",2),L("onAction",function(){return b.back()}),G(3,"b-icon",3),F()()(),D(4,"div",4)(5,"h2",5)(6,"span",6),Q(7,"Create a new SLO"),F()(),D(8,"div",7)(9,"form",8,9),G(11,"b-error-banner",10),D(12,"div",11)(13,"label",12),Q(14,"Name"),F(),D(15,"input",13),L("ngModelChange",function(c){return b.sloUnderEdit.name=c}),F()(),D(16,"div",11)(17,"label",14),Q(18,"Description"),F(),D(19,"textarea",15),L("ngModelChange",function(c){return b.sloUnderEdit.description=c}),Q(20,"        "),F()(),D(21,
"div",11)(22,"slo-elements-picker",16),L("onCollectionUpdate",function(c){return b.updateCollection(c)})("onValidation",function(c){return b.elementPickerIsValid=c}),F()(),D(23,"p",17),Q(24," Access controls may be defined once the slo is created. "),F(),D(25,"div",18)(26,"b-button",19),L("onAction",function(){return b.save()}),Q(27," Save "),F(),D(28,"b-button",20),L("onAction",function(){return b.revertChanges()}),Q(29," Revert changes "),F()()()()());a&2&&(w(9),Xf("show-errors",b.error),w(2),C("error",
b.error),w(1),Xf("bv2-edit-resource-readonly",b.isSaving),w(3),C("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.name)("disabled",b.isSaving),w(1),Xf("bv2-edit-resource-readonly",b.isSaving),w(3),C("ngModel",b.sloUnderEdit.description)("disabled",b.isSaving),w(3),C("isDisabled",!1)("collection",b.sloUnderEdit.elements),w(4),C("disabled",b.isSaving||(null==b.createSloForm?null:b.createSloForm.pending)||(null==b.createSloForm?null:b.createSloForm.invalid)||!b.elementPickerIsValid),w(2),C("disabled",
!(""!==b.sloUnderEdit.name||""!==b.sloUnderEdit.description||0<b.sloUnderEdit.elements.length)))},dependencies:[bJ,pZ,LW,pw,Tg,hw,iw,zw,ow,mw,bD,J_],encapsulation:2});var R5=function(){this.nextPanelId=1};R5.\u0275fac=function(a){return new (a||R5)};R5.\u0275prov=$c({token:R5,factory:R5.\u0275fac,providedIn:"root"});var S5=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa){Y.call(this);this.cdr=a;this.paths=b;this.bLocation=c;this.$log=d;this.analytics=e;this.issueApi=f;this.userApi=h;this.bookmarkGroupsApi=k;this.hotlistApi=q;this.butterBar=u;this.pageTitle=x;this.dashboards=y;this.routeParams=E;this.appSearchState=J;this.userAccess=O;this.errorHandler=R;this.statusMessages=U;this.appEvents=Z;this.hotlistFridge=na;this.issueFridge=oa;this.ANALYTICS_CATEGORY="dashboard";this.panels=[];this.hotlistChoices=
[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.userEmail=H.getUserEmail();this.groupId=E.groupId||null};W(S5,Y);S5.\u0275dir=Y.\u0275dir;
S5.prototype.ngOnInit=function(){var a=this;this.userApi.getFavorite("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){OBc(a,b);a.bookmarkGroup=b;a.cdr.detectChanges()}).catch(function(b){a.$log.warn("error loading bookmark group: ",b)});this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.dashboardPanels.moveDown.subscribe(function(b){PBc(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){PBc(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){PBc(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){PBc(a,b,function(){return a.panels.length-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.remove.subscribe(function(b){a.removePanel(b)}));
this.appSearchState.clear()};var aib=function(a,b){var c=b.selectedIssues;if(a=QBc(a,b.panelId))a.selectedIssues=null!=c?c:[]},$hb=function(a,b,c){b.focusedRowIndex=c;if(null!=c)for(a=l(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},QBc=function(a,b){return a.panels.find(function(c){return c.panelId===b})},RBc=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return-1!==a?a:void 0};g=S5.prototype;
g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];ki(d,c)||(d&&za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");WF(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);WF(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback;a=a.errorCallback;WF(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.loadHotlists=function(a){var b=this,c=new Set;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=l(d.value.hotlistId||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,this.hotlistMap[e]||c.has(e)||c.add(e)}c=l(c);for(e=c.next();!e.done;e=c.next())this.hotlistApi.get(e.value).then(function(f){b.hotlistFridge.announce(f);b.addHotlist(f);b.cdr.detectChanges()}).catch(function(f){(new Set([403,404])).has(f.status)||b.errorHandler.errorHandler(null,f)})};
g.sendBulkEditRequest=function(a,b){var c=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){var d=!!a[0].actions[0].value;b=l(this.panels);for(var e=b.next();!e.done;e=b.next()){e=l(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=d}this.cdr.detectChanges();WF(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return IH(this.issueFridge,a[0].issueIds,{markRead:d}).then(function(k){WF(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var q=l(c.panels),u=q.next();!u.done;u=q.next()){u=l(u.value.selectedIssues);for(var x=u.next();!x.done;x=u.next()){var y=void 0;x.value.lastViewedTime=null!=(y=k)?y:null}}}).catch(function(k){for(var q=l(c.panels),u=q.next();!u.done;u=q.next()){u=l(u.value.selectedIssues);for(var x=u.next();!x.done;x=u.next())x=x.value,x.isRead=!!x.lastViewedTime&&x.lastViewedTime>=x.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
gHa(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var h={bulkEditOps:a};WF(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h,b).then(function(k){for(var q=l([].concat(p(c.searchPanels),p(c.hotlistPanels))),u=q.next();!u.done;u=q.next()){u=u.value;var x=k;if(u.searchResults){u.searchResults=u.searchResults.clone();for(var y=0,E=l(u.searchResults.issues),H=E.next();!H.done;H=E.next()){H=H.value;if(x.affectedIssues[H.issueId]){var J=
x.affectedIssues[H.issueId];J=nua(J,x.componentMap[Number(sa(J.snapshot).componentId)]);J.selected=H.selected;u.searchResults.issues[y]=J;u.resultsLoaded.emit([u.searchResults.issues[y]])}y++}}}k.errors&&k.errors.length?(q=Opa(k.errors,"issueId"),c.butterBar.showWarning("Failed to update issue(s) "+q.join(", ")+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=H4b(c.statusMessages,h))?WF(c.butterBar,k):WF(c.butterBar,"Saved "+hHa(a).length+" issue(s).")}).catch(function(k){c.errorHandler.errorHandler(null,
k)})};g.loadBookmarkGroup=function(){var a=this;return this.bookmarkGroupsApi.get(this.groupId).then(function(b){uG(a.userAccess,"admin","bookmarkGroups/"+b.bookmarkGroupId).then(function(c){a.isAdmin=c;a.cdr.detectChanges()});a.pageTitle.setTitle(b.name);return b},function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)})};var OBc=function(a,b){a.panels=(b.item||[]).map(function(c,d){return SBc(a,c,0===d?0:void 0)})};
S5.prototype.removePanel=function(a){var b=this,c=QBc(this,a);if(null!=c){WF(this.butterBar,"Saving changes...",0);a=li(this.bookmarkGroup);var d;a.item=(null!=(d=a.item)?d:[]).filter(function(e){return!TBc(b,c,e)});UBc(this,a)}};
var PBc=function(a,b,c){b=RBc(a,b);if(void 0!==b){var d=a.panels[b];c=c(b);if(c>=a.panels.length||0>c)a.$log.warn("Trying to move panel "+d.panelId+" to "+c);else{b=li(a.bookmarkGroup);var e,f,h=null==(e=a.bookmarkGroup)?void 0:null==(f=e.item)?void 0:f.findIndex(function(k){return TBc(a,d,k)});void 0!==h&&(uaa(b.item,h,c),UBc(a,b))}}},UBc=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;VBc(a,a.bookmarkGroup.item);WF(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},TBc=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId===b.resourceId;case "SAVED_SEARCH":return c.savedSearchId===b.resourceId;default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},WBc=function(a,b){return a.panels.find(function(c){return TBc(a,c,b)})},SBc=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";e=b.hotlistId;break;case "SAVED_SEARCH":d="SAVED_SEARCH";
e=b.savedSearchId;break;default:a.$log.warn("Unsupported item: "+b)}a=a.dashboards;b=a.nextPanelId;a.nextPanelId++;return{panelId:b,resourceId:e,type:d,focusedRowIndex:null!=c?c:null,selectedIssues:[]}},VBc=function(a,b){a.panels=(null!=b?b:[]).map(function(c){var d;return null!=(d=WBc(a,c))?d:SBc(a,c)})};
S5.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.saveFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)}):this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)})};S5.prototype.editBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
S5.\u0275fac=function(a){return new (a||S5)(z(yD),z(xE),z(wE),z(dE),z(zH),z(AF),z(nH),z(wJ),z(mF),z(VF),z(lG),z(R5),z(aO),z(Us),z(mK),z(sG),z(XF),z(QN),z(DF),z(rH),z(GH))};
S5.\u0275cmp=od({type:S5,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(zg(n_,5),zg(l_,5));if(a&2){var c;yg(c=Bg())&&(b.searchPanels=c);yg(c=Bg())&&(b.hotlistPanels=c)}},features:[lg([yD]),Jf],decls:9,vars:5,consts:[[1,"a11y-only"],[1,"kd-dashboard-bar","kd-appbar","kd-buttonbar"],[1,"bv2-dashboard-header"],[3,"hotlistChoices","panels","onSave","onCreateHotlist","onLoadHotlist"],["role","main","tabindex","0",1,"bv2-view",3,"bFocus"],[4,"ngIf"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"bv2-dashboard-title"],
[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-dashboard-title-text"],["aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"ngSwitch"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first",
"last","focusedRowIndexChange","selectionChange","resultsLoaded",4,"ngSwitchCase"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded",4,"ngSwitchCase"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded"]],
template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Dashboard"),F(),D(2,"div",1)(3,"div",2),Q(4,"Bookmark groups dashboard"),F(),D(5,"b-dashboard-controls",3),L("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),F()(),D(6,"div",4),P(7,Zhb,8,3,"div",5),P(8,dib,3,3,"div",6),F());a&2&&(w(5),C("hotlistChoices",b.hotlistChoices)("panels",b.panels),w(1),C("bFocus",!0),
w(1),C("ngIf",b.bookmarkGroup),w(1),C("ngForOf",b.panels))},dependencies:[bW,KJ,n_,l_,Dv,Ev,Fv,Gv,LW,FB],encapsulation:2});var T5=function(){};T5.\u0275fac=function(a){return new (a||T5)};T5.\u0275mod=qd({type:T5});T5.\u0275inj=ad({imports:[cW,yK,o_,m_,aD,MW,FC]});var XBc=["editBookmarkGroupItemsContainer"],YBc=["bookmarkGroupName"],Dib=function(a){return{"bv2-edit-resource-readonly":a}},Fib=function(a){return{displayText:"Admins",values:a}},Eib=function(a){return[a]},U5=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z){Y.call(this);var na=this;this.routeParams=a;this.location=b;this.butterBar=c;this.accessPolicyApi=d;this.userApi=e;this.bookmarkGroupsApi=f;this.hotlistApi=h;this.paths=k;this.appHistory=q;this.pageTitle=u;this.userAccess=x;this.errorHandler=
E;this.appEvents=J;this.snackBar=O;this.confirmationDialog=R;this.cdr=U;this.documentationLinks=Z;this.selectedTabIndex=0;this.isAdmin=this.isArchiving=this.isUpdating=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.error="";this.selectedHotlistIds=[[]];this.userHotlists=[];this.userSavedSearches=null;this.savedSearchChoices=[];this.currentUserEmail=H.getUserEmail();this.accessPolicyUnderEdit=Fo();this.flattenedAccessPolicy=Fo();a=this.loadBookmarkGroup(this.routeParams.groupId);
b=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);ZBc(this);$Bc(this);Promise.all([a,b]).then(function(){var oa;null==(oa=na.bookmarkGroupNameInput)||oa.nativeElement.focus()});this.subscriptions.add(VW(y,function(){return na.hasUnsavedChanges()},!1));y=function(){ZBc(na)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(y));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(y));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){$Bc(na)}))};
W(U5,Y);U5.\u0275dir=Y.\u0275dir;g=U5.prototype;g.ngOnInit=function(){"access"===this.location.hash()&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};g.back=function(){V_(this.appHistory)};g.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};g.isSaving=function(){return this.isUpdating||this.isArchiving};
g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!ki(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};g.hasUnsavedAccessPolicyChanges=function(){return!ki(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};
g.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=li(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[aCc(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];V5(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=li(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change bookmark group admins",hh("Are you sure you want to remove yourself from the admins?\n                  You may lose the permission to edit the access settings"),function(){a.doSaveAccessPolicy()})};
g.validate=function(){if(""===this.bookmarkGroupUnderEdit.name)return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.archive=function(){var a=this;this.openConfirmationDialog("Archive bookmark group",hh("Do you want to archive this bookmark group?"),function(){bCc(a,"archive")})};g.unarchive=function(){var a=this;this.openConfirmationDialog("Unarchive bookmark group",hh("Do you want to unarchive this bookmark group?"),function(){bCc(a,"unarchive")})};
g.doSaveMetadata=function(){var a=this,b=this.bookmarkGroupUnderEdit,c=this.bookmarkGroup.bookmarkGroupId;this.snackBar.open("Saving bookmark group ID "+c,"dismiss",{duration:0});this.isUpdating=!0;this.bookmarkGroupsApi.update(b).then(function(d){a.snackBar.open("Bookmark group ID "+c+" was saved as "+a.bookmarkGroupUnderEdit.name,"dismiss",{duration:2E3});cCc(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=Ho(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("BOOKMARK_GROUP",this.bookmarkGroup.bookmarkGroupId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=Go(c);a.accessPolicyUnderEdit=li(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var bCc=function(a,b){var c=li(a.bookmarkGroup);"archive"===b?(a.snackBar.open('Archiving bookmark group "'+a.bookmarkGroup.name+' ..."',"dismiss",{duration:0}),c.archived=!0):(a.snackBar.open('Unarchiving bookmark group "'+a.bookmarkGroup.name+' ..."',"dismiss",{duration:0}),c.archived=!1);a.isArchiving=!0;a.bookmarkGroupsApi.update(c).then(function(d){"archive"===b?a.snackBar.open('Archived bookmark group "'+a.bookmarkGroup.name+'"."',"dismiss",{duration:2E3}):a.snackBar.open('Unarchived bookmark group "'+
a.bookmarkGroup.name+'"."',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});cCc(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
U5.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){cCc(b,c);b.selectedHotlistIds=[aCc(b.bookmarkGroup.item)];V5(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var cCc=function(a,b){a.bookmarkGroup=b;a.bookmarkGroup.item||(a.bookmarkGroup.item=[]);a.bookmarkGroupUnderEdit=li(a.bookmarkGroup)};
U5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=Go(c);b.accessPolicyUnderEdit=li(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};U5.prototype.loadUserAccess=function(a){var b=this;return uG(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var ZBc=function(a){a.userApi.getUserHotlists().then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},$Bc=function(a){a.userSavedSearches=null;a.userApi.getUserSavedSearches().then(function(b){a.userSavedSearches=b;V5(a);a.cdr.detectChanges()})},V5=function(a){if(a.userSavedSearches&&null!=a.bookmarkGroupUnderEdit){var b=dCc(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return-1==b.indexOf(c.searchId)})}},
hib=function(a,b){var c=Number(b);Aa(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});eCc(a,c);var d;null==(d=a.editBookmarkGroupItemsContainer)||d.nativeElement.focus()},jib=function(a,b){Aa(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});V5(a);var c;null==(c=a.editBookmarkGroupItemsContainer)||c.nativeElement.focus()},wib=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return a.paths.viewHotlist(b.hotlistId);
default:$h(b.resourceType)}},rib=function(a,b){for(var c=l(Object.entries(b.newSelectionMap)),d=c.next(),e={};!d.done;e={id$jscomp$537:e.id$jscomp$537},d=c.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.id$jscomp$537=qi(d);f&&!b.oldSelectionMap[e.id$jscomp$537]?(uib(a,e.id$jscomp$537),d=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.id$jscomp$537}}(e)),a.bookmarkGroupUnderEdit.item.push({hotlistId:d.hotlistId,name:d.name,resourceType:"HOTLIST"})):b.oldSelectionMap[e.id$jscomp$537]&&
!f&&(eCc(a,e.id$jscomp$537),Aa(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.id$jscomp$537}}(e)))}},uib=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},eCc=function(a,b){za(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},nib=function(a,b){-1===dCc(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)&&a.bookmarkGroupUnderEdit.item.push({name:b.name,resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});
setTimeout(function(){V5(a)})},dCc=function(a){return a?Opa(a,"savedSearchId"):[]},aCc=function(a){return a?Opa(a,"hotlistId"):[]},sib=function(a,b){var c=b.name;a.snackBar.open("Creating hotlist "+c+"...","dismiss",{duration:0});a.hotlistApi.createHotlist(c).then(function(d){a.snackBar.open("Hotlist "+c+" created successfully.");a.userHotlists.push(d);b.successCallback(d);a.appEvents.hotlistChanged.next()}).catch(b.errorCallback)},tib=function(a,b){var c=b.hotlistId;a.snackBar.open("Loading hotlist "+
c);return a.hotlistApi.get(c).then(function(d){a.userHotlists.push(d);b.successCallback(d);return d},b.errorCallback)};U5.prototype.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:$h(a.resourceType)}};U5.prototype.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};
U5.\u0275fac=function(a){return new (a||U5)(z(aO),z(wE),z(VF),z(nG),z(nH),z(wJ),z(mF),z(xE),z(U_),z(lG),z(sG),z(UW),z(XF),z(Us),z(DF),z(SF),z(zJ),z(yD,2),z(yL))};
U5.\u0275cmp=od({type:U5,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(zg(XBc,5),zg(YBc,5),zg(CT,5,ae));if(a&2){var c;yg(c=Bg())&&(b.editBookmarkGroupItemsContainer=c.first);yg(c=Bg())&&(b.bookmarkGroupNameInput=c.first);yg(c=Bg())&&(b.tabs=c)}},features:[lg([yD]),Jf],decls:9,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["mat-button",
"","color","primary",3,"disabled","click",4,"ngIf"],[1,"bv2-view"],[4,"ngIf"],["mat-button","","color","primary",3,"disabled","click"],[1,"edit-resource-header"],["class","resource-archived",4,"ngIf"],[1,"edit-resource-header-link","normal-link",3,"href"],["mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","bookmark-group-name",1,"required"],[1,"edit-field-header"],["type",
"text","id","bookmark-group-name","required","","aria-required","true",3,"ngModel","disabled","ngModelChange"],["bookmarkGroupName",""],["for","bookmark-group-description"],["id","bookmark-group-description",3,"ngModel","disabled","ngModelChange"],[4,"ngIf","ngIfElse"],["bookmarkItems",""],["class","edit-button-row",4,"ngIf"],["id","access","label","Access Control"],[1,"edit-field-note"],[3,"users","usersChange","isValid"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange",
"isValid"],[1,"edit-field"],["target","_blank",3,"href"],[1,"resource-archived"],["for","edit-bookmark-group-items-container"],["role","region","aria-label","Selected items","id","edit-bookmark-group-items-container",1,"keep-focus-ring","edit-bookmark-group-items-container"],["editBookmarkGroupItemsContainer",""],["class","bv2-bookmark-item-chip",4,"ngFor","ngForOf"],[1,"edit-bookmark-group-edit-items-pane"],[1,"edit-bookmark-group-hotlist-picker"],["for","hotlist-picker-button"],[3,"selectedHotlistIds",
"choices","checkEditAcl","onApply","onCreate","onLoad"],[1,"edit-bookmark-group-hotlist-search"],["for","hotlist-search-input-box"],[3,"showGroups","allowStarring","itemSelect"],["class","edit-bookmark-group-saved-search-picker",4,"ngIf"],[1,"bv2-bookmark-item-chip"],["class","bv2-saved-search-chip b-chip yellow split",4,"ngIf"],["class","edit-bookmark-group-none-select",4,"ngIf"],[3,"id","removeHotlist"],[1,"bv2-saved-search-chip","b-chip","yellow","split"],[1,"left","interactive",3,"href","matTooltip"],
["role","button","tabindex","0",1,"right","interactive",3,"matTooltip","click","keydown.enter","keydown.space"],[1,"edit-bookmark-group-none-select"],[1,"edit-bookmark-group-saved-search-picker"],["for","add-from-saved-searches-button"],["id","add-from-saved-searches-button","mat-button","","aria-describedby","select-from-saved-searches-button",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["id","select-from-saved-searches-button"],["svgIcon","arrow-dropdown","color","primary"],["savedSearchMenu",
"matMenu"],["matMenuContent",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"edit-field","bv2-edit-resource-readonly"],[1,"edit-bookmark-group-view-items"],[4,"ngFor","ngForOf"],[3,"href"],[1,"edit-button-row"],["mat-flat-button","","color","primary",3,"disabled","click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),L("click",function(){return b.back()}),G(4,"mat-icon",
4),F(),P(5,eib,2,1,"button",5),P(6,fib,2,1,"button",5),F()()(),D(7,"div",6),P(8,Gib,48,40,"ng-container",7),F());a&2&&(w(5),C("ngIf",b.isAdmin&&!b.isArchived()),w(1),C("ngIf",b.isAdmin&&b.isArchived()),w(2),C("ngIf",!b.isLoading&&b.bookmarkGroup.bookmarkGroupId))},dependencies:[Cv,Dv,Ev,qA,FB,Ez,DT,CT,pZ,mW,XT,$J,Tg,hw,zw,ow,AB,yB,zB,xB,nY],styles:[".edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-items-container[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);min-height:20px;padding:4px 6px;width:600px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-items-container[_ngcontent-%COMP%]   span.edit-bookmark-group-none-select[_ngcontent-%COMP%]{line-height:20px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);margin-top:-10px;width:600px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-picker[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-search[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-saved-search-picker[_ngcontent-%COMP%]{padding:10px;display:block}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);min-height:20px;padding:4px 6px 4px 8px;width:586px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:0}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:2px}.edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%], .edit-bookmark-group-items-container[_ngcontent-%COMP%]{box-sizing:border-box}.edit-button-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:8px}/*# sourceMappingURL=edit_bookmark_group.css.map */"]});var fCc=["savedSearchNameInput"],Lib=function(a){return{"bv2-edit-resource-readonly":a}},Nib=function(a){return{displayText:"Admins",values:a}},Mib=function(a){return[a]},W5=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R){Y.call(this);var U=this;this.routeParams=a;this.location=b;this.accessPolicyApi=c;this.savedSearchApi=d;this.paths=e;this.appHistory=f;this.butterBar=h;this.pageTitle=k;this.documentationLinks=u;this.userAccess=y;this.errorHandler=E;this.snackBar=H;this.confirmationDialog=J;this.cdr=
O;this.appEvents=R;this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.error="";this.currentUserEmail=q.getUserEmail();this.accessPolicyUnderEdit=Fo();this.flattenedAccessPolicy=Fo();this.pageTitle.setTitle("Saved Search Overview");a=this.loadSavedSearch(this.routeParams.savedSearchId);b=this.loadUserAccess(this.routeParams.savedSearchId);this.loadAccessPolicy(this.routeParams.savedSearchId);Promise.all([a,
b]).then(function(){var Z;null==(Z=U.savedSearchName)||Z.nativeElement.focus()});this.subscriptions.add(VW(x,function(){return U.hasUnsavedChanges()},!1))};W(W5,Y);W5.\u0275dir=Y.\u0275dir;g=W5.prototype;g.ngOnInit=function(){"access"===this.location.hash()&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};
g.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=li(b.savedSearch);b.pageTitle.setTitle("Saved search: "+c.name)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.cdr.detectChanges()})};
g.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=Go(c);b.accessPolicyUnderEdit=li(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.loadUserAccess=function(a){var b=this;return uG(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.isSaving=function(){return this.isUpdating||this.isDeleting};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};g.back=function(){V_(this.appHistory)};g.revertMetadataChanges=function(){this.savedSearchUnderEdit=li(this.savedSearch);this.error=""};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=li(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.hasUnsavedMetadataChanges=function(){return!ki(this.savedSearch,this.savedSearchUnderEdit)};
g.hasUnsavedAccessPolicyChanges=function(){return!ki(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
g.saveMetadata=function(){var a=this;this.validate()&&(this.snackBar.open("Save saved search ID "+this.savedSearchUnderEdit.searchId,"dismiss",{duration:0}),this.isUpdating=!0,this.savedSearchApi.update(this.savedSearchUnderEdit.searchId,this.savedSearchUnderEdit).then(function(b){a.snackBar.open("Saved search ID "+b.searchId+' was saved as "'+b.name+'"',"dismiss",{duration:0});a.savedSearch=b;a.savedSearchUnderEdit=li(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};g.validate=function(){if(""===this.savedSearchUnderEdit.name)return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change saved search admins",hh("Are you sure you want to remove yourself from the admins?\n                'You may lose the permission to edit the access settings"),function(){a.doSaveAccessPolicy()})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=Ho(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("SAVED_SEARCH",this.savedSearch.searchId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=Go(c);a.accessPolicyUnderEdit=li(a.flattenedAccessPolicy);
a.loadUserAccess(String(a.savedSearch.searchId));a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})},function(c){a.errorHandler.errorHandler(null,c);a.butterBar.showWarning(tn(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.openConfirmationDialog("Delete saved search",hh("Do you want to delete this saved search?"),function(){a.doDelete()})};
g.doDelete=function(){var a=this;this.snackBar.open("Deleting saved search "+this.savedSearch.name,"dismiss",{duration:0});this.isDeleting=!0;this.savedSearchApi.delete(this.savedSearch.searchId).then(function(){a.snackBar.open("Deleted saved search "+a.savedSearch.name,"dismiss",{duration:0});a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId,action:"delete"});QWb(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
g.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};W5.\u0275fac=function(a){return new (a||W5)(z(aO),z(wE),z(nG),z(jI),z(xE),z(U_),z(VF),z(lG),z(Us),z(yL),z(UW),z(sG),z(XF),z(SF),z(zJ),z(yD,2),z(DF))};
W5.\u0275cmp=od({type:W5,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(zg(fCc,5),zg(CT,5,ae));if(a&2){var c;yg(c=Bg())&&(b.savedSearchName=c.first);yg(c=Bg())&&(b.tabs=c)}},features:[lg([yD]),Jf],decls:9,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["mat-button","","color","primary","matTooltip","Delete saved search",3,"disabled",
"click",4,"ngIf"],[1,"bv2-view"],[4,"ngIf"],["mat-button","","color","primary","matTooltip","Delete saved search",3,"disabled","click"],[1,"edit-resource-header"],[1,"edit-resource-header-link",3,"href"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","saved-search-name",1,"required"],[1,"edit-field-header"],["type","text","id","saved-search-name",
"required","","aria-required","true",3,"ngModel","disabled","ngModelChange"],["savedSearchNameInput",""],["for","saved-search-description"],["id","saved-search-description",3,"ngModel","disabled","ngModelChange"],[1,"edit-field","bv2-edit-resource-readonly"],["for","saved-search-query"],[1,"edit-field-note"],[1,"edit-saved-search-query-container","codefont"],["class","edit-button-row",4,"ngIf"],["id","access","label","Access Control"],["for","saved-search-acl-admins"],[3,"users","usersChange","isValid"],
["for","saved-search-acl-readers"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange","isValid"],[1,"edit-field"],["target","_blank",3,"href"],[1,"edit-button-row"],["mat-flat-button","","color","primary",3,"disabled","click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),L("click",function(){return b.back()}),G(4,"mat-icon",4),F(),P(5,Hib,2,1,"button",5),F()()(),D(6,"div",6),P(7,Iib,
4,0,"ng-container",7),P(8,Oib,51,38,"ng-container",7),F());a&2&&(w(5),C("ngIf",b.isAdmin),w(2),C("ngIf",!b.isLoading&&!b.savedSearch),w(1),C("ngIf",!b.isLoading&&b.savedSearch))},dependencies:[Cv,Ev,qA,FB,Ez,DT,CT,pZ,Tg,hw,zw,ow,nY],encapsulation:2});var gCc=function(a){this.internalArray_=m(a)};W(gCc,X);g=gCc.prototype;g.getAuthor=function(){return Fi(this,Bi,1)};g.setAuthor=function(a){oj(this,Bi,1,a)};g.getTimestamp=function(){return Fi(this,gj,2)};g.setTimestamp=function(a){return oj(this,gj,2,a)};g.hasTimestamp=function(){return Zi(this,gj,2)};g.getAdd=function(){return Fi(this,nm,3)};g.getRemove=function(){return Fi(this,nm,4)};g.getAddMask=function(){return Fi(this,AC,5)};g.getRemoveMask=function(){return Fi(this,AC,6)};var X5=function(a){this.internalArray_=m(a,0,X5.messageId)};W(X5,X);X5.prototype.getUpdatesList=function(){return Ji(this,gCc,1)};X5.repeatedFields_=[1];X5.messageId="b.SloHistory";var Y5=function(a,b){this.executor=b;this.sloHistories=a.get("slo_histories-second-level-cache")||a.create("slo_histories-second-level-cache",{capacity:25})};Y5.prototype.get=function(a){var b=this.sloHistories.get(String(a));return void 0!==b?b:this.sloHistories.put(String(a),hCc(this,a))};var hCc=function(a,b){return a.executor.get({url:"action/slo_updates/"+b,responseConstructor:X5}).then(function(c){var d;return{updates:(null!=(d=c.getUpdatesList())?d:[]).map(qwa)}})};
Y5.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};Y5.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};Y5.\u0275fac=function(a){return new (a||Y5)(n(KE),n(uD))};Y5.\u0275prov=$c({token:Y5,factory:Y5.\u0275fac,providedIn:"root"});var Z5=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z){Y.call(this);var na=this;this.routeParams=a;this.bLocation=b;this.appHistory=d;this.butterBar=e;this.pageTitle=f;this.documentationLinks=k;this.userAccess=u;this.accessPolicyApi=x;this.sloApi=y;this.sloUpdatesApi=E;this.sloUpdatesService=H;this.errorHandler=J;this.matDialogService=O;this.analytics=R;this.confirmationDialogService=U;this.appEvents=Z;this.historyDiffs=void 0;this.isImportedFromBugScope=this.isUneditedFromBugScope=this.elementPickerIsValid=
this.isAdminInternal=this.isUpdating=this.isLoading=!1;this.selectedTabIndex=0;this.validity={};this.isInvalid=function(){return Object.values(na.validity).some(function(oa){return!oa})};this.editableAccessPolicy=Fo();this.flattenedAccessPolicy=Fo();this.subscriptions.add(VW(q,function(){return na.hasUnsavedChanges()},!1));a=this.routeParams.sloId;this.resourceName=vn("SLO",qi(a));if(this.sloEnabled=h.isInternalSession())this.pageTitle.setTitle("SLO Overview"),iCc(this,a),this.loadUserAccess(a),this.loadAccessPolicy(a),
jCc(this,a);this.alertState={getValue:function(){return na.editableCopy?"ON"===na.editableCopy.alertState:!1},getSavedValue:function(){return na.slo?"ON"===na.slo.alertState:!1},setValue:function(oa){na.editableCopy&&(na.editableCopy.alertState=oa?"ON":"OFF")}};this.currentUserEmail=h.getUserEmail()};W(Z5,Y);Z5.\u0275dir=Y.\u0275dir;
Z5.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.bLocation.hash(e,!0)};Z5.prototype.ngOnInit=function(){"access"===this.bLocation.hash()&&(this.selectedTabIndex=1)};Z5.prototype.updateCollection=function(a){this.editableCopy&&(this.editableCopy.elements=a)};
var iCc=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=li(a.slo);a.pageTitle.setTitle("SLO: "+c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
Z5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=Go(c);b.editableAccessPolicy=li(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var kCc=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.updates.map(function(d){return Gpc(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g=Z5.prototype;
g.loadUserAccess=function(a){var b=this;uG(this.userAccess,"admin",vn("SLO",qi(a))).then(function(c){b.isAdminInternal=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!ki(this.slo,this.editableCopy)};g.hasUnsavedAccessPolicyChanges=function(){return!ki(this.flattenedAccessPolicy,this.editableAccessPolicy)};
g.saveMetadata=function(){var a=this;lCc(this.slo.elements,this.editableCopy.elements)?this.save():this.confirmationDialogService.open({title:"Save SLO changes?",content:to(Uo("Any changes to the rules will need to be propagated to all impacted issues. Depending on the number of affected issues, this may take a few hours to fully fan-out and reindex."),so("br"),so("br"),Uo("Please combine changes into as few updates as possible.")),onConfirm:function(){a.save()},onDismiss:St})};
var Sib=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.isArchived=b;a.save()};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Uo("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:St}):c()}},lCc=function(a,b){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c],f;if(f=d.metric===e.metric&&d.matcher===e.matcher)d=d.objective,e=e.objective,f=!d&&!e||!!d&&
!!e&&d.seconds===e.seconds;if(!f)return!1}return!0};
Z5.prototype.save=function(){var a=this,b=this.editableCopy;WF(this.butterBar,"Saving SLO ID "+b.sloId+"...");this.isUpdating=!0;this.sloApi.update(b).then(function(c){var d='Changes to SLO "'+c.name+'" saved.';lCc(a.slo.elements,a.editableCopy.elements)||(d+=" Propagating this change may take several hours.");WF(a.butterBar,d);a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=li(c);a.sloUpdatesApi.invalidateCache(a.slo.sloId);a.analytics.trackEvent(xp.EDIT_SLO,"update")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}).finally(function(){a.isUpdating=!1})};Z5.prototype.saveAccessPolicy=function(){var a=this;this.isRevokingAdmin()?this.confirmationDialogService.open({title:"Change SLO admins",content:Uo("You are about to change the administrator privileges for this SLO. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){a.doSaveAccessPolicy()},onDismiss:St}):this.doSaveAccessPolicy()};
Z5.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Ho(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;WF(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.sloId,b).then(function(c){WF(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=Go(c);a.editableAccessPolicy=li(a.flattenedAccessPolicy);a.loadUserAccess(a.slo.sloId);a.analytics.trackEvent(xp.EDIT_SLO,
"updateAccessPolicy")},function(c){a.butterBar.showWarning(tn(c),0)}).finally(function(){a.isUpdating=!1})};Z5.prototype.isRevokingAdmin=function(){return this.isRevokingDirectAdmin()};
var jCc=function(a,b){kCc(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&"buganizer-system@google.com"===zi(c.author)&&(a.isImportedFromBugScope=!0);d.author&&"buganizer-system@google.com"===zi(d.author)&&(a.isUneditedFromBugScope=!0)}})};g=Z5.prototype;
g.isRevokingDirectAdmin=function(){if(ki(this.flattenedAccessPolicy.admins,this.editableAccessPolicy.admins))return!1;var a="USER:"+this.currentUserEmail;return this.flattenedAccessPolicy.admins.includes(a)&&!this.editableAccessPolicy.admins.includes(a)};
g.revertMetadataChanges=function(){var a=this;lCc(this.slo.elements,this.editableCopy.elements)?this.editableCopy=li(this.slo):this.confirmationDialogService.open({title:"Revert SLO changes?",content:to(Uo("Revert all changes to this SLO?")),onConfirm:function(){a.editableCopy=li(a.slo)},onDismiss:St})};g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=li(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating};
g.back=function(){V_(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdminInternal};g.showUpdateHistoryModal=function(){var a=this;kCc(this,this.slo.sloId).then(function(){a.matDialogService.open(E4,{width:"600px",data:{updateDiffs:a.historyDiffs}});a.analytics.trackEvent(xp.UPDATE_HISTORY_MODAL,"open");a.analytics.trackEvent(xp.EDIT_SLO,"viewHistory")})};
Z5.\u0275fac=function(a){return new (a||Z5)(z(aO),z(wE),z(xE),z(U_),z(VF),z(lG),z(Us),z(yL),z(UW),z(sG),z(nG),z(vW),z(Y5),z(Q_),z(XF),z(Uz),z(zH),z(zJ),z(DF))};
Z5.\u0275cmp=od({type:Z5,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&zg(CT,5,ae);if(a&2){var c;yg(c=Bg())&&(b.tabs=c)}},features:[Jf],decls:7,vars:2,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],[4,"ngIf"],[1,"bv2-view-loading"],[1,"edit-resource-header"],[1,"vertical-centered"],["gmat-tabs","",1,"bv2-tab-bar",
3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel","edit-slo-basics-form"],["name","sloBasicsForm"],["sloBasicsForm","ngForm"],[1,"edit-field"],["for","slo-name",1,"required"],[1,"edit-field-header"],["type","text","id","slo-name","name","slo-name",3,"required","ngModel","disabled","ngModelChange"],["for","slo-description"],["id","slo-description","name","slo-description",3,"ngModel","disabled","ngModelChange"],["class","edit-field permission-toggle",
3,"bv2-edit-resource-readonly",4,"ngIf"],["id","bs-warning",4,"ngIf"],[3,"isDisabled","collection","onCollectionUpdate","onValidation"],["id","bv2-slo-edit-buttons"],[1,"edit-button-row"],[1,"edit-button-group"],["title","View history for 'Basic Information'",3,"onAction"],["class","edit-button-group",4,"ngIf"],["id","access","label","Access Control"],[1,"edit-resource-panel"],["name","accessControlForm","novalidate",""],["for","slo-acl-admins"],[1,"edit-field-note"],[3,"users","usersChange","isValid"],
["for","slo-acl-readers"],[3,"users","includeAliases","includeViewAliases","usersChange","isValid"],["target","_blank",3,"href"],["class","edit-button-row",4,"ngIf"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],[3,"checked","disabled","change"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["id","bs-warning"],["target","_blank","href","https://goto.google.com/buganizer-bugscope-slo-sync"],["format","fill","tooltip","Save any changes to the SLO",3,"disabled",
"onAction"],["tooltip","Discard any changes",3,"disabled","onAction"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled","onAction",4,"ngIf"],["tooltip","Unarchive the SLO and allow new usages",3,"disabled","onAction",4,"ngIf"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled","onAction"],["tooltip","Unarchive the SLO and allow new usages",3,"disabled","onAction"],["format","fill",3,"disabled","onAction"],[3,"onAction"]],template:function(a,
b){a&1&&(D(0,"div",0)(1,"div",1)(2,"b-button",2),L("onAction",function(){return b.back()}),G(3,"b-icon",3),F()()(),D(4,"div",4),P(5,Pib,2,0,"div",5),P(6,Xib,55,31,"div",6),F());a&2&&(w(5),C("ngIf",b.isLoading),w(1),C("ngIf",!b.isLoading&&b.slo&&b.slo.sloId&&b.editableCopy))},dependencies:[bJ,Ev,pw,Tg,hw,iw,zw,ow,mw,rU,bD,DT,CT,nY,PK,J_,MJ],encapsulation:2});var mCc="focus-indicator title type team id assignee status menu".split(" "),nCc="focus-indicator drag-handle title type id assignee status menu".split(" "),oCc="priority title assignee status id modifiedTime".split(" "),pCc="focus-indicator drag-handle title assignee status id menu".split(" ");var qCc=Mj().user.email,ms={ASSIGNED_TO_ME:{key:"ASSIGNED_TO_ME",displayAs:"Assigned to me",check:function(a){var b,c=null==(b=a.snapshot[0].assigneeUser)?void 0:b.emailAddress;return c?c===qCc&&Hn(a):!1},queryFragment:"assignee:me status:open",tooltip:"Open issues with me as the assignee"},OPEN:{key:"OPEN",displayAs:"Open",check:function(a){return Hn(a)},queryFragment:"status:open",tooltip:'Issues that match "status:open"'},FIXED:{key:"FIXED",displayAs:"Fixed",check:function(a){return Lza(a,"FIXED")},
queryFragment:"status:fixed"},BROAD_IN_PROGRESS:{key:"BROAD_IN_PROGRESS",displayAs:"Assigned",check:function(a){return Lza(a,"ASSIGNED")||Lza(a,"ACCEPTED")},queryFragment:"status:(assigned | accepted)",tooltip:"Issues that are either in progress or assigned to someone"},NEWLY_FILED:{key:"NEWLY_FILED",displayAs:"Newly filed",check:function(a){var b=void 0===b?6048E5:b;var c=Date.now(),d,e,f=(null!=(e=null==(d=a.aggregatedData)?void 0:d.createdTimeMicros)?e:0)/1E3;return c-f<b&&!Tza(a)&&Hn(a)},queryFragment:"created:7d commentcount<2 status:open",
tooltip:"Open issues created in the last seven days that have not been modified"},RECENTLY_ACTIVE:{key:"RECENTLY_ACTIVE",displayAs:"Recently active",check:function(a){var b=void 0===b?6048E5:b;var c=Date.now(),d,e=(null!=(d=a.majorModifiedTimeMicros)?d:0)/1E3;return c-e<b&&Tza(a)&&Hn(a)},queryFragment:"modified:7d commentcount>1 status:open",tooltip:'Open issues with activity in the last seven days (excluding "creation")'}};var rCc=qh("indicator",[th("active-asc, asc",sh({transform:"translateY(0px)"})),th("active-desc, desc",sh({transform:"translateY(10px)"})),uh("active-asc <=> active-desc",rh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),sCc=qh("leftPointer",[th("active-asc, asc",sh({transform:"rotate(-45deg)"})),th("active-desc, desc",sh({transform:"rotate(45deg)"})),uh("active-asc <=> active-desc",rh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),tCc=qh("rightPointer",[th("active-asc, asc",sh({transform:"rotate(45deg)"})),th("active-desc, desc",
sh({transform:"rotate(-45deg)"})),uh("active-asc <=> active-desc",rh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),uCc=qh("arrowOpacity",[th("desc-to-active, asc-to-active, active",sh({opacity:1})),th("desc-to-hint, asc-to-hint, hint",sh({opacity:.54})),th("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",sh({opacity:0})),uh("* => asc, * => desc, * => active, * => hint, * => void",rh("0ms")),uh("* <=> *",rh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),vCc=qh("arrowPosition",[uh("* => desc-to-hint, * => desc-to-active",
rh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[sh({transform:"translateY(-25%)"}),sh({transform:"translateY(0)"})]})),uh("* => hint-to-desc, * => active-to-desc",rh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[sh({transform:"translateY(0)"}),sh({transform:"translateY(25%)"})]})),uh("* => asc-to-hint, * => asc-to-active",rh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[sh({transform:"translateY(25%)"}),sh({transform:"translateY(0)"})]})),uh("* => hint-to-asc, * => active-to-asc",
rh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[sh({transform:"translateY(0)"}),sh({transform:"translateY(-25%)"})]})),th("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",sh({transform:"translateY(0)"})),th("hint-to-desc, active-to-desc, desc",sh({transform:"translateY(-25%)"})),th("hint-to-asc, active-to-asc, asc",sh({transform:"translateY(25%)"}))]),wCc=qh("allowChildren",[uh("* <=> *",[wh("@*",vh())])]);var $5=function(){this.changes=new B.Subject};$5.\u0275fac=function(a){return new (a||$5)};$5.\u0275prov=$c({token:$5,factory:$5.\u0275fac,providedIn:"root"});var xCc={provide:$5,deps:[[new au,new bu,$5]],useFactory:function(a){return a||new $5}};var yCc=new Ad("MAT_SORT_DEFAULT_OPTIONS"),zCc=moa(Th(function(){})),a6=function(a){var b=zCc.call(this)||this;b._defaultOptions=a;b.sortables=new Map;b._stateChanges=new B.Subject;b.start="asc";b._direction="";b.sortChange=new Yu;return b};W(a6,zCc);g=a6.prototype;g.register=function(a){this.sortables.set(a.id,a)};g.deregister=function(a){this.sortables.delete(a.id)};
g.sort=function(a){if(this.active!=a.id)this.active=a.id,this.direction=a.start?a.start:this.start;else{if(a){var b,c,d,e=null!=(d=null!=(c=null==a?void 0:a.disableClear)?c:this.disableClear)?d:!(null==(b=this._defaultOptions)||!b.disableClear);b=["asc","desc"];"desc"==(a.start||this.start)&&b.reverse();e||b.push("");a=b.indexOf(this.direction)+1;a>=b.length&&(a=0);a=b[a]}else a="";this.direction=a}this.sortChange.emit({active:this.active,direction:this.direction})};g.ngOnInit=function(){this._markInitialized()};
g.ngOnChanges=function(){this._stateChanges.next()};g.ngOnDestroy=function(){this._stateChanges.complete()};Qh.Object.defineProperties(a6.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}},disableClear:{configurable:!0,enumerable:!0,get:function(){return this._disableClear},set:function(a){this._disableClear=ah(a)}}});a6.\u0275fac=function(a){return new (a||a6)(z(yCc,8))};
a6.\u0275dir=sd({type:a6,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Jf,Fd]});var ACc=Th(function(){}),b6=function(a,b,c,d,e,f,h,k){var q=ACc.call(this)||this;q._intl=a;q._changeDetectorRef=b;q._sort=c;q._columnDef=d;q._focusMonitor=e;q._elementRef=f;q._ariaDescriber=h;q._showIndicatorHint=!1;q._viewState={};q._arrowDirection="";q._disableViewStateAnimation=!1;q.arrowPosition="after";q._sortActionDescription="Sort";if(null==k?0:k.arrowPosition)q.arrowPosition=null==k?void 0:k.arrowPosition;q._handleStateChanges();return q};W(b6,ACc);g=b6.prototype;
g.ngOnInit=function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name);this._updateArrowDirection();this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection});this._sort.register(this);this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container");this._updateSortActionDescription(this._sortActionDescription)};
g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=!!b;b!==a._showIndicatorHint&&(a._setIndicatorHintVisible(b),a._changeDetectorRef.markForCheck())})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._sort.deregister(this);this._rerenderSubscription.unsubscribe()};
g._setIndicatorHintVisible=function(a){this._isDisabled()&&a||(this._showIndicatorHint=a,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))};g._setAnimationTransitionState=function(a){this._viewState=a||{};this._disableViewStateAnimation&&(this._viewState={toState:a.toState})};
g._toggleOnInteraction=function(){this._sort.sort(this);if("hint"===this._viewState.toState||"active"===this._viewState.toState)this._disableViewStateAnimation=!0};g._handleClick=function(){this._isDisabled()||this._sort.sort(this)};g._handleKeydown=function(a){this._isDisabled()||32!==a.keyCode&&13!==a.keyCode||(a.preventDefault(),this._toggleOnInteraction())};g._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)};
g._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection};g._getArrowViewState=function(){var a=this._viewState.fromState;return(a?a+"-to-":"")+this._viewState.toState};g._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start};g._isDisabled=function(){return this._sort.disabled||this.disabled};
g._getAriaSortAttribute=function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"};g._renderArrow=function(){return!this._isDisabled()||this._isSorted()};g._updateSortActionDescription=function(a){if(this._sortButton){var b;null==(b=this._ariaDescriber)||cy(b,this._sortButton,this._sortActionDescription);var c;null==(c=this._ariaDescriber)||c.describe(this._sortButton,a)}this._sortActionDescription=a};
g._handleStateChanges=function(){var a=this;this._rerenderSubscription=(0,B.merge)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){if(a._isSorted()){a._updateArrowDirection();if("hint"===a._viewState.toState||"active"===a._viewState.toState)a._disableViewStateAnimation=!0;a._setAnimationTransitionState({fromState:a._arrowDirection,toState:"active"});a._showIndicatorHint=!1}!a._isSorted()&&a._viewState&&"active"===a._viewState.toState&&(a._disableViewStateAnimation=
!1,a._setAnimationTransitionState({fromState:"active",toState:a._arrowDirection}));a._changeDetectorRef.markForCheck()})};Qh.Object.defineProperties(b6.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}},disableClear:{configurable:!0,enumerable:!0,get:function(){return this._disableClear},set:function(a){this._disableClear=ah(a)}}});
b6.\u0275fac=function(a){return new (a||b6)(z($5),z(xv),z(a6,8),z("MAT_SORT_HEADER_COLUMN_DEF",8),z(Ow),z(ae),z(by,8),z(yCc,8))};
b6.\u0275cmp=od({type:b6,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&L("click",function(){return b._handleClick()})("keydown",function(c){return b._handleKeydown(c)})("mouseenter",function(){return b._setIndicatorHintVisible(!0)})("mouseleave",function(){return b._setIndicatorHintVisible(!1)});a&2&&(Nf("aria-sort",b._getAriaSortAttribute()),Xf("mat-sort-header-disabled",b._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header",
"id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[Jf],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],
[1,"mat-sort-header-pointer-middle"]],template:function(a,b){a&1&&(eg(),D(0,"div",0)(1,"div",1),fg(2),F(),P(3,$ib,6,6,"div",2),F());a&2&&(Xf("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before","before"===b.arrowPosition),Nf("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),w(3),C("ngIf",b._renderArrow()))},dependencies:[Ev],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],
encapsulation:2,data:{animation:[rCc,sCc,tCc,uCc,vCc,wCc]},changeDetection:0});var c6=function(a,b,c){Y.call(this);var d=this;this.issueFridge=a;this.router=b;this.domSafe=c;this.isOpen=function(e){return Hn(e)};this.getAssigneeString=function(e){var f,h;e=zi(null==e?void 0:null==(f=e.snapshot)?void 0:null==(h=f[0])?void 0:h.assigneeUser);return yn(e)?e:void 0};this.getPriority=Rjb;this.getModifiedTimeMicros=Sjb;this.issueIds$=new B.BehaviorSubject([]);this.menuItemFactory=function(){return[]};this.optionsInternal={};this.rowLimit$=new B.BehaviorSubject(this.options.rowLimit);
this.internalFilters=new jO;this.tableColumns=[].concat(p(mCc));this.activeSort$=new B.BehaviorSubject(void 0);this.allRows$=this.issueIds$.pipe(Hk(),A(function(e){return e.map(function(f){return{id:f,issue$:d.issueFridge.watch(f)}})}),wf({refCount:!0,bufferSize:1}));this.allIssuesAreLoaded$=this.allRows$.pipe(zf(function(e){return(0,B.combineLatest)(e.map(function(f){return f.issue$.pipe(yf(null))}))}),A(function(e){return e.every(function(f){return null!==f})}));this.unarchivedRows$=this.allRows$.pipe(hf(this.allIssuesAreLoaded$),
A(function(e){e=l(e);var f=e.next().value;return e.next().value?f.filter(function(h){var k;return!(null==(k=Jn(h))?0:k.isArchived)}):f}));this.unarchivedRows$.pipe(A(function(e){return e.length}));this.sortRows=(0,B.pipe)(hf(this.activeSort$,this.allIssuesAreLoaded$),A(function(e){e=l(e);var f=e.next().value,h=e.next().value;return e.next().value?Tjb(f,h):f}));this.filterRows=(0,B.pipe)(hf(this.internalFilters.value$),zf(function(e){e=l(e);var f=e.next().value,h=e.next().value;return 0===h.size?(0,B.of)(f):
(0,B.combineLatest)(f.map(function(k){return k.issue$})).pipe(A(function(k){return f.filter(function(q,u){return!k[u]||Yib(k[u],h)})}))}));this.limitRows=(0,B.pipe)(hf(this.rowLimit$),A(function(e){var f=l(e);e=f.next().value;return(f=f.next().value)?e.slice(0,f):e}));this.rows$=this.unarchivedRows$.pipe(this.filterRows,this.limitRows,this.sortRows);this.rowCountAfterFilters$=this.unarchivedRows$.pipe(this.filterRows,A(function(e){return e.length}));this.hiddenRowCount$=(0,B.combineLatest)([this.unarchivedRows$,
this.rows$]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e.length-f.length}),mf());this.trackBy=function(e,f){return f.id};this.correctedDisplayedRows=new Cg};W(c6,Y);c6.\u0275dir=Y.\u0275dir;g=c6.prototype;g.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(c){b.navigateToIssue(c,a)},title:"Go to issue",icon:"arrow-forward"}].concat(p(this.menuItemFactory(a)))};
g.ngOnInit=function(){this.initialSort&&this.initialSort.direction&&this.activeSort$.next(this.initialSort)};
g.ngAfterViewInit=function(){var a=this;(0,B.combineLatest)([this.rows$,this.displayedRows.changes.pipe(yf(void 0))]).pipe(Af(this.destroyed$)).subscribe(function(b){b=l(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[d.row.id,d]}));b=b.map(function(d){return c.get(d.id)}).filter(Boolean);a.correctedDisplayedRows.reset(b);xg(a.correctedDisplayedRows)});this.focusManager=ly(new Tgc(this.correctedDisplayedRows,Qjb))};
g.navigateToIssue=function(a,b){!b||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(b=this.getIssueUrl(b),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?kp(this.domSafe,b):ws(this.router,b))};g.onRowKeydown=function(a,b){this.focusManager.onKeydown(b)};g.onSortChange=function(a){this.activeSort$.next(a)};g.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):Qk(a)};
Qh.Object.defineProperties(c6.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(null!=a?a:[])}},options:{configurable:!0,enumerable:!0,set:function(a){this.optionsInternal=a;this.rowLimit$.next(a.rowLimit)},get:function(){return this.optionsInternal}},filters:{configurable:!0,enumerable:!0,set:function(a){this.internalFilters.reset(null!=a?a:[])}}});c6.\u0275fac=function(a){return new (a||c6)(z(GH),z(WD),z(zL))};
c6.\u0275cmp=od({type:c6,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&zg(pU,5);if(a&2){var c;yg(c=Bg())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",options:"options",issueUrlFactory:"issueUrlFactory",filters:"filters",tableColumns:"tableColumns"},features:[Jf],decls:42,vars:11,consts:[["mat-table","","matSort","",1,"full-width",3,"dataSource","trackBy","matSortActive","matSortDirection","matSortChange"],["matColumnDef",
"focus-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","type",4,"matHeaderCellDef"],["matColumnDef","assignee"],["mat-header-cell","","mat-sort-header","assignee",4,"matHeaderCellDef"],["matColumnDef","reporter"],["mat-header-cell","","mat-sort-header","reporter",4,"matHeaderCellDef"],["matColumnDef","priority"],
["mat-header-cell","","mat-sort-header","priority",4,"matHeaderCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],["matColumnDef","team"],["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["matColumnDef","modifiedTime"],["mat-header-cell","","mat-sort-header","modifiedTime",4,"matHeaderCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick",
"","class","clickable",3,"row","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns"],["class","muted margin-top flex-kids-x align-items-center",4,"ngIf"],["mat-header-cell",""],["tabindex","-1","mat-cell",""],["mat-cell",""],[3,"id"],[3,"issue","issueUrlFactory"],["mat-header-cell","","mat-sort-header","type"],[3,"issue"],["mat-header-cell","","mat-sort-header","assignee"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["size","medium",3,"email",4,"ngIf"],["size",
"medium",3,"email"],["mat-header-cell","","mat-sort-header","reporter"],["mat-header-cell","","mat-sort-header","priority"],[3,"issuePriority"],["mat-header-cell","","mat-sort-header","status"],["mat-header-cell","","mat-sort-header","createdTime"],["mat-header-cell","","mat-sort-header","modifiedTime"],[4,"ngIf","ngIfElse"],["noData",""],["mode","relativepast",3,"timestamp"],["buttonLabel","More options",3,"menuItems","click"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",
3,"row","click","mouseup","focusin","keydown"],[1,"muted","margin-top","flex-kids-x","align-items-center"],["noLimit",""],["mat-button","",1,"gmat-button",3,"click"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"]],template:function(a,b){a&1&&(D(0,"table",0),L("matSortChange",function(e){return b.onSortChange(e)}),T(1,"async"),T(2,"async"),I(3,1),P(4,ajb,1,0,"th",2),P(5,bjb,1,0,"td",3),K(),I(6,4),P(7,cjb,2,0,"th",2),P(8,djb,2,1,"td",5),K(),I(9,6),P(10,ejb,2,0,"th",2),P(11,fjb,3,
4,"td",5),K(),I(12,7),P(13,gjb,2,0,"th",8),P(14,hjb,3,3,"td",5),K(),I(15,9),P(16,kjb,4,2,"th",10),P(17,qjb,4,2,"td",5),K(),I(18,11),P(19,rjb,2,0,"th",12),P(20,sjb,3,3,"td",5),K(),I(21,13),P(22,tjb,2,0,"th",14),P(23,ujb,2,1,"td",5),K(),I(24,15),P(25,vjb,2,0,"th",16),P(26,wjb,3,3,"td",5),K(),I(27,17),P(28,xjb,2,0,"th",2),P(29,yjb,3,3,"td",5),K(),I(30,18),P(31,zjb,2,0,"th",19),P(32,Ajb,3,3,"td",5),K(),I(33,20),P(34,Bjb,2,0,"th",21),P(35,Ejb,4,2,"td",5),K(),I(36,22),P(37,Fjb,1,0,"th",2),P(38,Gjb,2,1,
"td",5),K(),P(39,Hjb,1,0,"tr",23),P(40,Ijb,1,1,"tr",24),F(),P(41,Pjb,3,3,"div",25));if(a&2){var c,d;C("dataSource",b.rows$)("trackBy",b.trackBy)("matSortActive",null!==(c=null==(c=V(1,7,b.activeSort$))?null:c.active)&&void 0!==c?c:"")("matSortDirection",null!==(d=null==(d=V(2,9,b.activeSort$))?null:d.direction)&&void 0!==d?d:"");w(39);C("matHeaderRowDef",b.tableColumns);w(1);C("matRowDefColumns",b.tableColumns);w(1);C("ngIf",b.options.rowLimit)}},dependencies:[Ev,Fv,Gv,Hv,qA,Ez,a6,b6,mV,$U,fV,bV,
ZU,hV,cV,eV,iV,kV,h_,pV,bU,dU,uV,gU,qV,hU,rV,pL,pU,vO,eU,PL,Kv],styles:[".mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-focus-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-row[_ngcontent-%COMP%]:focus-within   .mat-column-focus-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}"],
changeDetection:0});var d6=function(a,b,c,d){Y.call(this);var e=this;this.contextSensitiveRegistry=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.TEA_DARK=R6b;this.TEA_LIGHT=Q6b;this.getStatus=function(f){return f.snapshot[0].status};this.id$=this.contextSensitiveRegistry.getIssueId();this.searchUrl$=this.id$.pipe(A(function(f){return{path:"/issues",params:{q:"blockedbyid:"+f}}}));this.issue$=this.id$.pipe(zf(this.issues.watch));this.blockingIds$=this.issue$.pipe(A(function(f){var h;return null!=(h=null==f?
void 0:f.snapshot[0].blockingIssueId)?h:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(zf(this.issues.watchSet));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(A(function(f){return f.filter(Hn)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(A(function(f){return f.map(function(h){return String(h.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(A(function(f){return f.filter(function(h){return Kza(h)})}));this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(A(function(f){return f.map(function(h){return String(h.issueId)})}));
this.thinking$=this.issues.thinking$;this.getMenuItems=function(f){return[{type:"action",label:"Remove this relationship",action:function(){e.onClickRemove(f)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(f){var h=Gk(e.id$);null!=h&&HH(e.issues,"ADD","BLOCKING",h,f).catch(e.gotErr)};this.gotErr=function(f){e.snackBar.open(tn(f)||"Error with network request","close",{panelClass:"error"})}};W(d6,Y);d6.\u0275dir=Y.\u0275dir;
var Ujb=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)};d6.prototype.onClickRemove=function(a){var b=Gk(this.id$);null!=b&&HH(this.issues,"REMOVE","BLOCKING",b,[String(a)]).catch(this.gotErr)};d6.\u0275fac=function(a){return new (a||d6)(z(BI),z(GH),z(MV),z(SF))};
d6.\u0275cmp=od({type:d6,selectors:[["ng-component"]],features:[Jf],decls:5,vars:6,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","pos-tr padded",4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",1,"light-only",3,"src"],["aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/block-issue",
"target","_blank",1,"nowrap"],["mat-flat-button","","color","primary","matTooltip","Add something this issue is blocking",1,"gmat-button","small",3,"click"],[4,"ngIf","ngIfElse"],["notLoaded",""],[1,"margin-s-top","flex-kids-x","gap-s"],[1,"section-heading","muted"],["noBlockedAndOpen",""],[3,"issueIds","menuItemFactory",4,"ngIf"],[3,"issueIds","menuItemFactory"],[1,"muted","margin-bottom"],[1,"unstyled","reverse-padded-sides"],[4,"ngFor","ngForOf"],[1,"padded-x",3,"routerLink"],[1,"right"],["mat-icon-button",
"","aria-label","",1,"gmat-button","invisible"],["mat-button","","color","primary",1,"gmat-button","small",3,"routerLink","queryParams"],[1,"pos-tr","padded"]],template:function(a,b){a&1&&(D(0,"section",0),P(1,hkb,4,2,"ng-container",1),T(2,"async"),F(),P(3,ikb,2,0,"aside",2),T(4,"async"));a&2&&(w(1),C("ngIf",V(2,2,b.blockingIds$)),w(2),C("ngIf",V(4,4,b.thinking$)))},dependencies:[Dv,Ev,YD,Ez,Fz,FB,MJ,c6,Kv],styles:["[_nghost-%COMP%]{display:block;padding:8px}.b-chip[_ngcontent-%COMP%]{margin:-3px 0;margin-right:0}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}b-issues-table[_ngcontent-%COMP%] + .section-heading[_ngcontent-%COMP%]{margin-top:16px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px;padding-left:16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:240px;min-height:230px}\n/*# sourceMappingURL=issue_blocking.css.map */"],
changeDetection:0});var e6=function(){};e6.\u0275fac=function(a){return new (a||e6)};e6.\u0275mod=qd({type:e6});e6.\u0275inj=ad({providers:[xCc],imports:[Sv,Ty]});var f6=function(){};f6.\u0275fac=function(a){return new (a||f6)};f6.\u0275mod=qd({type:f6});f6.\u0275inj=ad({imports:[ay,Qx,zx,aD,Dw,SB,e6,AV,HT,FC,Ew,bE,j_,wV,cJ,xV,rL,AK,qU,NO,sV,kM]});var g6=function(){};g6.\u0275fac=function(a){return new (a||g6)};g6.\u0275mod=qd({type:g6});g6.\u0275inj=ad({imports:[aD,zx,Qx,Dw,Ew,bE,SB,HT,FC,GV,CK,rL,AK,f6]});var h6=function(){this.emails=[]};h6.\u0275fac=function(a){return new (a||h6)};h6.\u0275cmp=od({type:h6,selectors:[["avatar-bunch"]],inputs:{emails:"emails"},decls:2,vars:5,consts:[["class","margin-s-right","size","medium",3,"email",4,"ngFor","ngForOf"],["size","medium",1,"margin-s-right",3,"email"]],template:function(a,b){a&1&&(P(0,jkb,1,1,"b-user-image",0),T(1,"slice"));a&2&&C("ngForOf",lka(1,1,b.emails,8))},dependencies:[Dv,vO,Rv],encapsulation:2});var okb=["assigned-to-me","recent-stuff-i-follow"];var rkb=function(){return[]},i6=function(){this.makeCritiqueUrl=kkb;this.submitted=[];this.pending=[]};i6.\u0275fac=function(a){return new (a||i6)};
i6.\u0275cmp=od({type:i6,selectors:[["cl-counts"]],inputs:{submitted:"submitted",pending:"pending"},decls:1,vars:1,consts:[["class","flex-kids-x align-items-center",4,"ngIf"],[1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","","src","https://static.corp.google.com/devtools/codereview/new_logo_only.svg",1,"logo"],["target","_blank","title","Number of total CLs and pending CLs associated with all of these issues",1,"subtle-link",3,"href"],["target","_blank","class","subtle-link","title",
"Number of pending CLs associated with all of these issues",3,"href",4,"ngIf"],["target","_blank","title","Number of pending CLs associated with all of these issues",1,"subtle-link",3,"href"]],template:function(a,b){a&1&&P(0,tkb,7,3,"div",0);a&2&&C("ngIf",b.submitted.length+b.pending.length)},dependencies:[Ev],styles:[".logo[_ngcontent-%COMP%] {\n      width: 20px;\n    }\n    a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good)\n    }"],changeDetection:0});var j6=function(){this.joinerStr=""};Qh.Object.defineProperties(j6.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(null!=a){var b=Wza(1049928)(a);this.startDate=yza(null==b?void 0:b.dateValue);a=Wza(1049953)(a);this.endDate=yza(null==a?void 0:a.dateValue);this.startDateShortStr=zza(this.startDate);this.endDateShortStr=zza(this.endDate);this.joinerStr=this.endDate?"\u2192":""}}}});j6.\u0275fac=function(a){return new (a||j6)};
j6.\u0275cmp=od({type:j6,selectors:[["issue-timeframe"]],inputs:{issue:"issue"},decls:1,vars:1,consts:[["class","flex-kids-x align-items-center",4,"ngIf"],[1,"flex-kids-x","align-items-center"],["svgIcon","calendar_month_24px","title","Start date and/or end date for this project",1,"icon-m","margin-xs-right"],["class","margin-xs-right date",3,"title",4,"ngIf"],["class","date",3,"title",4,"ngIf"],[1,"margin-xs-right","date",3,"title"],[1,"date",3,"title"]],template:function(a,b){a&1&&P(0,wkb,4,2,"div",
0);a&2&&C("ngIf",b.startDate||b.endDate)},dependencies:[Ev,qA,Nv],styles:[".date[_ngcontent-%COMP%] {\n      display: inline-block;\n    }"],changeDetection:0});var k6=function(){this.makePie=lkb;this.useXofYLabel=!1};k6.\u0275fac=function(a){return new (a||k6)};k6.\u0275cmp=od({type:k6,selectors:[["progress-pie"]],inputs:{closed:"closed",total:"total"},decls:1,vars:1,consts:[["class","flex-kids-x align-items-center",3,"title","click",4,"ngIf"],[1,"flex-kids-x","align-items-center",3,"title","click"],[1,"pie","margin-s-right"]],template:function(a,b){a&1&&P(0,xkb,7,13,"div",0);a&2&&C("ngIf",0<b.total)},dependencies:[Ev,Qv],encapsulation:2,changeDetection:0});var zkb=function(){return[]},l6=function(a,b,c,d){Y.call(this);var e=this;this.issueRelationshipsFridge=a;this.metadataFridge=b;this.issueFridge=c;this.changelistFridge=d;this.id$=new B.ReplaySubject(1);this.issue$=this.id$.pipe(zf(this.issueFridge.watchOne));this.metadata$=this.id$.pipe(zf(this.metadataFridge.watchOne));this.closedAndTotal$=this.metadata$.pipe(A(iza));this.metadata$.pipe(A(kza));this.emails$=this.metadata$.pipe(A(lza));this.pendingCls$=this.metadata$.pipe(zf(function(f){var h;return e.changelistFridge.watchMany({pendingForIssues:null!=
(h=null==f?void 0:f.issueIds)?h:[]})}),A(function(f){return f.results}));this.subscriptions.add((0,B.merge)(this.issueRelationshipsFridge.memoryWasSet$,this.issueRelationshipsFridge.collectiveMemoryWasSet$,this.issueFridge.memoryWasSet$,this.issueFridge.collectiveMemoryWasSet$).pipe(hf(this.id$),jf(2E3)).subscribe(function(f){return void e.metadataFridge.poke(f[1])}))};W(l6,Y);l6.\u0275dir=Y.\u0275dir;Qh.Object.defineProperties(l6.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
l6.\u0275fac=function(a){return new (a||l6)(z(dI),z(BG),z(GH),z(JG))};
l6.\u0275cmp=od({type:l6,selectors:[["rollups-project"]],inputs:{id:"id"},features:[Jf],decls:9,vars:12,consts:[[1,"flex-kids-x","align-items-center","dividers-between"],[3,"closed","total",4,"ngIf"],[3,"issue"],[3,"submitted","pending",4,"ngIf"],[3,"emails",4,"ngIf"],[3,"closed","total"],[3,"submitted","pending"],[3,"emails"]],template:function(a,b){a&1&&(D(0,"section",0),P(1,ykb,1,2,"progress-pie",1),T(2,"async"),G(3,"issue-timeframe",2),T(4,"async"),P(5,Akb,2,5,"cl-counts",3),T(6,"async"),P(7,
Bkb,1,1,"avatar-bunch",4),T(8,"async"),F());a&2&&(w(1),C("ngIf",V(2,4,b.closedAndTotal$)),w(2),C("issue",V(4,6,b.issue$)),w(2),C("ngIf",V(6,8,b.metadata$)),w(2),C("ngIf",V(8,10,b.emails$)))},dependencies:[Ev,h6,i6,k6,j6,Kv],styles:["[_nghost-%COMP%]{display:block}.dividers-between[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-right:16px;margin-right:16px;border-right:1px solid;border-right-color:#dadce0;border-right-color:var(--divider)}.dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:empty, .dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{border-right:none;padding-right:0;margin-right:0}\n/*# sourceMappingURL=rollups_project.css.map */"],
changeDetection:0});var qs=function(a){this.internalArray_=m(a)};W(qs,X);qs.prototype.getFilename=function(){return Hi(this,1)};qs.prototype.setFilename=function(a){qj(this,1,a)};qs.prototype.getLineNumber=function(a){return vt(this,2,a)};qs.repeatedFields_=[2];var Fkb=function(a){this.internalArray_=m(a)};W(Fkb,X);Fkb.repeatedFields_=[2];var m6=function(a){this.internalArray_=m(a,0,m6.messageId)};W(m6,X);m6.repeatedFields_=[3];m6.messageId="b.MentionSearchResult";var n6=function(a){this.executor=a};n6.\u0275fac=function(a){return new (a||n6)(n(uD))};n6.\u0275prov=$c({token:n6,factory:n6.\u0275fac,providedIn:"root"});var o6=function(a,b,c){this.mentionsApi=a;this.refreshMonitor=b;this.analytics=c},BCc=function(a,b){var c="https://todo.corp.google.com/?issue="+b;a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=SYb(a.refreshMonitor,(0,B.defer)(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:m6}).then(Gkb).then(function(d){return{mentions:d,loadingState:"OK",link:c}}).catch(function(){return{loadingState:"ERROR",link:c}})}).pipe(yf({loadingState:"LOADING",
link:c}))).pipe(wf({refCount:!0,bufferSize:1})));return a.cachedEntry};o6.prototype.displayPackageNames=function(a){var b;a=null==(b=a.mentions)?void 0:b.packageMentionSet;var c;return 1<(null==a?void 0:a.length)||"piper"!==(null==a?void 0:null==(c=a[0])?void 0:c.packageName)};o6.prototype.trackSqueegeeClick=function(){this.analytics.trackEvent("codeMentions","clickSqueegeeLink")};o6.\u0275fac=function(a){return new (a||o6)(n(n6),n(EH),n(zH))};o6.\u0275prov=$c({token:o6,factory:o6.\u0275fac,providedIn:"root"});var q6=function(a,b,c,d,e,f,h){var k=this;this.paramsService=a;this.issueRelationshipsFridge=b;this.issueFridge=c;this.codeMentions=d;this.issueApi=e;this.eventsForIssue=f;this.activeSession=h;this.id$=this.paramsService.issueId$.pipe(lf(1E3));this.issue$=this.id$.pipe(zf(this.issueFridge.watch));this.issueEvents$=this.id$.pipe(zf(this.eventsForIssue.watch),A(function(q){var u;return null!=(u=null==q?void 0:q.events)?u:[]}));this.blockerIssueIds$=this.issue$.pipe(A(function(q){var u;return null!=
(u=null==q?void 0:q.snapshot[0].blockedByIssueId)?u:[]}),mf(ki));this.blockedIssueIds$=this.issue$.pipe(A(function(q){var u;return null!=(u=null==q?void 0:q.snapshot[0].blockingIssueId)?u:[]}),mf(ki));this.parentIds$=this.issue$.pipe(A(function(q){var u;return null!=(u=null==q?void 0:q.parentIssueIds)?u:[]}),mf(ki));this.childrenIds$=this.id$.pipe(zf(this.issueRelationshipsFridge.watch),A(function(q){var u;return null!=(u=null==q?void 0:q.relatedChildren.map(function(x){return x.targetIssueId}))?
u:[]}));this.duplicateIssueIds$=this.issue$.pipe(A(function(q){var u;return null!=(u=null==q?void 0:q.snapshot[0].duplicateIssueId)?u:[]}),mf(ki));this.blockersDualCount$=(0,B.combineLatest)([this.id$,this.blockerIssueIds$]).pipe(zf(function(q){var u=l(q);q=u.next().value;u=u.next().value;return p6(k,q,u,["BLOCKED_BY"])}),wf({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(A(rs),wf({bufferSize:1,refCount:!0}));this.blockedDualCount$=(0,B.combineLatest)([this.id$,
this.blockedIssueIds$]).pipe(zf(function(q){var u=l(q);q=u.next().value;u=u.next().value;return p6(k,q,u,["BLOCKING"])}),wf({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(A(rs),wf({bufferSize:1,refCount:!0}));this.childrenDualCount$=(0,B.combineLatest)([this.id$,this.childrenIds$]).pipe(zf(function(q){var u=l(q);q=u.next().value;u=u.next().value;return p6(k,q,u,["CHILDREN"])}),wf({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=this.childrenDualCount$.pipe(A(rs),
wf({bufferSize:1,refCount:!0}));this.parentsDualCount$=(0,B.combineLatest)([this.id$,this.parentIds$]).pipe(zf(function(q){var u=l(q);q=u.next().value;u=u.next().value;return p6(k,q,u,["PARENT"])}),wf({bufferSize:1,refCount:!0}));this.countParentsDisplay$=this.parentsDualCount$.pipe(A(rs),wf({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=(0,B.combineLatest)([this.id$,this.blockerIssueIds$,this.childrenIds$]).pipe(zf(function(q){var u=l(q);q=u.next().value;var x=u.next().value;u=u.next().value;
return p6(k,q,[].concat(p(u),p(x)),["CHILDREN","BLOCKED_BY"])}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(A(rs),wf({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=(0,B.combineLatest)([this.id$,this.duplicateIssueIds$]).pipe(zf(function(q){var u=l(q);q=u.next().value;u=u.next().value;return p6(k,q,u,["DUPLICATE"])}),wf({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(A(function(q){return q.total}),A(Ikb),wf({bufferSize:1,refCount:!0}));
this.countResourcesDisplay$=this.issue$.pipe(A(function(q){var u;return null!=(u=null==q?void 0:q.relatedLinks)?u:[]}),A(function(q){return k.activeSession.isInternalSession()?q:q.filter(function(u){return!ZEa(u)})}),A(function(q){return ss(q.length)}),A(Ikb),wf({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(cf(cl),zf(function(q){return BCc(k.codeMentions,q)}),A(function(q){var u,x;return ss(null!=(x=null==(u=q.mentions)?void 0:u.totalMentions)?x:0)}),A(Ikb),wf({bufferSize:1,refCount:!0}));
this.countCommentsDisplay$=this.issueEvents$.pipe(A(function(q){return ss(q.filter(En).length)}),A(Ikb),wf({bufferSize:1,refCount:!0}))},p6=function(a,b,c,d){d=void 0===d?[]:d;c=Tj(c);if(!b||0===c.length)return(0,B.of)({open:{count:0,exact:!0},total:{count:0,exact:!0}});d=d.map(function(e){return Jkb(b,e)}).filter(cl).map(function(e){return"("+e+")"}).join(" OR ");return 99<c.length&&d?a.issueApi.listIssues(d,{p:1,count:100}).then(function(e){e=e.issues.filter(Hn).filter(In).length;return{open:ss(e),
total:ss(c.length)}}):(0,B.combineLatest)(c.map(function(e){return a.issueFridge.watch(e)})).pipe(A(function(e){return{open:ss(e.filter(cl).filter(Hn).filter(In).length),total:ss(e.filter(function(f){return!f||In(f)}).length)}}))};q6.\u0275fac=function(a){return new (a||q6)(n(AI),n(dI),n(GH),n(o6),n(AF),n(cH),n(Us))};q6.\u0275prov=$c({token:q6,factory:q6.\u0275fac,providedIn:"root"});var r6=function(a,b,c,d,e,f,h,k,q){Y.call(this);var u=this;this.issueFridge=a;this.butterBar=b;this.analytics=c;this.refreshMonitor=d;this.contextSensitiveRegistry=e;this.issuePermissionService=f;this.issuePicker=h;this.errorHandler=k;this.counts=q;this.issueId$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.issueId$.pipe(zf(this.issueFridge.watchOne));this.filters=[];this.shouldResetFilters=new Yu;this.tableColumns=[].concat(p(mCc));this.initialSort={active:"status",direction:"asc"};
this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.blockerIds$=this.issue$.pipe(A(function(x){return null==x?void 0:x.snapshot[0]}),A(function(x){var y,E;return null!=(E=null==x?void 0:null==(y=x.blockedByIssueId)?void 0:y.map(String))?E:[]}));this.blockersCount$=this.blockerIds$.pipe(zf(function(x){return 0===x.length?(0,B.of)(0):u.counts.blockersDualCount$.pipe(A(function(y){return y.total.count}))}));this.showBlockersTable$=this.blockersCount$.pipe(A(function(x){return 0<x}),yf(!0));
this.getMenuItems=function(x){return[{type:"action",label:"Remove blocker",action:function(){CCc(u,x)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){var x=Gk(u.blockerIds$);if(null!=x){x=l(x);for(var y=x.next();!y.done;y=x.next())u.issueFridge.poke(y.value)}}))};W(r6,Y);r6.\u0275dir=Y.\u0275dir;
var Rkb=function(a){var b;return Ne(function(c){b=Gk(a.issueId$);if(null==b)return c.return();a.analytics.trackEvent(xp.EDIT_ISSUE,"update","add-blocker");return c.yield(a.issuePicker.open({title:"Add Blockers of "+b,allowMultipleIds:!0,edgeType:"blocker"},function(d){DCc(a,b,d)}),0)})},DCc=function(a,b,c){Ne(function(d){return 0===c.length?d.return():d.yield(HH(a.issueFridge,"ADD","BLOCKED_BY",b,c).catch(function(e){ZF(a.errorHandler,e)}),0)})},CCc=function(a,b){var c,d;Ne(function(e){if(1==e.nextAddress){c=
Gk(a.issueId$);if(null==c)return e.return();a.analytics.trackEvent(xp.EDIT_ISSUE,"update","remove-blocker");Oe(e,2);var f=e.yield;var h=HH(a.issueFridge,"REMOVE","BLOCKED_BY",c,[b]);return f.call(e,h,4)}if(2!=e.nextAddress)return $s(e,0);d=Re(e);a.butterBar.showWarning("Could not remove blocker "+b+". "+(sn(d)?tn(d):d));Se(e)})};r6.\u0275fac=function(a){return new (a||r6)(z(GH),z(VF),z(zH),z(EH),z(BI),z(EI),z(MV),z(XF),z(q6))};
r6.\u0275cmp=od({type:r6,selectors:[["b-blockers-table"]],viewQuery:function(a,b){a&1&&zg(c6,5);if(a&2){var c;yg(c=Bg())&&(b.issuesTable=c.first)}},inputs:{filters:"filters"},outputs:{shouldResetFilters:"shouldResetFilters"},features:[Jf],decls:16,vars:13,consts:[[1,"table-header","blockers-count","flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status","tabindex","0","matTooltip","Use blockers for issues that are preventing this issue from being resolved.",
1,"b-chip","nowrap","bad","squared","xs","keep-focus-ring"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["class","muted",4,"ngIf"],["noBlockersState",""],["addBlocker",""],[4,"ngTemplateOutlet"],[3,"issueIds","tableColumns","menuItemFactory","filters","initialSort"],[1,"muted"],[1,"subtle-link","unstyled",3,"click"],[1,"emoji"],["size","small","title","Mark an existing issue as blocker",1,"add",3,"disabled","onAction"]],template:function(a,b){a&1&&(D(0,"div",0)(1,
"h4",1)(2,"div",2),G(3,"mat-icon",3),F(),Q(4),T(5,"async"),F(),P(6,Lkb,2,1,"ng-container",4),T(7,"async"),F(),P(8,Nkb,3,3,"ng-container",5),T(9,"async"),P(10,Okb,4,2,"p",6),T(11,"async"),P(12,Qkb,6,1,"ng-template",null,7,Eg),P(14,Skb,3,3,"ng-template",null,8,Eg));if(a&2){var c=N(13);w(4);S(" Blockers ",V(5,5,b.counts.countBlockersDisplay$)," ");w(2);C("ngIf",V(7,7,b.showBlockersTable$));w(2);C("ngIf",V(9,9,b.showBlockersTable$))("ngIfElse",c);w(2);C("ngIf",V(11,11,null==b.issuesTable?null:b.issuesTable.hiddenRowCount$))}},
dependencies:[Ev,Jv,qA,FB,bJ,c6,Kv],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    b-issues-table[_ngcontent-%COMP%] {\n      display: block;\n      overflow-x: auto;\n    }"],changeDetection:0});var s6=function(){this.EMPTY_BLOCKER_LIGHT=L6b;this.EMPTY_BLOCKER_DARK=M6b;this.EMPTY_CHILD_LIGHT=N6b;this.EMPTY_CHILD_DARK=O6b};s6.\u0275fac=function(a){return new (a||s6)};
s6.\u0275cmp=od({type:s6,selectors:[["b-issue-dependencies-onboarding-dialog"]],decls:16,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-kids-x","centered-inside"],["width","601","height","480","aria-hidden","true","alt","",1,"light-only",3,"src"],["width","601","height","480","aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"centered"],["href","https://developers.google.com/issue-tracker/concepts/parent-child-relationships","target","_blank",1,"nowrap"],["mat-dialog-actions",
""],["mat-flat-button","","color","primary","matDialogClose","","cdkFocusInitial","",1,"gmat-button"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"About Dependencies"),F(),D(2,"div",1)(3,"div",2),G(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),F(),D(8,"article")(9,"p",5),Q(10," Children are used to separate a large work item (like a project) into smaller pieces. Blockers indicate that something prevents work from starting on this issue. "),D(11,"a",6),Q(12,"Learn more"),F()()()(),D(13,"div",7)(14,
"button",8),Q(15,"Ok"),F()());a&2&&(w(4),C("src",b.EMPTY_CHILD_LIGHT,re),w(1),C("src",b.EMPTY_BLOCKER_LIGHT,re),w(1),C("src",b.EMPTY_CHILD_DARK,re),w(1),C("src",b.EMPTY_BLOCKER_DARK,re))},dependencies:[Ez,Vz,Wz,Xz,Yz],styles:["article[_ngcontent-%COMP%]{text-align:center;max-width:30rem}img[_ngcontent-%COMP%]{flex-grow:1;max-width:45%;height:35.9400998336%}a[_ngcontent-%COMP%]:visited{color:#1a73e8;color:var(--link)}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.mat-dialog-actions[_ngcontent-%COMP%]{margin-bottom:8px}"],
changeDetection:0});var ECc={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},t6=function(a,b){this.data=a;this.paths=b;this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=ECc};t6.\u0275fac=function(a){return new (a||t6)(z(Tz),z(xE))};
t6.\u0275cmp=od({type:t6,selectors:[["b-issue-archive-dialog"]],decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["href","http://go/b-issue-archive","target","_blank"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"matDialogClose"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium",3,"matDialogClose"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Archive with all descendant issues?"),
F(),D(2,"div",1),Q(3),G(4,"br")(5,"br"),D(6,"a",2),Q(7,"View all descendant issues"),F(),G(8,"br"),D(9,"a",3),Q(10,"Learn more"),F()(),D(11,"div",4)(12,"button",5),Q(13,"Cancel"),F(),D(14,"button",5),Q(15," Just this one "),F(),D(16,"button",6),Q(17," Archive all "),F()());a&2&&(w(3),S(" This issue has ",b.numberOfDescendants," descendant issues. Archiving only this issue may make it difficult to find them later. Do you want to archive this issue with all descendant issues? "),w(3),hg("href",b.descendantIssuesUrl,
re),w(6),C("matDialogClose",b.ActionType.CANCEL),w(2),C("matDialogClose",b.ActionType.ARCHIVE_ONE),w(2),C("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[Ez,Vz,Wz,Xz,Yz],encapsulation:2});var u6=function(a,b,c,d,e,f,h,k,q){this.issueApi=a;this.dialog=b;this.confirmationDialogService=c;this.issueRelationshipsFridge=d;this.issueFridge=e;this.eventsForIssueFridge=f;this.paths=h;this.butterBar=k;this.editIssueService=q};
u6.prototype.submitArchivalState=function(a,b){var c=this;return Ne(function(d){if(1==d.nextAddress)return b?d.yield(c.archive(a),5):d.yield(c.editIssueService.unarchive(a),0);c.issueFridge.poke(a);c.eventsForIssueFridge.poke(a);Se(d)})};
u6.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,u,x,y;return Ne(function(E){if(1==E.nextAddress)return E.yield(Promise.all([b.getDescendants(a),(0,B.firstValueFrom)(b.issueFridge.watch(a))]),2);c=E.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;q=h;u=q.childToParents;x=q.completeResult;y=[].concat(p(u.keys()));u.set(a,k.parentIssueIds||[]);return 0===y.length?E.return(FCc(b,a,u)):x?E.return(GCc(b,a,y,u)):E.return(HCc(b,a,u))})};
var GCc=function(a,b,c,d){var e,f,h;return Ne(function(k){if(1==k.nextAddress)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},k.yield((0,B.firstValueFrom)(Pz(a.dialog.open(t6,f))),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(ICc(a,[b].concat(p(c)),d));case "ARCHIVE_ONE":return k.return(FCc(a,b,d));case "CANCEL":return k.return();default:return k.return($h(h))}})},ICc=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];
JCc(a,c);WF(a.butterBar,"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){WF(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){a.butterBar.showWarning(e);KCc(a,c)})},FCc=function(a,b,c){JCc(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){WF(a.butterBar,"Archived successfully.")}).catch(function(d){a.butterBar.showWarning(d);KCc(a,c)})},HCc=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues?",
content:jh([hh("This issue has more than 1000 descendant issues. Archiving only\n                      this issue may make it difficult to find them later. Go to\n                      issue list page and archive issues there."),kh("br",{}),kh("br",{}),kh("a",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),kh("br",{}),kh("a",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")]),cancelButtonText:"Cancel",confirmButtonText:"Just this one",
onConfirm:function(){FCc(a,b,c).then(d)},onDismiss:d})})},JCc=function(a,b){b=l(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d=l(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},KCc=function(a,b){b=[].concat(p(b.values())).flat();b=l(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
u6.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,u,x,y,E,H;return Ne(function(J){if(1==J.nextAddress)return J.yield((0,B.firstValueFrom)(kZb(b.issueRelationshipsFridge,a)),2);c=J.yieldResult;d=c.results;e=!0;f=new Map;h=l(d);for(k=h.next();!k.done;k=h.next()){q=k.value;u=l(q.relatedChildren);for(x=u.next();!x.done;x=u.next())y=x.value,E=void 0,H=null!=(E=f.get(y.targetIssueId))?E:[],H.push(q.issueId),f.set(y.targetIssueId,H);q.totalChildCount===q.relatedChildren.length||(e=!1)}return J.return({childToParents:f,
completeResult:e})})};u6.\u0275fac=function(a){return new (a||u6)(n(AF),n(Uz),n(zJ),n(dI),n(GH),n(cH),n(xE),n(VF),n(nO))};u6.\u0275prov=$c({token:u6,factory:u6.\u0275fac,providedIn:"root"});var v6=function(a){this.pathToAncestor=a},us=function(a){return new v6(a.split(">"))},LCc=function(a,b){return new v6([].concat(p(a.pathToAncestor),[b]))};v6.prototype.hash=function(){return this.pathToAncestor.join(">")};v6.prototype.equals=function(a){return!!a&&ki(this.pathToAncestor,a.pathToAncestor)};var MCc=function(a,b){a=l(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=l(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
v6.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};v6.prototype.some=function(a){return this.pathToAncestor.some(a)};v6.prototype.toString=function(){return this.hash()};
Qh.Object.defineProperties(v6.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor.length}},nodeId:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[this.size-1]}},parentNodeId:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[this.size-2]}},parentChain:{configurable:!0,enumerable:!0,get:function(){return new v6(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});var w6=function(){var a=this;this.draftRows=new Map;this.changed$=new B.Subject;this.counter=0;this.createId=function(){return String(a.counter++)}};w6.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:LCc(a,d),level:a.size-1,issue$:(0,B.of)(b),afterDraftId:null==c?void 0:c.afterDraftId,afterIssueId:null==c?void 0:c.afterIssueId,id:d,saving:!1,draftStartedAt:new Date};this.set(a,b);return b};
w6.prototype.get=function(a){var b;return null!=(b=this.draftRows.get(a.hash()))?b:[]};w6.prototype.remove=function(a){var b=a.ancestorChain.parentChain,c=this.get(b),d=c.filter(function(f){return f.id!==a.id});if(c.length!==d.length){c=l(d);for(var e=c.next();!e.done;e=c.next())e=e.value,e.afterDraftId===a.id&&(e.afterDraftId=a.afterDraftId);this.draftRows.set(b.hash(),d);this.changed$.next(this.draftRows)}};
var NCc=function(a,b){return Ne(function(c){return c.return((0,B.firstValueFrom)(a.changed$.pipe(yf(a.draftRows),A(function(d){return![].concat(p(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),cf(Boolean),A(function(){}))))})};w6.prototype.isSaving=function(){return[].concat(p(this.draftRows.values())).flat().some(function(a){return a.saving})};w6.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(p(c),[b]));this.changed$.next(this.draftRows)};var OCc={defaultExpandedChildren:10,defaultExpansionLevel:3,maxExpansion:500},PCc=function(a){var b=void 0;b=void 0===b?OCc:b;a=void 0===a?{}:a;this.config=b;this.expansionState=this.initialState=a;this.changed$=new B.ReplaySubject(1)},QCc=function(a,b){b=b.hash();return a.expansionState[b]},x6=function(a,b,c){b=b.hash();void 0===c?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},RCc=function(a,b,c){var d=!1;c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;
var f=LCc(b,e.nodeId);e.size<=a.config.defaultExpansionLevel&&void 0===QCc(a,e)&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var h=l(Object.entries(a.expansionState)),k=h.next();!k.done;k=h.next()){k=l(k.value);var q=k.next().value;k=k.next().value;q=us(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new v6(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!QCc(a,b)){var u;
a.expansionState[b.hash()]=null!=(u=a.config.defaultExpandedChildren)?u:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};var y6=function(a,b,c,d,e){this.issueApi=a;this.activeSession=b;this.issueFridge=c;this.componentFridge=d;this.componentTemplatesFridge=e;this.currentUser=Di(this.activeSession.getUserEmail())},TCc=function(a,b){var c,d,e;return Ne(function(f){if(1==f.nextAddress)return f.yield(SCc(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(mza(d,e))})},VCc=function(a,b){var c;return Ne(function(d){if(1==d.nextAddress)return d.yield(UCc(a,b),2);c=d.yieldResult;return d.return({snapshot:[c],
issueId:"",userData:void 0,aggregatedData:void 0,accessLimit:void 0,customFields:[],visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[]})})},WCc=function(a,b,c){var d;return Ne(function(e){if(1==e.nextAddress)return e.yield(UCc(a,b),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
y6.prototype.create=function(a){var b=this,c,d;return Ne(function(e){return 1==e.nextAddress?e.yield(b.issueApi.createIssue({snapshot:a}),2):3!=e.nextAddress?(c=e.yieldResult,d=c.issueId,e.yield(b.issueFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var UCc=function(a,b){var c,d,e,f,h;return Ne(function(k){if(1==k.nextAddress)return k.yield((0,B.firstValueFrom)(a.issueFridge.watch(b).pipe(cf(cl))),2);if(3!=k.nextAddress)return c=k.yieldResult,k.yield(SCc(a,String(c.snapshot[0].componentId)),3);d=k.yieldResult;e=d.component;f=d.defaultTemplate;if(c){var q={};c.snapshot[0].priority&&(q.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(q.severity=c.snapshot[0].severity);c.snapshot[0].type&&(q.type=gZb[c.snapshot[0].type])}else q={};h=Object.assign({},
{componentId:e.componentId},{inProd:!1,status:"NEW",isDeleted:!1,deletionReason:"DELETION_REASON_UNSPECIFIED",isArchived:!1,formattingMode:"UNSPECIFIED_FORMATTING_MODE",reporterUser:a.currentUser,ccUsers:[a.currentUser]},q,XCc(f),YCc(e,f));h.assigneeUser&&(h.status="ASSIGNED");return k.return(h)})},XCc=function(a){if(!a)return{};a=wc(a.snapshot,function(b){return null==b||"string"===typeof b&&Oi(b)?!1:!0});delete a.componentId;return a},YCc=function(a,b){var c=[],d,e;a=l(null!=(e=null==(d=a.componentPathInfo)?
void 0:d.allCustomField)?e:[]);e=a.next();for(d={};!e.done;d={customField$jscomp$41:d.customField$jscomp$41},e=a.next())if(d.customField$jscomp$41=e.value,d.customField$jscomp$41.required){var f=void 0;e=null!=(f=d.customField$jscomp$41.typedDefaultValue)?f:new xl({customFieldId:d.customField$jscomp$41.customFieldId});var h=f=void 0,k=void 0,q=null!=(k=null==(f=b)?void 0:null==(h=f.snapshot.customField)?void 0:h.find(function(u){return function(x){return x.customFieldId===u.customField$jscomp$41.customFieldId}}(d)))?
k:e;q&&c.push(Object.assign({},q))}return 0===c.length?{}:{customField:c}},SCc=function(a,b){var c,d,e,f,h,k;return Ne(function(q){if(1==q.nextAddress)return q.yield(Promise.all([(0,B.firstValueFrom)(a.componentTemplatesFridge.defaultTemplate$(b)),(0,B.firstValueFrom)(a.componentFridge.watch(b).pipe(cf(cl)))]),2);c=q.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return({component:k,defaultTemplate:h})})};y6.\u0275fac=function(a){return new (a||y6)(n(AF),n(Us),n(GH),n(OG),n(XG))};
y6.\u0275prov=$c({token:y6,factory:y6.\u0275fac,providedIn:"root"});var z6=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H){c=void 0===c?1:c;Y.call(this);var J=this;this.rootIssueId=a;this.quickFilters=b;this.defaultExpansionLevel=c;this.saveExpansionAtKey=d;this.analytics=e;this.butterBar=f;this.issueFridge=h;this.issuePicker=k;this.issueRelationshipsFridge=q;this.paths=u;this.router=x;this.issueCreationService=y;this.clearcut=E;this.refreshMonitor=H;this.defaultApiRequestDepth=this.defaultExpansionLevel+2;this.defaultExpandedChildren=10;this.saveExpansion=this.saveExpansionAtKey?
Os(this.saveExpansionAtKey):function(){};this.expansion=new PCc(ZCc(this));this.draftRows=new w6;this.refetchingAll$=new B.BehaviorSubject(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(zf(function(){J.refetchingAll$.next(!0);var O=Gk(J.rows$),R=[];if(!O)return Promise.resolve();R.push(lZb(J.issueRelationshipsFridge,J.rootIssueId,J.defaultApiRequestDepth));O=l(O);for(var U=O.next();!U.done;U=O.next())U=U.value,"data"===U.type&&R.push(J.issueFridge.poke(U.id)),U.level>J.defaultExpansionLevel&&
R.push(J.issueRelationshipsFridge.poke(U.id));return Promise.all(R).then(function(){J.refetchingAll$.next(!1)})}));this.rows$=(0,B.merge)(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,(0,B.scheduled)((0,B.of)({}),B.asapScheduler)).pipe(zf(function(){return kZb(J.issueRelationshipsFridge,J.rootIssueId,J.defaultApiRequestDepth)}),zf(function(){for(var O=new Map,R=l(Object.entries(J.expansion.expansionState)),U=R.next();!U.done;U=R.next()){U=l(U.value);var Z=U.next().value;
U=U.next().value;Z=us(Z).nodeId;var na=void 0;U=Math.max(U,null!=(na=O.get(Z))?na:0);O.set(Z,U)}return $Cc(J,O)}),hf(this.quickFilters.value$),zf(function(O){O=l(O);var R=O.next().value,U=O.next().value;return 0===U.size?(J.hiddenRowCount$.next(0),(0,B.of)(R)):aDc(J,R).pipe(A(function(Z){return bDc(J,R,U,Z)}))}),A(function(O){return cDc(J,O)}),wf({refCount:!0,bufferSize:1}));this.hiddenRowCount$=new B.BehaviorSubject(0);this.rootIssue$=this.issueFridge.watch(this.rootIssueId).pipe(cf(cl));this.ROOT_ROW=
{type:"data",id:this.rootIssueId,level:-1,ancestorChain:new v6([this.rootIssueId]),expandedCount:500,issue$:B.NEVER,hasChildren$:B.NEVER};this.supportsOneLineCreation=(0,B.firstValueFrom)(this.rootIssue$).then(function(O){return Xn(O.snapshot[0].componentId)}).then(function(O){return TCc(J.issueCreationService,O)});this.isOneLineCreationSupported=function(){return J.supportsOneLineCreation};this.saveExpansionAtKey&&this.subscriptions.add(this.expansion.changed$.pipe(jf(100)).subscribe(this.saveExpansion))};
W(z6,Y);z6.\u0275dir=Y.\u0275dir;z6.\u0275fac=Y.\u0275fac;
var ZCc=function(a){a=a.saveExpansionAtKey;if(null!=a){a=Ps(a)();a:if("object"!==typeof a||Object.getPrototypeOf(a)!==Object.prototype)var b=!1;else{b=l(Object.getOwnPropertyNames(a));for(var c=b.next();!c.done;c=b.next())if("number"!==typeof a[c.value]){b=!1;break a}b=!0}return b?a:void 0}},dDc=function(a,b,c){b=void 0===b?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k,q,u;Ne(function(x){switch(x.nextAddress){case 1:return d=b.nodeId,x.yield((0,B.firstValueFrom)(a.issueFridge.watch(d)),2);case 2:return(e=
x.yieldResult)?x.yield(a.supportsOneLineCreation,3):x.return();case 3:f=x.yieldResult;if(!f){x.jumpTo(4);break}return x.yield(VCc(a.issueCreationService,d),5);case 5:return h=x.yieldResult,x.return(a.draftRows.create(b,h,c));case 4:return k=e.snapshot[0].componentId,u={},x.yield(ws(a.router,a.paths.createIssue((u.component=k?String(k):void 0,u.parentIssueId=e.issueId,u.redirectUrl=$ta(a.rootIssueId),u.afterIssueId=null==(q=c)?void 0:q.afterIssueId,u))),6);case 6:return x.return()}})};
z6.prototype.addExistingChild=function(a){var b=this,c,d,e,f;Ne(function(h){if(1==h.nextAddress)return h.yield((0,B.firstValueFrom)(null!=(d=null==(c=a)?void 0:c.issue$)?d:b.rootIssue$),2);e=h.yieldResult;if(!e)return h.return();f=String(e.issueId);return h.yield(b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0,edgeType:"child"},function(k){return Ne(function(q){if(1==q.nextAddress){if(0===k.length)return q.return();b.assignParentToIssues(f,k);b.analytics.trackEvent(xp.EDIT_ISSUE,
"add","existing-child-issue");return q.yield(zo(),2)}a&&x6(b.expansion,a.ancestorChain,500);Se(q)})}),0)})};z6.prototype.saveDraft=function(a){var b=this,c;return Ne(function(d){if(1==d.nextAddress){if(a.saving||!a.title)return d.return();a.saving=!0;return d.yield(eDc(b,a),2)}return(c=d.yieldResult)?d.return(fDc(b,a,c)):d.return()})};
var eDc=function(a,b){var c,d,e,f;return Ne(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Oe(h,2),h.yield(WCc(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;$s(h,3);break;case 2:return f=Re(h),a.butterBar.showWarning("Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),h.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(0<k){var q=Math.min(k,108E5);OYb("createIssue",q,"from-tree");a.analytics.trackEvent(xp.CREATE_ISSUE,
"createIssue","time-to-create-from-tree",q);uH(a.clearcut,k,"createIssue-fromTree")}x6(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var u=l(k.draftRows.values()),x=u.next();!x.done;x=u.next()){x=l(x.value);for(var y=x.next();!y.done;y=x.next())y=y.value,y.afterDraftId===b.id&&(y.afterIssueId=q)}k.changed$.next(k.draftRows);return h.return(d)}})},fDc=function(a,b,c){var d,e,f,h,k,q;return Ne(function(u){if(1==u.nextAddress)return d=b.ancestorChain.parentNodeId,f=null!=
(e=b.afterIssueId)?e:b.afterDraftId,void 0===f||"-1"===f?u.jumpTo(2):u.yield(NCc(a.draftRows,f),2);if(4!=u.nextAddress)return u.yield(a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=u.yieldResult;k=h.errors;(null==(q=k)?0:q.length)&&a.butterBar.showWarning("Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);Se(u)})},$Cc=function(a,b,c){c=void 0===c?0:c;return(0,B.combineLatest)([a.rootIssueId].concat(p(b.keys())).map(function(d){return a.refetchingAll$.pipe(cf(function(e){return!e}),
zf(function(){return jZb(a.issueRelationshipsFridge,d)}))})).pipe(A(function(d){return d.filter(Boolean)}),zf(function(d){var e=new Map(d.map(function(f){return[f.issueId,f]}));if(c===a.defaultExpansionLevel)return(0,B.of)(e);d=gDc(a,e,c);d=new Map(d.map(function(f){return[f,a.defaultExpandedChildren]}));return $Cc(a,d,c+1).pipe(A(function(f){var h=new Map(e);f=l(f.entries());for(var k=f.next();!k.done;k=f.next()){var q=l(k.value);k=q.next().value;q=q.next().value;h.set(k,q)}return h}))}))},gDc=function(a,
b,c){var d=[];a=[{id:a.rootIssueId,level:-1}];for(var e={};0<a.length;)if(e={current$jscomp$32:e.current$jscomp$32},e.current$jscomp$32=a.pop(),e.current$jscomp$32.level===c&&d.push(e.current$jscomp$32.id),!(e.current$jscomp$32.level>c)){var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.current$jscomp$32.id))?void 0:f.relatedChildren)?h:[];a.push.apply(a,p(k.map(function(q){return function(u){return{id:u.targetIssueId,level:q.current$jscomp$32.level+1}}}(e))))}return d},cDc=function(a,b){for(var c=
[],d=[a.ROOT_ROW],e={};0<d.length;)if(e={parentRow$jscomp$1:e.parentRow$jscomp$1,childrenLevel:e.childrenLevel},e.parentRow$jscomp$1=d.pop(),"load-more-children"===e.parentRow$jscomp$1.type||"draft-issue"===e.parentRow$jscomp$1.type)c.push(e.parentRow$jscomp$1);else{e.parentRow$jscomp$1.id!==a.rootIssueId&&c.push(e.parentRow$jscomp$1);var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.parentRow$jscomp$1.id))?void 0:f.relatedChildren)?h:[];f=k.slice(0,e.parentRow$jscomp$1.expandedCount);e.childrenLevel=
e.parentRow$jscomp$1.level+1;e.parentRow$jscomp$1.expandedCount&&f.length<k.length&&(h=LCc(e.parentRow$jscomp$1.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.childrenLevel,parentIssue$:e.parentRow$jscomp$1.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(u){var x=LCc(q.parentRow$jscomp$1.ancestorChain,u.targetIssueId),y=u.targetIssueId,E=q.childrenLevel,H=a.issueRelationshipsFridge.watch(u.targetIssueId).pipe(A(wAa));
var J=q.childrenLevel;var O=x.nodeId,R=QCc(a.expansion,x);if(void 0!==R)J=R;else if(J<a.defaultExpansionLevel){var U,Z;J=Math.min(a.defaultExpandedChildren,null!=(Z=null==(U=b.get(O))?void 0:U.relatedChildren.length)?Z:0)}else J=0;return{type:"data",id:y,level:E,hasChildren$:H,ancestorChain:x,expandedCount:J,issue$:a.issueFridge.watch(u.targetIssueId)}}}(e));d.push.apply(d,p(hDc(a,k,e.parentRow$jscomp$1.ancestorChain).reverse()))}return c},hDc=function(a,b,c){var d=[].concat(p(b));a=a.draftRows.get(c);
a=l(a);var e=a.next();for(c={};!e.done;c={draft$jscomp$5:c.draft$jscomp$5},e=a.next())c.draft$jscomp$5=e.value,b.some(function(f){return function(h){return h.id===f.draft$jscomp$5.issueId}}(c))||(e=d.findIndex(function(f){return function(h){return h.id===f.draft$jscomp$5.afterDraftId||h.id===f.draft$jscomp$5.afterIssueId}}(c)),d.splice(-1===e?d.length:e+1,0,c.draft$jscomp$5));return d};
z6.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return Ne(function(k){if(1==k.nextAddress)return 0===b.length?k.return():k.yield(c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(q){return{issueId:q,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return c.butterBar.showWarning("Could not add "+e+" as child of b/"+a+". "+(null==(h=f)?void 0:h.map(function(q){return tn(q)}))),k.return();Se(k)})};
var aDc=function(a,b){for(var c=new Set,d=l(b.keys()),e=d.next();!e.done;e=d.next())c.add(e.value);b=l(b.values());for(d=b.next();!d.done;d=b.next())for(d=d.value.relatedChildren.map(function(f){return f.targetIssueId}),d=l(d),e=d.next();!e.done;e=d.next())c.add(e.value);return(0,B.combineLatest)([].concat(p(c)).map(function(f){return a.issueFridge.watch(f)})).pipe(A(function(f){return f.filter(cl)}))},bDc=function(a,b,c,d){function e(q){if(!q)return!1;var u=f.get(q),x=h.get(q);if(!u||0===u.relatedChildren.length)return x;
var y=u.relatedChildren.filter(function(E){return e(E.targetIssueId)});k+=u.relatedChildren.length-y.length;f.set(q,Object.assign({},u,{relatedChildren:y}));return 0!==y.length||x}var f=new Map(b.entries()),h=new Map(d.map(function(q){return[q.issueId,Yib(q,c)]})),k=0;e(a.rootIssueId);a.hiddenRowCount$.next(k);return f},A6=function(a,b,c,d,e,f,h,k,q,u){this.analytics=a;this.butterBar=b;this.issueFridge=c;this.issuePicker=d;this.issueRelationshipsFridge=e;this.paths=f;this.router=h;this.issueCreationService=
k;this.clearcut=q;this.refreshMonitor=u};A6.prototype.create=function(a,b,c,d){b=void 0===b?new jO:b;return new z6(a,b,c,d,this.analytics,this.butterBar,this.issueFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor)};A6.\u0275fac=function(a){return new (a||A6)(n(zH),n(VF),n(GH),n(MV),n(dI),n(xE),n(WD),n(y6),n(tH),n(EH))};A6.\u0275prov=$c({token:A6,factory:A6.\u0275fac,providedIn:"root"});var B6=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new B.Subject;this.onRowsMoved$=new B.Subject;this.placeholder=this.rootElement.querySelector(".placeholder");this.insertionBar=this.rootElement.querySelector(".insertion-bar");this.dragPreviewTemplate=this.rootElement.querySelector(".drag-preview");this.activeDrag=!1;this.onDragOver=eGb(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;
f=Vkb(k<=.25*f?"top":k>=.75*f?"bottom":"middle",h);h=f.position;f=f.rowElement;switch(h){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var u=(k=null==(u=f.querySelector(".title-location"))?void 0:u.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;u=f.offsetLeft+u;k="after"===h?f.offsetTop+
f.offsetHeight:f.offsetTop;q=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=u+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-u+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};iDc(e,f,h)}},10);this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var h,k=null==(h=f.target)?
void 0:h.closest("tr");if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var q;if("none"===(null==(q=e.currentReorderingGuide)?void 0:q.position))return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){jDc(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,kDc(e.rowSelectionModel),"mouse",4);jDc(e)})})};
B6.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(Wkb(c));lDc(this.rowSelectionModel);mDc(this);this.dragPreview=this.dragPreviewTemplate.cloneNode(!0);document.body.appendChild(this.dragPreview);this.dragPreview.style.display="block";this.dragPreview.style.top="-1000px";this.dragPreview.innerText=1===this.rowSelectionModel.selectedCount?"Moving 1 issue":"Moving "+this.rowSelectionModel.selectedCount+" issues";a.dataTransfer.setDragImage(this.dragPreview,
0,0);a.dataTransfer.dropEffect="move";a=this.rows.toArray().filter(function(d){return b.rowSelectionModel.isSelected(d.row.ancestorChain)});a=l(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var nDc=function(a,b){var c=b.row.ancestorChain.parentChain,d=a.rows.toArray().find(function(e){return c.equals(e.row.ancestorChain)});d&&a.reorder({position:"after",rowElement:d.element},[b.row.ancestorChain],"keyboard",3)},oDc=function(a,b){var c=a.rows.toArray(),d=c.findIndex(function(f){return f.row.ancestorChain.equals(b.row.ancestorChain)});if(-1!==d&&0!==d){c=c.slice(0,d).reverse();c=l(c);for(d=c.next();!d.done;d=c.next()){d=d.value;if("load-more-children"===d.row.type){d=d.element.previousElementSibling;
if(!d)continue;var e={position:"before",rowElement:d};break}if(d.row.ancestorChain.parentChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"after",rowElement:d.element};break}if(d.row.ancestorChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"current",rowElement:d.element};break}}a.reorder(e,[b.row.ancestorChain],"keyboard",2)}};
B6.prototype.moveUp=function(a){var b=a.element.previousElementSibling;if(b){if("load-more-children"===b.dataset.type){b=b.previousElementSibling;if(!b)return;b={position:"before",rowElement:b}}else b={position:"before",rowElement:b};this.reorder(b,[a.row.ancestorChain],"keyboard",0)}};
B6.prototype.moveDown=function(a){var b=this.rows.toArray();if(b=b.slice(b.findIndex(function(d){return d.row.ancestorChain.equals(a.row.ancestorChain)})+1).find(function(d){return d.row.level<=a.row.level})){var c=b.element.nextElementSibling;"load-more-children"===b.row.type?nDc(this,a):(b=c&&b.row.level<Ukb(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
B6.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=null==(b=a.target)?void 0:b.closest("tr");if(c){var d=Wkb(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":nDc(this,b);break;case "ArrowRight":oDc(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
B6.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=Wkb(a.rowElement),h=void 0,k=f;switch(a.position){case "current":k=f;h={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,h={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&h&&e.onRowsMoved$.next({movedRows:b,insertAt:h,parentAncestorChain:k,origin:c,actionMessage:Tkb(d)})})}};
var jDc=function(a){for(var b=l(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=l(a.rootElement.querySelectorAll("tr.nodrop"));for(c=b.next();!c.done;c=b.next())c.value.classList.remove("nodrop");a.rowSelectionModel.clear();a.placeholder.style.display="none";a.insertionBar.style.display="none";var d;null==(d=a.updatingNoDropRows)||d.unsubscribe();var e,f;null==(e=a.dragPreview)||null==(f=e.parentElement)||f.removeChild(a.dragPreview);
a.activeDrag=!1},iDc=function(a,b,c){if("current"!==c)a.longHoveredRow=void 0;else if(!b.classList.contains("dragging")&&!b.classList.contains("nodrop"))if(!a.longHoveredRow||a.longHoveredRow.row!==b)a.longHoveredRow={row:b,enterTime:Date.now()};else if(1E3<=Date.now()-a.longHoveredRow.enterTime&&!a.longHoveredRow.emitted){var d=a.rows.toArray().find(function(e){return Wkb(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},mDc=function(a){var b;
null==(b=a.updatingNoDropRows)||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(yf(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.row.ancestorChain.some(function(f){return d.has(f)})&&e.element.classList.add("nodrop")})};var C6=function(a){Y.call(this);var b=this;this.analytics=a;this.dragStarted$=new B.Subject;this.onRowsMoved$=new B.Subject;(0,B.merge)(this.dragStarted$,this.onRowsMoved$).pipe(Bta(),Af(this.destroyed$)).subscribe(function(c){var d=c[c.length-1].timestamp-c[0].timestamp;c=Tj(c.map(function(e){return e.event.origin}));c=1===c.length?c[0]:"mixed";b.analytics.trackEvent(xp.EDIT_ISSUE,"reorderChildren",c);OYb("reorderChildren",d,c)})};W(C6,Y);C6.\u0275dir=Y.\u0275dir;
C6.\u0275fac=function(a){return new (a||C6)(n(zH))};C6.\u0275prov=$c({token:C6,factory:C6.\u0275fac,providedIn:"root"});var D6=function(){this.changed$=new B.Subject;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};D6.prototype.init=function(a){this.visibleRows=a};D6.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var Ilb=function(a,b){var c=b.hash(),d,e=null!=(d=a.isSelectedObservableMap.get(c))?d:a.changed$.pipe(yf(a.selectedRowHashes),A(function(f){return f.has(b.hash())}),mf(),wf({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
D6.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};D6.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var lDc=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=l(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=us(e.value);for(var f=l(b),h=f.next();!h.done;h=f.next())h=h.value,MCc(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},kDc=function(a){var b=a.visibleRows.toArray().map(function(f){return f.row});b=new Map(b.filter(function(f){return"data"===f.type}).map(function(f){return[f.ancestorChain.hash(),
f]}));var c=new Set([].concat(p(a.selectedRowHashes.values())).map(function(f){return us(f)}).map(function(f){return f.nodeId})),d=[];a=l(a.selectedRowHashes.values());for(var e=a.next();!e.done;e=a.next())(e=b.get(e.value))&&(e.ancestorChain.parentChain.some(function(f){return c.has(f)})||d.push(e.ancestorChain));return d};
Qh.Object.defineProperties(D6.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this.selectedRowHashes)).map(function(a){return us(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});var pDc=function(){return["focus-indicator","load-more-children"]},E6=xp.EDIT_ISSUE,qDc={type:"data",id:"",issue$:B.NEVER,hasChildren$:B.NEVER,ancestorChain:new v6([]),level:0,expandedCount:0},F6=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J){Y.call(this);var O=this;this.issueRelationshipsFridge=a;this.router=b;this.butterBar=c;this.analytics=d;this.issueArchiveService=e;this.ngZone=f;this.elementRef=h;this.domSafe=q;this.reorderingSessionTracker=u;this.cdr=x;this.relationsTableModelFactory=y;this.liveAnnouncer=
E;this.clearcut=H;this.paths=J;this.defaultExpansionLevel=1;this.internalFilters=new jO;this.isClosed=Kza;this.tableColumns=[].concat(p(nCc));this.options={};this.trackBy=function(R,U){return U.ancestorChain.hash()+U.type};this.isLoadMoreRow=function(R,U){return"load-more-children"===U.type};this.isDataRow=function(R,U){return"data"===U.type};this.isDraftRow=function(R,U){return"draft-issue"===U.type};this.selectionModel=new D6;this.hasLogged=!1;this.correctedDisplayedRows=new Cg;this.TITLE_FIXED_OFFSET_PX=
42;this.rowDirectiveMap=new Map;this.getRowIndex=function(R){var U;return(null!=(U=Gk(O.rows$))?U:[]).findIndex(function(Z){return ts(Z,R)})};this.showError=function(R){return function(U){O.butterBar.showWarning(R+". "+(sn(U)?tn(U):U))}};this.subscriptions.add(VW(k,function(){return O.tableModel.draftRows.isSaving()||O.issueRelationshipsFridge.isSaving()},!1))};W(F6,Y);F6.\u0275dir=Y.\u0275dir;
F6.prototype.ngOnInit=function(){var a=this;this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId,this.internalFilters,this.defaultExpansionLevel,this.saveExpansionAtKey);this.rows$=(0,B.scheduled)([this.tableModel.rows$,(0,B.of)([qDc])],B.asyncScheduler).pipe(Ye(1),wf({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(zf(function(c){return(0,B.combineLatest)(c.filter(function(d){return"data"===d.type}).map(function(d){return d.issue$}))}),jf(0,B.asapScheduler));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();
rDc(a,c)}));this.rowReorderingModel=new B6(this.elementRef.nativeElement,this.correctedDisplayedRows,this.ngZone,this.selectionModel);this.subscriptions.add(this.rowReorderingModel.onLongHover$.subscribe(function(c){var d=c.row;"load-more-children"===d.type?Clb(a,d):"data"===d.type&&(c=a.tableModel.expansion,d=d.ancestorChain,QCc(c,d)||x6(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;return Ne(function(e){if(1==e.nextAddress)return pZb(a.issueRelationshipsFridge,
c.insertAt,c.movedRows.map(function(f){return{issueId:f.nodeId,parentId:f.parentNodeId}})).then(function(){return a.liveAnnouncer.announce(c.actionMessage+" successfully.")}).catch(a.showError("Unable to reorder issues")),RCc(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),e.yield((0,B.firstValueFrom)(a.correctedDisplayedRows.changes.pipe(A(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.ancestorChain.nodeId===c.movedRows[0].nodeId&&h.row.ancestorChain.parentNodeId===
c.insertAt.parentId})}),cf(Boolean),ef(6E4))),2);d=e.yieldResult;d.focus();Se(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
var rDc=function(a,b){if(!a.hasLogged&&0!==b.length){a.hasLogged=!0;var c=b.length,d=0===document.querySelectorAll("b-issue-relations-table b-expandable-issue-title-cell .collapsed").length+document.querySelectorAll('b-issue-relations-table [data-type="load-more-children"]').length;DYb(a.clearcut,"view-relations-"+(d?"all-loaded":"some-loaded"));a.analytics.trackEvent(E6,"view-relations","visible-count",c);d&&(b=b.filter(function(e){var f;return null!=(null==e?void 0:null==(f=e.snapshot[0])?void 0:
f.effort)}).length/c,c=.5<b?"most-estimated":"most-unestimated",DYb(a.clearcut,"view-relations-"+c),a.analytics.trackEvent(E6,"view-relations","ratio-estimated",b),a.analytics.trackEvent(E6,"view-relations",c))}};
F6.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);(0,B.combineLatest)([this.rows$,this.displayedRows.changes]).pipe(Af(this.destroyed$)).subscribe(function(b){b=l(b).next().value;a.rowDirectiveMap=new Map(a.displayedRows.map(function(c){return[c.row.ancestorChain.hash(),c]}));b=b.map(function(c){return a.rowDirectiveMap.get(c.ancestorChain.hash())}).filter(Boolean);a.correctedDisplayedRows.reset(b);xg(a.correctedDisplayedRows)});this.focusManager=ly(new Tgc(this.correctedDisplayedRows,
ts))};F6.prototype.toggleExpansion=function(a){x6(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};F6.prototype.navigateToIssue=function(a,b){!b.id||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(this.analytics.trackEvent(E6,"navigate","to-child-issue"),b=Qk(b.id),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?kp(this.domSafe,b):ws(this.router,b))};
var Clb=function(a,b){var c;return Ne(function(d){if(1==d.nextAddress)return c=a.getRowIndex(b),x6(a.tableModel.expansion,b.ancestorChain.parentChain,500),d.yield(zo(),2);a.focusManager.setActiveItem(c);Se(d)})},ylb=function(a,b){return[{type:"action",label:"Continue on the create issue page",action:function(c){return sDc(a,c,b)},title:"Continue on the create issue page",icon:"arrow-forward"}]};
F6.prototype.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(c){b.navigateToIssue(c,a)},title:"Go to issue",icon:"arrow-forward"},{type:"action",label:"View Children",disabled:!Gk(a.hasChildren$),action:function(){var c=Sk({q:"parentid:"+a.id});b.domSafe.openInNewTab(c)},title:"View the children of this issue on the main search page",icon:"pop-out"},{type:"action",label:"Create child",action:function(){return Ne(function(c){if(1==c.nextAddress)return c.yield(zo(),
2);tDc(b,a);Se(c)})},title:"Create child",icon:"add",hintText:"Shift+Enter"},{type:"action",label:"Add child",action:function(){b.addExistingChild(a)},title:"Add existing issue as child",icon:"add"},{type:"action",label:"Create sibling",action:function(){return Ne(function(c){if(1==c.nextAddress)return c.yield(zo(),2);uDc(b,a);Se(c)})},title:"Create sibling",icon:"add",hintText:"Enter"},{type:"submenu",label:"Reorder",icon:"reorder_24px",items:[{type:"action",label:"Move up",action:function(){b.rowReorderingModel.moveUp(b.rowDirectiveMap.get(a.ancestorChain.hash()))},
title:"Move up",icon:"arrow-up",hintText:"shift+ctrl+up"},{type:"action",label:"Move down",action:function(){b.rowReorderingModel.moveDown(b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Move down",icon:"arrow-down",hintText:"shift+ctrl+down"},{type:"action",label:"Indent",action:function(){oDc(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){nDc(b.rowReorderingModel,
b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Unindent",icon:"arrow-left",hintText:"shift+ctrl+left"}]},{type:"action",label:"Unlink from parent",action:function(){b.unlinkFromParent(a)},title:"Unlink from parent",icon:"link-off"},{type:"action",label:"Archive",action:function(){vDc(b,a)},title:"Archive issue",icon:"archive_24px"}]};
F6.prototype.saveDraft=function(a){var b=this,c,d;return Ne(function(e){if(1==e.nextAddress){if(!a.title)return e.return();b.tableModel.saveDraft(a);b.focusManager.setActiveItem(b.getRowIndex(a));return e.yield((0,B.firstValueFrom)(b.displayedRows.changes.pipe(A(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.id===a.issueId})}),cf(Boolean),ef(6E4))),2)}c=e.yieldResult;ts(null==(d=b.focusManager.activeItem)?void 0:d.row,a)&&b.focusManager.setActiveItem(c);Se(e)})};
var vs=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;ts(null==(c=a.focusManager.activeItem)?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},tDc=function(a,b){dDc(a.tableModel,null==b?void 0:b.ancestorChain,{afterIssueId:"-1"})},uDc=function(a,b){"data"===b.type?dDc(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):dDc(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};F6.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var wDc=function(a){return a.tableColumns.map(function(b){return"title"===b?"editable-title":"menu"===b?"save":"id"===b?"empty-id":b})};F6.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
F6.prototype.onRowKeydown=function(a,b){var c=this,d;return Ne(function(e){switch(e.nextAddress){case 1:switch(b.keyCode){case 39:case 37:if(b.ctrlKey)break;"data"===a.type&&(c.toggleExpansion(a),b.preventDefault());"load-more-children"===a.type&&(Clb(c,a),b.preventDefault());break;case 13:return e.jumpTo(2)}e.jumpTo(3);break;case 2:return"BUTTON"!==b.target.tagName||b.shiftKey||b.metaKey?e.yield(c.tableModel.isOneLineCreationSupported(),4):e.return();case 4:d=e.yieldResult;if(!d)return e.return();
"data"===a.type&&(b.shiftKey?tDc(c,a):uDc(c,a));"draft-issue"===a.type&&a.saving&&uDc(c,a);b.preventDefault();e.jumpTo(3);break;case 3:if("INPUT"===b.target.tagName)return e.return();c.focusManager.onKeydown(b);c.rowReorderingModel.onKeydown(b);Se(e)}})};
var sDc=function(a,b,c){var d,e,f,h,k,q,u,x;return Ne(function(y){if(1==y.nextAddress)return b.defaultPrevented||"mouseup"===b.type&&b instanceof MouseEvent&&1!==b.button?y.return():y.yield((0,B.firstValueFrom)(c.issue$),2);d=y.yieldResult;u={};x=a.paths.createIssue((u.component=String(null==(e=d)?void 0:e.snapshot[0].componentId),u.parentIssueId=c.ancestorChain.parentChain.nodeId,u.redirectUrl=$ta(a.rootIssueId),u.afterIssueId=c.afterIssueId,u.title=c.title,u.priority=null!=(k=null==(f=d)?void 0:
f.snapshot[0].priority)?k:void 0,u.type=null!=(q=null==(h=d)?void 0:h.snapshot[0].type)?q:void 0,u));if(b.ctrlKey||b.metaKey||b instanceof MouseEvent&&1===b.button)return vs(a,c),a.domSafe.openInNewTab(x),y.return();if(b&&b.shiftKey)return vs(a,c),kp(a.domSafe,x),y.return();ws(a.router,x);Se(y)})},vDc=function(a,b){var c,d;Ne(function(e){if(1==e.nextAddress)return a.analytics.trackEvent(E6,"update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),e.yield((0,B.firstValueFrom)(a.rows$.pipe(A(function(f){return!f.find(function(h){return"data"===
h.type&&h.id===b.id})}),cf(Boolean),ef(6E4))),2);ts(null==(d=a.focusManager.activeItem)?void 0:d.row,b)&&a.focusManager.setActiveItem(c);Se(e)})};
F6.prototype.unlinkFromParent=function(a){var b=this,c,d;return Ne(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;b.analytics.trackEvent(E6,"update","unlink-child-issue");return e.yield(b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){WF(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};F6.prototype.isOpen=function(a){return Hn(a)};
F6.prototype.getAssigneeString=function(a){var b,c;return LBa(zi(null==a?void 0:null==(b=a.snapshot)?void 0:null==(c=b[0])?void 0:c.assigneeUser)||void 0)};Qh.Object.defineProperties(F6.prototype,{filters:{configurable:!0,enumerable:!0,set:function(a){this.internalFilters.reset(null!=a?a:[])}},hiddenRowCount$:{configurable:!0,enumerable:!0,get:function(){return this.tableModel.hiddenRowCount$}}});
F6.\u0275fac=function(a){return new (a||F6)(z(dI),z(WD),z(VF),z(zH),z(u6),z(Df),z(ae),z(UW),z(zL),z(C6),z(yD),z(A6),z(Zx),z(tH),z(xE))};
F6.\u0275cmp=od({type:F6,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&zg(pU,5);if(a&2){var c;yg(c=Bg())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId",defaultExpansionLevel:"defaultExpansionLevel",saveExpansionAtKey:"saveExpansionAtKey",filters:"filters",tableColumns:"tableColumns",options:"options"},features:[lg([yD]),Jf],decls:46,vars:10,consts:[["mat-table","","multiTemplateDataRows","",1,"full-width",3,"dataSource","trackBy"],["matColumnDef","focus-indicator"],
["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","drag-handle"],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",4,"matCellDef"],["matColumnDef","empty-id"],["matColumnDef","title"],["matColumnDef","type"],["matColumnDef","assignee"],["matColumnDef","status"],["matColumnDef","team"],["matColumnDef","menu"],["matColumnDef","save"],["mat-cell","","class","text-center",
4,"matCellDef"],["matColumnDef","load-more-children"],["mat-cell","",3,"padding-left",4,"matCellDef"],["matColumnDef","editable-title"],[4,"ngIf"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","selected","closed","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",3,"row","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","","class","draft","cdkTrapFocus","",3,"row","keydown","keydown.escape","keydown.backspace",
"focusin",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[1,"drag-preview"],[1,"placeholder"],[1,"insertion-bar"],["mat-header-cell",""],["tabindex","-1","mat-cell","",3,"click"],["focusIndicator",""],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart"],["dragHandle",""],["svgIcon","drag-indicator",1,"icon-s"],["mat-cell",""],[3,"id"],[3,"issue","expandable","expanded","level","expansionChange"],[3,"issue"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"issue",
4,"ngSwitchDefault"],["size","medium",3,"email",4,"ngIf"],["size","medium",3,"email"],["buttonLabel","More options",3,"menuItems","click"],["mat-cell","",1,"text-center"],["buttonLabel","More options",3,"menuItems","click",4,"ngIf","ngIfElse"],["saving",""],[3,"isReady"],["format","flat",3,"onAction"],[1,"title-location"],[1,"flex-kids-x","align-items-center","gap-s"],["placeholder","Start typing the title...",1,"grow-1",3,"value","readonly","valueChange","commit"],["color","primary","format","fill",
"size","small","title","Create issue","matTooltip","(Shortcut: Enter)",3,"disabled","onAction"],["format","flat","size","small","title","Cancel","matTooltip","(Shortcut: Esc)",3,"disabled","onAction"],["mat-header-row","",4,"matHeaderRowDef"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"row","click","mouseup","focusin","keydown"],["mat-row","",3,"row","focusin","keydown"],["mat-row","","cdkTrapFocus","",1,"draft",3,"row","keydown","keydown.escape","keydown.backspace",
"focusin"]],template:function(a,b){a&1&&(D(0,"table",0),I(1,1),P(2,Xkb,1,0,"th",2),P(3,Ykb,2,0,"td",3),K(),I(4,4),P(5,Zkb,1,0,"th",2),P(6,$kb,3,0,"td",5),K(),I(7,6),P(8,alb,2,0,"th",2),P(9,blb,2,1,"td",7),K(),I(10,8),P(11,clb,2,0,"th",2),P(12,dlb,2,0,"td",7),K(),I(13,9),P(14,elb,2,0,"th",2),P(15,flb,4,8,"td",7),K(),I(16,10),P(17,glb,2,0,"th",2),P(18,hlb,3,3,"td",7),K(),I(19,11),P(20,klb,4,2,"th",2),P(21,qlb,4,2,"td",7),K(),I(22,12),P(23,rlb,2,0,"th",2),P(24,slb,3,3,"td",7),K(),I(25,13),P(26,tlb,2,
0,"th",2),P(27,ulb,3,3,"td",7),K(),I(28,14),P(29,vlb,1,0,"th",2),P(30,wlb,2,1,"td",7),K(),I(31,15),P(32,xlb,1,0,"th",2),P(33,Blb,4,2,"td",16),K(),I(34,17),P(35,Dlb,6,7,"td",18),K(),I(36,19),P(37,Elb,2,0,"th",2),P(38,Flb,7,6,"td",18),K(),P(39,Hlb,2,1,"ng-container",20),P(40,Jlb,3,12,"tr",21),P(41,Klb,1,4,"tr",22),P(42,Llb,1,2,"tr",23),F(),G(43,"div",24)(44,"div",25)(45,"div",26));a&2&&(C("dataSource",b.rows$)("trackBy",b.trackBy),w(39),C("ngIf",!b.options.hideColumnHeaders),w(1),C("matRowDefColumns",
b.tableColumns)("matRowDefWhen",b.isDataRow),w(1),C("matRowDefColumns",ng(9,pDc))("matRowDefWhen",b.isLoadMoreRow),w(1),C("matRowDefColumns",wDc(b))("matRowDefWhen",b.isDraftRow))},dependencies:[Lw,Ev,Fv,Gv,Hv,qA,mV,$U,fV,bV,ZU,hV,cV,eV,iV,kV,FB,h_,aU,bJ,oV,pV,dU,gU,qV,rV,vV,pL,MJ,pU,vO,Kv],styles:['.mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-focus-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-row[_ngcontent-%COMP%]:focus-within   .mat-column-focus-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]{box-sizing:border-box;cursor:move;outline-width:0;padding:0px;width:18px}tr.mat-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:32px;opacity:.2}.mat-header-cell.mat-column-title[_ngcontent-%COMP%]{padding-left:36px;min-width:250px}.insertion-bar[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);display:none;height:2px;pointer-events:none;position:absolute}.insertion-bar[_ngcontent-%COMP%]::before{content:"";border-bottom:5px solid rgba(0,0,0,0);border-left:8px solid;border-left-color:#1a73e8;border-left-color:var(--primary-btn-bg);border-top:5px solid rgba(0,0,0,0);display:block;height:0;position:relative;top:-4px;width:0}.placeholder[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);border-radius:4px;box-sizing:border-box;display:none;opacity:.7;pointer-events:none;position:absolute;top:0;width:100%}.drag-preview[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--inverse-text);border-radius:4px;display:none;padding:7px 13px;position:absolute}tr.dragging[_ngcontent-%COMP%], tr.nodrop[_ngcontent-%COMP%]{opacity:.5}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}[_nghost-%COMP%]{position:relative;padding-bottom:5px;overflow-y:hidden}'],
changeDetection:0});var G6=function(a,b,c,d,e){Y.call(this);var f=this;this.issueFridge=a;this.butterBar=b;this.analytics=c;this.refreshMonitor=d;this.issueRelationshipsFridge=e;this.parentIssueIds$=new B.BehaviorSubject([]);this.filters=[];this.editIssueDependencies=$ta;this.tableColumns=[].concat(p(mCc));this.getMenuItems=function(h){return[{type:"action",label:"Unlink parent",action:function(){return xDc(f,h)},title:"Unlink parent",icon:"link"}]};this.showError=function(h){return function(k){f.butterBar.showWarning(h+
". "+(sn(k)?tn(k):k))}};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var h=l(f.parentIssueIds$.value),k=h.next();!k.done;k=h.next())f.issueFridge.poke(k.value)}))};W(G6,Y);G6.\u0275dir=Y.\u0275dir;G6.prototype.ngOnInit=function(){};
var xDc=function(a,b){var c;return Ne(function(d){a.analytics.trackEvent(xp.EDIT_ISSUE,"update","remove-parent");c=a.issueId;return d.yield(a.issueRelationshipsFridge.unlinkFromParent(c,b).catch(a.showError("Failed to unlink child "+c+" from parent "+b)),0)})};Qh.Object.defineProperties(G6.prototype,{parentIds:{configurable:!0,enumerable:!0,set:function(a){this.parentIssueIds$.next(null!=a?a:[])}},hiddenRowCount$:{configurable:!0,enumerable:!0,get:function(){return this.issuesTable.hiddenRowCount$}}});
G6.\u0275fac=function(a){return new (a||G6)(z(GH),z(VF),z(zH),z(EH),z(dI))};
G6.\u0275cmp=od({type:G6,selectors:[["b-parents-table"]],viewQuery:function(a,b){a&1&&zg(c6,5);if(a&2){var c;yg(c=Bg())&&(b.issuesTable=c.first)}},inputs:{parentIds:"parentIds",filters:"filters",issueId:"issueId"},features:[Jf],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","tableColumns","filters","issueUrlFactory","menuItemFactory"]],template:function(a,b){a&1&&(P(0,Mlb,2,5,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.parentIssueIds$))},dependencies:[Ev,c6,Kv],encapsulation:2,changeDetection:0});var H6=function(){this.buttonSize="large";this.buttonTooltip=this.buttonSvgIcon="";this.showActiveState=!1;this.options=[];this.confirmButtonLabel="Apply";this.cancelButtonLabel="Cancel";this.showActionButtons=!0;this.onChange=new Yu;this.onConfirm=new Yu;this.onCancel=new Yu;this.internalSelectedOptions=new jO};H6.prototype.confirm=function(a){this.onConfirm.emit(new Set(this.internalSelectedOptions));a.close()};H6.prototype.cancel=function(a){this.onCancel.emit();a.close()};
Qh.Object.defineProperties(H6.prototype,{selectedOptions:{configurable:!0,enumerable:!0,set:function(a){this.internalSelectedOptions.reset(a)}}});H6.\u0275fac=function(a){return new (a||H6)};
H6.\u0275cmp=od({type:H6,selectors:[["select-menu"]],inputs:{buttonSize:"buttonSize",buttonAriaLabel:"buttonAriaLabel",buttonSvgIcon:"buttonSvgIcon",buttonTooltip:"buttonTooltip",showActiveState:"showActiveState",overlayTitle:"overlayTitle",options:"options",selectedOptions:"selectedOptions",confirmButtonLabel:"confirmButtonLabel",cancelButtonLabel:"cancelButtonLabel",showActionButtons:"showActionButtons"},outputs:{onChange:"onChange",onConfirm:"onConfirm",onCancel:"onCancel"},decls:11,vars:15,consts:[["mat-icon-button",
"","onedevPopupPanelTrigger","","aria-haspopup","true",1,"gmat-button",3,"onedevPopupPanelTriggerFor","color","matTooltip","click"],["trigger","onedevPopupPanelTrigger"],[3,"svgIcon"],[4,"ngIf"],["role","region","className","select-menu-popup"],["optionsPanel","onedevPopupPanel"],[1,"padded-s","flex-kids-y"],["class","title margin-s-x padded-s",4,"ngIf"],["class","flex-kids-x",4,"ngFor","ngForOf"],["class","badge",3,"title",4,"ngIf"],[1,"badge",3,"title"],[1,"title","margin-s-x","padded-s"],[1,"flex-kids-x"],
[1,"option","grow-1","flex-kids-x","align-items-center","padded-x","padded-s-y","gap"],[3,"checked","change"],[1,"flex-kids-x","justify-flex-end","padded-s","gap-s"],["mat-stroked-button","",1,"cancel",3,"click"],["mat-flat-button","","color","primary",1,"confirm",3,"click"]],template:function(a,b){if(a&1){var c=r();D(0,"button",0,1);L("click",function(){t(c);var e=N(1),f;null!=(f=e.isOpen)&&f?e.close():e.open();return v()});T(2,"async");G(3,"mat-icon",2);P(4,Olb,3,3,"ng-container",3);F();D(5,"onedev-popup-panel",
4,5)(7,"div",6);P(8,Plb,2,1,"h1",7);P(9,Slb,7,5,"div",8);P(10,Tlb,7,2,"ng-container",3);F()()}if(a&2){var d=N(6);Xf("large","large"===b.buttonSize)("small","small"===b.buttonSize);C("onedevPopupPanelTriggerFor",d)("color",b.showActiveState&&V(2,13,b.internalSelectedOptions.size$)?"primary":null)("matTooltip",b.buttonTooltip);Nf("aria-label",b.buttonAriaLabel);w(3);C("svgIcon",b.buttonSvgIcon);w(1);C("ngIf",b.showActiveState);w(4);C("ngIf",b.overlayTitle);w(1);C("ngForOf",b.options);w(1);C("ngIf",
b.showActionButtons)}},dependencies:[Dv,Ev,qA,Ez,PK,dD,FB,bM,cM,Kv],styles:[".select-menu-popup{flex-direction:column;max-width:18rem;max-height:calc(100vh - 100px);overflow-y:auto;margin-top:10px}.select-menu-popup .title{font-weight:500}.select-menu-popup .option:hover{background-color:#e8f0fe;background-color:var(--primary-c50)}select-menu button:not(.mat-primary) mat-icon{color:#5f6368;color:var(--icon)}select-menu button[aria-expanded=true]{background-color:#d2e3fc;background-color:var(--selected-bg)}select-menu button span.badge{font-size:.6875rem;display:inline-block;bottom:-4px;right:-9px;position:absolute;padding:0px 6px;border-radius:30px;margin-top:0px;box-sizing:border-box;height:16px;line-height:16px;color:#fff;color:var(--text-inverse);background-color:#1a73e8;background-color:var(--primary-btn-bg)}/*# sourceMappingURL=select_menu.css.map */\n"],
encapsulation:2,changeDetection:0});var Zlb=function(a){return{filteredCount:a}},yDc=function(){return[]},I6=function(a,b,c,d,e,f,h,k,q,u,x,y,E){Y.call(this);var H=this;this.brain=a;this.issuePicker=b;this.issueRelationshipsFridge=c;this.issueFridge=d;this.router=e;this.routePerformance=f;this.element=h;this.analytics=k;this.issuePermissionService=q;this.activeSession=u;this.counts=x;this.matDialog=y;this.butterBar=E;this.recallFilters=Ps("deps-filters");this.saveFilters=Os("deps-filters");this.isThinking$=(0,B.combineLatest)([this.issueFridge.saving$,
this.issueRelationshipsFridge.saving$]).pipe(A(function(J){return J.some(Boolean)}));this.issueId$=this.brain.id$.pipe(cf(cl),A(Xn));this.issue$=this.brain.issueJs$.pipe(cf(cl));this.parentIds$=this.issue$.pipe(A(function(J){var O;return null!=(O=J.issue.parentIssueIds)?O:[]}));this.parentIssues$=this.parentIds$.pipe(zf(this.issueFridge.watchSet));this.parentsCount$=this.parentIssues$.pipe(A(function(J){return J.filter(In).length}));this.childrenIds$=this.issueId$.pipe(zf(this.issueRelationshipsFridge.watch),
A(function(J){var O;return null!=(O=null==J?void 0:J.relatedChildren.map(function(R){return R.targetIssueId}))?O:[]}));this.totalDaysOpen$=this.issue$.pipe(A(function(J){var O,R;return(null==(O=Eza(J))?void 0:null==(R=O.effort)?void 0:R.totalOpen)||0}));this.totalDaysComplete$=this.issue$.pipe(A(function(J){var O,R;return(null==(O=Eza(J))?void 0:null==(R=O.effort)?void 0:R.totalComplete)||0}));this.unarchivedChildIssueCount$=this.childrenIds$.pipe(A(function(J){return J.length}));this.isTotalEstimatesEnabled=
$C(this.activeSession,"enableAggregationRules");this.isNonPublicSession=this.activeSession.isNonPublicSession();this.isInternalSession=this.activeSession.isInternalSession();this.enableRollupStatsUi=$C(this.activeSession,"enableRollupStatsUi");this.totalDaysCount$=(0,B.combineLatest)([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(A(function(J){var O=l(J);J=O.next().value;O=O.next().value;return J+O}));this.totalDaysDisplayPercent$=smb(this.totalDaysComplete$,this.totalDaysCount$);this.progressHovercardContent$=
(0,B.combineLatest)([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(A(function(J){var O=l(J);J=O.next().value;var R=O.next().value;O=O.next().value;return tmb(Math.round(100*J)/100)+" completed | "+tmb(Math.round(100*R)/100)+" open | "+O+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new B.Subject;this.issueFilters=new jO;this.ISSUE_FILTER_OPTIONS=[{key:ms.OPEN.key,title:ms.OPEN.displayAs,description:"Hides closed issues"},
{key:ms.ASSIGNED_TO_ME.key,title:ms.ASSIGNED_TO_ME.displayAs,description:"Hides issues not assigned to me"}];(0,B.firstValueFrom)(JUa("b-issue-relations-table tr .mat-column-title a",this.element.nativeElement).pipe(Af((0,B.merge)(this.destroyed$,this.rowCreated$)))).then(function(){var J=function(){Spc(H.routePerformance,"issue-details-w-tree")};requestAnimationFrame(J);setTimeout(J)}).catch(function(){});try{this.issueFilters.reset(this.recallFilters().filter(Zib))}catch(J){}this.subscriptions.add(this.issueFilters.value$.subscribe(function(J){H.saveFilters([].concat(p(J)))}))};
W(I6,Y);I6.\u0275dir=Y.\u0275dir;
var omb=function(a){var b,c;return Ne(function(d){if(1==d.nextAddress)return a.analytics.trackEvent(xp.EDIT_ISSUE,"update","add-parent"),d.yield((0,B.firstValueFrom)(a.issue$),2);b=d.yieldResult;c=b.issue.issueId;return d.yield(a.issuePicker.open({title:"Add Parent to b/"+c,allowMultipleIds:!1,edgeType:"parent"},function(e){zDc(a,c,e)}),0)})},zDc=function(a,b,c){var d=l(c).next().value,e,f,h,k;Ne(function(q){if(1==q.nextAddress)return(e=d)?q.yield(a.issueRelationshipsFridge.assignParentToOneIssue(e,b),
2):q.return();f=q.yieldResult;h=f.errors;return(null==(k=h)?0:k.length)?(a.butterBar.showWarning("Could not add parent"),q.return()):q.yield(a.issueFridge.poke(b),0)})};I6.prototype.shouldResetFilters=function(){this.issueFilters.reset([])};I6.prototype.addChild=function(){this.rowCreated$.next();var a;null==(a=this.relationsTable)||a.addExistingChild()};I6.prototype.createChild=function(){this.rowCreated$.next();var a;null==(a=this.relationsTable)||tDc(a)};
I6.\u0275fac=function(a){return new (a||I6)(z(CI),z(MV),z(dI),z(GH),z(WD),z(X_),z(ae),z(zH),z(EI),z(Us),z(q6),z(Uz),z(VF))};
I6.\u0275cmp=od({type:I6,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&(zg(F6,5),zg(r6,5),zg(G6,5));if(a&2){var c;yg(c=Bg())&&(b.relationsTable=c.first);yg(c=Bg())&&(b.blockersTable=c.first);yg(c=Bg())&&(b.parentsTable=c.first)}},features:[Jf],decls:15,vars:13,consts:[[1,"status","flex-kids-x","gap-s","align-items-center","justify-flex-end"],[4,"ngIf"],["buttonSize","small","buttonSvgIcon","filter-alt","buttonTooltip","Filter issues","buttonAriaLabel","Filter issues","overlayTitle",
"Only show issues that are",3,"options","selectedOptions","showActionButtons","showActiveState","onChange"],["mat-icon-button","","matTooltip","Learn more","aria-label","Open dialog to learn more about the Dependencies tab",1,"small",3,"click"],["svgIcon","info",1,"icon-s"],["class","pos-rel carded margined-s bg-main flex-kids-y gap-l",4,"ngIf"],["filterInfo",""],["addParent",""],["addChildren",""],[1,"pos-rel","carded","margined-s","bg-main","flex-kids-y","gap-l"],[1,"parents"],[1,"table-header",
"flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status",1,"b-chip","nowrap","squared","xs","keep-focus-ring"],["svgIcon","arrow_upward_24px",1,"icon-xxs"],[3,"issueId","parentIds","filters",4,"ngIf","ngIfElse"],["noParentsState",""],[3,"filters","shouldResetFilters"],[1,"table-header","child-issue-header","flex-kids-x","align-items-center"],["role","status","tabindex","0","matTooltip","Use child issues to break down this issue into smaller units of work.",
1,"b-chip","nowrap","squared","xs","keep-focus-ring"],["svgIcon","account_tree_24px",1,"icon-xxs"],["class","progress-header",4,"ngIf"],["class","margin-s-bottom",3,"id",4,"ngIf"],[3,"rootIssueId","filters","saveExpansionAtKey"],[4,"ngTemplateOutlet"],[3,"issueId","parentIds","filters"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"muted"],[1,"progress-header"],[1,"flex-kids-x","align-items-center"],[1,"margin-s-right"],[1,"label"],[1,"progress","margin-s-right",3,"onedevHovercardTrigger"],
[1,"completion"],["progressHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","progress-hover-card"],["svgIcon","info","aria-hidden","false","aria-label","The progress of child issues takes into consideration all child issues and descendant issues\n                  which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is\n                  not reflected in the progress bar.",1,"icon-s",3,"onedevHovercardTrigger"],
["effortHovercard","onedevHovercard"],[1,"onedev-hovercard-body"],[1,"margin-s-bottom",3,"id"],["class","muted",4,"ngIf"],[1,"subtle-link","unstyled",3,"click"],["size","small","title","Add a parent of the current issue",1,"add",3,"disabled","onAction"],["class","add","size","small","title","Create an issue as a child",3,"disabled","onAction",4,"ngIf"],["size","small","title","Add an existing issue as a child",1,"add",3,"disabled","onAction"],["size","small","title","Create an issue as a child",1,
"add",3,"disabled","onAction"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,Ulb,1,0,"b-spinner",1),T(2,"async"),D(3,"select-menu",2),L("onChange",function(d){return b.issueFilters.reset(d)}),T(4,"async"),F(),D(5,"button",3),L("click",function(){b.matDialog.open(s6,{maxWidth:"1300px",width:"90%"})}),G(6,"mat-icon",4),F()(),P(7,lmb,41,47,"div",5),T(8,"async"),P(9,nmb,1,1,"ng-template",null,6,Eg),P(11,pmb,3,3,"ng-template",null,7,Eg),P(13,rmb,4,4,"ng-template",null,8,Eg));if(a&2){var c;w(1);C("ngIf",
V(2,6,b.isThinking$));w(2);C("options",b.ISSUE_FILTER_OPTIONS)("selectedOptions",null!==(c=V(4,8,b.issueFilters.value$))&&void 0!==c?c:ng(12,yDc))("showActionButtons",!1)("showActiveState",!0);w(4);C("ngIf",V(8,10,b.issueId$))}},dependencies:[Ev,Jv,qA,PJ,UJ,Ez,FB,bJ,H6,MJ,l6,r6,F6,G6,Kv,Qv],styles:["b-issue-dependencies h4 button{margin:-8px 0}b-issue-dependencies h4 button.gmat-button.mat-stroked-button.small{line-height:21px}b-issue-dependencies .carded{padding-top:0;margin-top:0}b-issue-dependencies .table-header{margin-top:0;margin-bottom:4px}b-issue-dependencies .status{padding:4px 16px}b-issue-dependencies .status b-spinner{margin-top:4px}b-issue-dependencies .status mat-icon{margin-top:-1px}b-issue-dependencies b-issue-relations-table{display:block;overflow-x:auto}b-issue-dependencies b-button.add{margin-left:16px}b-issue-dependencies .emoji{font-size:1rem;padding:0 4px}b-issue-dependencies .progress-header{padding-top:12px;font-size:.75rem;padding-bottom:16px}b-issue-dependencies .progress{border-radius:6px;border:1px solid;border-color:#137333;border-color:var(--good-text);height:8px;width:132px;position:relative}b-issue-dependencies .progress>.completion{background-color:#137333;background-color:var(--good-text);height:100%;border-radius:9px}b-issue-dependencies .progress-hover-card{font-weight:bold}b-issue-dependencies button.subtle-link.unstyled{color:#1a73e8;color:var(--link)}\n"],
encapsulation:2,changeDetection:0});var J6=function(){this.LOGO_LIGHT="https://www.gstatic.com/buganizer/img/v3/logo_light.svg"};Qh.Object.defineProperties(J6.prototype,{ref:{configurable:!0,enumerable:!0,set:function(a){this.searchPageUrl=qkb(a)}}});J6.\u0275fac=function(a){return new (a||J6)};
J6.\u0275cmp=od({type:J6,selectors:[["issue-count"]],inputs:{ref:"ref",count:"count"},decls:4,vars:2,consts:[["title","Total issues in this area, in any status",1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","",1,"logo",3,"src"],["class","subtle-link",3,"routerLink",4,"ngIf"],[1,"subtle-link",3,"routerLink"]],template:function(a,b){a&1&&(D(0,"div",0),G(1,"img",1),Q(2," \u00a0 "),P(3,umb,2,2,"a",2),F());a&2&&(w(1),C("src",b.LOGO_LIGHT,re),w(2),C("ngIf",null!=b.count))},dependencies:[Ev,
YD],styles:[".logo[_ngcontent-%COMP%] {\n      width: 20px; \n\n      max-width: 20px; \n\n    }"],changeDetection:0});var K6=function(){};K6.\u0275fac=function(a){return new (a||K6)};K6.\u0275mod=qd({type:K6});K6.\u0275inj=ad({imports:[aD,HT,GB,bE,SB,NO]});var ADc=function(){return[]},L6=function(a,b){Y.call(this);var c=this;this.issueFridge=a;this.changelistFridge=b;this.query$=new B.ReplaySubject(1);this.issues$=this.query$.pipe(zf(function(d){return c.issueFridge.watchMany(d)}),A(function(d){return d.results}));this.emails$=this.issues$.pipe(A(function(d){return d.map(Fza).filter(cl)}),A(Tj));this.submittedClLinks$=this.issues$.pipe(A(function(d){return d.flatMap(function(e){var f,h,k;return null!=(k=null==(f=e.snapshot)?void 0:null==(h=f[0])?void 0:
h.changelist)?k:[]})}));this.pendingCls$=this.issues$.pipe(A(function(d){return d.map(function(e){return e.issueId})}),zf(function(d){return c.changelistFridge.watchMany({pendingForIssues:d})}),A(function(d){return d.results}))};W(L6,Y);L6.\u0275dir=Y.\u0275dir;Qh.Object.defineProperties(L6.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){null!=a&&this.query$.next(a)}}});L6.\u0275fac=function(a){return new (a||L6)(z(GH),z(JG))};
L6.\u0275cmp=od({type:L6,selectors:[["rollups-list"]],inputs:{ref:"ref",query:"query"},features:[Jf],decls:8,vars:15,consts:[[1,"flex-kids-x","align-items-center","dividers-between"],[3,"ref","count"],[3,"submitted","pending"],[3,"emails",4,"ngIf"],[3,"emails"]],template:function(a,b){a&1&&(D(0,"section",0),G(1,"issue-count",1),T(2,"async"),G(3,"cl-counts",2),T(4,"async"),T(5,"async"),P(6,vmb,1,1,"avatar-bunch",3),T(7,"async"),F());if(a&2){var c,d,e;w(1);C("ref",b.ref)("count",null==(c=V(2,5,b.issues$))?
null:c.length);w(2);C("submitted",null!==(d=V(4,7,b.submittedClLinks$))&&void 0!==d?d:ng(13,ADc))("pending",null!==(e=V(5,9,b.pendingCls$))&&void 0!==e?e:ng(14,ADc));w(3);C("ngIf",V(7,11,b.emails$))}},dependencies:[Ev,h6,i6,J6,Kv],styles:["[_nghost-%COMP%]{display:block}.dividers-between[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-right:16px;margin-right:16px;border-right:1px solid;border-right-color:#dadce0;border-right-color:var(--divider)}.dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:empty, .dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{border-right:none;padding-right:0;margin-right:0}\n/*# sourceMappingURL=rollups_list.css.map */"],
changeDetection:0});var M6=function(a){var b=this;this.prefsService=a;this.isNumeric=fo;this.isActive=function(){return BDc(b,b.prefsService.prefs,b.filter.key)};this.active$=this.prefsService.prefs$.pipe(A(function(c){var d;return BDc(b,c,null==(d=b.filter)?void 0:d.key)}))};M6.prototype.onClick=function(){var a=!this.isActive(),b=this.prefsService,c=this.ref;a=a?[this.filter.key]:[];var d;b.prefs.quickFilters=null!=(d=b.prefs.quickFilters)?d:{};b.prefs.quickFilters[c]=a;b.save(b.prefs)};
var BDc=function(a,b,c){if(null==b)return!1;var d,e;return(null!=(e=null==(d=b.quickFilters)?void 0:d[a.ref])?e:[]).includes(c)};
Qh.Object.defineProperties(M6.prototype,{metadata:{configurable:!0,enumerable:!0,set:function(a){this.metadataInternal=a;if(null!=a)if("OPEN"===this.filter.key){if(null==a)var b=0;else{b=0;a=l(a.aggregatedStatus);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0===c.issueIds?[]:c.issueIds,e=void 0;if(null==(e=Wk[c.status])?0:e.open)b+=d.length}}this.countDisplay=b}else if("BROAD_IN_PROGRESS"===this.filter.key)b=jza(a,"ASSIGNED"),a=jza(a,"ACCEPTED"),this.countDisplay=b+a;else throw Error("Te`"+
this.filter.key);},get:function(){return this.metadataInternal}},key:{configurable:!0,enumerable:!0,set:function(a){this.filter=ms[a]}},computeCountFor:{configurable:!0,enumerable:!0,set:function(a){if(null==a)this.countDisplay="-";else{var b,c,d=null==(c=ms[null==(b=this.filter)?void 0:b.key])?void 0:c.check;this.countDisplay=a.filter(d).length}}}});M6.\u0275fac=function(a){return new (a||M6)(z(qK))};
M6.\u0275cmp=od({type:M6,selectors:[["qif-stat"]],hostBindings:function(a,b){a&1&&L("click",function(){return b.onClick()})},inputs:{metadata:"metadata",key:"key",ref:"ref",countDisplay:"countDisplay",computeCountFor:"computeCountFor"},decls:5,vars:6,consts:[[1,"unstyled-button","stat-card",3,"title"],[4,"ngIf"],[1,"big-number"]],template:function(a,b){a&1&&(D(0,"button",0),T(1,"async"),D(2,"label"),Q(3),F(),P(4,wmb,3,3,"ng-container",1),F());if(a&2){var c;C("title",null!==(c=b.filter.tooltip)&&void 0!==
c?c:"");Nf("aria-pressed",V(1,4,b.active$));w(3);jg(b.filter.displayAs);w(1);C("ngIf",b.metadata||void 0!==b.countDisplay)}},dependencies:[Ev,Kv],styles:["[_nghost-%COMP%], label[_ngcontent-%COMP%]{display:block}.big-number[_ngcontent-%COMP%]{font-size:1.5rem;line-height:1;margin-top:4px;color:#1a73e8;color:var(--text-primary)}.big-number.muted[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}button.stat-card[_ngcontent-%COMP%]{border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:8px 16px;cursor:pointer}button.stat-card[_ngcontent-%COMP%]:focus-visible, button.stat-card[_ngcontent-%COMP%]:hover{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary)}button.stat-card[aria-pressed=true][_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50);border-color:#1a73e8;border-color:var(--primary)}button.stat-card[aria-pressed=true][_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}\n/*# sourceMappingURL=qif_stat.css.map */"],
changeDetection:0});var N6=function(){};N6.\u0275fac=function(a){return new (a||N6)};N6.\u0275mod=qd({type:N6});N6.\u0275inj=ad({imports:[aD,HT,GB,SB]});var O6=function(a){var b=this;this.issueFridge=a;this.curUser=Mj().user.email;this.query$=new B.ReplaySubject(1);this.issues$=this.query$.pipe(zf(function(c){return b.issueFridge.watchMany(c)}),A(function(c){return c.results}));this.openCount$=this.issues$.pipe(A(function(c){return c.filter(Hn).length}));this.assignedToMeCount$=this.issues$.pipe(A(function(c){return c.map(Fza).filter(function(d){return d===b.curUser}).length}));this.ownedCount$=this.issues$.pipe(A(function(c){return c.map(function(d){return d.snapshot[0].status}).filter(function(d){return"ASSIGNED"===
d||"ACCEPTED"===d}).length}))};Qh.Object.defineProperties(O6.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){null!=a&&this.query$.next(a)}}});O6.\u0275fac=function(a){return new (a||O6)(z(GH))};
O6.\u0275cmp=od({type:O6,selectors:[["stat-cards-list"]],inputs:{ref:"ref",query:"query"},decls:11,vars:20,consts:[[1,"flex-kids-x","gap"],["key","OPEN",3,"ref","countDisplay"],["key","BROAD_IN_PROGRESS",3,"ref","countDisplay"],["key","ASSIGNED_TO_ME",3,"ref","countDisplay"],["key","NEWLY_FILED",3,"ref","computeCountFor"],["key","RECENTLY_ACTIVE",3,"ref","computeCountFor"]],template:function(a,b){a&1&&(D(0,"div",0),G(1,"qif-stat",1),T(2,"async"),G(3,"qif-stat",2),T(4,"async"),G(5,"qif-stat",3),T(6,
"async"),G(7,"qif-stat",4),T(8,"async"),G(9,"qif-stat",5),T(10,"async"),F());a&2&&(w(1),C("ref",b.ref)("countDisplay",V(2,10,b.openCount$)),w(2),C("ref",b.ref)("countDisplay",V(4,12,b.ownedCount$)),w(2),C("ref",b.ref)("countDisplay",V(6,14,b.assignedToMeCount$)),w(2),C("ref",b.ref)("computeCountFor",V(8,16,b.issues$)),w(2),C("ref",b.ref)("computeCountFor",V(10,18,b.issues$)))},dependencies:[M6,Kv],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_list.css.map */"],
changeDetection:0});var P6=function(a){this.metadataFridge=a;this.id$=new B.ReplaySubject(1);this.metadata$=this.id$.pipe(zf(this.metadataFridge.watchOne))};Qh.Object.defineProperties(P6.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a);this.idInternal=a},get:function(){return this.idInternal}}});P6.\u0275fac=function(a){return new (a||P6)(z(BG))};
P6.\u0275cmp=od({type:P6,selectors:[["stat-cards-project"]],inputs:{id:"id"},decls:5,vars:8,consts:[[1,"flex-kids-x","gap"],["key","OPEN",3,"ref","metadata"],["key","BROAD_IN_PROGRESS",3,"ref","metadata"]],template:function(a,b){a&1&&(D(0,"div",0),G(1,"qif-stat",1),T(2,"async"),G(3,"qif-stat",2),T(4,"async"),F());a&2&&(w(1),C("ref",b.id)("metadata",V(2,4,b.metadata$)),w(2),C("ref",b.id)("metadata",V(4,6,b.metadata$)))},dependencies:[M6,Kv],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_project.css.map */"],
changeDetection:0});var Q6=function(){};Q6.\u0275fac=function(a){return new (a||Q6)};Q6.\u0275mod=qd({type:Q6});Q6.\u0275inj=ad({imports:[aD,HT,GB,SB,K6,N6]});var R6=function(){};R6.\u0275fac=function(a){return new (a||R6)};R6.\u0275mod=qd({type:R6});R6.\u0275inj=ad({imports:[aD,SB,SK,iD,FC,dM]});var S6=function(){};S6.\u0275fac=function(a){return new (a||S6)};S6.\u0275mod=qd({type:S6});S6.\u0275inj=ad({imports:[ay,Qx,zx,aD,Dw,CK,SB,Zz,e6,AV,HT,FC,Ew,bE,j_,wV,cJ,GV,f6,xV,R6,rL,AK,Q6,qU,NO]});var T6=function(a){this.internalArray_=m(a,0,T6.messageId)};W(T6,X);T6.prototype.getIssueIdsList=function(){return Ei(this,1)};T6.prototype.setIssueIdsList=function(a){return rm(this,1,a)};T6.prototype.addIssueIds=function(a){cc(this,1,vb(a))};T6.repeatedFields_=[1];T6.messageId="b.BatchIssueDigestRequest";var U6=function(a){this.internalArray_=m(a,0,U6.messageId)};W(U6,X);U6.prototype.getIssueDigestsList=function(){return Ji(this,yF,1)};U6.repeatedFields_=[1];U6.messageId="b.BatchIssueDigestResponse";var V6=function(a,b){this.batchApiConfig=a;this.batchApiAdapter=b;this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};V6.prototype.get=function(a){return this.adaptedGet(a).pipe(A(Rwa))};V6.prototype.getAll=function(a){return this.batchApiConfig.call(a).pipe(A(xmb))};V6.\u0275fac=function(a){return new (a||V6)(n(W6),n(BE))};V6.\u0275prov=$c({token:V6,factory:V6.\u0275fac,providedIn:"root"});var W6=function(a){this.executor=a};
W6.prototype.call=function(a){var b=[].concat(p(a));b.sort();a=new T6;b=l(b);for(var c=b.next();!c.done;c=b.next())a.addIssueIds(c.value);return this.executor.post({url:"action/issues/digest",body:a,responseConstructor:U6})};W6.prototype.split=function(a,b){b=l(b.getIssueDigestsList());for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.getIssueId()===a)return c;return(new yF).setIssueId(a)};W6.\u0275fac=function(a){return new (a||W6)(n(tD))};W6.\u0275prov=$c({token:W6,factory:W6.\u0275fac,providedIn:"root"});var CDc={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},X6=function(a,b){Y.call(this);var c=this;this.issueFridge=a;this.router=b;this.STATUS_JS_TERSE=QC;this.URLS=ys;this.ListIssuesHovercardMode=CDc;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new B.ReplaySubject(1);this.init=new B.ReplaySubject(1);this.issues$=this.issueIds$.pipe(cf(cl),zf(this.issueFridge.watchSet),A(function(d){return"parent"===c.mode?d.filter(In):d.filter(Hn)}))};W(X6,Y);X6.\u0275dir=Y.\u0275dir;
X6.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var Dmb=function(a){var b;null==(b=a.hovercardInstance)||b.closeHovercard$.next();a.issueIds$.subscribe(function(c){c=null!=c?c:[];for(var d="id:(",e=l(c.entries()),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;d+=h;d=f<c.length-1?d+"|":d+")"}a.router.navigate([ys.ISSUE_LIST],{queryParams:{q:d}})})};
X6.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(Af(this.destroyed$)).subscribe(function(){a.init.next()})};Qh.Object.defineProperties(X6.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});X6.\u0275fac=function(a){return new (a||X6)(z(GH),z(WD))};
X6.\u0275cmp=od({type:X6,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},features:[Jf],decls:5,vars:5,consts:[["role","dialog","aria-label","List Issues Hovercard",1,"onedev-hovercard-content"],["class","border-bottom header-container",4,"ngIf"],[4,"ngIf"],[1,"border-bottom","header-container"],["svgIcon","account_tree_24px",1,"icon-xxs","muted"],[1,"header-text"],["svgIcon","slo-status-no-data",
1,"icon-xxs","gfx-bad"],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"issue-row","flex-kids-x","space-between"],[1,"flex-kids-x","align-items-center"],[1,"issue-id","type-xs"],[1,"type-m","margin-right","issue-title"],[1,"bv2-priority",3,"ngClass"],[3,"class",4,"ngIf"],[1,"flex-kids-x","more-issues-container","margin-s-right"],["mat-button","",1,"gmat-button","primary","small",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,ymb,5,3,"div",1),P(2,zmb,5,3,"div",1),P(3,Gmb,4,3,"div",2),T(4,"async"),
F());a&2&&(w(1),C("ngIf",b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),w(1),C("ngIf",b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES),w(1),C("ngIf",V(4,3,b.issues$)))},dependencies:[Cv,Dv,Ev,qA,YD,Ez,Kv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.header-container[_ngcontent-%COMP%]{line-height:14px;padding:8px 12px}.header-text[_ngcontent-%COMP%]{font-family:Google Sans Display,Roboto,Arial,sans-serif;font-size:.8125rem;line-height:16px;color:#1a73e8;color:var(--text-primary);margin-left:6px}.issue-row[_ngcontent-%COMP%]{line-height:32px;margin:0 12px;padding:4px 0;font-family:Roboto,Arial,sans-serif;color:#202124;color:var(--text)}.issue-row[_ngcontent-%COMP%]   .issue-id[_ngcontent-%COMP%]{height:13px;font-weight:700;padding:1px 4px;margin-right:4px;color:#5f6368;color:var(--text-muted);border:1px solid;border-color:#e8eaed;border-color:var(--gfx-inverse);border-radius:4px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]{max-width:200px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}.more-issues-container[_ngcontent-%COMP%]{padding:4px 0;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}"]});var Y6=function(a,b){this.issueDigestsApi=a;this.paths=b;this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=CDc;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};Y6.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&DDc(this).then(function(c){b.issueIdToTitle=c})};Y6.prototype.getIssueLink=function(a){return this.paths.editIssue(a)};
var DDc=function(a){a.reorderedAncestors=[];for(var b=a.issueId;;)if(b=a.ancestors.get(b))if(1===b.sourceIssueIds.length)b=b.sourceIssueIds[0],a.reorderedAncestors.push(b);else{a.multiParentIssueIds=b.sourceIssueIds;break}else break;a.reorderedAncestors.reverse();return(0,B.firstValueFrom)(a.issueDigestsApi.getAll(new Set(a.reorderedAncestors)).pipe(A(function(c){var d=new Map;c=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value,d.set(e.issueId,e.title);return d})))};
Y6.\u0275fac=function(a){return new (a||Y6)(z(V6),z(xE))};
Y6.\u0275cmp=od({type:Y6,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},features:[Fd],decls:3,vars:2,consts:[["svgIcon","account_tree_24px","title","Ancestor issues",1,"icon-xs","margin-s-right"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"muted",3,"onedevHovercardTrigger","title"],["svgIcon","chevron-right","class","icon-xs chevron muted",4,"ngIf"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],["svgIcon","chevron-right",1,"icon-xs","chevron","muted"],[3,
"onedevIsHovercardReady","hovercardInstance","currentIssueId","issueIds","mode"],["cardBody",""],[1,"type-s",3,"href","issueId"]],template:function(a,b){a&1&&(G(0,"mat-icon",0),P(1,Jmb,7,4,"ng-container",1),P(2,Kmb,4,5,"ng-container",2));a&2&&(w(1),C("ngIf",1<b.multiParentIssueIds.length),w(1),C("ngForOf",b.reorderedAncestors))},dependencies:[Dv,Ev,qA,WS,PJ,QJ,UJ,RJ,X6],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%]     a{color:#202124;color:var(--text-default);line-height:22px;vertical-align:middle}[_nghost-%COMP%]     a.muted{color:#5f6368;color:var(--text-muted)}[_nghost-%COMP%]     a:hover, [_nghost-%COMP%]     a:focus{color:#1a73e8;color:var(--link);text-decoration:underline}.chevron[_ngcontent-%COMP%]{width:18px}.chevron.last[_ngcontent-%COMP%]{margin-right:-3px}"]});var Z6=function(a,b){this.paths=a;this.activeSession=b;this.isCompact=!1;this.starClicked=new Yu;this.currentUserEmail=this.activeSession.getUserEmail()};Z6.prototype.ngOnInit=function(){};Z6.prototype.isDirectAdmin=function(a){return a?wi(a.adminUsers).includes(this.currentUserEmail):!1};Z6.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};Z6.\u0275fac=function(a){return new (a||Z6)(z(xE),z(Us))};
Z6.\u0275cmp=od({type:Z6,selectors:[["hotlist-matlist-option"]],inputs:{hotlist:"hotlist",isCompact:"isCompact",starredHotlists:"starredHotlists",isSavingStar:"isSavingStar"},outputs:{starClicked:"starClicked"},decls:1,vars:1,consts:[["class","hotlist-matlist-option",4,"ngIf"],[1,"hotlist-matlist-option"],[1,"title-line"],[1,"overflow-ellipsis"],[1,"hotlist-link-and-star","flex-kids-x","align-items-center","gap-xs"],["class","valign-middle",3,"starMessage","unStarMessage","acceptInput","starred",
"starClicked",4,"ngIf"],["matTooltip","Open hotlist in a new tab","target","_blank",1,"keep-focus-ring",3,"routerLink","click","keydown.enter"],["svgIcon","pop-out",1,"icon-s"],["class","line-clamp-2 muted type-s",4,"ngIf"],[1,"valign-middle",3,"starMessage","unStarMessage","acceptInput","starred","starClicked"],[1,"line-clamp-2","muted","type-s"]],template:function(a,b){a&1&&P(0,Nmb,9,4,"div",0);a&2&&C("ngIf",b.hotlist)},dependencies:[Ev,qA,YD,KJ,FB,Kv],encapsulation:2,changeDetection:0});var EDc=function(){this.tokens=new Map};EDc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};EDc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new FDc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var FDc=function(a){this.sortedEntries=a};
FDc.prototype.match=function(a){for(var b=0,c=this.sortedEntries.length-1;b<=c;){var d=b+Math.floor((c-b)/2),e=this.sortedEntries[d].token;if(a===e){b=d;break}else a>e?b=d+1:c=d-1}for(c=[];b<this.sortedEntries.length;b++)if(this.sortedEntries[b].token.startsWith(a))c.push(this.sortedEntries[b]);else break;return c};FDc.prototype.search=function(a){var b=new Set;a=l(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=l(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var GDc=function(a,b){if(0===b.length)return new Set;for(var c=a.search(b[0]),d=1;d<b.length&&0<c.size;d++){var e=[].concat(p(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};var HDc=function(a){this.hotlists=a;var b=new EDc,c=new EDc;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(null==(e=d.name)?0:e.trim())?yCa(d.name.toLowerCase()):[];f=l(f);for(e=f.next();!e.done;e=f.next())b.add(e.value,d);e=void 0;f=(null==(e=d.description)?0:e.trim())?yCa(d.description.toLowerCase()):[];f=l(f);for(e=f.next();!e.done;e=f.next())c.add(e.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(h,
k){return[h,k]}))};
HDc.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=l(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=d.name)?void 0:e.toLowerCase(),h=void 0;e=null==(h=d.description)?void 0:h.toLowerCase();h=d.hotlistId;var k=void 0,q=void 0;(Lpa(a)&&String(h).includes(a)||(null==(k=f)?0:k.includes(a))||(null==(q=e)?0:q.includes(a)))&&b.add(d)}c=yCa(a);d=l(GDc(this.nameTokenMatcher,c));for(a=d.next();!a.done;a=d.next())b.add(a.value);c=l(GDc(this.descriptionTokenMatcher,c));
for(a=c.next();!a.done;a=c.next())b.add(a.value);return IDc(this,b)};var IDc=function(a,b){return[].concat(p(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};var $6=function(){this.innerHeight$=(0,B.concat)((0,B.defer)(function(){return(0,B.of)(window.innerHeight)}),(0,B.fromEvent)(window,"resize").pipe(A(function(){return window.innerHeight})))};$6.\u0275fac=function(a){return new (a||$6)};$6.\u0275prov=$c({token:$6,factory:$6.\u0275fac,providedIn:"root"});var a7=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);var y=this;this.dialogRef=a;this.data=b;this.paths=c;this.hotlistFridge=d;this.hotlistApi=e;this.snackBar=f;this.appEvents=h;this.errorHandler=k;this.userApi=q;this.windowHeight=u;this.permissionsFridge=x;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new B.BehaviorSubject("");this.debouncedQuery$=this.query$.pipe(jf(100),yf(""));this.hotlists=[];this.allHotlistIds=
new Set(this.data.selectedHotlistIds);this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.originalIds=new Set(this.data.selectedHotlistIds);this.pristine=!0;this.saveBtnLabel="Save";this.saveBtnTooltip="Save your hotlist choices";this.hotlistUnderEdit=new lw({name:new nw("",cw),description:new nw("")});this.starredHotlists=new jO;this.isSavingStar=new jO;this.userHotlists$=AYb(this.hotlistFridge);this.issueHotlists$=this.hotlistFridge.watchSet(Array.from(this.data.selectedHotlistIds));
this.combineHotlistsWithPermissions=A(function(E){var H=y.permissionsFridge.watchSet(E.map(function(J){return"hotlists/"+J.hotlistId}));return E.map(function(J,O){return Object.assign({},J,{permissions$:H.pipe(A(function(R){return R[O]}))})})});this.hotlists$=(0,B.combineLatest)([this.issueHotlists$,this.userHotlists$]).pipe(A(function(E){var H=l(E);E=H.next().value;H=H.next().value;return[].concat(p(E),p(H))}),A(pra(function(E){return E.hotlistId})),A(function(E){return E.filter(cl)}),A(function(E){return E.sort(dnb)}),
A(function(E){return E.sort(function(H,J){var O=y.selectedHotlistIds;H=O.has(H.hotlistId);J=O.has(J.hotlistId);return H&&J?0:H?-1:J?1:0})}),this.combineHotlistsWithPermissions,wf({bufferSize:1,refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(A(function(E){return new HDc(E)}),wf({bufferSize:1,refCount:!0}));this.forceShowOverflow$=new B.Subject;this.matchedHotlists$=(0,B.combineLatest)([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(A(function(E){var H=l(E);E=H.next().value;
var J=H.next().value;H=H.next().value;return""!==E.trim()?J.search(E):H}),wf({bufferSize:1,refCount:!0}));this.visibleHotlists$=(0,B.combineLatest)([this.matchedHotlists$,(0,B.merge)(this.matchedHotlists$.pipe(A(function(){return!1})),this.forceShowOverflow$)]).pipe(A(function(E){var H=l(E);E=H.next().value;H=H.next().value;return 200<E.length&&!H?E.slice(0,200):E}),wf({bufferSize:1,refCount:!0}));this.isOverflowMode$=(0,B.combineLatest)([this.matchedHotlists$,this.visibleHotlists$]).pipe(A(function(E){var H=
l(E);E=H.next().value;H=H.next().value;return E.length!==H.length}));this.showLoadById$=this.query$.pipe(A(function(E){E=E.trim();return!y.allHotlistIds.has(Number(E))&&Lpa(E)}));this.showCreateNew$=(0,B.combineLatest)([this.query$,this.matchedHotlists$]).pipe(A(function(E){var H=l(E);E=H.next().value;H=H.next().value;return enb(E,H)}));this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(A(function(E){return Math.max(1,Math.floor(.5*E/24))}),mf());this.compactNumberOfHotlistsToShow$.pipe(A(function(E){return 24*
E}));this.subscriptions.add(this.hotlists$.subscribe(function(E){y.hotlists=E;E=l(E);for(var H=E.next();!H.done;H=E.next())y.allHotlistIds.add(H.value.hotlistId)}))};W(a7,Y);a7.\u0275dir=Y.\u0275dir;a7.prototype.ngOnInit=function(){var a=this;JDc(this);this.query$.pipe(Af(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
a7.prototype.onChangeMatList=function(a){var b=this;a.options.forEach(function(d){d.selected?b.selectedHotlistIds.add(d.value):b.selectedHotlistIds.delete(d.value)});a=Apa(this.originalIds,this.selectedHotlistIds);this.pristine=!a;var c=l(fnb(a));a=c.next().value;c=c.next().value;this.saveBtnLabel=a;this.saveBtnTooltip=c};
var xs=function(a){a.dialogRef.close(a.selectedHotlistIds)},Tmb=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("name"))?void 0:b.value)?a:""},KDc=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("description"))?void 0:b.value)?a:""},Smb=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=Tmb(a),c=KDc(a);a.hotlistApi.createHotlist(b,c).then(function(d){a.snackBar.open('Hotlist "'+d.name+"'\" saved.","dismiss",{duration:3E3});d=d.hotlistId;a.appEvents.hotlistChanged.next({hotlistId:d});
a.selectedHotlistIds.add(d);a.dialogRef.close(a.selectedHotlistIds)}).catch(function(d){a.errorHandler.errorHandler(null,d)})},JDc=function(a){a.userApi.getUserSidebar().then(function(b){a.starredHotlists.clear();for(var c=l(b.hotlists||[]),d=c.next();!d.done;d=c.next()){d=d.value;var e=Number(d.id);d.starred&&a.starredHotlists.add(e)}b=l(b.bookmarkGroups||[]);for(c=b.next();!c.done;c=b.next())for(c=l(c.value.sublinks||[]),d=c.next();!d.done;d=c.next())d=d.value,d.starred&&a.starredHotlists.add(Number(d.id))}).catch(function(b){a.errorHandler.errorHandler(null,
b)})};
a7.prototype.toggleStar=function(a){var b=this,c,d,e;return Ne(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a};Oe(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),f.yield(b.userApi.deleteFavorite(d),3);b.starredHotlists.add(a);return f.yield(b.userApi.saveFavorite(d),3);case 3:Pe(f);b.isSavingStar.delete(a);Qe(f,4);break;case 2:e=Re(f);ZF(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),b.appEvents.favoritesModified.next(),
JDc(b),Se(f)}})};var Wmb=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);xs(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};a7.prototype.trackByHotlistId=function(a,b){return b.hotlistId};a7.\u0275fac=function(a){return new (a||a7)(z(Rz),z(Tz),z(xE),z(rH),z(mF),z(SF),z(DF),z(XF),z(nH),z($6),z(eI))};
a7.\u0275cmp=od({type:a7,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&L("keydown.meta.enter",function(){return xs(b)})("keydown.shift.enter",function(){return xs(b)})("keydown.control.enter",function(){return xs(b)})},features:[Jf],decls:13,vars:4,consts:[[4,"ngIf","ngIfElse"],["mat-button","","mat-dialog-close","","tooltip","Dismiss modal","aria-label","Dismiss modal","role","button",3,"click"],["createNewHotlistBtn",""],["applyHotlistSelectionBtn",""],["updateHotlistSelectionPane",
""],["createNewHotlistPane",""],[4,"ngTemplateOutlet"],["mat-flat-button","","color","primary","matTooltip","Create new hotlist","aria-label","Create",1,"gmat-button",3,"disabled","click"],["mat-flat-button","","color","primary",1,"gmat-button",3,"mat-dialog-close","matTooltip","disabled","click"],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search","spellcheck","false","autocomplete","off","aria-label","Filter hotlists","placeholder","Type to filter your starred hotlists",
1,"search-box",3,"input"],["searchBox",""],["mat-dialog-content","",1,"search-results"],["content",""],["class","load-from-id-btn",3,"click",4,"ngIf"],["class","create-new-hotlist-btn",3,"click",4,"ngIf"],[4,"ngIf"],[1,"load-from-id-btn",3,"click"],[1,"muted"],[1,"create-new-hotlist-btn",3,"click"],[3,"selectionChange"],["hotlistMatList",""],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"matTooltip"],["tooltip","matTooltip"],["checkboxPosition","before",3,"selected","disabled","value","focus","blur"],[3,
"hotlist","isCompact","starredHotlists","isSavingStar","starClicked"],[1,"margin-top","kids-x"],[1,"force-show-overflow-btn",3,"click"],["mat-dialog-content",""],[1,"create-hotlist-pane"],[3,"formGroup"],["for","hotlist-name"],"type text autofocus autofocus id hotlist-name required  aria-required true formControlName name".split(" "),["for","hotlist-description",1,"margin-s-top"],["id","hotlist-description","formControlName","description"]],template:function(a,b){a&1&&(P(0,Pmb,2,1,"ng-container",
0),D(1,"mat-dialog-actions")(2,"button",1),L("click",function(){b.dialogRef.close()}),Q(3," Cancel "),F(),P(4,Rmb,2,1,"ng-container",0),F(),P(5,Umb,2,1,"ng-template",null,2,Eg),P(7,Vmb,2,5,"ng-template",null,3,Eg),P(9,bnb,15,9,"ng-template",null,4,Eg),P(11,cnb,14,1,"ng-template",null,5,Eg));if(a&2){var c=N(8),d=N(10);C("ngIf",b.showCreateNewPane)("ngIfElse",d);w(4);C("ngIf",b.showCreateNewPane)("ngIfElse",c)}},dependencies:[Dv,Ev,Jv,qA,Vz,Wz,Xz,Yz,Ez,XL,YL,pw,Tg,hw,iw,zw,vw,ww,FB,Z6,Kv],styles:["[_nghost-%COMP%]     .mat-dialog-content{width:500px;overflow-y:overlay}[_nghost-%COMP%]     .mat-dialog-title{margin:0}[_nghost-%COMP%]     .mat-dialog-title h2{margin-top:0;margin-bottom:8px}[_nghost-%COMP%]     .search-container{background-color:#f1f3f4;background-color:var(--main-search-bg);display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:8px;width:100%;height:40px}[_nghost-%COMP%]     .search-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .search-container input.search-box{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:rgba(0,0,0,0);margin-left:5px;height:100%;width:100%;padding-right:4px}[_nghost-%COMP%]     .search-results mat-list-option .title-line{display:flex;align-items:center;justify-content:space-between;height:24px}[_nghost-%COMP%]     .search-results mat-list-option a, [_nghost-%COMP%]     .search-results mat-list-option mat-icon{height:17px;line-height:17px}[_nghost-%COMP%]     .search-results mat-list-option p{font-size:.75rem;margin-top:-2px;line-height:1.2}[_nghost-%COMP%]     .search-results mat-list-option .hotlist-link-and-star{visibility:hidden}[_nghost-%COMP%]     .search-results mat-list-option .hotlist-link-and-star a{margin-right:2px}[_nghost-%COMP%]     .search-results mat-list-option .hotlist-link-and-star a mat-icon{margin-top:-2px}[_nghost-%COMP%]     mat-list-option:focus-within .hotlist-link-and-star, [_nghost-%COMP%]     mat-list-option:hover .hotlist-link-and-star{visibility:unset}[_nghost-%COMP%]     .create-new-hotlist-btn, [_nghost-%COMP%]     .load-from-id-btn, [_nghost-%COMP%]     .force-show-overflow-btn{background:none;border:none;text-align:left;min-height:34px;padding-left:38px}[_nghost-%COMP%]     .create-new-hotlist-btn:hover, [_nghost-%COMP%]     .load-from-id-btn:hover, [_nghost-%COMP%]     .force-show-overflow-btn:hover{cursor:pointer;background-color:rgba(0,0,0,.04);background-color:var(--hover)}[_nghost-%COMP%]     .create-hotlist-pane label{display:block;color:#5f6368;color:var(--muted);font-weight:500}[_nghost-%COMP%]     .create-hotlist-pane input, [_nghost-%COMP%]     .create-hotlist-pane textarea{width:100%;box-sizing:border-box}[_nghost-%COMP%]     mat-list-option label{font-size:.8125rem}[_nghost-%COMP%]     .mat-list-base{margin:0 -24px}[_nghost-%COMP%]     .mat-list-base .mat-list-option .mat-list-item-content{padding:5px 0;padding-right:20px;padding-left:24px;align-items:flex-start}[_nghost-%COMP%]     .mat-list-base .mat-list-option .mat-list-item-content .mat-pseudo-checkbox{margin-top:3px}[_nghost-%COMP%]     .mat-list-base .compact .mat-list-option .mat-list-item-content{padding-top:0}[_nghost-%COMP%]     .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-left:12px}/*# sourceMappingURL=hotlist_picker_modal.css.map */"],
changeDetection:0});var b7=function(a,b,c,d){this.dialog=a;this.issueFridge=b;this.eventsForIssueFridge=c;this.errorHandler=d},MDc=function(a,b){var c,d,e,f,h,k,q,u;return Ne(function(x){switch(x.nextAddress){case 1:return x.yield((0,B.firstValueFrom)(b),2);case 2:return c=x.yieldResult,(e=null==(d=c)?void 0:d.snapshot[0].hotlistId)&&c?x.yield(LDc(a,e),3):x.return();case 3:f=x.yieldResult;if(null==f)return x.return();h=f.added.map(String);k=f.removed.map(String);q=String(c.issueId);Oe(x,4,5);return x.yield(VYb(a.issueFridge,
q,h,k),5);case 5:Pe(x);a.eventsForIssueFridge.poke(q);Qe(x,0);break;case 4:u=Re(x),ZF(a.errorHandler,u),x.jumpTo(5)}})},LDc=function(a,b){var c,d,e,f;return Ne(function(h){if(1==h.nextAddress)return c={panelClass:"no-jitter",data:{selectedHotlistIds:b},ariaLabel:"Search for Hotlists"},d=a.dialog.open(a7,c),h.yield((0,B.firstValueFrom)(Pz(d)),2);e=h.yieldResult;if(!e)return h.return(Promise.resolve());f=Apa(new Set(b),new Set(e));return h.return(Promise.resolve(f))})};
b7.\u0275fac=function(a){return new (a||b7)(n(Uz),n(GH),n(cH),n(XF))};b7.\u0275prov=$c({token:b7,factory:b7.\u0275fac,providedIn:"root"});var c7=function(a,b,c){this.issueFridge=a;this.hotlistFridge=b;this.hotlistPicker=c;this.issueId$=new B.ReplaySubject(1);this.issue$=this.issueId$.pipe(zf(this.issueFridge.watch));this.hotlistsOnIssue$=this.issue$.pipe(A(function(d){var e;return null!=(e=null==d?void 0:d.snapshot[0].hotlistId)?e:[]}));this.count$=this.hotlistsOnIssue$.pipe(A(function(d){return null==d?void 0:d.length}),yf(0));this.label$=this.count$.pipe(A(function(d){return 0<d?"Hotlists ("+d+")":"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$;
this.HOTKEYS=BD};c7.prototype.onClick=function(){MDc(this.hotlistPicker,this.issue$)};Qh.Object.defineProperties(c7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});c7.\u0275fac=function(a){return new (a||c7)(z(GH),z(rH),z(b7))};
c7.\u0275cmp=od({type:c7,selectors:[["hotlist-picker-btn"]],inputs:{issueId:"issueId"},decls:4,vars:7,consts:[["mat-stroked-button","",1,"gmat-button","small",3,"hotkey","disabled","onHotkey","click"]],template:function(a,b){a&1&&(D(0,"button",0),L("onHotkey",function(){return b.onClick()})("click",function(){return b.onClick()}),T(1,"async"),Q(2),T(3,"async"),F());a&2&&(C("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER)("disabled",V(1,3,b.isDisabled$)),w(2),S(" ",V(3,5,b.label$),"\n"))},dependencies:[sE,
Ez,Kv],encapsulation:2});var NDc=function(a,b){var c=b.permissions,d=b.retentionState,e=b.isComponentAdmin;if(b.isInternal){if("INDEFINITE"===b.retentionOverride)return{type:"action",label:"Revert to component retention...",title:e?"Revert to component retention...":"You must be a component administrator to perform this action.",disabled:!c.admin,action:function(){a.showComponentRetentionDialog()}};if(!d||d.scheduledDeletionTime)return{type:"action",label:"Retain issue indefinitely...",title:e?"Retain issue indefinitely...":
"You must be a component administrator to perform this action.",disabled:!c.admin,action:function(){a.showIndefiniteRetentionDialog()}}}},ODc=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},PDc=function(a,b){var c=!b.isArchived,d=c?"Archive issue":"Unarchive issue";return{type:"action",label:d,title:d+' (requires "issue writer" access)',icon:"archive_24px",disabled:!b.permissions.writer,
action:function(){a.submitArchivalState(c)}}},QDc=function(a,b){if(!b.isDeleted&&"EXTERNAL_PUBLIC"===b.accessLevel)return{type:"action",label:"Mark as spam...",title:'Mark as spam... (requires "issue admin" access)',icon:"flag",disabled:!b.permissions.admin,action:function(){a.showFlagAsSpamDialog()}}};var RDc=function(a){return{isDupe:a}},d7=function(a,b,c,d,e){Y.call(this);var f=this;this.fridge=a;this.permissionsFridge=b;this.issuePicker=c;this.snackBar=d;this.eventsForIssueFridge=e;this.TOOLTIP_MARK_DUPE="Mark this issue as a duplicate";this.TOOLTIP_UNMARK_DUPE="Mark this issue as not being a duplicate";this.disabled=!1;this.issueId$=new B.ReplaySubject(1);this.issue$=this.issueId$.pipe(zf(function(h){return f.fridge.watchOne(h)}));this.isDupe$=this.issue$.pipe(A(function(h){var k;return!!(null==
h?0:null==(k=h.snapshot[0])?0:k.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(zf(function(h){return f.permissionsFridge.watchOne("issues/"+h)}));this.canEdit$=this.permissions$.pipe(A(function(h){return!(null==h||!h.writer)}),yf(!0));this.didChooseCanonical=function(h){return function(k){(k=k[0])&&WYb(f.fridge,k,h).then(function(){f.eventsForIssueFridge.poke(h)}).catch(f.gotErr)}};this.gotErr=function(h){f.snackBar.open(tn(h)||"Error with network request","close",{panelClass:"error"})}};
W(d7,Y);d7.\u0275dir=Y.\u0275dir;
var gnb=function(a){var b,c;return Ne(function(d){if(1==d.nextAddress)return a.disabled||a.fridge.isSaving(a.internalIssueId)||!Gk(a.canEdit$)?d.return():d.yield((0,B.firstValueFrom)(a.isDupe$),2);if(3!=d.nextAddress)return b=d.yieldResult,d.yield((0,B.firstValueFrom)(a.issue$),3);c=d.yieldResult;if(null==c)return d.return();b?SDc(a,c):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:c.snapshot[0].componentId,edgeType:"canonical",currentResource:{id:c.issueId,
type:"issue"}},a.didChooseCanonical(c.issueId));Se(d)})},SDc=function(a,b){var c=b.snapshot[0].duplicateOfIssueId;null!=c&&a.fridge.removeDuplicate(c,b.issueId).then(function(){a.eventsForIssueFridge.poke(b.issueId)}).catch(a.gotErr)};Qh.Object.defineProperties(d7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});d7.\u0275fac=function(a){return new (a||d7)(z(GH),z(eI),z(MV),z(SF),z(cH))};
d7.\u0275cmp=od({type:d7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[Jf],decls:2,vars:5,consts:[["mat-stroked-button","","class","gmat-button small",3,"disabled","title","click",4,"ngIf"],["mat-stroked-button","",1,"gmat-button","small",3,"disabled","title","click"]],template:function(a,b){a&1&&(P(0,hnb,3,5,"button",0),T(1,"async"));a&2&&C("ngIf",og(3,RDc,V(1,1,b.isDupe$)))},dependencies:[Ev,Ez,Kv]});var e7=function(){this.label=""};e7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};e7.\u0275fac=function(a){return new (a||e7)};
e7.\u0275cmp=od({type:e7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&zg(UJ,5);if(a&2){var c;yg(c=Bg())&&(b.hovercardTrigger=c.first)}},inputs:{label:"label",content:"content"},decls:6,vars:3,consts:[["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],["svgIcon","help-outline",1,"icon-s",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(D(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",
2),P(4,jnb,2,1,"ng-container",3),F()()(),G(5,"mat-icon",4));if(a&2){var c=N(1);w(2);Nf("aria-label",b.label);w(2);C("ngIf",b.content);w(1);C("onedevHovercardTrigger",c)}},dependencies:[Ev,Jv,qA,PJ,UJ],encapsulation:2});var f7=function(){};f7.\u0275fac=function(a){return new (a||f7)};f7.\u0275mod=qd({type:f7});f7.\u0275inj=ad({imports:[aD,CK]});var g7=function(a,b,c,d,e,f,h,k,q){Y.call(this);this.issueFridge=a;this.issuePermissionService=b;this.activeSession=c;this.appEvents=d;this.issueArchiveService=e;this.domSafe=f;this.editIssueService=h;this.matDialogService=k;this.analytics=q;this.issueId$=new B.ReplaySubject(1);this.retentionEnabled=this.activeSession.isInternalSession();this.HOTKEYS=BD;this.issue$=this.issueId$.pipe(zf(this.issueFridge.watch));this.issueDerivedProperties$=this.issue$.pipe(A(function(u){var x,y,E,H,J,O,R;return{modifiedTimeMilliseconds:null!=
(null==u?void 0:null==(x=u.aggregatedData)?void 0:x.modifiedTimeMicros)?u.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:null!=(O=null==u?void 0:null==(y=u.userData)?void 0:y.voted)?O:!1,voteCount:null!=(R=null==u?void 0:null==(E=u.aggregatedData)?void 0:E.voteCount)?R:0,notificationSubscription:$k(null==u?void 0:null==(H=u.userData)?void 0:H.notificationSubscription),retentionState:null==u?void 0:null==(J=u.aggregatedData)?void 0:J.retentionState}}));this.menuItems$=TDc(this);this.state$=(0,B.combineLatest)([this.issueId$,
this.issueDerivedProperties$,this.menuItems$]).pipe(A(function(u){var x=l(u);u=x.next().value;var y=x.next().value;x=x.next().value;return Object.assign({},{issueId:u},y,{menuItems:x})}))};W(g7,Y);g7.\u0275dir=Y.\u0275dir;g=g7.prototype;g.updateSubscription=function(a){var b=this,c;return Ne(function(d){if(1==d.nextAddress)return(c=Gk(b.issueId$))?d.yield(b.editIssueService.updateSubscription(c,a),2):d.return();b.analytics.trackEvent(xp.EDIT_ISSUE,"updateSubscription",a);Se(d)})};
g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};g.showIndefiniteRetentionDialog=function(a){var b=this,c;return Ne(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():d.yield((0,B.firstValueFrom)(Pz(b.matDialogService.open(oX,{maxWidth:560}))),2):(c=d.yieldResult)?d.yield(b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return Ne(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():d.yield((0,B.firstValueFrom)(Pz(b.matDialogService.open(kX,{maxWidth:560}))),2):(c=d.yieldResult)?d.yield(b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return Ne(function(d){return 1==d.nextAddress?d.yield((0,B.firstValueFrom)(Pz(b.matDialogService.open(nX,{maxWidth:560}))),2):(c=d.yieldResult)?d.yield(p5b(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var TDc=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(EVa(a.activeSession.isInternalSession()))},showIndefiniteRetentionDialog:function(){var c=Gk(a.issueId$);c&&a.showIndefiniteRetentionDialog(c)},showComponentRetentionDialog:function(){var c=Gk(a.issueId$);c&&a.showComponentRetentionDialog(c)},submitArchivalState:function(c){var d=Gk(a.issueId$);d&&a.issueArchiveService.submitArchivalState(d,c)},showFlagAsSpamDialog:function(){var c=Gk(a.issueId$);c&&a.showFlagAsSpamDialog(c)}};
return(0,B.combineLatest)([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value,f;d={permissions:d.next().value,accessLevel:pBa(c),isArchived:null!=(f=null==c?void 0:c.isArchived)?f:!1,isDeleted:nBa(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:sBa(c),retentionState:vBa(c)};return[PDc(b,d),QDc(b,d),ODc(b,d),NDc(b,d)].filter(cl)}))};
Qh.Object.defineProperties(g7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});g7.\u0275fac=function(a){return new (a||g7)(z(GH),z(EI),z(Us),z(DF),z(u6),z(zL),z(nO),z(Uz),z(zH))};
g7.\u0275cmp=od({type:g7,selectors:[["issue-actions"]],viewQuery:function(a,b){a&1&&zg(e7,5);if(a&2){var c;yg(c=Bg())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},features:[Jf],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueId","voteCount","upvoted"],[3,"issueId"],[3,"issueId","hotkey","onHotkey"],["smartDupeBtn",""],["aria-label","Notification menu",3,"subscription","issueId","iconOnly","subscriptionChange","showNotificationSettings"],["buttonClassname","small","aria-label","Insights Graph menu",
3,"iconOnly"],["mat-icon-button","","aria-label","More actions","matTooltip","More actions",1,"medium",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],[1,"issue-actions-menu"],["menu","matMenu"],["mat-menu-item","",3,"disabled","title","click",4,"ngFor","ngForOf"],["retentionHelpContent",""],["mat-menu-item","",3,"disabled","title","click"],[1,"icon-s",3,"svgIcon"],["mat-menu-item","",1,"informational-only","border-top","flush-bottom",3,"click"],["svgIcon","",1,"icon-s"],[3,"retentionState"],
["label","Learn more about retention",3,"content"],[3,"retentionState","modifiedTime"]],template:function(a,b){a&1&&(P(0,onb,15,13,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.state$))},dependencies:[DV,Dv,Ev,qA,e7,sE,LZ,Ez,AB,yB,zB,FB,x_,SY,RY,d7,c7,Kv],styles:["[_nghost-%COMP%]{display:flex;gap:4px}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:empty{margin-left:-4px}[mat-icon-button][_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-4px}[_nghost-%COMP%]     .gmat-button.small{font-size:.8125rem}.bv2-material   [_nghost-%COMP%]     button.mat-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}  .issue-actions-menu .mat-menu-content button.mat-menu-item mat-icon.mat-icon{vertical-align:text-bottom}"]});var UDc=["issueTitleEl"],VDc=["issueTitleInputEl"],h7=function(a,b){this.issuePermissionService=a;this.bannedWordsChecker=b;this.disabled=!1;this.updateTitle=new Yu;this.isEditMode=!1;this.editModeWidth=0};h7.prototype.ngDoCheck=function(){WDc(this)};var snb=function(a){a.isEditMode=!a.isEditMode;a.isEditMode?setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0):a.bannedWordsChecker.reset()};
h7.prototype.saveTitle=function(a){var b=this,c;return Ne(function(d){if(1==d.nextAddress)return a&&b.isModified(a)?d.yield(b.bannedWordsChecker.check(a,"EXTERNAL_PUBLIC"===b.issuePermissionService.accessLevel(),b.componentId),3):d.jumpTo(2);if(2!=d.nextAddress){c=d.yieldResult;if(!c)return b.issueTitleInputEl.nativeElement.focus(),d.return();b.updateTitle.emit(a.trim());b.bannedWordsChecker.reset()}b.isEditMode=!1;WDc(b);Se(d)})};h7.prototype.isModified=function(a){return a!==this.titlePlain};
var qnb=function(a,b){if(b)"Enter"===b.key?a.saveTitle(b.target.value):"Escape"===b.key||"Esc"===b.key?snb(a):a.bannedWordsChecker.reset();else{var c;b=null==(c=a.issueTitleInputEl)?void 0:c.nativeElement.value;a.saveTitle(b)}},WDc=function(a){var b=a.editModeWidth,c,d;a.editModeWidth=null!=(d=Number(null==(c=a.issueTitleEl)?void 0:c.nativeElement.offsetWidth)+50)?d:b};
Qh.Object.defineProperties(h7.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=null!=a?a:void 0;this.titleTruncated=xCa(a,300);this.isLongTitle=null==a?!1:300<=a.length}}});h7.\u0275fac=function(a){return new (a||h7)(z(EI),z(TW))};
h7.\u0275cmp=od({type:h7,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(zg(UDc,5),zg(VDc,5));if(a&2){var c;yg(c=Bg())&&(b.issueTitleEl=c.first);yg(c=Bg())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",componentId:"componentId",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{updateTitle:"updateTitle"},features:[lg([TW])],decls:5,vars:4,consts:[["class","heading-m",4,"ngIf"],[3,"width","banned-words-warning",4,"ngIf"],["mat-icon-button","","class","small","matTooltip",
"Edit issue title","aria-label","Edit issue title",3,"disabled","click",4,"ngIf"],["class","banned-words-warning break-word",4,"ngIf"],[1,"heading-m"],["issueTitleEl",""],["matInput","","aria-label","Enter a new title",1,"heading-m",3,"value","keyup","blur"],["issueTitleInputEl",""],["mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small",3,"disabled","click"],["svgIcon","edit-outline",1,"icon-xxs"],[1,"banned-words-warning","break-word"],["target","_blank",
"aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"]],template:function(a,b){a&1&&(D(0,"div"),P(1,pnb,3,2,"h3",0),P(2,rnb,3,5,"mat-form-field",1),P(3,tnb,2,1,"button",2),F(),P(4,unb,4,1,"p",3));a&2&&(w(1),C("ngIf",!b.isEditMode),w(1),C("ngIf",b.isEditMode),w(1),C("ngIf",b.hasAclToEdit),w(1),C("ngIf",b.bannedWordsChecker.showWarning()))},dependencies:[Ev,qA,Ez,FB,jA,nA],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-word}mat-form-field[_ngcontent-%COMP%]{min-width:200px;max-width:100%;margin-bottom:-3px}[_nghost-%COMP%]     .mat-form-field.banned-words-warning .mat-form-field-underline{background-color:#c5221f;background-color:var(--bad-text)}[_nghost-%COMP%]     .mat-form-field.banned-words-warning .mat-form-field-ripple{background-color:#c5221f;background-color:var(--bad-text)}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--c700);margin-top:-2px}[_nghost-%COMP%]     .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{padding:0;border:0}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-underline{margin-bottom:-15px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}"]});var i7=function(a,b,c,d,e,f,h,k,q){Y.call(this);var u=this;this.issueDetailsBrain=a;this.issuePagination=b;this.issueFridge=c;this.componentFridge=d;this.issueInteractionsTracking=e;this.bLocation=f;this.paths=h;this.refreshMonitor=k;this.butterBar=q;this.internalSearchResults$=new B.BehaviorSubject(null);this.searchResults$=this.internalSearchResults$.pipe(mf(),zf(function(x){return x?x.changed$:(0,B.of)(null)}));this.issueIds$=this.searchResults$.pipe(A(function(x){var y;return null!=(y=null==x?
void 0:x.issues.map(function(E){return E.id}).map(Xn))?y:[]}),mf(ki));this.issues$=this.issueIds$.pipe(zf(function(x){return(0,B.combineLatest)(x.map(function(y){return u.issueFridge.watch(y,{trustUncertainMemory:!0})}))}),zf(function(x){return(0,B.combineLatest)(x.map(function(y){return u.componentFridge.watch(String(null==y?void 0:y.snapshot[0].componentId),{trustUncertainMemory:!0}).pipe(A(function(E){return{issue:y,component:E}}))}))}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=
this.searchResults$.pipe(A(function(x){var y;return null!=(y=null==x?void 0:x.totalText)?y:""}));this.backNavigationLabel$=this.searchResults$.pipe(A(function(x){return(null==x?0:x.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=(0,B.combineLatest)([this.searchResults$,this.issueId$]).pipe(A(function(x){var y=l(x);x=y.next().value;y=y.next().value;var E;return null!=(E=y&&(null==x?void 0:AE(x,y)))?E:-1}));this.hasPreviousIssue$=(0,B.combineLatest)([this.searchResults$,this.issueId$]).pipe(A(function(x){var y=
l(x);x=y.next().value;y=y.next().value;var E;if(E=y)null==x?x=0:(y=AE(x,y),x=null==y||-1===y?!1:y>x.startIndex||1<x.params.page),E=x;return!!E}));this.hasNextIssue$=(0,B.combineLatest)([this.searchResults$,this.issueId$]).pipe(A(function(x){var y=l(x);x=y.next().value;y=y.next().value;var E;if(E=y)null==x?x=0:(y=AE(x,y),x=null==y||-1===y?!1:y<x.endIndex||x.params.page<x.numPages),E=x;return!!E}));this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){XDc(u)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(x){u.issueId=
x;XDc(u)}));this.subscriptions.add(this.issues$.subscribe(function(x){var y=u.internalSearchResults$.value;y&&XWb(y,x.filter(function(E){var H=E.component;return E.issue&&H}))}))};W(i7,Y);i7.\u0275dir=Y.\u0275dir;
var YDc=function(a){var b,c,d=null!=(c=null==(b=a.internalSearchResults$.value)?void 0:b.params.returnUrl)?c:"";a.issueInteractionsTracking.trackNavigation(""===d?"home":"up");a.bLocation.hash("");a.bLocation.url(d)},ynb=function(a){var b=Gk(a.hasNextIssue$),c=Gk(a.issueIndex$);b&&c&&ZDc(a,c+1)},xnb=function(a){var b=Gk(a.hasPreviousIssue$),c=Gk(a.issueIndex$);b&&c&&ZDc(a,c-1)},XDc=function(a){var b,c,d;Ne(function(e){if(1==e.nextAddress)return e.yield(FXb(a.issuePagination).catch(vnb),2);b=e.yieldResult;
a.internalSearchResults$.next(null!=(c=b)?c:null);if(!b||!a.issueId)return e.return();d=AE(b,a.issueId);return-1===d?e.jumpTo(0):e.yield(GXb(a.issuePagination,d).catch(vnb),0)})},ZDc=function(a,b){GXb(a.issuePagination,b).then(function(c){a.bLocation.url(a.paths.editIssue(c))},function(){a.butterBar.showWarning("Can't find issue id for index '"+b+"'")})};i7.\u0275fac=function(a){return new (a||i7)(n(CI),n(JF),n(GH),n(OG),n(gO),n(wE),n(xE),n(EH),n(VF))};
i7.\u0275prov=$c({token:i7,factory:i7.\u0275fac,providedIn:"root"});var znb=function(a){return{"invisible zero-width":a}},j7=function(a){this.currentSearchResults=a;this.HOTKEYS=BD};j7.\u0275fac=function(a){return new (a||j7)(z(i7))};
j7.\u0275cmp=od({type:j7,selectors:[["b-pagination-one-issue"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"ngClass"],["mat-icon-button","","matTooltip","Previous Issue","aria-label","Previous Issue",1,"gmat-button","medium",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-left",1,"icon-l"],["mat-icon-button","","matTooltip","Next Issue","aria-label","Next Issue",1,"gmat-button","medium",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-right",1,"icon-l"]],template:function(a,b){a&
1&&(P(0,Anb,9,12,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.currentSearchResults.issueIndex$))},dependencies:[Cv,Ev,qA,sE,Ez,FB,Kv],styles:["[_nghost-%COMP%]{display:inline-block;color:#5f6368;color:var(--muted);white-space:nowrap}.bv2-material   [_nghost-%COMP%]     button.mat-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}output[_ngcontent-%COMP%]{font-weight:500}[mat-icon-button][_ngcontent-%COMP%]{margin-left:-4px}[_nghost-%COMP%]   span.zero-width[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:0}/*# sourceMappingURL=pagination_one_issue.css.map */"],
changeDetection:0});var k7=function(a,b,c){this.documentationLinks=a;this.issueLimits=b;this.accessPolicyApi=c;this.implicitAccessEnabled=!1};k7.prototype.ngOnInit=function(){var a=this;this.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(this.componentId)).then(function(b){return a.implicitAccessEnabled=b})};k7.prototype.toggleAccessLimits=function(){var a=this;return Ne(function(b){a.issueLimits.open({componentId:Number(a.componentId),issueId:a.issueId});Se(b)})};
k7.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};k7.prototype.getAccessLimitLevelDisplay=function(a){return"LIMIT_APPEND"===a?"Commenting":"LIMIT_VIEW"===a||"LIMIT_VIEW_TRUSTED"===a?"Visibility":""};
var $Dc=function(a,b){if(b)a:if(a=a.implicitAccessEnabled,b===kic.accessLevel)b=a?"Only added users + Googlers may access. The assignee, verifier and collaborators may edit. CCs can comment. Googler access is according to their component-level permissions.":"Only added users + Googlers may access. They have their normal access as defined by the component-level permissions.";else{for(var c=l(GTa),d=c.next();!d.done;d=c.next())if(d=d.value,d.accessLevel===b){b=a?d.descriptionWithExpandedAccess:d.descriptionNoExpandedAccess;
break a}b=a?Bp.descriptionWithExpandedAccess:Bp.descriptionNoExpandedAccess}else b="";return b};k7.\u0275fac=function(a){return new (a||k7)(z(yL),z(rY),z(nG))};
k7.\u0275cmp=od({type:k7,selectors:[["b-access-limits-chip"]],inputs:{issueId:"issueId",componentId:"componentId",accessLimitLevel:"accessLimitLevel"},decls:12,vars:4,consts:[["role","button","matTooltip","Press Alt + Right arrow for more details",1,"chippy","rounded","nowrap","access-limited",3,"onedevHovercardTrigger","click","keydown.enter","keydown.space"],["svgIcon","encrypted_24px",1,"icon-s","valign-middle"],[1,"access-limit-display-name"],["card","onedevHovercard"],[1,"onedev-hovercard-content"],
[1,"onedev-hovercard-body"],[1,"hovertext"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){return b.toggleAccessLimits()})("keydown.enter",function(d){return b.toggleAccessLimitsWithKeystroke(d)})("keydown.space",function(d){return b.toggleAccessLimitsWithKeystroke(d)}),G(1,"mat-icon",1),D(2,"span",2),Q(3),F()(),D(4,"onedev-hovercard",null,3)(6,"div",4)(7,"div",5)(8,"span",6),Q(9),D(10,"a",7),Q(11,
" Learn more"),F()()()()());if(a&2){var c=N(5);C("onedevHovercardTrigger",c);w(3);jg(b.getAccessLimitLevelDisplay(b.accessLimitLevel));w(6);S(" Issue access is limited. ",$Dc(b,b.accessLimitLevel)," ");w(1);C("href",b.documentationLinks.getIssueAccessLimit(),re)}},dependencies:[qA,FB,PJ,UJ],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px;cursor:pointer}.chippy[_ngcontent-%COMP%]:hover, .chippy[_ngcontent-%COMP%]:focus, .chippy[_ngcontent-%COMP%]:focus-visible, .chippy[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;outline-offset:2px}.chippy.access-limited[_ngcontent-%COMP%]{background-color:#d2e3fc;background-color:var(--selected-bg);border:1px solid;border-color:#185abc;border-color:var(--primary-c800);box-shadow:none}.chippy[_ngcontent-%COMP%]   .access-limit-display-name[_ngcontent-%COMP%]{padding-right:2px;font-weight:500}.bubble[_ngcontent-%COMP%]{width:300px}"],
changeDetection:0});var l7=function(a){this.brain=a;this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(A(function(b){return null==b?void 0:b.issue}),cf(cl));this.retentionState$=this.issue$.pipe(A(function(b){var c;return null==(c=b.aggregatedData)?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(A(function(b){var c;return(null==(c=b.aggregatedData)?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),cf(cl));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return null==
(c=b.accessLimit)?void 0:c.accessLevel}),cf(cl));this.issueAccessLimitLevel$=this.issue$.pipe(A(function(b){return b.snapshot[0].issueAccessLimitLevel}));this.issueId$=this.issue$.pipe(A(function(b){return b.issueId}));this.state$=(0,B.combineLatest)([this.retentionState$,this.issueAccessLimitLevel$,this.modifiedTime$,this.accessLevel$,this.issueId$,this.brain.componentId$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value,e=c.next().value,f=c.next().value,h=c.next().value;c=c.next().value;
return{retentionState:b,isAccessLimited:"LIMIT_VIEW"===d||"LIMIT_APPEND"===d||"LIMIT_VIEW_TRUSTED"===d,isShowingRetention:null==(null==b?void 0:b.scheduledDeletionTime)?!1:A_a(b),isShowingPublicPartner:"INTERNAL"!==f,modifiedTime:e,accessLevel:f,issueId:h,componentId:c,issueAccessLimitLevel:d}}))};l7.\u0275fac=function(a){return new (a||l7)(z(CI))};
l7.\u0275cmp=od({type:l7,selectors:[["issue-chip-indicators"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","flex-kids-x gap-s margin-xs-right",4,"ngIf"],[1,"flex-kids-x","gap-s","margin-xs-right"],[3,"accessLevel",4,"ngIf"],[3,"issueId","componentId","accessLimitLevel",4,"ngIf"],[3,"retentionState","compactMode","modifiedTime",4,"ngIf"],[3,"accessLevel"],[3,"issueId","componentId","accessLimitLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(P(0,Fnb,2,1,"ng-container",
0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.state$))},dependencies:[k7,Ev,XO,TY,Kv],encapsulation:2});var m7=function(a){this.teamsService=a;this.onTeamLoaded=new B.ReplaySubject(1);this.teamName$=new B.BehaviorSubject("");this.isTeamLoaded=!1};m7.prototype.ngOnChanges=function(a){var b=this;a.teamId&&null!==this.teamId&&(0===this.teamId?(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)):vI(this.teamsService,String(this.teamId)).pipe(nf(),A(function(c){return c.name})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
m7.\u0275fac=function(a){return new (a||m7)(z(uI))};
m7.\u0275cmp=od({type:m7,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},features:[Fd],decls:7,vars:6,consts:[[3,"isReady"],["class","b-chip squared s",3,"onedevHovercardTrigger",4,"ngIf"],["card","onedevHovercard"],[3,"componentId","teamId"],[1,"b-chip","squared","s",3,"onedevHovercardTrigger"],["svgIcon","supervisor_account_24px",1,"icon-xs"]],template:function(a,b){a&1&&(D(0,"b-async-data-placeholder",0),P(1,Gnb,4,4,"div",1),
T(2,"async"),F(),D(3,"onedev-hovercard",null,2),I(5),G(6,"b-team-card",3),K(),F());if(a&2){var c;C("isReady",b.isTeamLoaded);w(1);C("ngIf",V(2,4,b.teamName$));w(5);C("componentId",null==b.componentId?null:b.componentId.toString())("teamId",null!==(c=null==b.teamId?null:b.teamId.toString())&&void 0!==c?c:"0")}},dependencies:[Ev,qA,aU,PJ,UJ,vR,Kv],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});var n7=function(a,b,c,d,e,f,h){Y.call(this);var k=this;this.issueFridge=a;this.issuePermissionService=b;this.router=c;this.refreshMonitor=d;this.currentSearchResults=e;this.currentTracker=f;this.eventsForIssueFridge=h;this.editTitleDisabled=this.starToggleDisabled=!1;this.issueId$=new B.ReplaySubject(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=CDc;this.blockedIdsToUrlQuery=function(q){if(!(2>q.length))return{q:"blockingid:"+k.issueId}};this.HOTKEYS=BD;this.issue$=
this.issueId$.pipe(zf(this.issueFridge.watch));this.issueTitle$=this.issue$.pipe(A(function(q){return null==q?void 0:q.snapshot[0].title}));this.starred$=this.issue$.pipe(A(function(q){var u;return $k(null==q?void 0:null==(u=q.userData)?void 0:u.starred)}));this.componentId$=this.issue$.pipe(A(function(q){return $k(null==q?void 0:q.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(A(function(q){return $k(null==q?void 0:q.ancestors)}));this.hasAncestors$=this.ancestors$.pipe(A(function(q){return!!(q&&
0<q.size)}));this.teamId$=this.issue$.pipe(A(function(q){var u;return $k(null==q?void 0:null==(u=q.aggregatedData)?void 0:u.teamId)}));this.blockedByids$=this.issue$.pipe(A(function(q){var u;return null!=(u=null==q?void 0:q.snapshot[0].blockedByIssueId)?u:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(zf(this.issueFridge.watchSet),A(function(q){return q.filter(Hn)}),A(function(q){return q.length}));Fk(this.issuesBlockedByCount$.pipe(A(Rnb),Af(this.destroyed$)),"Blocked");this.blockedByids$.pipe(A(Snb));
this.blockedByids$.pipe(A(this.blockedIdsToUrlQuery));this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.status$=this.issue$.pipe(A(function(q){return(null==q?void 0:q.snapshot[0].status)||void 0}));this.statusCssClass$=this.status$.pipe(A(function(q){return k.computeStatusCssClass(q)}));this.prettyStatus$=this.status$.pipe(cf(cl),A(function(q){return Uk[q]}));this.statusIsFeatured$=this.status$.pipe(A(function(q){return!!PTb[q]}));this.toggleStar=function(){var q=
!!Gk(k.starred$);k.starToggleDisabled=!0;TYb(k.issueFridge,k.issueId,!q).pipe(qf(),Af(k.destroyed$)).subscribe(function(){k.starToggleDisabled=!1})};this.toggleStarDebounced=Tt(this.toggleStar,1E3)};W(n7,Y);n7.\u0275dir=Y.\u0275dir;var aEc=function(a,b){a.editTitleDisabled=!0;UYb(a.issueFridge,a.issueId,b).pipe(Af(a.destroyed$)).subscribe(function(){a.editTitleDisabled=!1;a.eventsForIssueFridge.poke(a.issueId)})};
n7.prototype.computeStatusCssClass=function(a){return null===a||void 0===a?"":"status-"+Cwa[a]};n7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};Qh.Object.defineProperties(n7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});n7.\u0275fac=function(a){return new (a||n7)(z(GH),z(EI),z(WD),z(EH),z(i7),z(jG),z(cH))};
n7.\u0275cmp=od({type:n7,selectors:[["issue-header"]],inputs:{issueId:"issueId"},features:[Jf],decls:41,vars:49,consts:[[1,"padded-s","border-bottom",3,"ngClass"],[1,"pos-fill",2,"bottom","auto","height","6px",3,"title"],[1,"row","row-1","flex-kids-x","space-between"],[1,"left","flex-kids-x","flex-wrap","gap-s"],[4,"ngIf","ngIfElse"],["withAncestorsBreadcrumbs",""],["withoutAncestorBreadcrumbs",""],[1,"right"],[1,"row","row-2","flex-kids-x","margin-s-top"],[1,"left","flex-kids-x","align-items-center"],
[1,"nowrap"],["mat-icon-button","",1,"small","back-btn",3,"hotkey","matTooltip","onHotkey","click"],["svgIcon","arrow-backward",1,"icon-s"],["mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"small",3,"hotkey","onHotkey","click"],["svgIcon","refresh",1,"icon-s"],[3,"starred","disabled","hotkey","starClicked","onHotkey"],[1,"right","pos-rel","flex-kids-x","align-items-center"],[3,"title","componentId","disabled","hasAclToEdit","updateTitle"],["class","b-chip squared bad xs margin-xs-left",
3,"onedevHovercardTrigger",4,"ngIf"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],[1,"pos-br",3,"issueId"],["inert","","aria-hidden","true",3,"issueId"],[4,"ngTemplateOutlet"],[3,"componentId","teamId","onTeamLoaded"],[4,"ngIf"],[3,"componentId","compactMode","issueId"],[1,"b-chip","squared","s"],[3,"ancestors","issueId",4,"ngIf"],[2,"margin-right","-4px",3,"issueId","componentId","issueTitle","isExternalIssue"],[3,"ancestors","issueId"],[3,"componentId","issueId"],[1,"b-chip","squared",
"s","padding-0"],[3,"issueId","componentId","issueTitle","isExternalIssue"],[1,"b-chip","squared","bad","xs","margin-xs-left",3,"onedevHovercardTrigger"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[3,"onedevIsHovercardReady","hovercardInstance","currentIssueId","issueIds","mode"],["cardBody",""]],template:function(a,b){a&1&&(D(0,"div",0),T(1,"async"),T(2,"async"),T(3,"async"),G(4,"aside",1),T(5,"async"),T(6,"async"),D(7,"div",2)(8,"div",3),P(9,Inb,2,1,"ng-container",4),T(10,"async"),P(11,Lnb,4,
7,"ng-template",null,5,Eg),P(13,Nnb,4,7,"ng-template",null,6,Eg),F(),D(15,"div",7),G(16,"b-pagination-one-issue"),F()(),D(17,"div",8)(18,"div",9)(19,"div",10)(20,"button",11),L("onHotkey",function(){return YDc(b.currentSearchResults)})("click",function(){return YDc(b.currentSearchResults)}),T(21,"async"),T(22,"async"),G(23,"mat-icon",12),F(),D(24,"button",13),L("onHotkey",function(){return b.refresh()})("click",function(){return b.refresh()}),G(25,"mat-icon",14),F(),D(26,"b-star-toggle",15),L("starClicked",
function(){return b.toggleStar()})("onHotkey",function(){return b.toggleStarDebounced()}),T(27,"async"),F()(),G(28,"issue-chip-indicators"),F(),D(29,"div",16)(30,"issue-title",17),L("updateTitle",function(e){return aEc(b,e)}),T(31,"async"),T(32,"async"),T(33,"async"),F(),P(34,Pnb,3,2,"div",18),T(35,"async"),D(36,"onedev-hovercard",null,19),P(38,Qnb,4,7,"ng-container",20),F(),G(39,"issue-actions",21)(40,"issue-actions",22),F()()());if(a&2){var c=N(14),d;Xf("overline",V(1,23,b.statusIsFeatured$))("color-field",
V(2,25,b.statusIsFeatured$));hg("ngClass",V(3,27,b.statusCssClass$));w(4);ig("title","[",V(5,29,b.prettyStatus$),"] ",V(6,31,b.issueTitle$),"");w(5);C("ngIf",V(10,33,b.hasAncestors$))("ngIfElse",c);w(11);C("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(d=V(21,35,b.currentSearchResults.backNavigationLabel$))&&void 0!==d?d:"");Nf("aria-label",V(22,37,b.currentSearchResults.backNavigationLabel$));w(4);C("hotkey",b.HOTKEYS.REFRESH_ISSUE);w(2);C("starred",V(27,39,b.starred$))("disabled",b.starToggleDisabled)("hotkey",
b.HOTKEYS.TOGGLE_STAR);w(4);C("title",V(31,41,b.issueTitle$))("componentId",V(32,43,b.componentId$))("disabled",b.editTitleDisabled)("hasAclToEdit",V(33,45,b.issuePermissionService.hasAclToEdit$));w(4);C("ngIf",V(35,47,b.issuesBlockedByCount$));w(5);C("issueId",b.issueId);w(1);C("issueId",b.issueId)}},dependencies:[Y6,Cv,Ev,Jv,qA,mY,sE,PJ,QJ,UJ,RJ,cU,h7,X6,Ez,FB,KJ,m7,j7,g7,l7,Kv],styles:[".row-1[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{align-items:flex-start}.row-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{flex-grow:1}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.back-btn[_ngcontent-%COMP%]{margin-left:-4px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}b-star-toggle[_ngcontent-%COMP%]{margin-right:4px}b-pagination-one-issue[_ngcontent-%COMP%]{margin-left:8px;height:22px;margin-top:-5px}issue-actions.pos-br[_ngcontent-%COMP%]{bottom:0;right:0}issue-actions[inert][_ngcontent-%COMP%]{display:inline-flex;visibility:hidden}[_nghost-%COMP%]     .b-chip{margin-right:0;max-width:100%}[_nghost-%COMP%]     issue-title, [_nghost-%COMP%]     issue-title h3{display:inline}[_nghost-%COMP%]     b-app-vote-button .gmat-button:not([disabled]):not([aria-pressed=true]), [_nghost-%COMP%]     smart-dupe-btn .mat-stroked-button:not([disabled]), [_nghost-%COMP%]     hotlist-picker-btn .mat-stroked-button:not([disabled]){background-color:#fff;background-color:var(--background)}"]});var o7=function(a,b){var c=this;this.currentTracker=a;this.trackerFridge=b;this.issueTrackerId$=new B.BehaviorSubject("");this.showTrackerBanner$=(0,B.combineLatest)([this.issueTrackerId$,this.currentTracker.trackerId$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return!!xn(e)&&!xn(d)}));this.tracker$=this.issueTrackerId$.pipe(zf(function(d){return xn(d)?(0,B.of)(void 0):c.trackerFridge.watch(d)}));this.trackerRedirectUrl$=this.tracker$.pipe(A(function(d){return kG(c.currentTracker,
String(c.issueId),d)}))};Qh.Object.defineProperties(o7.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(null!=a?a:"")}}});o7.\u0275fac=function(a){return new (a||o7)(z(jG),z(iG))};
o7.\u0275cmp=od({type:o7,selectors:[["b-tracker-banner"]],inputs:{issueId:"issueId",trackerId:"trackerId"},decls:3,vars:5,consts:[["class","tracker-banner",4,"ngIf"],[1,"tracker-banner"],["alt","",3,"src"],["mat-button","",1,"mat-stroked-button","gmat-button","small",3,"href"]],template:function(a,b){a&1&&(P(0,Tnb,7,6,"div",0),T(1,"async"),T(2,"async"));a&2&&C("ngIf",V(1,1,b.showTrackerBanner$)&&V(2,3,b.tracker$))},dependencies:[Ev,Fz,Kv],styles:[".tracker-banner[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);background-color:#fef7e0;background-color:var(--archived-bg-pale);-moz-box-sizing:border-box;box-sizing:border-box;width:100%;padding:8px 16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.tracker-banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--fab-button-bg);margin-left:auto}.tracker-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:24px;height:24px;padding:3px;margin-right:12px}.tracker-banner[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:.8125rem}"]});var p7=function(a,b,c){var d=this;this.currentTracker=a;this.trackerFridge=b;this.activeSession=c;this.trackerId$=new B.BehaviorSubject("");this.tracker$=this.trackerId$.pipe(zf(function(e){return xn(e)?(0,B.of)(void 0):d.trackerFridge.watch(e)}));this.trackerName$=this.tracker$.pipe(A(function(e){return e?e.name:d.activeSession.getAppName()}));this.currentTrackerLogo$=this.currentTracker.tracker$.pipe(A(function(e){return d.getLogoUrl(e)}));this.trackerLogo$=this.tracker$.pipe(A(function(e){return d.getLogoUrl(e)}));
this.trackerRedirectUrl$=this.tracker$.pipe(A(function(e){var f="";d.issue&&(f=String(d.issueId));d.component&&(f="components/"+d.componentId);return e?kG(d.currentTracker,f,e):kYb(d.currentTracker,f)}))};p7.prototype.getLogoUrl=function(a){if(a){var b;if(null==(b=a.branding)||!b.logoUrl)return"https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}else return"https://www.gstatic.com/buganizer/img/v3/logo_light.svg";var c,d;return null!=(d=null==(c=a.branding)?void 0:c.logoUrl)?d:""};
p7.prototype.ngOnChanges=function(a){a.issue&&this.issue&&this.trackerId$.next(this.issue.trackerId||"");a.component&&this.component&&this.trackerId$.next(this.component.trackerId||"")};
Qh.Object.defineProperties(p7.prototype,{showResourceContainer:{configurable:!0,enumerable:!0,get:function(){return null!=this.issue||null!=this.component}},issueId:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this.issue)?void 0:a.issueId}},issueType:{configurable:!0,enumerable:!0,get:function(){var a,b=null==(a=this.issue)?void 0:a.snapshot[0],c;return STb[null!=(c=null==b?void 0:b.type)?c:"TYPE_UNSPECIFIED"]}},issueStatus:{configurable:!0,enumerable:!0,get:function(){var a,
b=null==(a=this.issue)?void 0:a.snapshot[0],c;return Uk[null!=(c=null==b?void 0:b.status)?c:"STATUS_UNSPECIFIED"]}},componentId:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this.component)?void 0:a.componentId}}});p7.\u0275fac=function(a){return new (a||p7)(z(jG),z(iG),z(Us))};
p7.\u0275cmp=od({type:p7,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},features:[Fd],decls:1,vars:1,consts:[["class","carded margin-top",4,"ngIf"],[1,"carded","margin-top"],[1,"centered-inside","margin-bottom"],["alt","",1,"logo",3,"src"],["svgIcon","arrow-forward",1,"icon-l"],[1,"centered-inside","heading-l","margin-bottom"],[4,"ngIf"],[1,"centered-inside"],["mat-flat-button","","color","primary","matTooltip","Go to the issue","aria-label","Go to the issue",1,"gmat-button",
3,"href"]],template:function(a,b){a&1&&P(0,Vnb,15,13,"div",0);a&2&&C("ngIf",b.showResourceContainer)},dependencies:[Ev,qA,Fz,FB,Kv],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}ol[_ngcontent-%COMP%]{box-sizing:border-box;width:322px;padding-right:8px}li[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px;line-height:21px}li[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}label[_ngcontent-%COMP%]{width:100px;font-weight:bold;color:#5f6368;color:var(--text-muted);margin-right:8px;font-size:.8125rem}.logo[_ngcontent-%COMP%]{margin-right:4px;width:32px;height:32px}"]});var q7=function(){};q7.prototype.watch=function(a,b){b=void 0===b?document.documentElement:b;return(0,B.concat)((0,B.defer)(function(){return(0,B.of)(document.getElementById(a))}),IUa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(A(function(){return document.getElementById(a)}))).pipe(cf(cl),nf())};q7.\u0275fac=function(a){return new (a||q7)};q7.\u0275prov=$c({token:q7,factory:q7.\u0275fac,providedIn:"root"});var r7=function(a){this.idWatch=a},bEc=function(a,b){var c=b.scrollableContainerId,d=void 0===b.scrollPadding?0:b.scrollPadding;return a.idWatch.watch(b.elementId,b.parentElement).pipe(nf(),A(function(e){e.scrollIntoView();if(e=document.getElementById(c))e.scrollTop-=d}))};r7.\u0275fac=function(a){return new (a||r7)(n(q7))};r7.\u0275prov=$c({token:r7,factory:r7.\u0275fac,providedIn:"root"});var s7=function(a,b,c,d){this.dynamicScrollIntoView=a;this.paths=b;this.routeParams=c;this.baseIssueReferenceResolver=d;this.destroyed$=new B.ReplaySubject(1);var e;this.issueId=null!=(e=this.routeParams.issueId)?e:""};
s7.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(bEc(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Af(this.destroyed$)).subscribe(),history&&history.pushState(null,"",this.paths.editIssue(this.issueId)+"#"+a.elementId))};s7.prototype.ngOnDestroy=function(){this.destroyed$.next()};
s7.\u0275fac=function(a){return new (a||s7)(n(r7),n(xE),n(aO),n(J4))};s7.\u0275prov=$c({token:s7,factory:s7.\u0275fac});var t7=function(a,b){Y.call(this);var c=this;this.el=a;this.router=b;this.router.events.pipe(cf(xta),Af(this.destroyed$)).subscribe(function(){var d=["scrollY",c.rememberScroll,c.router.url.toString()].join("-"),e,f=null==(e=c.el.nativeElement)?void 0:e.scrollTop;f?window.sessionStorage.setItem(d,String(f)):window.sessionStorage.removeItem(d)});this.router.events.pipe(cf(wta),Af(this.destroyed$)).subscribe(function(d){d=["scrollY",c.rememberScroll,d.url].join("-");Wnb(c.el.nativeElement,d)})};
W(t7,Y);t7.\u0275fac=function(a){return new (a||t7)(z(ae),z(WD))};t7.\u0275dir=sd({type:t7,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},features:[Jf]});var u7=function(){};u7.\u0275fac=function(a){return new (a||u7)};u7.\u0275mod=qd({type:u7});u7.\u0275inj=ad({imports:[aD,bE]});var job=function(){return{exact:!0}},v7=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa){Y.call(this);var wa=this;this.contextSensitiveRegistry=a;this.issueFridge=b;this.activeSession=c;this.permissions=d;this.editIssueService=e;this.counts=f;this.appEvents=h;this.issueInteractionsTracking=k;this.checkBeforeExit=q;this.butterBar=u;this.routerEvents=x;this.devopsGraph=y;this.refreshMonitor=E;this.eventsForIssueFridge=H;this.issueFetchResponseFridge=J;this.hotlistFridge=O;this.permissionsFridge=
R;this.issueRelationshipsFridge=U;this.issueService=Z;this.errorHandler=na;this.currentTracker=oa;this.id$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.id$.pipe(zf(this.issueFridge.watch));this.issue404$=(0,B.combineLatest)([this.id$,this.issueFetchResponseFridge.error$]).pipe(A(function(Da){var Ga=l(Da);Da=Ga.next().value;Ga=Ga.next().value;return Ga.idOrKey===Da&&404===Ga.status}),yf(!1));this.issueTrackerId$=this.issue$.pipe(A(function(Da){return null==Da?void 0:Da.trackerId}));
this.showTrackerRedirect$=(0,B.combineLatest)([this.currentTracker.trackerId$,this.issueTrackerId$]).pipe(A(function(Da){var Ga=l(Da);Da=Ga.next().value;Ga=Ga.next().value;return wa.shouldShowTrackerRedirect(Da,bl("")(Ga))}));this.snapshot$=this.issue$.pipe(A(function(Da){return null==Da?void 0:Da.snapshot[0]}));this.archived$=this.snapshot$.pipe(A(function(Da){return null==Da?void 0:Da.isArchived}));this.deleted$=this.snapshot$.pipe(A(function(Da){return null==Da?void 0:Da.isDeleted}));this.undeleteButtonTooltip$=
this.permissions.canUndeleteIssue$.pipe(A(function(Da){return Da?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(A(function(Da){return(null==Da?void 0:Da.isArchived)&&!(null==Da?0:Da.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(A(function(Da){return(null==Da?void 0:Da.snapshot[0].status)||void 0}));this.prettyStatus$=this.status$.pipe(cf(cl),A(function(Da){return Uk[Da]}));this.issue$.pipe(A(function(Da){var Ga;return null!=(Ga=null==Da?void 0:
Da.snapshot[0].title)?Ga:""}));this.issuesBeingBlocked$=this.issue$.pipe(A(function(Da){var Ga;return null!=(Ga=null==Da?void 0:Da.snapshot[0].blockingIssueId)?Ga:[]}),lf(1E3),zf(this.issueFridge.watchSet));this.issue$.pipe(A(function(Da){var Ga;return null!=(Ga=null==Da?void 0:Da.snapshot[0].duplicateIssueId)?Ga:[]}),lf(1E3),zf(this.issueFridge.watchSet));this.userHasReadAccess$=this.issueFetchResponseFridge.error$.pipe(A(function(Da){if(403===Da.status)return!1;wa.errorHandler.errorHandler(null,
Da);return!0}),yf(!0),wf({refCount:!0,bufferSize:1}));this.issueMetadata$=(0,B.defer)(function(){return wa.id$}).pipe(cf(cl),zf(function(Da){return wa.issueService.getMetadata(Da)}),wf({refCount:!0,bufferSize:1}));this.tabs=[{link:"./",title:"Comments",count$:this.counts.countCommentsDisplay$},{link:"./dependencies",title:"Dependencies",count$:this.counts.countDependenciesDisplay$},{link:"./dupes",title:"Duplicates",count$:this.counts.countDuplicateDisplay$},{link:"./blocking",title:"Blocking",count$:this.counts.countBlockedDisplay$},
{link:"./resources",title:"Resources",count$:this.counts.countResourcesDisplay$}].concat(p($C(this.activeSession,"enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]))};W(v7,Y);v7.\u0275dir=Y.\u0275dir;v7.prototype.shouldShowTrackerRedirect=function(a,b){return""!==a&&a!==b};
v7.prototype.ngOnInit=function(){var a=this,b,c,d;return Ne(function(e){if(1==e.nextAddress)return b=tA,c=b.assertExists,e.yield((0,B.firstValueFrom)(a.id$),2);d=c.call(b,e.yieldResult);a.appEvents.issueViewed.next(d);a.issueInteractionsTracking.getState(d);a.subscriptions.add(VW(a.checkBeforeExit,function(){return a.editIssueService.issueCommentDraft(d).comment().hasContent()},!1));a.subscriptions.add(a.routerEvents.routeChangeSuccess.subscribe(function(){a.butterBar.dismiss()}));a.subscriptions.add(a.issue$.pipe(cf(cl),
nf()).subscribe(function(f){IH(a.issueFridge,[f.issueId])}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");a.permissionsFridge.poke("issues/"+d);a.issueRelationshipsFridge.poke(d);LH(a.issueFetchResponseFridge,d);a.eventsForIssueFridge.poke(d);a.hotlistFridge.pokeMany(zYb);IH(a.issueFridge,[d])}));a.destroyed$.subscribe(function(){a.devopsGraph.close();var f=a.issueInteractionsTracking,h=f.getState(d);f.trackDestroy("edit-count",
h.editCount);var k=Date.now()-h.startTime;Y4b(f,k,"idp-time-on-page",h.variations);f.resetState(d);a.editIssueService.clear(d)});Se(e)})};v7.\u0275fac=function(a){return new (a||v7)(z(BI),z(GH),z(Us),z(EI),z(nO),z(q6),z(DF),z(gO),z(UW),z(VF),z(gE),z(MY),z(EH),z(cH),z(JH),z(rH),z(eI),z(dI),z(DH),z(XF),z(jG))};
v7.\u0275cmp=od({type:v7,selectors:[["issue-details-wrapper"]],features:[lg([yD,rO,{provide:US,useClass:s7}]),Jf],decls:10,vars:8,consts:[["class","a11y-only",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["showIssueDetails",""],["showTrackerRedirect",""],["showNoAccessScreen",""],[1,"a11y-only"],[4,"ngIf"],["class","flex-kids-y pos-fill",3,"issue-editor-false",4,"ngIf","ngIfElse"],[1,"flex-kids-y","pos-fill"],["class","border-bottom",3,"messageType","format","iconOverride",4,"ngIf"],["messageType",
"caution","class","border-bottom",3,"format","iconOverride",4,"ngIf"],["messageType","error","format","app","class","border-bottom",4,"ngIf"],["class","issue-header",4,"ngIf"],[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],["role","main","rememberScroll","center","cdkScrollable","",1,"flex-1","pos-rel","bg-off-main","overflow","overflow-on-print-media"],[3,"issueId",4,"ngIf"],[1,"border-bottom",3,"messageType","format","iconOverride"],["href","http://go/buganizer-issue-archive","target",
"_blank",4,"ngIf"],["mat-button","","aria-label","Unarchive issue",3,"click",4,"ngIf"],["href","http://go/buganizer-issue-archive","target","_blank"],["mat-button","","aria-label","Unarchive issue",3,"click"],["messageType","caution",1,"border-bottom",3,"format","iconOverride"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank",4,"ngIf"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],["messageType","error",
"format","app",1,"border-bottom"],["href","http://go/issue-retention","target","_blank",4,"ngIf"],["mat-button","","aria-label","Undelete issue",3,"matTooltip","disabled","click",4,"ngIf"],["href","http://go/issue-retention","target","_blank"],["mat-button","","aria-label","Undelete issue",3,"matTooltip","disabled","click"],[1,"issue-header"],[3,"issueId","trackerId"],[3,"issueId"],["mat-tab-nav-bar","","gmat-tabs",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions",
4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions"],["rla","routerLinkActive"],["style","margin-left: 4px;",4,"ngIf"],[2,"margin-left","4px"],[1,"bv2-limited-issue-view"],[3,"issue"],["data-test-id","internal-access-denied",3,"issueMetadata",4,"ngIf","ngIfElse"],["publicAccessDenied",""],["data-test-id","internal-access-denied",3,"issueMetadata"],["data-test-id","public-access-denied"]],template:function(a,b){a&1&&(P(0,Xnb,2,1,"h2",0),T(1,
"async"),P(2,Ynb,1,0,"div",1),T(3,"async"),P(4,pob,2,3,"ng-template",null,2,Eg),P(6,qob,3,3,"ng-template",null,3,Eg),P(8,tob,4,2,"ng-template",null,4,Eg));if(a&2){var c=N(5),d=N(9);C("ngIf",V(1,4,b.id$));w(2);C("ngIf",V(3,6,b.userHasReadAccess$))("ngIfThen",c)("ngIfElse",d)}},dependencies:[Dv,Ev,KD,YD,ZD,Ez,FT,GT,rU,Ay,FB,nD,oD,n7,J2,ZZ,t7,p7,o7,Kv],styles:["[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px}"]});var w7=function(a,b){Y.call(this);var c=this;this.issueFridge=a;this.butterBar=b;this.duplicateIssueIds$=new B.BehaviorSubject([]);this.tableColumns="focus-indicator title team id createdTime reporter menu".split(" ");this.initialSort={active:"createdTime",direction:"desc"};this.getMenuItems=function(d){return[{type:"action",label:"Remove duplicate",action:function(){c.removeDuplicate(d)},title:"Remove duplicate",icon:"clear"}]}};W(w7,Y);w7.\u0275dir=Y.\u0275dir;w7.prototype.ngOnInit=function(){};
w7.prototype.removeDuplicate=function(a){var b=this,c;return Ne(function(d){if(1==d.nextAddress)return Oe(d,2),d.yield(b.issueFridge.removeDuplicate(b.issueId,a),4);if(2!=d.nextAddress)return $s(d,0);c=Re(d);b.butterBar.showWarning("Could not remove duplicate "+a+". "+c);Se(d)})};Qh.Object.defineProperties(w7.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((null!=a?a:[]).map(function(b){return String(b)}))}}});
w7.\u0275fac=function(a){return new (a||w7)(z(GH),z(VF))};w7.\u0275cmp=od({type:w7,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},features:[Jf],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(P(0,uob,2,4,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.duplicateIssueIds$))},dependencies:[Ev,c6,Kv],encapsulation:2,changeDetection:0});var x7=function(a,b,c,d,e){Y.call(this);var f=this;this.paramsService=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.counts=e;this.ROBOT_SLEEPING=P6b;this.id$=this.paramsService.issueId$;this.dupeUrl$=this.id$.pipe(A(function(h){return{path:"/issues",params:{q:"canonicalid:"+h}}}));this.issue$=this.id$.pipe(zf(this.issues.watch));this.duplicateIds$=this.issue$.pipe(A(function(h){var k;return null!=(k=null==h?void 0:h.snapshot[0].duplicateIssueId)?k:[]}));this.duplicatesCount$=this.duplicateIds$.pipe(zf(function(h){return 0===
h.length?(0,B.of)(0):f.counts.duplicatesDualCount$.pipe(A(function(k){return k.total.count}))}));this.showTable$=this.duplicatesCount$.pipe(A(function(h){return 0<h}),yf(!0));this.didChooseDupes=function(h){var k=Gk(f.id$);null!=k&&WYb(f.issues,k,h[0]).catch(f.gotErr)};this.gotErr=function(h){f.snackBar.open(tn(h)||"Error with network request","close",{panelClass:"error"})}};W(x7,Y);x7.\u0275dir=Y.\u0275dir;x7.prototype.isThinking=function(){return this.issues.isThinking()};
var vob=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1,edgeType:"duplicate"},a.didChooseDupes)};x7.\u0275fac=function(a){return new (a||x7)(z(AI),z(GH),z(MV),z(SF),z(q6))};
x7.\u0275cmp=od({type:x7,selectors:[["ng-component"]],features:[Jf],decls:4,vars:4,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","pos-tr padded",4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/duplicate-issue",1,"nowrap"],["mat-flat-button","","color","primary","matTooltip",
"Add a duplicate to the current issue",1,"gmat-button","small",3,"click"],[1,"section-heading","muted"],["mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"gmat-button","small","add",3,"click"],[3,"issueId","duplicateIds",4,"ngIf"],[1,"margin-s-top","flex-kids-x","gap-s"],[3,"issueId","duplicateIds"],["mat-button","","color","primary",1,"gmat-button","small",3,"routerLink","queryParams"],[1,"pos-tr","padded"]],template:function(a,b){a&1&&(D(0,"section",0),
P(1,Aob,5,4,"ng-container",1),T(2,"async"),F(),P(3,Bob,2,0,"aside",2));a&2&&(w(1),C("ngIf",V(2,2,b.duplicateIds$)),w(2),C("ngIf",b.isThinking()))},dependencies:[Ev,YD,Ez,Fz,FB,MJ,w7,Kv],styles:["[_nghost-%COMP%]{display:block;padding:8px}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px;padding-left:16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}button.add[_ngcontent-%COMP%]{margin-left:16px}\n/*# sourceMappingURL=issue_duplicates.css.map */"]});var y7=function(){};y7.\u0275fac=function(a){return new (a||y7)};y7.\u0275mod=qd({type:y7});y7.\u0275inj=ad({imports:[aD,zx,Qx,Dw,Ew,bE,SB,HT,FC,CK,GV,rL,AK,f6]});var cEc=function(a){this.internalArray_=m(a)};W(cEc,X);g=cEc.prototype;g.getIssueId=function(){return Yi(this,1)};g.setIssueId=function(a){return wj(this,1,a)};g.getAttachmentId=function(){return Yi(this,2)};g.setAttachmentId=function(a){wj(this,2,a)};g.getPiiRetention=function(){return Vi(this,3,0)};g.setPiiRetention=function(a){return rj(this,3,a)};var z7=function(a){this.executor=a};z7.prototype.updateRetention=function(a,b,c){var d=new cEc;d.setIssueId(a);d.setAttachmentId(String(b));d.setPiiRetention(Gwa[c]);return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:d,responseConstructor:fF}).pipe(A(Oxa))};z7.\u0275fac=function(a){return new (a||z7)(n(tD))};z7.\u0275prov=$c({token:z7,factory:z7.\u0275fac,providedIn:"root"});var A7=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new Yu};A7.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};A7.\u0275fac=function(a){return new (a||A7)};
A7.\u0275cmp=od({type:A7,selectors:[["b-conditional-link"]],inputs:{isGreyedOut:"isGreyedOut",displayName:"displayName",linkUrl:"linkUrl",linkEnabled:"linkEnabled",useCustomHandler:"useCustomHandler"},outputs:{customHandler:"customHandler"},decls:2,vars:2,consts:[[3,"muted",4,"ngIf"],["class","normal-link","target","_blank",3,"href","rel","click",4,"ngIf"],["target","_blank",1,"normal-link",3,"href","rel","click"]],template:function(a,b){a&1&&(P(0,Cob,2,3,"span",0),P(1,Dob,2,3,"a",1));a&2&&(C("ngIf",
b.isGreyedOut||!b.linkEnabled),w(1),C("ngIf",!b.isGreyedOut&&b.linkEnabled))},dependencies:[Ev],encapsulation:2,changeDetection:0});var B7=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O){Y.call(this);this.activeSession=a;this.documentationLinks=b;this.domSafe=c;this.matDialogService=d;this.attachmentService=e;this.cdr=f;this.differs=h;this.paths=k;this.userAccess=q;this.butterBar=u;this.errorHandler=x;this.analytics=y;this.issueCommentDialogsService=E;this.issuePermissionService=H;this.editIssueService=J;this.routeParams=O;this.isInternalSession=this.activeSession.isInternalSession();this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1};W(B7,Y);B7.\u0275dir=Y.\u0275dir;B7.prototype.ngOnInit=function(){this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create());var a;this.attachmentRetentionOverride=null==(a=this.attachment)?void 0:a.piiRetention;dEc(this);eEc(this)};B7.prototype.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&(dEc(this),this.cdr.markForCheck())};
B7.prototype.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
var dEc=function(a){a.actionMenuItems=[];fEc(a)&&a.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."});gEc(a)&&a.actionMenuItems.push({type:"action",action:function(){q5b(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});a.isInternalSession&&a.actionMenuItems.push({type:"action",action:function(){cmc(a.issueCommentDialogsService,a.issueId,a.attachmentUploader===a.activeSession.getUserEmail(),a.attachment)},label:"Restriction settings..."});
if(a.isInternalSession&&a.isRestricted()&&a.isActive()){var b="COMPONENT_DEFAULT"===a.attachmentRetentionOverride;a.actionMenuItems.push({type:"action",action:function(){var c=b?"INDEFINITE":"COMPONENT_DEFAULT";bmc(a.issueCommentDialogsService,"attachment",c).then(function(d){d&&hEc(a,c)})},label:b?"Match issue retention...":"Revert to component retention..."})}};
B7.prototype.setHasViewAccess=function(){var a=this;this.isRestricted()?null==this.attachment?this.hasViewAccess=!1:(this.hasViewAccess=!1,uG(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};B7.prototype.getFilename=function(){var a;return(null==(a=this.attachment)?void 0:a.filename)||""};
B7.prototype.getSize=function(){var a;return(null==(a=this.attachment)?void 0:a.length)||0};var Hob=function(a,b){b=void 0===b?!0:b;var c;if(null==(c=a.attachment)||!c.attachmentId)throw Error("Ue");c=a.paths.getAttachmentAction(a.issueId,a.attachment.attachmentId);a=a.paths.getBaseUrl()+"/"+c;return cB(a,"download",b)};B7.prototype.isActive=function(){var a;if(null==(a=this.attachment)||!a.attachmentId)return!1;var b;return"ACTIVE"===(null==(b=this.attachment.entityStatus)?void 0:b.status)};
B7.prototype.isRestricted=function(){return"NONE_DETECTED"!==this.getPiiSeverity()};B7.prototype.getPiiSeverity=function(){var a;return Rl(null==(a=this.attachment)?void 0:a.contentVerdict)};B7.prototype.getRestrictedLabel=function(){return Dva(this.getPiiSeverity())};
var Iob=function(a){return(a=a.getPiiSeverity())?"bv2-restricted-content-limit-"+Cva(a):""},Gob=function(a,b){a.analytics.trackEvent(xp.RESTRICTED_CONTENT,"viewRestrictedContent","attachment");a.matDialogService.open(BL,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})},fEc=function(a){var b;if(null!=(b=a.attachment)&&b.attachmentId){b=a.issuePermissionService;var c=a.attachment;a=a.attachmentUploader;b=c?(c=c.entityStatus)&&"ACTIVE"===c.status?b.hasAclToAdmin()||DI(b,a)?
!0:!1:!1:!1}else b=!1;return b},gEc=function(a){var b;if(null!=(b=a.attachment)&&b.attachmentId){b=a.issuePermissionService;var c=a.attachment;a=a.attachmentUploader;b=c?(c=c.entityStatus)&&"DELETED"===c.status?b.hasAclToAdmin()||DI(b,a)?!0:!1:!1:!1}else b=!1;return b};B7.prototype.showDeleteAttachmentDialog=function(){var a;null!=(a=this.attachment)&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var hEc=function(a,b){var c;null!=(c=a.attachment)&&c.attachmentId?(a.analytics.trackEvent(xp.RESTRICTED_CONTENT,"updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(Af(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=d.piiRetention,a.attachment.piiRetentionState=d.piiRetentionState);WF(a.butterBar,"Attachment retention updated",
4E3);a.attachmentRetentionOverride="INDEFINITE"===b?"INDEFINITE":"COMPONENT_DEFAULT";dEc(a);a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;YF(a.errorHandler,"Attachment retention update failed")}})):YF(a.errorHandler,"Attachment id is missing")},eEc=function(a){var b,c,d;Ne(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===(null==(c=a.attachment)?void 0:c.attachmentId)&&(d="true"===a.routeParams.download,Gob(a,d));Se(e)})};
B7.\u0275fac=function(a){return new (a||B7)(z(Us),z(yL),z(zL),z(Uz),z(z7),z(yD,2),z(Bv),z(xE),z(sG),z(VF),z(XF),z(zH),z(kY),z(EI),z(nO),z(aO))};
B7.\u0275cmp=od({type:B7,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},features:[lg([yD]),Jf,Fd],decls:16,vars:8,consts:[[1,"bv2-issue-attachment-image"],["name","file-present","size","large",1,"bv2-issue-attachment-icon"],[1,"bv2-issue-attachment-filename"],[1,"bv2-issue-event-attachment-info"],[3,"label","retentionState","contentType",4,"ngIf"],["class","bv2-issue-attachment-overflow-menu",4,"ngIf"],[3,"class",4,"ngIf"],
[3,"panelTemplate"],["class","bv2-restricted-access-help-icon help-icon",4,"ngIf"],["restrictedAccessHelp",""],[3,"label","retentionState","contentType"],[1,"bv2-issue-attachment-overflow-menu"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"isGreyedOut","displayName","linkUrl","linkEnabled","useCustomHandler","customHandler"],[1,"bv2-restricted-access-help-icon","help-icon"],["aria-label","Restricted Access Help","mat-icon-button","","target","_blank",1,"help","small",3,
"href","disableRipple"],[3,"svgIcon"],[1,"implicit-access-help-bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(D(0,"div",0),G(1,"b-icon",1),F(),D(2,"div")(3,"div",2),Q(4),D(5,"span",3),P(6,Eob,1,3,"b-restricted-chip",4),P(7,Fob,2,3,"span",5),F()(),D(8,"div"),Q(9),P(10,Job,2,8,"span",6),P(11,Kob,2,8,"span",6),D(12,"xap-bubble",7),P(13,Lob,3,3,"span",8),P(14,Mob,4,1,"ng-template",null,9,Eg),F()()());if(a&2){var c=N(15);w(4);S(" ",b.getFilename()," ");w(2);C("ngIf",b.isRestricted());
w(1);C("ngIf",0<b.actionMenuItems.length);w(2);S(" ",JBa(b.getSize())," ");w(1);var d;a=b.isActive()&&Npa(null==(d=b.attachment)?void 0:d.contentType);C("ngIf",a);w(1);C("ngIf",b.isActive());w(1);C("panelTemplate",c);w(1);C("ngIf",b.isRestricted()&&!b.hasViewAccess)}},dependencies:[Ev,qA,h_,A7,bD,Fz,FB,u4,WO],encapsulation:2,changeDetection:0});var iEc=["commentActionsMenu"],jEc=["editDescription"],gpb=function(){return[]},C7=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J){Y.call(this);var O=this;this.eventsForIssue=a;this.userPreferencesManager=b;this.issueFridge=c;this.issueReferenceResolver=d;this.activeSession=e;this.commentService=f;this.errorHandler=h;this.analytics=k;this.butterBar=q;this.userAccess=u;this.issueCommentDialogsService=x;this.issuePermissionService=y;this.commentHistoryDialogService=E;this.dateFormatter=H;this.issueFetchResponseFridge=
J;this.id$=new B.ReplaySubject(1);this.accessLevel$=this.id$.pipe(zf(this.issueFridge.watch),A(function(R){var U;return null==R?void 0:null==(U=R.accessLimit)?void 0:U.accessLevel}));this.firstEvent$=new B.ReplaySubject(1);this.firstNote$=this.firstEvent$.pipe(A(function(R){return R}));this.commentActionMenuItems$=new B.BehaviorSubject([]);this.isFormattingOverrideEnabled=!1;this.formattingMode="PLAIN";this.formattingMode$=Fk(this.firstEvent$.pipe(cf(cl),A(function(R){return R.formattingMode})),"PLAIN");
this.isRedacted$=this.firstEvent$.pipe(cf(cl),A(function(R){return R.commentRedacted}));this.isDeleted$=this.firstEvent$.pipe(cf(cl),A(function(R){return"DELETED"===R.commentDeletionStatus}));this.shouldShowRestrictedPlaceholder$=(0,B.combineLatest)([this.isRedacted$,this.isDeleted$]).pipe(A(function(R){var U=l(R);R=U.next().value;U=U.next().value;return!(!R||U)}));this.isRestricted$=this.firstEvent$.pipe(cf(cl),A(function(R){return Rl(R.commentContentVerdict)}),A(function(R){if(!O.isInternalSession)return!1;
switch(R){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:$h(R)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(cf(cl),A(function(R){return R.commentRetention}));this.commentHistoryEnabled=$C(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=(0,B.combineLatest)([this.firstEvent$,this.isRedacted$]).pipe(A(function(R){var U=l(R);R=U.next().value;U=U.next().value;return!(!($C(O.activeSession,"enableCommentHistoryUi")&&
0<((null==R?void 0:R.commentVersion)||0))||U)}));this.canEditComment$=this.firstEvent$.pipe(zf(function(R){return R?O.issuePermissionService.canEditComment$(R):(0,B.of)(!1)}),wf({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Gk(O.canEditComment$)};this.isInternalSession=this.activeSession.isInternalSession();this.mayReadPii$=this.isRestricted$.pipe(zf(function(R){return R?O.mayReadPii():(0,B.of)(void 0)}));this.reporterUser$=this.id$.pipe(zf(function(R){return O.issueFridge.watch(R)}),
A(function(R){var U;return null==R?void 0:null==(U=R.snapshot[0])?void 0:U.reporterUser}));this.reporterUserEmailAddress$=this.reporterUser$.pipe(A(jpb));this.firstEventReporterEmail$=this.firstEvent$.pipe(A(function(R){R=l((null==R?void 0:R.postDiffs)||[]);for(var U=R.next();!U.done;U=R.next())if(U=U.value,"reporter"===U.name)return U.newValue||"";return""}));this.onBehalfOfEmail$=(0,B.combineLatest)([this.firstEventReporterEmail$,this.reporterUserEmailAddress$]).pipe(A(function(R){var U=l(R);R=
U.next().value;U=U.next().value;return R||U}));this.isAuthorNotReporter$=(0,B.combineLatest)([this.onBehalfOfEmail$,this.firstEvent$]).pipe(A(function(R){var U=l(R);R=U.next().value;U=U.next().value;return R!==jpb(null==U?void 0:U.userPerformingActionUser)}))};W(C7,Y);C7.\u0275dir=Y.\u0275dir;C7.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(zf(function(b){return(0,B.defer)(function(){return uG(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Ek("error: ",c);return!1})})}))};
C7.prototype.ngOnInit=function(){var a=this;kEc(this,"PLAIN");this.id$.pipe(zf(this.issueFetchResponseFridge.watch),A(function(b){return null==b?void 0:b.firstEvent}),Af(this.destroyed$)).subscribe(function(b){a.firstEvent$.next(b)});this.canEditComment$.pipe(Af(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(Af(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=null!=b.commentDisplayOverride;a.initializeActionsMenu()});
this.formattingMode$.pipe(Af(this.destroyed$)).subscribe(function(b){a.formattingMode=null!=b?b:"PLAIN";kEc(a,null!=b?b:"PLAIN")});this.issuePermissionService.canChangeCommentRetention$.pipe(Af(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
C7.prototype.initializeActionsMenu=function(){var a=this,b=[];this.isFormattingOverrideEnabled||b.push({type:"submenu",label:"View as...",items:[this.formattingModeMenuItems.PLAIN,this.formattingModeMenuItems.MARKDOWN,this.formattingModeMenuItems.LITERAL]});var c=Gk(this.firstEvent$);this.canEditComment()&&c&&b.push({type:"action",action:function(){Bs(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:Gk(this.isRedacted$)});
Gk(this.isShowCommentHistoryActionInMenu$)&&c&&b.push({type:"action",action:function(){c.commentNumber&&a.showCommentHistoryDialog(c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Show editing history"});c&&OZb(this.issuePermissionService,c)&&b.push({type:"action",action:function(){c.commentEtag&&$lc(a.issueCommentDialogsService,a.id,1,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});c&&NZb(this.issuePermissionService,
c)&&b.push({type:"action",action:function(){Xlc(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});this.isInternalSession&&c&&b.push({type:"action",action:function(){amc(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."});if(this.isInternalSession&&Gk(this.isRestricted$)&&this.issuePermissionService.canChangeCommentRetention()&&
!Gk(this.isDeleted$)){var d="COMPONENT_DEFAULT"===Gk(this.commentRetentionOverride$);b.push({type:"action",action:function(){var e=d?"INDEFINITE":"COMPONENT_DEFAULT";bmc(a.issueCommentDialogsService,"comment",e).then(function(f){a.commentActionsMenu.actionsMenuIconButton.focus();f&&a.updateCommentRetention(e)})},label:d?"Match issue retention...":"Revert to component retention..."})}this.commentActionMenuItems$.next(b)};
var kEc=function(a,b){var c={};a.formattingModeMenuItems=(c.PLAIN={type:"select",action:function(){a.formattingMode$.next("PLAIN");a.initializeActionsMenu()},label:"Classic",selected:"PLAIN"===b},c.MARKDOWN={type:"select",action:function(){a.formattingMode$.next("MARKDOWN");a.initializeActionsMenu()},label:"Markdown",selected:"MARKDOWN"===b},c.LITERAL={type:"select",action:function(){a.formattingMode$.next("LITERAL");a.initializeActionsMenu()},label:"Source",selected:"LITERAL"===b},c)};
C7.prototype.updateCommentRetention=function(a){var b=this,c=Gk(this.firstEvent$),d=Gk(this.id$);c&&!c.commentNumber&&YF(this.errorHandler,"Comment number is missing");this.analytics.trackEvent(xp.RESTRICTED_CONTENT,"updateRetention","comment");d&&c&&this.commentService.updateRetention(d,c.commentNumber||0,a).pipe(Af(this.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);WF(b.butterBar,"Comment retention updated",4E3);b.initializeActionsMenu()},error:function(){YF(b.errorHandler,"Comment retention update failed")}})};
C7.prototype.loadRestrictedComment=function(a,b){var c=this;this.analytics.trackEvent(xp.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var d=b.commentNumber||0,e=Rl(b.commentContentVerdict);a&&this.commentService.get(a,d,e).pipe(nf(),Af(this.destroyed$)).subscribe(function(f){f=Cza(b,f);c.firstEvent$.next(f);c.initializeActionsMenu()},function(f){var h;c.butterBar.showWarning("Error showing comment "+d+": "+(null==(h=f.error)?void 0:h.message))})};
C7.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};C7.prototype.getUserEmailIfAvailable=function(){var a;return zi(null==(a=Gk(this.firstEvent$))?void 0:a.userPerformingActionUser)};
var Nob=function(a){var b=Gk(a.firstEvent$);b&&Bs(a.issueCommentDialogsService,a.id,b).then(function(){a.editDescriptionButton.focus()})},Sob=function(a,b){var c="Last edited by ";0===b.version&&b.lastCommentEditorUser&&(c+=vi(b.lastCommentEditorUser));b.commentLastModifiedAtDate&&(c+=" on ",H2b(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).subscribe(function(d){c+=d}));return c};
Qh.Object.defineProperties(C7.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Gk(this.id$)}}});C7.\u0275fac=function(a){return new (a||C7)(z(cH),z(iE),z(GH),z(US),z(Us),z(XI),z(XF),z(zH),z(VF),z(sG),z(kY),z(EI),z(TO),z(OL),z(JH))};
C7.\u0275cmp=od({type:C7,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(zg(iEc,5),zg(jEc,5));if(a&2){var c;yg(c=Bg())&&(b.commentActionsMenu=c.first);yg(c=Bg())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},features:[Jf],decls:4,vars:4,consts:[["id","comment1","class","flex-kids-x",4,"ngIf","ngIfElse"],["loading",""],["id","comment1",1,"flex-kids-x"],["svgIcon","description_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-1-hemmed"],[1,"flex-kids-x"],[1,
"flex-1"],[1,"uppercase","inline-block","margin-xs-right"],["mat-stroked-button","","color","primary","class","gmat-button update-button small margin-xs-right","aria-label","Edit description",3,"click",4,"ngIf"],[3,"onedevHovercardTrigger","model"],["card",""],[3,"email"],[4,"ngIf"],["class","keep-focus-ring first-comment",3,"routerLinkObj","click",4,"ngIf"],["mode","datetime",1,"margin-s-right",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],["commentActionsMenu",""],[4,"ngIf",
"ngIfElse"],["showFirstComment",""],["class","margin-s-y border-top bv2-issue-event-attachments",4,"ngIf"],["mat-stroked-button","","color","primary","aria-label","Edit description",1,"gmat-button","update-button","small","margin-xs-right",3,"click"],["editDescription",""],[3,"email","showEmail"],[1,"keep-focus-ring","first-comment",3,"routerLinkObj","click"],[1,"muted",3,"matTooltip"],[1,"description-deleted"],["showNote",""],["class","critical-feature",3,"disabled","onConfirm",4,"ngIf"],[1,"critical-feature",
3,"disabled","onConfirm"],["class","muted critical-feature",4,"ngIf"],["class","critical-feature",3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],[1,"critical-feature",3,"issueId","issueAccessLevel","note","formattingMode"],[1,"muted","critical-feature"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["class","margin-s-y bv2-issue-event-attachment",3,"id",4,"ngFor","ngForOf"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],
template:function(a,b){a&1&&(P(0,hpb,29,24,"div",0),T(1,"async"),P(2,ipb,1,0,"ng-template",null,1,Eg));if(a&2){var c=N(3);C("ngIf",V(1,2,b.firstEvent$))("ngIfElse",c)}},dependencies:[h_,B7,jT,Dv,Ev,qA,PL,PJ,UJ,sO,Ez,FB,w4,tP,MJ,tO,uO,Kv],styles:["[_nghost-%COMP%]{display:block}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.first-comment[_ngcontent-%COMP%]:hover{text-decoration:underline}"]});var D7=function(a,b,c,d){Y.call(this);this.prefs=a;this.cdr=b;this.analytics=c;this.butterBar=d;this.on$=this.prefs.showFullHistory$;this.isSaving=!1;this.tooltip$=this.on$.pipe(A(function(e){return e?"(Showing full history) Click for major events only":"(Showing major events) Click for full history"}),yf(""))};W(D7,Y);D7.\u0275dir=Y.\u0275dir;
D7.prototype.onClick=function(){var a=this,b;return Ne(function(c){if(1==c.nextAddress)return a.isSaving?c.return():c.yield((0,B.firstValueFrom)(a.on$),2);b=c.yieldResult;a.save(!b);Se(c)})};
D7.prototype.save=function(a){var b=this;this.analytics.trackEvent(xp.EDIT_ISSUE,"toggleShowFullHistory",String(a));this.isSaving=!0;var c=(0,B.firstValueFrom)(this.prefs.save({showFullHistory:a}));c.then(function(){b.isSaving=!1;b.cdr.markForCheck()});c.catch(function(){b.butterBar.showWarning('Couldn\'t save "full history" setting.');b.isSaving=!1;b.cdr.markForCheck()});this.prefs.save({commentFilterPreferences:{commentFilter:a?"FULL_HISTORY":"ALL_COMMENTS"}}).pipe(Af(this.destroyed$)).subscribe()};
D7.\u0275fac=function(a){return new (a||D7)(z(iE),z(xv),z(zH),z(VF))};
D7.\u0275cmp=od({type:D7,selectors:[["smart-full-history-btn"]],features:[Jf],decls:7,vars:16,consts:[["mat-icon-button","",1,"gmat-button",3,"matTooltip","disabled","click"],["svgIcon","history","class","icon-s",4,"ngIf"],[4,"ngIf"],["svgIcon","history",1,"icon-s"]],template:function(a,b){a&1&&(D(0,"button",0),L("click",function(){return b.onClick()}),T(1,"async"),T(2,"async"),T(3,"async"),T(4,"async"),P(5,kpb,1,0,"mat-icon",1),P(6,lpb,1,0,"b-spinner",2),F());a&2&&(Xf("on",V(1,8,b.on$)),C("matTooltip",
V(2,10,b.tooltip$))("disabled",b.isSaving),Nf("aria-pressed",V(3,12,b.on$))("aria-label",V(4,14,b.tooltip$)),w(5),C("ngIf",!b.isSaving),w(1),C("ngIf",b.isSaving))},dependencies:[Ev,qA,Ez,FB,MJ,Kv],styles:["mat-icon[_ngcontent-%COMP%] {\n      display: flex;\n      margin: 0 auto;\n    }\n    [_nghost-%COMP%]     .on .mat-spinner circle {\n      stroke: var(--text-inverse); \n\n    }"],changeDetection:0});var E7=function(a,b,c,d,e,f,h){Y.call(this);var k=this;this.issueFridge=a;this.eventsForIssueFridge=b;this.hotlistPickerService=c;this.issueInteractionsTracking=d;this.errorHandler=e;this.liveAnnouncer=f;this.activeSession=h;this.ISSUE_TYPE_JS_TEXT=STb;this.STATUS_JS_FULL_TEXT=Uk;this.STATUS_JS_TERSE=QC;this.DUPLICATE="DUPLICATE";this.id$=new B.ReplaySubject(1);this.issue$=this.id$.pipe(zf(this.issueFridge.watch));this.hotlistIds$=this.issue$.pipe(A(vpb));this.textOfHotlistBtn$=this.hotlistIds$.pipe(A(function(q){var u;
return null!=(u=null==q?void 0:q.length)?u:0}),A(function(q){return 5>=q?"Add Hotlist":""}));this.priority$=this.issue$.pipe(A(function(q){return(null==q?void 0:q.snapshot[0].priority)||void 0}));this.type$=this.issue$.pipe(A(function(q){var u;return null!=(u=null==q?void 0:q.snapshot[0].type)?u:void 0}));this.canonicalId$=this.issue$.pipe(A(function(q){return null==q?void 0:q.snapshot[0].duplicateOfIssueId}));this.status$=this.issue$.pipe(A(function(q){return(null==q?void 0:q.snapshot[0].status)||
void 0}));this.statusForChip$=this.status$.pipe(A(function(q){return PTb[q]?q:void 0}));this.statusCssClass$=this.status$.pipe(A(function(q){return k.computeStatusCssClass(q)}));this.HOTKEYS=BD;this.enableCommentFilters=$C(this.activeSession,"enableCommentFiltering")};W(E7,Y);E7.\u0275dir=Y.\u0275dir;E7.prototype.computeStatusCssClass=function(a){return null===a||void 0===a?"":"status-"+Cwa[a]};
var rpb=function(a){return Ne(function(b){return b.yield(MDc(a.hotlistPickerService,a.issue$),0)})},ppb=function(a,b){var c,d;return Ne(function(e){switch(e.nextAddress){case 1:return e.yield((0,B.firstValueFrom)(a.id$),2);case 2:c=e.yieldResult;hO(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Oe(e,3,4);var f=e.yield;var h=VYb(a.issueFridge,c,[],[String(b)]);return f.call(e,h,6);case 6:return e.yield(a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Pe(e);a.eventsForIssueFridge.poke(c);
Qe(e,0);break;case 3:d=Re(e),ZF(a.errorHandler,d),e.jumpTo(4)}})};Qh.Object.defineProperties(E7.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});E7.\u0275fac=function(a){return new (a||E7)(z(GH),z(cH),z(b7),z(gO),z(XF),z(Zx),z(Us))};
E7.\u0275cmp=od({type:E7,selectors:[["issue-description-area"]],inputs:{id:"id"},features:[Jf],decls:14,vars:13,consts:[[1,"flex-kids-x","gap-s"],[1,"chip-container","border-right","padded-s-right"],[4,"ngIf"],[3,"class",4,"ngIf"],[3,"issuePriority"],["class","flex-1 hotlist-container chip-container",4,"ngIf"],["class","thread-filters",4,"ngIf"],["canonicalHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"title"],["class","type-s nowrap",4,"ngIf"],
[1,"type-s","nowrap"],[3,"routerLink","onedevHovercardTrigger"],[1,"flex-1","hotlist-container","chip-container"],["mat-stroked-button","","aria-label","Add Hotlist","matTooltip","Add Hotlist",1,"gmat-button","small","add-hotlists-btn",3,"hotkey","onHotkey","click"],["svgIcon","add",1,"icon-xs"],["removable","check-acl",3,"id","removeHotlist",4,"ngFor","ngForOf"],["removable","check-acl",3,"id","removeHotlist"],[1,"thread-filters"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""]],
template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),P(2,npb,6,10,"div",2),T(3,"async"),P(4,opb,2,4,"span",3),T(5,"async"),G(6,"b-issue-priority-display",4),T(7,"async"),F(),P(8,spb,6,5,"div",5),T(9,"async"),P(10,tpb,2,0,"div",6),F(),D(11,"onedev-hovercard",null,7),P(13,upb,3,4,"b-issue-card",8),F());a&2&&(w(2),C("ngIf",V(3,5,b.statusForChip$)),w(2),C("ngIf",V(5,7,b.type$)),w(2),C("issuePriority",V(7,9,b.priority$)),w(2),C("ngIf",V(9,11,b.hotlistIds$)),w(2),C("ngIf",!b.enableCommentFilters))},dependencies:[Dv,
Ev,qA,sE,mW,PJ,QJ,UJ,RJ,EV,eU,Ez,FB,YD,D7,Kv],styles:["[_nghost-%COMP%]{display:block}.add-hotlists-btn[_ngcontent-%COMP%], button.gmat-button[_ngcontent-%COMP%]:not(.mat-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);background-color:#fff;background-color:var(--surface-default);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px}.add-hotlists-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);margin:0 -2px;margin-top:-3px}.chip-container[_ngcontent-%COMP%]{-webkit-align-self:start;-ms-flex-item-align:start;align-self:start;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px;line-height:22px}.hotlist-container[_ngcontent-%COMP%]{max-height:72px;overflow-y:auto;padding-bottom:5px}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container b-hotlist-chip{margin-right:0}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container .chip, [_nghost-%COMP%]     .chip-container b-access-level-indicator .label{line-height:22px;height:22px}[_nghost-%COMP%]     .chip-container b-access-level-indicator .label{border-radius:11px}[_nghost-%COMP%]     .chip-container .b-chip.status{-moz-box-sizing:border-box;box-sizing:border-box;line-height:20px}.thread-filters[_ngcontent-%COMP%]{margin-top:-9px}\n/*# sourceMappingURL=issue_description_area.css.map */"],
changeDetection:0});var F7=function(a,b,c,d){Y.call(this);this.preferences=a;this.activeSession=b;this.clearcut=c;this.analytics=d;this.enableCommentFilters=$C(this.activeSession,"enableCommentFiltering");this.selectedFilter=null;a=this.activeSession.isInternalSession();zs.description=a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";this.filters=lEc;this.showRecentEventsFirst=!1};W(F7,Y);F7.\u0275dir=Y.\u0275dir;
F7.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(cf(cl),Af(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(Af(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=Dpb(b.commentFilter):(a.selectedFilter=jE(a.preferences).showFullHistory?Apb:zs,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(Af(a.destroyed$)).subscribe())})};
F7.\u0275fac=function(a){return new (a||F7)(z(iE),z(Us),z(tH),z(zH))};
F7.\u0275cmp=od({type:F7,selectors:[["b-event-stream-header"]],features:[Jf],decls:8,vars:3,consts:[[1,"flex-kids-x","flex-spread"],[1,"uppercase"],[1,"flex-kids-x"],["appearance","outline","class","filter-select",4,"ngIf"],["mat-stroked-button","","color","primary",1,"gmat-button","sort-order-button",3,"click"],[4,"ngIf"],["appearance","outline",1,"filter-select"],[3,"value","valueChange","selectionChange"],["class","filter-option",3,"value",4,"ngFor","ngForOf"],[1,"filter-option",3,"value"],[1,
"filter-option-name"],[1,"filter-option-description"],["svgIcon","arrow-downward",1,"sort-order-arrow","icon-xs"],["svgIcon","arrow-upward",1,"sort-order-arrow","icon-xs"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"h4",1),Q(2,"Comments"),F(),D(3,"div",2),P(4,xpb,5,3,"mat-form-field",3),D(5,"button",4),L("click",function(){Pta("hasClickedCommentSortBtn")(!0);var c=!b.showRecentEventsFirst;DYb(b.clearcut,"click_recentFirst_"+c);b.preferences.save({showRecentEventsFirst:c}).pipe(Af(b.destroyed$)).subscribe()}),
P(6,ypb,4,0,"ng-container",5),P(7,zpb,4,0,"ng-container",5),F()()());a&2&&(w(4),C("ngIf",b.enableCommentFilters),w(2),C("ngIf",!b.showRecentEventsFirst),w(1),C("ngIf",b.showRecentEventsFirst))},dependencies:[Dv,Ev,qA,Ez,jA,bP,aP,Hz],styles:[".sort-order-button[_ngcontent-%COMP%]{height:24px;line-height:24px;padding-left:6px;padding-right:10px}.sort-order-button[_ngcontent-%COMP%]   .mat-button-wrapper[_ngcontent-%COMP%]{display:inline-block;height:24px}.sort-order-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;height:24px;line-height:20px}.sort-order-arrow[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px}[_nghost-%COMP%]     .filter-select{max-width:165px;margin-right:8px}[_nghost-%COMP%]     .filter-select .mat-form-field{min-width:70px}[_nghost-%COMP%]     .filter-select .mat-form-field .mat-form-field-flex{cursor:default}[_nghost-%COMP%]     .filter-select .mat-form-field-wrapper{padding:0;margin:0}[_nghost-%COMP%]     .filter-select .mat-select-arrow-wrapper{-webkit-transform:none;transform:none}[_nghost-%COMP%]     .mat-form-field-infix{border-top-width:8px;padding:0 0 5px}[_nghost-%COMP%]     mat-select-trigger{color:#1967d2;color:var(--primary-c700);font-size:.875rem;letter-spacing:.0107142857em;font-family:Google Sans,Roboto,Arial,sans-serif;font-weight:500}[_nghost-%COMP%]     .mat-select-arrow{color:#1967d2;color:var(--primary-c700)}  .mat-select-panel .mat-option.filter-option{height:48px}.filter-option[_ngcontent-%COMP%]   .filter-option-name[_ngcontent-%COMP%], [_nghost-%COMP%]     .mat-select-value .filter-option-name{line-height:20px;font-size:.94rem}.filter-option[_ngcontent-%COMP%]   .filter-option-description[_ngcontent-%COMP%], [_nghost-%COMP%]     .mat-select-value .filter-option-description{line-height:20px;color:#5f6368;color:var(--text-muted);font-size:.8125rem}  .mat-select-panel .mat-option.filter-option.mat-active{background-color:#e8f0fe;background-color:var(--selected-bg-muted)}  .mat-select-panel .mat-option.filter-option.mat-active .filter-option-name{color:#174ea6;color:var(--primary-c900)}  .mat-select-panel .mat-option.filter-option.mat-active .filter-option-description{color:#185abc;color:var(--primary-high-contrast)}"]});
var Apb={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},zs={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},Bpb={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},Cpb={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},lEc=[Apb,zs,Bpb,Cpb];var G7=function(a){this.matDialogService=a;this.reactionState$=new B.ReplaySubject(1);this.issueId="";this.emails$=this.reactionState$.pipe(cf(cl),A(function(b){return b.recentResponders.map(function(c){return c.emailAddress||c.obfuscatedEmailAddress||""}).filter(function(c){return""!==c}).slice(0,5)}));this.isOverflowReactionCount$=this.reactionState$.pipe(cf(cl),A(function(b){return 5<b.count}));this.overflowReactionCount$=this.reactionState$.pipe(cf(cl),cf(function(b){return 5<b.count}),A(function(b){return b.count-
5}))};Qh.Object.defineProperties(G7.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});G7.\u0275fac=function(a){return new (a||G7)(z(Uz))};
G7.\u0275cmp=od({type:G7,selectors:[["b-comment-reaction-responders-card"]],inputs:{reactionState:"reactionState",issueId:"issueId",commentNumber:"commentNumber"},decls:6,vars:6,consts:[["role","dialog","tabindex","0","aria-label","Comment Reactions Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"normal-link","hover-link","unstyled-button",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),P(2,Gpb,6,5,"ng-container",2),T(3,"async"),
P(4,Hpb,6,3,"span",3),T(5,"async"),F()());a&2&&(w(2),C("ngForOf",V(3,2,b.emails$)),w(2),C("ngIf",V(5,4,b.isOverflowReactionCount$)))},dependencies:[Dv,Ev,Kv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});var H7=function(){};H7.\u0275fac=function(a){return new (a||H7)};H7.\u0275cmp=od({type:H7,selectors:[["b-comment-edit-timestamp-message"]],inputs:{event:"event"},decls:1,vars:1,consts:[[4,"ngIf"],["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&P(0,Jpb,7,2,"ng-container",0);a&2&&C("ngIf",b.event.commentLastModifiedAtDate)},dependencies:[Ev,PL],encapsulation:2,changeDetection:0});var I7=function(){this.texts=[]};I7.prototype.getIssueId=function(a){return a.text};I7.prototype.trackByIndex=function(a){return a};I7.\u0275fac=function(a){return new (a||I7)};
I7.\u0275cmp=od({type:I7,selectors:[["b-tagged-text"]],inputs:{texts:"texts"},decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngSwitch"],[3,"email","withProfile",4,"ngSwitchCase"],[3,"href","issueId",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"email","withProfile"],[3,"href","issueId"]],template:function(a,b){a&1&&P(0,Npb,5,3,"ng-container",0);a&2&&C("ngForOf",b.texts)("ngForTrackBy",b.trackByIndex)},dependencies:[WS,Dv,Fv,Gv,Hv,LO],encapsulation:2,changeDetection:0});var J7=function(a){this.hotlists=a;this.HOTLIST_SEARCH=ys.HOTLIST_SEARCH};J7.\u0275fac=function(a){return new (a||J7)(z(rH))};J7.\u0275cmp=od({type:J7,selectors:[["hotlist-link"]],inputs:{id:"id"},decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(D(0,"a",0),Q(1),T(2,"async"),F());if(a&2){var c;C("href",b.HOTLIST_SEARCH(b.id),re);w(1);jg((null==(c=V(2,2,b.hotlists.watch(b.id)))?null:c.name)||b.id)}},dependencies:[Kv],encapsulation:2,changeDetection:0});var K7=function(a){var b=this;this.componentFridge=a;this.id$=new B.ReplaySubject(1);this.name$=this.id$.pipe(mf(),zf(function(c){return b.componentFridge.watchOne(c).pipe(A(function(d){var e;return d?PQa(null==(e=d.componentPathInfo)?void 0:e.componentPathName,c):c}))}))};K7.prototype.ngOnChanges=function(){this.id$.next(this.id)};K7.\u0275fac=function(a){return new (a||K7)(z(OG))};
K7.\u0275cmp=od({type:K7,selectors:[["plain-component-path"]],inputs:{id:"id"},features:[Fd],decls:6,vars:4,consts:[[3,"onedevHovercardTrigger"],["thisHovercard","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""]],template:function(a,b){a&1&&(D(0,"span",0),Q(1),T(2,"async"),F(),D(3,"onedev-hovercard",null,1),P(5,Opb,3,2,"ng-container",2),F());if(a&2){var c=N(4);C("onedevHovercardTrigger",c);w(1);jg(V(2,2,b.name$)||b.id)}},dependencies:[PJ,QJ,
UJ,RJ,YO,Kv],encapsulation:2,changeDetection:0});var lqb=function(a){return{"bv2-diff-newvalue-nextline":a}},Fqb=function(a,b,c){return{diff:a,change:b,isLast:c}},L7=function(a,b){Y.call(this);this.activeSession=a;this.preferences=b;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=ni;this.isLinkedItemArray=rza;this.isIssueDiff=oza;this.isHotlistDiff=pza};W(L7,Y);L7.\u0275dir=Y.\u0275dir;L7.prototype.getAccessLimitLevel=function(a){return HTa(a)};
var mEc=function(a){if(2>a.internalDiffs.length)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp&&e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return(null!=(c=b.timestamp)?c:0)<=(null!=(d=a.timestamp)?d:0)},nEc=function(a){if(2>a.internalDiffs.length)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp&&e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return(null!=(c=b.timestamp)?c:0)>=(null!=(d=a.timestamp)?
d:0)};L7.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(cf(cl),Af(this.destroyed$)).subscribe(function(b){2>a.internalDiffs.length||(b&&mEc(a)||!b&&nEc(a))&&a.internalDiffs.reverse()})};L7.prototype.trackByIndex=function(a){return a};
var Rqb=function(a,b,c){return"<none>"===zc(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"DATE"===a.customFieldMap[b.customFieldId].type?!0:!1},Sqb=function(a,b,c){return"<none>"===zc(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"REPEATED_DATE"===a.customFieldMap[b.customFieldId].type?!0:!1};L7.prototype.asNumber=function(a){return Number(a)};
L7.prototype.customFieldName=function(a){if(a.customFieldId){var b;return(null==(b=this.customFieldMap[a.customFieldId])?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};Qh.Object.defineProperties(L7.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(p(a))}}});L7.\u0275fac=function(a){return new (a||L7)(z(Us),z(iE))};
L7.\u0275cmp=od({type:L7,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},features:[Jf],decls:6,vars:2,consts:[[1,"bv2-event-details"],["class","bv2-diff-row",4,"ngFor","ngForOf","ngForTrackBy"],["changeCollection",""],["effortNameDisabled",""],[1,"bv2-diff-row"],[4,"ngIf"],["mode","time",1,"float-right",3,"timestamp"],[3,"ngSwitch"],["class","bv2-diff-detail",4,"ngSwitchCase"],["class","bv2-diff-detail",
4,"ngSwitchDefault"],[1,"bv2-diff-detail"],[4,"ngIf","ngIfElse"],["nonEffortFieldNames",""],[1,"bv2-diff-arrow"],[3,"email","showEmail"],[3,"id"],["mode","date",3,"timestamp",4,"ngIf"],["mode","date",3,"timestamp"],[3,"email","showEmail",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","For more detail, click on the three-dot menu near status update",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["title","For more detail, click on the three-dot menu near status update"],
[1,"muted","inline-block","margin-none","unhandled-diff-type"],["notIssue",""],[3,"href","issueId"],["plainLink",""],["target","_blank",3,"href"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,hrb,2,1,"div",1),F(),P(2,qrb,1,1,"ng-template",null,2,Eg),P(4,rrb,2,0,"ng-template",null,3,Eg));a&2&&(w(1),C("ngForOf",b.internalDiffs)("ngForTrackBy",b.trackByIndex))},dependencies:[Cv,Dv,Ev,Jv,Fv,Gv,Hv,PL,tO,WS,J7,K7,Ov],styles:["/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});var M7=function(a){Y.call(this);var b=this;a.textDisplayPreferencesSubject$.pipe(Af(this.destroyed$)).subscribe(function(c){switch(c.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":b.formattingModeOverride="LITERAL";break;case "MARKDOWN_FORMATTING_MODE":b.formattingModeOverride="MARKDOWN";break;case "PLAIN_FORMATTING_MODE":b.formattingModeOverride="PLAIN";break;case void 0:b.formattingModeOverride=void 0;break;default:$h(c.commentDisplayOverride)}})};W(M7,Y);M7.\u0275dir=Y.\u0275dir;
M7.prototype.ngOnInit=function(){};M7.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";oEc(this);this.audience=this.issueAccessLevel&&"INTERNAL"===this.issueAccessLevel?"INTERNAL_AUDIENCE":"EXTERNAL_AUDIENCE";this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
var oEc=function(a){if(2>a.rawComment.split("\n").slice(0,3).filter(Boolean).length)a.rawComment=xCa(a.rawComment,250);else{var b=a.rawComment.split("\n").filter(function(c){return!(new Set(["","BEGIN_PUBLIC","END_PUBLIC"])).has(c.trim())}).slice(0,2);a.rawComment="MARKDOWN"===a.formattingMode||"MARKDOWN"===a.formattingModeOverride?b.join("\n\n"):b.join("\n")}};M7.\u0275fac=function(a){return new (a||M7)(z(iE))};
M7.\u0275cmp=od({type:M7,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",issueAccessLevel:"issueAccessLevel"},features:[Jf,Fd],decls:1,vars:5,consts:[[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&G(0,"b-live-preview",0);a&2&&C("comment",b.rawComment)("issueId",b.issueId)("audience",b.audience)("formattingMode",b.formattingModeOverride||b.formattingMode)("idPrefix",b.idPrefix)},dependencies:[hT],
styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});var pEc=["commentActionsMenu"],qEc=["commentReactionButton"],Arb=function(){return[]},Qrb=function(a){return{"no-upvote-reactions":a}},N7=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z){Y.call(this);var na=this;this.documentationLinks=a;this.activeSession=b;this.issueReferenceResolver=c;this.commentService=d;this.el=e;this.userAccess=f;this.butterBar=h;this.errorHandler=k;this.analytics=q;this.userPreferencesManager=u;this.issueDetailsBrain=x;this.editIssueService=y;this.issuePermissionService=E;
this.commentHistoryDialogService=H;this.issueCommentDialogsService=J;this.dateFormatter=O;this.paths=R;this.domSafe=U;this.eventsForIssueFridge=Z;this.isSummarized=!1;this.issueId$=new B.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(mf());this.event$=new B.ReplaySubject(1);this.isCommentEvent=En;this.isNonObfuscatedEmail=yn;this.commentActionMenuItems$=new B.BehaviorSubject([]);this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();
this.formattingMode="PLAIN";this.commentRetentionOverride=null;this.wasSummarized=!1;a={};this.formattingModeMenuItems=(a.PLAIN={type:"select",action:function(){na.formattingMode="PLAIN";na.initializeActionsMenu()},label:"Classic",selected:!0},a.MARKDOWN={type:"select",action:function(){na.formattingMode="MARKDOWN";na.initializeActionsMenu()},label:"Markdown",selected:!1},a.LITERAL={type:"select",action:function(){na.formattingMode="LITERAL";na.initializeActionsMenu()},label:"Source",selected:!1},
a);this.isFormattingOverrideEnabled=!1;this.canEditComment$=this.event$.pipe(zf(function(oa){return na.issuePermissionService.canEditComment$(oa)}),wf({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Gk(na.canEditComment$)};this.commentHistoryEnabled=$C(this.activeSession,"enableCommentHistoryUi");this.commentReactionsEnabled=$C(this.activeSession,"enableCommentReaction");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;
this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(zf(function(oa){return na.editIssueService.editableIssue$(oa)}));this.modifiedDateDisplay$=this.event$.pipe(A(function(oa){return new Date(oa.modifiedDate)}),zf(function(oa){return H2b(na.dateFormatter,oa)}));this.ariaLabelHeading$=(0,B.combineLatest)([this.event$,this.modifiedDateDisplay$]).pipe(A(function(oa){var wa=l(oa);oa=wa.next().value;wa=wa.next().value;if(null==oa)oa="";else{var Da=[];oa.commentNumber&&Da.push("Comment #"+
oa.commentNumber);oa.userPerformingActionUser&&Da.push(vi(oa.userPerformingActionUser));Da.push("Modified: "+wa);oa=Da.join(", ")}return oa}));this.ReactionType=HTb;this.upvoteReactionCount$=this.event$.pipe(A(function(oa){var wa,Da,Ga;return null!=(Ga=null==(wa=oa.commentReactions)?void 0:null==(Da=wa.get("UPVOTE"))?void 0:Da.count)?Ga:0}));this.upvoteReactionCountDisplayString$=this.upvoteReactionCount$.pipe(A(function(oa){return oa&&0!==oa?999<oa?"999+":String(oa):null}));this.noUpvoteReactions$=
this.upvoteReactionCount$.pipe(A(function(oa){return 0===oa}));this.commentReactionsHovercardConfig=Object.assign({},new SJ,{position:[Q_b]});this.commentReactionIsSaving=!1;this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.showFullHistoryFromFiltering$=this.userPreferencesManager.commentFilterPreferences$.pipe(A(function(oa){var wa;return null!=(wa=oa.commentFilter)?wa:""}));this.isFullHistoryPreference$=this.showFullHistoryFromFiltering$.pipe(A(function(oa){return"FULL_HISTORY"===
oa}));this.preEventDiffs$=(0,B.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(A(function(oa){oa=l(oa);var wa=oa.next().value;return oa.next().value?wa.postDiffs:wa.preDiffs}));this.postEventDiffs$=(0,B.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(A(function(oa){oa=l(oa);var wa=oa.next().value;return oa.next().value?wa.preDiffs:wa.postDiffs}));this.hasAclToUpvoteReact$=(0,B.combineLatest)([this.event$,this.issuePermissionService.hasAclToComment$]).pipe(A(function(oa){var wa=
l(oa);oa=wa.next().value;wa=wa.next().value;var Da,Ga;return(null==(Da=oa.commentReactions)?void 0:null==(Ga=Da.get("UPVOTE"))?void 0:Ga.hasReacted)||wa}));this.showCommentReactionHovercard$=(0,B.combineLatest)([this.issuePermissionService.hasAclToEdit$,this.upvoteReactionCount$]).pipe(A(function(oa){var wa=l(oa);oa=wa.next().value;wa=wa.next().value;return oa&&0<wa&&5>=wa}));this.isShowingCommentTimestamp$=this.isFullHistoryPreference$.pipe(A(function(oa){return oa&&Yrb(na)&&(0<na.event.preDiffs.length||
0<na.event.postDiffs.length)}));this.getCommentNumberLink=function(oa){return fua(na.issueId,{comment:oa})}};W(N7,Y);N7.\u0275dir=Y.\u0275dir;
N7.prototype.ngOnInit=function(){var a=this;this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);this.commentRetentionOverride=this.event.commentRetention;this.event$.pipe(Af(this.destroyed$)).subscribe(function(){En(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=(0,B.of)(void 0)});rEc(this);this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(Af(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.issueDetailsBrain.canonicalIssueId$.pipe(Af(this.destroyed$)).subscribe(function(b){a.canonicalIssueId=b;a.initializeActionsMenu()});this.canEditComment$.pipe(Af(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(Af(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
var rEc=function(a){if(a.formattingMode){for(var b=l(Object.values(a.formattingModeMenuItems)),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.formattingModeMenuItems[a.formattingMode].selected=!0}};g=N7.prototype;
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||YF(this.errorHandler,"Comment number is missing");this.analytics.trackEvent(xp.RESTRICTED_CONTENT,"updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(Af(this.destroyed$)).subscribe({next:function(c){var d;b.event=Object.assign({},b.event,{commentRetention:c.piiRetention,commentRetentionState:null!=(d=c.piiRetentionState)?d:null});WF(b.butterBar,"Comment retention updated",
4E3);b.commentRetentionOverride="INDEFINITE"===a?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){YF(b.errorHandler,"Comment retention update failed")}})};
g.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent)b=a.previousValue,a=a.currentValue,b=(null==b?void 0:b.commentVersion)!==(null==a?void 0:a.commentVersion)||(null==b?void 0:b.commentContentVerdict)!==(null==a?void 0:a.commentContentVerdict);b&&(this.deobfuscatedEvent=void 0);this.event.formattingMode&&("UNSPECIFIED_FORMATTING_MODE"===this.event.formattingMode?this.formattingMode="PLAIN":this.formattingMode=this.event.formattingMode);
this.initializeActionsMenu()};g.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};g.getRestrictedLabel=function(){return Dva(Rl(this.event.commentContentVerdict))};g.isRestricted=function(){if(!this.isInternalSession)return!1;var a=Rl(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:$h(a)}};
g.isDeleted=function(){return"DELETED"===this.event.commentDeletionStatus};var Cs=function(a){var b;return(null==(b=a.event)?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};
N7.prototype.loadRestrictedComment=function(){var a=this;this.analytics.trackEvent(xp.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var b=this.event.commentNumber||0;this.commentService.get(String(this.issueId),b,Rl(this.event.commentContentVerdict)).pipe(nf()).subscribe(function(c){a.deobfuscatedEvent=Cza(a.event,c);a.initializeActionsMenu()},function(c){var d;a.butterBar.showWarning("Error showing comment "+b+": "+(null==(d=c.error)?void 0:d.message))})};
N7.prototype.initializeActionsMenu=function(){var a=this,b=[];if(this.isCommentEvent(this.event)&&(this.isFormattingOverrideEnabled||(b.push({type:"submenu",label:"View as",items:[this.formattingModeMenuItems.PLAIN,this.formattingModeMenuItems.MARKDOWN,this.formattingModeMenuItems.LITERAL]}),rEc(this)),this.canEditComment()&&b.push({type:"action",action:function(){Bs(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Edit comment",disabled:Cs(this)}),this.commentHistoryEnabled&&0<(this.event.commentVersion||0)&&!Cs(this)&&b.push({type:"action",action:function(){a.event.commentNumber&&a.showCommentHistoryDialog(a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Show comment history"}),!this.canonicalIssueId||this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){var d=a.paths.editIssue(a.canonicalIssueId,{template_issue:a.issueId,
template_comment:a.event.commentNumber,do_attribution:!0});a.domSafe.openInNewTab(d);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:Cs(this)}),this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){Vlc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to",disabled:Cs(this)}),OZb(this.issuePermissionService,
this.event)&&b.push({type:"action",action:function(){$lc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),NZb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){Xlc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore comment"}),this.isInternalSession&&
b.push({type:"action",action:function(){amc(a.issueCommentDialogsService,String(a.issueId),a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings"}),this.isInternalSession&&this.isRestricted()&&this.issuePermissionService.canChangeCommentRetention()&&!this.isDeleted())){var c="COMPONENT_DEFAULT"===this.commentRetentionOverride;b.push({type:"action",action:function(){var d=c?"INDEFINITE":"COMPONENT_DEFAULT";bmc(a.issueCommentDialogsService,"comment",
d).then(function(e){a.commentActionsMenu.actionsMenuIconButton.focus();e&&a.updateCommentRetention(d)})},label:c?"Match issue retention":"Revert to component retention"})}this.commentActionMenuItems$.next(b)};N7.prototype.getUserEmailIfAvailable=function(){return zi(this.event.userPerformingActionUser)};var Yrb=function(a){return En(a.event)&&!!a.event.unlinkifiedComment};N7.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
N7.prototype.mayReadPii=function(){var a=uG(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){Ek("error: ",b);return!1});return(0,B.from)(a)};
var Orb=function(a){if(Gk(a.hasAclToUpvoteReact$)){a.commentReactionIsSaving=!0;var b=Rrb(a,"UPVOTE"),c;a.issueCommentDialogsService.updateCommentReaction({issueId:a.issueId,commentId:null!=(c=a.event.commentNumber)?c:2,reactionType:"UPVOTE",hasReacted:!b}).then(function(d){a.commentReactionIsSaving=!1;if(d){var e=a.event;e.commentReactions=d;a.event$.next(e);gG(a.eventsForIssueFridge,a.issueId,function(f){var h;f.events=Dza(f.events,null!=(h=a.event.commentNumber)?h:2,{commentReactions:d})});a.analytics.trackEvent(xp.EDIT_ISSUE,
"click",b?"removeUpvoteReaction":"addUpvoteReaction")}})}},Rrb=function(a,b){var c,d,e;return null!=(e=null==(c=a.event.commentReactions)?void 0:null==(d=c.get(b))?void 0:d.hasReacted)?e:!1},Prb=function(a,b){var c;a=null==(c=a.event.commentReactions)?void 0:c.get(b);if(!a)return"Comment reaction button";b="UPVOTE"===b?"Thumbs up":"";1===a.count?b+=", "+a.count+" reaction":1<a.count&&(b+=", "+a.count+" reactions");a.hasReacted&&(b+=", reacted");return b};
Qh.Object.defineProperties(N7.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});N7.\u0275fac=function(a){return new (a||N7)(z(yL),z(Us),z(US),z(XI),z(ae),z(sG),z(VF),z(XF),z(zH),z(iE),z(CI),z(nO),z(EI),z(TO),z(kY),z(OL),z(xE),z(zL),z(cH))};
N7.\u0275cmp=od({type:N7,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&(zg(pEc,5),zg(qEc,5));if(a&2){var c;yg(c=Bg())&&(b.commentActionsMenu=c.first);yg(c=Bg())&&(b.commentReactionButton=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},features:[Jf,Fd],decls:2,vars:3,consts:[[4,"ngIf"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user"],[3,"user","email",
"teamId",4,"ngIf","ngIfElse"],["plainUserDisplayName",""],[4,"ngIf","ngIfElse"],["emailDisplay",""],["class","bv2-edit-comment-button","matTooltip","Edit Comment","aria-label","Edit Comment",3,"click",4,"ngIf"],[1,"bv2-event-info"],["content-type","comment",3,"label","retention","retentionState",4,"ngIf"],["mode","datetime",3,"timestamp"],["class","issue-detail-actions",3,"buttonLabel","menuItems",4,"ngIf"],[1,"float-clear"],["class","bv2-event-major-status",4,"ngIf"],[3,"diffs","customFieldMap",
"effortSpecName","effortEnabled",4,"ngIf"],[1,"bv2-event-note-container","critical-feature"],[1,"flex-kids-x","space-between"],["class","muted italic",4,"ngIf"],[3,"disabled","onConfirm",4,"ngIf"],[1,"flex-kids-y","flex-1-hemmed"],[3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],[1,"flex-kids-y","justify-space-between"],[1,"comment-timestamp"],["mode","time","class","muted type-s",3,"timestamp",4,"ngIf"],["class","align-self-flex-end",4,"ngIf"],["class","bv2-event-note-edit-timestamp",
4,"ngIf"],["class","margin-s-y border-top bv2-issue-event-attachments",4,"ngIf"],[3,"user","email","teamId"],[1,"bv2-event-user-name",3,"model"],["role","button",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"bv2-event-user-id"],[1,"keep-focus-ring","vertical-centered","comment-number",3,"routerLinkObj","click"],["matTooltip","Edit Comment","aria-label","Edit Comment",1,"bv2-edit-comment-button",3,"click"],["content-type","comment",3,"label","retention","retentionState"],
[1,"issue-detail-actions",3,"buttonLabel","menuItems"],["commentActionsMenu",""],[1,"bv2-event-major-status"],[3,"texts"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled"],[1,"muted","italic"],[3,"disabled","onConfirm"],[3,"issueId","issueAccessLevel","note","formattingMode"],["mat-button","",1,"summarized-note-button",3,"click"],["svgIcon","arrow-down",1,"icon-m"],["svgIcon","arrow-up",1,"icon-m"],["mode","time",1,"muted","type-s",3,"timestamp"],[1,"align-self-flex-end"],["mat-stroked-button",
"",1,"comment-reaction-button",3,"ariaLabel","ngClass","onedevHovercardTrigger","onedevHovercardConfig","onedevHovercardActive","click"],["commentReactionButton",""],["svgIcon","thumb_up_24px","class","icon-s",4,"ngIf"],["svgIcon","thumb_up_filled_24px","class","icon-s has-reacted-icon",4,"ngIf"],["commentReactionCard","onedevHovercard"],[3,"reactionState","issueId","commentNumber",4,"ngIf"],["svgIcon","thumb_up_24px",1,"icon-s"],["svgIcon","thumb_up_filled_24px",1,"icon-s","has-reacted-icon"],[3,
"reactionState","issueId","commentNumber"],[1,"bv2-event-note-edit-timestamp"],[3,"event"],[3,"click",4,"ngIf"],[3,"click"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["class","margin-s-y bv2-issue-event-attachment",3,"id",4,"ngFor","ngForOf"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(P(0,Zrb,43,33,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.issue$))},dependencies:[h_,B7,jT,Cv,Dv,Ev,
Jv,qA,PL,PJ,UJ,L7,sO,u4,w4,tP,vO,uO,MO,FB,M7,Ez,G7,H7,I7,Kv],styles:[".bv2-event-user[_ngcontent-%COMP%]{font-weight:400;margin:0;margin-bottom:12px}.bv2-event-user[_ngcontent-%COMP%]   b-user-membership-chip[_ngcontent-%COMP%]{margin-left:-8px}.bv2-event-user   .d-cozy[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:10px}.bv2-event-user   .d-compact[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:8px}.summarized-note-button[_ngcontent-%COMP%]{color:#202124;color:var(--text-default);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-top:8px;margin-left:-22px}.summarized-note-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:8px}.comment-reaction-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px;margin-right:6px}.comment-reaction-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.comment-reaction-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.comment-reaction-button[_ngcontent-%COMP%]:focus:enabled:not(.comment-reaction-button[aria-disabled=true]), .comment-reaction-button[_ngcontent-%COMP%]:hover:enabled:not(.comment-reaction-button[aria-disabled=true]){box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}[_nghost-%COMP%]     .comment-reaction-button[aria-disabled=true].mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}[_nghost-%COMP%]   .comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]{cursor:default;color:#bdc1c6;color:var(--text-disabled)}[_nghost-%COMP%]   .comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:rgba(26,115,232,.4);color:var(--hover-btn)}.no-upvote-reactions[_ngcontent-%COMP%]{border:0;margin-right:2px}.no-upvote-reactions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0}.comment-timestamp[_ngcontent-%COMP%]{margin-top:14px;-webkit-box-flex:0.92;-webkit-flex:0.92;-moz-box-flex:0.92;-ms-flex:0.92;flex:0.92}.comment-number[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});var sEc={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},O7=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);var y=this;this.formattedCommentsForIssueFridge=a;this.preferences=b;this.eventsForIssue=c;this.dynamicScrollIntoView=d;this.bLocation=e;this.elementRef=f;this.activeSession=h;this.routerEvents=k;this.analytics=q;this.teamFridge=u;this.issueFridge=x;this.issueId$=new B.ReplaySubject(1);this.internalIssueId="";this.eventDisplayModes=sEc;this.internalEvents=[];this.showRecentEventsFirst=
null;this.currentFilterLevel="FULL_HISTORY";this.enableCommentFiltering=$C(this.activeSession,"enableCommentFiltering");this.issue$=this.issueId$.pipe(zf(this.issueFridge.watch));this.events$=new B.ReplaySubject(1);this.commentsToFormat$=new B.ReplaySubject(1);this.eventDisplayMode=new Map;this.commentNumbersDisplayed=new Set;this.foldedCommentsCounts=new Map;this.authoritativeEmails=new Set;this.authoritativeEmails$=this.preferences.commentFilterPreferences$.pipe(zf(function(E){var H=new Set;return"TEAM_AND_ASSIGNEE"!==
E.commentFilter?(0,B.of)(H):y.issue$.pipe(zf(function(J){var O;if(void 0!==(null==J?void 0:null==(O=J.snapshot[0].assigneeUser)?void 0:O.emailAddress)){var R;H.add(null==J?void 0:null==(R=J.snapshot[0].assigneeUser)?void 0:R.emailAddress)}var U;if(void 0!==(null==J?void 0:null==(U=J.snapshot[0].verifierUser)?void 0:U.emailAddress)){var Z;H.add(null==J?void 0:null==(Z=J.snapshot[0].verifierUser)?void 0:Z.emailAddress)}var na;if(void 0===(null==J?void 0:null==(na=J.aggregatedData)?void 0:na.teamId))return(0,B.of)(H);
var oa;return tEc(y,String(null==J?void 0:null==(oa=J.aggregatedData)?void 0:oa.teamId)).pipe(zf(function(wa){wa=l(wa);for(var Da=wa.next();!Da.done;Da=wa.next())H.add(Da.value);return(0,B.of)(H)}))}))}));this.sendAnalytics=Tt(function(){var E=[].concat(p(document.querySelectorAll(".bv2-event-note, .bv2-event-major-status"))).map(function(H){return H.innerText}).join("").length;y.analytics.trackEvent(xp.EDIT_ISSUE,"updateCommentThread","visibleCharCount",E)},200);this.scrollToCommentOrAttachment=
Tt(function(){var E=y.bLocation.hash();if(E&&y.internalEvents){var H,J=l(null!=(H=E.match(RegExp("(comment|attachment)([0-9]+)")))?H:[]);J.next();H=J.next().value;var O=J.next().value;J=H;var R=O;if("lastcomment"===E){J=Iza(y.internalEvents);if(-1===J)return;R=String(J);J="comment"}if(J&&R){if(E=y.internalEvents.findIndex(function(U){return U.commentNumber===Number(R)}),H=-1<E,O=y.internalEvents.flatMap(function(U){return U.attachments}).some(function(U){return U.attachmentId===Number(R)}),H||O)H&&
"folded"===y.eventDisplayMode.get(E)&&(y.eventDisplayMode.set(E,"full"),uEc(y,E)),O&&(E=y.internalEvents.findIndex(function(U){return-1<U.attachments.findIndex(function(Z){return Z.attachmentId===Number(R)})}),y.eventDisplayMode.get(E)||(y.eventDisplayMode.set(E,"full"),uEc(y,E))),bEc(y.dynamicScrollIntoView,{elementId:J+R,parentElement:y.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Af(y.destroyed$)).subscribe()}else bEc(y.dynamicScrollIntoView,
{elementId:E,parentElement:y.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Af(y.destroyed$)).subscribe()}},200)};W(O7,Y);O7.\u0275dir=Y.\u0275dir;
O7.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.authoritativeEmails$.subscribe(function(b){a.authoritativeEmails=b}));this.preferences.showRecentEventsFirst$.pipe(cf(cl),Af(this.destroyed$),mf()).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,vEc(a))});(0,B.combineLatest)([this.events$,this.preferences.commentFilterPreferences$,this.authoritativeEmails$]).subscribe(function(b){b=l(b);var c=b.next().value,d=b.next().value,e=b.next().value;b=[];
if(a.enableCommentFiltering&&d.commentFilter)for(a.currentFilterLevel=d.commentFilter,wEc(a,c,d.commentFilter,e),xEc(a),c=l(a.commentNumbersDisplayed.values()),d=c.next();!d.done;d=c.next())b.push(a.internalIssueId+"-"+d.value);else for(c=l(c),d=c.next();!d.done;d=c.next())(d=d.value)&&d.commentNumber&&b.push(a.internalIssueId+"-"+d.commentNumber);a.commentsToFormat$.next(b)});this.commentsToFormat$.pipe(cf(cl),Af(this.destroyed$),zf(this.formattedCommentsForIssueFridge.watchSet)).subscribe(function(b){yEc(a,
b)});this.routerEvents.navigationEnd$.pipe(Af(this.destroyed$)).subscribe(function(){a.internalEvents&&0!==a.internalEvents.length&&a.scrollToCommentOrAttachment()})};
var yEc=function(a,b){for(var c={i$jscomp$1154:0};c.i$jscomp$1154<a.internalEvents.length;c={i$jscomp$1154:c.i$jscomp$1154},c.i$jscomp$1154++)if(dsb(a.eventDisplayMode.get(c.i$jscomp$1154))&&En(a.internalEvents[c.i$jscomp$1154])){var d=b.find(function(f){return function(h){return h.id.commentId===a.internalEvents[f.i$jscomp$1154].commentNumber}}(c));if(d){var e=a.internalEvents[c.i$jscomp$1154];e.formattedComment=d.formattedComment.formattedComment;e.formattingMode=d.formattedComment.formattingMode;
a.internalEvents[c.i$jscomp$1154]=Object.assign({},e)}}vEc(a)},wEc=function(a,b,c,d){a.eventDisplayMode.clear();a.commentNumbersDisplayed.clear();a.foldedCommentsCounts.clear();switch(c){case "FULL_HISTORY":for(c=0;c<b.length;c++){var e=zEc(b[c]);a.eventDisplayMode.set(c,e?"full":"hidden");En(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add(null!=(e=b[c].commentNumber)?e:0))}break;case "ALL_COMMENTS":for(c=0;c<b.length;c++)e=AEc(b[c]),a.eventDisplayMode.set(c,e?"full":"hidden"),
En(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add(null!=(e=b[c].commentNumber)?e:0));break;case "HUMAN_ONLY":BEc(a,b,function(f){var h;return null!=(h=!f.userPerformingAction.endsWith("@prod.google.com")&&f.isMajorEvent)?h:!0});break;case "TEAM_AND_ASSIGNEE":BEc(a,b,function(f){var h;return null!=(h=d.has(f.userPerformingAction)&&f.isMajorEvent)?h:!0});break;default:for(c=0;c<b.length;c++)a.eventDisplayMode.set(c,"full"),En(b[c])&&b[c].commentNumber&&(e=void 0,a.commentNumbersDisplayed.add(null!=
(e=b[c].commentNumber)?e:0))}a.sendAnalytics()},xEc=function(a){if("FULL_HISTORY"!==a.currentFilterLevel)for(var b=0;b<a.internalEvents.length;b++){var c;if(c=En(a.internalEvents[b])){var d=void 0;c=a.internalEvents[b];c="piper-bugupdater@prod.google.com"===(null==c?void 0:null==(d=c.userPerformingActionUser)?void 0:d.emailAddress)}c&&(a.eventDisplayMode.set(b,"summarized"),uEc(a,b))}},BEc=function(a,b,c){for(var d=0,e=0,f=0,h=0;h<b.length;h++){var k=c(b[h]);a.eventDisplayMode.set(h,k?"full":"folded");
if(k){if(0<d||0<e)a.foldedCommentsCounts.has(f)||a.foldedCommentsCounts.set(f,{commentFoldedCount:d,eventFoldedCount:e});e=d=0;En(b[h])&&b[h].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add(null!=(k=b[h].commentNumber)?k:0))}else{if(En(b[h])&&b[h].commentNumber||Fn(b[h]))d++,f=h;e++}}if(0<d||0<e)b=1===Iza(a.internalEvents)?a.showRecentEventsFirst?0:a.internalEvents.length:CEc(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,eventFoldedCount:e})},CEc=function(a){return naa(a.internalEvents,
function(b){var c;return null!=(c=b.isMajorEvent)?c:!1})},zEc=function(a){return En(a)&&!!a.unlinkifiedComment||Fn(a)||0<a.preDiffs.length||0<a.postDiffs.length},AEc=function(a){var b;return(null!=(b=a.isMajorEvent)?b:!1)&&(En(a)&&!!a.unlinkifiedComment||Fn(a)||0<a.preDiffs.length||0<a.postDiffs.length)},vEc=function(a){if(!(2>a.internalEvents.length)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=DEc(a,a.internalEvents).modifiedDate||!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=
DEc(a,a.internalEvents).modifiedDate)if(a.internalEvents.reverse(),a.enableCommentFiltering){var b;wEc(a,a.internalEvents,null!=(b=a.currentFilterLevel)?b:"FULL_HISTORY",a.authoritativeEmails);xEc(a)}a.internalEvents&&0!==a.internalEvents.length&&a.scrollToCommentOrAttachment()}},DEc=function(a,b){var c;return null!=(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))?c:b[1]};O7.prototype.isLoading=function(){return this.formattedCommentsForIssueFridge.isThinking()||this.eventsForIssue.isThinking(this.internalIssueId)};
O7.prototype.trackEventByVersion=function(a,b){return b.version};
var uEc=function(a,b){if(a.foldedCommentsCounts.has(b)){var c,d,e=null!=(d=null==(c=a.foldedCommentsCounts.get(b))?void 0:c.commentFoldedCount)?d:0,f,h;c=null!=(h=null==(f=a.foldedCommentsCounts.get(b))?void 0:f.eventFoldedCount)?h:0;1<e&&a.foldedCommentsCounts.set(b-1,{commentFoldedCount:e-1,eventFoldedCount:c-1});a.foldedCommentsCounts.delete(b)}else for(e=new Map([].concat(p(a.foldedCommentsCounts.entries())).sort(function(k,q){return k[0]-q[0]})),e=l(e.entries()),f=e.next();!f.done;f=e.next())if(h=
l(f.value),f=h.next().value,h=h.next().value,f>b){if(0===h.commentFoldedCount-(f-b))a.foldedCommentsCounts.set(f,{commentFoldedCount:h.commentFoldedCount-1,eventFoldedCount:h.eventFoldedCount-1});else{e=0;for(c=b;c<f;c++)(En(a.internalEvents[c])||Fn(a.internalEvents[c]))&&e++;a.foldedCommentsCounts.set(f,{commentFoldedCount:e,eventFoldedCount:f-b});a.foldedCommentsCounts.set(b-1,{commentFoldedCount:h.commentFoldedCount-e-1,eventFoldedCount:h.eventFoldedCount-(f-b)-1});a.foldedCommentsCounts.delete(b)}break}},
dsb=function(a){return"summarized"===a||"full"===a},tEc=function(a,b){var c=new Set;return a.teamFridge.watch(b).pipe(A(function(d){if(void 0!==d){d=l(d.members.map(function(f){return f.user.emailAddress}).filter(cl));for(var e=d.next();!e.done;e=d.next())c.add(e.value)}return c}))};
Qh.Object.defineProperties(O7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a&&(this.internalIssueId=a,this.issueId$.next(a))}},events:{configurable:!0,enumerable:!0,set:function(a){if(a&&0<a.length){var b=a;a=[].concat(p(b));b=Object.assign({},b[0],{attachments:[],commentNumber:null,formattedComment:void 0,taggedSummary:[],isMajorEvent:!1});a[0]=b}a&&!rra(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
O7.\u0275fac=function(a){return new (a||O7)(z(gH),z(iE),z(cH),z(r7),z(wE),z(ae),z(Us),z(gE),z(zH),z(zI),z(GH))};
O7.\u0275cmp=od({type:O7,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},features:[Jf],decls:4,vars:4,consts:[["class","padded margined",4,"ngIf"],[1,"bv2-edit-issue-history-stream"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"padded","margined"],[4,"ngIf"],["class","bv2-event",4,"ngIf"],[1,"fold-indication"],["mat-stroked-button","","color","primary",1,"gmat-button",3,"click"],[1,"horizontal-divider"],[1,
"bv2-event"],[3,"issueId","issueAccessLevel","event","isSummarized"]],template:function(a,b){a&1&&(P(0,$rb,2,0,"aside",0),D(1,"div",1),P(2,esb,3,2,"ng-container",2),F(),P(3,fsb,2,0,"aside",0));a&2&&(C("ngIf",b.isLoading()&&b.showRecentEventsFirst),w(2),C("ngForOf",b.internalEvents)("ngForTrackBy",b.trackEventByVersion),w(1),C("ngIf",b.isLoading()&&!b.showRecentEventsFirst))},dependencies:[Dv,Ev,N7,Ez,MJ],styles:[".sort-order-button[_ngcontent-%COMP%]{height:24px;line-height:24px;padding-left:6px;padding-right:10px}.sort-order-arrow[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px}[_nghost-%COMP%]     .initial-diffs .bv2-event-details{margin-top:16px}.bv2-event[_ngcontent-%COMP%]:last-of-type{border-bottom:none}.bv2-edit-issue-history-stream[_ngcontent-%COMP%] > .fold-indication[_ngcontent-%COMP%]:first-child{margin-top:16px}.fold-indication[_ngcontent-%COMP%]{margin-top:-12px;position:relative;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.fold-indication[_ngcontent-%COMP%]   .horizontal-divider[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);-webkit-box-flex:1;-webkit-flex:auto;-moz-box-flex:1;-ms-flex:auto;flex:auto}.fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:1px solid;border-color:#1a73e8;border-color:var(--primary);background-color:#fff;background-color:var(--background);line-height:16px;height:24px;padding:0 8px}.fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus, .fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{border:1px solid;border-color:#1a73e8;border-color:var(--primary)}"]});var P7=function(a,b){this.message=a;this.snackbarRef=b;this.DEFAULT_MESSAGE="New data is available. Click to refresh."};P7.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};P7.\u0275fac=function(a){return new (a||P7)(z(KXb),z(MF))};
P7.\u0275cmp=od({type:P7,selectors:[["refresh-data-notification"]],decls:6,vars:1,consts:[["role","button","aria-label","Refresh data",1,"refresh-data-notification-container",3,"click"],["svgIcon","refresh",1,"margin-right"],[1,"margin-xs-top","full-width"],["mat-icon-button","","aria-label","Dismiss new data notification",1,"refresh-data-notification-dismiss-button","small",3,"click"],["svgIcon","close",1,"icon-m"]],template:function(a,b){a&1&&(D(0,"div",0),L("click",function(){return Hya(b.snackbarRef)}),
G(1,"mat-icon",1),D(2,"p",2),Q(3),F()(),D(4,"button",3),L("click",function(c){return b.onDismiss(c)}),G(5,"mat-icon",4),F());a&2&&(w(3),S(" ",b.message||b.DEFAULT_MESSAGE," "))},dependencies:[qA,Ez],styles:[".mat-snack-bar-container.refresh-data-notification{padding:0;min-height:auto;border-radius:8px;background-color:rgba(0,0,0,0);width:480px}.refresh-data-notification-container{border-radius:8px;background-color:#1a73e8;background-color:var(--primary);color:#fff;cursor:pointer;display:flex;padding:8px 32px 8px 12px}.refresh-data-notification-dismiss-button{position:absolute;right:8px;top:8px}.refresh-data-notification-dismiss-button .mat-icon{color:#fff}/*# sourceMappingURL=refresh_data_notification.css.map */\n"],
encapsulation:2});var Q7=function(a){this.snackbar=a},EEc=function(a){var b=BD.REFRESH_ISSUE.displayAs,c={panelClass:"refresh-data-notification",data:"New comment available"};b&&(c.announcementMessage="New comment available. ",c.announcementMessage+="Press "+b+" to fetch new data.");a.currentSnackBar=a.snackbar._attach(P7,c);return a.currentSnackBar};Q7.\u0275fac=function(a){return new (a||Q7)(n(SF))};Q7.\u0275prov=$c({token:Q7,factory:Q7.\u0275fac,providedIn:"root"});var R7=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);var y=this;this.eventsForIssue=a;this.issueFetchResponseFridge=b;this.preferences=c;this.activeSession=d;this.commentHistoryDialogService=e;this.issueDetailsBrain=f;this.errorHandler=h;this.refreshDataNotification=k;this.eventsForIssueWatcher=q;this.analytics=u;this.appEvents=x;this.id$=new B.ReplaySubject(1);this.events$=this.id$.pipe(zf(this.eventsForIssue.watch),A(function(E){var H;return null!=(H=null==E?void 0:E.events)?H:[]}));this.issue$=
this.id$.pipe(zf(function(E){return KH(y.issueFetchResponseFridge,E)}));this.accessLevel$=this.issue$.pipe(A(function(E){var H,J;return null==E?void 0:null==(H=E.issue)?void 0:null==(J=H.accessLimit)?void 0:J.accessLevel}));this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(A(function(E){return E&&$C(y.activeSession,"enableImageSummary")}),yf(!0))};W(R7,Y);R7.\u0275dir=Y.\u0275dir;
R7.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.issueDetailsBrain.urlComment$.subscribe(function(b){var c=b.commentNumber;b=b.commentVersion;if(c&&void 0!==b&&-1<b){var d=Gk(a.id$);d&&a.commentHistoryDialogService.show(d,c,null!=b?b:-1)}}));this.subscriptions.add(this.eventsForIssue.error$.subscribe(function(b){a.errorHandler.errorHandler(null,b)}));this.subscriptions.add(Rlc(this.eventsForIssueWatcher,Gk(this.id$)).subscribe(function(){FEc(a)}));this.subscriptions.add(this.events$.subscribe(function(){var b;
null==(b=a.refreshDataNotification.currentSnackBar)||b.dismiss()}));this.destroyed$.pipe(nf()).subscribe(function(){var b;null==(b=a.refreshDataNotification.currentSnackBar)||b.dismiss()})};
var FEc=function(a){a.analytics.trackEvent(xp.PUSH_UPDATE,"display","comment");EEc(a.refreshDataNotification)._afterDismissed.subscribe(function(b){b.dismissedByAction?(a.analytics.trackEvent(xp.PUSH_UPDATE,"fetchResource","comment"),LH(a.issueFetchResponseFridge,Gk(a.id$)),a.eventsForIssue.poke(Gk(a.id$)),a.appEvents.scrollToCommentBox.next()):a.analytics.trackEvent(xp.PUSH_UPDATE,"dismiss","comment")})};Qh.Object.defineProperties(R7.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
R7.\u0275fac=function(a){return new (a||R7)(z(cH),z(JH),z(iE),z(Us),z(TO),z(CI),z(XF),z(Q7),z(hY),z(zH),z(DF))};
R7.\u0275cmp=od({type:R7,selectors:[["issue-event-list"]],inputs:{id:"id"},features:[Jf],decls:6,vars:15,consts:[[3,"issueId","events","issueAccessLevel","showFullHistory"]],template:function(a,b){a&1&&(G(0,"b-event-stream",0),T(1,"async"),T(2,"async"),T(3,"async"),T(4,"async"),T(5,"async"));a&2&&(C("issueId",V(2,7,b.id$))("events",V(3,9,b.events$))("issueAccessLevel",V(4,11,b.accessLevel$))("showFullHistory",V(5,13,b.preferences.showFullHistory$)),Nf("data-will-inline-screenshots",V(1,5,b.enableInlineScreenshots$)?
!0:null))},dependencies:[O7,Kv],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});var qsb=function(a,b){return{empty:a,"never-focused":b}},S7=function(a,b,c,d,e,f,h,k,q,u){var x=this;this.issuePermissionService=a;this.userPreferencesManager=b;this.editIssueService=c;this.analytics=d;this.draftStore=e;this.activeSession=f;this.issueDetailsBrain=h;this.issueCommentDialogsService=k;this.appEvents=q;this.bannedWordsChecker=u;this.issueId$=new B.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(mf());this.issue$=this.distinctIssueId$.pipe(zf(function(y){return x.editIssueService.editableIssue$(y)}));
this.wasFocused=!1;this.commentButtonStyle="fill";this.enableRecaptcha=$C(this.activeSession,"enableRecaptcha");this.recaptchaResponse$=new B.BehaviorSubject("");this.commentSubmitted=new Yu;this.issueAccessLimitLevel$=this.issuePermissionService.accessLimitLevel$.pipe(A(function(y){return null!=y?y:"LIMIT_NONE"}));this.isAccessLimited$=this.issueAccessLimitLevel$.pipe(A(function(y){return"LIMIT_VIEW"===y||"LIMIT_APPEND"===y||"LIMIT_VIEW_TRUSTED"===y}));this.HOTKEYS=BD;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.hasAclToComment$=this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.audience$=this.issuePermissionService.audience$;this.autoCcOnComment$=this.userPreferencesManager.preferences$.pipe(A(function(y){return y.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(A(function(y){return x.editIssueService.issueCommentDraft(y)}));this.judgementForNewContent$=this.issueCommentDraft$.pipe(zf(function(y){return y.judgementForNewContent$}));
this.comment$=this.issueCommentDraft$.pipe(zf(function(y){return y.comment$}));this.events$=this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(A(function(y){return x.editIssueService.savingState(y)}));this.isSaving$=this.savingState$.pipe(zf(function(y){return vp(y.propertiesBeingSaved,Xn("comment"))}));this.commentLimitReached$=this.events$.pipe(A(function(y){var E=x.activeSession.getCommentNumberLimit();return Iza(y)>=E}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(A(function(y){return y?
"The comment limit has been reached and no additional comments are permitted.":x.activeSession.isAnonymous()?"Sign in to use full features.":x.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."}));this.commentBoxEnabled$=(0,B.combineLatest)([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(A(function(y){var E=l(y);y=E.next().value;var H=E.next().value;E=E.next().value;return y&&!H&&!E}));this.showRecaptcha$=(0,B.combineLatest)([this.hasAclToComment$,
this.commentLimitReached$]).pipe(A(function(y){var E=l(y);y=E.next().value;E=E.next().value;return y&&!E&&x.enableRecaptcha}));this.commentDraftUpdated$=new B.BehaviorSubject(!0);this.commentButtonEnabled$=(0,B.combineLatest)([this.hasAclToComment$,this.comment$,this.isSaving$,this.recaptchaResponse$,this.commentDraftUpdated$]).pipe(A(function(y){var E=l(y);y=E.next().value;var H=E.next().value,J=E.next().value;E=E.next().value;return y&&O4b(H)&&!J&&(!x.enableRecaptcha||""!==E)}));this.empty$=(0,B.combineLatest)([this.comment$,
this.commentDraftUpdated$]).pipe(A(function(y){var E,H;return null!=(H=null==(E=l(y).next().value)?void 0:E.value)?H:""}),A(function(y){return 0===y.length}))},isb=function(a){var b;return Ne(function(c){b=!jE(a.userPreferencesManager).autoCcOnComment;a.analytics.trackEvent(xp.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));return c.yield((0,B.firstValueFrom)(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
S7.prototype.saveCommentDraft=function(){var a=this,b;return Ne(function(c){if(1==c.nextAddress)return a.bannedWordsChecker.reset(),c.yield((0,B.firstValueFrom)(a.comment$),2);b=c.yieldResult;a.draftStore.setDraft(a.internalIssueId,b.value);a.commentDraftUpdated$.next(!0);Se(c)})};
S7.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,h,k,q;return Ne(function(u){if(1==u.nextAddress)return c=b.enableRecaptcha?b.recaptchaResponse$.getValue():void 0,d=b.editIssueService.issueCommentDraft(b.internalIssueId).comment(),e=b.editIssueService.editableIssue(b.internalIssueId),u.yield(b.bannedWordsChecker.check(d.value,"EXTERNAL_PUBLIC"===b.issuePermissionService.accessLevel(),e.componentId),2);if(3!=u.nextAddress)return f=u.yieldResult,f?u.yield(b.issueCommentDialogsService.submitCommentBox(String(e.componentId),
b.internalIssueId,d,c),3):(null==(h=a)||h.preventDefault(),null==(k=a)||k.stopPropagation(),null==(q=b.commentBox)||osb(q),u.return());b.commentSubmitted.emit();b.bannedWordsChecker.reset();b.appEvents.recaptchaSubmitted.next();Se(u)})};S7.prototype.showNewContentJudgementDialog=function(){var a=this;return Ne(function(b){return b.yield(a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};
S7.prototype.isPlusOneCalloutEnabled=function(){return this.activeSession.isInternalSession()&&$C(this.activeSession,"enableReducePlusOneComments")&&!Gk(this.issueDetailsBrain.voted$)};Qh.Object.defineProperties(S7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}},componentIdString:{configurable:!0,enumerable:!0,get:function(){return String(this.editIssueService.editableIssue(this.internalIssueId).componentId)}}});
S7.\u0275fac=function(a){return new (a||S7)(z(EI),z(iE),z(nO),z(zH),z(MN),z(Us),z(CI),z(kY),z(DF),z(TW))};
S7.\u0275cmp=od({type:S7,selectors:[["b-post-comment"]],viewQuery:function(a,b){a&1&&zg(OT,5);if(a&2){var c;yg(c=Bg())&&(b.commentBox=c.first)}},inputs:{issueId:"issueId"},outputs:{commentSubmitted:"commentSubmitted"},features:[lg([TW])],decls:2,vars:3,consts:[[4,"ngIf"],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment",3,"ngClass"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","isPlusOneCalloutEnabled",
"warn","onHotkey","onChange","onFocusEvent","onSubmit","onRestrict","onPlusOneTextEntered"],["commentBox",""],["class","banned-words-warning break-word","warning","",4,"ngIf"],["recaptchaContainer","",4,"ngIf"],["additionalToolbarItems","",1,"goog-inline-block"],[3,"format","disabled","color","onAction","click"],[1,"goog-inline-block"],["class","goog-inline-block vertical-centered",4,"ngIf"],[3,"initialValue","change",4,"ngIf"],[3,"issueId","componentId","accessLimitLevel",4,"ngIf"],[3,"accessLevel"],
["warning","",1,"banned-words-warning","break-word"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],["recaptchaContainer",""],[3,"onUpdate"],[3,"checked","disabled","change"],[1,"goog-inline-block","vertical-centered"],["matTooltip","(issuePermissionService.addMeToCcDisabledReason$ | async) || ''",3,"checked","disabled",4,"ngIf"],["matTooltip","(issuePermissionService.addMeToCcDisabledReason$ | async) || ''",
3,"checked","disabled"],[3,"initialValue","change"],[3,"issueId","componentId","accessLimitLevel"]],template:function(a,b){a&1&&(P(0,ssb,2,1,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.issue$))},dependencies:[bJ,OT,iT,Cv,Ev,XO,sE,PK,PT,k7,Kv],styles:["[_nghost-%COMP%]{display:block;margin-bottom:8px}[_nghost-%COMP%]     .bv2-edit-issue-add-comment{padding-left:0;padding-right:0}textarea[_ngcontent-%COMP%]{display:block;margin:0;margin-bottom:8px;max-height:40vh;min-height:130px;resize:none;width:100%}@media(forced-colors: active){[_nghost-%COMP%]     .bv2-comment-toolbar .goog-inline-block b-button .gmat-button.mat-flat-button{border:1px solid;border-color:#dadce0;border-color:var(--divider)}}[_nghost-%COMP%]     .bv2-comment-toolbar .goog-inline-block b-button .gmat-button.mat-flat-button.mat-warn{background-color:#c5221f;background-color:var(--bad-gfx)}button[_ngcontent-%COMP%], mat-checkbox[_ngcontent-%COMP%]{margin-right:8px}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea{min-height:32px;height:32px !important}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.recent-first   [_nghost-%COMP%]     .empty.never-focused b-live-preview{display:none}.banned-words-warning[_ngcontent-%COMP%]{margin-bottom:16px;color:#c5221f;color:var(--bad-text)}/*# sourceMappingURL=post_comment.css.map */"]});var GEc=[[["","mainSegment",""]],[["","dropdownSegment",""]]],T7=function(){this.mainSegment=!0};T7.\u0275fac=function(a){return new (a||T7)};T7.\u0275dir=sd({type:T7,selectors:[["button","mainSegment",""]],hostVars:2,hostBindings:function(a,b){a&2&&Xf("main-segment",b.mainSegment)}});var U7=function(){this.dropdownAriaLabel=this.dropdownTooltip="";this.disabled=!1;this.dialogClosed=new Yu;this.dialogOpened=new Yu};U7.prototype.ngAfterContentInit=function(){};
U7.prototype.ngOnChanges=function(a){a.dropdownTooltip&&!this.dropdownAriaLabel&&(this.dropdownAriaLabel=this.dropdownTooltip)};Qh.Object.defineProperties(U7.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){var a,b;return null!=(b=null==(a=this.trigger)?void 0:a.isOpen)?b:!1}}});U7.\u0275fac=function(a){return new (a||U7)};
U7.\u0275cmp=od({type:U7,selectors:[["split-button"]],contentQueries:function(a,b,c){a&1&&Ag(c,T7,5);if(a&2){var d;yg(d=Bg())&&(b.mainSegment=d.first)}},viewQuery:function(a,b){a&1&&zg(cM,5);if(a&2){var c;yg(c=Bg())&&(b.trigger=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&Xf("expanded",b.expanded)},inputs:{dropdownTooltip:"dropdownTooltip",dropdownAriaLabel:"dropdownAriaLabel",disabled:"disabled"},outputs:{dialogClosed:"dialogClosed",dialogOpened:"dialogOpened"},exportAs:["splitButton"],
features:[Fd],ngContentSelectors:["[mainSegment]","[dropdownSegment]"],decls:8,vars:4,consts:[["mat-icon-button","","onedevPopupPanelTrigger","",1,"dropdown-button",3,"onedevPopupPanelTriggerFor","matTooltip","disabled","click","onedevPopupPanelTriggerOpened","onedevPopupPanelTriggerClosed"],["trigger","onedevPopupPanelTrigger"],["svgIcon","arrow-dropdown"],["role","region"],["contentPanel","onedevPopupPanel"],[1,"dropdown-container"]],template:function(a,b){a&1&&(eg(GEc),fg(0),D(1,"button",0,1),
L("click",function(){var d,e;if(null!=(e=null==(d=b.trigger)?void 0:d.isOpen)&&e){var f;null==(f=b.trigger)||f.close()}else{var h;null==(h=b.trigger)||h.open()}})("onedevPopupPanelTriggerOpened",function(){return b.dialogOpened.emit()})("onedevPopupPanelTriggerClosed",function(){return b.dialogClosed.emit()}),G(3,"mat-icon",2),F(),D(4,"onedev-popup-panel",3,4)(6,"div",5),fg(7,1),F()());if(a&2){var c=N(5);w(1);C("onedevPopupPanelTriggerFor",c)("matTooltip",b.dropdownTooltip)("disabled",b.disabled);
Nf("aria-label",b.dropdownAriaLabel)}},dependencies:[qA,Ez,FB,bM,cM],styles:["[_nghost-%COMP%]    {border:1px solid;border-color:#dadce0;border-color:var(--hairline);border-radius:5px;display:flex;overflow:hidden}[_nghost-%COMP%]     .main-segment{border-radius:5px 0 0 5px;padding-left:8px;padding-right:8px;line-height:13px}[_nghost-%COMP%]    .expanded .dropdown-button mat-icon{transform:rotate(-180deg)}[_nghost-%COMP%]     .dropdown-button:not([disabled]) mat-icon{color:#5f6368;color:var(--icon)}[_nghost-%COMP%]     .dropdown-button{border-left:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:0;width:30px}[_nghost-%COMP%]     .dropdown-button mat-icon{width:18px;transition:250ms transform}/*# sourceMappingURL=split_button.css.map */"],
changeDetection:0});var Asb=function(a){return{voteCount:a}},V7={},HEc=(V7.REJECTION_REASON_UNSPECIFIED="Unspecified",V7.REVERSED="The relationship is reversed",V7.SIMILAR="The issues are similar, but not duplicate",V7.NOT_SIMILAR="The issues are not similar",V7.OTHER="Other",V7),IEc=new Set(["VERY_HIGH","HIGH"]),W7=function(a,b,c,d,e,f,h,k,q,u){Y.call(this);var x=this;this.issueFridge=a;this.eventsForIssueFridge=b;this.paths=c;this.recommendationsService=d;this.errorHandler=e;this.editIssueService=f;this.analytics=
h;this.scrolledOnScreenService=k;this.elementRef=q;this.issueRecommendationsFridge=u;this.STATUS_JS_FULL_TEXT=Uk;this.STATUS_JS_TERSE=QC;this.REJECT_REASON_TO_DISPLAY=HEc;this.currentIssueId$=new B.ReplaySubject(1);this.currentIssue$=this.currentIssueId$.pipe(zf(function(y){return x.issueFridge.watch(y)}));this.isAlreadyADuplicate$=this.currentIssue$.pipe(A(function(y){return"DUPLICATE"===(null==y?void 0:y.snapshot[0].status)}));this.recommendation$=this.currentIssueId$.pipe(zf(function(y){return x.issueRecommendationsFridge.watch(y+
"-ISSUE_DEDUPLICATION",void 0)}),A(function(y){return null==y?void 0:y.recommendations.filter(function(E){return IEc.has(E.confidence)})}),A(function(y){return null==y?void 0:y[0]}));this.canonicalIssue$=this.recommendation$.pipe(A(function(y){var E;return null==y?void 0:null==(E=y.content)?void 0:E.recommendedIssue}));this.canonicalIssueId$=this.canonicalIssue$.pipe(A(function(y){return null==y?void 0:y.issueId}));this.canonicalComponentId$=this.canonicalIssue$.pipe(A(function(y){var E;return null!=
(E=null==y?void 0:y.snapshot[0].componentId)?E:void 0}));this.canonicalAccessLevel$=this.canonicalIssue$.pipe(A(function(y){var E;return null==y?void 0:null==(E=y.accessLimit)?void 0:E.accessLevel}));this.isCanonicalInExternalComponent$=this.canonicalAccessLevel$.pipe(A(function(y){return!(!y||"INTERNAL"===y)}));this.canonicalTitle$=this.canonicalIssue$.pipe(A(function(y){return null==y?void 0:y.snapshot[0].title}));this.canonicalPriority$=this.canonicalIssue$.pipe(A(function(y){return null==y?void 0:
y.snapshot[0].priority}));this.canonicalVoteCount$=this.canonicalIssue$.pipe(A(function(y){var E;return null==y?void 0:null==(E=y.aggregatedData)?void 0:E.voteCount}));this.canonicalCreateMicros$=this.canonicalIssue$.pipe(A(function(y){var E;return null==y?void 0:null==(E=y.aggregatedData)?void 0:E.createdTimeMicros}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(A(function(y){var E;return null!=(E=null==y?void 0:y.snapshot[0].duplicateIssueId)?E:[]}));this.statusForChip$=this.canonicalIssue$.pipe(A(function(y){var E;
return null!=(E=null==y?void 0:y.snapshot[0].status)?E:void 0}));this.canonicalEvents$=this.canonicalIssueId$.pipe(zf(function(y){return x.eventsForIssueFridge.watch(y)}),A(function(y){var E;return null!=(E=null==y?void 0:y.events)?E:[]}));this.canonicalDescription$=this.canonicalEvents$.pipe(A(function(y){return y[0]}),A(function(y){var E;return{formattedComment:null==y?void 0:y.formattedComment,commentNumber:1,unlinkifiedComment:(null==y?void 0:y.unlinkifiedComment)||"",formattingMode:null!=(E=
null==y?void 0:y.formattingMode)?E:"UNSPECIFIED_FORMATTING_MODE"}}));this.canonicalComments$=this.canonicalEvents$.pipe(A(function(y){return y.filter(En)}));this.wasRejected$=new B.BehaviorSubject(!1);this.show$=(0,B.combineLatest)([this.isAlreadyADuplicate$,this.canonicalIssue$,this.wasRejected$]).pipe(A(function(y){var E=l(y);y=E.next().value;var H=E.next().value;E=E.next().value;return!y&&!!H&&!E}));this.isSaving=!1;this.REJECT_REASONS=["NOT_SIMILAR","SIMILAR","REVERSED","OTHER"]};W(W7,Y);
W7.\u0275dir=Y.\u0275dir;W7.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.canonicalIssue$.subscribe(function(b){a.issueFridge.announce(b)}));this.subscriptions.add((0,B.combineLatest)([this.show$.pipe(cf(Boolean)),K1b(this.scrolledOnScreenService,this.elementRef.nativeElement)]).pipe(nf()).subscribe(function(){a.analytics.trackEvent(xp.EDIT_ISSUE,"view","canonical-recommendation");JEc(a,"VIEWED")}))};
W7.prototype.accept=function(){var a=this,b,c;return Ne(function(d){switch(d.nextAddress){case 1:return a.isSaving=!0,b=Gk(a.canonicalIssueId$),Oe(d,2,3),d.yield(j5b(a.editIssueService,a.currentIssueId,b),5);case 5:return a.analytics.trackEvent(xp.EDIT_ISSUE,"accept","canonical-recommendation"),d.yield(JEc(a,"ACCEPTED"),3);case 3:Pe(d);a.isSaving=!1;Qe(d,0);break;case 2:c=Re(d),ZF(a.errorHandler,c),d.jumpTo(3)}})};
W7.prototype.reject=function(a){var b=this;return Ne(function(c){b.wasRejected$.next(!0);b.analytics.trackEvent(xp.EDIT_ISSUE,"reject","canonical-recommendation");return c.yield(JEc(b,"REJECTED",a),0)})};
var JEc=function(a,b,c){var d,e;return Ne(function(f){if(1==f.nextAddress){Oe(f,2);d=Gk(a.recommendation$).name;var h=f.yield,k=B.firstValueFrom;var q=a.recommendationsService;var u=[{parent:d,userEngagement:{type:b,rejectionReason:c}}];u=(new kU).setRequestsList(u.map(HRa));q=q.executor.post({url:"action/recommendations/engagements/batch",body:u,responseConstructor:null});return h.call(f,k.call(B,q),4)}if(2!=f.nextAddress)return $s(f,0);e=Re(f);ZF(a.errorHandler,e);Se(f)})};
W7.prototype.getIssueLink=function(a){return this.paths.editIssue(a)};Qh.Object.defineProperties(W7.prototype,{currentIssueId:{configurable:!0,enumerable:!0,set:function(a){this.currentIssueId$.next(a)},get:function(){return Gk(this.currentIssueId$)}}});W7.\u0275fac=function(a){return new (a||W7)(z(GH),z(cH),z(xE),z(mU),z(XF),z(nO),z(zH),z(kL),z(ae),z(nU))};
W7.\u0275cmp=od({type:W7,selectors:[["canonical-recommendation"]],inputs:{currentIssueId:"currentIssueId"},features:[Jf],decls:8,vars:3,consts:[[1,"heading","flex-kids-x","gap-xxs","align-items-center","padded-x","padded-s-y"],["svgIcon","merge_type_24px",1,"rotate-180","green"],["mat-icon-button","","href","http://go/b-duplicate-assistance-docs","target","_blank","title","Learn more","aria-label","Learn more",1,"small","align-item-right"],["svgIcon","info",1,"icon-s"],["class","flex-kids-y gap-s",
4,"ngIf"],[1,"flex-kids-y","gap-s"],[1,"flex-kids-y","gap-s","padded-x"],["target","_blank",1,"title","hover-link","flex-kids-x","align-items-center","gap-xs",3,"href"],[1,"overflow-ellipsis"],["svgIcon","pop-out",1,"icon-s","shrink-0"],[3,"issueId","issueAccessLevel","formattingMode","note",4,"ngIf"],[1,"info","flex-kids-x","gap-s","align-items-center"],[1,"muted",3,"issueId","enableHotkeys","componentId","issueTitle","isExternalIssue"],[3,"issuePriority"],[3,"class","title",4,"ngIf"],[4,"ngIf"],
[1,"actions","flex-kids-x","gap-s","align-items-center","padded-x","padded-s-bottom"],["mat-button","",1,"accept","keep-focus-ring",3,"disabled","click"],["svgIcon","done",1,"icon-s"],["dropdownTooltip","Specify reject reason",1,"reject",3,"disabled"],["splitButton",""],["mat-button","","mainSegment","",3,"disabled","click"],["svgIcon","close",1,"icon-s"],["dropdownSegment",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[3,"issueId","issueAccessLevel","formattingMode","note"],[3,"title"],
[1,"divider"],[1,"muted","nowrap"],[1,"votes","flex-kids-x","align-items-center","gap-xs",3,"matTooltip"],[1,"muted"],["svgIcon","exposure_plus_1_24px",1,"icon-s"],[1,"flex-kids-x","align-items-center","gap-xs",3,"matTooltip"],["svgIcon","mode_comment_24px",1,"icon-s","muted"],["matTooltip","Created on","mode","date",1,"muted","nowrap",3,"timestamp"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&(D(0,"div",0),G(1,"mat-icon",1),D(2,"span"),Q(3,"Close as duplicate of:"),F(),D(4,"a",2),
G(5,"mat-icon",3),F()(),P(6,Bsb,37,42,"div",4),T(7,"async"));a&2&&(w(6),C("ngIf",V(7,1,b.canonicalIssueId$)))},dependencies:[jT,Dv,Ev,qA,PL,cU,eU,Ez,Fz,yB,FB,U7,T7,Kv],styles:["[_nghost-%COMP%]{display:block;position:relative;border:none;box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 2px 6px 2px rgba(0,0,0,.15)}.heading[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;font-weight:500;font-size:1rem;line-height:1.5rem}.green[_ngcontent-%COMP%], .heading[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);color:#137333;color:var(--green-text)}.hover-link[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.hover-link[_ngcontent-%COMP%]:focus, .hover-link[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.divider[_ngcontent-%COMP%]{height:18px;border-left:1px solid;border-left-color:#dadce0;border-left-color:var(--divider)}.votes[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px;color:#1a73e8;color:var(--text-primary)}.actions[_ngcontent-%COMP%]   .accept[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]   .reject[_ngcontent-%COMP%]{border-radius:13px}.actions[_ngcontent-%COMP%]   .accept[_ngcontent-%COMP%]{padding-right:12px;padding-left:8px;border:1px solid;border-color:#137333;border-color:var(--green-text);color:#137333;color:var(--green-text)}.actions[_ngcontent-%COMP%]   .reject[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--hairline);color:#5f6368;color:var(--text-muted)}.align-item-right[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .bv2-note-container{max-height:54px;margin:0;overflow:auto}[_nghost-%COMP%]     b-issue-id-picker{border:1px solid;border-color:#dadce0;border-color:var(--divider)}[_nghost-%COMP%]     b-issue-id-picker button.square-left{border:none}[_nghost-%COMP%]     .actions button{height:26px;line-height:unset}[_nghost-%COMP%]     .actions button .mat-button-wrapper{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%]     .actions button .mat-button-wrapper mat-icon{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}\n/*# sourceMappingURL=canonical_recommendation.css.map */"]});var X7=function(a){this.issueReferenceResolver=a;this.userToString=zi};X7.prototype.ngOnInit=function(){};X7.prototype.getCommentNumberLink=function(a){return fua(this.issueId,{comment:a})};X7.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};X7.\u0275fac=function(a){return new (a||X7)(z(US))};
X7.\u0275cmp=od({type:X7,selectors:[["comments-info"]],inputs:{issueId:"issueId",comments:"comments"},decls:1,vars:1,consts:[["class","comment-info",4,"ngFor","ngForOf"],[1,"comment-info"],[4,"ngIf"],["class","keep-focus-ring hover-link",3,"routerLinkObj","click",4,"ngIf"],[1,"ldap",3,"onedevHovercardTrigger"],["personCard",""],[3,"email",4,"ngIf"],[3,"email"],[1,"keep-focus-ring","hover-link",3,"routerLinkObj","click"]],template:function(a,b){a&1&&P(0,Gsb,5,3,"span",0);a&2&&C("ngForOf",b.comments)},
dependencies:[Dv,Ev,PJ,UJ,sO,tP,QO],styles:["[_nghost-%COMP%]{overflow:hidden;display:flex;align-items:center;gap:4px;white-space:nowrap}.comment-info[_ngcontent-%COMP%]{display:flex;overflow:hidden;min-width:25px}.ldap[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1000000;margin-right:3px}"],changeDetection:0});var Y7=function(a){Y.call(this);this.ngZone=a};W(Y7,Y);Y7.\u0275dir=Y.\u0275dir;var KEc=function(a,b){return(new B.Observable(function(c){var d=new ResizeObserver(function(e){a.ngZone.run(function(){var f=e[0];c.next({height:f.contentRect.height,width:f.contentRect.width})})});d.observe(b);return function(){d.unobserve(b)}})).pipe(Af(a.destroyed$))};Y7.\u0275fac=function(a){return new (a||Y7)(n(Df))};Y7.\u0275prov=$c({token:Y7,factory:Y7.\u0275fac,providedIn:"root"});var LEc=["imagesSummaryWidget"],Z7=function(a,b,c){var d=this;this.resizeService=a;this.router=b;this.route=c;this.imageLinks$=new B.ReplaySubject(1);this.paginate=!1;this.container$=new B.ReplaySubject(1);this.containerResize$=this.container$.pipe(A(function(e){return e.nativeElement}),zf(function(e){return KEc(d.resizeService,e)}));this.issueId$=new B.ReplaySubject(1);this.lastRenderedImageIndex$=new B.BehaviorSubject(0);this.allImages$=this.imageLinks$.pipe(A(function(e){e=e.map(function(f){if(f.comment){var h=
bFa(f.href);if(h)return{src:h,comment:f.comment}}}).filter(cl);return Nsb(e)}));this.maxImagesInOneRow$=this.containerResize$.pipe(A(function(e){return Math.floor((e.width-16)/216)}),wf({refCount:!0,bufferSize:1}));this.initialNumberOfImages$=this.maxImagesInOneRow$.pipe(A(function(e){return 2*e}));this.imagesToRender$=(0,B.combineLatest)([this.initialNumberOfImages$,this.allImages$,this.lastRenderedImageIndex$]).pipe(A(function(e){var f=l(e);e=f.next().value;var h=f.next().value;f=f.next().value;
return d.paginate?h.slice(0,f||e):h.slice(0,e)}),mf())};Z7.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};Z7.prototype.ngOnInit=function(){this.issueId$.next(this.issueId)};Z7.prototype.ngAfterContentInit=function(){this.container$.next(this.container)};Qh.Object.defineProperties(Z7.prototype,{imageLinks:{configurable:!0,enumerable:!0,set:function(a){this.imageLinks$.next(a)},get:function(){return Gk(this.imageLinks$)}}});
Z7.\u0275fac=function(a){return new (a||Z7)(z(Y7),z(WD),z(lk))};
Z7.\u0275cmp=od({type:Z7,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&zg(LEc,7);if(a&2){var c;yg(c=Bg())&&(b.container=c.first)}},inputs:{issueId:"issueId",imageLinks:"imageLinks",paginate:"paginate"},decls:4,vars:3,consts:[["imagesSummaryWidget",""],[4,"ngIf"],[1,"container"],["class","image-wrapper",4,"ngFor","ngForOf"],[1,"image-wrapper"],["target","_blank",1,"thumbnail",3,"href"],[3,"showByDefault","src"],[3,"issueId","comments"],["mat-button","","class","gmat-button small load-more-screenshots",
3,"click",4,"ngIf","ngIfElse"],["withoutPagination",""],["mat-button","",1,"gmat-button","small","load-more-screenshots",3,"click"],["mat-button","",1,"gmat-button","small","see-all-screenshots",3,"click"]],template:function(a,b){a&1&&(D(0,"div",null,0),P(2,Msb,3,3,"ng-container",1),T(3,"async"),F());a&2&&(w(2),C("ngIf",V(3,1,b.allImages$)))},dependencies:function(){return[X7,Dv,Ev,Ez,oL,Kv,$7]},styles:['.container[_ngcontent-%COMP%]{align-items:flex-start;display:flex;flex-flow:row wrap;justify-content:flex-start;max-height:390px;overflow:hidden}.show-all-images[_ngcontent-%COMP%]{max-height:100%}.image-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:8px}.image-wrapper[_ngcontent-%COMP%]   comments-info[_ngcontent-%COMP%]{margin:0 8px;max-width:200px}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:2px solid;border-color:#e8eaed;border-color:var(--c200);border-radius:8px;margin:8px;height:150px;width:200px;position:relative;overflow:hidden}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]:focus{border-color:#185abc;border-color:var(--primary-c800)}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]     img{bottom:0;top:0;left:0;right:0;position:absolute;margin:auto;height:auto;width:auto;max-height:150%;max-width:150%}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]     img:before{content:" ";position:absolute;left:0;height:100%;width:100%;background-color:#f8f9fa;background-color:var(--surface-secondary)}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]     img:after{content:"\u274cBroken screenshot link";position:absolute;top:46%;left:0;width:100%;text-align:center}']});
var $7=function(){};$7.prototype.transform=function(a){return a.split(".png")[0]};$7.\u0275fac=function(a){return new (a||$7)};$7.\u0275pipe=td({name:"removePngExtension",type:$7,pure:!0});var MEc={IMAGES:"SW-images",MENTIONED_ISSUES:"SW-mentioned-bugs",LINKS:"SW-links"},Utb=[].concat(p(Object.values(MEc)));var NEc=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=vAa(function(d){c.analytics.trackEvent(xp.EDIT_ISSUE,"click",d)});this.recordImpressionOnce=vAa(function(){c.analytics.trackEvent(xp.EDIT_ISSUE,"view","SW")})},Jtb=function(a,b,c){a.recordInteractionOnce(c);Ds(a.issueInteractionsTracking,b,c+"-content-interacted");Ds(a.issueInteractionsTracking,b,"SW-content-interacted")};var a8=function(a,b){this.activeSession=a;this.currentTracker=b;this.linkText=this.rightText=this.leftText="";this.isExternalLink=!1;this.issueId=this.originalHref=this.redirectedHref=""};
a8.prototype.ngOnChanges=function(){var a;a:{var b=null==(a=this.sourceComment)?void 0:a.formattedComment;if(b){if(b.markdownFormat){a=Usb(b.markdownFormat.content);break a}if(b.literalFormat){a=Usb(b.literalFormat.content);break a}if(b.plainFormat){a=document.createElement("div");b=l(b.plainFormat.plainSection);for(var c=b.next();!c.done;c=b.next())(c=c.value.content)&&a.appendChild(Usb(c));break a}}a=void 0}if(a=a&&OEc(this,a)){b=a.dataset.bOriginalHref;c=a.dataset.bRedirectedHref;var d=a.dataset.bIssueId;
d&&(this.issueId=d);b&&c?(this.redirectedHref=c,this.originalHref=b,this.isExternalLink=!0):(this.originalHref=this.redirectedHref=a.href,this.isExternalLink=!1);b=[];for(c=a;c.previousSibling;){c=c.previousSibling;if(PEc.has(c.nodeName))break;d=void 0;b.push(null!=(d=c.textContent)?d:"")}this.leftText=b.reverse().join("");b=[];for(c=a;c.nextSibling;){c=c.nextSibling;if(PEc.has(c.nodeName))break;d=void 0;b.push(null!=(d=c.textContent)?d:"")}this.rightText=b.join("");this.linkText=a.innerText||a.href}else this.relatedLink&&
(c=b=a="",jo(this.relatedLink)?c=b=this.relatedLink.href:cFa(this.relatedLink)&&(a=this.relatedLink.issueId,b=this.getIssueUrl(this.relatedLink.issueId),c=this.relatedLink.issueId,c=this.activeSession.isInternalSession()?Spa(kG(this.currentTracker,c),""):this.getIssueUrl(c)),this.issueId=a,this.originalHref=this.redirectedHref=b,this.isExternalLink=!1,this.rightText=this.leftText="",this.linkText=c)};
var OEc=function(a,b){if(a.relatedLink){if(cFa(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(p(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(jo(a.relatedLink)){var d=a.relatedLink;return[].concat(p(b.querySelectorAll("a"))).find(function(e){a:{var f=d.href;if(e.innerText===f)e=!0;else{try{f=(new URL(f)).href}catch(h){e=!1;break a}e=e.href===f||e.href.replace("https://cl.corp.google.com/","https://critique.corp.google.com/")===f?!0:!1}}return e})}}};
a8.prototype.getIssueUrl=function(a){return kG(this.currentTracker,a)};a8.\u0275fac=function(a){return new (a||a8)(z(Us),z(jG))};
a8.\u0275cmp=od({type:a8,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},features:[Fd],decls:8,vars:4,consts:[[1,"wrapper"],["class","muted margin-xs-right left","aria-hidden","true",4,"ngIf"],[4,"ngIf","ngIfElse"],["internalLink",""],["class","muted margin-xs-left right","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"muted","margin-xs-right","left"],[3,"href","originalHref"],[3,"href","issueId",4,"ngIf","ngIfElse"],["hyperLink",
""],[3,"href","issueId"],["target","_blank",1,"keep-focus-ring",3,"href"],["aria-hidden","true",1,"muted","margin-xs-left","right"]],template:function(a,b){a&1&&(D(0,"div",0),Q(1," \u201c "),P(2,Osb,3,3,"span",1),P(3,Psb,3,3,"ng-container",2),P(4,Ssb,3,2,"ng-template",null,3,Eg),P(6,Tsb,2,1,"span",4),Q(7," \u201d\n"),F());if(a&2){var c=N(5);w(2);C("ngIf",b.leftText);w(1);C("ngIf",b.isExternalLink)("ngIfElse",c);w(3);C("ngIf",b.rightText)}},dependencies:[RS,WS,Ev,PI],styles:["[_nghost-%COMP%]{overflow:hidden}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%], b-external-hyperlink-widget[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}b-external-hyperlink-widget[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{max-width:max(80%,350px)}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%]{flex-shrink:1000000;max-width:max(80%,200px);user-select:none}.left[_ngcontent-%COMP%]{direction:rtl;text-align:left;unicode-bidi:bidi-override}"],
changeDetection:0});var PEc=new Set(["BR"]);var b8=function(a,b,c,d,e){var f=this;this.activeSession=a;this.issueFridge=b;this.router=c;this.route=d;this.issueReferenceResolver=e;this.issueReferences$=new B.ReplaySubject(1);this.currentIssueId$=new B.ReplaySubject(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new B.BehaviorSubject(10);this.issuesMap$=this.issueReferences$.pipe(cf(cl),zf(function(h){var k=Tj(h.map(function(q){return q.issueId}));return f.issueFridge.watchSet(k).pipe(A(function(q){return new Map(q.map(function(u){return[null==
u?void 0:u.issueId.toString(),u]}))}),A(function(q){return new Map(k.map(function(u){return[u,q.get(u)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(cf(cl),A(function(h){var k=new Map;h=l(h);for(var q=h.next();!q.done;q=h.next()){q=q.value;var u=q.issueId.toString();k.has(u)?k.get(u).push(q):k.set(u,[q])}return k}));this.allMentionedIssues$=(0,B.combineLatest)([this.issueReferencesMap$,this.issuesMap$]).pipe(A(function(h){h=l(h);var k=h.next().value;h=h.next().value;return[].concat(p(h)).filter(function(q){return l(q).next().value!==
f.issueId}).map(function(q){var u=l(q);q=u.next().value;u=u.next().value;var x=k.get(q),y=null==x?void 0:x.map(function(E){var H,J,O=null==(H=E.comment)?void 0:null==(J=H.userPerformingActionUser)?void 0:J.emailAddress;return{commentNumber:E.sourceCommentNumber,author:(null==O?void 0:O.split("@")[0])+"@",issueEvent:E.comment}});return{hasViewAccess:!!u,issueId:q,shortIssueUrl:Spa(f.activeSession.getAppBaseUrl(),q),sourceComments:y,title:null==u?void 0:u.snapshot[0].title,priority:u?u.snapshot[0].priority:
null,relatedLinks:x}})}));this.mentionedIssuesToRender$=(0,B.combineLatest)([this.allMentionedIssues$,this.lastRenderedMentionedIssueIndex$]).pipe(A(function(h){var k=l(h);h=k.next().value;k=k.next().value;return f.paginate?h.slice(0,k):h.slice(0,5)}))};b8.prototype.getCommentNumberLink=function(a){return fua(this.issueId,{comment:a})};b8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};
b8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};Qh.Object.defineProperties(b8.prototype,{issueReferences:{configurable:!0,enumerable:!0,set:function(a){this.issueReferences$.next(a)}},currentIssueId:{configurable:!0,enumerable:!0,set:function(a){this.currentIssueId$.next(a);this.issueId=a}}});b8.\u0275fac=function(a){return new (a||b8)(z(Us),z(GH),z(WD),z(lk),z(US))};
b8.\u0275cmp=od({type:b8,selectors:[["b-mentioned-issues"]],inputs:{issueReferences:"issueReferences",currentIssueId:"currentIssueId",paginate:"paginate"},decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"matTooltip","issuePriority"],[1,"issue-title-and-link"],[1,"padded-s-sides","title",3,"matTooltip"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["mat-button","","class","gmat-button small load-more-issues",3,"click",4,"ngIf","ngIfElse"],["withoutPagination",
""],["mat-button","",1,"gmat-button","small","load-more-issues",3,"click"],["mat-button","",1,"gmat-button","small","see-all-issues",3,"click"]],template:function(a,b){a&1&&(P(0,atb,3,3,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.mentionedIssuesToRender$))},dependencies:function(){return[Dv,Ev,eU,Ez,FB,a8,X7,Kv,c8]},styles:["table[_ngcontent-%COMP%]{width:100%;display:block}table[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;min-width:22px}.title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:50px}mentioned-link-with-context[_ngcontent-%COMP%]{min-width:100px}.issue-title-and-link[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.comment-author-and-number[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-column-gap:2px;-moz-column-gap:2px;column-gap:2px}b-issue-priority-display[_ngcontent-%COMP%]{min-height:24px;min-width:22px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.normal-link[_ngcontent-%COMP%]{text-decoration:underline}.see-all-issues[_ngcontent-%COMP%]{margin-left:-8px}"],
changeDetection:0});var c8=function(){};c8.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(cl)};c8.\u0275fac=function(a){return new (a||c8)};c8.\u0275pipe=td({name:"toComments",type:c8,pure:!0});var d8=function(a,b){var c=this;this.router=a;this.route=b;this.allLinks$=new B.ReplaySubject(1);this.issueId$=new B.ReplaySubject(1);this.lastRenderedRelatedLinkIndex$=new B.BehaviorSubject(10);this.paginate=!1;this.trackByHref=function(d,e){return e[0].href};this.allLinkGroups$=this.allLinks$.pipe(A(function(d){return ura(d,function(e){return e.href})}));this.linkGroupsToRender$=(0,B.combineLatest)([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(A(function(d){var e=l(d);d=e.next().value;
e=e.next().value;return c.paginate?itb(d,e):6===d.length?itb(d,6):itb(d,5)}))};d8.prototype.ngOnInit=function(){};d8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};Qh.Object.defineProperties(d8.prototype,{links:{configurable:!0,enumerable:!0,set:function(a){this.allLinks$.next(a)},get:function(){throw Error("Wa");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Gk(this.issueId$)}}});
d8.\u0275fac=function(a){return new (a||d8)(z(WD),z(lk))};
d8.\u0275cmp=od({type:d8,selectors:[["related-links-widget"]],inputs:{links:"links",issueId:"issueId",paginate:"paginate"},decls:2,vars:3,consts:[[4,"ngIf"],["class","related-link flex-kids-x align-items-center gap-s margin-xs-bottom",4,"ngFor","ngForOf","ngForTrackBy"],[1,"related-link","flex-kids-x","align-items-center","gap-s","margin-xs-bottom"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["mat-button","","class","gmat-button small load-more-links",3,"click",
4,"ngIf","ngIfElse"],["withoutPagination",""],["mat-button","",1,"gmat-button","small","load-more-links",3,"click"],["mat-button","",1,"gmat-button","small","see-all-links",3,"click"]],template:function(a,b){a&1&&(P(0,gtb,3,3,"ng-container",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.allLinkGroups$))},dependencies:function(){return[X7,Dv,Ev,Ez,a8,Kv,e8]},styles:["comments-info[_ngcontent-%COMP%]{flex-shrink:1.5;min-width:5em;justify-content:end}mentioned-link-with-context[_ngcontent-%COMP%]{max-width:90%}"],
changeDetection:0});var htb=Cn(function(a){return Math.min.apply(Math,p(a.map(function(b){return b.sourceCommentNumber})))},Dn),e8=function(){};e8.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(cl)};e8.\u0275fac=function(a){return new (a||e8)};e8.\u0275pipe=td({name:"toComments",type:e8,pure:!0});var f8=function(){Ww.apply(this,arguments)};W(f8,Ww);f8.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(f8)))(b||f8)}}();f8.\u0275dir=sd({type:f8,selectors:[["","expandable-tab-content",""]],features:[Jf]});var g8=function(){Ww.apply(this,arguments)};W(g8,Ww);g8.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(g8)))(b||g8)}}();g8.\u0275dir=sd({type:g8,selectors:[["","expandable-tab-header",""]],features:[Jf]});var h8=function(){Ww.apply(this,arguments)};W(h8,Ww);
h8.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(h8)))(b||h8)}}();h8.\u0275dir=sd({type:h8,selectors:[["","expandable-tab-icon",""]],features:[Jf]});var i8=function(){};i8.prototype.ngOnInit=function(){};i8.\u0275fac=function(a){return new (a||i8)};
i8.\u0275cmp=od({type:i8,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(Ag(c,g8,5,vg),Ag(c,f8,5,vg),Ag(c,h8,5,vg));if(a&2){var d;yg(d=Bg())&&(b.tabHeaderTemplate=d.first);yg(d=Bg())&&(b.tabContentTemplate=d.first);yg(d=Bg())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var jtb=function(a){return{tab:a}},QEc=function(a){return{allTabsExpanded:a}},j8=function(){Y.apply(this,arguments);this.internalTabKeys$=new B.ReplaySubject(1);this.ariaLabel="";this.internalExpandedTabs=new jO;this.expandedTabsChanged=new Yu;this.contentShownChanged=new Yu;this.tabs$=new B.BehaviorSubject([]);this.allTabsExpanded$=(0,B.combineLatest)([this.tabs$,this.internalExpandedTabs.value$]).pipe(A(function(a){a=l(a);var b=a.next().value,c=a.next().value;return b.every(function(d){return c.has(d.key)})}));
this.trackByKey=function(a,b){return b.key}};W(j8,Y);j8.\u0275dir=Y.\u0275dir;
j8.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(yf(void 0),A(function(){return a.internalTabs.toArray()}),A(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),zf(function(b){return(0,B.combineLatest)([(0,B.of)(b),a.internalTabKeys$])}),A(function(b){b=l(b);var c=b.next().value;return b.next().value.map(function(d){return Object.assign({},{key:d},c.get(d))})})).subscribe(this.tabs$));this.subscriptions.add((0,B.combineLatest)([this.internalTabKeys$,
this.internalExpandedTabs.value$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return Bpa(new Set(b),new Set(c))}),mf(ki)).subscribe(function(b){a.contentShownChanged.emit(b)}))};j8.prototype.ngOnInit=function(){};j8.prototype.showAll=function(){this.internalExpandedTabs.add.apply(this.internalExpandedTabs,p(this.tabs$.value.map(function(a){return a.key})));this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
j8.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};var qtb=function(a){var b;return Ne(function(c){if(1==c.nextAddress)return c.yield((0,B.firstValueFrom)(a.allTabsExpanded$),2);(b=c.yieldResult)?a.hideAll():a.showAll();Se(c)})};
Qh.Object.defineProperties(j8.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(p(a)))},get:function(){var a;return null!=(a=Gk(this.internalTabKeys$))?a:[]}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){this.internalExpandedTabs.reset(a)},get:function(){return[].concat(p(this.internalExpandedTabs))}}});j8.\u0275fac=function(){var a;return function(b){return(a||(a=Zd(j8)))(b||j8)}}();
j8.\u0275cmp=od({type:j8,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&Ag(c,i8,5);if(a&2){var d;yg(d=Bg())&&(b.internalTabs=d)}},inputs:{tabKeys:"tabKeys",ariaLabel:"ariaLabel",expandedTabs:"expandedTabs"},outputs:{expandedTabsChanged:"expandedTabsChanged",contentShownChanged:"contentShownChanged"},features:[Jf],decls:11,vars:14,consts:[[1,"tabs-row","flex-kids-x","centered-inside"],["role","tablist","aria-multiselectable","true",1,"expandable-tabs","flex-kids-x","centered-inside"],
["mat-button","","class","expandable-tab keep-focus-ring","role","tab",3,"expanded","click",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"expandable-tabs-contents"],[4,"ngFor","ngForOf","ngForTrackBy"],["headerText",""],["mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"click"],[4,"ngIf","ngIfElse"],["notExpanded",""],["svgIcon","done",1,"icon-s"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["mat-button","",1,"gmat-button","small",3,"click"],["class",
"expandable-tab-content","role","tabpanel",3,"id",4,"ngIf"],["role","tabpanel",1,"expandable-tab-content",3,"id"],["spacer",""],[1,"spacer"],["noTemplate",""]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1),P(2,ptb,8,16,"button",2),T(3,"async"),F(),P(4,rtb,3,6,"ng-container",3),T(5,"async"),F(),D(6,"div",4),P(7,Btb,3,3,"ng-container",5),T(8,"async"),F(),P(9,Gtb,3,2,"ng-template",null,6,Eg));a&2&&(w(1),Nf("aria-label",b.ariaLabel),w(1),C("ngForOf",V(3,6,b.tabs$))("ngForTrackBy",b.trackByKey),
w(2),C("ngIf",og(12,QEc,V(5,8,b.allTabsExpanded$))),w(3),C("ngForOf",V(8,10,b.tabs$))("ngForTrackBy",b.trackByKey))},dependencies:[Dv,Ev,Jv,qA,Ez,Kv],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:5px 7px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#3c4043;color:var(--c800)}.expandable-tab.expanded[_ngcontent-%COMP%]{color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);border-color:transparent}.expandable-tab[_ngcontent-%COMP%]:hover{-webkit-filter:brightness(95%);filter:brightness(95%)}[_nghost-%COMP%]     .expandable-tab .mat-button-wrapper{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px}[_nghost-%COMP%]     .expandable-tab.mat-button{line-height:unset}.expandable-tabs-hide-all[_ngcontent-%COMP%], .expandable-tabs-show-all[_ngcontent-%COMP%]{margin-left:auto}.expandable-tab-content[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.expandable-tab-content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;color:#202124;color:var(--c900);margin:16px 0}.expandable-tab-content[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{margin-top:8px}.expandable-tab-content[_ngcontent-%COMP%]:not(:last-child){padding-bottom:16px;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}\n/*# sourceMappingURL=expandable_tabs.css.map */"],
changeDetection:0});var Ktb=function(){return[]},k8=function(a,b,c,d,e,f){Y.call(this);var h=this;this.activeSession=a;this.userPreferencesManager=b;this.issueInteractionsTracking=c;this.issueFridge=d;this.analytics=e;this.eventsForIssueFridge=f;this.TabKeys=MEc;this.issueId$=new B.ReplaySubject(1);this.alwaysStartCollapsed=!1;this.issue$=this.issueId$.pipe(zf(function(k){return h.issueFridge.watch(k)}),cf(cl));this.commentNumberToEventMap$=this.issueId$.pipe(zf(function(k){return h.eventsForIssueFridge.watch(k)}),A(function(k){var q;
return null!=(q=null==k?void 0:k.events)?q:[]}),A(function(k){return new Map(k.filter(function(q){return!!q.commentNumber}).map(function(q){return[q.commentNumber,q]}))}));this.relatedLinks$=(0,B.combineLatest)([this.issue$,this.commentNumberToEventMap$]).pipe(A(function(k){k=l(k);var q=k.next().value,u=k.next().value,x;return(null==(x=q.relatedLinks)?void 0:x.map(function(y){return Object.assign({},y,{comment:u.get(y.sourceCommentNumber)})}))||[]}));this.imageLinks$=this.relatedLinks$.pipe(A(function(k){return k.filter(ZEa)}));
this.distinctImageLinksCount$=this.imageLinks$.pipe(A(function(k){return Sj(k,function(q){return bFa(q.href)})}),A(function(k){return k.length}));this.shouldShowImages$=this.imageLinks$.pipe(A(function(k){return h.activeSession.isInternalSession()&&$C(h.activeSession,"enableImageSummary")&&REc(h,k)}));this.issues$=this.relatedLinks$.pipe(A(function(k){return k.filter(cFa)}));this.distinctIssuesCount$=this.issues$.pipe(A(function(k){return k.filter(function(q){return q.issueId!==h.issueId})}),A(function(k){return Sj(k,
function(q){return q.issueId})}),A(function(k){return k.length}));this.shouldShowIssues$=this.distinctIssuesCount$.pipe(A(function(k){return $C(h.activeSession,"enableRelatedIssuesWidget")&&!!k}));this.otherLinks$=this.relatedLinks$.pipe(A(function(k){return k.filter(dFa)}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(A(function(k){return Sj(k,function(q){return q.href})}),A(function(k){return k.length}));this.shouldShowLinks$=this.otherLinks$.pipe(A(function(k){return $C(h.activeSession,
"enableLinksWidget")&&h.shouldShowLinks(k)}));this.tabKeys$=(0,B.combineLatest)([this.shouldShowImages$.pipe(A(function(k){return{show:k,key:"SW-images"}})),this.shouldShowIssues$.pipe(A(function(k){return{show:k,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(A(function(k){return{show:k,key:"SW-links"}}))]).pipe(A(function(k){return k.filter(function(q){return q.show}).map(function(q){return q.key})}));this.shouldShowSummaryCard$=this.tabKeys$.pipe(A(function(k){return!!k.length}),lf(0,B.asapScheduler));
this.initiallyExpandedTabs=Utb.map(function(k){return rWb(h.userPreferencesManager,k)?void 0:k}).filter(cl);this.onTabExpanded$=new Yu;this.issueSummaryTracking=new NEc(this.issueInteractionsTracking,this.analytics)};W(k8,Y);k8.\u0275dir=Y.\u0275dir;
k8.prototype.ngOnInit=function(){var a=this;this.alwaysStartCollapsed&&(this.initiallyExpandedTabs=[]);this.subscriptions.add(this.onTabExpanded$.pipe(jf(1E3),zf(function(b){var c=b.expandedTabKeys;return qWb(a.userPreferencesManager,Object.fromEntries(b.allTabKeys.map(function(d){return[d,!c.has(d)]})))})).subscribe());this.subscriptions.add(this.tabKeys$.subscribe(function(b){var c=a.issueSummaryTracking,d=a.issueId;b=new Set(b);for(var e=l(b),f=e.next();!f.done;f=e.next())Ds(c.issueInteractionsTracking,
d,f.value+"-available");0<b.size&&Ds(c.issueInteractionsTracking,d,"SW-available")}))};k8.prototype.shouldShowLinks=function(a){return 0===a.length||a.every(function(b){return 1===b.sourceCommentNumber})?!1:!0};var REc=function(a,b){if(0===b.length)return!1;b=b.every(function(c){var d;return 1===c.sourceCommentNumber&&"MARKDOWN"===(null==(d=c.comment)?void 0:d.formattingMode)});return jE(a.userPreferencesManager).showInlineImages&&b?!1:!0};
Qh.Object.defineProperties(k8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Gk(this.issueId$)}}});k8.\u0275fac=function(a){return new (a||k8)(z(Us),z(iE),z(gO),z(GH),z(zH),z(cH))};
k8.\u0275cmp=od({type:k8,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId",alwaysStartCollapsed:"alwaysStartCollapsed"},features:[Jf],decls:4,vars:3,consts:[[1,"a11y-only"],["ariaLabel","issue summary sections",3,"tabKeys","expandedTabs","expandedTabsChanged","contentShownChanged",4,"ngIf"],["ariaLabel","issue summary sections",3,"tabKeys","expandedTabs","expandedTabsChanged","contentShownChanged"],["ariaLabel","Toggle screenshots summary section",3,"key"],["expandable-tab-icon",""],["expandable-tab-header",
""],["expandable-tab-content",""],["ariaLabel","Toggle mentioned issues summary section",3,"key"],["ariaLabel","Toggle links summary section",3,"key"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks","click",4,"ngIf"],[3,"issueId","imageLinks","click"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId","click",4,"ngIf"],[3,"issueReferences","currentIssueId","click"],["svgIcon","link",1,"icon-s"],[3,"links","issueId","click"]],template:function(a,b){a&1&&(D(0,"h3",
0),Q(1,"Issue summary"),F(),P(2,Vtb,13,5,"expandable-tabs",1),T(3,"async"));a&2&&(w(2),C("ngIf",V(3,1,b.tabKeys$)))},dependencies:[Ev,qA,i8,f8,g8,h8,j8,Z7,b8,d8,Kv],styles:["[_nghost-%COMP%]{display:block}.chip-container[_ngcontent-%COMP%]{display:flex}issue-summary-chip[_ngcontent-%COMP%]{margin:0 4px}inline-images-summary[_ngcontent-%COMP%]{display:block}inline-images-summary.hidden[_ngcontent-%COMP%]{display:none}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var l8=function(a){this.matDialog=a};l8.prototype.show=function(a){this.dialog=this.matDialog.open(m8,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return(0,B.firstValueFrom)(Pz(this.dialog))};l8.\u0275fac=function(a){return new (a||l8)(n(Uz))};l8.\u0275prov=$c({token:l8,factory:l8.\u0275fac,providedIn:"root"});var m8=function(a,b,c){Y.call(this);this.data=a;this.dialogService=b;this.dialogRef=c;this.statusUpdates=a.statusUpdates};W(m8,Y);m8.\u0275dir=Y.\u0275dir;
m8.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Af(this.destroyed$)).subscribe(function(b){if("Escape"===b.key){var c;null==(c=a.dialogService.dialog)||c.close()}});this.dialogRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){var b;null==(b=a.dialogService.dialog)||b.close()})};m8.\u0275fac=function(a){return new (a||m8)(z(Tz),z(l8),z(Rz))};
m8.\u0275cmp=od({type:m8,selectors:[["ng-component"]],features:[Jf],decls:8,vars:2,consts:[["mat-dialog-title",""],["tabindex","0","mat-dialog-content",""],[1,"history-list"],["class","version",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],[1,"version"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"version-header"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",3,"timestamp"],[1,"muted","float-right","float-clear"],[1,"type-xs"],
[1,"update-email"],[3,"email"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"History for Status Update"),F(),D(2,"section",1)(3,"ul",2),P(4,Wtb,19,12,"li",3),F()(),D(5,"footer",4)(6,"button",5),Q(7," Close "),F()());a&2&&(w(4),C("ngForOf",b.statusUpdates),w(2),C("mat-dialog-close",void 0))},dependencies:[Dv,PL,Ez,Vz,Wz,Xz,Yz,CN,vO,uO,mO,DN],styles:[".history-list[_ngcontent-%COMP%]{overflow:auto;padding:0}.history-list[_ngcontent-%COMP%]   .version[_ngcontent-%COMP%]:first-child{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.version[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);padding:8px 5px}.version-header[_ngcontent-%COMP%]{margin-left:40px}pre[_ngcontent-%COMP%]{cursor:auto;display:block;margin:20px 0 10px 40px;white-space:prewrap}b-formatted-date-time[_ngcontent-%COMP%]{float:right}.bv2-event-user-image-cell[_ngcontent-%COMP%]{padding-top:8px;padding-left:5px;margin:0}.update-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}\n/*# sourceMappingURL=status_update_history.css.map */"],
changeDetection:0});var SEc=["noteContainer"],gub=function(a){return[a]},TEc={FRESH:0,STALE:1,NONE:2,0:"FRESH",1:"STALE",2:"NONE"},n8=function(a,b,c,d,e,f,h,k,q){Y.call(this);var u=this;this.analytics=a;this.confirmationDialogService=b;this.currentUser=c;this.editStatusUpdateDialogService=d;this.errorHandler=e;this.issueFridge=f;this.issuePermissionService=h;this.statusUpdateService=k;this.statusUpdateHistoryDialogService=q;this.Freshness=TEc;this.UiState=UEc;this.FormattingMode=IC;this.issueId$=new B.ReplaySubject(1);
this.issue$=this.issueId$.pipe(zf(this.issueFridge.watch));this.componentId$=this.issue$.pipe(A(function(x){return null==x?void 0:x.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(A(function(x){var y;return null==x?void 0:null==(y=x.accessLimit)?void 0:y.accessLevel}));this.issue$.pipe(A(function(x){var y;return null==x?void 0:null==(y=x.aggregatedData)?void 0:y.teamId}));this.isCollapsed=!1;this.statusUpdate$=this.issue$.pipe(A(function(x){return null==x?void 0:x.statusUpdate}));this.statusUpdateAsNote$=
this.statusUpdate$.pipe(cf(cl),A(function(x){return{unlinkifiedComment:x.updateText,formattedComment:x.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(A(function(x){var y;return null!=(y=BCa(null==x?void 0:x.updateText))?y:""}));this.statusIsEmpty$=this.statusUpdate$.pipe(A(function(x){return""===((null==x?void 0:x.updateText)||"").trim()}));this.freshnessIndicator$=(0,B.combineLatest)([this.statusIsEmpty$,this.statusUpdate$]).pipe(A(function(x){var y=l(x);x=y.next().value;y=y.next().value;
if(x)return 2;var E;x=(null==y?void 0:null==(E=y.updateTime)?void 0:E.seconds)||0;return 86400>Date.now()/1E3-x?0:1}));this.uiState$=this.statusIsEmpty$.pipe(A(function(x){return x?1:2}),yf(0));this.formattingModeOverride$=new B.BehaviorSubject(void 0);this.formattingMode$=(0,B.combineLatest)([this.statusUpdate$,this.formattingModeOverride$]).pipe(A(function(x){var y=l(x);x=y.next().value;return(y=y.next().value)?y:(null==x?void 0:x.formattingMode)||"PLAIN"}));this.menuItems$=(0,B.combineLatest)([this.issueId$,
this.statusUpdate$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(A(function(x){var y=l(x),E=y.next().value,H=y.next().value;x=y.next().value;y=y.next().value;var J=null!=H;H=H&&""!==(null==H?void 0:H.updateText);var O=[];H&&O.push({type:"submenu",label:"View as",className:"view-as-format",items:[{type:"select",label:"Classic",action:function(){u.formattingModeOverride$.next("PLAIN")},selected:"PLAIN"===y},{type:"select",label:"Markdown",action:function(){u.formattingModeOverride$.next("MARKDOWN")},
selected:"MARKDOWN"===y},{type:"select",label:"Source",action:function(){u.formattingModeOverride$.next("LITERAL")},selected:"LITERAL"===y}]});O.push({type:"action",label:"Edit Status Update",action:function(){u.editStatusUpdate()}});J&&O.push({type:"action",label:"Show editing history",action:function(){VEc(u,E)}});H&&x&&O.push({type:"action",label:"Delete Status Update",action:function(){u.confirmationDialogService.open({title:"Delete Status Update?",content:Uo("\n                    Deleting a Status Update will remove it from the history. It\n                    will be purged after 30 days. This cannot be undone."),
confirmButtonText:"Delete",onConfirm:function(){u.doDelete()}})}});O.push(WEc);return O}))};W(n8,Y);n8.\u0275dir=Y.\u0275dir;n8.prototype.ngOnInit=function(){var a=this;setTimeout(function(){var b,c;return Ne(function(d){if(1==d.nextAddress)return d.yield((0,B.firstValueFrom)(a.uiState$.pipe(cf(function(e){return 0!==e}))),2);b=d.yieldResult;c=iub(b);a.analytics.trackEvent(xp.ISSUE,"statusUpdateDisplay",c);Se(d)})},1E3)};
n8.prototype.ngAfterViewInit=function(){var a;84<(null==(a=this.noteContainer)?void 0:a.nativeElement.scrollHeight)&&(this.isCollapsed=!0)};
n8.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:return u.yield((0,B.firstValueFrom)(a.issueId$),2);case 2:return b=u.yieldResult,u.yield((0,B.firstValueFrom)(a.componentId$),3);case 3:return c=u.yieldResult,d={issueId:b,updateText:"",version:-1},f=null!=(e=Gk(a.statusUpdate$))?e:d,u.yield((0,B.firstValueFrom)(a.accessLevel$),4);case 4:return h=u.yieldResult,k="INTERNAL"===h?"INTERNAL_AUDIENCE":"EXTERNAL_AUDIENCE",u.yield(a.editStatusUpdateDialogService.show(f,
k,c),5);case 5:q=u.yieldResult;if(null==q)return u.return();a.statusUpdateService.update(q).subscribe(function(x){a.didSave(b,x)},function(x){a.errorHandler.errorHandler(null,x)});Se(u)}})};var Ytb=function(a){var b,c;return Ne(function(d){if(1==d.nextAddress)return d.yield((0,B.firstValueFrom)(a.issueId$),2);b=d.yieldResult;c=Gk(a.statusUpdate$);if(!c)return d.return();a.statusUpdateService.update(c).subscribe(function(e){a.didSave(b,e)},function(e){a.errorHandler.errorHandler(null,e)});Se(d)})};
n8.prototype.didSave=function(a,b){gG(this.issueFridge,a,function(c){c.statusUpdate=b});this.issueFridge.poke(a)};var VEc=function(a,b){var c;Ne(function(d){if(1==d.nextAddress)return d.yield((0,B.firstValueFrom)(bjc(a.statusUpdateService,b)),2);c=d.yieldResult;a.statusUpdateHistoryDialogService.show(c);Se(d)})};
n8.prototype.doDelete=function(){var a=this,b;Ne(function(c){if(1==c.nextAddress)return c.yield((0,B.firstValueFrom)(a.issueId$),2);b=c.yieldResult;a.statusUpdateService.delete(b).subscribe(function(){gG(a.issueFridge,b,function(d){d.statusUpdate=void 0});a.issueFridge.poke(b)});Se(c)})};Qh.Object.defineProperties(n8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});
n8.\u0275fac=function(a){return new (a||n8)(z(zH),z(zJ),z(WK),z(WW),z(XF),z(GH),z(EI),z(OW),z(l8))};
n8.\u0275cmp=od({type:n8,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&zg(SEc,5);if(a&2){var c;yg(c=Bg())&&(b.noteContainer=c.first)}},inputs:{issueId:"issueId"},features:[Jf],decls:2,vars:3,consts:[[3,"display-none","short-height","class",4,"ngIf"],["svgIcon","group","color","primary",1,"margin-xs-right","shrink-0"],[4,"ngIf"],[1,"flex-kids-x","space-between","align-items-center"],[1,"uppercase","inline-block","margin-s-right"],[1,"empty-message","muted","margin-s-right"],["mat-stroked-button",
"","aria-label","Edit Status Update","color","primary",1,"gmat-button","small",3,"click"],[1,"flex-1-hemmed"],[1,"flex-kids-x","space-between"],[1,"left"],[1,"uppercase","inline-block","margin-xs-right"],["mat-stroked-button","","aria-label","Edit Status Update","color","primary",1,"gmat-button","small","margin-xs-right",3,"click"],["mat-button","","aria-label","Mark Status Update as fresh","color","primary","class","gmat-button small margin-xs-right mark-fresh",3,"click",4,"ngIf"],[1,"edit-info",
"right"],["matTooltip","Status Update actions",3,"buttonLabel","menuItems",4,"ngIf"],["mat-button","","aria-label","Mark Status Update as fresh","color","primary",1,"gmat-button","small","margin-xs-right","mark-fresh",3,"click"],["class","fresh-checkmark","matTooltip","Last update made within 24 hours","svgIcon","check_circle_filled_24px",4,"ngIf"],[3,"onedevHovercardTrigger"],["mode","relativepast",3,"timestamp"],["userCard",""],[3,"email"],["matTooltip","Last update made within 24 hours","svgIcon",
"check_circle_filled_24px",1,"fresh-checkmark"],["matTooltip","Status Update actions",3,"buttonLabel","menuItems"],[1,"pos-rel"],["noteContainer",""],[3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],["mat-stroked-button","","color","primary","class","gmat-button small show-more",3,"click",4,"ngIf"],[3,"issueId","issueAccessLevel","note","formattingMode"],["mat-stroked-button","","color","primary",1,"gmat-button","small","show-more",3,"click"]],template:function(a,b){a&1&&(P(0,hub,
5,13,"div",0),T(1,"async"));a&2&&C("ngIf",V(1,1,b.uiState$))},dependencies:[h_,jT,Ev,qA,PL,PJ,UJ,sO,Ez,FB,Kv,QO],styles:['.collapsed[_ngcontent-%COMP%]{max-height:84px;overflow:hidden}.collapsed[_ngcontent-%COMP%]:after{content:"";height:40px;left:auto;position:absolute;top:44px;width:100%;background:-webkit-gradient(linear,left top,left bottom,from(transparent),to(var(--surface-default)));background:-webkit-linear-gradient(transparent,var(--surface-default));background:linear-gradient(transparent,var(--surface-default))}.fresh-checkmark[_ngcontent-%COMP%]{color:#1e8e3e;color:var(--good-gfx);vertical-align:middle;margin:0}.short-height[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}']});
var UEc={LOADING:0,EMPTY:1,NORMAL:2,0:"LOADING",1:"EMPTY",2:"NORMAL"},WEc={type:"action",label:"Using the Status Update field...",action:function(){spa(window,ph("https://developers.google.com/issue-tracker/concepts/status-update"),"_blank")},icon:"help-outline",className:"border-top"};var XEc=["textarea"],o8=function(a,b,c){Y.call(this);var d=this;this.dialogData=a;this.prompts=b;this.cdr=c;this.resetRequested$=new B.ReplaySubject(1);this.defaultSummaryPrompt$=njc(this.prompts,this.dialogData.issueId,this.dialogData.summaryType);this.initialPromptText$=(0,B.merge)((0,B.of)(this.dialogData.customPrompt),this.resetRequested$.pipe(zf(function(){return d.defaultSummaryPrompt$})));this.dialogData.customPrompt||this.resetRequested$.next()};W(o8,Y);o8.\u0275dir=Y.\u0275dir;
o8.prototype.ngAfterViewInit=function(){var a=this;this.initialPromptText$.pipe(Af(this.destroyed$)).subscribe(function(b){setTimeout(function(){a.textareaRef.nativeElement.value=b;a.cdr.markForCheck()})})};o8.\u0275fac=function(a){return new (a||o8)(z(Tz),z(bX),z(xv))};
o8.\u0275cmp=od({type:o8,selectors:[["b-custom-summary-prompt-dialog"]],viewQuery:function(a,b){a&1&&zg(XEc,7);if(a&2){var c;yg(c=Bg())&&(b.textareaRef=c.first)}},features:[Jf],decls:12,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["textarea",""],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-stroked-button","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button",
"medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(D(0,"h1",0),Q(1,"Experiment with prompt"),F(),D(2,"div",1),G(3,"textarea",null,2),F(),D(5,"div",3)(6,"button",4),Q(7," Cancel "),F(),D(8,"button",5),L("click",function(){return b.resetRequested$.next()}),Q(9," Reset prompt to default "),F(),D(10,"button",6),Q(11," Generate "),F()());if(a&2){var c=N(4);w(6);C("mat-dialog-close",void 0);w(4);C("mat-dialog-close",c.value)}},dependencies:[Ez,Vz,Wz,Xz,Yz],styles:["textarea[_ngcontent-%COMP%] { width: 500px; height: 50vh}"]});var jub=function(a){return{stage:a}},uub=function(a,b){return{summary:a,stage:b}},Eub=function(a){return{"has-reacted-icon":a}},p8=function(a,b,c,d,e,f){var h=this;this.llmService=a;this.prompts=b;this.matDialogService=c;this.activeSession=d;this.analytics=e;this.userFeedback=f;this.issueId="";this.INITIAL="initial";this.SHORT="short";this.LONG="long";this.CUSTOM="custom";this.TOO_LITTLE_TOOLTIP_TEXT="This feature is disabled because there's too little content on this issue.";this.enableLlmDogfood=
$C(this.activeSession,"enableLlmDogfood");this.isSummarizable$=(0,B.defer)(function(){return jjc(h.prompts,h.issueId)});this.stage$=new B.BehaviorSubject("initial");this.defaultSummaryRequested$=new B.ReplaySubject(1);this.defaultCommentThreadSummary$=this.defaultSummaryRequested$.pipe(Cf(this.stage$),zf(function(k){k=l(k);k.next();k=k.next().value;return kjc(h.llmService,h.issueId,Kub(k))}));this.customSummaryRequested$=new B.ReplaySubject(1);this.customCommentThreadSummary$=this.customSummaryRequested$.pipe(zf(function(k){return ljc(h.llmService,
k).then(function(q){return{status:0,summary:q}})}));this.lastCustomPrompt="";this.commentThreadSummary$=(0,B.merge)((0,B.merge)(this.defaultSummaryRequested$,this.customSummaryRequested$).pipe(A(function(){})),this.defaultCommentThreadSummary$,this.customCommentThreadSummary$);this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1},oub=function(a){var b=Jub(a.stage$.value);a.stage$.next(b);a.analytics.trackEvent(xp.LLM_SUMMARIZE,"click",b);a.defaultSummaryRequested$.next()},rub=function(a){var b,
c;return Ne(function(d){if(1==d.nextAddress)return b={issueId:a.issueId,summaryType:1,customPrompt:a.lastCustomPrompt},d.yield((0,B.firstValueFrom)(Pz(a.matDialogService.open(o8,{maxWidth:560,data:b}))),2);if(c=d.yieldResult)a.stage$.next("custom"),a.customSummaryRequested$.next(c),a.lastCustomPrompt=c;Se(d)})};p8.prototype.isString=function(a){return"string"===typeof a};var Dub=function(a){return JSON.stringify({id:a.issueId,stage:a.stage$.value})};p8.prototype.openFeedbackDialog=function(){this.userFeedback.startFeedback()};
p8.\u0275fac=function(a){return new (a||p8)(z(aX),z(bX),z(Uz),z(Us),z(zH),z($K))};
p8.\u0275cmp=od({type:p8,selectors:[["llm-summary"]],inputs:{issueId:"issueId"},decls:10,vars:3,consts:[["class","summary carded margin-s-sides margin-s-bottom flex-kids-x padded-sides main-div",4,"ngIf"],["showHeader",""],["showStage",""],["summaryLoading",""],["showingSummary",""],[1,"summary","carded","margin-s-sides","margin-s-bottom","flex-kids-x","padded-sides","main-div"],["svgIcon","chat_spark_24px","color","primary",1,"margin-s-right","shrink-0"],[1,"flex-kids-y","gap-s","full-width"],[3,
"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"uppercase","badged","early-access"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["aiHelp",""],[4,"ngIf"],[1,"flex-kids-x","gap-s"],["mat-flat-button","","color","primary","class","gmat-button small",3,"click",4,"ngIf","ngIfElse"],["notSummarizable",""],["mat-button","","color","secondary","class","gmat-button small",3,"click",4,"ngIf"],["mat-flat-button",
"","color","primary",1,"gmat-button","small",3,"click"],[3,"matTooltip"],["mat-flat-button","","color","primary",1,"gmat-button","small",3,"disabled"],["mat-button","","color","secondary",1,"gmat-button","small",3,"click"],[4,"ngIf","ngIfElse"],["class","white-space-pre-wrap overflow",4,"ngIf"],[1,"white-space-pre-wrap","overflow"],[1,"flex-kids-x","space-between","full-width"],[1,"type-s","instructional"],["mat-icon-button","","matTooltip","Copy","aria-label","copy summary",1,"gmat-button","feedback-button",
3,"click"],["svgIcon","copy"],["mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"gmat-button","feedback-button",3,"click"],["svgIcon","feedback-outline"],["mat-icon-button","","aria-label","thumb up",1,"gmat-button","feedback-button",3,"disabled","click"],["svgIcon","thumb_up_24px",3,"ngClass"],["mat-icon-button","","aria-label","thumb down",1,"gmat-button","feedback-button",3,"disabled","click"],["svgIcon","thumb_down_24px",3,"ngClass"],[1,"instructional"]],template:function(a,
b){a&1&&(P(0,lub,6,4,"div",0),T(1,"async"),P(2,nub,7,1,"ng-template",null,1,Eg),P(4,Aub,3,3,"ng-template",null,2,Eg),P(6,Bub,1,0,"ng-template",null,3,Eg),P(8,Iub,3,3,"ng-template",null,4,Eg));a&2&&C("ngIf",V(1,1,b.isSummarizable$))},dependencies:[Cv,Ev,Jv,qA,MJ,Ez,FB,WO,hK,Kv],styles:[".main-div[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.feedback-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.instructional[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}\n/*# sourceMappingURL=llm_summary.css.map */"]});var q8=function(a,b,c,d,e,f,h,k,q,u,x){Y.call(this);var y=this;this.brain=a;this.preferences=b;this.scrollTiming=c;this.analytics=d;this.element=e;this.editIssueService=f;this.appEvents=h;this.routePerformance=k;this.clearcut=q;this.activeSession=u;this.issuePermissionService=x;this.id$=this.brain.id$;this.issueAndEvents$=(0,B.combineLatest)([this.brain.issueJs$.pipe(cf(Boolean)),this.brain.eventsJs$]);this.enableSummarySection=$C(this.activeSession,"enableSummarySection");this.enableIDPCanonicalRecommendation=
$C(this.activeSession,"enableIDPCanonicalRecommendation");this.enableLlmSummarization=$C(this.activeSession,"enableLlmSummarization")&&this.activeSession.isInternalSession();this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(cf(cl),zf(function(E){return y.editIssueService.issueCommentDraft(E).comment$}));this.finishedRendering$=(0,B.combineLatest)([this.brain.eventsJs$.pipe(lf(0)),JUa("#AddCommentBox textarea",this.element.nativeElement)]).pipe(nf())};W(q8,Y);q8.\u0275dir=Y.\u0275dir;
q8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(cf(cl),Af(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){YEc(a)});JUa("#comment1 .critical-feature",this.element.nativeElement).pipe(Af(this.destroyed$)).subscribe(function(){var b=function(){Spc(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.issueAndEvents$.pipe(qf()).subscribe(function(b){var c=
l(b);b=c.next().value;c=c.next().value;ZEc(a,b,c)}));this.subscriptions.add(this.finishedRendering$.pipe(Cf(this.comment$)).subscribe(function(b){b=l(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};
var ZEc=function(a,b,c){var d=b.issue,e=c.map(function(f){return f.unlinkifiedComment});b=Uza(d,c).length;d=Vza(d,c);e=e.filter(Boolean).length;b=5<=b||10<=e||10<=d?"collab":"other";DYb(a.clearcut,"view_idp_"+b);Nk("dimension10",b);c=c.some(function(f){var h,k,q;return 0<(null!=(q=null==(h=f.commentReactions)?void 0:null==(k=h.get("UPVOTE"))?void 0:k.count)?q:0)});a.analytics.trackEvent(xp.EDIT_ISSUE,"view",c?"hasUpvoteReaction":"noUpvoteReaction")};q8.prototype.unloadPageHandler=function(){YEc(this)};
var YEc=function(a){var b=a.scrollTiming;if((b=b.scrollTimingMap.has("flex-1 pos-rel bg-off-main overflow overflow-on-print-media")?b.scrollTimingMap.get("flex-1 pos-rel bg-off-main overflow overflow-on-print-media"):[])&&!(2>b.length)){for(var c=b[0],d=b[0],e=0,f=1;f<b.length;f++)2E3>b[f]-d||(e+=d-c,c=b[f]),d=b[f],f===b.length-1&&(e+=b[f]-c);a.analytics.trackEvent(xp.EDIT_ISSUE,"scroll","commentThread",e);uH(a.clearcut,e,"idp-time-scrolling-comments-recentFirst-"+a.showRecentEventsFirst)}};
q8.\u0275fac=function(a){return new (a||q8)(z(CI),z(iE),z(fL),z(zH),z(ae),z(nO),z(DF),z(X_),z(tH),z(Us),z(EI))};
q8.\u0275cmp=od({type:q8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&L("unload",function(){return b.unloadPageHandler()},!1,ce)},features:[Jf],decls:7,vars:10,consts:[["id","bv2-edit-issue-details-scroll","tabindex","-1",3,"bFocus"],[4,"ngIf"],["class","carded margined-s bg-main",3,"issueId","hidden",4,"ngIf"],["class","carded margined-s bg-main",3,"recent-first",4,"ngIf"],[1,"margin-s-sides","margin-s-top","padded-left",3,"id"],["class","rounded margined-s",3,"hidden","currentIssueId",
4,"ngIf"],[3,"issueId"],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","highlighted-left",3,"id"],[1,"rounded","margined-s",3,"currentIssueId"],["canonicalRecommendation",""],[1,"carded","margined-s","bg-main",3,"issueId"],["issueSummaryCard",""],[1,"carded","margined-s","bg-main"],[3,"id",4,"ngIf"],[3,"id"]],template:function(a,b){a&1&&(D(0,"div",0),P(1,Nub,7,7,"ng-container",1),T(2,"async"),P(3,Oub,3,5,"issue-summary-card",2),T(4,"async"),P(5,Rub,5,5,"div",3),T(6,"async"),F());a&2&&(C("bFocus",
!0),w(1),C("ngIf",V(2,4,b.id$)),w(2),C("ngIf",b.enableSummarySection&&V(4,6,b.id$)),w(2),C("ngIf",V(6,8,b.id$)))},dependencies:[Ev,W7,F7,LW,E7,C7,R7,k8,S7,n8,p8,Kv],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}.summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}"]});var r8=function(){};r8.\u0275fac=function(a){return new (a||r8)};r8.\u0275mod=qd({type:r8});r8.\u0275inj=ad({imports:[aD]});var s8=function(){};s8.\u0275fac=function(a){return new (a||s8)};s8.\u0275mod=qd({type:s8});s8.\u0275inj=ad({imports:[aD,j_,r8,hD,SB,FC,x4,hP]});var t8=function(){};t8.\u0275fac=function(a){return new (a||t8)};t8.\u0275mod=qd({type:t8});t8.\u0275inj=ad({imports:[j_,s8,IT,aD,kM,CK,KO,SB,FC,x4,uP,AK,NO]});var u8=function(){};u8.\u0275fac=function(a){return new (a||u8)};u8.\u0275mod=qd({type:u8});u8.\u0275inj=ad({imports:[aD,iD,Zz,bE,SK,SB,ZL,RF,Dw,Ew,yK,FC,Fy]});var w8=function(){};w8.\u0275fac=function(a){return new (a||w8)};w8.\u0275mod=qd({type:w8});w8.\u0275inj=ad({imports:[aD,SB,FC,kA,oA]});var x8=function(a){Y.call(this);this.prefs=a};W(x8,Y);x8.\u0275dir=Y.\u0275dir;x8.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(Af(this.destroyed$)).subscribe()};x8.\u0275fac=function(a){return new (a||x8)(z(iE))};
x8.\u0275cmp=od({type:x8,selectors:[["b-toggle-code-font"]],features:[Jf],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"checked","change"]],template:function(a,b){a&1&&(eg(),D(0,"mat-slide-toggle",0),L("change",function(c){return b.onChange(c)}),T(1,"async"),fg(2),F());a&2&&C("checked",V(1,1,b.prefs.codeFont$))},dependencies:[PP,FB,Kv],styles:["mat-slide-toggle[_ngcontent-%COMP%] {font-size: 14px; }"],changeDetection:0});var y8=function(){};y8.\u0275fac=function(a){return new (a||y8)};y8.\u0275mod=qd({type:y8});y8.\u0275inj=ad({imports:[aD,SB,SK,Zz,QP,RF,FC,AK]});var z8=function(){};z8.\u0275fac=function(a){return new (a||z8)};z8.\u0275mod=qd({type:z8});z8.\u0275inj=ad({providers:[b7],imports:[aD,iP,tE,nW,u8,CK,GV,tV,sV,w8,SB,FC,bE,yK,y8]});var A8=function(){};A8.\u0275fac=function(a){return new (a||A8)};A8.\u0275mod=qd({type:A8});A8.\u0275inj=ad({imports:[aD,SB,kA,cP]});var B8=function(){};B8.\u0275fac=function(a){return new (a||B8)};B8.\u0275mod=qd({type:B8});B8.\u0275inj=ad({imports:[aD]});var C8=function(){};C8.\u0275fac=function(a){return new (a||C8)};C8.\u0275mod=qd({type:C8});C8.\u0275inj=ad({imports:[aD,CK,GV,kM,NO,jP,IT]});var D8=function(){};D8.\u0275fac=function(a){return new (a||D8)};D8.\u0275mod=qd({type:D8});D8.\u0275inj=ad({imports:[aD,IT]});var E8=function(){};E8.\u0275fac=function(a){return new (a||E8)};E8.\u0275mod=qd({type:E8});E8.\u0275inj=ad({imports:[j_,s8,IT,aD,kM,CK,C8,KO,x4,uP,NO,FC,D8,SB,B8]});var F8=function(){};F8.\u0275fac=function(a){return new (a||F8)};F8.\u0275mod=qd({type:F8});F8.\u0275inj=ad({imports:[aD,E8,C8,SB,AK]});var G8=function(){};G8.\u0275fac=function(a){return new (a||G8)};G8.\u0275mod=qd({type:G8});G8.\u0275inj=ad({imports:[aD,SB,RF]});var H8=function(){};H8.\u0275fac=function(a){return new (a||H8)};H8.\u0275mod=qd({type:H8});H8.\u0275inj=ad({imports:[IT,aD,F8,t8,tV,w8,SB,FC,AK,yK,G8,NO,RF]});var I8=function(){};I8.\u0275fac=function(a){return new (a||I8)};I8.\u0275mod=qd({type:I8});I8.\u0275inj=ad({imports:[aD,RO,FC,CK]});var J8=function(){};J8.\u0275fac=function(a){return new (a||J8)};J8.\u0275mod=qd({type:J8});J8.\u0275inj=ad({imports:[cJ,YV,IT,aD,iP,Dw,tE,SB,SK,ZV,I8]});var K8=function(){};K8.\u0275fac=function(a){return new (a||K8)};K8.\u0275mod=qd({type:K8});K8.\u0275inj=ad({imports:[aD,SB,FC,dM]});var L8=function(){};L8.\u0275fac=function(a){return new (a||L8)};L8.\u0275mod=qd({type:L8});L8.\u0275inj=ad({imports:[IT,aD,kM,tV,sV,SB,BB,FC,K8]});var M8=function(){};M8.\u0275fac=function(a){return new (a||M8)};M8.\u0275mod=qd({type:M8});M8.\u0275inj=ad({imports:[aD,CK,KO,RO,uP]});var N8=function(){};N8.\u0275fac=function(a){return new (a||N8)};N8.\u0275mod=qd({type:N8});N8.\u0275inj=ad({imports:[M8,aD,CK,KO,SB,RO,uP,bE,rL]});var O8=function(){};O8.\u0275fac=function(a){return new (a||O8)};O8.\u0275mod=qd({type:O8});O8.\u0275inj=ad({imports:[IT,aD,RI]});var P8=function(){};P8.\u0275fac=function(a){return new (a||P8)};P8.\u0275mod=qd({type:P8});P8.\u0275inj=ad({imports:[aD,sV,SB,FC,O8,IO,uP,bE,M8]});var Q8=function(){};Q8.\u0275fac=function(a){return new (a||Q8)};Q8.\u0275mod=qd({type:Q8});Q8.\u0275inj=ad({imports:[M8,aD,SB,O8]});var R8=function(){};R8.\u0275fac=function(a){return new (a||R8)};R8.\u0275mod=qd({type:R8});R8.\u0275inj=ad({imports:[aD,SB,Yw]});var S8=function(){};S8.\u0275fac=function(a){return new (a||S8)};S8.\u0275mod=qd({type:S8});S8.\u0275inj=ad({imports:[aD,R8,N8,P8,Q8]});var T8=function(){};T8.\u0275fac=function(a){return new (a||T8)};T8.\u0275mod=qd({type:T8});T8.\u0275inj=ad({imports:[Zz,SK,aD,Sy,SB,IT,MT]});var U8=function(){};U8.\u0275fac=function(a){return new (a||U8)};U8.\u0275mod=qd({type:U8});U8.\u0275inj=ad({imports:[IT,aD]});var V8=function(){};V8.\u0275fac=function(a){return new (a||V8)};V8.\u0275mod=qd({type:V8});V8.\u0275inj=ad({imports:[aD,kM,SB,Zz,Sy,IO,RO,U8,NO]});var W8=function(){};W8.\u0275fac=function(a){return new (a||W8)};W8.\u0275mod=qd({type:W8});W8.\u0275inj=ad({imports:[j_,IT,aD,kM,T8,CK,KO,SB,FC,RO,V8,U8]});var X8=function(){};X8.\u0275fac=function(a){return new (a||X8)};X8.\u0275mod=qd({type:X8});X8.\u0275inj=ad({imports:[aD,AK,SB,Zz,FC,hP,FK]});var Y8=function(){};Y8.\u0275fac=function(a){return new (a||Y8)};Y8.\u0275mod=qd({type:Y8});Y8.\u0275inj=ad({imports:[aD,Qx,zx,Dw,SB,Zz,HT,Ew,bE,L8,A8,MW,z8,t8,H8,S8,P8,J8,rL,W8,NO,AK,X8]});var Z8=function(a,b,c,d){var e=this;this.activeSession=a;this.issueFridge=b;this.issueDetailsBrain=c;this.eventsForIssueFridge=d;this.isInternalSession=this.activeSession.isInternalSession();this.issue$=this.issueDetailsBrain.id$.pipe(zf(this.issueFridge.watch),cf(cl));this.commentNumberToEventMap$=this.issue$.pipe(A(function(f){return f.issueId}),zf(function(f){return e.eventsForIssueFridge.watch(f)}),A(function(f){var h;return null!=(h=null==f?void 0:f.events)?h:[]}),A(function(f){return new Map(f.filter(function(h){return!!h.commentNumber}).map(function(h){return[h.commentNumber,
h]}))}));this.relatedLinks$=(0,B.combineLatest)([this.issue$,this.commentNumberToEventMap$]).pipe(A(function(f){f=l(f);var h=f.next().value,k=f.next().value,q;return(null==(q=h.relatedLinks)?void 0:q.map(function(u){return Object.assign({},u,{comment:k.get(u.sourceCommentNumber)})}))||[]}));this.issueReferences$=this.relatedLinks$.pipe(A(function(f){return f.filter(cFa)}));this.imageLinks$=this.relatedLinks$.pipe(A(function(f){return f.filter(ZEa)}));this.otherLinks$=this.relatedLinks$.pipe(A(function(f){return f.filter(dFa)}))};
Z8.\u0275fac=function(a){return new (a||Z8)(z(Us),z(GH),z(CI),z(cH))};
Z8.\u0275cmp=od({type:Z8,selectors:[["b-issue-resources"]],decls:3,vars:3,consts:[[1,"carded","bg-main"],[4,"ngIf"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks","paginate"],[1,"margin-bottom"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId","paginate"],["svgIcon","link",1,"icon-s"],[3,"links","issueId","paginate"]],template:function(a,b){a&1&&(D(0,"section",0),P(1,Zub,7,9,"ng-container",1),T(2,"async"),F());a&2&&(w(1),C("ngIf",V(2,1,b.issue$)))},dependencies:[Ev,
qA,b8,Z7,d8,Kv],styles:["[_nghost-%COMP%]{display:block;padding:8px}h4[_ngcontent-%COMP%]{margin:16px 0}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var $8=function(){};$8.\u0275fac=function(a){return new (a||$8)};$8.\u0275mod=qd({type:$8});$8.\u0275inj=ad({imports:[aD,P8,N8,Q8]});var a9=function(a,b){var c=this;this.brain=a;this.codeMentions=b;this.ROBOT_SLEEPING=P6b;this.id$=this.brain.id$.pipe(cf(cl));this.codeMentionsState$=this.id$.pipe(zf(function(d){return BCc(c.codeMentions,d)}))};a9.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};a9.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};a9.\u0275fac=function(a){return new (a||a9)(z(CI),z(o6))};
a9.\u0275cmp=od({type:a9,selectors:[["issue-todos"]],decls:3,vars:3,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/buganizer-guide/guides/issue-todos.md","target","_blank"],[3,"issueId","packageMentionSet","displayPackageName",4,"ngFor","ngForOf"],[1,"margin-top"],["target","_blank",
3,"href","click"],[3,"issueId","packageMentionSet","displayPackageName"]],template:function(a,b){a&1&&(D(0,"section",0),P(1,evb,3,3,"ng-container",1),T(2,"async"),F());a&2&&(w(1),C("ngIf",V(2,1,b.id$)))},dependencies:[Dv,Ev,r4,Kv],styles:["[_nghost-%COMP%]{display:block;padding:8px}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}[_nghost-%COMP%]     .bv2-package-mention-set{height:auto}[_nghost-%COMP%]     .bv2-package-mention-set li{white-space:nowrap;margin-bottom:4px}\n/*# sourceMappingURL=issue_todos.css.map */"]});var b9=function(a,b,c,d,e){this.cdr=a;this.pageTitle=b;this.userApi=c;this.paths=d;this.errorHandler=e;this.isLoading=!1;this.hotlists=[];this.createHotlistPath=this.paths.createHotlist()};b9.prototype.ngOnInit=function(){this.pageTitle.setTitle("All of my hotlists");this.fetchUserHotlists()};
b9.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;this.userApi.getUserHotlists().then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};b9.\u0275fac=function(a){return new (a||b9)(z(yD,2),z(lG),z(nH),z(xE),z(XF))};
b9.\u0275cmp=od({type:b9,selectors:[["list-hotlists-page"]],features:[lg([yD])],decls:8,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"gmat-button","no-visited-no-active",3,"href"],[1,"bv2-view"],[3,"large",4,"ngIf"],[3,"hotlists",4,"ngIf"],[3,"large"],[3,"hotlists"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Browse Hotlists"),F(),D(2,"div",1)(3,"a",2),Q(4," Create Hotlist "),F()(),D(5,"div",3),P(6,fvb,1,1,"b-spinner",4),P(7,gvb,1,1,"b-hotlist-grid",5),F());
a&2&&(w(3),C("href",b.createHotlistPath,re),w(3),C("ngIf",b.isLoading),w(1),C("ngIf",!b.isLoading))},dependencies:[Ev,xZ,MJ,Fz],encapsulation:2});var $Ec=new Set(["issueId","modifiedTime","createdTime"]),c9=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb){Y.call(this);var $a=this;this.cdr=a;this.routerEvents=b;this.window=c;this.bLocation=d;this.$log=e;this.issueApi=f;this.userApi=h;this.hotlistApi=k;this.activeSession=q;this.butterBar=u;this.analytics=x;this.appSearchState=y;this.issuePagination=E;this.userPreferencesManager=H;this.urlPreferences=J;this.gridPreferencesFetcher=O;this.paths=R;this.timeout=U;this.errorHandler=
Z;this.statusMessages=na;this.domSafe=oa;this.appEvents=wa;this.hotlistFridge=Da;this.issueFridge=Ga;this.batchIssueRelationshipsService=Ub;this.componentFridge=Vb;this.focusedRowIndex=this.displayColumns=null;this.isInitializing=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.searchResults=null;this.hotlistChoices=[];this.hotlistMap={};this.customFieldMap={};this.gridControls=this.cachedSort=null;this.issueColumnsInternal=[];this.metaColumns=[];this.sortPreferences=[];this.BASE_HOTKEYS=
[{keys:["j"],displayAs:"j",description:"Move to the next issue",onPress:function(){var ja;null==(ja=$a.resultsGrid)||H_a(ja)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var ja;null==(ja=$a.resultsGrid)||I_a(ja)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var ja;null==(ja=$a.resultsGrid)||Cnc(ja)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var ja;null==(ja=$a.resultsGrid)||
Enc(ja)}},{keys:[Vj("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var ja;null==(ja=$a.resultsGrid)||Fnc(ja,!0)}},{keys:[Vj("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var ja;null==(ja=$a.resultsGrid)||Fnc(ja,!1)}},{keys:[Wj("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var ja;null==(ja=$a.resultsGrid)||ja.selectAll()}},{keys:[Wj("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",
onPress:function(){var ja;null==(ja=$a.resultsGrid)||Anc(ja)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var ja;null==(ja=$a.gridControls)||QV(ja,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var ja;null==(ja=$a.gridControls)||QV(ja,Wk.DUPLICATE,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var ja;if(null!=(ja=$a.gridControls)&&ja.hasSelectedIssues()){var ya;null==(ya=ja.hotlistPicker)||ya.open()}}},
{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var ja;null==(ja=$a.gridControls)||Yhc(ja)}},{keys:["u",Vj("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return $a.refreshResults()}},{keys:[Wj("p","0"),Wj("p","1"),Wj("p","2"),Wj("p","3"),Wj("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(ja){$a.resultsGrid&&$a.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+ja}],issueIds:$a.resultsGrid.getSelectedIssues().map(function(ya){return ya.issueId})}])}},
{keys:["o","ENTER",zra("ENTER")],displayAs:"o / Enter",description:"Open the current issue",onPress:function(ja){var ya=c.document.activeElement;if(1===ja&&"A"===ya.tagName)if(ya.href)ja=$a.paths.getBaseUrl(),si(ya.href,ja)?$a.bLocation.url(ya.href.slice(ja.length)):$a.domSafe.openInNewTab(ya.href);else{var Ha;null==(Ha=$a.resultsGrid)||dZ(Ha)}else if(2===ja){var ab;null==(ab=$a.resultsGrid)||dZ(ab,{openInNewTab:!0})}else{var Ra;null==(Ra=$a.resultsGrid)||dZ(Ra)}}}]};W(c9,Y);
c9.prototype.ngOnInit=function(){var a=this;aFc(this);this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){a.fetchUserHotlists()}));this.routerEvents.routeUpdate.pipe(Af(this.destroyed$)).subscribe(function(){aFc(a)})};
var bFc=function(a){var b=["priority","type","title","assignee","status"];a.activeSession.isInternalSession()&&b.push("minSlo");b.push("issueId","modifiedTime");return b.map(Mi)};
c9.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];ki(d,c)||(d&&za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var aFc=function(a){return cFc(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?(dFc(a,a.searchResults.issues),eFc(a,a.searchResults.startIndex,a.searchResults.endIndex)):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})},dFc=function(a,b){var c;null==(c=a.issueSubscriptions)||c.unsubscribe();a.issueSubscriptions=new B.Subscription;b=l(b);for(c=b.next();!c.done;c=b.next())a.issueSubscriptions.add(a.issueFridge.watch(c.value.id).pipe(cf(cl),Af(a.destroyed$)).subscribe(function(d){var e;
return Ne(function(f){if(1==f.nextAddress)return a.searchResults?f.yield((0,B.firstValueFrom)(a.componentFridge.watch(d.snapshot[0].componentId,{trustUncertainMemory:!0})),3):f.jumpTo(2);if(2!=f.nextAddress){e=f.yieldResult;if(!e)return f.return();XWb(a.searchResults,[{issue:d,component:e}]);a.searchResults=a.searchResults.clone()}a.cdr.detectChanges();Se(f)})}))},fFc=function(a){return null!=a.window.document.activeElement&&a.window.document.activeElement!==a.window.document.body},gFc=function(a){var b,
c;return null!=(c=null==(b=a.window.document.activeElement)?void 0:b.classList.contains("search-box"))?c:!1},cFc=function(a){var b=Rj();fFc(a)&&gFc(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},eFc=function(a,b,c){var d=Rj();fFc(a)||hFc(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},iFc=function(a,b){var c=a.activeSession.getMaxAccurateSearchResults();b.numResults>c&&!b.isPreSort&&(b=to("Number of search results exceeds "+
c+" ; some matching issues may be omitted.",so("BR"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "),c={},c=so("A",(c.href="http://go/buganizer-faq#q-why-do-i-need-to-restrict-my-search-to-less-than-1000-results",c),"go/buganizer-faq"),c=to(so("BR"),"See ",c," for more details."),b=a.activeSession.isInternalSession()?to(b,c):b,SXb(a.butterBar,b))};g=c9.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Mi(a);if(d){var e=new Pi(d,"ASC"===b?"ASCENDING":"DESCENDING");Aa(this.sortPreferences,function(f){return ki(f.fieldId,e.fieldId)});!c||$Ec.has(a)?this.sortPreferences=[e]:this.sortPreferences=[e].concat(this.sortPreferences.slice(0,2));this.saveSortColumns(this.sortPreferences)}else this.$log.warn("WARNING: Invalid field name specified "+a)};
g.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"===a.fieldId.type?String(a.fieldId.customFieldId):oi(a.fieldId.type),direction:"ASCENDING"===a.direction?"ASC":"DESC"};ki(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.saveSortColumns=function(a){AZ(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=void 0===b?jFc:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(p(b),p(FUa(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Mi(b.name)});AZ(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):c&&c.shiftKey?kp(this.domSafe,a):this.bLocation.url(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var Gs=function(a,b,c){void 0!==b&&a.goToPage(b+c)};g=c9.prototype;g.refreshResults=function(){LF(this.issuePagination);return aFc(this)};
g.hasResults=function(){return this.searchResults&&0<this.searchResults.issues.length};
g.sendBulkEditRequest=function(a,b){var c=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){var d=!!a[0].actions[0].value;b=l(a[0].issueIds);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=void 0;null==(f=this.searchResults)||YWb(f,e,d)}this.cdr.detectChanges();WF(this.butterBar,"Saving changes...",0);return IH(this.issueFridge,a[0].issueIds,{markRead:d}).then(function(k){for(var q=l(a[0].issueIds),u=q.next();!u.done;u=q.next()){u=u.value;var x=void 0,
y=void 0;null==(x=c.searchResults)||YWb(x,u,void 0,null!=(y=k)?y:null)}WF(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(k){for(var q=l(a[0].issueIds),u=q.next();!u.done;u=q.next()){u=u.value;var x=void 0;null==(x=c.searchResults)||YWb(x,u)}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=gHa(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var h={bulkEditOps:a};WF(this.butterBar,
"Saving changes...",0);return 1===a.length&&1===a[0].actions.length&&"parentId"===a[0].actions[0].fieldName?this.batchIssueRelationshipsService.bulkEdit(a[0]).then(function(k){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var q=l(c.searchResults.issues.entries()),u=q.next();!u.done;u=q.next()){var x=l(u.value);u=x.next().value;x=x.next().value;k.finishedIssues[x.issueId]&&(u=c.searchResults.issues[u],mua(u,k.finishedIssues[x.issueId],null),c.loadHotlists(u),Object.assign(c.customFieldMap,
u.customFieldMap))}}x=a[0];q=k.notFinishedIssueIds;u=String(x.actions[0].value);x=x.actions[0].actionType;if("ADD"!==x&&"REMOVE"!==x)throw Error("re");q.length?(k="Failed to update issue(s) "+q.join(", ")+".",c.butterBar.showWarning(k),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+q.length)):WF(c.butterBar,("ADD"===x?"Added child issue(s) to parent ["+u+"]":"Removed child issue(s) from parent ["+u+"]")+" on "+String(Object.keys(k.finishedIssues).length)+" issues.");c.cdr.detectChanges()}).catch(function(k){c.errorHandler.errorHandler(null,
k)}):this.issueApi.issueBulkEdit(h,b).then(function(k){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var q=l(c.searchResults.issues.entries()),u=q.next();!u.done;u=q.next()){var x=l(u.value);u=x.next().value;x=x.next().value;k.affectedIssues[x.issueId]&&(x=k.affectedIssues[x.issueId],u=c.searchResults.issues[u],mua(u,x,k.componentMap[sa(x.snapshot).componentId]),c.loadHotlists(u),Object.assign(c.customFieldMap,u.customFieldMap))}}k.errors&&k.errors.length?(q="Failed to update issue(s) "+
(Opa(k.errors,"issueId").join(", ")+"."),c.butterBar.showWarning(q),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=H4b(c.statusMessages,h,c.customFieldMap))?WF(c.butterBar,k):WF(c.butterBar,"Saved "+hHa(h.bulkEditOps).length+" issue(s).");c.cdr.detectChanges()}).catch(function(k){c.errorHandler.errorHandler(null,k)})};
g.loadHotlists=function(a){var b=this;a=l(a?[a]:this.searchResults?this.searchResults.issues:[]);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.hotlistId)return;c=l(c.hotlistId);for(var d=c.next();!d.done;d=c.next())d=d.value,this.hotlistMap[d]||this.hotlistApi.get(d).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e)})}this.cdr.detectChanges()};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");WF(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);WF(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback;a=a.errorCallback;WF(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.exportCsv=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"exportCsv");AL(this.domSafe,this.getCsvUrl())};
var kFc=function(a,b){a.userPreferencesManager.save({resultsPerPage:b}).pipe(Af(a.destroyed$)).subscribe(function(){a.resultsPerPage=b;AZ(a.urlPreferences,{page:1});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"resultsPerPageSave",b.toString());a.refreshResults();a.cdr.detectChanges()},function(c){Ck(c)})},hFc=function(a,b,c){var d=a.issuePagination.getFocusedIssue();a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{HXb(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");
e&&(e.scrollTop=0)}a.cdr.detectChanges()})},ovb=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
Qh.Object.defineProperties(c9.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){ki(this.issueColumnsInternal,a)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification",rAa(this.issueColumnsInternal.map(function(b){return b.toString()}),a.map(function(b){return b.toString()}))),this.issueColumnsInternal=a,a=this.issueColumns.slice(this.metaColumns.length),this.saveColumns(a))}}});var jFc=[eZ,fZ,gZ];
c9.\u0275fac=function(a){return new (a||c9)(z(yD),z(gE),z(Window),z(wE),z(dE),z(AF),z(nH),z(mF),z(Us),z(VF),z(zH),z(mK),z(JF),z(iE),z(zZ),z(BZ),z(xE),z(rD),z(XF),z(QN),z(zL),z(DF),z(rH),z(GH),z(T_),z(OG))};c9.\u0275dir=sd({type:c9,features:[Jf]});var kvb=function(){return{q:"status:open"}},d9=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,$a,ja,ya,Ha,ab){c9.call(this,a,b,c,d,f,h,k,q,e,u,x,y,E,H,J,O,R,U,Da,Z,na,Ub,$a,ja,Ha,ab);this.hotkeys=oa;this.pageTitle=wa;this.routePerformance=Ga;this.element=Vb;this.currentTracker=ya;this.ANALYTICS_CATEGORY=xp.LIST_ISSUES;this.isLoading=!0;this.showHotlists=!1;this.SPACE_EMPTY_STATE=S6b};W(d9,c9);d9.\u0275dir=c9.\u0275dir;g=d9.prototype;
g.ngOnInit=function(){var a=this;c9.prototype.ngOnInit.call(this);this.subscriptions.add(rE(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
g.getIssues=function(){var a=this,b=this.bLocation.search().warning;b&&(Array.isArray(b)&&(b=b[0]),this.butterBar.showWarning(b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",nK(this.appSearchState,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,AZ(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);nK(this.appSearchState,
this.query);b=D0b(this.appSearchState);if(0<b)return QWb(this.bLocation,this.paths.viewHotlist(b)),AZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=E0b(this.appSearchState);if(0<b)return QWb(this.bLocation,this.paths.viewSavedSearch(b)),AZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add((0,B.concat)((0,B.timer)(0).pipe(tia()),JUa("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){Spc(a.routePerformance,"issue-list-w-results")};requestAnimationFrame(c);setTimeout(c)}));return this.doSearch().finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(){var a=this,b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:bFc(this)}),c=b.searchPreferences.then(function(f){f=li(f);f.query=a.computeQuery(f);f.returnUrl=a.bLocation.url();f.trackerIds=a.appSearchState.currentTrackerScope;return KF(a.issuePagination,f)}),d;(null==(d=this.query)?0:d.includes("teamid:"))&&this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"searchByTeam");var e;(null==(e=this.query)?0:e.includes("componentid:"))&&
this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"searchByComponent");c.then(function(f){iFc(a,f)}).catch(function(f){"number"===typeof f?AZ(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return yo({searchResultsPage:c,displayColumns:b}).then(function(f){var h=f.searchResultsPage;a.searchResults=a.processSearchResults(h);a.page=h.params.page;a.sortPreferences=h.params.sortColumns||[];a.cdr.detectChanges();a.loadHotlists();f=f.displayColumns.join("|");
h=a.sortPreferences.join("|");a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"issueSearch",f+" ("+h+")")})};g.processSearchResults=function(a){return a};g.computeQuery=function(){return this.query};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Mi(b.name)});sWb(this.userPreferencesManager,GUa(a)).pipe(Af(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.appSearchState.currentQuery===oK(this.currentUserEmail)?this.pageTitle.setTitle("Assigned to me"):this.appSearchState.currentQuery==="cc:"+this.currentUserEmail?this.pageTitle.setTitle("CC'ed to me"):this.appSearchState.currentQuery==="reporter:"+this.currentUserEmail?this.pageTitle.setTitle("Reported by me"):this.appSearchState.currentQuery===C0b(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
g.saveSortColumns=function(a){var b=this;this.isLoading=!0;a=a.map(function(c){return{column:c.fieldId,order:c.direction}});this.userPreferencesManager.saveSortColumns(a).pipe(Af(this.destroyed$)).subscribe(function(){AZ(b.urlPreferences,{page:1,sortColumns:null});b.refreshResults().finally(function(){b.isLoading=!1;b.cdr.detectChanges();ovb()})})};g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
d9.\u0275fac=function(a){return new (a||d9)(z(yD),z(gE),z(qF),z(wE),z(Us),z(dE),z(AF),z(nH),z(mF),z(VF),z(zH),z(mK),z(JF),z(iE),z(zZ),z(BZ),z(xE),z(rD),z(QN),z(zL),z(qE),z(lG),z(XF),z(X_),z(DF),z(ae),z(rH),z(GH),z(jG),z(T_),z(OG))};
d9.\u0275cmp=od({type:d9,selectors:[["list-issues-page"]],features:[lg([yD]),Jf],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["id","no-results","class","bv2-view-loading layout-centered-column gap","tabindex","-1",3,"bFocus",4,"ngIf"],["class",
"bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],["id","no-results","tabindex","-1",1,"bv2-view-loading","layout-centered-column","gap",3,"bFocus"],["aria-hidden","true","alt","",1,"empty-state-img",3,"src"],[4,"ngIf","ngIfElse"],["noQuery",""],["routerLink","/issues",3,"queryParams",4,"ngIf","ngIfElse"],["noTracker",""],["routerLink","/issues",3,"queryParams"],["href","https://developers.google.com/issue-tracker/concepts/searches","target","_blank"],[1,"bv2-grid-container"],[3,"searchResults",
"focusedRowIndex","columns","enableColumnSaving","sort","enableSidebar","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Issue search results"),F(),D(2,"div",1)(3,"b-grid-controls",2),L("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",
function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),F(),D(4,"div",3)(5,"b-pagination",4),L("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return kFc(b,c.option)}),F()()(),D(6,"div",5),P(7,hvb,4,1,"div",6),P(8,nvb,9,8,"div",7),P(9,pvb,2,6,"div",8),F());a&2&&(w(3),C("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),w(2),C("searchResults",b.searchResults),w(1),Nf("aria-busy",b.isLoading),w(1),C("ngIf",b.isLoading),w(1),
C("ngIf",!b.isLoading&&!b.hasResults()),w(1),C("ngIf",!b.isLoading&&b.hasResults()))},dependencies:[jZ,i_,bZ,Ev,MJ,LW,YD,Kv],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}/*# sourceMappingURL=list_issues.css.map */"]});var e9=function(){};e9.\u0275fac=function(a){return new (a||e9)};e9.\u0275mod=qd({type:e9});e9.\u0275inj=ad({imports:[wZ,k_,f_,dJ,aD,AK,MW,bE]});var f9=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,$a,ja,ya,Ha,ab,Ra){d9.call(this,a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,ja,ya,Ha,ab,Ra);this.issueLru=$a;this.ANALYTICS_CATEGORY="recentIssues";this.recentIds=Array.from(this.issueLru.viewed.keys());this.initialLoad=!0};W(f9,d9);f9.\u0275dir=d9.\u0275dir;
f9.prototype.ngOnInit=function(){d9.prototype.ngOnInit.call(this);this.pageTitle.setTitle("Recent Issues");this.appSearchState.clear();this.initialLoad=!0};f9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;return 0===this.recentIds.length?(this.isLoading=!1,Promise.resolve()):this.doSearch().finally(function(){a.isLoading=!1;a.initialLoad=!1;a.cdr.detectChanges()})};
f9.prototype.computeQuery=function(a){a=a.resultsPerPage;var b=this.recentIds,c=b.length;c>a&&(b=b.slice(c-a));return b.map(function(d){return"id:"+d}).join("|")};f9.prototype.processSearchResults=function(a){this.initialLoad&&(a.params.sortColumns=[]);var b;null!=(b=a.params.sortColumns)&&b.length||(a.issues=tvb(this.recentIds,a.issues));return a};
f9.\u0275fac=function(a){return new (a||f9)(z(yD),z(gE),z(qF),z(wE),z(Us),z(dE),z(AF),z(nH),z(mF),z(VF),z(zH),z(mK),z(JF),z(iE),z(zZ),z(BZ),z(xE),z(rD),z(QN),z(zL),z(qE),z(lG),z(XF),z(X_),z(DF),z(ae),z(pK),z(rH),z(GH),z(jG),z(T_),z(OG))};
f9.\u0275cmp=od({type:f9,selectors:[["list-issues-recent"]],features:[lg([yD]),Jf],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["id","no-results","class","bv2-view-loading",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],
["id","no-results",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Recent Issues"),F(),D(2,"div",1)(3,"b-grid-controls",2),L("init",function(d){return b.gridControls=d})("onRefresh",function(){return b.refreshResults()})("onSave",function(d){return b.sendBulkEditRequest(d.bulkEditOps)})("onCreateHotlist",
function(d){return b.createHotlist(d)})("onLoadHotlist",function(d){return b.loadHotlist(d)})("onExportCsv",function(){return b.exportCsv()}),F(),D(4,"div",3)(5,"b-pagination",4),L("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return kFc(b,d.option)}),F()()(),D(6,"div",5),P(7,qvb,3,0,"div",6),P(8,rvb,2,0,"div",7),P(9,svb,2,5,"div",8),F());if(a&2){var c;w(3);C("grid",null!==(c=b.resultsGrid)&&void 0!==c?c:void 0)("hotlistChoices",b.hotlistChoices);w(2);C("searchResults",
b.searchResults);w(1);Nf("aria-busy",b.isLoading);w(1);C("ngIf",b.isLoading);w(1);C("ngIf",!b.isLoading&&!b.hasResults());w(1);C("ngIf",!b.isLoading&&b.hasResults())}},dependencies:[MJ,jZ,i_,bZ,Ev],encapsulation:2});var g9=function(a,b,c,d,e,f){this.cdr=a;this.pageTitle=b;this.paths=c;this.sloApi=d;this.errorHandler=e;this.activeSession=f;this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=this.paths.createSlo();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};g9.prototype.ngOnInit=function(){this.sloEnabled&&(this.pageTitle.setTitle("Manage SLOs"),lFc(this))};
var lFc=function(a){a.isLoading=!0;a.sloApi.getOwnedSlos().then(function(b){a.activeSlos=b.filter(function(c){return!c.isArchived});a.archivedSlos=b.filter(function(c){return c.isArchived});a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g9.\u0275fac=function(a){return new (a||g9)(z(yD,2),z(lG),z(xE),z(vW),z(XF),z(Us))};
g9.\u0275cmp=od({type:g9,selectors:[["list-slos-page"]],features:[lg([yD])],decls:8,vars:5,consts:[[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"gmat-button","no-visited-no-active",3,"href"],[1,"bv2-view"],["class","padded-sides",4,"ngIf"],[3,"large",4,"ngIf"],[4,"ngIf"],[1,"padded-sides"],[1,"muted"],[3,"large"],["class","slos-note",4,"ngIf"],[3,"slos",4,"ngIf"],[1,"slos-note"],[3,"slos"],[1,"unstyled-button","clickable-row",2,"width","100%",3,"click"],[1,"margined"],[1,"icon-s","vertical-centered",
3,"svgIcon"],["class","conditional-slo-grid",4,"ngIf"],[1,"conditional-slo-grid"],["class","muted padded",4,"ngIf"],[1,"muted","padded"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"a",1),Q(2," Create SLO "),F()(),D(3,"div",2),P(4,uvb,5,0,"div",3),P(5,vvb,1,1,"b-spinner",4),P(6,yvb,3,2,"ng-container",5),P(7,Cvb,6,5,"ng-container",5),F());a&2&&(w(1),C("href",b.createSloPath,re),w(3),C("ngIf",b.sloEnabled),w(1),C("ngIf",b.isLoading),w(1),C("ngIf",!b.isLoading),w(1),C("ngIf",!b.isLoading))},dependencies:[Ev,
qA,Fz,O_,MJ],encapsulation:2});var mFc=function(a){this.internalArray_=m(a)};W(mFc,X);g=mFc.prototype;g.getAuthor=function(){return Fi(this,Bi,1)};g.setAuthor=function(a){oj(this,Bi,1,a)};g.getTimestamp=function(){return Fi(this,gj,2)};g.setTimestamp=function(a){return oj(this,gj,2,a)};g.hasTimestamp=function(){return Zi(this,gj,2)};g.getAdd=function(){return Fi(this,Tm,3)};g.getRemove=function(){return Fi(this,Tm,4)};g.getAddMask=function(){return Fi(this,AC,5)};g.getRemoveMask=function(){return Fi(this,AC,6)};var h9=function(a){this.internalArray_=m(a,0,h9.messageId)};W(h9,X);h9.prototype.getUpdatesList=function(){return Ji(this,mFc,1)};h9.repeatedFields_=[1];h9.messageId="b.ComponentHistory";var i9=function(a,b){this.executor=b;this.componentHistoriesCache=a.get("component_histories-second-level-cache")||a.create("component_histories-second-level-cache",{capacity:25})};i9.prototype.get=function(a){var b=this.componentHistoriesCache.get(String(a));return b?b:this.componentHistoriesCache.put(String(a),this.executor.get({url:"action/component_updates/"+a,responseConstructor:h9}).then(wxa))};i9.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};
i9.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(String(a))};i9.\u0275fac=function(a){return new (a||i9)(n(KE),n(uD))};i9.\u0275prov=$c({token:i9,factory:i9.\u0275fac,providedIn:"root"});var j9=function(){};j9.prototype.ngOnInit=function(){};j9.\u0275fac=function(a){return new (a||j9)};
j9.\u0275cmp=od({type:j9,selectors:[["slo-inheritance-breadcrumbs"]],inputs:{componentPath:"componentPath",teamPath:"teamPath"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"teamPath"],["componentPathsLinkTo","settings",3,"componentPathInfo"]],template:function(a,b){a&1&&(P(0,Dvb,4,1,"ng-container",0),P(1,Evb,4,1,"ng-container",0));a&2&&(C("ngIf",b.teamPath),w(1),C("ngIf",b.componentPath))},dependencies:[Ev,vP,p_],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});var k9=function(a,b,c,d){Y.call(this);var e=this;this.documentationLinks=a;this.recommendationsService=b;this.cachedUserAccess=c;this.confirmationDialogService=d;this.helpLink="http://goto.google.com/buganizer-ml";this.draftSettings$=new B.BehaviorSubject(void 0);this.hasUnsavedChanges=this.draftSettings$.pipe(A(function(f){return!!f&&!ki(e.savedSettings,f)}),mf());this.isSaving=new Yu;this.isAdmin=!1};W(k9,Y);k9.\u0275dir=Y.\u0275dir;
k9.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.recommendationsService.executor.get({url:"action/components/"+this.componentId+"/recommendationSettings",responseConstructor:iU}).pipe(A(ERa)).subscribe(function(c){a.savedSettings=c;a.setDraft(a.savedSettings)}));var b=vn("COMPONENT",this.componentId);uG(this.cachedUserAccess,"admin",b).then(function(c){a.isAdmin=c})};
var Fvb=function(a){var b,c;return Ne(function(d){if(1==d.nextAddress)return b={},d.yield(AJ(a.confirmationDialogService,{title:"Opt into data collection?",content:to(vGb("By opting in, Buganizer will collect data in this component to improve ML features.\n\nIt can take a few months for ML features to show up due to data processing time. "),so("A",(b.href=a.helpLink,b.target="_blank",b),"Learn more")),confirmButtonText:"Opt in",cancelButtonText:"Cancel"}),2);c=d.yieldResult;if(!c)return d.return();
a.setDraft({optedOutFromDataCollection:!1});return d.yield(a.save(),0)})},Hvb=function(a){var b,c;return Ne(function(d){if(1==d.nextAddress)return b={},d.yield(AJ(a.confirmationDialogService,{title:"Opt out from data collection?",content:to(vGb("ML features will not be available once you opt out.\n\nIf you later decide to opt back in, it can take a few months for ML features to be available again. "),so("A",(b.href=a.helpLink,b.target="_blank",b),"Learn more")),confirmButtonText:"Opt out",cancelButtonText:"Cancel",
isDestructive:!0}),2);c=d.yieldResult;if(!c)return d.return();a.setDraft({optedOutFromDataCollection:!0,duplicateAssistanceEnabled:!1});return d.yield(a.save(),0)})};
k9.prototype.save=function(){var a=this;return Ne(function(b){if(1==b.nextAddress){if(ki(a.savedSettings,a.draftSettings))return b.return();a.isSaving.emit(!0);return b.yield((0,B.firstValueFrom)(Qgc(a.recommendationsService,a.draftSettings)).finally(function(){a.isSaving.emit(!1)}),2)}a.savedSettings=b.yieldResult;a.setDraft(a.savedSettings);Se(b)})};k9.prototype.revert=function(){this.setDraft(this.savedSettings)};
var Jvb=function(a){if(!a.isAdmin)return"Only component admins can change this setting.";var b;return(null==(b=a.savedSettings)?0:b.optedOutFromDataCollection)?"Opt into data collection to enable ML features":""};k9.prototype.setDraft=function(a){a||this.draftSettings$.next(void 0);this.draftSettings$.next(Object.assign({},this.draftSettings,a))};
Qh.Object.defineProperties(k9.prototype,{draftSettings:{configurable:!0,enumerable:!0,get:function(){return this.draftSettings$.value}},isSaving$:{configurable:!0,enumerable:!0,get:function(){return this.isSaving}}});k9.\u0275fac=function(a){return new (a||k9)(z(yL),z(mU),z(sG),z(zJ))};
k9.\u0275cmp=od({type:k9,selectors:[["recommendation-settings"]],inputs:{componentId:"componentId"},outputs:{hasUnsavedChanges:"hasUnsavedChanges",isSaving:"isSaving"},features:[Jf],decls:1,vars:1,consts:[["class","flex-kids-y gap-s",4,"ngIf"],[1,"flex-kids-y","gap-s"],[4,"ngIf","ngIfElse"],["optedIn",""],["name","duplicate-assistance",1,"duplicate-assistance",3,"disabled","checked","matTooltip","change"],["id","ml-features-subtitle",1,"muted"],[1,"link-button","keep-focus-ring",3,"disabled","click"],
[3,"matTooltip"],["target","_blank","aria-describedby","ml-features-subtitle",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&P(0,Kvb,9,7,"div",0);a&2&&C("ngIf",null==b.savedSettings?null:b.savedSettings.showSettings)},dependencies:[Ev,PP,FB,Kv],styles:["h4[_ngcontent-%COMP%]{margin:0}\n/*# sourceMappingURL=recommendation_settings.css.map */"]});var l9=function(){};l9.\u0275fac=function(a){return new (a||l9)};l9.\u0275mod=qd({type:l9});l9.\u0275inj=ad({imports:[aD,QP,FC]});var Pvb=function(a){this.internalArray_=m(a)};W(Pvb,X);var m9=function(a){this.internalArray_=m(a,0,m9.messageId)};W(m9,X);m9.repeatedFields_=[1];m9.messageId="b.BatchGroupMetadataResult";var n9=function(a,b){var c=this;this.groupMetadataResources=a;this.bulkGetter=b.adapt(function(d){return c.groupMetadataResources.bulkGet(d).then(function(e){var f=Lvb(e);return wEb(d,function(h){return f[h]||null})})})};n9.prototype.get=function(a){return this.bulkGetter.get(a).then(function(b){return null!==b?b:{groupEmail:a,approximateSize:0,sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"}})};n9.\u0275fac=function(a){return new (a||n9)(n(o9),n(sD))};
n9.\u0275prov=$c({token:n9,factory:n9.\u0275fac,providedIn:"root"});var o9=function(a){this.executor=a};o9.prototype.bulkGet=function(a){a=[].concat(p(new Set(a)));a=un(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:m9}).then(Qvb)};o9.\u0275fac=function(a){return new (a||o9)(n(uD))};o9.\u0275prov=$c({token:o9,factory:o9.\u0275fac,providedIn:"root"});var Rvb=[{field:"admins",accessor:function(a){return a.admins}},{field:"editors",accessor:function(a){return a.editors}},{field:"appenders",accessor:function(a){return a.appenders}},{field:"readers",accessor:function(a){return a.readers}},{field:"restrictedReaders",accessor:function(a){return a.restrictedReaders}},{field:"restrictedPlusReaders",accessor:function(a){return a.restrictedPlusReaders}}];var p9=function(a,b,c,d){var e=this;this.activeSession=a;this.confirmationDialogService=b;this.documentationLinks=c;this.groupMetadata=d;this.componentReaders=[];this.enableComponentAutomationCheck=this.enableRostersChecks=!1;this.isPublic=function(){return pp(e.component)};this.hasUnsavedAccessLimitChanges=function(){return e.originalComponent&&e.component?e.originalComponent.accessLimit.accessLevel!==e.component.accessLimit.accessLevel:!1};this.performAccessLimitCheck=function(){return new Promise(function(f){e.hasUnsavedAccessLimitChanges()&&
"INTERNAL"===e.component.accessLimit.accessLevel?e.confirmationDialogService.open({title:"Component Visibility Changed",content:Uo("You are about to change the component visibility to Google internal for this component. Make sure your changes are correct -- if this component has any issues, you will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){f(!0)},onDismiss:function(){f(!1)}}):f(!0)})};this.performDeletedAccountsCheck=function(){return new Promise(function(f){e.componentReaders.includes("GROUP:nobody@google.com")?
e.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Uo('"nobody@google.com" was detected, this is usually the result of an account being deleted that was already part of the access policy. It can be found in the following fields: '+[e.componentAccessPolicyUnderEdit.admins.includes("GROUP:nobody@google.com")?'"Component Admins"':null,e.componentAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Create Issues"':null,e.issueDefaultAccessPolicyUnderEdit.admins.includes("GROUP:nobody@google.com")?
'"Issue Admins"':null,e.issueDefaultAccessPolicyUnderEdit.editors.includes("GROUP:nobody@google.com")?'"Edit Issues"':null,e.issueDefaultAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Comment on Issues"':null,e.issueDefaultAccessPolicyUnderEdit.readers.includes("GROUP:nobody@google.com")?'"View Issues"':null,e.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("GROUP:nobody@google.com")?'"View restricted+ content"':null,e.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("GROUP:nobody@google.com")?
'"View restricted content"':null].filter(function(h){return!!h}).join(", ")+". Do you want to proceed?"),onConfirm:function(){f(!0)},onDismiss:function(){f(!1)}}):f(!0)})};this.performAdminAccessRemovalCheck=function(){return new Promise(function(f){awb(e.activeSession.getUserEmail(),e.componentFlattenedAccessPolicy,e.componentAccessPolicyUnderEdit)?e.confirmationDialogService.open({title:"Component Administrators Changed",content:Uo("You are about to change the administrator privileges for this component. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),
onConfirm:function(){f(!0)},onDismiss:function(){f(!1)}}):f(!0)})};this.performRestrictedPlusGroupRemovalCheck=function(){return new Promise(function(f){$vb(e.issueDefaultFlattenedAccessPolicy,e.issueDefaultAccessPolicyUnderEdit)?e.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Uo("You are about to remove Restricted+ reader permission for a group. You will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){f(!0)},onDismiss:function(){f(!1)}}):
f(!0)})};this.retrieveGroupMetadata=function(f){f=Co(f);return void 0!==f.group&&f.group.emailAddress?e.groupMetadata.get(f.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})};this.evaluateNewGroups=function(){var f=Tj([].concat(p(ti(e.componentAccessPolicyUnderEdit.admins,e.componentFlattenedAccessPolicy.admins)),p(ti(e.issueDefaultAccessPolicyUnderEdit.admins,e.issueDefaultFlattenedAccessPolicy.admins)),p(ti(e.issueDefaultAccessPolicyUnderEdit.editors,
e.issueDefaultFlattenedAccessPolicy.editors)),p(ti(e.issueDefaultAccessPolicyUnderEdit.appenders,e.issueDefaultFlattenedAccessPolicy.appenders)),p(ti(e.issueDefaultAccessPolicyUnderEdit.readers,e.issueDefaultFlattenedAccessPolicy.readers)),p(ti(e.issueDefaultAccessPolicyUnderEdit.restrictedReaders,e.issueDefaultFlattenedAccessPolicy.restrictedReaders)),p(ti(e.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,e.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))));return Promise.all(f.map(function(h){return e.retrieveGroupMetadata(h)}))};
this.performAddedLargeOrOpenGroupCheck=function(){return e.enableRostersChecks?e.evaluateNewGroups().then(function(f){var h=Vvb(f);f=Zvb(f);if(0===h.size&&0===f.size)return Promise.resolve(!0);var k=Wvb(h.size,f.size);h=Xvb(h);f=Yvb(f);var q=to(h,h===Hs?Hs:so("BR"),f);h={};q=to(q,so("P",{},to("Please review the ",so("A",(h.href=R1b(e.documentationLinks)+"#fully-public-component",h.target="_blank",h),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));
return new Promise(function(u){e.confirmationDialogService.open({title:k,content:q,onConfirm:function(){u(!0)},onDismiss:function(){u(!1)},confirmButtonText:"Add Group"})})}):Promise.resolve(!0)};this.performAddedNewInternalAliasesCheck=function(){return new Promise(function(f){if(e.isPublic()&&Uvb(e.issueDefaultAccessPolicyUnderEdit,e.issueDefaultFlattenedAccessPolicy)){var h={};h=to(so("P",{},"You are about to give a broad category of users permissions on a public component."),so("P",{},to("Please review the ",
so("A",(h.href=R1b(e.documentationLinks)+"#recommended-access-settings",h.target="_blank",h),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));e.confirmationDialogService.open({title:"Adding an broad category of users to a public component",content:h,onConfirm:function(){f(!0)},onDismiss:function(){f(!1)},confirmButtonText:"Add Group Alias"})}else f(!0)})};this.performChangedImplicitAccessCheck=function(){e.implicitAccess={getValue:function(){return e.componentAccessPolicyUnderEdit?
"ALLOW"===e.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return e.componentFlattenedAccessPolicy?"ALLOW"===e.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(k){e.componentAccessPolicyUnderEdit&&(e.componentAccessPolicyUnderEdit=Object.assign({},e.componentAccessPolicyUnderEdit,{implicitAccess:k?"ALLOW":"DENY"}))}};var f={},h=so("A",(f.href=wo(e.documentationLinks)+"#expanded-access",f),"Learn more.");return new Promise(function(k){e.implicitAccess.getValue()===
e.implicitAccess.getSavedValue()?k(!0):e.implicitAccess.getValue()?e.confirmationDialogService.open({title:"Turn on expanded access for component "+e.component.componentId+"?",content:to("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",h),onConfirm:function(){k(!0)},onDismiss:function(){k(!1)}}):e.confirmationDialogService.open({title:"Turn off expanded access for component "+e.component.componentId+"?",content:to("Some users may lose the ability to edit or comment on issues in this component. ",
h),onConfirm:function(){k(!0)},onDismiss:function(){k(!1)}})})};this.getAddedAutomationInPolicyChange=function(){var f=[].concat(p(Svb(e.issueDefaultFlattenedAccessPolicy,e.issueDefaultAccessPolicyUnderEdit)),p(Svb(e.componentFlattenedAccessPolicy,e.componentAccessPolicyUnderEdit))),h=new Set;f=l(f);for(var k=f.next();!k.done;k=f.next()){k=l(k.value.addedPrincipals);for(var q=k.next();!q.done;q=k.next())q=Co(q.value),(Tpa(q)?vza(q.user.emailAddress):void 0!==q.group&&vza(q.group.emailAddress))&&h.add(q)}return[].concat(p(h))};
this.performAutomationUserAccessCheck=function(){if(!e.enableComponentAutomationCheck)return Promise.resolve(!0);var f=e.getAddedAutomationInPolicyChange();return new Promise(function(h){if(f.length){var k={};k=so("A",(k.href=Q1b(e.documentationLinks),k)," automation account documentation");e.confirmationDialogService.open({title:"Adding automation accounts",content:to(Uo("You are adding automation accounts to the ACL for this component. All Googlers are entrusted with power and responsibility as stewards of Google's data. Please see the"),
so("wbr"),k,Uo("."),so.apply(fh,["OL",{}].concat(p(f.map(function(q){if(Tpa(q)){var u;return so("LI",{},Uo(null!=(u=q.user.emailAddress)?u:""))}if(void 0!==q.group){var x;return so("LI",{},Uo(null!=(x=q.group.emailAddress)?x:""))}throw Error("Ve`"+JSON.stringify(q));})))),so("BR",{}),Uo("Are you sure you wish to allow automation to access data in this component?")),onConfirm:function(){h(!0)},onDismiss:function(){h(!1)}})}else h(!0)})};this.runValidation=function(f){var h,k,q;return Ne(function(u){switch(u.nextAddress){case 1:h=
l(f),k=h.next();case 2:if(k.done){u.jumpTo(4);break}q=k.value;return u.yield(q(),5);case 5:if(!u.yieldResult)return u.return(!1);k=h.next();u.jumpTo(2);break;case 4:return u.return(!0)}})};this.enableRostersChecks=$C(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=$C(this.activeSession,"enableComponentAutomationCheck")},nFc=function(a,b){var c=b.component,d=b.originalComponent,e=b.componentReaders,f=b.componentAccessPolicyUnderEdit,h=b.componentFlattenedAccessPolicy,
k=b.issueDefaultAccessPolicyUnderEdit,q=b.issueDefaultFlattenedAccessPolicy,u,x;return Ne(function(y){if(1==y.nextAddress)return a.component=c,a.originalComponent=d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=f,a.componentFlattenedAccessPolicy=h,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=q,u=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,
a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],y.yield(a.runValidation(u),2);x=y.yieldResult;return y.return(x)})};p9.\u0275fac=function(a){return new (a||p9)(n(Us),n(zJ),n(yL),n(n9))};p9.\u0275prov=$c({token:p9,factory:p9.\u0275fac});var q9=function(a){Y.call(this);this.principalTypes=a;this.componentReaders=[];this.templates=[]};W(q9,Y);q9.\u0275dir=Y.\u0275dir;
q9.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(p(this.componentReaders))),d=new Set([].concat(p(a.admins),p(a.inheritedAdmins)));a=new Set([].concat(p(d),p(a.appenders)));var e=new Set([].concat(p(b.admins))),f=new Set([].concat(p(e),p(b.editors))),h=new Set([].concat(p(f),p(b.appenders))),k=new Set([].concat(p(b.restrictedPlusReaders))),q=new Set([].concat(p(k),p(b.restrictedReaders)));b=new Set([].concat(p(q),p(h),p(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(p(d)).map(Is)},{permission:"Create Issues",principals:[].concat(p(a)).map(Is)},{permission:"Admin Issues",principals:[].concat(p(e)).map(Is)},{permission:"Edit Issues",principals:[].concat(p(f)).map(Is)},{permission:"Comment on Issues",principals:[].concat(p(h)).map(Is)},{permission:"View Issues",principals:[].concat(p(b)).map(Is)},{permission:"View Components",principals:[].concat(p(c)).map(Is)},{permission:"View Restricted",principals:[].concat(p(q)).map(Is)},
{permission:"View Restricted+",principals:[].concat(p(k)).map(Is)}];oFc(this,this.templates)};
var oFc=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=l(c.value.principals);for(var d=c.next(),e={};!d.done;e={principal$jscomp$12:e.principal$jscomp$12},d=c.next())e.principal$jscomp$12=d.value,"ALIAS"===e.principal$jscomp$12.principalType?e.principal$jscomp$12.detailedUserType="NO_DETAILED_TYPE":wD(a.principalTypes,e.principal$jscomp$12.value,!0).then(function(f){return function(h){f.principal$jscomp$12.detailedUserType=h.detailedUserType}}(e))}};
q9.\u0275fac=function(a){return new (a||q9)(z(vD))};
q9.\u0275cmp=od({type:q9,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},features:[Jf,Fd],decls:7,vars:1,consts:[[1,"permissions-column-headers"],["scope","col"],[4,"ngFor","ngForOf"],[1,"permission-row"],["scope","row"],[3,"value","detailedUserType","principalType","accessLevel","displayText",4,"ngFor","ngForOf"],[3,"value","detailedUserType","principalType",
"accessLevel","displayText"]],template:function(a,b){a&1&&(D(0,"table")(1,"tr",0)(2,"th",1),Q(3,"Permission"),F(),D(4,"th",1),Q(5,"Users With Permission"),F()(),P(6,cwb,6,2,"ng-container",2),F());a&2&&(w(6),C("ngForOf",b.templates))},dependencies:[Dv,tZ],styles:["table[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:10px}.permissions-column-headers[_ngcontent-%COMP%]{display:none}.permission-row[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.permission-row[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:auto;padding:8px;font-size:.8125rem;text-align:left}.permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}b-contact-chip[_ngcontent-%COMP%]{margin-right:5px;margin-top:5px}/*# sourceMappingURL=permissions_view.css.map */"]});var pFc=Object.values({ISSUE_ADMIN:"issueAdmin",ISSUE_EDITOR:"issueEditor",ISSUE_APPENDER:"issueAppender",ISSUE_READER:"issueReader",ISSUE_RESTRICTED_READER:"issueRestrictedReader",ISSUE_RESTRICTED_PLUS_READER:"issueRestrictedPlusReader",COMPONENT_ADMIN:"componentAdmin",COMPONENT_APPENDER:"componentAppender",COMPONENT_READER:"componentReader"}),r9={},qFc=(r9.issueAdmin=new Set(["issueEditor"]),r9.issueEditor=new Set(["issueAppender"]),r9.issueAppender=new Set(["issueReader"]),r9.issueRestrictedReader=
new Set(["issueReader"]),r9.issueRestrictedPlusReader=new Set(["issueRestrictedReader"]),r9.issueReader=new Set(["componentReader"]),r9.componentAdmin=new Set(["componentAppender"]),r9.componentAppender=new Set(["componentReader"]),r9.componentReader=new Set,r9),mwb=po(pFc,function(a){return qFc[a]}),Js=Object.values({COMPONENT_ADMIN:"componentAdmin",ISSUE_ADMIN:"issueAdmin",ISSUE_EDITOR:"issueEditor",ISSUE_CONTRIBUTOR:"issueContributor",COMPONENT_ADMIN_ONLY:"componentAdminOnly",ISSUE_CREATOR:"issueCreator",
ISSUE_ADMIN_ONLY:"issueAdminOnly",ISSUE_EDITOR_EXISTING:"issueEditorExisting",ISSUE_COMMENTER:"issueCommenter",RESTRICTED_PLUS_VIEWER:"restrictedPlusViewer",RESTRICTED_VIEWER:"restrictedViewer",ISSUE_VIEWER:"issueViewer"}),s9={},rFc=(s9.componentAdmin=new Set(["componentAdmin","issueAdmin"]),s9.issueAdmin=new Set(["issueAdmin","componentAppender"]),s9.issueEditor=new Set(["issueEditor","componentAppender"]),s9.issueContributor=new Set(["issueAppender","componentAppender"]),s9.componentAdminOnly=new Set(["componentAdmin"]),
s9.issueCreator=new Set(["componentAppender"]),s9.issueAdminOnly=new Set(["issueAdmin"]),s9.issueEditorExisting=new Set(["issueEditor"]),s9.issueCommenter=new Set(["issueAppender"]),s9.restrictedPlusViewer=new Set(["issueRestrictedPlusReader"]),s9.restrictedViewer=new Set(["issueRestrictedReader"]),s9.issueViewer=new Set(["issueReader"]),s9),kwb=po(Js,function(a){return rFc[a]}),sFc=nwb(),jwb=po(Js,function(a){a=[].concat(p(kwb.get(a))).flatMap(function(b){return[].concat(p(sFc.get(b)))});return new Set(a)}),
lwb=po(Js,function(a){return new Set(Js.filter(function(b){return b!==a&&Cpa(jwb.get(b),jwb.get(a))}))});var qwb={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},tFc={admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};var t9=function(a,b,c,d,e,f,h){var k=this;this.accessPolicyApi=a;this.errorHandler=b;this.butterBar=c;this.userAccess=d;this.componentActions=e;this.componentValidator=f;this.analytics=h;this.isAdmin=!1;this.rolesMap=qwb;this.originalComponent=this.parentComponent=this.component=null;this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=this.isSaving=!1;this.implicitAccess={getValue:function(){return k.componentAccessPolicyUnderEdit?"ALLOW"===k.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return k.componentFlattenedAccessPolicy?
"ALLOW"===k.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(q){k.componentAccessPolicyUnderEdit&&(k.componentAccessPolicyUnderEdit=Object.assign({},k.componentAccessPolicyUnderEdit,{implicitAccess:q?"ALLOW":"DENY"}))},isUpdated:function(){var q;return k.componentAccessPolicyUnderEdit.implicitAccess!==(null==(q=k.componentFlattenedAccessPolicy)?void 0:q.implicitAccess)}};this.componentReaders=[];this.issueDefaultFlattenedAccessPolicy=this.componentFlattenedAccessPolicy=tFc;this.componentAccessPolicyUnderEdit=
Fo();this.issueDefaultAccessPolicyUnderEdit=Fo();this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(q){a:{var u=k.issueDefaultFlattenedAccessPolicy;if(q&&u){u=u.restrictedPlusReaders;q=l(q);for(var x=q.next();!x.done;x=q.next())if(x=x.value,0===x.indexOf("GROUP:")&&-1===u.indexOf(x)){u=!1;break a}}u=!0}return u}}};t9.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var uFc=function(a){if(!a.hasUnsavedAccessLimitChanges())return Promise.resolve();a.isUpdatingAccessLimit=!0;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;return a.accessPolicyApi.setAccessLimit("COMPONENT",a.componentId,a.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;WF(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";sn(b)&&(c+=tn(b));a.butterBar.showWarning(c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};t9.prototype.updateComponentAndOriginalComponent=function(a){this.component=li(a);this.originalComponent=li(a)};
t9.prototype.loadComponent=function(){var a=this;return this.componentActions.getUncached(this.componentId,!0).then(function(b){a.updateComponentAndOriginalComponent(b);0<b.parentComponentId&&a.loadParentComponent(b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};t9.prototype.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){return b.parentComponent=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
t9.prototype.initialize=function(a){var b=this;a=void 0===a?this.componentId:a;if(!a&&!this.componentId)return this.butterBar.showWarning("No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=Go(c);b.componentAccessPolicyUnderEdit=li(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
Go(c);b.issueDefaultAccessPolicyUnderEdit=li(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var vFc=function(a){a.rolesMap=rwb({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})},wFc=function(a,b){var c=a.issueDefaultFlattenedAccessPolicy;return c&&twb(c,a.issueDefaultAccessPolicyUnderEdit)?a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b):Promise.resolve(void 0)},xFc=function(a){var b=swb(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy),c=a.issueDefaultFlattenedAccessPolicy;a=!(!c||!twb(c,a.issueDefaultAccessPolicyUnderEdit));
return b||a},yFc=function(a,b){return swb(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=Go(c);if(swb(d,a.componentAccessPolicyUnderEdit)){if(swb(d,a.componentFlattenedAccessPolicy))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});b.readers=c.readers;return a.accessPolicyApi.update("COMPONENT",a.componentId,b)}}):
Promise.resolve(void 0)};t9.prototype.loadUserAccess=function(a){var b=this;return uG(this.userAccess,"admin","components/"+String(a)).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):uG(b.userAccess,"writer","components/"+String(a))}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
t9.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Ho(this.componentAccessPolicyUnderEdit);var c=Ho(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),this.butterBar.showWarning(c),Promise.resolve()}if(xFc(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,WF(this.butterBar,"Saving access settings...",0),wFc(this,c).then(function(d){d&&(b.readers=[].concat(p(d.admins||[]),p(d.editors||[]),p(d.appenders||[]),
p(d.readers||[]),p(d.restrictedPlusReaders||[]),p(d.restrictedReaders||[])));return yFc(a,b).catch(function(e){var f;return Ne(function(h){if(1==h.nextAddress)return f=Ho(a.issueDefaultFlattenedAccessPolicy),h.yield(wFc(a,f),2);throw e;})})}).then(function(){return uFc(a)}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;vFc(a);var e=a.rolesMap,f={componentAdminOnly:d.componentAdminOnly,issueAdminOnly:d.issueAdminOnly,viewer:d.viewer,editExistingIssuesOnly:d.editExistingIssuesOnly,
createIssuesOnly:d.createIssuesOnly,commentOnly:d.commentOnly,viewRestricted:d.viewRestricted,viewRestrictedPlus:d.viewRestrictedPlus},h={componentAdminOnly:e.componentAdminOnly,issueAdminOnly:e.issueAdminOnly,viewer:e.viewer,editExistingIssuesOnly:e.editExistingIssuesOnly,createIssuesOnly:e.createIssuesOnly,commentOnly:e.commentOnly,viewRestricted:e.viewRestricted,viewRestrictedPlus:e.viewRestrictedPlus};d=uwb({componentAdmin:d.componentAdmin,issueAdmin:d.issueAdmin,editor:d.editor,contributor:d.contributor},
{componentAdmin:e.componentAdmin,issueAdmin:e.issueAdmin,editor:e.editor,contributor:e.contributor});f=uwb(f,h);switch(d&&f?2:d?0:f?1:3){case 0:a.analytics.trackEvent(xp.ROLE_BASED_PERMISSIONS,"update","roles:standard");break;case 1:a.analytics.trackEvent(xp.ROLE_BASED_PERMISSIONS,"update","roles:advanced");break;case 2:a.analytics.trackEvent(xp.ROLE_BASED_PERMISSIONS,"update","roles:both");break;default:a.analytics.trackEvent(xp.ROLE_BASED_PERMISSIONS,"update","roles:neither")}WF(a.butterBar,"Access settings saved",
0)}).catch(function(d){a.butterBar.showWarning(tn(d),0)}).finally(function(){return Ne(function(d){if(1==d.nextAddress)return d.yield(a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;Se(d)})});vFc(this);return uFc(this)};
var zFc=function(a,b){b=owb(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},Fwb=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(zFc(a,b),nFc(a.componentValidator,{component:a.component,originalComponent:a.originalComponent,
componentReaders:a.componentReaders,componentFlattenedAccessPolicy:a.componentFlattenedAccessPolicy,componentAccessPolicyUnderEdit:a.componentAccessPolicyUnderEdit,issueDefaultFlattenedAccessPolicy:a.issueDefaultFlattenedAccessPolicy,issueDefaultAccessPolicyUnderEdit:a.issueDefaultAccessPolicyUnderEdit}).then(function(c){if(c)return a.doSaveAccessPolicy();WF(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
Qh.Object.defineProperties(t9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){ki(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=pwb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){ki(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=pwb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});t9.\u0275fac=function(a){return new (a||t9)(n(nG),n(XF),n(VF),n(sG),n(EP),n(p9),n(zH))};t9.\u0275prov=$c({token:t9,factory:t9.\u0275fac});var u9=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.rolesEditor=c;this.AccessLevelStrings=yTb};u9.prototype.getRecentIssuesLink=function(){return Tk(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};u9.prototype.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!OQa(this.rolesEditor.parentComponent))};
u9.prototype.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!pp(this.rolesEditor.parentComponent))};u9.\u0275fac=function(a){return new (a||u9)(z(Us),z(yL),z(t9))};
u9.\u0275cmp=od({type:u9,selectors:[["access-limit-settings"]],decls:6,vars:2,consts:[["class","component-banner",4,"ngIf"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about access control","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"component-banner"],[1,"component-visibility-settings"],[1,"component-visibility-header"],[1,"access-level-panel"],[1,"access-level-field"],["type","radio","id","access-level-internal","name","accessLevelInternal",
"value","INTERNAL",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for","access-level-external-partner"],[1,"access-level-field","bv2-edit-resource-readonly"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["for",
"access-level-public"],[1,"access-level-warning"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-public","name","accessLevelPublic",
"value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange"]],template:function(a,b){a&1&&(P(0,ywb,20,7,"div",0),D(1,"div",1)(2,"p"),Q(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),D(4,"a",2),Q(5,"Learn more"),F()()());if(a&2){a:if(b.activeSession.isExternalSession())a=!1;else{if(b.rolesEditor.component)if(b.rolesEditor.component.parentComponentId){if(b.rolesEditor.parentComponent){a=op(b.rolesEditor.parentComponent)||
op(b.rolesEditor.component);break a}}else{a=!1;break a}a=void 0}C("ngIf",a);w(4);gg("href","",wo(b.documentationLinks),"#recommended-role-based-permissions-configurations",re)}},dependencies:[Ev,Tg,rw,hw,ow],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;margin-bottom:20px}.component-banner[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;margin:15px 0 0;padding:16px}.component-banner[_ngcontent-%COMP%]   .component-visibility-settings[_ngcontent-%COMP%]{min-height:28px}.component-banner[_ngcontent-%COMP%]   .component-visibility-header[_ngcontent-%COMP%]{font-weight:bold}.component-banner.access-level-banner[_ngcontent-%COMP%]{margin-bottom:20px}.component-banner.implicit-access-banner[_ngcontent-%COMP%], .component-banner.template-help-banner[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin:15px 0px 10px 0}/*# sourceMappingURL=access_limit_settings.css.map */"]});var v9=function(a,b){this.documentationLinks=a;this.rolesEditor=b};v9.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};v9.prototype.setImplicitAccess=function(a){this.rolesEditor.implicitAccess.setValue(a)};v9.\u0275fac=function(a){return new (a||v9)(z(yL),z(t9))};
v9.\u0275cmp=od({type:v9,selectors:[["expanded-access-settings"]],decls:10,vars:5,consts:[[1,"expanded-access-settings"],[1,"permission-toggle-checkbox"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"checked","disabled","change"],[1,"permission-toggle-text"],["id","expanded-access-help",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about expanded access","aria-describedby","expanded-access-help",
1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),L("change",function(c){return b.setImplicitAccess(c.checked)}),F()(),D(3,"div",3)(4,"strong",4),Q(5,"Expanded access"),F(),D(6,"div",5),Q(7," When checked, assignees, verifiers, and collaborators can edit issues for this component, and CC'd users can add comments. "),D(8,"a",6),Q(9,"Learn more"),F()()()());a&2&&(Xf("bv2-edit-resource-readonly",b.isAccessEditDisabled()),w(2),C("checked",
b.rolesEditor.implicitAccess.getValue())("disabled",b.isAccessEditDisabled()),w(6),gg("href","",wo(b.documentationLinks),"#expanded-access",re))},dependencies:[PK],styles:["[_nghost-%COMP%]{display:flex}.expanded-access-settings[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);display:flex;margin:10px 0px;border-radius:8px;width:100%;padding:16px}.expanded-access-settings[_ngcontent-%COMP%]   .permission-toggle-text[_ngcontent-%COMP%]{margin-left:1em}/*# sourceMappingURL=expanded_access_settings.css.map */"]});var zwb=function(){return{}},Bwb=function(a,b){return{displayText:a,values:b}},Awb=function(a){return[a]},Cwb=function(){return[]},w9=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new Yu;this.formIsValid=new Yu;this.aclFormValidity=new Map};w9.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};w9.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};w9.\u0275fac=function(a){return new (a||w9)};
w9.\u0275cmp=od({type:w9,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",displayedTableColumns:"displayedTableColumns",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},decls:31,vars:1,consts:[["scope","col"],[4,"ngFor","ngForOf"],[1,"edit-field"],[1,"role-title"],[3,"htmlFor"],["mat-icon-button","",3,"matTooltip"],["svgIcon","help-outline"],[3,"idForInputBox","users","ariaLabel","accessLevel","customValidators",
"includeAliases","includeViewAliases","containerChips","usersChange","isValid"],["size","large",3,"name"]],template:function(a,b){a&1&&(D(0,"table")(1,"thead")(2,"tr")(3,"th",0),Q(4,"Role Assignments"),F(),D(5,"th",0)(6,"h6"),Q(7,"Admin Components"),F()(),D(8,"th",0)(9,"h6"),Q(10,"Create Issues"),F()(),D(11,"th",0)(12,"h6"),Q(13,"Admin Issues"),F()(),D(14,"th",0)(15,"h6"),Q(16,"Edit Issues"),F()(),D(17,"th",0)(18,"h6"),Q(19,"Comment on Issues"),F()(),D(20,"th",0)(21,"h6"),Q(22,"View Issues"),F()(),
D(23,"th",0)(24,"h6"),Q(25,"View Restricted"),F()(),D(26,"th",0)(27,"h6"),Q(28,"View Restricted+"),F()()()(),D(29,"tbody"),P(30,Dwb,26,29,"ng-container",1),F()());a&2&&(w(30),C("ngForOf",b.rolesTableData))},dependencies:[Dv,qA,nY,bD,Ez,FB],styles:["table[_ngcontent-%COMP%]{width:100%;font-size:.8125rem;font-family:Roboto,Arial,sans-serif}table[_ngcontent-%COMP%], thead[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]{display:flex;flex-direction:column}tr[_ngcontent-%COMP%]{display:flex}th[_ngcontent-%COMP%]:first-child{visibility:hidden;flex:0 0 40%}th[_ngcontent-%COMP%]:not(:first-child){width:20em;height:20px;text-align:center}th[_ngcontent-%COMP%]:not(:first-child)   h6[_ngcontent-%COMP%]{display:inline;font-size:.8125rem}td[_ngcontent-%COMP%]:first-child{min-width:250px;flex:0 0 40%}td[_ngcontent-%COMP%]:not(:first-child){display:flex;justify-content:center;width:20em;padding-top:16px}b-multi-user-input[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]     td .edit-field{margin:14px 0 0}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input{width:auto;max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input input.bv2-multi-user-embedded-input{max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-multi-user-errors{padding:9px}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-user-chip{max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-user-chip .mat-tooltip-trigger{display:flex}.role-title[_ngcontent-%COMP%]{display:flex;margin:5px 2px}.role-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]     .mat-icon-button{margin:0 5px;width:inherit;height:inherit}[_nghost-%COMP%]     .mat-icon-button mat-icon{display:flex;height:16px;width:16px}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}/*# sourceMappingURL=roles_view_table.css.map */"]});var x9=function(){this.rolesMap=qwb;this.isSaving=!1;this.saveRolesMap=new Yu;this.rolesUnderEdit=qwb;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},AFc=function(a){var b=a.rolesUnderEdit,c;var d=[{ariaLabel:"Component Admin role",label:"Component Admins",users:null==b?void 0:b.componentAdmin,roleType:"componentAdmin",
grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Component Admins are granted all the permissions to manage the component and all issues in this component. They can't view restricted content. Typical Component Admins are team leads."},{ariaLabel:"Issue Admin role",label:"Issue Admins",users:null==b?void 0:b.issueAdmin,roleType:"issueAdmin",
grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Issue Admins are granted all permissions to manage issues, but can't edit component settings. They can't view restricted content. Typical Issue Admins are team members."},{ariaLabel:"Issue Editor role",label:"Issue Editors",users:null==b?void 0:b.editor,roleType:"editor",grantedPermissions:{componentAdmin:!1,
createIssues:!0,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:"EXTERNAL_PUBLIC"!==(null==(c=a.component.accessLimit)?void 0:c.accessLevel),includeViewAliases:!1,tooltip:"Issue Editors are granted all issue-related permissions except for admin permissions such as delete an issue or comment, or change restrictions. They can't view restricted content. Typical Issue Editors are collaborating team members."},{ariaLabel:"Issue Contributor role",
label:"Issue Contributors",users:null==b?void 0:b.contributor,roleType:"contributor",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Issue Contributors can read, comment, and create issues, but they can't edit issues. They can't view restricted content. Typical Issue Contributors are external partners or public users."}];a.standardRolesTableData=
d;b=a.rolesUnderEdit;var e,f;d=[{ariaLabel:"Component Admin Only role",label:"Component Admins Only",users:null==b?void 0:b.componentAdminOnly,roleType:"componentAdminOnly",grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Component Admin Only role can edit the component settings and create issues, but otherwise have no issue-related permissions.",
chips:{displayText:"Inherited Admins",values:null!=(f=b.inheritedComponentAdmin)?f:[]}},{ariaLabel:"Issue Creators Only role",label:"Issue Creators Only",users:null==b?void 0:b.createIssuesOnly,roleType:"createIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the issue Issue Creators Only role can create issues, but have no other permissions. For example, they are not able to view issues they have created."},
{ariaLabel:"Issue Admin Only role",label:"Issue Admins Only",users:null==b?void 0:b.issueAdminOnly,roleType:"issueAdminOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Issue Admin Only role have all issue permissions but cannot create new issues."},{ariaLabel:"Issue Editors (existing issues only) role",label:"Issue Editors (existing issues only)",
users:null==b?void 0:b.editExistingIssuesOnly,roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:"EXTERNAL_PUBLIC"!==(null==(e=a.component.accessLimit)?void 0:e.accessLevel),includeViewAliases:!1,tooltip:"Issue Editors (existing issues only) have the issue editor's permission on existing issues, but they can't create new issues in this component."},
{ariaLabel:"Issue Commenter Only role",label:"Issue Commenter Only",users:null==b?void 0:b.commentOnly,roleType:"commentOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the Issue Commenter Only role may view and comment on issues on this component"},{ariaLabel:"Restricted Plus Content Viewer role",label:"Restricted+ Content Viewer",
users:null==b?void 0:b.viewRestrictedPlus,roleType:"viewRestrictedPlus",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!0},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted+ Content Viewers can view Restricted+ content on an issue.",customValidators:a.rolesEditor.restrictedPlusReadersValidators},{ariaLabel:"Restricted Content Viewer role",label:"Restricted Content Viewer",users:null==
b?void 0:b.viewRestricted,roleType:"viewRestricted",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted Content Viewers can view restricted content on an issue."},{ariaLabel:"Issue Viewer role",label:"Issue Viewers",users:null==b?void 0:b.viewer,roleType:"viewer",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,
issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!0,tooltip:"Issue Viewers can only view issues in this component, but can't comment or edit issues."}];a.advancedRolesTableData=d},BFc=function(a){return a.advancedRolesTableData.some(function(b){return 0<b.users.length})},CFc=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};g=x9.prototype;g.ngOnInit=function(){CFc(this);AFc(this)};
g.ngOnChanges=function(a){a.rolesMap&&CFc(this);AFc(this)};g.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};g.getComponentAccessLevel=function(){if(this.component.accessLimit)return this.component.accessLimit.accessLevel};g.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};g.canEdit=function(){return!this.isSaving&&this.rolesEditor.isAdmin};
g.canSave=function(){return this.canEdit()&&(!ki(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};x9.\u0275fac=function(a){return new (a||x9)};
x9.\u0275cmp=od({type:x9,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},features:[Fd],decls:12,vars:11,consts:[[3,"rolesTableData","displayedTableColumns","canEdit","accessLevel","rolesMapUpdated","formIsValid"],["togglePosition","before",1,"mat-elevation-z0",3,"expanded"],["mat-raised-button","","aria-label","Update","color","primary",3,"disabled","click"],["mat-raised-button","","aria-label",
"Revert Changes",3,"disabled","click"]],template:function(a,b){a&1&&(G(0,"access-limit-settings"),D(1,"roles-view-table",0),L("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),F(),D(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),Q(5," Advanced Roles "),F()(),D(6,"roles-view-table",0),L("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),F()(),G(7,"expanded-access-settings"),
D(8,"button",2),L("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),Q(9,"Update"),F(),D(10,"button",3),L("click",function(){CFc(b);AFc(b)}),Q(11," Revert Changes\n"),F());a&2&&(w(1),C("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),w(1),C("expanded",BFc(b)),w(4),C("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",
b.getComponentAccessLevel()),w(2),C("disabled",!b.canSave()),w(2),C("disabled",!!ki(b.rolesMap,b.rolesUnderEdit)))},dependencies:[K5,L5,M5,Ez,w9,u9,v9],styles:["[_nghost-%COMP%]     mat-expansion-panel .mat-expansion-panel-body{padding:0}mat-expansion-panel-header[_ngcontent-%COMP%]{margin:0 0 0 8px;padding:0}button[_ngcontent-%COMP%]{margin:0px 10px 5px 0px}/*# sourceMappingURL=roles_view.css.map */"]});var y9=function(a,b){Y.call(this);this.rolesEditor=a;this.route=b};W(y9,Y);y9.\u0275dir=Y.\u0275dir;y9.prototype.ngOnInit=function(){var a=this;this.route.paramMap.pipe(A(function(b){return b.get("componentId")}),cf(cl),zf(function(b){return a.rolesEditor.initialize(Number(b))}),Af(this.destroyed$)).subscribe(function(){vFc(a.rolesEditor)})};y9.prototype.isSaving=function(){return this.rolesEditor.isSaving};y9.\u0275fac=function(a){return new (a||y9)(z(t9),z(lk))};
y9.\u0275cmp=od({type:y9,selectors:[["role-based-permissions"]],features:[lg([t9,p9]),Jf],decls:2,vars:2,consts:[["class","bv2-view-loading",4,"ngIf"],[4,"ngIf"],[1,"bv2-view-loading"],[1,"padded"],["label","Edit Roles"],[3,"rolesMap","isSaving","component","rolesEditor","saveRolesMap"],["label","View Permissions"],[3,"componentReaders","componentAccessPolicy","issueAccessPolicy","accessLevel"]],template:function(a,b){a&1&&(P(0,Ewb,2,0,"div",0),P(1,Gwb,7,8,"div",1));a&2&&(C("ngIf",!(null==b.rolesEditor.component?
0:b.rolesEditor.component.componentId)),w(1),C("ngIf",null==b.rolesEditor.component?null:b.rolesEditor.component.componentId))},dependencies:[Ev,DT,CT,MJ,q9,x9],styles:["/*# sourceMappingURL=role_based_permissions.css.map */"]});var DFc=new Ad("GMAT_LEGACY_CHECKBOX_OPTION");var EFc=new Map([["primary","mat-primary"],["accent","mat-accent"],["warn","mat-warn"]]),z9=function(a,b){this.elementRef=a;this.gmatCheckboxOption=b;this.color="primary";this.hasGmatAttribute=a.nativeElement.hasAttribute("gmat-checkbox")};z9.prototype.ngOnInit=function(){this.isEnabled()&&(this.elementRef.nativeElement.classList.remove.apply(this.elementRef.nativeElement.classList,p(EFc.values())),this.elementRef.nativeElement.classList.add(EFc.get(this.color)))};
z9.prototype.isEnabled=function(){return this.gmatCheckboxOption?this.hasGmatAttribute||this.gmatCheckboxOption.enabled:this.hasGmatAttribute};z9.\u0275fac=function(a){return new (a||z9)(z(ae),z(DFc,8))};z9.\u0275dir=sd({type:z9,selectors:[["mat-checkbox","gmat-checkbox",""],["mat-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&Xf("gmat-checkbox",b.isEnabled())},inputs:{color:"color"}});var FFc=["archiveDialog"],GFc=["archiveButton"],HFc=["metadataForm"],IFc={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",TEMPLATES:"templates",ACCESS:"access"},A9=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub){Y.call(this);var Vb=this;this.route=a;this.cdr=b;this.routeParams=c;this.bLocation=d;this.templatesApi=e;this.paths=f;this.appHistory=h;this.butterBar=k;this.pageTitle=q;this.activeSession=u;this.documentationLinks=x;this.matDialogService=y;this.analytics=
E;this.checkBeforeExit=H;this.userAccess=J;this.componentActions=O;this.errorHandler=R;this.componentUpdates=U;this.componentUpdatesApi=Z;this.confirmationDialogService=na;this.appEvents=oa;this.teamsService=wa;this.sloApi=Da;this.sloService=Ga;this.currentTracker=Ub;this.componentId$=new B.ReplaySubject(1);this.Tab=IFc;this.componentListRoute=iua;this.showSloInheritancePath=!1;this.component$=new B.BehaviorSubject(null);this.componentTrackerId$=this.component$.pipe(A(function($a){return null==$a?
void 0:$a.trackerId}));this.showTrackerRedirect$=(0,B.combineLatest)([this.currentTracker.trackerId$,this.componentTrackerId$]).pipe(A(function($a){var ja=l($a);$a=ja.next().value;ja=ja.next().value;return Vb.shouldShowTrackerRedirect($a,bl("")(ja))}));this.parentComponent$=new B.BehaviorSubject(null);this.componentTeam$=new B.BehaviorSubject(null);this.team$=this.componentTeam$.pipe(zf(function($a){return($a=null==$a?void 0:$a.id)&&"0"!==$a?vI(Vb.teamsService,$a):(0,B.of)(null)}));this.parentComponentTeam$=
this.parentComponent$.pipe(zf(function($a){var ja;return($a=null==$a?void 0:null==(ja=$a.team)?void 0:ja.id)&&"0"!==$a?vI(Vb.teamsService,$a):(0,B.of)(null)}));this.inheritedSloMetadata$=(0,B.combineLatest)([this.component$,this.parentComponent$,this.team$]).pipe(A(function($a){var ja=l($a);$a=ja.next().value;var ya=ja.next().value;ja=ja.next().value;if((null==$a?0:$a.team)&&!$a.team.inherit&&"0"!==$a.team.id){var Ha,ab=null!=(Ha=null==ja?void 0:ja.slo)?Ha:null;if(ab)return{containerType:"TEAM",content:ab}}else if(Ha=
null!=(ab=null==ya?void 0:ya.slo)?ab:null)return{containerType:"COMPONENT",content:Ha};return null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(mf(),zf(function($a){var ja="0";$a&&("TEAM"===$a.containerType?ja=$a.content.sloId:"COMPONENT"===$a.containerType&&(ja=$a.content.id));return"0"===ja?(0,B.of)({id:"0"}):Vb.sloService.get(ja).then(function(ya){return{id:ja,slo:ya}})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(mf(),zf(function($a){if(!$a)return(0,B.of)({name:"None",type:"none"});
$a=Yxb($a);var ja=$a.sourceTeamId,ya=$a.sourceComponentId;return ja&&"0"!==ja?Vb.teamsService.getTeam(ja).pipe(A(function(Ha){var ab;return{name:null!=(ab=null==Ha?void 0:Ha.name)?ab:ja,type:"team",link:{path:"/teams/"+ja+"/edit",fragment:"slo"}}})):ya?Vb.componentActions.get(Number(ya)).then(function(Ha){var ab;return{name:null!=(ab=Ha.name)?ab:ya,type:"component",link:{path:"/components/"+ya+"/edit"}}}):(0,B.of)(null)}));this.policySourcePath$=(0,B.combineLatest)([this.component$,this.team$,this.parentComponentTeam$,
this.inheritedSloMetadata$]).pipe(A(function($a){var ja=l($a);$a=ja.next().value;var ya=ja.next().value,Ha=ja.next().value;ja=ja.next().value;if(!$a||!$a.componentPathInfo||!ja)return null;var ab=Yxb(ja);ja=ab.sourceComponentId;ya=$xb(ya,ab.sourceTeamId,$a.team,Ha);return null===ja?{componentPath:null,teamPath:ya}:{componentPath:Zxb($a,ja),teamPath:ya}}));this.enableSloLockingCheck=$C(this.activeSession,"enableSloLockingCheck");this.enableRecommendationSettingsPage=$C(this.activeSession,"enableRecommendationSettingsPage");
this.component=null;this.effectiveCustomFields=[];this.parentComponent=null;this.descendants=[];this.savingRecommendationSettings=this.hasUnsavedRecommendationSettings=this.isLoading=this.hasInitialized=!1;this.selectedTabIndex=0;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent=this.originalComponent=null;this.isAdminInternal=this.isUpdating=this.isArchiving=!1;this.metadataForm=null;this.error="";this.isComponentSloEditor=this.isEditorInternal=!1;this.updateDiffs=void 0;
this.templates=[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=$C(this.activeSession,"enableSloLockingUi");this.enableTeamLeadSloEditingUi=$C(this.activeSession,"enableTeamLeadSloEditingUi");this.sloLocked$=this.componentId$.pipe(cf(Boolean),zf(function($a){return Vb.sloApi.executor.get({url:"action/components/"+$a+"/slo_edit_policy",responseConstructor:Fic}).pipe(A(dwa))}));this.getSloManagementLink=jua};
W(A9,Y);A9.\u0275dir=Y.\u0275dir;A9.prototype.shouldShowTrackerRedirect=function(a,b){return""!==a&&a!==b};A9.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.bLocation.hash(e,!0)};
A9.prototype.ngOnInit=function(){var a=this;this.componentId=qi(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.selectedTabIndex=0;this.subscriptions.add(VW(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);this.enableSloLockingCheck&&JFc(this);this.componentHistoryUiEnabled=this.activeSession.isInternalSession();
KFc(this);this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=LFc(b)}));this.hasInitialized=!0;this.route.fragment.pipe(Af(this.destroyed$)).subscribe(function(b){"basic"===b?a.selectedTabIndex=0:"customFields"===b?a.selectedTabIndex=1:"fieldOrdering"===b?a.selectedTabIndex=2:"templates"===b?a.selectedTabIndex=3:"access"===b&&(a.selectedTabIndex=4)})};
var KFc=function(a){a=[MFc(a,a.componentId),a.loadComponent(a.componentId),a.loadTemplates(a.componentId)];return Promise.all(a).then(function(){})};A9.prototype.isAdmin=function(){return this.isAdminInternal};var Ls=function(a){return a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin()};g=A9.prototype;g.isSaving=function(){return this.isUpdating||this.isArchiving||this.savingRecommendationSettings};g.isArchived=function(){return this.component?this.component.archived:!1};g.isPublic=function(){return pp(this.component)};
g.isExternal=function(){return op(this.component)};g.isParentPublic=function(){return!(!this.parentComponent||!pp(this.parentComponent))};g.isParentPartner=function(){return!(!this.parentComponent||!OQa(this.parentComponent))};var qxb=function(a){if(!a.component||!a.component.slo)return!1;var b=!!a.component.team&&"0"!==a.component.team.id;return 0===a.component.parentComponentId?b:!a.component.slo.inherit};
A9.prototype.hasUnsavedMetadataChanges=function(){return!(ki(this.component,this.originalComponent)&&ki(this.parentComponent,this.originalParentComponent)&&!this.hasUnsavedRecommendationSettings)};A9.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()};
var NFc=function(a){var b=Rj();a.component.slo.id===a.originalComponent.slo.id&&a.component.slo.source===a.originalComponent.slo.source?b.resolve(!0):a.confirmationDialogService.open({title:"SLO changes may not appear immediately",content:Uo("SLO changes will be applied to all issues in this component (and potentially child components). Depending on the total number of affected issues, this may take several hours to fully fan-out and reindex."),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}});
return b.promise},OFc=function(a){var b=Rj();a.sessionIsInternal&&a.parentComponent&&a.parentComponent.componentId!=a.component.parentComponentId?a.confirmationDialogService.open({title:"Changing the parent component may change which SLO is applied",content:to(Uo('Depending on the specific SLO inheritance and/or source settings in this and any child components, changes to the parent component may cause a different "Auto" or inherited SLO to be applied.'),so("BR",{}),so("BR",{}),Uo('Changes to the SLO may also take some time to become visible. Updates to the "Auto" SLOs are applied daily, and any changes then need to be fanned out to the affected issues and re-indexed.'),
so("BR",{}),so("A",{href:"https://goto.google.com/buganizer/guides/apply-slo",target:"_blank"},"Learn More")),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise};A9.prototype.saveMetadata=function(){var a=this;return PFc(this)?OFc(this).then(function(b){return b?NFc(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return KFc(a)})}):Promise.resolve()};
A9.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;WF(this.butterBar,"Saving changes ...",0);return QFc(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return RFc(a)}).then(function(){return SFc(a)}).then(function(){var b;return null==(b=a.recommendationSettings)?void 0:b.save()}).then(function(){return TFc(a)}).then(function(){WF(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);a.isUpdating=!1})};
var QFc=function(a){return a.parentComponent&&a.parentComponent.componentId!==a.originalComponent.parentComponentId?a.componentActions.move(a.component.componentId,a.parentComponent.componentId).then(function(){return!0}).catch(function(b){a.component.parentComponentId=a.originalComponent.parentComponentId;return Promise.reject(b)}):Promise.resolve(!1)},RFc=function(a){return a.component.slo&&!ki(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,a.component.slo).then(function(){a.analytics.trackEvent(xp.MANAGE_COMPONENT,
"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},SFc=function(a){return a.component.team&&!ki(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){a.analytics.trackEvent(xp.MANAGE_COMPONENT,"updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):Promise.resolve(!1)},TFc=function(a){return UFc(a)?
a.componentActions.update(a.component).then(function(){a.analytics.trackEvent(xp.MANAGE_COMPONENT,"update");a.commentEditsEnabled?a.analytics.trackEvent("component","comment edits enabled","update"):a.analytics.trackEvent("component","comment edits disabled","update");return!0}):Promise.resolve(!1)},UFc=function(a){var b=li(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!ki(a.originalComponent,b)},PFc=function(a){if(a.isEditorInternal){if(a.metadataForm.invalid)return a.error=
"Error: You must fill out all required fields.",!1;if(a.retentionIsValid)return a.error="",!0;a.error="Error: Required retention settings are missing or invalid.";return!1}a.error="";return!0};A9.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};var MFc=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
A9.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=li(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled="ENABLED"==this.component.commentEditState;var a;null==(a=this.recommendationSettings)||a.revert()};
var Jxb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=LFc(b.componentPathInfo.allCustomField)})},LFc=function(a){return a?a.filter(function(b){return b.enabledOnIssues}):[]};
A9.prototype.loadComponent=function(a){var b=this;this.isLoading=!0;return this.componentActions.getUncached(a,!0).then(function(c){b.updateComponentAndOriginalComponent(c);b.currentName=c.name;0<c.parentComponentId&&b.loadParentComponent(c.parentComponentId);b.effectiveCustomFields=LFc(c.componentPathInfo.allCustomField);b.pageTitle.setTitle("Component: "+c.name);b.archiveAction=c.archived?"Unarchive":"Archive";b.commentEditsEnabled="ENABLED"==c.commentEditState;0===b.component.parentComponentId&&
(b.isParentComponentRequired=!1)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.hasInitialized&&b.cdr.detectChanges()})};A9.prototype.loadUserAccess=function(a){var b=this,c=vn("COMPONENT",a);uG(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:uG(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var JFc=function(a){uG(a.userAccess,"writer",vn("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},Swb=function(a){var b,c=is(a.currentTracker,null==(b=a.parentComponent)?void 0:b.componentPathInfo);return a.currentTracker.inTracker&&(!c||!c.componentPathId||0===c.componentPathId.length)},Ms=function(a){return a.isSaving()||!a.isEditorInternal};g=A9.prototype;g.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};
g.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent=li(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.getRecentIssuesLink=function(){var a=this.isArchived();return Tk(this.componentId,{includeArchived:a})};g.componentPermissions=function(a){return{path:"/components/"+a,fragment:"access"}};
g.createIssue=function(){this.trackClick("createIssue");var a={};this.bLocation.url(this.paths.createIssue((a.component=String(this.component.componentId),a)))};g.createChild=function(){this.bLocation.url(this.paths.createComponent({parentId:this.component.componentId}))};g.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var Hwb=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?a.butterBar.showWarning("You have unsaved changes on one or more tabs. Please save or revert these changes before "+a.archiveAction.slice(0,-1)+"ing."):(a.isArchiving=!0,WF(a.butterBar,"Looking up subcomponents...",0),a.componentActions.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=b;Pz(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(Af(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):a.butterBar.showWarning("Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};
A9.prototype.getRetentionPeriod=function(a){var b=a.retentionSettings.retentionSelection;switch(b){case "BUGANIZER_DEFAULT":return"Buganizer default retention (10 years)";case "INDEFINITE_RETENTION":return"Indefinite retention";case "CUSTOM_PERIOD":var c;a=null!=(c=a.retentionSettings.retentionPeriodDays)?c:0;return An(a);case "UNSPECIFIED_RETENTION":return"Retention period unspecified";default:$h(b,"unexpected value "+b+"!")}};
A9.prototype.archive=function(){var a=this;this.isArchiving=!0;WF(this.butterBar,this.archiveAction.slice(0,-1)+"ing...",0);this.component.archived=!this.component.archived;this.componentActions.update(this.component).then(function(b){a.appEvents.componentModified.next(b.componentId);WF(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);a.analytics.trackEvent("component","archive");a.updateComponentAndOriginalComponent(b);a.archiveAction=b.archived?"Unarchive":"Archive";a.isArchiving=
!1}).catch(function(b){a.component.archived=!a.component.archived;WF(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(sn(b)?tn(b):b));a.isArchiving=!1})};
A9.prototype.loadTemplates=function(a){var b=this;return this.templatesApi.query(a).then(function(c){b.templates=c.map(function(d){var e=d.name;e||(e=d.default?"(default template)":"(unnamed template)");var f={};f=b.paths.getBaseUrl()+"/"+b.paths.createIssue((f.component=a?String(a):void 0,f.template=d.templateId?String(d.templateId):void 0,f));return{name:e,description:d.description||"",url:f}})}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
A9.prototype.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};
var VFc=function(a,b){return a.componentHistoryUiEnabled?a.componentUpdatesApi.get(b).then(function(c){a.updateDiffs=c.updates.map(function(d){var e=a.componentUpdates,f=AIa(d.addMask.paths),h=AIa(d.removeMask.paths),k={author:d.author||null,timestamp:d.timestamp||null,diffs:[]},q=d.add;d=d.remove;for(var u=l(new Set([].concat(p(f),p(h)))),x=u.next();!x.done;x=u.next()){var y=x.value;if(x=h6b.get(y))if("name"===y){var E=uo(h,y,d.name);y=uo(f,y,q.name);k.diffs.push(vo(x,E,y))}else if("description"===
y)E=uo(h,y,d.description),y=uo(f,y,q.description),k.diffs.push(vo(x,E,y));else if("parentComponentId"===y)E=uo(h,y,String(d.parentComponentId)),y=uo(f,y,String(q.parentComponentId)),k.diffs.push(vo(x,E,y));else if("isArchived"===y)E=uo(h,y,String(d.archived)),y=uo(f,y,String(q.archived)),k.diffs.push(vo(x,E,y));else if("commentEditState"===y){var H=i6b.get(d.commentEditState);E=i6b.get(q.commentEditState);H&&E&&(H=uo(h,y,H),y=uo(f,y,E),k.diffs.push(vo(x,H,y)))}else"defaultTemplateId"===y?(E=uo(h,
y,String(d.defaultTemplateId)),y=uo(f,y,String(q.defaultTemplateId)),k.diffs.push(vo(x,E,y))):"slo"===y?e.sessionIsInternal&&(E=uo(h,y,GIa(d.slo)),y=uo(f,y,GIa(q.slo)),k.diffs.push(vo(x,E,y))):"team"===y?e.sessionIsInternal&&(E=uo(h,y,HIa(d.team)),y=uo(f,y,HIa(q.team)),k.diffs.push(vo(x,E,y))):"retentionSettings"===y?(E=uo(h,y,EIa(d.retentionSettings)),y=uo(f,y,EIa(q.retentionSettings)),k.diffs.push(vo(x,E,y))):e.$log.error("Unsupported diff field "+y)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject()};A9.prototype.showUpdateHistoryModal=function(){var a=this;VFc(this,this.componentId).then(function(){a.matDialogService.open(E4,{width:"600px",data:{updateDiffs:a.updateDiffs}});a.analytics.trackEvent(xp.UPDATE_HISTORY_MODAL,"open");a.analytics.trackEvent(xp.MANAGE_COMPONENT,"viewHistory")})};A9.prototype.onSloChange=function(a){this.component.slo.id=a?a.sloId:"0";a&&WFc(this)};
var mxb=function(a){var b=!!a.parentComponent,c="0"!==a.component.team.id;return Ls(a)&&(c||b)},sxb=function(a){var b=!a.component.team||"0"===a.component.team.id,c=!a.parentComponent;return Ls(a)&&(!a.component.slo.inherit||c&&b)},Wwb=function(a){var b,c,d,e;Ne(function(f){b=0===a.component.parentComponentId;c="0"!==a.component.team.id;return(0===a.component.parentComponentId?"0"!==a.component.team.id:!a.component.team.inherit&&"0"!==a.component.team.id)||b&&c?f.yield((0,B.firstValueFrom)(a.team$.pipe(A(function(h){a.component.slo.id=
h.slo.sloId;WFc(a)}))),0):(d=XFc(a),e=d.id,a.component.slo.id=e,WFc(a),f.jumpTo(0))})},rxb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return"0"!==a.component.team.id||b?!0:!1},XFc=function(a){var b=a.component.slo.inherit,c=a.component.slo.source,d=a.component.slo.id;if(b){if(!a.parentComponent)return{inherit:b,source:c,id:d};c=a.parentComponent.slo.source;d=a.parentComponent.slo.id}return{inherit:b,source:c,id:d}},Dxb=function(a,b){WF(a.butterBar,"Saving effort spec...",0);
a.component&&(a.component.effortSpec=b,a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);a.analytics.trackEvent(xp.MANAGE_COMPONENT,"updateEffort");var d,e;if(null==(d=a.component)?0:null==(e=d.effortSpec)?0:e.name){var f;WF(a.butterBar,(null==(f=a.component.effortSpec)?void 0:f.name)+" saved")}else WF(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,c)}))};
A9.prototype.updateComponentAndOriginalComponent=function(a){this.component=li(a);this.component$.next(this.component);this.originalComponent=li(a);var b;this.componentTeam$.next(null!=(b=this.component.team)?b:null);WFc(this)};A9.prototype.back=function(){V_(this.appHistory)};var WFc=function(a){var b;(null==(b=a.component)?0:b.slo)?a.isEnableSloChecked="0"!==a.component.slo.id:a.isEnableSloChecked=!1};
A9.\u0275fac=function(a){return new (a||A9)(z(lk),z(yD,2),z(aO),z(wE),z(TG),z(xE),z(U_),z(VF),z(lG),z(Us),z(yL),z(Uz),z(zH),z(UW),z(sG),z(EP),z(XF),z(VO),z(i9),z(zJ),z(DF),z(uI),z(uW),z(vW),z(jG))};
A9.\u0275cmp=od({type:A9,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(zg(FFc,5),zg(GFc,5),zg(k9,5),zg(HFc,5),zg(CT,5,ae));if(a&2){var c;yg(c=Bg())&&(b.confirmArchiveDialog=c.first);yg(c=Bg())&&(b.archiveButton=c.first);yg(c=Bg())&&(b.recommendationSettings=c.first);yg(c=Bg())&&(b.metadataForm=c.first);yg(c=Bg())&&(b.tabs=c)}},features:[lg([yD]),Jf],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["showTrackerRedirect",""],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],
["format","icon","size","large","tooltip","Go back","ariaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[4,"ngIf"],["cdkScrollable","",1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["archiveDialog",""],["mat-button","",1,"gmat-button",3,"routerLinkObj"],["format","flat",3,"disabled","onAction",4,"ngIf"],["format","flat",3,"tooltip","disabled","onAction",4,"ngIf"],["format","flat",3,"disabled","onAction"],["archiveButton",""],["format","flat",3,"tooltip","disabled","onAction"],
[1,"bv2-view-loading"],[1,"edit-resource-header"],["class","resource-archived",4,"ngIf"],[1,"keep-focus-ring","margin-s-right",3,"routerLinkObj","click"],[3,"accessLevel"],[3,"trackerId"],[1,"component-hierarchy-container"],["componentPathsLinkTo","settings",3,"componentPathInfo","isArchived","label"],[1,"float-clear"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndex","selectedIndexChange"],["label","Basic Information",3,"id"],[4,"ngTemplateOutlet"],[3,"id","label"],["label","Field Ordering",3,"id"],
["label","Templates",3,"id"],["label","Access Control",3,"id"],["basic",""],["customFields",""],["fieldOrdering",""],["templatesList",""],["access",""],[1,"resource-archived"],[1,"edit-resource-panel"],["name","metadataForm"],["metadataForm",""],[3,"error"],["aria-label","Name",1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","name","name","required","","id","component-name",3,"ngModel","disabled","ngModelChange"],["aria-label","Description",1,"edit-field"],
["tabindex","0",1,"field-label-with-help","keep-focus-ring"],["aria-describedby","component-description-bubble","for","component-description",1,"help-label"],[1,"help-container"],["id","component-description-bubble",1,"help-bubble","jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],["name","description","aria-describedby","component-description-bubble","id","component-description",3,"ngModel","disabled","ngModelChange"],["class",
"edit-field","tabindex","0","aria-label","Parent component",4,"ngIf"],["role","region","aria-label","Editable Comments",1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabelledby","editable-comments-label permission-toggle-help",3,"checked","disabled","change"],["id","editable-comments-label",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about editable comments","class","keep-underline keep-focus-ring",
3,"href",4,"ngIf"],["class","edit-field","role","region","aria-label","Retention Settings",3,"bv2-edit-resource-readonly",4,"ngIf"],["class","edit-field","role","region","tabindex","0","aria-label","Team Configuration",3,"bv2-edit-resource-readonly",4,"ngIf"],["class","edit-field","role","region","tabindex","0","aria-label","SLO Configuration",3,"bv2-edit-resource-readonly",4,"ngIf"],["aria-label","Component alias",1,"edit-field","bv2-edit-resource-readonly"],["aria-describedby","edit-alias-help-bubble",
1,"help-label"],["id","edit-alias-help-bubble",1,"help-bubble","jfk-bubble"],["aria-label","Learn more about component alias","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"href"],[3,"componentId","hasUnsavedChanges","isSaving",4,"ngIf"],[1,"edit-button-row"],["class","edit-button-group",4,"ngIf"],[1,"edit-button-group"],["format","hairline","title","View history for 'Basic Information'",3,"onAction",4,"ngIf"],[1,"edit-field","bv2-edit-resource-readonly"],[3,"children","onVisit",
4,"ngIf"],["tabindex","0","aria-label","Parent component",1,"edit-field"],["aria-describedby","edit-parent-help-bubble","for","component-parent-id",1,"help-label"],["id","edit-parent-help-bubble",1,"help-bubble","jfk-bubble"],["id","component-parent-id",3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["target","_blank","aria-label","Learn more about editable comments",1,"keep-underline","keep-focus-ring",3,"href"],["role","region","aria-label","Retention Settings",1,"edit-field"],
["for","retention-settings",1,"required"],[1,"edit-field-help"],["target","_blank","aria-label","Learn more about choosing a period of time to retain the data stored in this component.",1,"keep-underline","keep-focus-ring",3,"href"],["id","retention-settings"],[3,"issueRetentionDisabled","isExternal","initialModel","modelChange","validChange"],["role","region","tabindex","0","aria-label","Team Configuration",1,"edit-field"],["for","team-picker"],["id","team-picker",4,"ngIf"],["id","team-picker"],
[3,"isAdmin","isTopLevel","parentModel","useInternalLink","anchorTarget","model","modelChange"],["role","region","tabindex","0","aria-label","SLO Configuration",1,"edit-field"],["aria-describedby","edit-slo-help-bubble",1,"help-label"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],["class","slo-policy-link",4,"ngIf"],["class","slo-policy-source-link",4,"ngIf"],["class","slo-admins-link",4,"ngIf"],[1,"lock-state"],["class","edit-field less-margin",4,"ngIf"],[1,"slo-policy-link"],
[3,"routerLinkObj",4,"ngIf","ngIfElse"],["noInheritedSlo",""],[3,"routerLinkObj"],[1,"slo-policy-source-link"],["class","keep-focus-ring slo-inheritance-link",3,"routerLinkObj",4,"ngIf","ngIfElse"],["noPolicySource",""],["mat-stroked-button","","type","button","aria-label","Display the full SLO inheritance path below",1,"gmat-button","slo-inheritance-path","small",3,"click"],[1,"keep-focus-ring","slo-inheritance-link",3,"routerLinkObj"],["class","slo-breadcrumbs",4,"ngIf"],[1,"slo-breadcrumbs"],[3,
"componentPath","teamPath"],[1,"slo-admins-link"],["target","_blank",1,"keep-focus-ring",3,"routerLinkObj"],["unlocked",""],["svgIcon","lock-outline"],["svgIcon","lock-open"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"slo-override",3,"checked","disabled","change"],["class","edit-field component-slo-justification-text",4,"ngIf"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModel","disabled","ngModelChange","change"],[1,"edit-field","component-slo-id-select"],["for",
"component-slo-id"],["id","component-slo-id","aria-describedby","edit-slo-help-bubble","tabindex","-1",1,"bv2-slo-picker","bv2-picker",3,"bv2Disabled","boundId","bv2Placeholder","onSloSelect"],["mat-icon-button","","class","gmat-button small","aria-label","Go to SLO management page","matTooltip","Go to SLO management page.",3,"routerLinkObj","target",4,"ngIf"],[1,"edit-field","component-slo-justification-text"],["for","component-slo-justification","id","component-settings-slo-justification-label",
1,"required"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","matTooltip","Justification is required to override the org SLO.","aria-label","Justification is required to override the org SLO.",1,"slo-info","icon-s","valign-middle"],["name","comment","aria-labelledby","component-settings-slo-justification-label","required","",3,"ngModel","disabled","ngModelChange"],["mat-icon-button","","aria-label","Go to SLO management page","matTooltip","Go to SLO management page.",1,"gmat-button",
"small",3,"routerLinkObj","target"],["svgIcon","pop-out",1,"icon-s"],[3,"componentId","hasUnsavedChanges","isSaving"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"],["format","hairline","title","View history for 'Basic Information'",3,"onAction"],[3,"children","onVisit"],["class","heading-m padded-x margin-top","aria-label","Standard Fields",4,"ngIf"],[3,"effortSpec","parentEffortSpec","disabled","updateComponent",4,"ngIf"],["class","heading-m padded-x margin-top",
"aria-label","Custom Fields",4,"ngIf"],[3,"editMode","isSaving","component","parentComponent"],["aria-label","Standard Fields",1,"heading-m","padded-x","margin-top"],[3,"effortSpec","parentEffortSpec","disabled","updateComponent"],["aria-label","Custom Fields",1,"heading-m","padded-x","margin-top"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about field ordering","class","keep-underline keep-focus-ring","target","_blank",3,"href",4,"ngIf"],[3,"fields","componentId","fieldOrdering",
"isAdmin","onReload"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"componentId","supportCustomFields",4,"ngIf"],[3,"componentId","supportCustomFields"],["class","component-field",4,"ngFor","ngForOf"],[1,"component-field"],["mat-dialog-title",""],[1,"b-archive-component-list"],[4,"ngFor","ngForOf"],["mat-flat-button","","mat-dialog-close","","aria-label","Click to archive the component","color","primary",3,"click"],["mat-button",
"","mat-dialog-close","","aria-label","Click to close the dialog without archiving the component",3,"click"],["aria-label","Learn more about archiving components","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["aria-label","Learn more about buganizer retention","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"b-archive-warning-indef",4,"ngIf"],[1,"bv2-limited-issue-view"],[3,"component"]],template:function(a,b){a&1&&(P(0,Wxb,12,3,"ng-container",0),T(1,"async"),
P(2,Xxb,2,1,"ng-template",null,1,Eg));if(a&2){var c=N(3);C("ngIf",!V(1,2,b.showTrackerRedirect$))("ngIfElse",c)}},dependencies:[bJ,Dv,Ev,Jv,qA,XO,vP,gP,W3,d4,g4,jW,pZ,k4,pw,Tg,hw,iw,zw,ow,mw,z9,rU,bD,Ez,Fz,PK,Vz,Wz,Xz,Yz,Ay,PP,DT,CT,FB,k9,B_,y9,tP,j9,z_,MJ,TR,HP,p7,Kv,Mv],styles:[".mat-form-field[_ngcontent-%COMP%]{width:500px}b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}div.edit-field.less-margin[_ngcontent-%COMP%]{margin:8px 0}div.slo-admins-link[_ngcontent-%COMP%]{margin-top:3px}.metadata[_ngcontent-%COMP%]{margin:10px 0}.metadata[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:16px;height:16px}.lock-state[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.component-slo-id-select[_ngcontent-%COMP%], .component-slo-justification-text[_ngcontent-%COMP%], .indented[_ngcontent-%COMP%], div.slo-breadcrumbs[_ngcontent-%COMP%]{margin-left:24px}.component-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}button.slo-inheritance-path[_ngcontent-%COMP%]{margin-left:30px}div.slo-breadcrumbs[_ngcontent-%COMP%]{padding:4px}.field-label-with-help[_ngcontent-%COMP%]:focus   .help-bubble[_ngcontent-%COMP%]{left:8px}.field-label-with-help[_ngcontent-%COMP%]:focus   .help-bubble-right[_ngcontent-%COMP%]{left:-120px}.mat-button[_ngcontent-%COMP%]:focus, .mat-button[_ngcontent-%COMP%]:focus-visible, .mat-button[_ngcontent-%COMP%]:focus-within, .mat-flat-button.mat-primary[_ngcontent-%COMP%]:focus, .mat-flat-button.mat-primary[_ngcontent-%COMP%]:focus-visible, .mat-flat-button.mat-primary[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}  .gmat-button.mat-button:not([disabled]):focus .mat-button-focus-overlay,   .gmat-button.mat-button:not([disabled]):focus-visible .mat-button-focus-overlay,   .gmat-button.mat-button:not([disabled]):focus-within .mat-button-focus-overlay,   .gmat-button.mat-stroked-button:not([disabled]):focus .mat-button-focus-overlay,   .gmat-button.mat-stroked-button:not([disabled]):focus-visible .mat-button-focus-overlay,   .gmat-button.mat-stroked-button:not([disabled]):focus-within .mat-button-focus-overlay{opacity:.06}\n/*# sourceMappingURL=manage_component.css.map */"]});var Dyb=function(a){return{value:a}},Eyb=function(a){return[a]},Fyb=function(){return[]},YFc={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping"},B9=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H){Y.call(this);var J=this;this.activeSession=a;this.accessPolicyApi=b;this.appHistory=c;this.butterBar=d;this.checkBeforeExit=e;this.componentActions=f;this.errorHandler=h;this.location=k;this.pageTitle=q;this.routeParams=u;this.teamsService=x;this.userAccess=y;this.sloApi=E;this.sloService=H;this.originalSloLock=
!1;this.canEditSloLock=!0;this.sloJustification$=new B.BehaviorSubject("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new B.ReplaySubject(1);this.teamSlo$=this.team$.pipe(A(function(R){return R.slo}));this.isSloLeadValid=!1;this.sloLeadEmail$=new B.BehaviorSubject("");this.sloLead$=new B.BehaviorSubject("");this.sloLeadUserValidators={sloLeadNotUser:function(R){if(R){R=l(R);
for(var U=R.next();!U.done;U=R.next())if(0!==U.value.indexOf("USER:"))return!1}return!0}};this.sloLeadGooglerValidators={sloLeadNotGoogler:function(R){if(R){R=l(R);for(var U=R.next();!U.done;U=R.next())if(0!==U.value.indexOf("UNRESTRICTED_GOOGLER:"))return!1}return!0}};this.teamAdmins$=(0,B.from)(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(A(function(R){return R.admins.filter(Tpa).map(Ao)}));this.teamLeads$=this.team$.pipe(A(function(R){return R.members.filter(function(U){return U.isLead}).map(function(U){var Z,
na;return"USER:"+(null!=(na=null==(Z=U.user)?void 0:Z.emailAddress)?na:"")})}));this.adminsAndLeads$=(0,B.combineLatest)([this.teamAdmins$,this.teamLeads$]).pipe(A(function(R){var U=l(R);R=U.next().value;U=U.next().value;var Z=new Set(R);U=U.filter(function(na){return!Z.has(na)});return[].concat(p(R),p(U))}));this.associatedComponents$=(0,B.from)(this.componentActions.search("directteamid:"+this.teamId));this.teamPath$=this.team$.pipe(A(function(R){var U=R.pathNames;return R.pathIds.map(function(Z,
na){return{id:Z,name:U[na]}})}));this.isRootTeam$=this.teamPath$.pipe(A(function(R){return 1>=R.length?!0:!1}));this.parentTeam$=(0,B.combineLatest)([this.isRootTeam$,this.teamPath$]).pipe(zf(function(R){var U=l(R);R=U.next().value;U=U.next().value;return R?(0,B.of)(null):J.teamsService.getTeam(U[U.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(zf(function(R){var U,Z=null==R?void 0:null==(U=R.slo)?void 0:U.sloId;return Z&&"0"!==Z?J.sloService.get(Z).then(function(na){return{id:Z,
link:jua(Z),slo:na}}):(0,B.of)({id:"0"})}));this.sloPolicySource$=(0,B.combineLatest)([this.parentTeam$,this.teamPath$]).pipe(A(function(R){var U=l(R);R=U.next().value;U=U.next().value;var Z,na=null==R?void 0:null==(Z=R.slo)?void 0:Z.sourceTeamId;Z=U.find(function(oa){return oa.id===na});return na&&Z?{name:Z.name,link:{path:"/teams/"+na+"/edit",fragment:"slo"}}:null}));this.Tab=YFc;this.enableSloLockingUi=$C(this.activeSession,"enableSloLockingUi");this.isSloInheritEnabled$=new B.BehaviorSubject(!0);
this.sloId$=new B.BehaviorSubject("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new B.BehaviorSubject(!1);this.hasSloReadAccess$=this.sloId$.pipe(zf(function(R){return uG(J.userAccess,"reader","slos/"+R)}),yf(!1));this.sloPickerLink$=(0,B.combineLatest)([this.sloId$,this.hasSloReadAccess$]).pipe(A(function(R){var U=l(R);R=U.next().value;U=U.next().value;return R&&0<Number(R)&&U?jua(R):null}));this.hasUnsavedChanges$=(0,B.combineLatest)([this.team$,this.sloId$,this.isSloInheritEnabled$,this.sloLocked$,
this.sloJustification$,this.sloLeadEmail$]).pipe(A(function(R){var U=l(R),Z=U.next().value;R=U.next().value;var na=U.next().value,oa=U.next().value,wa=U.next().value;U=U.next().value;var Da=Z.slo,Ga,Ub;Z=null!=(Ub=null==(Ga=Z.sloLead)?void 0:Ga.emailAddress)?Ub:"";return Da.inherit!==na||Da.sloId!==R||oa!==J.originalSloLock||Da.comment!==wa||Z!==U}));this.hasEditAccess=!1;this.pageTitle.setTitle("Team Overview");this.team$.pipe(Af(this.destroyed$)).subscribe(function(R){J.pageTitle.setTitle("Team: "+
R.name)});a=$C(this.activeSession,"enableSloLockingCheck")?"teams/"+this.teamId+"/slo":"teams/"+this.teamId;uG(this.userAccess,"writer",a).then(function(R){J.hasEditAccess=R});this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(A(function(R){return R.values().next().value}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:rW}).pipe(A(cwa));var O=Fk(this.hasUnsavedChanges$.pipe(Af(this.destroyed$)),!1);this.subscriptions.add(VW(this.checkBeforeExit,
function(){return O.getValue()},!1))};W(B9,Y);B9.\u0275dir=Y.\u0275dir;
B9.prototype.ngOnInit=function(){var a=this,b,c;return Ne(function(d){switch(d.nextAddress){case 1:return b=a.location.hash(),"basic"===b?a.selectedTabIndex=0:"slo"===b?a.selectedTabIndex=1:"componentMapping"===b&&(a.selectedTabIndex=2),Oe(d,2),d.yield((0,B.firstValueFrom)(a.teamsService.get(a.teamId)),4);case 4:c=d.yieldResult;$s(d,3);break;case 2:return Re(d),a.butterBar.showWarning("Unable to fetch team ID '"+a.teamId+"'"),d.return();case 3:return a.team$.next(c),xyb(a),d.yield((0,B.firstValueFrom)(a.parentTeam$),
5);case 5:a.parentTeam=d.yieldResult||null,Se(d)}})};B9.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};B9.prototype.onSloChange=function(a){a&&(this.sloId=a.sloId)};
var wyb=function(a,b){var c,d,e,f,h,k;return Ne(function(q){switch(q.nextAddress){case 1:if(!a.validate())return q.return();WF(a.butterBar,"Saving changes...",0);Oe(q,2);if((null==(c=b.sloLead)?void 0:c.emailAddress)===a.sloLeadEmail){q.jumpTo(4);break}return q.yield((0,B.firstValueFrom)(a.teamsService.updateTeam(Object.assign({},b,{sloLead:{emailAddress:a.sloLeadEmail}}))),5);case 5:d=q.yieldResult,a.team$.next(d);case 4:if(a.sloLocked===a.originalSloLock){q.jumpTo(6);break}var u=q.yield,x=B.firstValueFrom;
var y=a.sloApi;var E=a.teamId,H=a.sloLocked,J=new QE;H=bm(J,2,H?1:2).setTeamId(Number(E));y=y.executor.post({url:"action/teams/"+E+"/slo_edit_policy",responseConstructor:tW,body:H}).pipe(A(cwa));return u.call(q,x.call(B,y),7);case 7:e=q.yieldResult,a.originalSloLock=e;case 6:f=b.slo;if(f.inherit===a.isSloInheritEnabled&&f.sloId===a.sloId&&a.originalSloLock===a.sloLocked&&f.comment===a.sloJustification){q.jumpTo(8);break}u=q.yield;x=B.firstValueFrom;H={sloId:a.sloId,inherit:a.isSloInheritEnabled,comment:a.isSloInheritEnabled?
"":a.sloJustification$.getValue(),sourceTeamId:"0"};y=a.teamsService;E=a.teamId;H=qxa(H);J=(new tI).setTeamId(E);H=oj(J,Nm,2,H);y=y.executor.post({url:"/action/teams/"+E+"/update_slo",body:H,responseConstructor:aF}).pipe(A(nxa));return u.call(q,x.call(B,y),9);case 9:h=q.yieldResult,a.team$.next(h);case 8:WF(a.butterBar,"Save complete.");$s(q,0);break;case 2:k=Re(q),ZF(a.errorHandler,k),Se(q)}})};
B9.prototype.validate=function(){if(!this.isSloInheritEnabled&&""===this.sloJustification$.getValue())return this.error="Justification is required",!1;if(!this.isSloLeadValid)return this.error="Please provide a valid SLO lead",!1;this.error="";return!0};
var ZFc=function(a){(0,B.firstValueFrom)(a.team$).then(function(b){var c;b=null==(c=b.sloLead)?void 0:c.emailAddress;a.sloLead=b?"USER:"+b:""})},$Fc=function(a){(0,B.firstValueFrom)(a.teamSlo$).then(function(b){a.sloId=b.sloId;a.isSloInheritEnabled=b.inherit;a.sloJustification$.next(b.comment)})},aGc=function(a){(0,B.firstValueFrom)(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},xyb=function(a){a.error="";ZFc(a);$Fc(a);a.enableSloLockingUi&&aGc(a)};B9.prototype.back=function(){V_(this.appHistory)};
Qh.Object.defineProperties(B9.prototype,{sloJustification:{configurable:!0,enumerable:!0,get:function(){return this.sloJustification$.getValue()}},sloLeadEmail:{configurable:!0,enumerable:!0,get:function(){return this.sloLeadEmail$.getValue()}},sloLead:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloLead$.getValue()&&(this.sloLead$.next(a),this.sloLeadEmail$.next(a?a.split(":")[1]:""))},get:function(){return this.sloLead$.getValue()}},isSloInheritEnabled:{configurable:!0,enumerable:!0,
set:function(a){a!==this.isSloInheritEnabled$.getValue()&&this.isSloInheritEnabled$.next(a)},get:function(){return this.isSloInheritEnabled$.getValue()}},sloId:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloId$.getValue()&&(this.sloId$.next(a),this.enableSloChecked="0"!==a)},get:function(){return this.sloId$.getValue()}},enableSloChecked:{configurable:!0,enumerable:!0,set:function(a){a!==this.enableSloCheckedInternal&&(this.enableSloCheckedInternal=a,a||(this.sloId="0"))},get:function(){return this.enableSloCheckedInternal}},
sloLocked:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloLocked$.getValue()&&this.sloLocked$.next(a)},get:function(){return this.sloLocked$.getValue()}}});B9.\u0275fac=function(a){return new (a||B9)(z(Us),z(nG),z(U_),z(VF),z(UW),z(EP),z(XF),z(wE),z(lG),z(aO),z(uI),z(sG),z(uW),z(vW))};
B9.\u0275cmp=od({type:B9,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&zg(CT,5,ae);if(a&2){var c;yg(c=Bg())&&(b.tabs=c)}},features:[Jf],decls:8,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","aria-label","Go back","color","primary","ngClass","large","matTooltip","Go back",1,"gmat-button",3,"click"],["svgIcon","arrow-backward",1,"icon-m"],["cdkScrollable","",1,"bv2-view"],[4,"ngIf"],[1,"edit-resource-header"],["target",
"_blank",3,"href"],["svgIcon","pop-out",1,"icon-s"],["class","team-hierarchy-container",4,"ngIf"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["label","Basic Information",3,"id"],[1,"edit-resource-panel"],[1,"edit-field"],[1,"field-label"],[1,"edit-field-header"],[1,"description"],[4,"ngIf","ngIfElse"],["emptyDescription",""],[1,"field-label-with-help"],[1,"help-label"],[1,"help-container"],[1,"help-bubble","jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],
[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],["label","Team SLO",3,"id"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],["class","slo-policy-link",4,"ngIf"],[1,"slo-policy-source-link"],["class","slo-inheritance-link",3,"routerLinkObj",4,"ngIf","ngIfElse"],["noPolicySource",""],[1,"lock-state"],[3,"error"],["class","edit-field",4,"ngIf"],["idForInputBox","team-slo-lead","ariaLabel","Team SLO lead email",3,"users","customValidators","detailedUserValidators",
"maxUserAllowed","usersChange","isValid"],["class","edit-button-row",4,"ngIf"],["label","Component mapping",3,"id"],[1,"team-hierarchy-container"],[3,"teamPath"],[3,"users"],["childTeamsLinks",""],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"slo-policy-link"],[3,"routerLinkObj",4,"ngIf","ngIfElse"],["noInheritedSlo",""],[3,"routerLinkObj"],[1,"slo-inheritance-link",3,"routerLinkObj"],["unlocked",""],["svgIcon","lock-outline"],["svgIcon","lock-open"],["class","edit-field less-margin",4,"ngIf"],[1,"edit-field",
"less-margin"],["gmat-checkbox","",1,"override-slo",3,"disabled","checked","change"],["class","edit-field slo-justification",4,"ngIf"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModel","disabled","ngModelChange","change"],[1,"team-slo-id-select",3,"boundId","bv2Disabled","bv2Placeholder","onSloSelect"],["mat-icon-button","","class","gmat-button small slo-link","matTooltip","Go to SLO management page",3,"routerLinkObj","target",4,"ngIf"],[1,"edit-field","slo-justification"],
["id","team-slo-justification-label",1,"required"],["svgIcon","help-outline",1,"icon-s","valign-middle",3,"matTooltip"],["aria-labelledby","team-slo-justification-label","required","",1,"slo-justification-text",3,"ngModel","disabled","ngModelChange"],["mat-icon-button","","matTooltip","Go to SLO management page",1,"gmat-button","small","slo-link",3,"routerLinkObj","target"],["gmat-checkbox","",1,"slo-lock",3,"checked","disabled","change"],[1,"edit-button-row"],[1,"edit-button-group"],["gmat-button",
"","mat-flat-button","","color","primary",3,"disabled","click"],["gmat-button","","mat-stroked-button","","color","primary",3,"disabled","click"],["associatedComponentLinks",""]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),L("click",function(){return b.back()}),G(4,"mat-icon",4),F()()()(),D(5,"div",5),P(6,Gyb,99,46,"ng-container",6),T(7,"async"),F());a&2&&(w(6),C("ngIf",V(7,1,b.team$)))},dependencies:[Cv,Dv,Ev,qA,pZ,Tg,hw,zw,ow,z9,rU,Ez,Fz,PK,DT,CT,FB,Ay,PP,nY,YD,
tP,z_,p_,Kv],styles:[".description[_ngcontent-%COMP%]{white-space:pre-wrap}button[_ngcontent-%COMP%]{height:32px;line-height:32px}button.mat-icon-button.large[_ngcontent-%COMP%]{height:36px;line-height:36px;width:36px}.team-hierarchy-container[_ngcontent-%COMP%]{margin-top:-5px;padding-bottom:32px;padding-left:20px}.metadata[_ngcontent-%COMP%]{margin:10px 0}.metadata[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:16px;height:16px}.lock-state[_ngcontent-%COMP%]{display:flex;align-items:center}.team-slo-id-select[_ngcontent-%COMP%]{display:inline-block;width:450px}label[_ngcontent-%COMP%]{display:inline-block;line-height:2.2em}label[_ngcontent-%COMP%]   .edit-field-header[_ngcontent-%COMP%]{font-weight:bold}textarea.slo-justification-text[_ngcontent-%COMP%]{height:3em}div.edit-field.less-margin[_ngcontent-%COMP%]{margin:8px 0}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{line-height:1.2}.indented[_ngcontent-%COMP%], .slo-justification[_ngcontent-%COMP%], .team-slo-id-select[_ngcontent-%COMP%]{margin-left:24px}.team-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}/*# sourceMappingURL=manage_team.css.map */"]});var C9=function(a,b,c,d,e,f,h,k,q){Y.call(this);var u=this;this.needsAttentionApi=a;this.taskFridge=b;this.errorHandler=c;this.tasksService=d;this.missionControlPrefs=e;this.domSafe=f;this.router=h;this.appEvents=k;this.analytics=q;this.SIGNAL_TO_DISPLAY_TEXT=s_b;this.SIGNAL_TO_TOOLTIP_TEXT=t_b;this.SIGNAL_TO_ACTION_TEXT=u_b;this.needsAttentionIssues$=(0,B.defer)(function(){return u.needsAttentionApi.listIssues(void 0,void 0,$Da())}).pipe(A(rCa));this.tasksWithSignals$=this.taskFridge.watchMany({}).pipe(A(qCa));
var x;this.sources$=new B.BehaviorSubject(null!=(x=this.missionControlPrefs.prefs.naSources)?x:Yn);var y;this.timeBoundary$=new B.BehaviorSubject(null!=(y=this.missionControlPrefs.prefs.naTimeBoundary)?y:Q0b);this.allNeedsAttention$=new B.BehaviorSubject([]);this.loading=!0;this.displayedColumns="selection type description timestamp signal action dismiss".split(" ");this.selection=new By(!0,[]);this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;(0,B.combineLatest)([this.tasksWithSignals$,this.needsAttentionIssues$,
this.sources$,this.timeBoundary$]).pipe(Af(this.destroyed$),A(function(E){var H=l(E);E=H.next().value;var J=H.next().value,O=H.next().value;H=H.next().value;E=pCa(E,J,O,H);u.appEvents.missionControlTaskCount.next(E.length);return E})).subscribe(function(E){u.loading=!1;u.allNeedsAttention$.next(E)});this.taskFridge.error$.pipe(Af(this.destroyed$)).subscribe(function(E){u.loading=!1;u.errorHandler.errorHandler(null,E)})};W(C9,Y);C9.\u0275dir=Y.\u0275dir;
var Jyb=function(a,b){a.selection.selected.length===b.length?a.selection.clear():(b=b.map(function(c){return c.id}),a.selection.select.apply(a.selection,p(b)))},jzb=function(a,b){if("Buganizer"===b.type){var c=ns(b.id);if(!c)return;IF(a.needsAttentionApi,[c],!0).catch(function(d){return void a.errorHandler.errorHandler(null,d)})}else a.tasksService.updateTaskStatus(b.id).subscribe(function(){},function(d){return void a.errorHandler.errorHandler(null,d)});c=a.allNeedsAttention$.getValue();a.allNeedsAttention$.next(c.filter(function(d){return d.id!==
b.id}));a.appEvents.missionControlTaskCount.next(c.length-1)},Ns=function(a){switch(a){case "MENTIONED":case "NEEDS_ATTENTION":case "TAGGED_IN_COMMENT":return 0;case "NEAR_SLO":case "REPLIED_TO_MENTION":case "ASSIGNED":case "REQUIRES_APPROVAL":case "READY_TO_SUBMIT":return 1;default:return 2}},dzb=function(a){var b=a[0],c=Ns(b);a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Ns(d)<c&&(b=d,c=Ns(b));return b},bzb=function(a,b){return a.filter(function(c){return c!==b}).map(function(c){return s_b.get(c)}).join("; ")};
C9.prototype.updateSourceFilter=function(a){var b=this.missionControlPrefs;b.prefs.naSources=a;b.save(b.prefs);this.sources$.next(a)};
C9.prototype.navigateToResource=function(a,b){if(!(a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"keydown"===a.type&&a instanceof KeyboardEvent&&"Enter"!==a.key)){this.sendClickAnalytics(b);var c;a&&"A"===(null==(c=a.target)?void 0:c.tagName)||("Buganizer"===b.type?(b=ns(b.id),b=Qk(b),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?kp(this.domSafe,b):ws(this.router,b)):this.domSafe.openInNewTab(b.link))}};
C9.prototype.sendClickAnalytics=function(a){this.analytics.trackEvent(xp.MISSION_CONTROL,"navigate","needsAttention-"+a.type+"-"+a.signals.join(","))};C9.prototype.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};
var Pyb=function(a){var b=a.selection.selected,c=b.filter(function(f){return f.startsWith("b/")}).map(function(f){return ns(f)}),d=b.filter(function(f){return!f.startsWith("b/")});0<c.length&&IF(a.needsAttentionApi,c,!0).catch(function(f){return void a.errorHandler.errorHandler(null,f)});0<d.length&&a.tasksService.updateTaskStatuses(d).subscribe(function(){},function(f){return void a.errorHandler.errorHandler(null,f)});var e=new Set(b);b=a.allNeedsAttention$.getValue();a.allNeedsAttention$.next(b.filter(function(f){return!e.has(f.id)}));
a.appEvents.missionControlTaskCount.next(b.filter(function(f){return!e.has(f.id)}).length);a.selection.clear()};C9.\u0275fac=function(a){return new (a||C9)(z(HF),z(pI),z(XF),z(nI),z(qK),z(zL),z(WD),z(DF),z(zH))};
C9.\u0275cmp=od({type:C9,selectors:[["b-needs-attention-table"]],features:[Jf],decls:11,vars:10,consts:[[1,"flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"heading-s"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],[1,"padded-s-x",3,"selectedSources","change"],[1,"border-left","padded-s-left",3,"selectedTimeBoundary","change"],["mat-table","","aria-label","Table of alerts",1,"full-width",3,"dataSource"],["matColumnDef","selection"],["mat-header-cell","",4,"matHeaderCellDef"],
["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","timestamp"],["matColumnDef","signal"],["matColumnDef","action"],["matColumnDef","dismiss"],["mat-header-cell","","class","border-bottom",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["class","mat-row padded-y",4,"matNoDataRow"],["mat-button","","class","gmat-button margin-s-top",3,"click",4,"ngIf"],["mat-header-cell",
""],["aria-label","Select all alerts",3,"checked","indeterminate","change"],["mat-cell",""],["aria-label","Select alert",3,"checked","click","change"],["role","img","matTooltipPosition","left","matTooltipShowDelay","250",3,"matTooltip"],["mat-button","","class","gmat-button bulk-dismiss",3,"click",4,"ngIf"],["mat-button","",1,"gmat-button","bulk-dismiss",3,"click"],["class","alert-description",4,"ngIf","ngIfElse"],["noTitle",""],[1,"alert-description"],["tabindex","0","role","link",1,"subtle-link",
3,"href","auxclick"],[1,"italic"],["mode","relativepast",3,"timestamp","paddingLeftPx",4,"ngIf"],["mode","relativepast",3,"timestamp","paddingLeftPx"],["class","flex-kids-x gap-xs",4,"ngIf","ngIfElse"],["signalsOverflow",""],[1,"flex-kids-x","gap-xs"],[4,"ngFor","ngForOf"],[3,"class","matTooltip",4,"ngIf"],[3,"matTooltip"],["class","flex-kids-x gap-xs align-items-center",4,"ngIf"],[1,"flex-kids-x","gap-xs","align-items-center"],[1,"type-m",3,"matTooltip"],["mat-button","",1,"gmat-button","primary",
"action-button"],["mat-header-cell","",1,"border-bottom"],["mat-icon-button","","aria-label","Dismiss a work item to hide it from the table","matTooltip","Dismiss a work item to hide it from the table",1,"dismiss-btn","small",3,"click"],["svgIcon","issue-status-wont-fix","color","primary",1,"dismiss-icon"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],[1,"mat-row","padded-y"],["colspan","7",1,"mat-cell","type-l","text-center","padded-top"],["mat-button","",1,"gmat-button","margin-s-top",
3,"click"],["class","icon","svgIcon","arrow-down",4,"ngIf"],["class","icon","svgIcon","arrow-up",4,"ngIf"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],[1,"text-center","padded"],[3,"large","ariaLabel"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"span",1),Q(2,"Sources"),F(),P(3,Hyb,2,1,"ng-container",2),T(4,"async"),P(5,Iyb,2,1,"ng-container",2),T(6,"async"),F(),P(7,rzb,27,4,"div",3),T(8,"async"),P(9,szb,2,2,"ng-template",null,4,Eg));if(a&2){var c=N(10);w(3);C("ngIf",V(4,4,
b.sources$));w(2);C("ngIf",V(6,6,b.timeBoundary$));w(2);C("ngIf",!b.loading&&V(8,8,b.allNeedsAttention$))("ngIfElse",c)}},dependencies:[Dv,Ev,qA,PL,mV,$U,fV,bV,ZU,hV,cV,eV,iV,kV,lV,PK,FB,Ez,Fz,tJ,sK,MJ,Kv],styles:[".mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-focus-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-row[_ngcontent-%COMP%]:focus-within   .mat-column-focus-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     mat-spinner.large{top:unset}.mat-column-selection[_ngcontent-%COMP%]{text-align:center}.mat-column-type[_ngcontent-%COMP%]{text-align:center}.mat-column-type[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.product-icon[_ngcontent-%COMP%]{height:24px;width:24px}.product-icon.check_circle_filled[_ngcontent-%COMP%]{color:#1e8e3e}.product-icon.drive_document[_ngcontent-%COMP%]{color:#1967d2}.product-icon.drive_spreadsheet[_ngcontent-%COMP%]{color:#1e8e3e}.product-icon.drive_presentation[_ngcontent-%COMP%]{color:#f9ab00}th.mat-column-signal[_ngcontent-%COMP%]{padding-left:8px}th.mat-column-action[_ngcontent-%COMP%]{padding-left:12px}.mat-column-dismiss[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%]{color:#fff;color:var(--background);margin-bottom:1px}.dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]:focus   .dismiss-icon[_ngcontent-%COMP%], .mat-row[_ngcontent-%COMP%]:focus   .dismiss-icon[_ngcontent-%COMP%], .mat-row[_ngcontent-%COMP%]:hover   .dismiss-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--primary)}.signal-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#185abc;border-color:var(--blue-text);color:#185abc;color:var(--blue-text);padding:4px 12px;border-radius:32px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-align:center;white-space:nowrap}.signal-chip.urgent-0[_ngcontent-%COMP%]{border:1px solid;border-color:#d42521;border-color:var(--red-text);color:#d42521;color:var(--red-text)}.signal-chip.urgent-1[_ngcontent-%COMP%]{border:1px solid;border-color:#9334e6;border-color:var(--purple-text);color:#9334e6;color:var(--purple-text)}a.action-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}a.action-button[_ngcontent-%COMP%]:active, a.action-button[_ngcontent-%COMP%]:focus, a.action-button[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}.bulk-dismiss[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-32px}"]});var D9=function(a,b,c){Y.call(this);var d=this;this.prefsService=a;this.appEvents=b;this.analytics=c;this.numNeedsAttentionTasks$=this.appEvents.missionControlTaskCount;this.numNeedsAttentionTasks$.pipe(cf(cl),nf(),Af(this.destroyed$)).subscribe(function(h){d.analytics.trackEvent(xp.MISSION_CONTROL,"display","num-needs-attention-"+h,h)});var e;a=null!=(e=this.prefsService.prefs.naSources)?e:Yn;var f;e=null!=(f=this.prefsService.prefs.naTimeBoundary)?f:Q0b;this.analytics.trackEvent(xp.MISSION_CONTROL,
"view","needsAttention-filters-"+a.join(",")+"-"+e.numberOfDays)};W(D9,Y);D9.\u0275dir=Y.\u0275dir;D9.prototype.isCollapsed=function(){return this.prefsService.isCollapsed("needs-attention-wrapper")};D9.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("needs-attention-wrapper")};D9.\u0275fac=function(a){return new (a||D9)(z(qK),z(DF),z(zH))};
D9.\u0275cmp=od({type:D9,selectors:[["needs-attention-wrapper"]],features:[Jf],decls:10,vars:6,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Work items which require actions from you","matTooltip","Work items which require actions from you",1,"info","margin-s-left"],["mat-icon-button","","aria-label","Toggle expansion state",1,"gmat-button","small","collapse-btn","margin-s-left",
3,"click"],["svgIcon","arrow-up",1,"icon-m"],["class","alert-count-badge b-chip",4,"ngIf"],["class","main-content",4,"ngIf"],[1,"alert-count-badge","b-chip"],[1,"alert-count"],[1,"main-content"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Needs attention "),F(),G(4,"mat-icon",3),D(5,"button",4),L("click",function(){return b.toggleCollapsed()}),G(6,"mat-icon",5),F(),P(7,tzb,3,1,"div",6),T(8,"async"),F(),P(9,uzb,2,0,"div",7),F());a&2&&(Xf("collapsed",b.isCollapsed()),w(7),
C("ngIf",V(8,4,b.numNeedsAttentionTasks$)),w(2),C("ngIf",!b.isCollapsed()))},dependencies:[Ev,qA,Ez,C9,FB,Kv],styles:["[_nghost-%COMP%]{display:block}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_ngcontent-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.alert-count-badge[_ngcontent-%COMP%]{margin-left:8px;background-color:#c5221f;background-color:var(--text-bad);color:#fff;color:var(--text-inverse);line-height:24px;border-radius:12px}.alert-count-badge[_ngcontent-%COMP%]   .alert-count[_ngcontent-%COMP%]{font-size:.8125rem;height:24px;text-align:center}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}"]});var Rs={displayName:"Bugs",filterType:"NonWtdm"},Qs={displayName:"Tasks",filterType:"Wtdm"},bGc={displayName:"Critique",filterType:"Critique"},cGc={displayName:"Drive",filterType:"Drive"},E9=[Rs,Qs,bGc,cGc],vzb=new Map([[Rs.filterType,Rs],[Qs.filterType,Qs],[bGc.filterType,bGc],[cGc.filterType,cGc]]);var F9=function(){this.selectedFilters=this.ALL_MY_TASK_FILTERS=E9;this.change=new Yu},xzb=function(a,b){return a.selectedFilters.some(function(c){return c.filterType===b.filterType})};F9.\u0275fac=function(a){return new (a||F9)};
F9.\u0275cmp=od({type:F9,selectors:[["my-tasks-filter-chips"]],inputs:{selectedFilters:"selectedFilters"},outputs:{change:"change"},decls:2,vars:1,consts:[["multiple","","aria-label","Filter selection",3,"change"],["appearance","hairline-filter",3,"value","selected",4,"ngFor","ngForOf"],["appearance","hairline-filter",3,"value","selected"]],template:function(a,b){a&1&&(D(0,"mat-chip-listbox",0),L("change",function(c){c=wzb(c.value);b.selectedFilters=c;b.change.emit(c)}),P(1,yzb,2,3,"mat-chip-option",
1),F());a&2&&(w(1),C("ngForOf",b.ALL_MY_TASK_FILTERS))},dependencies:[Dv,mJ,sJ,rJ]});var Bzb={Owned:{Critique:"CL Author",Drive:"File Owner",Launch:"Launch Owner"},Collaborating:{Critique:"CL Reviewer",Drive:"Collaborator",Launch:"Approver"},Following:{Critique:"CC'd",Drive:"Commenter",Launch:"Subscriber"}};var Ezb={Owned:{SELECTED_SOURCES:"mc-my-tasks-owned-selected-sources",SELECTED_TIME_BOUNDARY:"mc-my-tasks-owned-selected-time-boundary"},Collaborating:{SELECTED_SOURCES:"mc-my-tasks-collaborating-selected-sources",SELECTED_TIME_BOUNDARY:"mc-my-tasks-collaborating-selected-time-boundary"},Following:{SELECTED_SOURCES:"mc-my-tasks-following-selected-sources",SELECTED_TIME_BOUNDARY:"mc-my-tasks-following-selected-time-boundary"}};var kAb=function(){return[]},lAb=function(){return["moreRows"]},G9=function(a,b,c,d,e,f,h,k,q){Y.call(this);var u=this;this.prefsService=a;this.issueFridge=b;this.taskFridge=c;this.currentUser=d;this.router=e;this.domSafe=f;this.analytics=h;this.constants=k;this.errorHandler=q;this.collapsed=this.prefsService.isCollapsed("mc-my-tasks");var x,y,E,H,J,O;this.tabData=[{label:"Owned",description:"Tasks you own or are the author of",tasks:new B.BehaviorSubject([]),filters:{sources$:new B.BehaviorSubject(null!=
(x=Gzb("Owned"))?x:[].concat(p(E9))),timeBoundary$:new B.BehaviorSubject(null!=(y=Hzb("Owned"))?y:rK)}},{label:"Collaborating",description:"Tasks you're working on or contributing to (but don't own)",tasks:new B.BehaviorSubject([]),filters:{sources$:new B.BehaviorSubject(null!=(E=Gzb("Collaborating"))?E:[].concat(p(E9))),timeBoundary$:new B.BehaviorSubject(null!=(H=Hzb("Collaborating"))?H:rK)}},{label:"Following",description:"Tasks you're tracking or have recent activities on",tasks:new B.BehaviorSubject([]),
filters:{sources$:new B.BehaviorSubject(null!=(J=Gzb("Following"))?J:[].concat(p(E9))),timeBoundary$:new B.BehaviorSubject(null!=(O=Hzb("Following"))?O:rK)}}];this.ownedIssues$=this.tabData[0].filters.timeBoundary$.pipe(zf(function(U){return dGc(u,"assignee:me modified:$$BOUNDARY$$ status:open",U.numberOfDays)}));this.collaboratingIssues$=this.tabData[1].filters.timeBoundary$.pipe(zf(function(U){return dGc(u,"(collaborator:me OR reporter:me) -assignee:me modified:$$BOUNDARY$$ status:open",U.numberOfDays)}));
this.followingIssues$=this.tabData[2].filters.timeBoundary$.pipe(zf(function(U){return dGc(u,"(star:true OR (cc:me AND status:open) OR (commenter:me AND status:open)) AND modified:$$BOUNDARY$$",U.numberOfDays)}));this.ownedTasks$=this.tabData[0].filters.timeBoundary$.pipe(zf(function(U){return u.taskFridge.watchMany({maxTaskAgeDays:U.numberOfDays}).pipe(A(function(Z){return Z.results}),A(function(Z){var na=u.currentUser.email,oa=[];Z=l(Z);for(var wa=Z.next();!wa.done;wa=Z.next()){wa=wa.value;var Da=
void 0;switch(null==(Da=wa.resource)?void 0:Da.source){case "Critique":var Ga=Da=void 0;(null==(Da=wa.resource)?void 0:null==(Ga=Da.critiqueResource)?void 0:Ga.authorEmail)===na&&oa.push(wa);break;case "Drive":Ga=Da=void 0;(null==(Da=wa.resource)?0:null==(Ga=Da.driveResource)?0:Ga.ownedByMe)&&oa.push(wa);break;case "Launch":Ga=Da=void 0,(null==(Da=wa.resource)?0:null==(Ga=Da.launchResource)?0:Ga.ownedByMe)&&oa.push(wa)}}return oa}))}));this.collaboratingTasks$=this.tabData[1].filters.timeBoundary$.pipe(zf(function(U){return u.taskFridge.watchMany({maxTaskAgeDays:U.numberOfDays}).pipe(A(function(Z){return Z.results}),
A(function(Z){var na=u.currentUser.email,oa=[];Z=l(Z);for(var wa=Z.next();!wa.done;wa=Z.next()){wa=wa.value;var Da=void 0;switch(null==(Da=wa.resource)?void 0:Da.source){case "Critique":var Ga=Da=void 0;(null==(Da=wa.resource)?0:null==(Ga=Da.critiqueResource)?0:Ga.reviewerEmails.includes(na))&&oa.push(wa);break;case "Drive":Ga=Da=void 0;(null==(Da=wa.resource)?0:null==(Ga=Da.driveResource)?0:Ga.sharedWithMe)&&oa.push(wa);break;case "Launch":Ga=Da=void 0,(null==(Da=wa.resource)?0:null==(Ga=Da.launchResource)?
0:Ga.needApprovalFromMe)&&oa.push(wa)}}return oa}))}));this.followingTasks$=this.tabData[2].filters.timeBoundary$.pipe(zf(function(U){return u.taskFridge.watchMany({maxTaskAgeDays:U.numberOfDays}).pipe(A(function(Z){return Z.results}),A(function(Z){return aAa(Z,u.currentUser.email)}))}));this.displayColumns=["type","title","modified","role","created"];this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;eGc(this,this.ownedIssues$,this.ownedTasks$,this.tabData[0]).pipe(Af(this.destroyed$)).subscribe(function(U){u.tabData[0].tasks.next(U)});
eGc(this,this.collaboratingIssues$,this.collaboratingTasks$,this.tabData[1]).pipe(Af(this.destroyed$)).subscribe(function(U){u.tabData[1].tasks.next(U)});eGc(this,this.followingIssues$,this.followingTasks$,this.tabData[2]).pipe(Af(this.destroyed$)).subscribe(function(U){u.tabData[2].tasks.next(U)});var R;this.selectedTabIndex=null!=(R=Jzb())?R:0;this.analytics.trackEvent(xp.MISSION_CONTROL,"display","my-tasks-"+this.tabData[this.selectedTabIndex].label);this.tabData[this.selectedTabIndex].tasks.pipe(nf(),
Af(this.destroyed$)).subscribe(function(U){u.analytics.trackEvent(xp.MISSION_CONTROL,"display",0===U.length?"num-my-tasks-0":0<U.length&&11>U.length?"num-my-tasks-1-10":"num-my-tasks-10plus",U.length)});a=l(this.tabData);for(b=a.next();!b.done;b=a.next())b=b.value,d=void 0,c=null!=(d=Gzb(b.label))?d:E9,d=void 0,e=null!=(d=Hzb(b.label))?d:rK,this.analytics.trackEvent(xp.MISSION_CONTROL,"view","myTasks-filters-"+b.label+"-"+c.map(function(U){return U.filterType}).join(",")+"-"+e.numberOfDays);this.taskFridge.error$.pipe(Af(this.destroyed$)).subscribe(function(U){u.errorHandler.errorHandler(null,
U)})};W(G9,Y);G9.\u0275dir=Y.\u0275dir;
var eGc=function(a,b,c,d){var e=a.currentUser.email;return(0,B.combineLatest)([b.pipe(A(function(f){return Azb(f,e,d.label)})),c.pipe(A(function(f){return Dzb(f,d.label)})),d.filters.sources$]).pipe(A(function(f){var h=l(f);f=h.next().value;var k=h.next().value;h=h.next().value;return fGc(f,k,h)}))},fGc=function(a,b,c){var d=[];c.some(function(e){return e.filterType===Qs.filterType})&&d.push.apply(d,p(a.filter(function(e){var f;e=null!=(f=e.type)?f:"TYPE_UNSPECIFIED";return iUb.has(e)})));c.some(function(e){return e.filterType===
Rs.filterType})&&d.push.apply(d,p(a.filter(function(e){var f;e=null!=(f=e.type)?f:"TYPE_UNSPECIFIED";return!iUb.has(e)})));d.push.apply(d,p(b.filter(function(e){return c.some(function(f){return f.filterType===e.source})})));return d.sort(sAb)},dGc=function(a,b,c){return a.issueFridge.watchMany({filter:b.replace("$$BOUNDARY$$",c+"d"),pageSize:50,sort:"modified_time:desc"}).pipe(A(function(d){return d.results}))};g=G9.prototype;g.updateSourceFilter=function(a,b){Fzb(a,this.tabData[b].label);this.tabData[b].filters.sources$.next(a)};
g.toggleCollapsed=function(){this.collapsed=!this.collapsed;this.prefsService.toggleCollapsed("mc-my-tasks")};g.isCollapsed=function(){return this.collapsed};g.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};
g.navigateToResource=function(a,b){if(!(a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button)){this.sendClickAnalytics(b);var c;a&&"A"===(null==(c=a.target)?void 0:c.tagName)||("Buganizer"===b.source?a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b.link):a&&a.shiftKey?kp(this.domSafe,b.link):ws(this.router,b.link):this.domSafe.openInNewTab(b.link))}};
g.sendClickAnalytics=function(a){var b,c=(null!=(b=a.role)?b:"").split(" ").map(function(d,e){return 0===e?d.toLowerCase():d.charAt(0).toUpperCase()+d.substring(1).toLowerCase()}).join("");this.analytics.trackEvent(xp.MISSION_CONTROL,"navigate","myTasks-"+a.source+"-"+c)};G9.\u0275fac=function(a){return new (a||G9)(z(qK),z(GH),z(pI),z(WK),z(WD),z(zL),z(zH),z(cD),z(XF))};
G9.\u0275cmp=od({type:G9,selectors:[["my-tasks"]],features:[Jf],decls:12,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","My tasks helps you quickly find your active tasks and docs organized by your relation to them","matTooltip","My tasks helps you quickly find your active tasks and docs organized by your relation to them",1,"info","margin-s-left"],["mat-icon-button","",
"aria-label","Toggle collapsed state for this card",1,"gmat-button","small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],["class","main-content margin-top",4,"ngIf"],["loading",""],["dashDash",""],[1,"main-content","margin-top"],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndex","selectedTabChange"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"tab-filters","flex-kids-x","align-items-center","padded-xs-y","border-bottom"],
[4,"ngIf"],["mat-table","",3,"dataSource","class",4,"ngIf","ngIfElse"],["matTooltipShowDelay","500",1,"tab-label",3,"matTooltip"],[1,"padded-s-x",3,"selectedFilters","change"],[1,"border-left","padded-s-left",3,"selectedTimeBoundary","change"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","modified"],["matColumnDef","role"],["matColumnDef","created"],["mat-header-row","",4,
"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","moreRows"],["mat-footer-cell","","colspan","1",4,"matFooterCellDef"],["mat-footer-row","",4,"matFooterRowDef"],["class","mat-row padded-y",4,"matNoDataRow"],["mat-header-cell",""],["mat-cell",""],["matTooltipPosition","left","matTooltipShowDelay","250",3,"matTooltip"],[4,"ngIf","ngIfElse"],["noTitle",""],["class","margin-xs-right",3,"issuePriority",4,"ngIf"],[1,"subtle-link",3,"href",
"auxclick"],[1,"margin-xs-right",3,"issuePriority"],[1,"italic"],["mode","relativepast",3,"timestamp","paddingLeftPx",4,"ngIf"],["mode","relativepast",3,"timestamp","paddingLeftPx"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-footer-cell","","colspan","1"],["mat-button","","class","gmat-button margin-s-top",3,"click",4,"ngIf"],["mat-button","",1,"gmat-button","margin-s-top",3,"click"],["class","icon","svgIcon","arrow-down",4,"ngIf"],["class","icon","svgIcon","arrow-up",4,"ngIf"],
["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],["mat-footer-row",""],[1,"mat-row","padded-y"],["class","mat-cell type-l text-center padded-top","colspan","5",4,"ngIf"],["colspan","5",1,"mat-cell","type-l","text-center","padded-top"],[1,"text-center","padded"],[3,"large","ariaLabel"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," My tasks "),F(),G(4,"mat-icon",3),D(5,"button",4),L("click",function(){return b.toggleCollapsed()}),G(6,"mat-icon",5),F()(),P(7,
pAb,3,2,"div",6),F(),P(8,qAb,2,2,"ng-template",null,7,Eg),P(10,rAb,1,0,"ng-template",null,8,Eg));a&2&&(Xf("collapsed",b.isCollapsed()),w(7),C("ngIf",!b.isCollapsed()))},dependencies:[Dv,Ev,qA,eU,MJ,F9,sK,PL,Ez,DT,ET,CT,rU,mV,$U,fV,bV,ZU,hV,aV,gV,cV,eV,dV,iV,kV,jV,lV,FB,Kv],styles:[".mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}[_nghost-%COMP%]{display:block}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_ngcontent-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.main-content[_ngcontent-%COMP%]     .mat-tab-body{min-height:200px}.time-boundary-listbox[_ngcontent-%COMP%]   mat-chip-option[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}mat-header-row[_ngcontent-%COMP%], mat-row[_ngcontent-%COMP%]{min-height:2rem}mat-header-cell[_ngcontent-%COMP%]{font-weight:500}.mat-mdc-cell[_ngcontent-%COMP%], .mat-mdc-header-cell[_ngcontent-%COMP%]{padding:0 .75rem}.mat-column-type[_ngcontent-%COMP%]{width:3%;min-width:45px;text-align:center}.mat-column-type[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.mat-column-created[_ngcontent-%COMP%], .mat-column-modified[_ngcontent-%COMP%]{min-width:180px;width:12%}.mat-column-role[_ngcontent-%COMP%]{min-width:100px;width:10%}.mat-column-moreRows[_ngcontent-%COMP%]{border:none}.product-icon.check_circle_filled[_ngcontent-%COMP%]{color:var(--green-600)}.product-icon.drive_document[_ngcontent-%COMP%]{color:var(--blue-700)}.product-icon.drive_spreadsheet[_ngcontent-%COMP%]{color:var(--green-600)}.product-icon.drive_presentation[_ngcontent-%COMP%]{color:var(--yellow-600)}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}.tab-label[_ngcontent-%COMP%]{cursor:pointer}\n/*# sourceMappingURL=my_tasks.css.map */"]});var H9=function(a,b){Y.call(this);this.dialogRef=a;this.savedSearchFridge=b;this.selectedIds=new Set;this.savedSearches$=this.savedSearchFridge.watchMany({parent:"me"}).pipe(A(function(c){return c.results}))};W(H9,Y);H9.\u0275dir=Y.\u0275dir;H9.prototype.trackBySearchId=function(a,b){return b.searchId};H9.prototype.onChangeMatList=function(a){var b=this;a.options.forEach(function(c){c.selected?b.selectedIds.add(c.value):b.selectedIds.delete(c.value)})};
H9.prototype.onSave=function(){var a=[].concat(p(this.selectedIds)).map(String);this.dialogRef.close(a)};H9.prototype.onCancel=function(){this.dialogRef.close()};H9.\u0275fac=function(a){return new (a||H9)(z(Rz),z(kI))};
H9.\u0275cmp=od({type:H9,selectors:[["saved-search-picker-dialog"]],features:[Jf],decls:10,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary","data-test","save",1,"gmat-button","medium",3,"disabled","click"],["aria-label","Add a Saved Search",3,"selectionChange"],["checkboxPosition","before",3,"selected","value","height",4,"ngFor","ngForOf","ngForTrackBy"],
["checkboxPosition","before",3,"selected","value"],[1,"savedsearch-name","type-m","flex-kids-x","align-items-center"],[1,"overflow-ellipsis"],["class","line-clamp-2 muted type-s",4,"ngIf"],[1,"line-clamp-2","muted","type-s"]],template:function(a,b){a&1&&(D(0,"header",0),Q(1," Add a Saved Search\n"),F(),D(2,"div",1),P(3,vAb,3,2,"ng-container",2),T(4,"async"),F(),D(5,"div",3)(6,"button",4),L("click",function(){return b.onCancel()}),Q(7," Cancel "),F(),D(8,"button",5),L("click",function(){return b.onSave()}),
Q(9),F()());a&2&&(w(3),C("ngIf",V(4,3,b.savedSearches$)),w(5),C("disabled",0===b.selectedIds.size),w(1),S(" Save ",1<b.selectedIds.size?"("+b.selectedIds.size+")":""," "))},dependencies:[Dv,Ev,Ez,Wz,Xz,Yz,XL,YL,Kv],styles:["[_nghost-%COMP%]     .mat-dialog-title{margin-bottom:8px}[_nghost-%COMP%]     .mat-list-item-content.mat-list-item-content.mat-list-item-content{padding:4px;padding-left:24px}.mat-dialog-content[_ngcontent-%COMP%]{width:500px;padding:0}\n/*# sourceMappingURL=saved_search_picker_dialog.css.map */"]});var I9=function(a){this.dialog=a};I9.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){Pz(b.dialog.open(H9,c)).subscribe(function(e){e=void 0===e?[]:e;null==a||a(e);d(e)})})};I9.\u0275fac=function(a){return new (a||I9)(n(Uz))};I9.\u0275prov=$c({token:I9,factory:I9.\u0275fac,providedIn:"root"});var zAb=function(){return{assignee:"avatar-if-open"}},yAb=function(a){return{hideColumnHeaders:!0,modes:a}},gGc={modes:{assignee:"avatar-if-open"},rowLimit:15},hGc={active:"modifiedTime",direction:"desc"},J9=function(a,b,c,d){var e=this;this.prefsService=a;this.issueFridge=b;this.savedSearchFridge=c;this.analytics=d;this.TREE_COLUMNS=[].concat(p(pCc));this.FLAT_LIST_COLUMNS=[].concat(p(oCc));this.INITIAL_SORT=hGc;this.tableOptions=gGc;this.typeAndId$=new B.BehaviorSubject([void 0,void 0]);this.typeAndId$.pipe(zf(function(f){var h=
l(f);f=h.next().value;h=h.next().value;return"savedsearch"===f?e.savedSearchFridge.watchOne(h):(0,B.of)(void 0)}));this.issueFilter$=this.typeAndId$.pipe(A(function(f){var h=l(f);f=h.next().value;h=h.next().value;if("issue"!==f){if("savedsearch"===f)return"savedsearchid:"+h;if("hotlist"===f)return"hotlistid:"+h;throw Error("We`"+f);}}));this.issueQuery$=this.issueFilter$.pipe(A(function(f){return{filter:f,pageSize:200,sort:"modified_time:desc"}}));this.issueIds$=this.issueQuery$.pipe(zf(function(f){return e.issueFridge.watchMany(f)}),
A(function(f){return f.results.map(function(h){return h.issueId})}))};Qh.Object.defineProperties(J9.prototype,{reference:{configurable:!0,enumerable:!0,set:function(a){this.entityReference=a;this.referencedId=ns(a);this.entityType=ps(a);this.tableOptions=Object.assign({},gGc);this.analytics.trackEvent(xp.MISSION_CONTROL,"view","work-area-"+this.entityType);this.typeAndId$.next([this.entityType,this.referencedId])}}});J9.\u0275fac=function(a){return new (a||J9)(z(qK),z(GH),z(kI),z(zH))};
J9.\u0275cmp=od({type:J9,selectors:[["one-work-area"]],inputs:{reference:"reference"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","muted",4,"ngSwitchDefault"],[1,"margin-bottom",3,"ref","query"],[3,"issueIds","options","filters","tableColumns","initialSort"],[1,"margin-bottom",3,"id"],[3,"saveExpansionAtKey","rootIssueId","filters","tableColumns","options","defaultExpansionLevel"],[1,"muted"]],template:function(a,b){a&1&&P(0,CAb,6,4,"ng-container",0);a&2&&C("ngIf",
b.referencedId)},dependencies:[Ev,Fv,Gv,Hv,l6,L6,P6,O6,c6,F6,Kv],styles:["[_nghost-%COMP%] { display: block; }"]});var K9=function(a,b,c,d,e,f,h,k){Y.call(this);this.prefsService=a;this.issueFridge=b;this.hotlistFridge=c;this.savedSearchFridge=d;this.hotlistPicker=e;this.issuePicker=f;this.savedSearchPicker=h;this.analytics=k;this.SECTION_SLUG="work-areas-wrapper-card";this.ROBOT_SLEEPING=P6b;this.makeBuganizerUrl=qkb;this.getEntityTypeName=pkb;this.titles={};this.workAreaReferences$=this.prefsService.prefs$.pipe(A(function(u){var x;return null!=(x=null==u?void 0:u.workAreas)?x:[]}));this.issues$=this.workAreaReferences$.pipe(A(function(u){return u.filter(function(x){return"issue"===
ps(x)})}),A(function(u){return u.map(ns)}),mf(ki),A(function(u){return u.filter(cl)}),zf(this.issueFridge.watchSet));this.hotlists$=this.workAreaReferences$.pipe(A(function(u){return u.filter(function(x){return"hotlist"===ps(x)})}),A(function(u){return u.map(ns)}),mf(ki),A(function(u){return u.filter(cl)}),zf(this.hotlistFridge.watchSet));this.savedSearches$=this.workAreaReferences$.pipe(A(function(u){return u.filter(function(x){return"savedsearch"===ps(x)})}),A(function(u){return u.map(ns)}),mf(ki),
A(function(u){return u.filter(cl)}),zf(this.savedSearchFridge.watchSet));this.issues$.pipe(Af(this.destroyed$)).subscribe(this.updateTitlesForIssues.bind(this));this.hotlists$.pipe(Af(this.destroyed$)).subscribe(this.updateTitlesForHotlists.bind(this));this.savedSearches$.pipe(Af(this.destroyed$)).subscribe(this.updateTitlesForSavedSearches.bind(this));a=this.workAreaReferences.length;this.analytics.trackEvent(xp.MISSION_CONTROL,"display","num-work-areas-"+a,a);var q;a=Object.values(null!=(q=this.prefsService.prefs.quickFilters)?
q:{}).flat();0<a.length&&this.analytics.trackEvent(xp.MISSION_CONTROL,"view","workAreas-filters-"+a.join(","))};W(K9,Y);K9.\u0275dir=Y.\u0275dir;K9.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("work-areas-wrapper-card")};K9.prototype.updateTitlesForIssues=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.titles[b.issueId]=null==(c=b.snapshot[0])?void 0:c.title}};
K9.prototype.updateTitlesForHotlists=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[mkb(b.hotlistId)]=b.name};K9.prototype.updateTitlesForSavedSearches=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[nkb(b.searchId)]=b.name};
var iGc=function(a){var b,c,d,e,f,h,k,q,u;return Ne(function(x){if(1==x.nextAddress)return b=a.workAreaReferences.filter(function(y){return"hotlist"===ps(y)}).map(ns).map(Number),x.yield(LDc(a.hotlistPicker,b),2);c=x.yieldResult;f=(null!=(e=null==(d=c)?void 0:d.added)?e:[]).map(mkb);q=(null!=(k=null==(h=c)?void 0:h.removed)?k:[]).map(mkb);u=a.workAreaReferences.slice();u=qra(q,u);u=sra(f,u);GAb(a.prefsService,{workAreaUrls:u});Se(x)})},jGc=function(a){var b,c,d;return Ne(function(e){if(1==e.nextAddress)return e.yield(a.issuePicker.open({title:"Choose a parent issue"}),
2);b=e.yieldResult;d=null==(c=b)?void 0:c[0];O0b(a.prefsService,d);Se(e)})},kGc=function(a){var b,c,d,e;return Ne(function(f){if(1==f.nextAddress)return f.yield(a.savedSearchPicker.open(),2);b=f.yieldResult;d=null!=(c=b)?c:[];if(0===d.length)return f.return();e=d.map(nkb);O0b(a.prefsService,e);Se(f)})};
Qh.Object.defineProperties(K9.prototype,{workAreaReferences:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.prefsService.prefs.workAreas)?a:[]}},chosenTabForWork:{configurable:!0,enumerable:!0,get:function(){var a,b=null==(a=this.prefsService.prefs.selectedTabs)?void 0:a["work-areas-wrapper-card"];if(null!=b)return String(b)}},isEmpty:{configurable:!0,enumerable:!0,get:function(){return 0===this.workAreaReferences.length}},isCollapsed:{configurable:!0,enumerable:!0,get:function(){return this.prefsService.isCollapsed("work-areas-wrapper-card")}}});
K9.\u0275fac=function(a){return new (a||K9)(z(qK),z(GH),z(rH),z(kI),z(b7),z(MV),z(I9),z(zH))};
K9.\u0275cmp=od({type:K9,selectors:[["work-areas-wrapper-card"]],hostVars:4,hostBindings:function(a,b){a&2&&Xf("is-empty",b.isEmpty)("collapsed",b.isCollapsed)},features:[Jf],decls:21,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on","matTooltip","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on",
1,"info","margin-s-left"],["mat-icon-button","","aria-label","Toggle expansion state",1,"gmat-button","small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],["mat-stroked-button","","class","gmat-button small add-work-area margin-s-left","title","Add a work area",3,"matMenuTriggerFor",4,"ngIf"],["addMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","","disabled",""],["emptyState",""],["gmat-tabs","","class","main-content margin-top",3,"selectedIndex","selectedIndexChange",
4,"ngIf","ngIfElse"],["mat-stroked-button","","title","Add a work area",1,"gmat-button","small","add-work-area","margin-s-left",3,"matMenuTriggerFor"],["svgIcon","add",1,"icon-s"],[1,"center-text","empty-state","main-content"],["aria-hidden","true","alt","",2,"max-width","130px",3,"src"],[1,"type-l","muted","margin-y"],["mat-flat-button","","color","primary","title","Add a work area",3,"matMenuTriggerFor"],["svgIcon","add"],["gmat-tabs","",1,"main-content","margin-top",3,"selectedIndex","selectedIndexChange"],
[4,"ngFor","ngForOf"],["mat-tab-label",""],["matTabContent",""],["mat-icon-button","","aria-label","More options","aria-haspopup","true",1,"gmat-button","small","muted","menu-trigger",3,"matMenuTriggerFor","click"],["svgIcon","more-settings-vertical",1,"icon-xs"],["data-test","edit-menu",1,"foo"],["editMenu","matMenu"],["mat-menu-item","","title","View the work area full screen",3,"routerLink"],["svgIcon","link",1,"icon-s"],["mat-menu-item","",3,"disabled","click"],["svgIcon","arrow-backward",1,"icon-s"],
["svgIcon","arrow-forward",1,"icon-s"],["mat-menu-item","",3,"title","click"],["svgIcon","close",1,"icon-s"],[1,"margin-top",3,"reference"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Work areas "),F(),G(4,"mat-icon",3),D(5,"button",4),L("click",function(){return b.toggleCollapsed()}),G(6,"mat-icon",5),F(),P(7,DAb,3,1,"button",6),D(8,"mat-menu",null,7)(10,"button",8),L("click",function(){return jGc(b)}),Q(11,"Issue (parent/child project)"),F(),D(12,"button",8),L("click",
function(){return iGc(b)}),Q(13,"Hotlist"),F(),D(14,"button",8),L("click",function(){return kGc(b)}),Q(15,"Saved Search"),F(),D(16,"button",9),Q(17,"Component"),F()()(),P(18,EAb,7,2,"ng-template",null,10,Eg),P(20,KAb,2,2,"mat-tab-group",11),F());if(a&2){var c=N(19);w(7);C("ngIf",0<b.workAreaReferences.length);w(13);C("ngIf",0<b.workAreaReferences.length)("ngIfElse",c)}},dependencies:[Dv,Ev,qA,YD,DT,ET,CT,zT,AB,yB,zB,Ez,dD,rU,FB,J9],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     issue-as-project-card>.carded{border:none;padding-left:0}.add-work-area[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-3px}.add-work-area.gmat-button[_ngcontent-%COMP%], .add-work-area.gmat-button.gmat-button.gmat-button[_ngcontent-%COMP%]{padding-left:4px}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}.empty-state[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:32px}[_nghost-%COMP%]     .mat-tab-label .mat-tab-label-content{padding-left:4px;margin-right:-4px}[_nghost-%COMP%]     .mat-tab-label .menu-trigger{visibility:hidden}[_nghost-%COMP%]     .mat-tab-label.mat-tab-label-active .menu-trigger, [_nghost-%COMP%]     .mat-tab-label:hover .menu-trigger{visibility:visible}.collapsed[_nghost-%COMP%]   .main-content[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   .stats[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   footer[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .add-work-area[_ngcontent-%COMP%]{display:none}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_nghost-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}[_nghost-%COMP%]{min-height:800px}.collapsed[_nghost-%COMP%], .is-empty[_nghost-%COMP%]{min-height:0}"]});var lGc=xp.MISSION_CONTROL,L9=function(a,b,c,d,e){var f=this;this.pageTitle=a;this.hostElement=b;this.analytics=c;this.userFeedback=d;this.prefsService=e;this.captureAnyClick=function(h){h=h.target;for(var k=[];h.parentNode;){var q=void 0,u=h,x=[];for(q in u.dataset)"true"===u.dataset[q]&&x.push(q);q=x;q=0<q.length?"["+q.join(",")+"]":"";k.unshift(h.tagName+q);h=h.parentNode}h=k.join(" > ");k=l(Object.entries(mGc));for(q=k.next();!q.done;q=k.next())if(u=l(q.value),q=u.next().value,u=u.next().value,
h.includes(q)){f.analytics.trackEvent(lGc,"click",u);break}}};L9.prototype.ngOnInit=function(){this.pageTitle.setTitle("Home");this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);var a=l(nGc(this)),b=a.next().value;a=a.next().value;this.analytics.trackEvent(lGc,"sections-on-load",b,a)};L9.prototype.ngOnDestroy=function(){this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};
var nGc=function(a){a=[a.prefsService.isCollapsed("needs-attention-wrapper")?"-":"a",a.prefsService.isCollapsed("mc-my-tasks")?"-":"t",a.prefsService.isCollapsed("work-areas-wrapper-card")?"-":"w"];var b=a.filter(function(c){return"-"!==c}).length;return[a.join(""),b]};L9.\u0275fac=function(a){return new (a||L9)(z(lG),z(ae),z(zH),z($K),z(qK))};
L9.\u0275cmp=od({type:L9,selectors:[["ng-component"]],decls:15,vars:0,consts:[["href","https://fonts.googleapis.com/css2?family=Google+Material+Icons:wght@400;500;700","rel","stylesheet"],[1,"a11y-only"],[1,"padded","flex-kids-y","gap","pos-fill","bg-off-main","overflow","overflow-on-print-media"],[1,"flex-kids-x","align-items-center","justify-flex-end","info-row"],["href","http://go/task-mission-control","target","_blank",1,"margin-right","learn-more-link"],["mat-stroked-button","",1,"gmat-button",
"medium",3,"click"],[1,"a"],[1,"t"],[1,"w"]],template:function(a,b){a&1&&(G(0,"link",0),D(1,"h2",1),Q(2,"Mission Control"),F(),D(3,"div",2)(4,"div",3)(5,"a",4),Q(6,"Learn about Mission Control"),F(),D(7,"button",5),L("click",function(){A1b(b.userFeedback)}),Q(8,"Mission Control feedback"),F()(),D(9,"section",6),G(10,"needs-attention-wrapper"),F(),D(11,"section",7),G(12,"my-tasks"),F(),D(13,"section",8),G(14,"work-areas-wrapper-card"),F()())},dependencies:[Ez,K9,D9,G9],styles:["[_nghost-%COMP%]{display:block}.info-row[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     section>*>.carded{box-shadow:0 1px 2px 0 hsla(0,0%,50%,.3),0 2px 6px 2px hsla(0,0%,50%,.15);border:none}.dark-mode   [_nghost-%COMP%]     section>*>.carded{box-shadow:0 2px 3px 0 rgba(0,0,0,.3),0 6px 10px 4px rgba(0,0,0,.15)}.learn-more-link[_ngcontent-%COMP%]{color:#185abc;color:var(--link-high-contrast)}.learn-more-link[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=mission_control_wrapper.css.map */"]});
var mGc={"NEEDS-ATTENTION-WRAPPER":"needs-attention","MY-TASKS":"my-tasks","WORK-AREAS-WRAPPER-CARD":"work-areas"};var M9=function(){this.selectedSignals$=(0,B.of)([]);this.selected=new Yu;this.ALL_SIGNAL_TYPES=$Da();this.isOpen=!1};M9.prototype.openMenu=function(){this.isOpen=!0};M9.prototype.closeMenu=function(){this.isOpen=!1};var PAb=function(a){var b=a.checkboxes.filter(function(c){return c.checked}).map(function(c){return c.value});a.selected.emit(b);a.closeMenu()};M9.\u0275fac=function(a){return new (a||M9)};
M9.\u0275cmp=od({type:M9,selectors:[["select-signals-menu"]],viewQuery:function(a,b){a&1&&zg(PK,5);if(a&2){var c;yg(c=Bg())&&(b.checkboxes=c)}},inputs:{selectedSignals$:"selectedSignals$"},outputs:{selected:"selected"},decls:4,vars:4,consts:[["mat-icon-button","","aria-label","Show menu to select signals","aria-haspopup","true","cdkOverlayOrigin","",1,"gmat-button","large",3,"click"],["trigger","cdkOverlayOrigin"],["svgIcon","filter"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","",
"cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop","cdkConnectedOverlayPanelClass","select-signals-menu",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","detach","backdropClick"],["cdkTrapFocus","","cdkTrapFocusAutoCapture",""],[1,"margin-s-y","margin-x","heading-s"],["mat-button","",1,"gmat-button","small","float-right",3,"click"],["class","signal-types",4,"ngIf"],[1,"flex-kids-x","justify-flex-end","padded-s","gap-s"],["mat-stroked-button","",3,"click"],["mat-flat-button",
"","color","primary",3,"click"],[1,"signal-types"],[4,"ngFor","ngForOf"],["class","signal flex-kids-x padded-s padded-right",4,"ngIf"],[1,"signal","flex-kids-x","padded-s","padded-right"],[1,"margin-right","margin-s-left","margin-xs-top",3,"id","aria-labelledby","value","checked"],[1,"type-l","display-block",3,"id","for"],[3,"for"]],template:function(a,b){a&1&&(D(0,"button",0,1),L("click",function(){return b.openMenu()}),G(2,"mat-icon",2),F(),P(3,QAb,13,3,"ng-template",3),L("detach",function(){return b.closeMenu()})("backdropClick",
function(){return b.closeMenu()}));if(a&2){var c=N(1);Xf("menu-open",b.isOpen);w(3);C("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.isOpen)}},dependencies:[Dv,Ev,qA,PK,Ez,dD,Ry,Qy,Lw,Kv],styles:[".select-signals-menu{box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15);border-radius:4px;background-color:#fff;background-color:var(--background);-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-width:18rem;max-height:calc(100vh - 100px);overflow-y:auto}.menu-open[_ngcontent-%COMP%]{background-color:#d2e3fc;background-color:var(--selected-bg)}.signal[_ngcontent-%COMP%]:hover{background-color:#e8f0fe;background-color:var(--primary-c50)}\n/*# sourceMappingURL=select_signals_menu.css.map */"]});var N9=function(a){this.dateFormatter=a;this.iconOnly=this.isSelected=this.generalDescriptionOnly=!1;this.count=-1;this.matTooltipShowDelay=0;this.removable=!1;this.onRemove=new Yu},UAb=function(a){if(a.generalDescriptionOnly)return a.signal.signalType?(0,B.of)(bEa(a.signal)):(0,B.of)("");var b;return null!=(b=a.signal.timestamp)&&b.seconds?a.dateFormatter.formatUserCalendar(new Date(1E3*a.signal.timestamp.seconds)).pipe(A(function(c){return aEa(a.signal,c)})):(0,B.of)(aEa(a.signal))};
N9.prototype.onClickRemove=function(){this.onRemove.emit(this.signal.signalType)};N9.\u0275fac=function(a){return new (a||N9)(z(OL))};
N9.\u0275cmp=od({type:N9,selectors:[["b-signal-chip"]],inputs:{signal:"signal",generalDescriptionOnly:"generalDescriptionOnly",isSelected:"isSelected",iconOnly:"iconOnly",count:"count",matTooltipShowDelay:"matTooltipShowDelay",removable:"removable"},outputs:{onRemove:"onRemove"},decls:1,vars:1,consts:[[3,"full-chip","selected","matTooltip","matTooltipShowDelay","class",4,"ngIf"],[3,"matTooltip","matTooltipShowDelay"],[3,"svgIcon"],[4,"ngIf"],["mat-icon-button","","class","gmat-button small remove-button",
"matTooltip","Remove filter","matTooltipPosition","above",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Remove filter","matTooltipPosition","above",1,"gmat-button","small","remove-button",3,"click"],[1,"a11y-only"],["svgIcon","close"]],template:function(a,b){a&1&&P(0,VAb,5,14,"span",0);a&2&&(a=b.signal.signalType?S0b.has(b.signal.signalType)?S0b.get(b.signal.signalType):null:null,C("ngIf",a))},dependencies:[Ev,qA,Ez,FB,Kv],styles:[".full-chip[_ngcontent-%COMP%]{padding:0 4px}.full-chip.needs-reporter-input[_ngcontent-%COMP%], .full-chip.newly-assigned[_ngcontent-%COMP%], .full-chip.newly-blocking[_ngcontent-%COMP%], .full-chip.replied-to-mention[_ngcontent-%COMP%]{padding-left:8px}.chippy.selected[_ngcontent-%COMP%]{font-weight:500}.chippy.selected[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:inherit}.chippy.selected.near-slo[_ngcontent-%COMP%]{color:#bd4800;color:var(--orange-text);box-shadow:inset 0 0 0 1px #bd4800;box-shadow:inset 0 0 0 1px var(--orange-text);background-color:#fff3e9;background-color:var(--orange-bg)}.chippy.selected.mentioned-me[_ngcontent-%COMP%]{color:#d01884;color:var(--pink-text);box-shadow:inset 0 0 0 1px #d01884;box-shadow:inset 0 0 0 1px var(--pink-text);background-color:#fff2f9;background-color:var(--pink-bg)}.chippy.selected.unblocked[_ngcontent-%COMP%]{color:#34989d;color:var(--cyan-text);box-shadow:inset 0 0 0 1px #34989d;box-shadow:inset 0 0 0 1px var(--cyan-text);background-color:#ebfcfe;background-color:var(--cyan-bg)}.chippy.selected.needs-reporter-input[_ngcontent-%COMP%]{color:#9334e6;color:var(--purple-text);box-shadow:inset 0 0 0 1px #9334e6;box-shadow:inset 0 0 0 1px var(--purple-text);background-color:#f9f3ff;background-color:var(--purple-bg)}.chippy.selected.newly-blocking[_ngcontent-%COMP%]{color:#d42521;color:var(--red-text);box-shadow:inset 0 0 0 1px #d42521;box-shadow:inset 0 0 0 1px var(--red-text);background-color:#fff2f1;background-color:var(--red-bg)}.chippy.selected.newly-assigned[_ngcontent-%COMP%]{color:#185abc;color:var(--blue-text);box-shadow:inset 0 0 0 1px #185abc;box-shadow:inset 0 0 0 1px var(--blue-text);background-color:#f2f6ff;background-color:var(--blue-bg)}.chippy.selected.replied-to-mention[_ngcontent-%COMP%]{color:#137333;color:var(--green-text);box-shadow:inset 0 0 0 1px #137333;box-shadow:inset 0 0 0 1px var(--green-text);background-color:#edfbf1;background-color:var(--green-bg)}\n/*# sourceMappingURL=signal_chip.css.map */"]});var YAb=function(a){return{signalType:a}},$Ab=function(){return[]},O9=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J){Y.call(this);this.appSearchState=a;this.pageTitle=b;this.paths=c;this.userPreferencesManager=d;this.needsAttentionApi=e;this.cdr=f;this.analytics=h;this.bLocation=k;this.domSafe=q;this.issueFridge=u;this.errorHandler=x;this.snackbar=y;this.currentTracker=E;this.appEvents=H;this.issuePagination=J;this.issues=[];this.columns=[eZ,fZ,gZ,new Cp({name:"alerts",sortable:!1,draggable:!1,fullLabel:"Alerts",
label:"ALERTS"}),Object.assign({},Dp("priority"),{draggable:!1}),Object.assign({},Dp("title"),{draggable:!1}),Object.assign({},Dp("assignee"),{draggable:!1}),Object.assign({},Dp("status"),{draggable:!1}),Object.assign({},Dp("issueId"),{draggable:!1}),new Cp({name:"dismiss",sortable:!1,draggable:!1,isMetadata:!0})];this.starInProgress={};this.dismissInProgress={};this.dismissSelectedInProgress=!1;this.lastDismissedRowIssueIds=new Set;this.listViewPrefs$=this.userPreferencesManager.listViewPreferences$;
this.lastCheckedIndex=this.focusedRowIndex=null;this.isLoading=!1;this.ISSUE_STATUS_JS_ICON_NAME=TTb;this.STATUS_JS_FULL_TEXT=Uk;this.STATUS_JS_TERSE=QC;this.ALL_SIGNAL_TYPES=$Da();this.selectedSignals$=new B.BehaviorSubject([]);this.sortConfig={field:"priority",direction:"ASC"};this.HOTKEYS=BD;this.SPACE_EMPTY_STATE=S6b};W(O9,Y);O9.\u0275dir=Y.\u0275dir;
O9.prototype.ngOnInit=function(){var a=this;this.pageTitle.setTitle("Needs attention");setTimeout(function(){a.appSearchState.clear()});this.userPreferencesManager.needsAttentionPreferences$.pipe(nf()).subscribe(function(b){var c;a.selectedSignals$.next(null!=(c=b.selectedSignals)?c:[])});this.selectedSignals$.pipe(Af(this.destroyed$)).subscribe(function(){a.fetchIssues()});this.destroyed$.pipe(nf()).subscribe(function(){var b;null==(b=a.snackBarRefForUndo)||b.dismiss()})};
var XAb=function(a,b){a.selectedSignals$.next(b);a.userPreferencesManager.save({needsAttentionPreferences:{selectedSignals:b}}).pipe(nf()).subscribe()};O9.prototype.hasResults=function(){return 0<this.issues.length-this.lastDismissedRowIssueIds.size};O9.prototype.issueDescription=function(a){return"Needs attention Issue ID "+a.id+" titled: "+a.title};
O9.prototype.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(oBb(this,a),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):c&&c.shiftKey?kp(this.domSafe,a):this.bLocation.url(a))};
var oBb=function(a,b){var c,d=null==(c=a.issues.find(function(e){return e.issueId===b}))?void 0:c.signals.map(function(e){return e.signalType}).sort().join(",");a.analytics.trackEvent(xp.NEEDS_ATTENTION,"viewIssue",d)},iBb=function(a){return 0===a.issues.length?!1:a.issues.every(function(b){return b.selected})};g=O9.prototype;g.someIssuesSelected=function(){return this.issues.some(function(a){return a.selected})};
g.getHeaderCheckboxState=function(){if(0===this.issues.length)return"unchecked";for(var a=!0,b=!1,c=l(this.issues),d=c.next();!d.done;d=c.next())d.value.selected?b=!0:a=!1;return a?"checked":b?"indeterminate":"unchecked"};g.toggleAllIssueSelection=function(){if(0!==this.issues.length){for(var a=!this.someIssuesSelected(),b=l(this.issues),c=b.next();!c.done;c=b.next())c.value.selected=a;this.cdr.detectChanges()}};
g.onCheckboxClicked=function(a,b,c){if(a.shiftKey&&(a=c.selected,null!==this.lastCheckedIndex&&0<this.issues.length)){if(b<this.lastCheckedIndex){var d=b+1;var e=this.lastCheckedIndex+1}else d=this.lastCheckedIndex,e=b;d=this.issues.slice(d,e);d=l(d);for(e=d.next();!e.done;e=d.next())e.value.selected=!a}c.selected=!c.selected;this.lastCheckedIndex=b};
g.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,TYb(this.issueFridge,String(a.issueId),a.starred).pipe(nf(),Af(this.destroyed$)).subscribe(function(){b.starInProgress[a.issueId]=!1;b.cdr.detectChanges()},function(c){a.starred=!a.starred;b.starInProgress[a.issueId]=!1;b.errorHandler.errorHandler(null,c);b.cdr.detectChanges()}))};
var bBb=function(a){a.dismissSelectedInProgress=!0;for(var b=[],c=l(a.issues),d=c.next();!d.done;d=c.next())d=d.value,d.selected&&(b.push(d.issueId),a.dismissInProgress[d.issueId]=!0);IF(a.needsAttentionApi,b,!0).then(function(){return void oGc(a,b)},function(e){return void a.errorHandler.errorHandler(null,e)}).finally(function(){a.dismissSelectedInProgress=!1;for(var e=l(b),f=e.next();!f.done;f=e.next())a.dismissInProgress[f.value]=!1})},sBb=function(a,b){a.dismissInProgress[b.issueId]||(a.dismissInProgress[b.issueId]=
!0,IF(a.needsAttentionApi,[b.issueId],!0).then(function(){return void oGc(a,[b.issueId])},function(c){return void a.errorHandler.errorHandler(null,c)}).finally(function(){a.dismissInProgress[b.issueId]=!1}))},oGc=function(a,b){a.analytics.trackEvent(xp.NEEDS_ATTENTION,"dismissIssue","numberOfIssues",b.length);for(var c=l(b),d=c.next();!d.done;d=c.next())a.lastDismissedRowIssueIds.add(d.value);c=l(a.issues);for(d=c.next();!d.done;d=c.next())d=d.value,b.includes(d.issueId)&&(d.selected=!1);a.appEvents.needsAttentionIssueCount.next(a.issues.length-
b.length);a.cdr.detectChanges();a.snackBarRefForUndo=a.snackbar.open({message:1===b.length?'Issue dismissed from "Needs attention" list':'All selected issues dismissed from "Needs attention" list',actionLabel:"Undo"});a.snackBarRefForUndo._afterDismissed.pipe(nf()).subscribe(function(e){e.dismissedByAction&&pGc(a,b)})},pGc=function(a,b){IF(a.needsAttentionApi,b,!1).then(function(){a.analytics.trackEvent(xp.NEEDS_ATTENTION,"unDismissIssue","numberOfIssues",b.length);for(var c=l(b),d=c.next();!d.done;d=
c.next())a.lastDismissedRowIssueIds.delete(d.value);a.appEvents.needsAttentionIssueCount.next(a.issues.length);a.cdr.detectChanges();a.snackbar.open({message:"Issue"+(1<b.length?"s":"")+' un-dismissed from "Needs attention" list'})},function(c){return void a.errorHandler.errorHandler(null,c)})};O9.prototype.isLowPriority=function(a){return 2<=Number(a.priority)};O9.prototype.isHighPriority=function(a){return 2>Number(a.priority)};O9.prototype.isP0Priority=function(a){return 0===Number(a.priority)};
O9.prototype.fetchIssues=function(){var a=this,b;null==(b=this.snackBarRefForUndo)||b.dismiss();this.lastDismissedRowIssueIds.clear();this.isLoading=!0;b=qGc(this);b={page:1,resultsPerPage:this.needsAttentionApi.COUNT,sortColumns:b?[b]:[],returnUrl:this.paths.needsAttention(),trackerIds:jYb(this.currentTracker),fromNeedsAttention:!0,selectedSignals:this.selectedSignals$.value};LF(this.issuePagination);KF(this.issuePagination,b).then(function(c){a.issues=c.issues;a.isLoading=!1;a.cdr.detectChanges()})};
var IBb=function(a){var b=a.selectedSignals$.value;return a.issues.filter(function(c){var d=c.signals.some(function(e){return b.includes(e.signalType)});return!a.lastDismissedRowIssueIds.has(c.issueId)&&d})},qGc=function(a){var b=Mi(a.sortConfig.field);a="ASC"===a.sortConfig.direction?"ASCENDING":"DESCENDING";return b?new Pi(b,a):null};O9.prototype.onSortChange=function(a){this.sortConfig=a;this.fetchIssues()};
O9.\u0275fac=function(a){return new (a||O9)(z(mK),z(lG),z(xE),z(iE),z(HF),z(yD,2),z(zH),z(wE),z(zL),z(GH),z(XF),z(TF),z(jG),z(DF),z(JF))};
O9.\u0275cmp=od({type:O9,selectors:[["ng-component"]],features:[lg([yD]),Jf],decls:9,vars:6,consts:[[1,"a11y-only"],[1,"border-bottom","padded-xs-y"],["class","applied-signals flex-kids-x",4,"ngIf"],[4,"ngIf"],[1,"needs-attention-table","overflow"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading layout-centered-column gap","tabindex","-1",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"applied-signals","flex-kids-x"],[1,"attention-actions","flex-kids-x","align-items-center"],
["mat-icon-button","","color","primary","matTooltip","Refresh","aria-label","Refresh",1,"gmat-button","large",3,"hotkey","click","onHotkey"],["svgIcon","refresh"],[1,"heading-s","margin-xs-y"],["href","http://go/b-needs-attention-guide","matTooltip","Needs attention signals guide","aria-label","Needs attention signals guide","mat-icon-button","","target","_blank",1,"small","margin-xs-x"],["svgIcon","help-outline",1,"icon-s"],[1,"padded-s-left","border-left","signal-chips","flex-kids-x","flex-wrap",
"align-items-center"],[1,"margin-s-right",3,"selectedSignals$","selected"],["class","chippy rounded",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"chippy","rounded"],[3,"removable","generalDescriptionOnly","iconOnly","isSelected","matTooltipShowDelay","signal","onRemove"],["mat-button","","color","primary",3,"disabled","click"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading","layout-centered-column","gap"],["draggable","false","aria-hidden","true","alt","",1,"empty-state-img","padded-y",3,"src"],
[1,"type-l"],["class","muted",4,"ngIf","ngIfElse"],["noResults",""],[1,"muted"],[1,"bv2-grid-container"],["scrollContainer",".needs-attention-table",1,"keep-focus-ring",3,"list","columns","focusedRowIndex","enableDragDropHeader","rowLabelRenderer","sort","focusedRowIndexChange","rowClick","sortChange"],["class","focus-indicator",4,"forHeaderCell"],["class","selected-box",4,"forHeaderCell"],[4,"forHeaderCellDefault"],["class","focus-indicator",4,"forViewCell"],["class","selected-box",4,"forViewCell"],
["class","star-cell",4,"forViewCell"],["data-template","issueId","class","clickable",4,"forViewCell"],["class","clickable signal-cell",4,"forViewCell"],[4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height",4,"forViewCell"],["class","priority-cell clickable",4,"forViewCell"],["data-stable-cell","status","class","clickable",4,"forViewCell"],["class","clickable",4,"forViewCell"],[1,"focus-indicator"],[1,"selected-box"],["tabindex","0","aria-label","Select all issues","role",
"checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"state","click","keydown.enter","keydown.space"],[3,"column"],["tabindex","-1","role","checkbox",3,"state","click"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage","starClicked"],["data-template","issueId",1,"clickable"],["tabindex","-1",1,"row-issue-id",3,"href","click"],[1,"clickable","signal-cell"],[3,"signal","iconOnly","isSelected"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container"],[3,"accessLevel",
"compactMode"],[3,"retentionState","showOnlyInDangerZone","compactMode","modifiedTime"],[1,"bv2-grid-cell-text"],[1,"row-issue-title",3,"href","click"],["class","bv2-hotlist-chips",4,"ngIf"],[1,"bv2-hotlist-chips"],[3,"id","removable",4,"ngFor","ngForOf"],[3,"id","removable"],[1,"priority-cell","clickable"],[1,"bv2-priority"],["data-stable-cell","status",1,"clickable"],[3,"ngSwitch","title"],["class","icon-s",3,"svgIcon",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"class",4,"ngSwitchDefault"],[1,"icon-s",
3,"svgIcon"],[1,"clickable"],[3,"email",4,"ngIf"],[3,"email"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1,"Issues which need your attention"),F(),D(2,"div",1),P(3,aBb,14,9,"div",2),P(4,cBb,3,1,"div",3),F(),D(5,"div",4),P(6,dBb,4,0,"div",5),P(7,gBb,8,6,"div",6),P(8,JBb,15,18,"div",7),F());a&2&&(w(3),C("ngIf",!b.someIssuesSelected()),w(1),C("ngIf",b.someIssuesSelected()),w(1),Nf("aria-busy",b.isLoading),w(1),C("ngIf",b.isLoading),w(1),C("ngIf",!b.isLoading&&!b.hasResults()),w(1),C("ngIf",!b.isLoading&&
b.hasResults()))},dependencies:[Dv,Ev,Fv,Gv,Hv,qA,dz,Ez,Fz,BW,GW,CW,DW,EW,MJ,KJ,JW,XO,TY,mW,CN,FB,sE,N9,M9,Kv,MI],styles:[".needs-attention-table[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.applied-signals[_ngcontent-%COMP%]{padding-left:5px}.attention-actions[_ngcontent-%COMP%]{min-width:fit-content}.attention-actions[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:normal}.empty-state-img[_ngcontent-%COMP%]{max-width:320px}.select-all-signals[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px 0 8px}.select-all-signals.selected[_ngcontent-%COMP%]{font-weight:500;color:#185abc;color:var(--selected-text);box-shadow:inset 0 0 0 1px #185abc;box-shadow:inset 0 0 0 1px var(--selected-text);background-color:#d2e3fc;background-color:var(--selected-bg)}/*# sourceMappingURL=needs_attention.css.map */"],
changeDetection:0});var LBb=function(a){return{feature:a}},P9=function(a){this.beapService=a;this.beapFeaturesTF$=pzc(this.beapService,"TEAM_FOOD");this.beapFeaturesEA$=pzc(this.beapService,"EARLY_ACCESS");this.hasFeatures$=(0,B.combineLatest)([this.beapFeaturesTF$,this.beapFeaturesEA$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return 0<b.length+c.length}));this.hasFeaturesTF$=this.beapFeaturesTF$.pipe(A(function(b){return 0<b.length}));this.hasFeaturesEA$=this.beapFeaturesEA$.pipe(A(function(b){return 0<
b.length}));this.linkClicked={}};P9.\u0275fac=function(a){return new (a||P9)(z(r3))};
P9.\u0275cmp=od({type:P9,selectors:[["b-beap-settings"]],decls:6,vars:4,consts:[[4,"ngIf","ngIfElse"],["featureEmptyState",""],["featureStageContainer",""],["class","feature-stage-container",4,"ngIf"],[1,"feature-stage-container"],[1,"feature-stage-title"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"feature-empty-state-message"],[1,"feature-container"],[1,"feature-container-row"],[1,"feature-toggle-col"],[3,"checked","matTooltip","disabled"],[1,"feature-desc-col"],[1,
"feature-title"],[1,"feature-desc"],["mat-button","","color","primary","class","small no-visited-no-active","target","_blank",4,"ngIf"],[1,"feature-action-bar"],["mat-button","","color","primary","target","_blank",1,"small","no-visited-no-active",3,"click"],["svgIcon","pop-out",1,"icon-s"],["messageType","info",4,"ngIf"],[1,"feature-badge-col"],[3,"experimentId"],["mat-button","","color","primary","target","_blank",1,"small","no-visited-no-active"],["messageType","info"]],template:function(a,b){a&
1&&(P(0,RBb,5,6,"ng-container",0),T(1,"async"),P(2,SBb,2,0,"ng-template",null,1,Eg),P(4,VBb,20,16,"ng-template",null,2,Eg));if(a&2){var c=N(3);C("ngIf",V(1,2,b.hasFeatures$))("ngIfElse",c)}},dependencies:function(){return[t3,nD,oD,Dv,Ev,Jv,qA,Fz,PP,FB,Kv,Q9]},styles:['.feature-stage-container[_ngcontent-%COMP%]{padding-bottom:28px}.feature-stage-container[_ngcontent-%COMP%]   .feature-stage-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.6875rem;line-height:1.2307692308;margin-bottom:20px;margin-top:25px}.feature-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:21px}.feature-container[_ngcontent-%COMP%]   .feature-container-row[_ngcontent-%COMP%]{display:flex;flex:1;align-items:flex-start}.feature-container[_ngcontent-%COMP%]   .feature-badge-col[_ngcontent-%COMP%]{flex-shrink:0;min-width:75px}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]{flex:0 0 500px;display:flex;flex-direction:column;align-items:flex-start}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]   .feature-desc[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#5f6368;color:var(--text-muted)}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]   .feature-desc[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846}.feature-container[_ngcontent-%COMP%]   .feature-toggle-col[_ngcontent-%COMP%]{flex-shrink:0;min-width:75px}.feature-container[_ngcontent-%COMP%]   .feature-action-bar[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:10px}.feature-container[_ngcontent-%COMP%]   .feature-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:400;margin-bottom:9px}.feature-container[_ngcontent-%COMP%]   b-callout[_ngcontent-%COMP%]{margin-top:10px;width:100%}.feature-empty-state-message[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0em;font-weight:400;margin-top:45px}/*# sourceMappingURL=beap_settings.css.map */'],
changeDetection:0});var Q9=function(){};Q9.prototype.transform=function(a){return"STATE_ENABLED"===a?!0:!1};Q9.\u0275fac=function(a){return new (a||Q9)};Q9.\u0275pipe=td({name:"featureState",type:Q9,pure:!0});var R9=function(a,b){this.name=a;this.resourceType=b;this.options=[]};R9.prototype.shouldDisplay=function(){return!0};R9.prototype.hasOptions=function(){return!1};R9.prototype.getDefaultOptionId=function(){return null};var S9=function(a,b){this.name=a;this.resourceType=b;this.options=[]};S9.prototype.shouldDisplay=function(){return 0<this.options.length};S9.prototype.hasOptions=function(){return 0<this.options.length};
S9.prototype.getDefaultOptionId=function(){return this.hasOptions()?this.options[0].id:null};
var rGc=function(a,b){this.id=a;this.name=b},uGc=function(a,b,c,d,e,f){var h=this;this.butterBar=a;this.sidebar=b;this.userPreferencesManager=c;this.cdr=d;this.appEvents=e;this.activeSession=f;this.selectedOptionId=null;this.subscriptions=new B.Subscription;this.missionControlMainOption=new R9("Home","MISSION_CONTROL");this.needsAttentionMainOption=new R9("Needs attention","NEEDS_ATTENTION");this.assignedToMeMainOption=new R9("Assigned to me","ASSIGNED_TO_ME");this.hotlistMainOption=new S9("Hotlist",
"HOTLIST");this.savedSearchMainOption=new S9("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=new S9("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[this.assignedToMeMainOption,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption];$C(this.activeSession,"showNeedsAttentionUI")&&this.activeSession.isInternalSession()&&this.mainOptions.unshift(this.needsAttentionMainOption);sGc(this)&&this.mainOptions.unshift(this.missionControlMainOption);a={};this.resourceMainOptions=
(a.MISSION_CONTROL=this.missionControlMainOption,a.NEEDS_ATTENTION=this.needsAttentionMainOption,a.ASSIGNED_TO_ME=this.assignedToMeMainOption,a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];tGc(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){tGc(h);h.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(k){k.homepagePreferences&&
(k=k.homepagePreferences,k.resourceType?h.selectedMainOption=h.resourceMainOptions[k.resourceType]||h.mainOptions[0]:sGc(h)?h.selectedMainOption=h.missionControlMainOption:h.selectedMainOption=h.assignedToMeMainOption,h.selectedOptionId=k.resourceId||null,tGc(h))}))};uGc.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var ZBb=function(a){WF(a.butterBar,"Saving preferences...",0);var b={resourceType:a.selectedMainOption.resourceType};a.selectedMainOption.hasOptions()&&a.selectedOptionId&&(b.resourceId=a.selectedOptionId);pWb(a.userPreferencesManager,b).subscribe(function(){WF(a.butterBar,"Preferences saved.",4E3)})},tGc=function(a){function b(c){return new rGc(String(c.id),c.name)}a.hotlistMainOption.options=a.sidebar.userHotlists.map(b);a.savedSearchMainOption.options=a.sidebar.userSavedSearches.map(b);a.bookmarkGroupMainOption.options=
a.sidebar.sidebarData.bookmarkGroups.map(b);a.selectedOptionId&&(a.selectedMainOption.options.find(function(c){return c.id===a.selectedOptionId})||a.selectedMainOption.options.push(new rGc(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))},sGc=function(a){return a.activeSession.isInternalSession()&&$C(a.activeSession,"enableHomepageVariantA")};var vGc=eqa[3],T9=function(a,b,c,d,e,f,h,k,q){Y.call(this);this.cdr=a;this.userPreferencesManager=b;this.butterBar=c;this.activeSession=d;this.documentationLinks=e;this.analytics=f;this.sidebar=k;this.appEvents=q;this.dateFormats=[{value:"MMM d, yyyy",label:"Dec 31, 2015"},{value:"EE MMM dd, yyyy",label:"Thu Dec 31, 2015"},{value:"yyyy-MM-dd",label:"2015-12-31"},{value:"MM/dd/yyyy",label:"12/31/2015"},{value:"dd-MM-yyyy",label:"31-12-2015"},{value:"dd.MM.yyyy",label:"31.12.2015"}];this.timeFormats=
[{value:"hh:mma",label:"01:00PM"},{value:"h:mma",label:"1:00PM"},{value:"HH:mm",label:"13:00"},{value:"HH:mm:ss",label:"13:00:01"}];this.timeZones=[];this.appName=d.getAppName();this.timeZones.push.apply(this.timeZones,p(h.supportedTimeZones.map(function(u){return{value:u.id,label:u.name}})));this.sloEnabled=d.isInternalSession();this.showBugScreensaverSetting=d.isInternalSession();this.showShowInlineImagesSetting=d.isInternalSession()&&$C(this.activeSession,"enableImageSummary")};W(T9,Y);
T9.\u0275dir=Y.\u0275dir;T9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;null==(b=a.preferredHomepage)||b.destroy()});this.preferredHomepage=new uGc(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents,this.activeSession);this.userPreferencesManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
T9.prototype.save=function(a,b,c){var d=this;WF(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){WF(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};var wGc=function(a){var b;return(null==(b=a.userPreferences.textDisplayPreferences)?void 0:b.commentDisplayOverride)===vGc};T9.prototype.getShowInlineImages=function(){var a;return null!=(a=this.userPreferences.showInlineImages)?a:!1};
T9.\u0275fac=function(a){return new (a||T9)(z(yD,2),z(iE),z(VF),z(Us),z(yL),z(zH),z(cD),z(BJ),z(DF))};
T9.\u0275cmp=od({type:T9,selectors:[["b-general-settings"]],features:[lg([yD]),Jf],decls:69,vars:15,consts:[[1,"flex-kids-x","gap-l","margin-bottom"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-s"],["target","_blank",3,"href"],["appearance","outline"],["matTooltip","Current selection for preferred homepage"],["id","bv2-homepage-pref-selection",3,"ngModel","ngModelChange","selectionChange"],[4,"ngFor","ngForOf"],["appearance","outline",4,"ngIf"],[1,"margin-y"],["id","bv2-datetime-pref-date-formatting",
"appearance","outline"],["matTooltip","Date/time formatting - Use this format for calendar dates."],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","bv2-datetime-pref-time-formatting","appearance","outline"],["matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-timezone","appearance","outline"],["matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-enable-all-hotkeys",3,"checked",
"change"],[1,"margin-bottom"],["id","bv2-force-plain-text",3,"checked","change"],["id","bv2-force-code-font"],["class","margin-bottom",4,"ngIf"],[4,"ngIf"],["class","bv2-settings-preferred-homepage-main-option-select-item",3,"value",4,"ngIf"],[1,"bv2-settings-preferred-homepage-main-option-select-item",3,"value"],["id","bv2-homepage-pref-suboption-selection",1,"homepage-option-select",3,"ngModel","ngModelChange","selectionChange"],["class","bv2-settings-preferred-homepage-option-select-item",3,"value",
4,"ngFor","ngForOf"],[1,"bv2-settings-preferred-homepage-option-select-item",3,"value"],[3,"value"],["id","bv2-show-inline-images",3,"checked","change"],["id","bv2-bug-screensaver",3,"checked","change"]],template:function(a,b){a&1&&(D(0,"div")(1,"div",0)(2,"div",1)(3,"p",2),Q(4,"Preferred homepage"),F(),D(5,"p",3),Q(6," Select your preferred homepage when first opening the app. "),D(7,"a",4),Q(8," Learn more "),F()()(),D(9,"div")(10,"div")(11,"mat-form-field",5)(12,"mat-label",6),Q(13," Current selection "),
F(),D(14,"mat-select",7),L("ngModelChange",function(c){return b.preferredHomepage.selectedMainOption=c})("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();ZBb(c);c.cdr.detectChanges()}),P(15,XBb,2,1,"ng-container",8),F()(),P(16,$Bb,3,2,"mat-form-field",9),F()()(),G(17,"hr",10),D(18,"div",0)(19,"div",1)(20,"p",2),Q(21,"Date/time formatting settings"),F(),D(22,"p",3),Q(23," Select how you want dates and times to be formatted. "),D(24,
"a",4),Q(25," Learn more "),F()()(),D(26,"div")(27,"div")(28,"mat-form-field",11)(29,"mat-label",12),Q(30," Dates "),F(),D(31,"mat-select",13),L("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.calendarFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),P(32,aCb,2,2,"mat-option",14),F()()(),D(33,"div")(34,"mat-form-field",15)(35,"mat-label",16),Q(36," Times "),F(),D(37,"mat-select",13),L("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeFormat=
c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),P(38,bCb,2,2,"mat-option",14),F()()(),D(39,"div")(40,"mat-form-field",17)(41,"mat-label",18),Q(42," Time Zones "),F(),D(43,"mat-select",13),L("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeZone=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),P(44,cCb,2,2,"mat-option",14),F()()()()(),G(45,"hr",10),D(46,"div",0)(47,"div",1)(48,"p",2),Q(49,"Keyboard settings"),F()(),D(50,
"div")(51,"div")(52,"mat-slide-toggle",19),L("change",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c.checked;return b.save("saveKeyboardPreferences")}),Q(53," Enable all hotkeys "),F()()()(),G(54,"hr",10),D(55,"div",0)(56,"div",1)(57,"p",2),Q(58,"Display settings"),F()(),D(59,"div")(60,"div",20)(61,"mat-slide-toggle",21),L("change",function(c){b.userPreferences.textDisplayPreferences&&(b.userPreferences.textDisplayPreferences.commentDisplayOverride=c.checked?vGc:void 0,b.save("saveTextDisplayPreferences.commentDisplayOverride"))}),
Q(62," Force comments to display as plain text "),F()(),D(63,"div",20)(64,"b-toggle-code-font",22),Q(65," Force comments to display with code font "),F()(),P(66,dCb,3,1,"div",23),F()(),G(67,"hr",10),P(68,eCb,9,1,"ng-container",24),F());a&2&&(w(7),C("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",re),w(7),C("ngModel",b.preferredHomepage.selectedMainOption),w(1),C("ngForOf",b.preferredHomepage.mainOptions),w(1),C("ngIf",b.preferredHomepage.selectedMainOption.hasOptions()),
w(8),C("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",re),w(7),C("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),w(1),C("ngForOf",b.dateFormats),w(5),C("ngModel",b.userPreferences.dateTimePreferences.timeFormat),w(1),C("ngForOf",b.timeFormats),w(5),C("ngModel",b.userPreferences.dateTimePreferences.timeZone),w(1),C("ngForOf",b.timeZones),w(8),C("checked",b.userPreferences.keyboardPreferences.enableAllHotkeys),w(9),C("checked",wGc(b)),w(5),C("ngIf",
b.showShowInlineImagesSetting),w(2),C("ngIf",b.showBugScreensaverSetting))},dependencies:[Dv,Ev,hw,ow,jA,hA,bP,Hz,PP,FB,x8],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}[_nghost-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}  .cdk-overlay-container .slo-report-subscription-dialog .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}[_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}/*# sourceMappingURL=settings.css.map */"]});var U9=function(a,b,c,d){Y.call(this);var e=this;this.userPreferencesManager=a;this.butterBar=b;this.documentationLinks=c;this.analytics=d;this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(f){e.userPreferences=f})};W(U9,Y);U9.\u0275dir=Y.\u0275dir;
U9.prototype.save=function(a,b,c){var d=this;WF(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){WF(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};U9.\u0275fac=function(a){return new (a||U9)(z(iE),z(VF),z(yL),z(zH))};
U9.\u0275cmp=od({type:U9,selectors:[["b-notification-settings"]],features:[Jf],decls:48,vars:14,consts:[[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-ss"],["target","_blank",3,"href"],["appearance","outline","id","bv2-notification-pref-assigned"],["matTooltip","Notification level - issues for which you are the assignee"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["appearance","outline","id","bv2-notification-pref-reported"],
["matTooltip","Notification level - issues for which you are the reporter"],["appearance","outline","id","bv2-notification-pref-verified"],["matTooltip","Notification level - issues for which you are the verifier"],["appearance","outline","id","bv2-notification-pref-collaborator"],["matTooltip","Notification level - issues for which you are the collaborator"],["appearance","outline","id","bv2-notification-pref-ccd"],["matTooltip","Notification level - issues on which you are CC'd"],["appearance",
"outline","id","bv2-notification-pref-starred"],["matTooltip","Notification level - issues that you have starred"],["id","bv2-exclude-changes-by-me",3,"checked","change"],[3,"value"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"div",1)(2,"p",2),Q(3,"Notification settings"),F(),D(4,"p",3),Q(5," Select the level of email you want to receive for each issue role. "),D(6,"a",4),Q(7," Learn more "),F()()(),D(8,"div")(9,"div")(10,"mat-form-field",5)(11,"mat-label",6),Q(12," Assignee "),F(),D(13,"mat-select",
7),L("ngModelChange",function(c){return b.userPreferences.notificationPreferences.assignedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(14,fCb,3,4,"mat-option",8),F()()(),D(15,"div")(16,"mat-form-field",9)(17,"mat-label",10),Q(18," Reporter "),F(),D(19,"mat-select",7),L("ngModelChange",function(c){return b.userPreferences.notificationPreferences.reportedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(20,gCb,3,
4,"mat-option",8),F()()(),D(21,"div")(22,"mat-form-field",11)(23,"mat-label",12),Q(24," Verifier "),F(),D(25,"mat-select",7),L("ngModelChange",function(c){return b.userPreferences.notificationPreferences.verifiedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(26,hCb,3,4,"mat-option",8),F()()(),D(27,"div")(28,"mat-form-field",13)(29,"mat-label",14),Q(30," Collaborator "),F(),D(31,"mat-select",7),L("ngModelChange",function(c){return b.userPreferences.notificationPreferences.collaboratorPriority=
c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(32,iCb,3,4,"mat-option",8),F()()(),D(33,"div")(34,"mat-form-field",15)(35,"mat-label",16),Q(36," CC'd "),F(),D(37,"mat-select",7),L("ngModelChange",function(c){return b.userPreferences.notificationPreferences.ccdPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(38,jCb,3,4,"mat-option",8),F()()(),D(39,"div")(40,"mat-form-field",17)(41,"mat-label",18),Q(42," Starred "),F(),D(43,
"mat-select",7),L("ngModelChange",function(c){return b.userPreferences.notificationPreferences.starredPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(44,kCb,3,4,"mat-option",8),F()()(),D(45,"div")(46,"mat-slide-toggle",19),L("change",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c.checked;return b.save("saveNotificationPreferences")}),Q(47," Exclude edits made by you "),F()()()());a&2&&(w(6),C("href",b.documentationLinks.baseDocumentationUrl+
"/concepts/settings#email",re),w(7),C("ngModel",b.userPreferences.notificationPreferences.assignedPriority),w(1),C("ngForOf",b.priorities),w(5),C("ngModel",b.userPreferences.notificationPreferences.reportedPriority),w(1),C("ngForOf",b.priorities),w(5),C("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),w(1),C("ngForOf",b.priorities),w(5),C("ngModel",b.userPreferences.notificationPreferences.collaboratorPriority),w(1),C("ngForOf",b.priorities),w(5),C("ngModel",b.userPreferences.notificationPreferences.ccdPriority),
w(1),C("ngForOf",b.priorities),w(5),C("ngModel",b.userPreferences.notificationPreferences.starredPriority),w(1),C("ngForOf",b.priorities),w(2),C("checked",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[Dv,hw,ow,jA,hA,bP,Hz,PP,FB,FI],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}[_nghost-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}  .cdk-overlay-container .slo-report-subscription-dialog .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}[_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}/*# sourceMappingURL=settings.css.map */"]});var xGc=function(a){this.internalArray_=m(a,0,xGc.messageId)};W(xGc,X);xGc.messageId="f.mt";var V9=function(a){this.internalArray_=m(a,0,V9.messageId)};W(V9,X);V9.repeatedFields_=[1];V9.messageId="b.ListSloReportSubscriptionsResponse";var W9=function(a){this.internalArray_=m(a,0,W9.messageId)};W(W9,X);W9.prototype.getSubscription=function(){return Fi(this,jm,1)};W9.prototype.setSubscription=function(a){return oj(this,jm,1,a)};W9.messageId="b.SloReportSubscriptionRequest";var X9=function(a){this.internalArray_=m(a,0,X9.messageId)};W(X9,X);X9.prototype.getSubscription=function(){return Fi(this,jm,1)};X9.prototype.setSubscription=function(a){return oj(this,jm,1,a)};X9.messageId="b.SloReportSubscriptionResponse";var Y9=function(a){this.executor=a};g=Y9.prototype;g.get=function(a){return this.executor.get({url:"action/slo_report_subscriptions/"+a,responseConstructor:X9}).pipe(A(function(b){if(b=b.getSubscription())return ewa(b);throw Error("Xe");}))};g.list=function(){return this.executor.get({url:"action/slo_report_subscriptions",responseConstructor:V9}).pipe(A(function(a){return Ji(a,jm,1).map(ewa)}))};
g.create=function(a){if(0!==a.id)throw Error("Ye");return this.executor.post({url:"action/slo_report_subscriptions",body:(new W9).setSubscription(gwa(a)),responseConstructor:X9}).pipe(A(function(b){if(b=b.getSubscription())return ewa(b);throw Error("Ze");}))};
g.update=function(a){if(0===a.id)throw Error("$e");return this.executor.post({url:"action/slo_report_subscriptions/"+a.id,body:(new W9).setSubscription(gwa(a)),responseConstructor:X9}).pipe(A(function(b){if(b=b.getSubscription())return ewa(b);throw Error("Ze");}))};g.delete=function(a){return this.executor.delete({url:"action/slo_report_subscriptions/"+a,responseConstructor:xGc}).pipe(A(function(){}))};Y9.\u0275fac=function(a){return new (a||Y9)(n(tD))};
Y9.\u0275prov=$c({token:Y9,factory:Y9.\u0275fac,providedIn:"root"});var Z9=function(a){this.timeZones=a;this.label="Time zone";this.timezoneId="";this.fullWidth=this.disabled=!1;this.timezoneIdChange=new Yu;this.timeZoneOptions$=X1b(this.timeZones).pipe(A(function(b){return b.sort(mCb)}))};Z9.\u0275fac=function(a){return new (a||Z9)(z(GL))};
Z9.\u0275cmp=od({type:Z9,selectors:[["b-timezone-picker"]],inputs:{label:"label",timezoneId:"timezoneId",disabled:"disabled",fullWidth:"fullWidth"},outputs:{timezoneIdChange:"timezoneIdChange"},decls:6,vars:8,consts:[["appearance","outline",1,"form-field-wide-select"],[3,"disabled","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,b){a&1&&(D(0,"mat-form-field",0)(1,"mat-label"),Q(2),F(),D(3,"mat-select",1),L("ngModelChange",function(c){b.timezoneId!==c&&(b.timezoneId=
c,b.timezoneIdChange.emit(b.timezoneId))}),P(4,lCb,2,2,"mat-option",2),T(5,"async"),F()());a&2&&(Xf("full-width",b.fullWidth),w(2),S(" ",b.label," "),w(1),C("disabled",b.disabled)("ngModel",b.timezoneId),w(1),C("ngForOf",V(5,6,b.timeZoneOptions$)))},dependencies:[jA,hA,bP,Hz,Dv,hw,ow,Kv],styles:["[_nghost-%COMP%]     .mat-form-field-infix { width: fit-content; }","mat-form-field[_ngcontent-%COMP%] { font-size: 16px; }"]});var yGc=["sloSubscriptionDialog"],$9=function(a,b,c,d,e,f,h,k){Y.call(this);var q=this;this.dateFormatter=a;this.api=b;this.currentUser=c;this.dialog=d;this.timeZones=e;this.confirmationDialogService=f;this.principalTypes=h;this.analytics=k;this.subscriptions$=new B.BehaviorSubject([]);this.isBasicMode$=this.subscriptions$.pipe(A(function(u){return 0===u.length||1===u.length&&u[0].lead.emailAddress===q.currentUser.email}));this.userSubscription$=this.subscriptions$.pipe(A(function(u){u=l(u);for(var x=
u.next();!x.done;x=u.next())if(x=x.value,x.lead.emailAddress===q.currentUser.email)return x;return{id:0,lead:q.currentUser.user,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:zGc[9].timeOfDay}}));this.isThinking$=new B.BehaviorSubject(!1);this.inputHasFocus=!1;this.frequencyOptions=AGc;this.repeatOnOptions=new Map([["daily",[]],["weekly",DCb],["monthly",BGc]]);this.DAILY="daily";this.repeatAtOptions$=(0,B.combineLatest)(zGc.map(function(u){return(0,B.of)(q.dateFormatter.format("HH:mma",
void 0,u.date)).pipe(A(function(x){return{timeOfDay:u.timeOfDay,display:x}}))}));this.ceoSelected=this.dialogInvalidEmailFormat=!1;this.emailToUser=Di;this.columns=["scope","frequency","actions"];this.frequencyDisplayMap=new Map(AGc.map(function(u){return[u.frequency,u.display]}));this.timeZoneDisplayMap$=X1b(this.timeZones).pipe(nf(),A(function(u){return new Map(u.map(function(x){return[x.id,x.displayName]}))}),wf({bufferSize:1,refCount:!0}));this.hourOfDayDisplayMap$=this.repeatAtOptions$.pipe(nf(),
A(function(u){return new Map(u.map(function(x){return[x.timeOfDay.hours,x.display]}))}),wf({bufferSize:1,refCount:!0}));this.compareTimeOfDay=function(u,x){return u.hours===x.hours&&u.minutes===x.minutes&&u.seconds===x.seconds&&u.nanos===x.nanos}};W($9,Y);$9.\u0275dir=Y.\u0275dir;$9.prototype.ngOnInit=function(){a$(this)};
var wCb=function(a){a.userSubscription$.pipe(nf(),zf(function(b){if(0===b.id)return a.analytics.trackEvent(xp.SLO_REPORTS,"enableOwnSubscription"),a.api.create(b);a.analytics.trackEvent(xp.SLO_REPORTS,"disableOwnSubscription");return a.api.delete(b.id)})).subscribe(function(){a$(a)})},a$=function(a){a.isThinking$.next(!0);a.api.list().pipe(nf()).subscribe(function(b){a.isThinking$.next(!1);a.subscriptions$.next(b)})},Ts=function(a,b){a.isThinking$.next(!0);a.api.update(b).subscribe(function(){a.analytics.trackEvent(xp.SLO_REPORTS,
"editSubscription");a$(a)})},CGc=function(a,b){a.isThinking$.next(!0);a.api.delete(b.id).subscribe(function(){a.analytics.trackEvent(xp.SLO_REPORTS,"deleteSubscription");a$(a)})},HCb=function(a,b){a.confirmationDialogService.open({title:"Delete a subscription",content:Uo("You will no longer receive reports from '"+b.lead.emailAddress+"'."),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){CGc(a,b)}})};$9.prototype.setFrequency=function(a,b){b.frequency=a;UCb(a,b);Ts(this,b)};
var UCb=function(a,b){"daily"!==a?b.ordinal="weekly"===a?DCb[0].ordinal:BGc[0].ordinal:delete b.ordinal};$9.prototype.setTimeZone=function(a,b){Ts(this,Object.assign({},b,{timeZone:Object.assign({},b.timeZone,{id:a})}))};
$9.prototype.openDialog=function(a){this.sloSubscriptionDialog&&(a||(a={id:0,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:zGc[9].timeOfDay}),this.ceoSelected=this.dialogInvalidEmailFormat=!1,this.dialogRef=this.dialog.open(this.sloSubscriptionDialog,{data:li(a),panelClass:"slo-report-subscription-dialog",width:"500px"}))};
var VCb=function(a,b){return Ne(function(c){if(1==c.nextAddress)return a.dialogRef&&void 0!==b.lead?c.yield(DGc(a,b.lead.emailAddress),2):c.return();if(!c.yieldResult)return b.lead.emailAddress="",a.dialogInvalidEmailFormat=!0,c.return();if("sundar@google.com"===b.lead.emailAddress)return b.lead.emailAddress="",a.ceoSelected=!0,c.return();0===b.id?a.api.create(b).subscribe(function(){a.analytics.trackEvent(xp.SLO_REPORTS,"createSubscription");a$(a)}):Ts(a,b);a.dialogRef.close();Se(c)})},DGc=function(a,
b){var c;return Ne(function(d){if(1==d.nextAddress)return yn(b)?d.yield(a.principalTypes.get(b),2):d.return(Promise.resolve(!1));c=d.yieldResult;return"USER"!==c.principalType?d.return(Promise.resolve(!1)):d.return(Promise.resolve(!0))})};$9.\u0275fac=function(a){return new (a||$9)(z(OL),z(Y9),z(WK),z(Uz),z(GL),z(zJ),z(vD),z(zH))};
$9.\u0275cmp=od({type:$9,selectors:[["b-slo-reports-settings"]],viewQuery:function(a,b){a&1&&zg(yGc,7);if(a&2){var c;yg(c=Bg())&&(b.sloSubscriptionDialog=c.first)}},features:[Jf],decls:22,vars:14,consts:[[4,"ngIf"],[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],["id","advanced-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby advanced-settings-note".split(" "),[1,"full-width"],[1,"margin-bottom"],["mat-flat-button",
"","color","primary",3,"disabled","click"],["sloSubscriptionDialog",""],["id","frequency-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby frequency-settings-note".split(" "),[1,"margin-y"],["id","isSubscribedCheckbox",1,"margin-s-right",3,"disabled","checked","change"],["appearance","outline",1,"full-width"],["matInput","","readonly","",3,"ngModel","focus","blur"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"timezoneId","fullWidth",
"timezoneIdChange"],["class","muted type-s",4,"ngIf"],[3,"value"],[3,"ngModel","compareWith","ngModelChange"],[1,"muted","type-s"],["mat-table","","aria-label","SLO reports subscriptions",1,"bordered","full-width",3,"dataSource"],["matColumnDef","scope"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","frequency"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0",4,"matRowDef","matRowDefColumns"],["mat-header-cell",
""],["mat-cell",""],["mat-icon-button","","aria-label","Show actions for this subscription",1,"gmat-button",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["subscriptionMenu","matMenu"],["mat-menu-item","","aria-label","View and edit subscription attributes",3,"click"],["mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row","","tabindex","0"],["matDialogTitle",""],[1,"type-l","margin-bottom"],["appearance","outline","floatLabel","always",1,"full-width"],["matInput","","required",
"","placeholder","Search users...",3,"ngModel","bContactAutocomplete","ngModelChange"],["id","new-subscription-note",1,"italic"],"href http://go/issue-slo-reports target _blank aria-describedby new-subscription-note".split(" "),"mat-button  color primary matDialogClose ".split(" ")],template:function(a,b){a&1&&(P(0,yCb,12,3,"ng-container",0),T(1,"async"),D(2,"div",1)(3,"div",2)(4,"p",3),Q(5,"Advanced settings"),F(),D(6,"p",4),Q(7," Add subscriptions to receive other user's reports. "),D(8,"a",5),
Q(9,"Learn more"),F()()(),D(10,"div",6)(11,"div",7)(12,"button",8),L("click",function(){return b.openDialog()}),T(13,"async"),Q(14," Create subscription "),F()(),P(15,zCb,2,0,"ng-container",0),T(16,"async"),P(17,LCb,13,3,"ng-container",0),T(18,"async"),T(19,"async"),F()(),P(20,WCb,33,15,"ng-template",null,9,Eg));a&2&&(C("ngIf",V(1,4,b.isBasicMode$)),w(12),C("disabled",V(13,6,b.isThinking$)),w(3),C("ngIf",V(16,8,b.isThinking$)),w(2),C("ngIf",!V(18,10,b.isBasicMode$)&&!V(19,12,b.isThinking$)))},dependencies:[Dv,
Ev,qA,Tg,hw,zw,ow,Ez,Vz,Wz,Xz,Yz,fA,jA,gA,hA,bP,Hz,nA,PP,mV,$U,fV,bV,ZU,hV,cV,eV,iV,kV,AB,yB,zB,Z9,MJ,mR,Kv],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}[_nghost-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}  .cdk-overlay-container .slo-report-subscription-dialog .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}[_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}/*# sourceMappingURL=settings.css.map */",
".mat-form-field[_ngcontent-%COMP%]{min-width:300px}.mat-header-cell[_ngcontent-%COMP%]{font-weight:600;background-color:#f1f3f4;background-color:var(--c100)}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:40px}td.mat-cell[_ngcontent-%COMP%], td.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem}td.mat-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-actions[_ngcontent-%COMP%]{text-align:right}/*# sourceMappingURL=slo_reports_settings.css.map */"]});
var AGc=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],DCb=[{ordinal:1,display:"Mondays"},{ordinal:2,display:"Tuesdays"},{ordinal:3,display:"Wednesdays"},{ordinal:4,display:"Thursdays"},{ordinal:5,display:"Fridays"},{ordinal:6,display:"Saturdays"},{ordinal:7,display:"Sundays"}],BGc=[].concat(p(Array.from({length:31}).fill(0).keys())).map(function(a){return{ordinal:a+1,display:ECb(a+1)}}),zGc=[].concat(p(Array.from({length:24}).fill(0).keys())).map(function(a){var b=
new Date;b.setHours(a%24);b.setMinutes(0);return{date:b,timeOfDay:{hours:b.getHours(),minutes:0,seconds:0,nanos:0}}});var b$=function(a,b,c,d){this.activeSession=a;this.location=b;this.routeParams=c;this.beapEnabled=$C(this.activeSession,"enableBeap");this.enableSloReportEmail=this.activeSession.isInternalSession()&&$C(this.activeSession,"enableSloReportEmail");this.selectedTabIndex=0;d.setTitle("Settings")};b$.prototype.ngAfterViewInit=function(){this.selectedTabIndex=EGc(this,this.routeParams.settingsTab)};
b$.prototype.tabChange=function(a){var b,c,d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id;this.location.url(dua(d))};var EGc=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.nativeElement.id===b});return 0>a?0:a};b$.\u0275fac=function(a){return new (a||b$)(z(Us),z(wE),z(aO),z(lG))};
b$.\u0275cmp=od({type:b$,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&zg(CT,5,ae);if(a&2){var c;yg(c=Bg())&&(b.tabs=c)}},decls:11,vars:3,consts:[[1,"margined","heading-m"],["gmat-tabs","",3,"selectedIndex","selectedIndexChange"],["label","General"],[1,"padded"],["label","Notifications","id","notifications"],["label","SLO Reports","id","slo-reports",4,"ngIf"],["label","Early Access","id","early-access",4,"ngIf"],["label","SLO Reports","id","slo-reports"],["label","Early Access","id","early-access"]],
template:function(a,b){a&1&&(D(0,"p",0),Q(1,"Settings"),F(),D(2,"mat-tab-group",1),L("selectedIndexChange",function(c){return b.tabChange(c)}),D(3,"mat-tab",2)(4,"div",3),G(5,"b-general-settings"),F()(),D(6,"mat-tab",4)(7,"div",3),G(8,"b-notification-settings"),F()(),P(9,XCb,3,0,"mat-tab",5),P(10,YCb,3,0,"mat-tab",6),F());a&2&&(w(2),C("selectedIndex",b.selectedTabIndex),w(7),C("ngIf",b.enableSloReportEmail),w(1),C("ngIf",b.beapEnabled))},dependencies:[Ev,rU,DT,CT,P9,T9,U9,$9],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}[_nghost-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}  .cdk-overlay-container .slo-report-subscription-dialog .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0}[_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-tab-list .mat-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}/*# sourceMappingURL=settings.css.map */"],
changeDetection:0});var c$=function(a,b,c,d,e,f,h,k,q){Y.call(this);this.cdr=a;this.routeParams=b;this.bLocation=c;this.pageTitle=d;this.userApi=e;this.bookmarkGroupsApi=f;this.paths=h;this.appEvents=q;this.isStarred=!1;this.bookmarkGroup=null;this.userEmail=k.getUserEmail()};W(c$,Y);c$.\u0275dir=Y.\u0275dir;g=c$.prototype;
g.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsAdmin=c.adminUsers.some(function(d){return d.emailAddress===a.userEmail});a.pageTitle.setTitle(c.name);a.cdr.detectChanges()};this.bookmarkGroupsApi.get(this.routeParams.groupId).then(b);this.userApi.getFavorite("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(c){c&&a.bookmarkGroup&&
c.bookmarkGroupId==a.bookmarkGroup.bookmarkGroupId&&a.bookmarkGroupsApi.get(a.routeParams.groupId).then(b)}))};g.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.saveFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b):this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b)};
g.openEditBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};g.getUserEmail=function(){return this.userEmail};g.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsAdmin};g.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return this.paths.viewHotlist(a.hotlistId);default:throw Error("af`"+a.resourceType);}};
g.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:throw Error("af`"+a.resourceType);}};c$.\u0275fac=function(a){return new (a||c$)(z(yD,2),z(aO),z(wE),z(lG),z(nH),z(wJ),z(xE),z(Us),z(DF))};
c$.\u0275cmp=od({type:c$,selectors:[["view-bookmark-group-page"]],features:[lg([yD]),Jf],decls:5,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-view"],[4,"ngIf"],[1,"bv2-view-bookmark-group-title"],[1,"bv2-view-bookmark-group-header"],[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-view-bookmark-group-title-text"],["aria-label","Bookmark group settings","matTooltip","Bookmark group settings",
1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[1,"bv2-view-bookmark-group-description"],[1,"bv2-view-bookmark-group-hotlists"],[4,"ngFor","ngForOf"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"href","title"]],template:function(a,b){a&1&&(D(0,"h2",0),Q(1),F(),G(2,"div",1),D(3,"div",2),P(4,bDb,12,5,"div",3),F());a&2&&(w(1),S("View Bookmark Group ",null==b.bookmarkGroup?null:b.bookmarkGroup.name,""),w(2),Nf("aria-busy",
!b.bookmarkGroup),w(1),C("ngIf",b.bookmarkGroup))},dependencies:[Dv,Ev,KJ,FB],encapsulation:2});var d$=function(){};d$.\u0275fac=function(a){return new (a||d$)};d$.\u0275mod=qd({type:d$});d$.\u0275inj=ad({imports:[aD,yK,FC]});var e$=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,$a,ja,ya,Ha,ab,Ra){c9.call(this,b,c,d,e,h,k,q,u,f,x,y,E,J,O,R,U,Z,na,Ub,oa,wa,ja,ya,Ha,ab,Ra);this.ngZone=a;this.hotlists=H;this.hotkeys=Da;this.pageTitle=Ga;this.userAccess=$a;this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1;this.hotlistId=Vb.hotlistId};W(e$,c9);e$.\u0275dir=c9.\u0275dir;
e$.prototype.ngOnInit=function(){var a=this;c9.prototype.ngOnInit.call(this);this.subscriptions.add(rE(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(p(this.BASE_HOTKEYS),[{keys:[Vj("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){FGc(a,1)}},{keys:[Vj("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){FGc(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&"view-hotlist"!==b.origin&&GGc(a)}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));this.userApi.getFavorite("HOTLIST",this.hotlistId).then(function(){a.isStarred=!0}).catch(function(){});this.loadUserAccess(this.hotlistId)};
e$.prototype.ngDoCheck=function(){var a;if(this.hotlistName!==(null==(a=this.hotlist)?void 0:a.name)){var b;this.hotlistName=null==(b=this.hotlist)?void 0:b.name;this.pageTitle.setTitle(this.hotlistName)}};
e$.prototype.loadUserAccess=function(a){var b=this;uG(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});uG(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
e$.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;nK(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):GGc(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var GGc=function(a){a.hotlistLoading=!0;a.isInitializing=!1;a.hotlist=null;var b=a.hotlistApi.get(a.hotlistId);b.then(function(c){a.hotlist=c}).catch(function(c){a.errorHandler.errorHandler(null,c);a.hotlist=null}).finally(function(){a.hotlistLoading=!1;a.ngZone.run(function(){a.cdr.detectChanges()})});return b};
e$.prototype.doSearch=function(a){var b=this,c="priority type title assignee status issueId modifiedTime".split(" ").map(Mi),d="hotlistid:"+this.hotlistId,e=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,sortColumns:[],displayColumns:c,query:d},a.then(function(f){return{query:null,displayColumn:f.displayColumn,sortOrder:f.sortOrder}}));a=e.searchPreferences.then(function(f){f=li(f);f.query=d;f.returnUrl=b.bLocation.url();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;
return KF(b.issuePagination,f)});a.then(function(f){iFc(b,f)}).catch(function(f){"number"===typeof f?AZ(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return yo({searchResultsPage:a,displayColumns:e.displayColumns}).then(function(f){f=f.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.sortPreferences=f.params.sortColumns||[];b.initColumns(e.displayColumns,HGc(b)?IGc:JGc);b.loadHotlists()}).catch(function(){})};
var HGc=function(a){return 0===a.sortPreferences.length||1===a.sortPreferences.length&&"POSITION"===a.sortPreferences[0].fieldId.type};e$.prototype.getCsvUrl=function(){return this.paths.hotlistIssuesCsvAction(this.hotlistId,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
e$.prototype.repositionIssue=function(a,b,c){var d=this;c=void 0===c?!1:c;!this.repositioning&&this.searchResults&&(this.repositioning=!0,this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"view-hotlist",function(){d.searchResults&&(d.searchResults=d.searchResults.clone())}).then(function(e){d.hotlist=e;d.analytics.trackEvent(d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var FGc=function(a,b){if(a.searchResults&&!a.repositioning&&HGc(a)){var c,d,e=null!=(d=null==(c=a.resultsGrid)?void 0:c.focusedRowIndex)?d:void 0;if(null!=e&&(c=e+b,d=a.searchResults.issues.length,0<=c&&c<d)){if(1===b){var f;null==(f=a.resultsGrid)||H_a(f)}else if(-1===b){var h;null==(h=a.resultsGrid)||I_a(h)}a.repositionIssue(e,c,!0)}}};g=e$.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=rAa(b.displayColumn?b.displayColumn.map(function(e){return e.type.toLowerCase()}):[],c.map(function(e){return e.toString()}));b.displayColumn=c}if(c=this.urlPreferences.getSortColumns())b.sortOrder=c.map(function(e){return{direction:e.direction,field:e.fieldId}});WF(this.butterBar,"Saving changes to hotlist...");KGc(this,b).then(function(e){WF(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');AZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");AZ(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};g.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
g.isEditable=function(){return null!=this.hotlist&&this.isAdmin};g.isDirectAdmin=function(){return this.hotlist?wi(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?c9.prototype.setSort.call(this,a,b,!1):c9.prototype.setSort.call(this,a,b)};
var KGc=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;LGc(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},LGc=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
e$.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=fl(this.hotlistId),c=function(){LGc(a,b)};this.isStarred?this.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:b}).then(c):this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:b}).then(c)};e$.prototype.openEditHotlist=function(){this.bLocation.url(this.paths.editHotlist(this.hotlistId))};var JGc=[eZ,fZ,gZ,Hnc],IGc=[eZ,Gnc,fZ,gZ,Hnc];
e$.\u0275fac=function(a){return new (a||e$)(z(Df),z(yD),z(gE),z(qF),z(wE),z(Us),z(dE),z(AF),z(nH),z(mF),z(VF),z(zH),z(mK),z(g_),z(JF),z(iE),z(zZ),z(BZ),z(xE),z(rD),z(QN),z(zL),z(qE),z(lG),z(XF),z(aO),z(sG),z(DF),z(rH),z(GH),z(T_),z(OG))};
e$.\u0275cmp=od({type:e$,selectors:[["view-hotlist-page"]],features:[lg([yD]),Jf],decls:9,vars:11,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"grid","hotlistChoices","showHotlistButtons","currentHotlistId","isHotlistAdmin","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view","bv2-view-hotlist-grid"],["class","bv2-view-hotlist-title",4,"ngIf"],["class","bv2-view-loading",
4,"ngIf"],["class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-hotlist-title"],[3,"starMessage","unStarMessage","starred","starClicked","keydown.space","keydown.enter",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-view-hotlist-title-text"],["tabindex","-1",3,"bFocus",4,"ngIf"],[4,"ngIf"],["class","bv2-view-hotlist-save-form",4,"ngIf"],[3,"starMessage","unStarMessage","starred","starClicked","keydown.space",
"keydown.enter"],[3,"starMessage","unStarMessage","starred","disabled"],["tabindex","-1",3,"bFocus"],["role","heading","aria-level","3"],[3,"matTooltip"],["class","hotlist-archived",4,"ngIf"],[1,"button-container"],["aria-label","Hotlist settings","matTooltip","Hotlist settings",1,"bv2-edit-button","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences have changed",4,"ngIf"],[1,"hotlist-archived"],["matTooltip","Display preferences have changed"],[1,"bv2-view-hotlist-save-form"],
["type","button","mat-flat-button","","matTooltip","Save changes to display preferences",1,"gmat-button","medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences",1,"gmat-button","medium",3,"click"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","enableSidebar","init","focusedRowIndexChange","columnsChange","sortChange",
"rowClick","onRowDragDrop","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(D(0,"div",0)(1,"b-grid-controls",1),L("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),F(),D(2,"div",2)(3,"b-pagination",3),L("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",
function(c){return kFc(b,c.option)}),F()()(),D(4,"div",4),P(5,lDb,9,7,"div",5),P(6,mDb,4,1,"div",6),P(7,nDb,2,2,"div",7),P(8,oDb,2,6,"div",8),F());a&2&&(w(1),C("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin),w(2),C("searchResults",b.searchResults),w(1),Nf("aria-busy",b.isLoading),w(1),C("ngIf",!b.isInitializing),w(1),C("ngIf",b.isLoading),w(1),C("ngIf",!b.isLoading&&!b.hasResults()),w(1),C("ngIf",
!b.isLoading&&b.hasResults()))},dependencies:[jZ,i_,KJ,bZ,FB,Ev,MJ,LW,Ez],encapsulation:2});var f$=function(){};f$.\u0275fac=function(a){return new (a||f$)};f$.\u0275mod=qd({type:f$});f$.\u0275inj=ad({imports:[wZ,k_,yK,f_,FC,aD,AK,MW,SB]});var g$=function(a,b,c,d,e,f,h,k,q,u,x,y,E,H,J,O,R,U,Z,na,oa,wa,Da,Ga,Ub,Vb,$a,ja,ya,Ha,ab){c9.call(this,a,b,c,d,f,h,k,u,e,x,y,E,H,J,O,R,U,Z,Ga,na,oa,$a,ja,ya,Ha,ab);this.savedSearchApi=q;this.hotkeys=wa;this.pageTitle=Da;this.userAccess=Vb;this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1;this.savedSearchId=Ub.savedSearchId};W(g$,c9);g$.\u0275dir=c9.\u0275dir;g=g$.prototype;
g.ngOnInit=function(){var a=this;c9.prototype.ngOnInit.call(this);this.subscriptions.add(rE(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&String(b.savedSearchId)===a.savedSearchId&&("delete"===b.action?(a.savedSearch=null,a.searchResults=null,a.appSearchState.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=
b.showHotlists}));this.subscriptions.add(F0b(this.appSearchState,function(b){a.savedSearch?AZ(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.url(b))}));this.loadUserAccess(this.savedSearchId)};g.loadUserAccess=function(a){var b=this;uG(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.loadSavedSearch=function(){var a=this;this.savedSearch=null;var b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.savedSearch=c;a.pageTitle.setTitle(c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c);a.savedSearch=null}).finally(function(){a.cdr.detectChanges()});return b};
g.getIssues=function(){var a=this,b=this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId;nK(this.appSearchState,b);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;b=this.savedSearch?Promise.resolve(this.savedSearch):this.loadSavedSearch();return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:bFc(this)},a.then(function(d){return{query:d.query,sortOrder:d.sortOrder||null,displayColumn:d.displayColumn||null}}));var c=a.searchPreferences.then(function(d){if(!d.query)return Promise.reject(null);b.searchParams=d;nK(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=li(d);d.returnUrl=b.bLocation.url();d.trackerIds=b.appSearchState.currentTrackerScope;
return KF(b.issuePagination,d)});c.then(function(d){iFc(b,d)}).catch(function(d){"number"===typeof d?AZ(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return yo({searchResultsPage:c,displayColumns:a.displayColumns}).then(function(d){d=d.searchResultsPage;b.searchResults=d;b.page=d.params.page;b.sortPreferences=d.params.sortColumns||[];b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
g.isEditable=function(){return!!this.savedSearch&&this.isAdmin};g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.searchParams.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
g.save=function(){var a=this,b=this.urlPreferences.getDisplayColumns();b&&(this.savedSearch.displayColumn=b);if(b=this.urlPreferences.getSortColumns())this.savedSearch.sortOrder=b.map(function(c){return{direction:c.direction,field:c.fieldId}});this.savedSearch.query=this.urlPreferences.getQuery()||this.savedSearch.query;WF(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){WF(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;AZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");AZ(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
g.hasParamChanges=function(){return this.savedSearch?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!==this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};g.openEditSavedSearch=function(){this.bLocation.url(this.paths.editSavedSearch(this.savedSearchId))};
g$.\u0275fac=function(a){return new (a||g$)(z(yD),z(gE),z(qF),z(wE),z(Us),z(dE),z(AF),z(nH),z(jI),z(mF),z(VF),z(zH),z(mK),z(JF),z(iE),z(zZ),z(BZ),z(xE),z(rD),z(QN),z(zL),z(qE),z(lG),z(XF),z(aO),z(sG),z(DF),z(rH),z(GH),z(T_),z(OG))};
g$.\u0275cmp=od({type:g$,selectors:[["view-saved-search-page"]],features:[lg([yD]),Jf],decls:9,vars:7,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],["class","bv2-view-savedsearch-title-text",4,"ngIf"],["class","bv2-view-savedsearch-save-form",
4,"ngIf"],[4,"ngIf"],[1,"bv2-view-savedsearch-title-text"],["role","heading","aria-level","3",4,"ngIf"],["role","heading","aria-level","3"],[3,"matTooltip"],["aria-label","Saved search settings","matTooltip","Saved search settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences or search query have changed",4,"ngIf"],["matTooltip","Display preferences or search query have changed"],[1,"bv2-view-savedsearch-save-form"],["type","button","mat-flat-button",
"","class","gmat-button medium","matTooltip","Save changes to display preferences and search query",3,"click",4,"ngIf"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences and search query",1,"gmat-button","medium",3,"click"],[1,"bv2-view-savedsearch-exit-link"],["matTooltip","Show this search with your default display preferences",3,"href","click"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences and search query",1,
"gmat-button","medium",3,"click"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","enableSidebar","init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(D(0,"div",
0)(1,"b-grid-controls",1),L("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),F(),D(2,"div",2)(3,"b-pagination",3),L("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return kFc(b,c.option)}),
F()()(),D(4,"div",4)(5,"div",5),P(6,tDb,4,3,"div",6),P(7,vDb,7,2,"div",7),F(),P(8,ADb,4,3,"div",8),F());a&2&&(w(1),C("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),w(2),C("searchResults",b.searchResults),w(1),Nf("aria-busy",b.isLoading),w(2),C("ngIf",!b.isInitializing),w(1),C("ngIf",b.hasParamChanges()),w(1),C("ngIf",b.savedSearch))},dependencies:[jZ,i_,bZ,Ev,FB,MJ,LW,Ez],encapsulation:2});var h$=function(){};h$.\u0275fac=function(a){return new (a||h$)};h$.\u0275mod=qd({type:h$});
h$.\u0275inj=ad({imports:[wZ,k_,f_,aD,FC,AK,MW,SB]});var MGc={path:"issues/:issueId",component:v7,children:[{path:"",pathMatch:"full",component:q8},{path:"dependencies",component:I6},{path:"dupes",component:x7},{path:"blocking",component:d6},{path:"resources",component:Z8}].concat(p(BDb("enableCodeMentionsUi",{path:"todos",component:a9})))},NGc=[{path:"",component:S4,canActivateGuards:[a5]},{path:"issues",component:d9},{path:"recent",component:f9}].concat(p(BDb("showNeedsAttentionUI",{path:"attention",component:O9,canActivateGuards:[Y4,Z4]})),[{path:"issues/new",
component:O5}],p(BDb("enableChromeWizard",{path:"issues/wizard",component:x5})),[MGc,{path:"components/all",component:p4},{path:"components",component:y5},{path:"components/new",component:B5},{path:"components/:componentId/edit",component:A9},{path:"components/:componentId",component:A9},{path:"components/:componentId/manage",component:A9},{path:"teams/:teamId/edit",component:B9},{path:"teams/:teamId",component:B9},{path:"bookmark-groups/new",component:A5},{path:"bookmark-groups/:groupId",component:c$},
{path:"bookmark-groups/:groupId/edit",component:U5},{path:"hotlists/new",component:C5},{path:"hotlists/:hotlistId",component:e$},{path:"hotlists/:hotlistId/edit",component:oZ},{path:"slos/new",component:Q5},{path:"slos/:sloId",component:Z5},{path:"slos/:sloId/edit",component:Z5},{path:"savedsearches/:savedSearchId/edit",component:W5},{path:"hotlists",component:b9},{path:"slos",component:g9},{path:"savedsearches/:savedSearchId",component:g$},{path:"dashboard/:groupId",component:S5},{path:"settings/:settingsTab?",
component:b$},{path:"settings",component:b$}],p(BDb("enableHomepageVariantA",{path:"home",component:L9,canActivateGuards:[Y4,Z4]})),[{path:"**",component:S4,canActivateGuards:[a5]}]);var i$=function(){};i$.\u0275fac=function(a){return new (a||i$)};i$.\u0275mod=qd({type:i$});i$.\u0275inj=ad({imports:[aD,sV,bE,SB]});var j$=function(){};j$.\u0275fac=function(a){return new (a||j$)};j$.\u0275mod=qd({type:j$});j$.\u0275inj=ad({imports:[aD,IT,CK,GV,i$]});var k$=function(){};k$.\u0275fac=function(a){return new (a||k$)};k$.\u0275mod=qd({type:k$});k$.\u0275inj=ad({imports:[wV,aD,SB,VR,CK,FC,z5,bE,uP]});var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=qd({type:l$});l$.\u0275inj=ad({imports:[aD,tE,SB,Zz]});var m$=function(){};m$.\u0275fac=function(a){return new (a||m$)};m$.\u0275mod=qd({type:m$});m$.\u0275inj=ad({imports:[FV,aD,f7,tE,MZ,SB,iD,BB,FC,y_,e_,y8,l$]});var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=qd({type:n$});n$.\u0275inj=ad({imports:[aD,tE,SB,FC]});var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=qd({type:o$});o$.\u0275inj=ad({imports:[I8,aD,FC,SK,QP,SB,AK,iP,e_]});var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=qd({type:p$});p$.\u0275inj=ad({imports:[aD,wV,CK,wR]});var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=qd({type:q$});q$.\u0275inj=ad({imports:[j$,wV,aD,k$,jP,tE,CK,tV,w8,i$,SB,iD,FC,bE,yK,wR,p$,n$,m$,o$]});var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=qd({type:r$});r$.\u0275inj=ad({imports:[aD,SB]});var s$=function(){};s$.\u0275fac=function(a){return new (a||s$)};s$.\u0275mod=qd({type:s$});s$.\u0275inj=ad({imports:[aD,kM,SB,FC]});var t$=function(){};t$.\u0275fac=function(a){return new (a||t$)};t$.\u0275mod=qd({type:t$});t$.\u0275inj=ad({imports:[aD,zx,Qx,Dw,Ew,bE,SB,Zz,HT,yV,Ey,FC,dJ,rL,q$,L2,e_,iP,IT,$Z,u7,s$,r$]});var u$=function(){};u$.\u0275fac=function(a){return new (a||u$)};u$.\u0275mod=qd({type:u$});u$.\u0275inj=ad({imports:[aD,s4]});var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=qd({type:v$});v$.\u0275inj=ad({imports:[aD,zx,Qx,Dw,Ew,bE,SB,HT,yV,rL,FV,t$,Y8,S6,g6,y7,u$,$8]});var OGc=NGc.map(function(a){return{path:a.path,component:a.component,canDeactivate:[UW],canActivate:[V4,X4].concat(p(a.canActivateGuards||[])),children:a.children,isRootRoute:!0}});OGc.push({path:"**",canActivate:["dontActivate"],component:S4,isRootRoute:!0});var PGc=Mj().appBaseHref,QGc,w$={initialNavigation:"disabled"},RGc={provide:fWb,useFactory:function(){return"guarded"},deps:[[WD,new au,new bu]]},SGc;
SGc=(null==w$?0:w$.preloadingStrategy)?uta(0,[{provide:eWb,useExisting:$D},{provide:VVb,useExisting:w$.preloadingStrategy}]).\u0275providers:[];var TGc;
(null==w$?0:w$.initialNavigation)?TGc=["disabled"===w$.initialNavigation?uta(3,[{provide:GHb,multi:!0,useFactory:function(){var a=jd(WD);return function(){JVb(a)}}},{provide:dWb,useValue:2}]).\u0275providers:[],"enabledBlocking"===w$.initialNavigation?uta(2,[{provide:dWb,useValue:0},{provide:GHb,multi:!0,deps:[eu],useFactory:function(a){var b=a.get(uJb,Promise.resolve());return function(){return b.then(function(){return new Promise(function(c){var d=a.get(WD),e=a.get(cWb);rta(d,function(){c(!0)});
a.get(PD).afterPreactivation=function(){c(!0);return e.closed?(0,B.of)(void 0):e};d.initialNavigation()})})}}}]).\u0275providers:[]]:TGc=[];
QGc={ngModule:bE,providers:[gWb,[],{provide:vVb,multi:!0,useValue:[]},RGc,{provide:CVb,useValue:w$?w$:{}},(null==w$?0:w$.useHash)?{provide:Xv,useClass:Zv}:{provide:Xv,useClass:Yv},{provide:ZVb,useFactory:function(){var a=jd(yJb),b=jd(Df),c=jd(CVb),d=jd(PD),e=jd(DD);c.scrollOffset&&a.setOffset(c.scrollOffset);return new aE(e,d,a,b,c)}},SGc,{provide:JIb,multi:!0,useFactory:function(){return new JIb("Router",WD)}},TGc,(null==w$?0:w$.bindToComponentInputs)?uta(8,[MD,{provide:XUb,useExisting:MD}]).\u0275providers:
[],[{provide:hWb,useFactory:function(){var a=jd(eu);return function(b){var c=a.get(vv);if(b===c.components[0]){b=a.get(WD);var d=a.get(cWb);1===a.get(dWb)&&b.initialNavigation();var e;null==(e=a.get(eWb,null,8))||WVb(e);var f;null==(f=a.get(ZVb,null,8))||f.init();c=c.componentTypes[0];b.routerState.root.component=c;b.navigationTransitions.rootComponentType=c;d.closed||(d.next(),d.complete(),d.unsubscribe())}}}},{provide:IIb,multi:!0,useExisting:hWb}]]};
var x$=function(a,b){a.config=OGc.map(Gsa);a.navigated=!1;a.lastSuccessfulId=-1;a.initialNavigation();KZb(b)};x$.\u0275fac=function(a){return new (a||x$)(n(WD),n(AI))};x$.\u0275mod=qd({type:x$});x$.\u0275inj=ad({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:SD,useClass:U4},{provide:xJb,useValue:PGc},X4,V4],imports:[QGc,T4,v$,bE]});var UGc=new Ad("Environment");var VGc=new Ad("Worktracker API Key");var WGc=new Ad("G3C API Keys");var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=qd({type:y$});y$.\u0275inj=ad({providers:[{provide:UGc,useFactory:CDb},{provide:WGc,useValue:{prodApiKey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",stagingApiKey:"AIzaSyCYqhU0fWA9T487wYfx1ogB9z2mNJ9AQco",autopushApiKey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}},{provide:VGc,useValue:"AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c"}]});var z$={},XGc=(z$.NETWORK_DOWNLOADING=[{type:"INPUT",question:"What specific URL can reproduce the problem?",answerPrefix:"Example URL: "}],z$.AUDIO_VIDEO=[{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers?\n",options:["Not sure - I don't know","Yes - This is just a Chromium problem",{text:"No - I can reproduce the problem in another browser",child:{type:"INPUT",question:"Which other browsers (including versions) also have the problem?"}}]},
{type:"TEXT",question:"Please open chrome://gpu in a new Chrome tab and paste the report here.",answerPrefix:"Contents of chrome://gpu: \n"}],z$.CONTENT=[{type:"INPUT",question:"What specific URL has a problem?",answerPrefix:"Example URL: "},{type:"SELECT",question:"Does the problem occur on multiple sites?",options:["Not sure - I don't know","Yes - Please describe below","No - Just that one URL"]},{type:"SELECT",question:"Is it a problem with a plugin?",options:["Not sure - I don't know",{text:"Yes - Those darn plugins",
child:{type:"INPUT",question:"Which plugin?"}},"No - It's the browser itself"]},{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers? ",options:["Not sure - I don't know","Yes - This is just a Chromium problem",{text:"No - I can reproduce the problem in another browser",child:{type:"INPUT",question:"Which other browsers (including versions) also have the problem?"}}]}],z$.APPS=[{type:"INPUT",question:to(Uo("What is the link to that software in "),
DDb("the Chrome Webstore","https://chrome.google.com/webstore"),Uo("?")),answerPrefix:"Webstore page: "}],z$.EXTENSIONS_THEMES=[{type:"SELECT",question:"What kind of software had the problem?",options:["Chrome Extension - Adds new browser functionality",{text:"Chrome Theme - Makes Chrome look awesome",child:{type:"INPUT",question:"Do you know the latest version where it worked?"}}]},{type:"INPUT",question:to(Uo("What is the link to that software in "),DDb("the Chrome Webstore","https://chrome.google.com/webstore"),
Uo("?")),answerPrefix:"WebStore page: "}],z$.WEBSTORE=[{type:"INPUT",question:"What is the URL of the Chrome WebStore page that had the problem?",answerPrefix:"Webstore page: "}],z$.CRASHES=[{type:"INPUT",question:"Do you have a Report ID from chrome://crashes?",answerPrefix:"Crashed report ID: "},{type:"SELECT",question:"How severe is the crash?",options:["Just one tab","Just one plugin","The whole browser"],answerPrefix:"How much crashed? "},{type:"SELECT",question:"Is it a problem with a plugin?",
options:["Not sure - I don't know",{text:"Yes - Those darn plugins",child:{type:"INPUT",question:"Which plugin?"}},"No - It's the browser itself"]}],z$.OTHER=[{type:"SELECT",question:"Please select a label to classify your issue:",options:["Not sure - I don't know","Type-Feature - Request for new or improved features","Type-Bug-Regression - Used to work, now broken","Type-Bug - Software not working correctly","Cr-UI-I18N - Issue in translating UI to other languages"]}],z$.API=[{type:"SELECT",question:to(Uo("Which "),
DDb("component","https://bugs.chromium.org/p/chromium/adminComponents"),Uo(" does this fall under?")),answerPrefix:"Which component does this fall under?",options:"Not sure - I don't know;Blink>Animation;Blink>BackgroundSync;Blink>Bindings;Blink>Bluetooth;Blink>Canvas;Blink>Compositing;Blink>CSS;Blink>DataTransfer;Blink>DOM;Blink>Editing;Blink>FileAPI;Blink>Focus;Blink>Fonts;Blink>Forms;Blink>Fullscreen;Blink>GamepadAPI;Blink>GetUserMedia;Blink>HitTesting;Blink>HTML;Blink>Image;Blink>INPUT;Blink>Internals;Blink>Javascript;Blink>Layout;Blink>Loader;Blink>Location;Blink>Media;Blink>MediaStream;Blink>MemoryAllocator;Blink>Messaging;Blink>Network;Blink>Paint;Blink>Payments;Blink>PerformanceAPIs;Blink>PermissionsAPI;Blink>PresentationAPI;Blink>PushAPI;Blink>SavePage;Blink>Scheduling;Blink>Scroll;Blink>SecurityFeature;Blink>ServiceWorker;Blink>Speech;Blink>Storage;Blink>SVG;Blink>TEXTAutosize;Blink>TEXTEncoding;Blink>TEXTSELECTion;Blink>USB;Blink>Vibration;Blink>ViewSource;Blink>WebAudio;Blink>WebComponents;Blink>WebCrypto;Blink>WebFonts;Blink>WebGL;Blink>WebGPU;Blink>WebMIDI;Blink>WebRTC;Blink>WebShare;Blink>WebVR;Blink>WindowDialog;Blink>Workers;Blink>XML".split(";")},
{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers? ",options:["Not sure - I don't know","Yes - This is just a Chrome problem",{text:"No - I can reproduce the problem in another browser",child:{type:"TEXT",question:"Details of interop issue"}}]}],z$);var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=qd({type:A$});A$.\u0275inj=ad({providers:[yAc,Zy],imports:[Ty,Sv,Yw,k5,GB,ez,Ty]});var B$=function(){};B$.\u0275fac=function(a){return new (a||B$)};B$.\u0275mod=qd({type:B$});B$.\u0275inj=ad({imports:[Ty,Ty]});var C$=function(){};C$.\u0275fac=function(a){return new (a||C$)};C$.\u0275mod=qd({type:C$});C$.\u0275inj=ad({providers:[{provide:vAc,useValue:XGc}],imports:[WV,aD,M_,Dw,SB,B$,SK,oA,zV,cP,A$,ZV]});var D$=function(){};D$.\u0275fac=function(a){return new (a||D$)};D$.\u0275mod=qd({type:D$});D$.\u0275inj=ad({imports:[aD,SB,FC,RF,Dw,Ew,qZ]});var E$=function(){};E$.\u0275fac=function(a){return new (a||E$)};E$.\u0275mod=qd({type:E$});E$.\u0275inj=ad({imports:[cJ,aD,qZ,MW,Dw,hD,FC,SK,C_,VR]});var F$=function(){};F$.\u0275fac=function(a){return new (a||F$)};F$.\u0275mod=qd({type:F$});F$.\u0275inj=ad({imports:[aD,SB,FC,RF,Dw,Ew,qZ]});var G$=function(){};G$.\u0275fac=function(a){return new (a||G$)};G$.\u0275mod=qd({type:G$});G$.\u0275inj=ad({imports:[cJ,hD,AK,aD,GV,CK,SB]});var H$=function(){};H$.\u0275fac=function(a){return new (a||H$)};H$.\u0275mod=qd({type:H$});H$.\u0275inj=ad({imports:[Sv,Dw,cA,QZ,Ew]});var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=qd({type:I$});I$.\u0275inj=ad({imports:[cJ,YV,IT,nR,wM,RZ,kA,MW,Dw,nW,aW,hD,lW,LR,G$,SB,SK,Zz,N5,BB,QP,FC,RZ,RI,Ew,H$,VR,aD,Fy,ZV,oW]});var J$=function(){};J$.\u0275fac=function(a){return new (a||J$)};J$.\u0275mod=qd({type:J$});J$.\u0275inj=ad({imports:[cJ,aD,qZ,MW,Dw,hD,FC,N_]});var K$=function(){};K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=qd({type:K$});K$.\u0275inj=ad({imports:[aD,FC,SB,HT,qZ,nW,aW,GK,RF,Zz,Dw,Ew,BB,uZ]});var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=qd({type:L$});L$.\u0275inj=ad({imports:[Zz,SK,aD,Sy,SB,IT,MT,ZV]});var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=qd({type:M$});M$.\u0275inj=ad({imports:[aD,FC,SB,HT,qZ,RF,Zz,Dw,Ew,BB,uZ]});var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=qd({type:N$});N$.\u0275inj=ad({imports:[cJ,aD,qZ,Dw,yV,hD,HT,FC,uZ,SK,N_,AK]});var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=qd({type:O$});O$.\u0275inj=ad({imports:[aD,yZ,AK,SB]});var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=qd({type:P$});P$.\u0275inj=ad({imports:[aD,SB,P_,AK]});var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=qd({type:Q$});Q$.\u0275inj=ad({imports:[aD,wP,q_]});var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=qd({type:R$});R$.\u0275inj=ad({imports:[aD,iP,Dw,HT,NO,uZ,hD,N5,SB,SK,FC,Zz,uP,AK]});var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=qd({type:S$});S$.\u0275inj=ad({});var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=qd({type:T$});T$.\u0275inj=ad({imports:[cJ,aD,iP,wP,lP,X3,f4,h4,pW,qZ,m4,Dw,S$,yV,hD,SB,SK,Zz,cP,QP,HT,FC,uZ,l9,C_,R$,uP,bE,Fy,Q$,A_,AK,VR,LP,s$]});var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=qd({type:U$});U$.\u0275inj=ad({imports:[aD,qZ,Dw,S$,yV,SB,SK,HT,FC,QP,uZ,bE,uP,Fy,A_,q_]});var V$=function(){};V$.\u0275fac=function(a){return new (a||V$)};V$.\u0275mod=qd({type:V$});V$.\u0275inj=ad({imports:[cP,aD,Dw]});var W$=function(){};W$.\u0275fac=function(a){return new (a||W$)};W$.\u0275mod=qd({type:W$});W$.\u0275inj=ad({providers:[{provide:Ugc,useValue:{enabled:!0}}],imports:[v3,dJ,aD,Dw,yV,SK,SB,SB,Zz,cP,oA,QP,AV,BB,HT,FC,FC,SP,RI,y8,V$,AK,nR]});var X$=function(){};X$.\u0275fac=function(a){return new (a||X$)};X$.\u0275mod=qd({type:X$});X$.\u0275inj=ad({imports:[aD,Dw,FC,kA,oA]});var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=qd({type:Z$});Z$.\u0275inj=ad({imports:[aD,RF,SB]});var YGc=function(){};YGc.prototype.send=function(a,b){HGa(a);return this.makeRequest(a).then(function(c){return b?RGa(b,c):c})};var Vs=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};W(Vs,YGc);Vs.prototype.getGapi=function(){var a=this;return $Ha().then(function(b){b=b||window.gapi;a.setGapiConfig(b);return gIa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
Vs.prototype.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return Ne(function(d){if(1==d.nextAddress)return void 0===b.gapiAuthParams.minAuthTokenTimeRemaining?d.jumpTo(2):d.yield(fIa(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request({root:b.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||b.defaultApiId})))})})};
Vs.prototype.parseResponse=function(a){return new Promise(function(b,c){a.then(function(d){b(!1===d.result&&null!=d.body?{data:d.body}:d.result)},function(d){c(!1===d.result&&null!=d.body?{data:d.body}:d.result)})})};Vs.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&dIa(a,b,this.gapiConfigUpdates[b])};Vs.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var ZGc={disableCheatSheet:!0};ZGc=void 0===ZGc?{}:ZGc;
var $Gc=[aD,uL,JO,zx,Qx,sM,lW,rM,AD,hD,IK,SP,vE,C_,yK,KK,tV,cJ,FZ,YR,jD,O3,D4,x4,rR,LR,NR,pP,FV,J$,N$,P$,O$,T5,e9,f$,h$,E$,T$,U$,d$,yZ,P_,pW,o4,s4,c_,pR,wZ,cW,F4,P3,i4,Q3,t4,m_,o_,pX,k_,$V,UK,dJ,IT,MT,L$,NV,gD,v_,GK,AR,y_,R_,d_,e_,q4,n3,AK,EL,j_,X$,wR,l3,h4,Z$,m4,L2,NO,iP,kM,W$,v3,uR,IO,GZ,JZ,N_,A_,HZ,qZ,S3,D$,F$,e4,F_,MP,wP,AP,lP,IZ,f_,$R,sZ,SZ,aW,L_,WZ,XZ,f4,tM,xM,uZ,vZ,YV,X3,K$,eJ,M$,I$,SO,t$,c0,y$,ux,{ngModule:GC,providers:[{provide:cSb,useFactory:function(){var a=Mj().config.environmentType||
"QA";return"PROD"===a||"NIGHTLY"===a?{apikey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",environment:"prod"}:{apikey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM",environment:"nonprod"}},deps:[eu]}]},{ngModule:GO,providers:[kN,{provide:X3b,useFactory:function(a){return new EDb(new P5b("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,Object.assign({},R5b,a.gapiConfig),{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[Q5b]},{provide:Q5b,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",
globalApiKey:"AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc",gapiConfig:{withCredentials:!0}}}}]},{ngModule:TZ,providers:[DY,{provide:Mmc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:ryc,autocompleteFactory:auc}}}]},{ngModule:mE,providers:[lE,{provide:xWb,useValue:ZGc}]}];pl("enableChromeWizard")&&$Gc.push(C$);
var aHc=[gAc,xXb,Tpc,Upc,Vpc,mUb,kWb,{provide:zfc,useValue:{animationDuration:"0ms"}},{provide:JRb,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:XRb,useValue:{disableTooltipInteractivity:!0}},{provide:Ihc,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:Lhc,useValue:"92912"},{provide:J3b,useFactory:FDb},hAc,pAc,qAc,rAc],uv=function(){};uv.prototype.ngDoBootstrap=function(){Ck("bootstrapping AppModule")};
uv.\u0275fac=function(a){return new (a||uv)};uv.\u0275mod=qd({type:uv,bootstrap:[tL,B4]});uv.\u0275inj=ad({providers:[].concat(p(aHc)),imports:[$Gc,x$,jJ]});EA(document,"DOMContentLoaded",function(){MIb()});
__._ModuleManager_initialize=function(){};
__._ModuleManager_initialize('c/dSirkf/n90YA/ZGAB2e/b96Luc/M79aPc/nJ4XF',[]);
}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
